%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.133.148.117 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/sale/checkout/view/user-consent/dist/ |
Upload File : |
this.BX = this.BX || {}; this.BX.Sale = this.BX.Sale || {}; this.BX.Sale.Checkout = this.BX.Sale.Checkout || {}; (function (exports,ui_vue,main_core,main_core_events,sale_checkout_const) { 'use strict'; function _templateObject() { var data = babelHelpers.taggedTemplateLiteral(["<div>", "</div>"]); _templateObject = function _templateObject() { return data; }; return data; } ui_vue.BitrixVue.component('sale-checkout-view-user_consent', { props: ['item'], methods: { getBlockHtml: function getBlockHtml() { var _this = this; var userConsent = { id: this.item.id, title: this.item.title, isLoaded: this.item.isLoaded, autoSave: this.item.autoSave, isChecked: this.item.isChecked, submitEventName: this.item.submitEventName, fields: this.item.params }; main_core.ajax.runComponentAction(sale_checkout_const.Component.bitrixSaleOrderCheckout, sale_checkout_const.RestMethod.saleEntityUserConsentRequest, { data: { fields: userConsent } }).then(function (response) { if (BX.type.isPlainObject(response.data) && BX.type.isNotEmptyString(response.data.html)) { var consent = response.data.html; if (BX.UserConsent !== undefined) { var wrapper = _this.$refs.consentDiv; wrapper.appendChild(main_core.Tag.render(_templateObject(), consent)); var control = BX.UserConsent.load(wrapper); BX.addCustomEvent(control, BX.UserConsent.events.accepted, function () { return main_core_events.EventEmitter.emit(sale_checkout_const.EventType.consent.accepted, {}); }); BX.addCustomEvent(control, BX.UserConsent.events.refused, function () { return main_core_events.EventEmitter.emit(sale_checkout_const.EventType.consent.refused, {}); }); } } }); } }, mounted: function mounted() { this.getBlockHtml(); }, // language=Vue template: "\n\t <div class=\"checkout-basket-section checkout-basket-section-consent\">\n\t\t<div ref=\"consentDiv\"/>\n </div>\n\t" }); }((this.BX.Sale.Checkout.View = this.BX.Sale.Checkout.View || {}),BX,BX,BX.Event,BX.Sale.Checkout.Const)); //# sourceMappingURL=user-consent.bundle.js.map