<!--

    Copyright © 2016-2026 The Thingsboard Authors

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<section [formGroup]="processingForm" class="tb-form-panel no-border no-padding">
  <tb-example-hint
    [hintText]="'rule-node-config.save-time-series.advanced-settings-hint'"
    [popupHelpLink]="timeseries ? 'rulenode/save_timeseries_node_advanced' : 'rulenode/save_attributes_node_advanced'"
    >
  </tb-example-hint>
  @if (timeseries) {
    <tb-advanced-processing-setting-row
      formControlName="timeseries"
      appearance="outline"
      title="{{ 'rule-node-config.save-time-series.time-series' | translate }}"
    ></tb-advanced-processing-setting-row>
  }
  @if (attributes) {
    <tb-advanced-processing-setting-row
      formControlName="attributes"
      appearance="outline"
      title="{{ 'rule-node-config.save-attribute.attributes' | translate }}"
    ></tb-advanced-processing-setting-row>
  }
  @if (latest) {
    <tb-advanced-processing-setting-row
      formControlName="latest"
      appearance="outline"
      title="{{ 'rule-node-config.save-time-series.latest' | translate }}"
    ></tb-advanced-processing-setting-row>
  }
  @if (webSockets) {
    <tb-advanced-processing-setting-row
      formControlName="webSockets"
      appearance="outline"
      title="{{ 'rule-node-config.save-time-series.web-sockets' | translate }}"
    ></tb-advanced-processing-setting-row>
  }
  @if (calculatedFields) {
    <tb-advanced-processing-setting-row
      formControlName="calculatedFields"
      appearance="outline"
      title="{{ 'rule-node-config.save-time-series.calculated-fields-and-alarm-rules' | translate }}"
    ></tb-advanced-processing-setting-row>
  }
</section>
