Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/sale/checkout/view/property/dist/ |
Upload File : |
this.BX=this.BX||{};this.BX.Sale=this.BX.Sale||{};this.BX.Sale.Checkout=this.BX.Sale.Checkout||{};(function(t,e,i,n,r){"use strict";n.BitrixVue.component("sale-checkout-view-property-note_error",{props:["message"],template:'\n <div class="invalid-feedback">\n {{message}}\n </div>\n\t'});n.BitrixVue.component("sale-checkout-view-property-list_edit",{props:["items","errors","propertyVariants"],computed:{localize:function t(){return Object.freeze(n.BitrixVue.getFilteredPhrases("CHECKOUT_VIEW_PROPERTY_LIST_"))}},methods:{getErrorMessage:function t(e){var i=this.errors.find((function(t){return t.propertyId===e.id}));return typeof i!=="undefined"?i.message:null},isPhone:function t(e){return e.type===r.Property.type.phone},isName:function t(e){return e.type===r.Property.type.name},isEmail:function t(e){return e.type===r.Property.type.email},isNumber:function t(e){return e.type===r.Property.type.number},isCheckbox:function t(e){return e.type===r.Property.type.checkbox},isDate:function t(e){return e.type===r.Property.type.date},isDateTime:function t(e){return e.type===r.Property.type.datetime},isEnum:function t(e){return e.type===r.Property.type["enum"]},isFailure:function t(e){return e.validated===r.Property.validate.failure},getVariantsByPropertyId:function t(e){return this.propertyVariants.filter((function(t){return t.propertyId===e}))}},template:'\n\t\t<div class="checkout-basket-section checkout-basket-section-personal-form">\n\t\t\t<h2 class="checkout-basket-title">{{localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_SHIPPING_CONTACTS}}</h2>\n\t\t\t<div class="form-group" v-for="(item, index) in items" :key="index">\n\t\t\t\t<sale-checkout-view-element-input-property-text v-if="isName(item)"\n\t\t\t\t\t:item="item" \n\t\t\t\t\t:index="index" \n\t\t\t\t\tautocomplete="name"\n\t\t\t\t/>\n\t\t\t\t<sale-checkout-view-element-input-property-phone v-else-if="isPhone(item)" \n\t\t\t\t\t:item="item" \n\t\t\t\t\t:index="index"\n\t\t\t\t/>\n\t\t\t\t<sale-checkout-view-element-input-property-email v-else-if="isEmail(item)" \n\t\t\t\t\t:item="item" \n\t\t\t\t\t:index="index" \n\t\t\t\t\tautocomplete="email" \n\t\t\t\t/>\n\t\t\t\t<sale-checkout-view-element-input-property-checkbox v-else-if="isCheckbox(item)" \n\t\t\t\t\t:item="item" \n\t\t\t\t\t:index="index" \n\t\t\t\t\t:autocomplete="item.value" \n\t\t\t\t/>\n\t\t\t\t<sale-checkout-view-element-input-property-number v-else-if="isNumber(item)" \n\t\t\t\t\t:item="item" \n\t\t\t\t\t:index="index"\n\t\t\t\t/>\n\t\t\t\t<sale-checkout-view-element-input-property-date v-else-if="isDate(item) || isDateTime(item)"\n\t\t\t\t\t:item="item"\n\t\t\t\t\t:index="index"\n\t\t\t\t\tautocomplete="off"\n\t\t\t\t\t:isDateTime="isDateTime(item)"\n\t\t\t\t/>\n\t\t\t\t<sale-checkout-view-element-input-property-enum v-else-if="isEnum(item)"\n\t\t\t\t\t:item="item"\n\t\t\t\t\t:index="index"\n\t\t\t\t\t:variants="getVariantsByPropertyId(item.id)"\n\t\t\t\t/>\n\t\t\t\t<sale-checkout-view-element-input-property-text v-else\n\t\t\t\t\t:item="item" \n\t\t\t\t\t:index="index" \n\t\t\t\t\tautocomplete="off"\n\t\t\t\t/>\n\n\t\t\t\t<sale-checkout-view-property-note_error v-if="isFailure(item)"\n\t\t\t\t\t:message="getErrorMessage(item)"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t'});n.BitrixVue.component("sale-checkout-view-property-list_view",{props:["items","number","propertyVariants"],computed:{localize:function t(){return Object.freeze(n.BitrixVue.getFilteredPhrases("CHECKOUT_VIEW_PROPERTY_LIST_VIEW_"))},getTitle:function t(){var e=this.localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_ORDER_TITLE;return e.replace("#ORDER_NUMBER#",this.number)},getPropertiesShort:function t(){var e=[];for(var n in this.items){if(i.Type.isStringFilled(this.items[n].value)){e.push(this.items[n].value)}}return e.join(", ")}},methods:{resolveValue:function t(e){if(e.type===r.Property.type.checkbox){return e.value==="Y"?this.localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_CHECKBOX_Y:this.localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_CHECKBOX_N}else if(e.type===r.Property.type["enum"]){return this.propertyVariants.find((function(t){return t.value===e.value&&t.propertyId===e.id})).name}return e.value}},template:'\n\t\t<div class="checkout-basket-section">\n\t\t<h2 class="checkout-basket-title">{{localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_PROPERTIES}}</h2>\n\t\n\t\t\t\t\t\t<div class="checkout-item-personal-order-info">\n\t\t\t\t\t\t\t<div class="checkout-item-personal-order-payment">\n\t\t\t\t\t\t\t\t<div v-for="(item, index) in items" :key="index">{{item.name}}: <b>{{resolveValue(item)}}</b></div>\n\x3c!--\t\t\t\t\t\t\t\t<div>{{getPropertiesShort}}</div>--\x3e\n\t\t\t\t\t\t\t</div>\n\x3c!--\t\t\t\t\t\t\t<div class="checkout-item-personal-order-shipping">--\x3e\n\x3c!--\t\t\t\t\t\t\t\t<strong>{{localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_SHIPPING_METHOD}}</strong>--\x3e\n\x3c!--\t\t\t\t\t\t\t\t<div>{{localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_SHIPPING_METHOD_DESCRIPTION}}</div>--\x3e\n\x3c!--\t\t\t\t\t\t\t</div>--\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\n\t\t</div>\n\t'});n.BitrixVue.component("sale-checkout-view-property",{props:["items","mode","order","propertyVariants","errors"],computed:{getConstMode:function t(){return r.Application.mode}},template:'\n\t\t<div>\n\t\t <template v-if="mode === getConstMode.edit">\n\t\t <sale-checkout-view-property-list_edit :items="items" :errors="errors" :propertyVariants="propertyVariants"/>\n\t\t </template>\n\t\t <template v-else>\n\t\t <sale-checkout-view-property-list_view :items="items" :number="order.accountNumber" :propertyVariants="propertyVariants"/>\n </template>\n </div>\n\t'})})(this.BX.Sale.Checkout.View=this.BX.Sale.Checkout.View||{},BX.Sale.Checkout.View.Element.Input,BX,BX,BX.Sale.Checkout.Const); //# sourceMappingURL=registry.bundle.map.js