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"],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},isFailure:function t(e){return e.validated===r.Property.validate.failure}},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\t<template v-for="(item, index) in items">\n\t\t\t\t <div class="form-group" v-if="isName(item)">\n\t\t\t\t\t<sale-checkout-view-element-input-property-text :item="item" :index="index" :autocomplete="\'name\'"/>\n\t\t\t\t\t<sale-checkout-view-property-note_error v-if="isFailure(item)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:message="getErrorMessage(item)"/>\n\t\t\t\t </div>\n\t\t\t\t</template>\n\t\t\t\t<template v-for="(item, index) in items">\n\t\t\t\t <div class="form-group" v-if="isPhone(item)">\n\t\t\t\t\t<sale-checkout-view-element-input-property-phone :item="item" :index="index"/>\n\t\t\t\t\t<sale-checkout-view-property-note_error v-if="isFailure(item)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:message="getErrorMessage(item)"/>\n\t\t\t\t </div>\n\t\t\t\t</template>\n\t\t\t\t<template v-for="(item, index) in items">\n\t\t\t\t <div class="form-group" v-if="isEmail(item)">\n\t\t\t\t\t<sale-checkout-view-element-input-property-text :item="item" :index="index" :autocomplete="\'email\'" />\n\t\t\t\t\t<sale-checkout-view-property-note_error v-if="isFailure(item)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:message="getErrorMessage(item)"/>\n\t\t\t\t </div>\n\t\t\t\t</template>\n\t\n\t\t\t\t<template v-for="(item, index) in items">\n\t\t\t\t <div class="form-group" v-if="isPhone(item) === false && isName(item) === false && isEmail(item) === false">\n\t\t\t\t\t<sale-checkout-view-element-input-property-text :item="item" :index="index" :autocomplete="\'off\'"/>\n\t\t\t\t\t<sale-checkout-view-property-note_error v-if="isFailure(item)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t:message="getErrorMessage(item)"/>\n\t\t\t\t </div>\n\t\t\t\t</template>\n\t\t</div>\n\t'});n.BitrixVue.component("sale-checkout-view-property-list_view",{props:["items","number"],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(", ")}},template:'\n\t\t<div class="checkout-basket-section">\n\t\t<h2 class="checkout-basket-title">{{localize.CHECKOUT_VIEW_PROPERTY_LIST_VIEW_SHIPPING_CONTACTS}}</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\x3c!--\t\t\t\t\t\t\t\t<div v-for="(item, index) in items" :key="index">{{item.name}}: <b>{{item.value}}</b></div>--\x3e\n\t\t\t\t\t\t\t\t<div>{{getPropertiesShort}}</div>\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","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"/>\n\t\t </template>\n\t\t <template v-else>\n\t\t <sale-checkout-view-property-list_view :items="items" :number="order.accountNumber"/>\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=property.bundle.map.js