text: (function (exports,ui_vue) {
      'use strict';
  
      ui_vue.BitrixVue.component('vue-cart-detail-user-property', {
        data: function data() {
          return {
            step: null
          };
        },
        props: {
          error: {
            type: Object,
            required: false
          },
          cart: {
            type: Object,
            required: true
          }
        },
        computed: {
          cartId: function cartId(state) {
            return state.cart.ID;
          },
          cartCount: function cartCount(state) {
            return state.cart.COUNT;
          },
          localize: function localize(state) {
            return ui_vue.BitrixVue.getFilteredPhrases("");
          },
          currentUser: function currentUser(state) {
            return state.$store.getters['getCurrentUser'];
          },
          currentUserID: function currentUserID(state) {
            var _state$currentUser;
  
            return (_state$currentUser = state.currentUser) === null || _state$currentUser === void 0 ? void 0 : _state$currentUser.ID;
          },
          currentUserLOGIN: function currentUserLOGIN(state) {
            var _state$currentUser2;
  
            return (_state$currentUser2 = state.currentUser) === null || _state$currentUser2 === void 0 ? void 0 : _state$currentUser2.LOGIN;
          },
          currentUserTYPE: function currentUserTYPE(state) {
            var _state$currentUser3;
  
            return (_state$currentUser3 = state.currentUser) !== null && _state$currentUser3 !== void 0 && _state$currentUser3.LOGIN ? 2 : 1;
          },
          // TODO доработать данные из админки
          contragentSource: function contragentSource(state) {
            var _state$cart$CONTRAGEN;
  
            return (_state$cart$CONTRAGEN = state.cart.CONTRAGENT) === null || _state$cart$CONTRAGEN === void 0 ? void 0 : _state$cart$CONTRAGEN.SOURCE;
          },
          componentError: {
            get: function get() {
              return this.error;
            },
            set: function set(errorText) {
              this.error = errorText;
              this.$root.$emit('componentError', {
                id: this.$options.name,
                text: errorText
              });
            }
          },
          exComponentList: function exComponentList(state) {
            var _Object$values;
  
            return (_Object$values = Object.values([])) === null || _Object$values === void 0 ? void 0 : _Object$values.sort(function (a, b) {
              if (a.sort == undefined) a.sort = 100;
              if (b.sort == undefined) b.sort = 100;
              if (a.sort > b.sort) return 1;
              if (a.sort < b.sort) return -1;
              return 0;
            });
          },
          exComponentListCount: function exComponentListCount(state) {
            var _Object$assign;
  
            return state.exComponentList ? (_Object$assign = Object.assign(state.exComponentList)) === null || _Object$assign === void 0 ? void 0 : _Object$assign.length : 0;
          },
          cartDescription: {
            get: function get() {
              return this.cart.DESCRIPTION;
            },
            set: function set(value) {
              this.cart.DESCRIPTION = value;
            }
          },
          stepNumber: function stepNumber(state) {
            if (!state.step) {
              state.step = ++state.$parent.stepNumber;
            }
  
            return state.step;
          }
        },
        template: "\n        <div v-cloak v-if=\"cartId\" class=\"order-step order-step-userporps\">\n            <input type=\"hidden\" name=\"USER_ID\" :value=\"currentUserID\"/>\n            <input type=\"hidden\" name=\"USER_LOGIN\" :value=\"currentUserLOGIN\"/>\n            <input type=\"hidden\" name=\"FUSER_TYPE_ID\" :value=\"currentUserTYPE\"/>\n            <input type=\"hidden\" name=\"CITY\" :value=\"contragentSource\"/>\n            <span v-if=\"stepNumber\" class=\"step-number\">{{stepNumber}}</span>\n            <template v-for=\"(component, i) in exComponentList\">\n                <component :is=\"component.name\"></component>\n            </template>\n            <div class=\"basket-checkout-block-commets\" :class=\"{'border-bottom': cartCount}\">\n                <label for=\"BASKET_DESCRIPTION\" class=\"title font-weight-bold\">\n                    <i class=\"far fa-comment\"></i>&nbsp;{{localize.BASKET_TOTAL_DESCRIPTION}}\n                </label>\n                <div class=\"\">\n                    <textarea\n                        class=\"w-100\"\n                        id=\"BASKET_DESCRIPTION\"\n                        name=\"DESCRIPTION\"\n                        data-entity=\"basket-comments-input\"\n                        tabindex=\"1\" autofocus accesskey=\"c\" style=\"min-height: 85px;font-size: 14px;\"\n                        :title=\"localize.BASKET_TOTAL_DESCRIPTION_TITLE+ '(Alt+C)'\"\n                        :placeholder=\"localize.BASKET_TOTAL_DESCRIPTION_PLACEHOLDER\"\n                        v-model.lazy.trim=\"cartDescription\"\n                        >{{cartDescription}}\n                    </textarea>\n                </div>\n            </div>\n            <vue-cart-detail-total-buttons :cart=\"cart\" :basket-error=\"error\" v-if=\"cartCount\"/>\n        </div>\n    "
      });
  
  }((this.window = this.window || {}),BX));
  //# sourceMappingURL=script.bundle.js.map
  