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/payment-pay/components/dist/ |
Upload File : |
this.BX=this.BX||{};this.BX.Sale=this.BX.Sale||{};this.BX.Sale.PaymentPay=this.BX.Sale.PaymentPay||{};(function(t,e,n,s,a,i,o,p){"use strict";i.BitrixVue.component("sale-payment_pay-components-application-pay_system",{props:{options:Object},mixins:[n.MixinMethods],data:function t(){var n=new e.Settings(this.options);return{stageType:o.StageType,stages:this.prepareParamsStages(),stage:this.setStageType(),loading:false,paymentProcess:this.prepareParamsPaymentProcess(n)}},created:function t(){this.initPayment();this.subscribeToGlobalEvents()},methods:{initBackendProvider:function t(){this.backendProvider=new s.BackendProvider({returnUrl:this.paymentProcess.returnUrl,orderId:this.paymentProcess.orderId,accessCode:this.paymentProcess.accessCode})},prepareParamsStages:function t(){var n=new e.Settings(this.options);return{paySystemList:{paySystems:n.get("app.paySystems",[]),selectedPaySystem:null},paySystemErrors:{errors:[]},paySystemResult:{html:null,fields:null}}},setStageType:function t(){return o.StageType.list}},template:'\n\t\t<div class="salescenter-payment-pay-app">\n\t\t\t<template v-if="stage === stageType.list">\n\t\t\t\t<sale-payment_pay-components-payment_system-pay_system_list\n\t\t\t\t\t:paySystems="stages.paySystemList.paySystems"\n\t\t\t\t\t:selectedPaySystem="stages.paySystemList.selectedPaySystem"\n\t\t\t\t\t:loading="loading"\n\t\t\t\t\t@start-payment="startPayment($event)"/>\n\t\t\t</template>\n\t\t\t<template v-else>\n\t\t\t\t\x3c!--region popup/backdrop --\x3e\n\t\t\t\t<sale-payment_pay-components-payment_system-backdrop :paySystem="currentPS(stages.paySystemList.selectedPaySystem, stages.paySystemList.paySystems)">\n\t\t\t\t\t<template v-slot:main-content>\n\t\t\t\t\t\t<template v-if="stage === stageType.errors">\n\t\t\t\t\t\t\t<sale-payment_pay-components-payment_system-error_box :errors="stages.paySystemErrors.errors"/>\n\t\t\t\t\t\t</template>\n\n\t\t\t\t\t\t<template v-else-if="stage === stageType.result">\n\t\t\t\t\t\t\t<sale-payment_pay-components-payment_system-pay_system_result\n\t\t\t\t\t\t\t\t:html="stages.paySystemResult.html"\n\t\t\t\t\t\t\t\t:fields="stages.paySystemResult.fields">\n\t\t\t\t\t\t\t\t\t<template v-slot:default><sale-payment_pay-components-payment_system-reset_panel @reset="resetView()"/></template>\n\t\t\t\t\t\t\t</sale-payment_pay-components-payment_system-pay_system_result>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</template>\n\t\t\t\t</sale-payment_pay-components-payment_system-backdrop>\n\t\t\t\t\x3c!--endregion--\x3e\n\t\t\t</template>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-application-payment",{props:{options:Object},mixins:[n.MixinMethods],data:function t(){var n=new e.Settings(this.options);return{stageType:o.StageType,stages:this.prepareParamsStages(),stage:this.setStageType(),loading:false,paymentProcess:this.prepareParamsPaymentProcess(n)}},created:function t(){this.initPayment();this.subscribeToGlobalEvents()},methods:{initBackendProvider:function t(){this.backendProvider=new s.BackendProvider({returnUrl:this.paymentProcess.returnUrl,orderId:this.paymentProcess.orderId,accessCode:this.paymentProcess.accessCode})},prepareParamsStages:function t(){var n=new e.Settings(this.options);return{paymentInfo:{paySystem:n.get("app.paySystems",[])[0],title:n.get("app.title"),sum:n.get("payment.sumFormatted"),paid:n.get("payment.paid"),checks:n.get("payment.checks",[])},paySystemList:{selectedPaySystem:null},paySystemErrors:{errors:[]},paySystemResult:{html:null,fields:null}}},setStageType:function t(){return o.StageType.paymentInfo}},template:'\n\t\t<div class="salescenter-payment-pay-app">\n\t\t\t<sale-payment_pay-components-payment_system-payment_info\n v-if="stage === stageType.paymentInfo"\n\t\t\t\t:paySystem="stages.paymentInfo.paySystem"\n :title="stages.paymentInfo.title"\n\t\t\t\t:sum="stages.paymentInfo.sum"\n\t\t\t\t:paid="stages.paymentInfo.paid"\n\t\t\t\t:loading="loading"\n\t\t\t\t:checks="stages.paymentInfo.checks"\n @start-payment="startPayment($event)">\n\t\t\t</sale-payment_pay-components-payment_system-payment_info>\n <sale-payment_pay-components-payment_system-error_box\n v-if="stage === stageType.errors"\n :errors="stages.paySystemErrors.errors">\n \t<sale-payment_pay-components-payment_system-reset_panel @reset="resetView()"/>\n </sale-payment_pay-components-payment_system-error_box>\n <sale-payment_pay-components-payment_system-pay_system_result\n v-if="stage === stageType.result"\n :html="stages.paySystemResult.html"\n :fields="stages.paySystemResult.fields">\n \t<sale-payment_pay-components-payment_system-reset_panel @reset="resetView()"/>\n </sale-payment_pay-components-payment_system-pay_system_result>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-payment_info-button",{props:{loading:{type:Boolean,default:false,required:false}},mixins:[a.MixinPaymentInfoButton],template:'\n\t\t<button :class="classes" @click="onClick($event)">\n\t\t\t<slot></slot>\n\t\t</button>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-payment_info-pay_system_small_card",{props:{logo:String,name:String},template:'\n\t\t<div class="order-payment-operator">\n\t\t\t<img :src="logo" :alt="name" v-if="logo">\n\t\t\t<div class="order-payment-pay-system-name" v-else>{{ name }}</div>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-button",{props:{loading:{type:Boolean,default:false,required:false}},computed:{classes:function t(){return{"order-payment-method-item-button":true,btn:true,"btn-primary":true,"rounded-pill":true,"pay-mode":true,"order-payment-loader":this.loading}},buttonClasses:function t(){return{"loading-button-text":this.loading}}},mixins:[a.MixinButton],template:'\n\t\t<div :class="classes" @click="onClick($event)">\n\t\t\t<span :class="buttonClasses"><slot></slot></span>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-check",{props:{status:{type:String,default:"",required:false},link:{type:String,default:"",required:false},title:{type:String,required:true}},mixins:[a.MixinCheck],template:'\n\t\t<div class="mb-2" :class="{\'check-print\': processing}">\n\t\t\t<a :href="link" target="_blank" class="check-link" v-if="downloadable">{{ title }}</a>\n\t\t\t<span v-else>{{ title }}</span>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-error_box",{props:{errors:Array},computed:{localize:function t(){return Object.freeze(i.BitrixVue.getFilteredPhrases("PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_"))}},template:'\n\t\t<div>\n\t\t\t<div class="alert alert-danger">\n\t\t\t\t<slot name="errors-header">\n\t\t\t\t\t<div>{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_8 }}</div>\n\t\t\t\t</slot>\n\t\t\t\t<slot name="errors-footer">\n\t\t\t\t\t<div>{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_9 }}</div>\n\t\t\t\t</slot>\n\t\t\t</div>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-pay_system_row",{props:{loading:Boolean,name:String,logo:String,id:Number},computed:{localize:function t(){return Object.freeze(i.BitrixVue.getFilteredPhrases("PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_"))}},mixins:[a.MixinPaySystemRow],template:'\n\t\t<div class="order-pay-method-item-container pay-mode" @click="onClick()">\n\t\t\t<div class="order-pay-method-item-logo-block">\n\t\t\t\t<div class="order-pay-method-logo" :style="logoStyle"></div>\n\t\t\t</div>\n\t\t\t<div class="order-pay-method-text-block">\n\t\t\t\t<div class="order-pay-method-text">{{ name }}</div>\n\t\t\t</div>\n\t\t\t<sale-payment_pay-components-payment_system-button :loading="loading">{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_4 }}</sale-payment_pay-components-payment_system-button>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-pay_system_list",{props:{paySystems:{type:Array,default:[],required:false},selectedPaySystem:{type:Number,default:null,required:false},loading:{type:Boolean,default:false,required:false}},mixins:[a.MixinPaySystemList],template:'\n\t\t<div>\n\x3c!--\t\t\t<div class="page-section-title" v-if="title">{{ title }}</div>--\x3e\n\t\t\t<div class="order-payment-method-list">\n\t\t\t\t<slot>\n\t\t\t\t\t<sale-payment_pay-components-payment_system-pay_system_row\n\t\t\t\t\t\tv-for="paySystem in paySystems"\n\t\t\t\t\t\t:loading="isItemLoading(paySystem.ID)"\n\t\t\t\t\t\t:name="paySystem.NAME"\n\t\t\t\t\t\t:logo="paySystem.LOGOTIP"\n\t\t\t\t\t\t:id="paySystem.ID"\n\t\t\t\t\t\t@click="startPayment($event)"\n\t\t\t\t\t\t:key="paySystem.ID"\n\t\t\t\t\t/>\n\t\t\t\t</slot>\n\t\t\t</div>\n\x3c!-- <slot name="user-consent"></slot>--\x3e\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-pay_system_result",{props:{html:{type:String,default:null,required:false},fields:{type:Object,default:null,required:false}},computed:{localize:function t(){return Object.freeze(i.BitrixVue.getFilteredPhrases("PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_"))}},mounted:function t(){if(this.html){BX.html(this.$refs.paySystemResultTemplate,this.html)}},template:'\n\t\t<div class="payment-mobile-change-method">\n\t\t\t<template v-if="html">\n\t\t\t\t<div ref="paySystemResultTemplate"></div>\n\t\t\t</template>\n\t\t\t<template v-else>\n\t\t\t\t<div class="checkout-basket-section">\n\t\t\t\t\t<div class="page-section-title">{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_1 }}</div>\n\t\t\t\t\t<div class="checkout-basket-personal-order-info" v-if="fields">\n\t\t\t\t\t\t<div class="checkout-basket-personal-order-info-item" v-if="fields.SUM_WITH_CURRENCY">\n\t\t\t\t\t\t\t<span>{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_2 }}</span>\n\t\t\t\t\t\t\t<strong v-html="fields.SUM_WITH_CURRENCY"></strong>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="checkout-basket-personal-order-info-item" v-if="fields.PAY_SYSTEM_NAME">\n\t\t\t\t\t\t\t<span>{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_3 }}</span>\n\t\t\t\t\t\t\t<strong>{{ fields.PAY_SYSTEM_NAME }}</strong>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</template>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-payment_info",{props:{paySystem:Object,title:String,sum:String,loading:Boolean,paid:Boolean,checks:Array},computed:{localize:function t(){return Object.freeze(i.BitrixVue.getFilteredPhrases("PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_"))},totalSum:function t(){return this.localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_10.replace("#SUM#",this.sum)}},mixins:[a.MixinPaymentInfo],template:'\n\t\t<div>\n\t\t\t<div class="order-payment-container">\n\t\t\t\t<div class="order-payment-title" v-if="title">{{ title }}</div>\n\t\t\t\t<div class="order-payment-inner d-flex align-items-center justify-content-between">\n\t\t\t\t\t<sale-payment_pay-components-payment_system-payment_info-pay_system_small_card :name="paySystem.NAME" :logo="paySystem.LOGOTIP"/>\n\t\t\t\t\t<div class="order-payment-status d-flex align-items-center" v-if="paid">\n\t\t\t\t\t\t<div class="order-payment-status-ok"></div>\n\t\t\t\t\t\t<div>{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_5 }}</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="order-payment-price" v-html="totalSum"></div>\n\t\t\t\t</div>\n\t\t\t\t<hr v-if="checks.length > 0">\n\t\t\t\t<sale-payment_pay-components-payment_system-check\n\t\t\t\t\tv-for="check in checks" :key="check.id"\n\t\t\t\t\t:title="getCheckTitle(check)"\n\t\t\t\t\t:link="check.link"\n\t\t\t\t\t:status="check.status"/>\n\t\t\t\t<div class="order-payment-buttons-container" v-if="!paid">\n\t\t\t\t\t<sale-payment_pay-components-payment_system-payment_info-button\n\t\t\t\t\t\t:loading="loading"\n\t\t\t\t\t\t@click="onClick()">\n\t\t\t\t\t\t{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_4 }}\n\t\t\t\t\t</sale-payment_pay-components-payment_system-payment_info-button>\n\t\t\t\t</div>\t\n\t\t\t</div>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-reset_panel",{mixins:[a.MixinResetPanel],computed:{localize:function t(){return Object.freeze(i.BitrixVue.getFilteredPhrases("PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_"))}},template:'\n\t\t<div class="order-payment-buttons-container">\n\t\t\t<div class="order-basket-section-description py-3">\n\t\t\t\t{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_6 }}\n\t\t\t</div>\n\t\t\t<div class="order-basket-section-another-payment-button">\n\t\t\t\t<sale-payment_pay-components-payment_system-button @click="reset()">\n\t\t\t\t\t{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_7 }}\n\t\t\t\t</sale-payment_pay-components-payment_system-button>\n\t\t\t</div>\n\t\t</div>\t\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-backdrop",{props:["paySystem"],data:function t(){return{isShow:true}},methods:{close:function t(){this.isShow=false;p.EventEmitter.emit(o.EventType.payment.reset,{})}},computed:{localize:function t(){return Object.freeze(i.BitrixVue.getFilteredPhrases("PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_"))},getObjectClass:function t(){var e=["checkout-basket-item"];if(this.isShow===true){e.push("active-backdrop-open-change-sku active-popup-open")}return e},title:function t(){return BX.util.htmlspecialchars(this.paySystem.NAME)},logoStyle:function t(){var e="/bitrix/js/sale/payment-pay/images/default_logo.png";var n=this.paySystem.LOGOTIP||e;return'background-image: url("'.concat(BX.util.htmlspecialchars(n),'")')}},template:'\n\t\t<div :class=getObjectClass>\n\t\t\t<div class="checkout-basket-item-backdrop-wrapper js-backdrop-open-change-sku">\n\t\t\t\t<div class="checkout-basket-item-backdrop-overlay js-backdrop-open-change-sku"></div>\n\t\t\t\t<div class="checkout-basket-item-backdrop-container js-backdrop-open-change-sku">\n\t\t\t\t\t<div class="checkout-basket-item-detail-header justify-content-between align-items-center">\n\t\t\t\t\t\t<div id="bx_3966226736_424_7e1b8e3524755c391129a9d7e6f2d206_prebuy_swipe_btn"\n\t\t\t\t\t\t\t class="checkout-basket-item-detail-swipe-btn-container">\n\t\t\t\t\t\t\t<div class="checkout-basket-item-detail-swipe-btn"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="checkout-order-payment-close" @click="close()">{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_12 }}</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="checkout-basket-item-backdrop-inner">\n\t\t\t\t\t\t<div class="checkout-basket-item-backdrop-main">\n\t\t\t\t\t\t\t<div class="checkout-order-payment-title">\n\t\t\t\t\t\t\t\t<div class="checkout-basket-pay-method-item-logo-block">\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t:style=logoStyle\n\t\t\t\t\t\t\t\t\t\tclass="checkout-basket-pay-method-logo"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="checkout-order-payment-title-text">{{title}}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<slot name="main-content"></slot>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t'});i.BitrixVue.component("sale-payment_pay-components-payment_system-popup",{props:["paySystem"],data:function t(){return{isShow:true}},methods:{close:function t(){this.isShow=false;p.EventEmitter.emit(o.EventType.payment.reset,{})}},computed:{localize:function t(){return Object.freeze(i.BitrixVue.getFilteredPhrases("PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_"))},getObjectClass:function t(){var e=["checkout-order-payment-popup-wrap"];if(this.isShow===true){e.push("active-popup-open")}return e},logoStyle:function t(){var e=this.paySystem.LOGOTIP;return'background-image: url("'.concat(BX.util.htmlspecialchars(e),'")')}},template:'\n\t<div :class=getObjectClass>\n\t\t\t<div class="checkout-order-payment-popup-overlay" @click="close()"/>\n\t\t\t<div class="checkout-order-payment-popup">\n\t\t\t\t<div class="checkout-order-payment-popup-head">\n\t\t\t\t\t<div class="checkout-order-payment-close" @click="close()">{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_12 }}</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="checkout-order-payment-popup-main">\n\t\t\t\t\t<div class="checkout-order-payment-title">\n\t\t\t\t\t\t<div class="checkout-basket-pay-method-item-logo-block">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t:style=logoStyle\n\t\t\t\t\t\t\t\tclass="checkout-basket-pay-method-logo"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="checkout-order-payment-content">\n\t\t\t\t\t\t<slot name="main-content"></slot>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="checkout-order-payment-btn-container">\n\t\t\t\t\t\t<button class="btn btn-primary rounded-pill" @click="close()">{{ localize.PAYMENT_PAY_PAYMENT_SYSTEM_COMPONENTS_13 }}</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t</div>'})})(this.BX.Sale.PaymentPay.Components=this.BX.Sale.PaymentPay.Components||{},BX.Sale.PaymentPay.Lib,BX.Sale.PaymentPay.Mixins.Application,BX.Sale.PaymentPay.BackendProvider,BX.Sale.PaymentPay.Mixins.PaymentSystem,BX,BX.Sale.PaymentPay.Const,BX.Event); //# sourceMappingURL=registry.bundle.map.js