text: import template from './sw-condition-line-item-dimension-width.html.twig';
  
  const { Component } = Shopware;
  const { mapPropertyErrors } = Component.getComponentHelper();
  
  Component.extend('sw-condition-line-item-dimension-width', 'sw-condition-base-line-item', {
      template,
  
      data() {
          return {
              inputKey: 'amount',
          };
      },
  
      computed: {
          operators() {
              return this.conditionDataProviderService.addEmptyOperatorToOperatorSet(
                  this.conditionDataProviderService.getOperatorSet('number'),
              );
          },
  
          amount: {
              get() {
                  this.ensureValueExist();
                  return this.condition.value.amount;
              },
              set(amount) {
                  this.ensureValueExist();
                  this.condition.value = { ...this.condition.value, amount };
              },
          },
  
          ...mapPropertyErrors('condition', ['value.operator', 'value.amount']),
  
          currentError() {
              return this.conditionValueOperatorError || this.conditionValueAmountError;
          },
      },
  });
  