1(self.webpackChunkwar_lib_6=self.webpackChunkwar_lib_6||[]).push([[5693,1607],{2036:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var s=n(84121),r=n(70538),o=n(28560),i=n(70346);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,s.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class l{constructor(t){(0,s.Z)(this,"componentName",""),(0,s.Z)(this,"props",{}),(0,s.Z)(this,"globalContext",window.frames.top),(0,s.Z)(this,"renderContext",window.frames.top),(0,s.Z)(this,"reloadAppOnPageChange",!1),this.props=c(c({},this.props),t)}init(){this.globalHelper&&!this.reloadAppOnPageChange?this.globalHelper.app&&this.moveAppNodeToRenderContext():this.globalHelper={}}async loadComponentToGlobalContext(){const{globalHelper:t}=this;if(t.loadedComponent)return Promise.resolve();if(t.componentPromise)return t.componentPromise;t.componentPromise=this.asyncImportComponent();const{default:e}=await t.componentPromise;return t.loadedComponent=e,Promise.resolve()}async getComponent(){return this.globalHelper.loadedComponent||await this.loadComponentToGlobalContext(),this.globalHelper.loadedComponent}setRenderContext(){if(!(0,i.Z)())return;const{document:t}=this.globalContext,e=t.getElementsByName("content_frame")[0];e&&(this.renderContext=e.contentWindow)}moveAppNodeToRenderContext(){if(!(0,i.Z)())return;this.setRenderContext();const t=this.globalHelper.app.$el,e=this.renderContext.document;e.addEventListener("DOMContentLoaded",(()=>{e.body.contains(t)||e.body.append(t)}))}async initApp(){if(this.globalHelper.app)return;const t=await this.getComponent();this.setRenderContext();const e=this.renderContext.document.createElement("div");this.renderContext.document.body.append(e);const n=r.default.extend(t);this.globalHelper.app=new n({el:e,i18n:o.Z,propsData:c({},this.props)})}asyncImportComponent(){return Promise.resolve()}set globalHelper(t){this.globalContext[`_${this.componentName}`]=t}get globalHelper(){return this.globalContext[`_${this.componentName}`]}}},9809:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var s=n(84121);class r{constructor(t){this.value=t}ap(t){return t}bimap(t){return new r(t(this.value))}chain(){return this}map(){return this}either(t){return t(this.value)}}class o{constructor(t){this.value=t}ap(t){return this.chain((e=>t.map(e)))}bimap(t,e){return new o(e(this.value))}chain(t){return t(this.value)}map(t){return new o(t(this.value))}either(t,e){return e(this.value)}}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){(0,s.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class c{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/api/v2/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.domain=t,this.settings=e,this.language=e.language||window.warLng}async makeRequest(t){let{path:e,options:n={}}=t;const{messages:s}=this.settings;if(this.settings.isDemoMode&&n.method)return new r(new Error(null==s?void 0:s.demoError));let i;try{i=await fetch(this.domain+e,a({credentials:"include",headers:{warLng:this.language}},n))}catch(t){return new r(t)}return i.redirected&&window.location.replace(i.url),i.ok?new o(await i.json()):new r(await(async(t,e)=>{let n;try{const{errorMessage:s}=await t.json();n=s||e}catch(e){n=t.statusText}const s=new Error(n);return s.status=t.status,s.name="ApiError",s})(i,null==s?void 0:s.defaultErrorMsg))}post(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=e;return e instanceof FormData||(s=JSON.stringify(e)),this.makeRequest
1({path:t,options:a({method:"POST",body:s},n)})}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.makeRequest({path:t,options:e})}patch(t,e){return this.makeRequest({path:t,options:{method:"PATCH",body:JSON.stringify(e)}})}delete(t,e){return this.makeRequest({path:t,options:{method:"DELETE",body:JSON.stringify(e)}})}setLanguage(t){this.language=t}setSettings(t){return this.settings=t,this}}},4156:function(t,e,n){"use strict";var s=n(84121);class r{constructor(){(0,s.Z)(this,"overlayInstances",[]),this.onKeyup=this.onKeyup.bind(this)}static getInstance(){return this.instance||(this.instance=new this),this.instance}add(t){this.isEmptyInstances&&document.addEventListener("keyup",this.onKeyup),this.overlayInstances.push(t),this.setSidebarsOffset()}remove(t){this.overlayInstances=this.overlayInstances.filter((e=>e!==t)),this.setSidebarsOffset(),this.isEmptyInstances&&document.removeEventListener("keyup",this.onKeyup)}clear(){this.overlayInstances=[],document.removeEventListener("keyup",this.onKeyup)}onKeyup(t){let{key:e}=t;if("Escape"===e){var n;const t=this.overlayInstances[this.overlayInstances.length-1];null===(n=t[t.$options.onEscapeMethodName])||void 0===n||n.call(t)}}setSidebarsOffset(){this.sidebarsInstances.reverse().forEach(((t,e)=>{t.offset=e}))}static isSidebarInstance(t){return!!t.$options.isSidebar}get isEmptyInstances(){return 0===this.overlayInstances.length}
1get sidebarsInstances(){return this.overlayInstances.filter(r.isSidebarInstance)}}(0,s.Z)(r,"instance",void 0),e.Z=r},24180:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var s=n(76265),r=n.n(s),o=n(93379),i=n.n(o),a=n(87265),c=n.n(a),l={insert:"head",singleton:!1};i()(c(),l),c().locals;const p="shadow",u="shadow--open";r().addScrollableSelector("body *");var d=()=>{let t=document.querySelector(".shadow");return t||(t=document.createElement("div"),t.classList.add(p),t=document.body.insertBefore(t,document.body.children[0])),{show(){this.shadowElement.classList.add(u),r().disablePageScroll()},hide(){this.shadowElement.classList.remove(u),r().enablePageScroll()},moveUnder(t){const e=(null==t?void 0:t.parentNode)||document.body;this.shadowElement.style.zIndex=this.getZIndex(t),this.shadowElement.parentNode.removeChild(this.shadowElement),e.insertBefore(this.shadowElement,e.firstChild)},getZIndex(t){if(t){const{zIndex:e}=getComputedStyle(t);return e?e-1:101}return 101},shadowElement:t}},h={stack:[],shadow:null,push(t){this.shadow||(this.shadow=d()),this.shadow.moveUnder(t),this.stackIsEmpty&&this.shadow.show(),this.stack.push(t)},pop(){if(!this.shadow)return;this.stack.pop(),this.stackIsEmpty&&this.shadow.hide();const t=this.stack[this.stack.length-1];this.shadow.moveUnder(t)},clear(){this.stack.splice(0),this.pop()},get stackIsEmpty(){return 0===this.stack.length}}},80700:function(t,e,n){"use strict";n.d(e,{u:function(){return s},Y:function(){return r}});const s=768,r=1280},87656:function(t,e,n){"use strict";n.r(e),n.d(e,{isDesktop:function(){return i},isTablet:function(){return a},isMobile:function(){return c}});var s=n(61786),r=n(16730);const o=(0,s.Z)(),i=o===r.q5,a=o===r.EV,c=o===r.Jq},16730:function(t,e,n){"use strict";n.d(e,{q5:function(){return s},EV:function(){return r},Jq:function(){return o}});const s="desktop",r="tablet",o="mobile"},28560:function(t,e,n){"use strict";n.d(e,{$t:function(){return a}});var s=n(70538),r=n(17152);s.default.use(r.Z);const o=window.translations??{};delete window.translations;window.top.document.querySelectorAll('script[name="war-translations"]').forEach((t=>{t.remove()}));const i=new r.Z({locale:"en",messages:{en:o}});e.Z=i;const a=i.t.bind(i);i.tc.bind(i)},8911:function(t,e,n){"use strict";var s=n(84121),r=n(87656);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}e.Z={data:()=>function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,s.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},r)}},49996:function(t,e,n){"use strict";function s(t){return t.replace(/[-_](\w)/gu,((t,e)=>e?e.toUpperCase():""))}n.d(e,{e:function(){return s}})},61786:function(t,e,n){"use strict";var s=n(16730),r=n(80700),o=n(70346);e.Z=()=>{if((0,o.Z)())return s.q5;const t=window.innerWidth;let e;return e=t<r.u?s.Jq:t>=r.u&&t<r.Y?s.EV:s.q5,e}},3158:function(t,e,n){"use strict";function s(){const t=navigator.userAgent||navigator.vendor||window.opera;let e=!1;return(/iPad|iPhone|iPod/.test(t)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream&&(e=!0),e}n.d(e,{Z:function(){return s}})},70346:function(t,e){"use strict";e.Z=()=>window.location.pathname.includes("admin")},7856:function(t,e,n){"use strict";var s=n(84121),r=n(2036);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,s.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class a extends r.Z{constructor(t){super(t),(0,s.Z)(this,"componentName","NoticeMessages"),this.init()}init(){super.init(),this.deleteAllNotices()}async _showNotice(t,e){if(void 0===t||a.isAlreadyShown(null==e?void 0:e.uid))return null;this.globalHelper.app||await this.initApp();return await this.globalHelper.app.addMessage(i({message:t},e))}asyncImportComponent(){return Promise.all([n.e(1932),n.e(5595),n.e(6349)]).then(n.bind(n,96388))}static isAlreadyShown(t){return!("undefined"==typeof sessionStorage||!t)&&!!sessionStorage.getItem(t)}showNotice(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._showNotice.apply(this.globalContext[this.componentName],[...e])}showSuccessNotice(t,e){return this.showNotice(t,i({type:"success"},e))}showErrorNotice(t,e){return this.showNotice(t,i({type:"error",autoHide:!1},e))}showInfoNotice(t,e){return this.showNotice(t,i({type:"info"},e))}showWarningNotice(t,e){return this.showNotice(t,i({type:"warning",autoHide:!1},e))}deleteAllNotices(){var t;null===(t=this.globalHelper.app)||void 0===t||t.deleteAllNotices()}setMaxQuantityNotices(t){this.props.maxQuantityNotices=t}checkActiveNotices(){var t;return!(null===(t=this.globalHelper.app)||void 0===t||!t.notices.length)}}e.Z=new a({maxQuantityNotices:4})},87265:function(t,e,n){(e=n(23645)(!1)).push([t.id,".shadow{position:fixed;top:0;inset-inline:0;bottom:0;z-index:101;width:0;height:0;background-color:var(--color-bg-popup);opacity:0;transition:opacity .3s ease,width 0s ease .3s,height 0s ease .3s}.shadow--open{width:100%;height:100vh;opacity:1;transition:opacity .3s ease .01s}",""]),t.exports=e},15100:function(t,e,n){(e=n(23645)(!1)).push([t.id,".qr-payment[data-v-2112d713]{display:flex;flex-direction:column;gap:16px}@media only screen and (min-width:1280px){.qr-payment[data-v-2112d713]{flex-direction:row;gap:32px}}.qr-payment__image[data-v-2112d713]{width:300px;height:300px;object-fit:contain}@media (min-width:768px) and (max-width:1279px){.qr-payment__info-wrapper[data-v-2112d713]{padding-inline-start:24px}}@media only screen and (min-width:1280px){.qr-payment__info-wrapper[data-v-2112d713]{padding-top:32px}}.qr-payment__guide[data-v-2112d713] ol{list-style-position:inside;list-style-type:decimal}[data-v-2112d713] .qr-payment__summ{color:var(--color-accent)}",""]),t.exports=e},7911:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m}});var s=n(83235),r=n(8911),o=n(9809),i=n(7856);const a=new o.Z("");var c={name:"QrPaymentApp",components:{WModal:s.default},mixins:[r.Z],props:{settings:{type:Object,required:!0},messages:{type:Object,required:!0}},data:()=>({intervalId:null}),computed:{preparedGuideHTML(){const{guideHTML:t,paymentSumm:e}=this.settings;return t.replace("{summ}",`<span class="qr-payment__summ">${e}</span>`)}},created(){this.isMobile&&(window.location.href=this.settings.paymentUrl),this.initCheckTransactionStatusPolling()},beforeDestroy(){clearInterval(this.intervalId)},methods:{close(){this.$emit("close")},initCheckTransactionStatusPolling(){this.intervalId||(this.intervalId=setInterval(this.checkTransactionStatus,1e4))},async checkTransactionStatus(){(await a.get(this.settings.checkUrl)).either((t=>{let{message:e}=t;return i.Z.showErrorNotice(e)}),(t=>{let{data:{redirectUrl:e}}=t;e&&(clearInterval(this.intervalId),window.location.href=e)}))}}},l=n(93379),p=n.n(l),u=n(15100),d=n.n(u),h={insert:"head",singleton:!1},m=(p()(d(),h),d().locals,(0,n(51900).Z)(c,(function(){var t=this,e=t._self._c;return t.isMobile?t._e():e("WModal",{attrs:{width:"auto"},on:{close:t.close}},[e("div",{staticClass:"qr-payment"},[e("div",{staticClass:"qr-payment__image-wrapper"},[e("img",{staticClass:"qr-payment__image",attrs:{src:t.settings.qrImageSrc,alt:"qr"}})]),t._v(" "),e("div",{staticClass:"qr-payment__info-wrapper"},[e("h2",{staticClass:"wt-h-2 mb-4 qr-payment__title"},[t._v(t._s(t.messages.title))]),t._v(" "),e("div",{staticClass:"qr-payment__guide wt-control-m wtm-main",domProps:{innerHTML:t._s(t.preparedGuideHTML)}})])])])}
1),[],!1,null,"2112d713",null).exports)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.