@everymatrix/cashier-method-details 1.24.7 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -3,4 +3,5 @@
|
|
3
3
|
|
4
4
|
| Version | Release date | Impacted areas | Changes |
|
5
5
|
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
6
|
+
| 1.25.0 | Fri Jan 26 2024 | cashier-method-details | fix(GMMMFE-764)(cashier-method-details): fix displaying correlated fields, translationurl optional |
|
6
7
|
| 1.24.1 | Tue Jan 16 2024 | cashier-method-details | feat(GMMMFE-743)(cashier-method-details): add qr generator, link field type, style checkbox |
|
@@ -656,7 +656,7 @@ this.formats=Nr(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.
|
|
656
656
|
// and Intl.DateTimeFormat instances.
|
657
657
|
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const $r={},Dr=(e,t,r)=>r?(t in $r||($r[t]={}),e in $r[t]||($r[t][e]=r),r):r,Ur=(e,t)=>{if(null==t)return;if(t in $r&&e in $r[t])return $r[t][e];const r=pn(t);for(let n=0;n<r.length;n++){const o=Vr(r[n],e);if(o)return Dr(e,t,o)}};let Fr;const Gr=tt({});function jr(e){return e in Fr}function Vr(e,t){if(!jr(e))return null;const r=function(e){return Fr[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function zr(e,...t){delete $r[e],Gr.update((r=>(r[e]=ht.all([r[e]||{},...t]),r)))}rt([Gr],(([e])=>Object.keys(e))),Gr.subscribe((e=>Fr=e));const Xr={};function Wr(e){return Xr[e]}function Kr(e){return null!=e&&pn(e).some((e=>{var t;return null==(t=Wr(e))?void 0:t.size}))}function qr(e,t){const r=Promise.all(t.map((t=>(function(e,t){Xr[e].delete(t),0===Xr[e].size&&delete Xr[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>zr(e,...t)))}const Zr={};function Yr(e){if(!Kr(e))return e in Zr?Zr[e]:Promise.resolve();const t=function(e){return pn(e).map((e=>{const t=Wr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Zr[e]=Promise.all(t.map((([e,t])=>qr(e,t)))).then((()=>{if(Kr(e))return Yr(e);delete Zr[e]})),Zr[e]}const Qr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Jr(){return Qr}const en=tt(!1);var tn=Object.defineProperty,rn=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,ln=(e,t,r)=>t in e?tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let cn;const un=tt(null);function hn(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function pn(e,t=Jr().fallbackLocale){const r=hn(e);return t?[...new Set([...r,...hn(t)])]:r}function fn(){return null!=cn?cn:void 0}un.subscribe((e=>{cn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const dn=(mn=((e,t)=>{for(var r in t||(t={}))sn.call(t,r)&&ln(e,r,t[r]);if(on)for(var r of on(t))an.call(t,r)&&ln(e,r,t[r]);return e})({},un),rn(mn,nn({set:e=>{if(e&&function(e){if(null==e)return;const t=pn(e);for(let e=0;e<t.length;e++){const r=t[e];if(jr(r))return r}}(e)&&Kr(e)){const{loadingDelay:t}=Jr();let r;return"undefined"!=typeof window&&null!=fn()&&t?r=window.setTimeout((()=>en.set(!0)),t):en.set(!0),Yr(e).then((()=>{un.set(e)})).finally((()=>{clearTimeout(r),en.set(!1)}))}return un.set(e)}})));var mn;const yn=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var bn=Object.defineProperty,gn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,wn=(e,t,r)=>t in e?bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tn=(e,t)=>{for(var r in t||(t={}))vn.call(t,r)&&wn(e,r,t[r]);if(gn)for(var r of gn(t))En.call(t,r)&&wn(e,r,t[r]);return e},_n=(e,t)=>{var r={};for(var n in e)vn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&gn)for(var n of gn(e))t.indexOf(n)<0&&En.call(e,n)&&(r[n]=e[n]);return r};const Cn=(e,t)=>{const{formats:r}=Jr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bn=yn((e=>{var t=e,{locale:r,format:n}=t,o=_n(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=Cn("number",n)),new Intl.NumberFormat(r,o)})),xn=yn((e=>{var t=e,{locale:r,format:n}=t,o=_n(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=Cn("date",n):0===Object.keys(o).length&&(o=Cn("date","short")),new Intl.DateTimeFormat(r,o)})),An=yn((e=>{var t=e,{locale:r,format:n}=t,o=_n(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=Cn("time",n):0===Object.keys(o).length&&(o=Cn("time","short")),new Intl.DateTimeFormat(r,o)})),Ln=yn((
|
658
658
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
659
|
-
(e,t=fn())=>new Ir(e,t,Jr().formats,{ignoreTag:Jr().ignoreTag}))),Hn=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=fn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ur(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(i=null!=(o=null==(n=(r=Jr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?o:c)?i:e;if(!a)return u;let h=u;try{h=Ln(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Sn=(e,t)=>((e={})=>{var t=e,{locale:r=fn()}=t,n=_n(t,["locale"]);return An(Tn({locale:r},n))})(t).format(e),Pn=(e,t)=>((e={})=>{var t=e,{locale:r=fn()}=t,n=_n(t,["locale"]);return xn(Tn({locale:r},n))})(t).format(e),Mn=(e,t)=>((e={})=>{var t=e,{locale:r=fn()}=t,n=_n(t,["locale"]);return Bn(Tn({locale:r},n))})(t).format(e),On=(e,t=fn())=>Ur(e,t),Rn=rt([dn,Gr],(()=>Hn));rt([dn],(()=>Sn)),rt([dn],(()=>Pn)),rt([dn],(()=>Mn)),rt([dn,Gr],(()=>On)),window.emWidgets={topic:(e,t=0)=>{if(-1==Qe.indexOf(e)){let r=new Ye(t);Je[e]=r,Qe.push(e)}return Je[e]}};function Nn(e,t){zr(e,t)}const kn={en:{loading:"Loading...",amountLabel:"Amount",makeDepositButton:"Deposit",confirmDepositText:"Are you sure you want to deposit",confirmDepositButton:"Ok",redirectTitle:"You are redirected to the payment's provider page",redirectMessage:"Please complete your transaction on the payment's provider page.",backToPayment:"Close",retryText:"Please note that your popup blocker may prevent the payment window from appearing",retryButton:"RETRY",processingButton:"Processing...",generalMin:"Min",generalMax:"Max",amountPlaceholder:"0.00",change:"Change"}};function In(e,t){zr(e,t)}const $n={en:{backButton:"Back"}};
|
659
|
+
(e,t=fn())=>new Ir(e,t,Jr().formats,{ignoreTag:Jr().ignoreTag}))),Hn=(e,t={})=>{var r,n,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=fn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ur(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(i=null!=(o=null==(n=(r=Jr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?o:c)?i:e;if(!a)return u;let h=u;try{h=Ln(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Sn=(e,t)=>((e={})=>{var t=e,{locale:r=fn()}=t,n=_n(t,["locale"]);return An(Tn({locale:r},n))})(t).format(e),Pn=(e,t)=>((e={})=>{var t=e,{locale:r=fn()}=t,n=_n(t,["locale"]);return xn(Tn({locale:r},n))})(t).format(e),Mn=(e,t)=>((e={})=>{var t=e,{locale:r=fn()}=t,n=_n(t,["locale"]);return Bn(Tn({locale:r},n))})(t).format(e),On=(e,t=fn())=>Ur(e,t),Rn=rt([dn,Gr],(()=>Hn));rt([dn],(()=>Sn)),rt([dn],(()=>Pn)),rt([dn],(()=>Mn)),rt([dn,Gr],(()=>On)),window.emWidgets={topic:(e,t=0)=>{if(-1==Qe.indexOf(e)){let r=new Ye(t);Je[e]=r,Qe.push(e)}return Je[e]}};function Nn(e,t){zr(e,t)}const kn={en:{loading:"Loading...",amountLabel:"Amount",makeDepositButton:"Deposit",confirmDepositText:"Are you sure you want to deposit",confirmDepositButton:"Ok",redirectTitle:"You are redirected to the payment's provider page",redirectMessage:"Please complete your transaction on the payment's provider page.",backToPayment:"Close",retryText:"Please note that your popup blocker may prevent the payment window from appearing",retryButton:"RETRY",processingButton:"Processing...",generalMin:"Min",generalMax:"Max",amountPlaceholder:"0.00",change:"Change"}};function In(e,t){zr(e,t)}const $n={en:{backButton:"Back"},hr:{backButton:"Natrag"}};
|
660
660
|
/* ../cashier-iframe-redirect/src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */function Dn(t){let r,n,o,i,s,l,c,u,d,v,T,_,B=/*$_*/t[1]("backButton")+"";return{c(){r=m("div"),n=m("div"),o=y("svg"),i=y("path"),s=g(),l=m("span"),c=b(B),u=g(),d=m("iframe"),this.c=e,w(i,"fill-rule","evenodd"),w(i,"clip-rule","evenodd"),w(i,"d","M12.5632 3.47776C12.4787 3.50132 12.3362 3.57499 12.2465 3.64147C12.1567 3.708 10.8069 5.0421 9.24694 6.6062C6.11944 9.74186 6.25999 9.58198 6.25999 10.0036C6.25999 10.4243 6.13093 10.2783 9.34296 13.4902C12.4449 16.5921 12.356 16.5115 12.7278 16.5555C13.1855 16.6098 13.6413 16.2584 13.7301 15.783C13.7612 15.6163 13.7212 15.3394 13.6437 15.1846C13.6158 15.1289 12.451 13.9396 11.0553 12.5417L8.51768 9.99999L11.0553 7.45831C12.451 6.06042 13.6158 4.87108 13.6437 4.81538C13.7729 4.55745 13.7703 4.20054 13.6374 3.94268C13.4469 3.57304 12.9668 3.36526 12.5632 3.47776Z"),w(i,"fill","#111111"),w(o,"xmlns","http://www.w3.org/2000/svg"),w(o,"width","20"),w(o,"height","20"),w(o,"viewBox","0 0 20 20"),w(o,"fill","none"),w(n,"class","BackButton"),a(d.src,v=/*iframeurl*/t[0])||w(d,"src",v),w(d,"frameborder","0"),w(r,"class","CashierRedirectIframe")},m(e,a){p(e,r,a),h(r,n),h(n,o),h(o,i),h(n,s),h(n,l),h(l,c),h(r,u),h(r,d),T||(_=E(n,"click",/*close*/t[2]),T=!0)},p(e,[t]){/*$_*/2&t&&B!==(B=/*$_*/e[1]("backButton")+"")&&C(c,B),/*iframeurl*/1&t&&!a(d.src,v=/*iframeurl*/e[0])&&w(d,"src",v)},i:e,o:e,d(e){e&&f(r),T=!1,_()}}}function Un(e,t,r){let n;c(e,Rn,(e=>r(1,n=e)));let{lang:o="en"}=t,{iframeurl:i}=t,{translationurl:s=""}=t;P();Object.keys($n).forEach((e=>{In(e,$n[e])}));const a=()=>{var e;e=o,dn.set(e)};return e.$$set=e=>{"lang"in e&&r(3,o=e.lang),"iframeurl"in e&&r(0,i=e.iframeurl),"translationurl"in e&&r(4,s=e.translationurl)},e.$$.update=()=>{/*lang*/8&e.$$.dirty&&o&&a(),/*translationurl*/16&e.$$.dirty&&s&&(()=>{if(s)fetch(s).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{In(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[i,n,()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},o,s]}
|
661
661
|
/* ../cashier-confirm-modal/src/CashierConfirmModal.svelte generated by Svelte v3.59.2 */
|
662
662
|
function Fn(t){let r,o,i,s,a,l,c,u,d,y,b,v;return{c(){r=m("div"),o=m("div"),i=m("div"),s=m("slot"),a=g(),l=m("slot"),c=g(),u=m("span"),u.innerHTML='<slot name="confirm"></slot>',d=g(),y=m("span"),y.innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',this.c=e,w(s,"name","title"),w(s,"class","CashierModalTitle"),w(l,"name","text"),w(l,"class","CashierModalText"),w(u,"class","ModalOkBtn"),w(u,"role","button"),w(y,"class","ModalCloseBtn"),w(y,"role","button"),w(i,"class","CashierModalContainer"),w(i,"part","CashierModalContainer"),w(o,"class","CashierModalWindow"),w(o,"part","CashierModalWindow"),w(o,"id","Modal"),w(r,"part","CustomStylingContainer")},m(e,n){p(e,r,n),h(r,o),h(o,i),h(i,s),h(i,a),h(i,l),h(i,c),h(i,u),h(i,d),h(i,y),b||(v=[E(u,"click",/*confirm*/t[1]),E(y,"click",/*close*/t[0])],b=!0)},p:e,i:e,o:e,d(e){e&&f(r),b=!1,n(v)}}}function Gn(e){const t=()=>{dispatchEvent(new CustomEvent("closeModal",{bubbles:!0,cancelable:!0,composed:!0}))};return[t,()=>{dispatchEvent(new CustomEvent("confirmModal",{bubbles:!0,cancelable:!0,composed:!0})),t()}]}!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierRedirectIframe{height:inherit;width:inherit}iframe{height:100%;width:100%;background:rgba(0, 0, 0, 0.1)}.BackButton{position:absolute;display:flex;align-items:center;padding:8px 8px 8px 4px;margin:8px;border-radius:2px;background:rgba(0, 0, 0, 0.1);justify-content:center;cursor:pointer}",this.shadowRoot.appendChild(t),X(this,{target:this.shadowRoot,props:A(this.attributes),customElement:!0},Un,Dn,i,{lang:3,iframeurl:0,translationurl:4},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),F()))}static get observedAttributes(){return["lang","iframeurl","translationurl"]}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),F()}get iframeurl(){return this.$$.ctx[0]}set iframeurl(e){this.$$set({iframeurl:e}),F()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),F()}});
|
@@ -664,76 +664,76 @@ function Fn(t){let r,o,i,s,a,l,c,u,d,y,b,v;return{c(){r=m("div"),o=m("div"),i=m(
|
|
664
664
|
function jn(t){let r,n,o,i,s,a,l,c;return{c(){r=m("div"),n=m("span"),o=b(/*text*/t[0]),i=g(),s=m("button"),a=b(/*button*/t[1]),this.c=e,w(r,"class","cashier-notifications")},m(e,u){p(e,r,u),h(r,n),h(n,o),h(r,i),h(r,s),h(s,a),l||(c=E(s,"click",/*notificationClick*/t[2]),l=!0)},p(e,[t]){/*text*/1&t&&C(o,/*text*/e[0]),/*button*/2&t&&C(a,/*button*/e[1])},i:e,o:e,d(e){e&&f(r),l=!1,c()}}}function Vn(e,t,r){let{text:n}=t,{button:o}=t;return e.$$set=e=>{"text"in e&&r(0,n=e.text),"button"in e&&r(1,o=e.button)},[n,o,()=>{dispatchEvent(new CustomEvent("notificationButtonClick",{bubbles:!0,cancelable:!0,composed:!0}))}]}!customElements.get("cashier-confirm-modal")&&customElements.define("cashier-confirm-modal",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.1)}.CashierModalWindow .CashierModalContainer{width:500px;display:flex;gap:20px;align-items:center;position:relative;padding:15px;min-height:200px;box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.1);justify-content:center;border-radius:10px;flex-direction:column;background-color:#fff}.CashierModalWindow .ModalOkBtn{color:#FFF;display:flex;align-items:center;justify-content:center;font-size:14px;font-style:normal;font-weight:400;height:46px;border-radius:50px;line-height:normal;border:none;background-color:rgb(126, 197, 30);width:100%;margin:12px 0;cursor:pointer}.CashierModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:-50px;right:-50px;padding:6px;border-radius:50%;color:#FFFFFF;background:rgba(84, 77, 77, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.CashierModalWindow .ModalCloseBtn svg{width:32px;height:32px}.CashierModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:30px}.CashierModalContainer .ModalCloseBtn{top:-30px;right:-30px}.CashierModalContainer .ModalCloseBtn svg{width:20px;height:20px}}",this.shadowRoot.appendChild(t),X(this,{target:this.shadowRoot,props:A(this.attributes),customElement:!0},Gn,Fn,i,{},null),e&&e.target&&p(e.target,this,e.anchor)}});!customElements.get("cashier-notifications")&&customElements.define("cashier-notifications",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent='.cashier-notifications{position:absolute;margin:12px 0;background-color:rgb(17, 17, 17);color:rgb(255, 255, 255);display:flex;border-radius:4px;align-items:center;gap:12px;padding:12px 15px;min-height:65px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.cashier-notifications span,.cashier-notifications button{font-family:"Roboto", sans-serif;border:none;font-variant:normal}.cashier-notifications span{line-height:normal}.cashier-notifications button{color:rgb(126, 197, 30);background-color:rgb(17, 17, 17);cursor:pointer;font-size:14px;font-style:normal;font-weight:700}',this.shadowRoot.appendChild(t),X(this,{target:this.shadowRoot,props:A(this.attributes),customElement:!0},Vn,jn,i,{text:0,button:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),F()))}static get observedAttributes(){return["text","button"]}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),F()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),F()}});
|
665
665
|
/* src/CashierMethodDetails.svelte generated by Svelte v3.59.2 */
|
666
666
|
const{document:zn,window:Xn}=u;function Wn(e,t,r){const n=e.slice();return n[71]=t[r],n[72]=t,n[73]=r,n}function Kn(e,t,r){const n=e.slice();return n[74]=t[r],n}
|
667
|
-
// (
|
667
|
+
// (343:2) {#if selectedPaymentMethod.Name}
|
668
668
|
function qn(e){let t,r,n,o,i,s,l,c,u,y,v,T,_,B,x,A,L,H,S,P=/*selectedPaymentMethod*/e[10].Label+"",M=/*mobileView*/e[8]&&Zn(e),O=!/*selectedPaymentMethod*/e[10].HideAmountField&&Yn(e),R=/*fields*/e[11],N=[];for(let t=0;t<R.length;t+=1)N[t]=yo(Wn(e,R,t));function k(e,t){/*isProcessingTxn*/
|
669
|
-
return e[18]?bo:go}let I=k(e),$=I(e),D=/*showRetryNotification*/e[17]&&vo(e),U=/*showRedirectNotification*/e[15]&&Eo(e);return{c(){t=m("div"),r=m("form"),n=m("div"),o=m("div"),i=m("div"),s=m("img"),u=g(),y=m("div"),v=b(P),T=g(),M&&M.c(),_=g(),O&&O.c(),B=g();for(let e=0;e<N.length;e+=1)N[e].c();x=g(),$.c(),A=g(),D&&D.c(),L=g(),U&&U.c(),a(s.src,l=/*selectedPaymentMethod*/e[10].Logos[0].LogoUrl)||w(s,"src",l),w(s,"alt",c=/*selectedPaymentMethod*/e[10].Label),w(i,"class","SelectedLogoWrapper"),w(y,"class","SelectedLogoDescription"),w(o,"class","form-logo"),w(n,"class","FieldWrapper"),w(t,"class","MethodsDetails")},m(a,l){p(a,t,l),h(t,r),h(r,n),h(n,o),h(o,i),h(i,s),h(o,u),h(o,y),h(y,v),h(o,T),M&&M.m(o,null),h(n,_),O&&O.m(n,null),h(r,B);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(r,null);var c;h(r,x),$.m(r,null),h(r,A),D&&D.m(r,null),h(t,L),U&&U.m(t,null),H||(S=E(r,"submit",(c=/*prepareTxn*/e[
|
669
|
+
return e[18]?bo:go}let I=k(e),$=I(e),D=/*showRetryNotification*/e[17]&&vo(e),U=/*showRedirectNotification*/e[15]&&Eo(e);return{c(){t=m("div"),r=m("form"),n=m("div"),o=m("div"),i=m("div"),s=m("img"),u=g(),y=m("div"),v=b(P),T=g(),M&&M.c(),_=g(),O&&O.c(),B=g();for(let e=0;e<N.length;e+=1)N[e].c();x=g(),$.c(),A=g(),D&&D.c(),L=g(),U&&U.c(),a(s.src,l=/*selectedPaymentMethod*/e[10].Logos[0].LogoUrl)||w(s,"src",l),w(s,"alt",c=/*selectedPaymentMethod*/e[10].Label),w(i,"class","SelectedLogoWrapper"),w(y,"class","SelectedLogoDescription"),w(o,"class","form-logo"),w(n,"class","FieldWrapper"),w(t,"class","MethodsDetails")},m(a,l){p(a,t,l),h(t,r),h(r,n),h(n,o),h(o,i),h(i,s),h(o,u),h(o,y),h(y,v),h(o,T),M&&M.m(o,null),h(n,_),O&&O.m(n,null),h(r,B);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(r,null);var c;h(r,x),$.m(r,null),h(r,A),D&&D.m(r,null),h(t,L),U&&U.m(t,null),H||(S=E(r,"submit",(c=/*prepareTxn*/e[22],function(e){
|
670
670
|
// @ts-ignore
|
671
|
-
return e.preventDefault(),c.call(this,e)})),H=!0)},p(e,i){if(/*selectedPaymentMethod*/1024&i[0]&&!a(s.src,l=/*selectedPaymentMethod*/e[10].Logos[0].LogoUrl)&&w(s,"src",l),/*selectedPaymentMethod*/1024&i[0]&&c!==(c=/*selectedPaymentMethod*/e[10].Label)&&w(s,"alt",c),/*selectedPaymentMethod*/1024&i[0]&&P!==(P=/*selectedPaymentMethod*/e[10].Label+"")&&C(v,P),/*mobileView*/e[8]?M?M.p(e,i):(M=Zn(e),M.c(),M.m(o,null)):M&&(M.d(1),M=null),/*selectedPaymentMethod*/e[10].HideAmountField?O&&(O.d(1),O=null):O?O.p(e,i):(O=Yn(e),O.c(),O.m(n,null)),/*fields, FieldTypes, prepareFields, openedLookup, showLookup, openUrlInNewTab, qrCodeContainer, showField*/
|
672
|
-
// (
|
673
|
-
function Zn(e){let t,r,n,o,i=/*$_*/e[
|
674
|
-
// (
|
675
|
-
function Yn(e){let t,r,n,o,i,s=/*$_*/e[
|
676
|
-
return e[10].IsAmountConfigurable?Jn:Qn}let l=a(e),c=l(e);return{c(){t=m("div"),r=m("label"),n=m("span"),o=b(s),i=g(),c.c(),w(n,"class","Required"),w(t,"class","Amount")},m(e,s){p(e,t,s),h(t,r),h(r,n),h(n,o),h(r,i),c.m(r,null)},p(e,t){/*$_*/
|
677
|
-
// (
|
671
|
+
return e.preventDefault(),c.call(this,e)})),H=!0)},p(e,i){if(/*selectedPaymentMethod*/1024&i[0]&&!a(s.src,l=/*selectedPaymentMethod*/e[10].Logos[0].LogoUrl)&&w(s,"src",l),/*selectedPaymentMethod*/1024&i[0]&&c!==(c=/*selectedPaymentMethod*/e[10].Label)&&w(s,"alt",c),/*selectedPaymentMethod*/1024&i[0]&&P!==(P=/*selectedPaymentMethod*/e[10].Label+"")&&C(v,P),/*mobileView*/e[8]?M?M.p(e,i):(M=Zn(e),M.c(),M.m(o,null)):M&&(M.d(1),M=null),/*selectedPaymentMethod*/e[10].HideAmountField?O&&(O.d(1),O=null):O?O.p(e,i):(O=Yn(e),O.c(),O.m(n,null)),/*fields, FieldTypes, prepareFields, openedLookup, showLookup, openUrlInNewTab, qrCodeContainer, showField*/52959361&i[0]){let t;for(R=/*fields*/e[11],t=0;t<R.length;t+=1){const n=Wn(e,R,t);N[t]?N[t].p(n,i):(N[t]=yo(n),N[t].c(),N[t].m(r,x))}for(;t<N.length;t+=1)N[t].d(1);N.length=R.length}I===(I=k(e))&&$?$.p(e,i):($.d(1),$=I(e),$&&($.c(),$.m(r,A))),/*showRetryNotification*/e[17]?D?D.p(e,i):(D=vo(e),D.c(),D.m(r,null)):D&&(D.d(1),D=null),/*showRedirectNotification*/e[15]?U?U.p(e,i):(U=Eo(e),U.c(),U.m(t,null)):U&&(U.d(1),U=null)},d(e){e&&f(t),M&&M.d(),O&&O.d(),d(N,e),$.d(),D&&D.d(),U&&U.d(),H=!1,S()}}}
|
672
|
+
// (354:12) {#if mobileView}
|
673
|
+
function Zn(e){let t,r,n,o,i=/*$_*/e[20]("change")+"";return{c(){t=m("div"),r=b(i),w(t,"class","ChangePaymeth")},m(i,s){p(i,t,s),h(t,r),n||(o=E(t,"click",/*click_handler*/e[34]),n=!0)},p(e,t){/*$_*/1048576&t[0]&&i!==(i=/*$_*/e[20]("change")+"")&&C(r,i)},d(e){e&&f(t),n=!1,o()}}}
|
674
|
+
// (358:10) {#if !selectedPaymentMethod.HideAmountField}
|
675
|
+
function Yn(e){let t,r,n,o,i,s=/*$_*/e[20]("amountLabel")+"";function a(e,t){/*selectedPaymentMethod*/
|
676
|
+
return e[10].IsAmountConfigurable?Jn:Qn}let l=a(e),c=l(e);return{c(){t=m("div"),r=m("label"),n=m("span"),o=b(s),i=g(),c.c(),w(n,"class","Required"),w(t,"class","Amount")},m(e,s){p(e,t,s),h(t,r),h(r,n),h(n,o),h(r,i),c.m(r,null)},p(e,t){/*$_*/1048576&t[0]&&s!==(s=/*$_*/e[20]("amountLabel")+"")&&C(o,s),l===(l=a(e))&&c?c.p(e,t):(c.d(1),c=l(e),c&&(c.c(),c.m(r,null)))},d(e){e&&f(t),c.d()}}}
|
677
|
+
// (372:14) {:else}
|
678
678
|
function Qn(e){let t,r,n,o;return{c(){t=m("span"),r=b(/*amount*/e[1]),n=g(),o=b(/*currency*/e[5]),w(t,"class","NonConfigurableAmount")},m(e,i){p(e,t,i),h(t,r),h(t,n),h(t,o)},p(e,t){/*amount*/2&t[0]&&C(r,/*amount*/e[1]),/*currency*/32&t[0]&&C(o,/*currency*/e[5])},d(e){e&&f(t)}}}
|
679
|
-
// (
|
680
|
-
function Jn(e){let t,r,n,o,i,s,a=/*selectedPaymentMethod*/e[10].DisplayCurrency&&eo(e);return{c(){t=m("input"),n=g(),a&&a.c(),o=v(),w(t,"type","number"),w(t,"placeholder",r=/*$_*/e[
|
681
|
-
// (
|
682
|
-
function eo(e){let t,r,n,o,i=/*selectedPaymentMethod*/e[10].DisplayCurrency.MinAmountLimit?`${/*$_*/e[
|
683
|
-
// (
|
679
|
+
// (364:14) {#if selectedPaymentMethod.IsAmountConfigurable}
|
680
|
+
function Jn(e){let t,r,n,o,i,s,a=/*selectedPaymentMethod*/e[10].DisplayCurrency&&eo(e);return{c(){t=m("input"),n=g(),a&&a.c(),o=v(),w(t,"type","number"),w(t,"placeholder",r=/*$_*/e[20]("amountPlaceholder"))},m(r,l){p(r,t,l),B(t,/*amount*/e[1]),p(r,n,l),a&&a.m(r,l),p(r,o,l),i||(s=E(t,"input",/*input_input_handler*/e[35]),i=!0)},p(e,n){/*$_*/1048576&n[0]&&r!==(r=/*$_*/e[20]("amountPlaceholder"))&&w(t,"placeholder",r),/*amount*/2&n[0]&&_(t.value)!==/*amount*/e[1]&&B(t,/*amount*/e[1]),/*selectedPaymentMethod*/e[10].DisplayCurrency?a?a.p(e,n):(a=eo(e),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(e){e&&f(t),e&&f(n),a&&a.d(e),e&&f(o),i=!1,s()}}}
|
681
|
+
// (366:16) {#if selectedPaymentMethod.DisplayCurrency}
|
682
|
+
function eo(e){let t,r,n,o,i=/*selectedPaymentMethod*/e[10].DisplayCurrency.MinAmountLimit?`${/*$_*/e[20]("generalMin")} ${/*selectedPaymentMethod*/e[10].DisplayCurrency.MinAmountLimit} ${/*currency*/e[5]}`:"",s=/*selectedPaymentMethod*/e[10].DisplayCurrency.MaxAmountLimit?`/ ${/*$_*/e[20]("generalMax")} ${/*selectedPaymentMethod*/e[10].DisplayCurrency.MaxAmountLimit} ${/*currency*/e[5]}`:"";return{c(){t=m("span"),r=b(i),n=g(),o=b(s),w(t,"class","AmountLimits")},m(e,i){p(e,t,i),h(t,r),h(t,n),h(t,o)},p(e,t){/*selectedPaymentMethod, $_, currency*/1049632&t[0]&&i!==(i=/*selectedPaymentMethod*/e[10].DisplayCurrency.MinAmountLimit?`${/*$_*/e[20]("generalMin")} ${/*selectedPaymentMethod*/e[10].DisplayCurrency.MinAmountLimit} ${/*currency*/e[5]}`:"")&&C(r,i),/*selectedPaymentMethod, $_, currency*/1049632&t[0]&&s!==(s=/*selectedPaymentMethod*/e[10].DisplayCurrency.MaxAmountLimit?`/ ${/*$_*/e[20]("generalMax")} ${/*selectedPaymentMethod*/e[10].DisplayCurrency.MaxAmountLimit} ${/*currency*/e[5]}`:"")&&C(o,s)},d(e){e&&f(t)}}}
|
683
|
+
// (382:12) {#if showField(field)}
|
684
684
|
function to(e){let t,r,n,o,i=/*field*/e[71].label&&/*field*/e[71].type!==/*FieldTypes*/e[0].Link&&/*field*/e[71].type!==/*FieldTypes*/e[0].Boolean&&ro(e),s=/*field*/e[71].description&&/*field*/e[71].description!==/*field*/e[71].label&&/*field*/e[71].type!==/*FieldTypes*/e[0].QRCode&&/*field*/e[71].type!==/*FieldTypes*/e[0].Boolean&&/*field*/e[71].type!==/*FieldTypes*/e[0].Link&&no(e);function a(e,t){/*field*/
|
685
685
|
return e[71].type===/*FieldTypes*/e[0].Text?fo:/*field*/e[71].type===/*FieldTypes*/e[0].Number||/*field*/e[71].type===/*FieldTypes*/e[0].Money?po:/*field*/e[71].type===/*FieldTypes*/e[0].Password?ho:/*field*/e[71].type===/*FieldTypes*/e[0].Hidden?uo:/*field*/e[71].type===/*FieldTypes*/e[0].Lookup?co:/*field*/e[71].type===/*FieldTypes*/e[0].Boolean?lo:/*field*/e[71].type===/*FieldTypes*/e[0].QRCode?ao:/*field*/e[71].type===/*FieldTypes*/e[0].Link?so:/*field*/e[71].type===/*FieldTypes*/e[0].Label?io:oo}let l=a(e),c=l(e);return{c(){t=m("div"),r=m("label"),i&&i.c(),n=g(),s&&s.c(),o=g(),c.c(),w(t,"class","FieldWrapper"),x(t,"Hidden",/*field*/e[71].type===/*FieldTypes*/e[0].Hidden)},m(e,a){p(e,t,a),h(t,r),i&&i.m(r,null),h(r,n),s&&s.m(r,null),h(r,o),c.m(r,null)},p(e,u){/*field*/e[71].label&&/*field*/e[71].type!==/*FieldTypes*/e[0].Link&&/*field*/e[71].type!==/*FieldTypes*/e[0].Boolean?i?i.p(e,u):(i=ro(e),i.c(),i.m(r,n)):i&&(i.d(1),i=null),/*field*/e[71].description&&/*field*/e[71].description!==/*field*/e[71].label&&/*field*/e[71].type!==/*FieldTypes*/e[0].QRCode&&/*field*/e[71].type!==/*FieldTypes*/e[0].Boolean&&/*field*/e[71].type!==/*FieldTypes*/e[0].Link?s?s.p(e,u):(s=no(e),s.c(),s.m(r,o)):s&&(s.d(1),s=null),l===(l=a(e))&&c?c.p(e,u):(c.d(1),c=l(e),c&&(c.c(),c.m(r,null))),/*fields, FieldTypes*/2049&u[0]&&x(t,"Hidden",/*field*/e[71].type===/*FieldTypes*/e[0].Hidden)},d(e){e&&f(t),i&&i.d(),s&&s.d(),c.d()}}}
|
686
|
-
// (
|
686
|
+
// (385:16) {#if field.label && field.type !== FieldTypes.Link && field.type !== FieldTypes.Boolean}
|
687
687
|
function ro(e){let t,r,n=/*field*/e[71].label+"";return{c(){t=m("span"),r=b(n),x(t,"Required",/*field*/e[71].isRequired)},m(e,n){p(e,t,n),h(t,r)},p(e,o){/*fields*/2048&o[0]&&n!==(n=/*field*/e[71].label+"")&&C(r,n),/*fields*/2048&o[0]&&x(t,"Required",/*field*/e[71].isRequired)},d(e){e&&f(t)}}}
|
688
|
-
// (
|
688
|
+
// (388:16) {#if field.description && field.description !== field.label && field.type !== FieldTypes.QRCode && field.type !== FieldTypes.Boolean && field.type !== FieldTypes.Link}
|
689
689
|
function no(e){let t,r,n=/*field*/e[71].description+"";return{c(){t=m("span"),r=b(n),w(t,"class","Description")},m(e,n){p(e,t,n),h(t,r)},p(e,t){/*fields*/2048&t[0]&&n!==(n=/*field*/e[71].description+"")&&C(r,n)},d(e){e&&f(t)}}}
|
690
|
-
// (
|
690
|
+
// (428:16) {:else}
|
691
691
|
function oo(e){let t,r,n,o;function i(){
|
692
|
-
/*input_input_handler_5*/e[
|
693
|
-
// (
|
692
|
+
/*input_input_handler_5*/e[45].call(t,/*field*/e[71])}return{c(){t=m("input"),w(t,"type","text"),w(t,"placeholder",r=/*field*/e[71].placeholder)},m(r,s){p(r,t,s),B(t,/*prepareFields*/e[12][/*field*/e[71].name]),n||(o=E(t,"input",i),n=!0)},p(n,o){e=n,/*fields*/2048&o[0]&&r!==(r=/*field*/e[71].placeholder)&&w(t,"placeholder",r),/*prepareFields, fields*/6144&o[0]&&t.value!==/*prepareFields*/e[12][/*field*/e[71].name]&&B(t,/*prepareFields*/e[12][/*field*/e[71].name])},d(e){e&&f(t),n=!1,o()}}}
|
693
|
+
// (426:58)
|
694
694
|
function io(t){let r;return{c(){r=m("span"),w(r,"class","Label")},m(e,t){p(e,r,t)},p:e,d(e){e&&f(r)}}}
|
695
|
-
// (
|
695
|
+
// (424:57)
|
696
696
|
function so(e){let t,r=/*field*/e[71].descriptionWithLink+"";return{c(){t=m("span")},m(e,n){p(e,t,n),t.innerHTML=r},p(e,n){/*fields*/2048&n[0]&&r!==(r=/*field*/e[71].descriptionWithLink+"")&&(t.innerHTML=r)},d(e){e&&f(t)}}}
|
697
|
-
// (
|
697
|
+
// (420:59)
|
698
698
|
function ao(e){let t,r,n,o,i,s=/*field*/e[71].defaultValue+"";function a(){/*click_handler_3*/
|
699
|
-
return e[
|
700
|
-
/*div0_binding*/e[
|
701
|
-
/*div0_binding*/,e[
|
702
|
-
// (
|
699
|
+
return e[44](/*field*/e[71])}return{c(){t=m("div"),r=m("div"),n=b(s),w(t,"class","QRCode")},m(s,l){p(s,t,l),h(t,r),h(r,n),
|
700
|
+
/*div0_binding*/e[43](r),o||(i=E(t,"click",a),o=!0)},p(t,r){e=t,/*fields*/2048&r[0]&&s!==(s=/*field*/e[71].defaultValue+"")&&C(n,s)},d(r){r&&f(t)
|
701
|
+
/*div0_binding*/,e[43](null),o=!1,i()}}}
|
702
|
+
// (414:60)
|
703
703
|
function lo(e){let t,r,n,o,i,s,a,l,c,u=/*field*/e[71].descriptionWithLink+"";function d(){
|
704
|
-
/*input_change_handler*/e[
|
705
|
-
// (
|
704
|
+
/*input_change_handler*/e[42].call(r,/*field*/e[71])}return{c(){t=m("div"),r=m("input"),o=g(),i=m("span"),s=g(),a=m("span"),w(r,"type","checkbox"),w(r,"placeholder",n=/*field*/e[71].placeholder),w(i,"class","Checkmark"),w(a,"class","Description"),w(t,"class","Checkbox")},m(n,f){p(n,t,f),h(t,r),B(r,/*prepareFields*/e[12][/*field*/e[71].name]),h(t,o),h(t,i),h(t,s),h(t,a),a.innerHTML=u,l||(c=E(r,"change",d),l=!0)},p(t,o){e=t,/*fields*/2048&o[0]&&n!==(n=/*field*/e[71].placeholder)&&w(r,"placeholder",n),/*prepareFields, fields*/6144&o[0]&&B(r,/*prepareFields*/e[12][/*field*/e[71].name]),/*fields*/2048&o[0]&&u!==(u=/*field*/e[71].descriptionWithLink+"")&&(a.innerHTML=u)},d(e){e&&f(t),l=!1,c()}}}
|
705
|
+
// (403:59)
|
706
706
|
function co(e){let t,r,n,o,i,s,a,l=/*prepareFields*/(e[12][/*field*/e[71].name]||"")+"";function c(...t){/*click_handler_1*/
|
707
|
-
return e[
|
708
|
-
// (
|
707
|
+
return e[40](/*index*/e[73],...t)}let u=/*field*/e[71].values,y=[];for(let t=0;t<u.length;t+=1)y[t]=mo(Kn(e,u,t));return{c(){t=m("div"),r=m("div"),n=b(l),o=g(),i=m("div");for(let e=0;e<y.length;e+=1)y[e].c();w(r,"class","Selected"),w(r,"id",/*index*/e[73]),w(i,"class","OptionList"),x(i,"Opened",/*openedLookup*/e[19]===/*index*/e[73]),w(t,"class","CustomSelect")},m(e,l){p(e,t,l),h(t,r),h(r,n),h(t,o),h(t,i);for(let e=0;e<y.length;e+=1)y[e]&&y[e].m(i,null);s||(a=E(r,"click",c),s=!0)},p(t,r){if(e=t,/*prepareFields, fields*/6144&r[0]&&l!==(l=/*prepareFields*/(e[12][/*field*/e[71].name]||"")+"")&&C(n,l),/*prepareFields, fields*/6144&r[0]){let t;for(u=/*field*/e[71].values,t=0;t<u.length;t+=1){const n=Kn(e,u,t);y[t]?y[t].p(n,r):(y[t]=mo(n),y[t].c(),y[t].m(i,null))}for(;t<y.length;t+=1)y[t].d(1);y.length=u.length}/*openedLookup*/524288&r[0]&&x(i,"Opened",/*openedLookup*/e[19]===/*index*/e[73])},d(e){e&&f(t),d(y,e),s=!1,a()}}}
|
708
|
+
// (400:59)
|
709
709
|
function uo(e){let t,r,n,o;function i(){
|
710
|
-
/*input_input_handler_4*/e[
|
711
|
-
// (
|
710
|
+
/*input_input_handler_4*/e[39].call(t,/*field*/e[71])}return{c(){t=m("input"),w(t,"type","hidden"),w(t,"placeholder",r=/*field*/e[71].placeholder)},m(r,s){p(r,t,s),B(t,/*prepareFields*/e[12][/*field*/e[71].name]),n||(o=E(t,"input",i),n=!0)},p(n,o){e=n,/*fields*/2048&o[0]&&r!==(r=/*field*/e[71].placeholder)&&w(t,"placeholder",r),/*prepareFields, fields*/6144&o[0]&&B(t,/*prepareFields*/e[12][/*field*/e[71].name])},d(e){e&&f(t),n=!1,o()}}}
|
711
|
+
// (397:61)
|
712
712
|
function ho(e){let t,r,n,o;function i(){
|
713
|
-
/*input_input_handler_3*/e[
|
714
|
-
// (
|
713
|
+
/*input_input_handler_3*/e[38].call(t,/*field*/e[71])}return{c(){t=m("input"),w(t,"type","password"),w(t,"placeholder",r=/*field*/e[71].placeholder)},m(r,s){p(r,t,s),B(t,/*prepareFields*/e[12][/*field*/e[71].name]),n||(o=E(t,"input",i),n=!0)},p(n,o){e=n,/*fields*/2048&o[0]&&r!==(r=/*field*/e[71].placeholder)&&w(t,"placeholder",r),/*prepareFields, fields*/6144&o[0]&&t.value!==/*prepareFields*/e[12][/*field*/e[71].name]&&B(t,/*prepareFields*/e[12][/*field*/e[71].name])},d(e){e&&f(t),n=!1,o()}}}
|
714
|
+
// (394:94)
|
715
715
|
function po(e){let t,r,n,o;function i(){
|
716
|
-
/*input_input_handler_2*/e[
|
717
|
-
// (
|
716
|
+
/*input_input_handler_2*/e[37].call(t,/*field*/e[71])}return{c(){t=m("input"),w(t,"type","number"),w(t,"placeholder",r=/*field*/e[71].placeholder)},m(r,s){p(r,t,s),B(t,/*prepareFields*/e[12][/*field*/e[71].name]),n||(o=E(t,"input",i),n=!0)},p(n,o){e=n,/*fields*/2048&o[0]&&r!==(r=/*field*/e[71].placeholder)&&w(t,"placeholder",r),/*prepareFields, fields*/6144&o[0]&&_(t.value)!==/*prepareFields*/e[12][/*field*/e[71].name]&&B(t,/*prepareFields*/e[12][/*field*/e[71].name])},d(e){e&&f(t),n=!1,o()}}}
|
717
|
+
// (391:16) {#if field.type === FieldTypes.Text}
|
718
718
|
function fo(e){let t,r,n,o;function i(){
|
719
|
-
/*input_input_handler_1*/e[
|
720
|
-
// (
|
721
|
-
function mo(e){let t,r,n,o,i,s=/*value*/e[74].
|
722
|
-
return e[
|
723
|
-
// (
|
724
|
-
function yo(e){let t,r=/*showField*/e[
|
725
|
-
// (
|
726
|
-
function bo(e){let t,r,n,o,i,s=/*$_*/e[
|
727
|
-
// (
|
728
|
-
function go(e){let t,r,n,o,i,s,a,l,c,u,d=/*$_*/e[
|
729
|
-
// (
|
730
|
-
function vo(e){let t,r,n;return{c(){t=m("cashier-notifications"),T(t,"text",r=/*$_*/e[
|
731
|
-
// (
|
732
|
-
function Eo(e){let t,r,n,o,i,s,l,c,u,d,y,v,T,_,B=/*$_*/e[
|
733
|
-
// (
|
719
|
+
/*input_input_handler_1*/e[36].call(t,/*field*/e[71])}return{c(){t=m("input"),w(t,"type","text"),w(t,"placeholder",r=/*field*/e[71].placeholder)},m(r,s){p(r,t,s),B(t,/*prepareFields*/e[12][/*field*/e[71].name]),n||(o=E(t,"input",i),n=!0)},p(n,o){e=n,/*fields*/2048&o[0]&&r!==(r=/*field*/e[71].placeholder)&&w(t,"placeholder",r),/*prepareFields, fields*/6144&o[0]&&t.value!==/*prepareFields*/e[12][/*field*/e[71].name]&&B(t,/*prepareFields*/e[12][/*field*/e[71].name])},d(e){e&&f(t),n=!1,o()}}}
|
720
|
+
// (407:22) {#each field.values as value}
|
721
|
+
function mo(e){let t,r,n,o,i,s=/*value*/e[74].Value+"";function a(){/*click_handler_2*/
|
722
|
+
return e[41](/*field*/e[71],/*value*/e[74])}return{c(){t=m("div"),r=m("span"),n=b(s)},m(e,s){p(e,t,s),h(t,r),h(r,n),o||(i=E(t,"click",a),o=!0)},p(t,r){e=t,/*fields*/2048&r[0]&&s!==(s=/*value*/e[74].Value+"")&&C(n,s)},d(e){e&&f(t),o=!1,i()}}}
|
723
|
+
// (381:10) {#each fields as field, index}
|
724
|
+
function yo(e){let t,r=/*showField*/e[25](/*field*/e[71]),n=r&&to(e);return{c(){n&&n.c(),t=v()},m(e,r){n&&n.m(e,r),p(e,t,r)},p(e,o){/*fields*/2048&o[0]&&(r=/*showField*/e[25](/*field*/e[71])),r?n?n.p(e,o):(n=to(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&f(t)}}}
|
725
|
+
// (443:8) {:else}
|
726
|
+
function bo(e){let t,r,n,o,i,s=/*$_*/e[20]("processingButton")+"";return{c(){t=m("button"),r=y("svg"),n=y("path"),o=g(),i=b(s),w(n,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),w(n,"fill","white"),w(r,"class","ButtonSpinner"),w(r,"xmlns","http://www.w3.org/2000/svg"),w(r,"width","15"),w(r,"height","14"),w(r,"viewBox","0 0 15 14"),w(r,"fill","none"),w(t,"class","PrimaryButton")},m(e,s){p(e,t,s),h(t,r),h(r,n),h(t,o),h(t,i)},p(e,t){/*$_*/1048576&t[0]&&s!==(s=/*$_*/e[20]("processingButton")+"")&&C(i,s)},d(e){e&&f(t)}}}
|
727
|
+
// (435:8) {#if !isProcessingTxn}
|
728
|
+
function go(e){let t,r,n,o,i,s,a,l,c,u,d=/*$_*/e[20]("makeDepositButton")+"",v=/*amount*/(e[1]||/*$_*/e[20]("amountPlaceholder"))+"";return{c(){t=m("button"),r=y("svg"),n=y("path"),o=g(),i=b(d),s=g(),a=m("span"),l=b(v),c=g(),u=b(/*currency*/e[5]),w(n,"fill-rule","evenodd"),w(n,"clip-rule","evenodd"),w(n,"d","M7.51564 0.574496C6.49714 0.733152 5.5928 1.46162 5.21164 2.43037C5.01714 2.92471 4.98674 3.24368 4.98671 4.78987L4.98668 5.99306L4.55336 6.00671C4.20693 6.01762 4.08258 6.03221 3.93336 6.07946C3.43136 6.23846 3.00318 6.58293 2.73943 7.04C2.70133 7.106 2.63639 7.256 2.59508 7.37334L2.52002 7.58665V13.9067L2.59268 14.12C2.6993 14.4331 2.83849 14.6518 3.09336 14.9067C3.34821 15.1615 3.56693 15.3007 3.88002 15.4073L4.09336 15.48H11.9067L12.12 15.4073C12.4331 15.3007 12.6518 15.1615 12.9067 14.9067C13.1616 14.6518 13.3007 14.4331 13.4074 14.12L13.48 13.9067V7.58665L13.405 7.37334C13.1846 6.74712 12.6999 6.27875 12.0667 6.08C11.9191 6.03371 11.7891 6.0184 11.4467 6.00696L11.0134 5.99253L11.0133 4.78959C11.0133 4.128 11.0008 3.45465 10.9855 3.29334C10.9257 2.66268 10.7188 2.13556 10.3497 1.67368C9.66549 0.817589 8.6023 0.405214 7.51564 0.574496ZM8.46436 1.58665C9.01596 1.7035 9.52999 2.11659 9.79758 2.65809C9.98521 3.03771 9.98202 3.00646 9.99305 4.58L10.003 6H5.99702L6.00699 4.58C6.01802 3.00646 6.01483 3.03771 6.20246 2.65809C6.31793 2.42446 6.43799 2.26065 6.61818 2.09103C6.89043 1.83468 7.21371 1.65496 7.52352 1.58775C7.74977 1.53865 8.23518 1.53809 8.46436 1.58665ZM11.9201 7.0955C12.0975 7.17871 12.2992 7.37412 12.3874 7.54806C12.4231 7.61846 12.465 7.75796 12.4805 7.85803C12.4993 7.97978 12.5061 8.97962 12.501 10.88L12.4934 13.72L12.4082 13.8997C12.26 14.2127 12.0016 14.419 11.6821 14.4796C11.4864 14.5167 4.51364 14.5167 4.31793 14.4796C3.99843 14.419 3.74008 14.2127 3.59183 13.8997L3.50668 13.72L3.49905 10.88C3.49393 8.97728 3.50074 7.97987 3.51964 7.85778C3.57627 7.49218 3.79218 7.21543 4.12918 7.0765L4.28002 7.01431L8.02668 7.0205L11.7734 7.02665L11.9201 7.0955Z"),w(n,"fill","white"),w(r,"class","ButtonLock"),w(r,"xmlns","http://www.w3.org/2000/svg"),w(r,"width","16"),w(r,"height","16"),w(r,"viewBox","0 0 16 16"),w(r,"fill","none"),w(a,"class","ButtonAmount"),w(t,"class","PrimaryButton"),w(t,"type","submit")},m(e,f){p(e,t,f),h(t,r),h(r,n),h(t,o),h(t,i),h(t,s),h(t,a),h(a,l),h(a,c),h(a,u)},p(e,t){/*$_*/1048576&t[0]&&d!==(d=/*$_*/e[20]("makeDepositButton")+"")&&C(i,d),/*amount, $_*/1048578&t[0]&&v!==(v=/*amount*/(e[1]||/*$_*/e[20]("amountPlaceholder"))+"")&&C(l,v),/*currency*/32&t[0]&&C(u,/*currency*/e[5])},d(e){e&&f(t)}}}
|
729
|
+
// (451:8) {#if showRetryNotification}
|
730
|
+
function vo(e){let t,r,n;return{c(){t=m("cashier-notifications"),T(t,"text",r=/*$_*/e[20]("retryText")),T(t,"button",n=/*$_*/e[20]("retryButton"))},m(e,r){p(e,t,r)},p(e,o){/*$_*/1048576&o[0]&&r!==(r=/*$_*/e[20]("retryText"))&&T(t,"text",r),/*$_*/1048576&o[0]&&n!==(n=/*$_*/e[20]("retryButton"))&&T(t,"button",n)},d(e){e&&f(t)}}}
|
731
|
+
// (459:6) {#if showRedirectNotification}
|
732
|
+
function Eo(e){let t,r,n,o,i,s,l,c,u,d,y,v,T,_,B=/*$_*/e[20]("redirectTitle")+"",x=/*$_*/e[20]("redirectMessage")+"",A=/*$_*/e[20]("backToPayment")+"";return{c(){t=m("div"),r=m("img"),o=g(),i=m("span"),s=b(B),l=g(),c=m("span"),u=b(x),d=g(),y=m("div"),v=b(A),a(r.src,n="//static.everymatrix.com/mmstage/cashier/assets/redirect.png")||w(r,"src","//static.everymatrix.com/mmstage/cashier/assets/redirect.png"),w(r,"alt",""),w(i,"class","RedirectionTitle"),w(c,"class","RedirectionMessage"),w(y,"class","RedirectionClose"),w(t,"class","RedirectionNotification")},m(n,a){p(n,t,a),h(t,r),h(t,o),h(t,i),h(i,s),h(t,l),h(t,c),h(c,u),h(t,d),h(t,y),h(y,v),T||(_=E(y,"click",/*click_handler_4*/e[46]),T=!0)},p(e,t){/*$_*/1048576&t[0]&&B!==(B=/*$_*/e[20]("redirectTitle")+"")&&C(s,B),/*$_*/1048576&t[0]&&x!==(x=/*$_*/e[20]("redirectMessage")+"")&&C(u,x),/*$_*/1048576&t[0]&&A!==(A=/*$_*/e[20]("backToPayment")+"")&&C(v,A)},d(e){e&&f(t),T=!1,_()}}}
|
733
|
+
// (469:2) {#if redirectUrl && redirectMode === RedirectionModeStringEnum.Default}
|
734
734
|
function wo(e){let t,r;return{c(){t=m("div"),r=m("cashier-iframe-redirect"),T(r,"lang",/*lang*/e[3]),T(r,"translationurl",/*translationurl*/e[4]),T(r,"iframeurl",/*redirectUrl*/e[14]),w(t,"class","IframeRedirect")},m(e,n){p(e,t,n),h(t,r)},p(e,t){/*lang*/8&t[0]&&T(r,"lang",/*lang*/e[3]),/*translationurl*/16&t[0]&&T(r,"translationurl",/*translationurl*/e[4]),/*redirectUrl*/16384&t[0]&&T(r,"iframeurl",/*redirectUrl*/e[14])},d(e){e&&f(t)}}}
|
735
|
-
// (
|
736
|
-
function To(e){let t,r,n,o,i,s,a,l,c,u,d,y=/*$_*/e[
|
737
|
-
/*div_binding*/,t[
|
738
|
-
/*div_binding*/,t[48](null),c=!1,u()}}}let Co="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function Bo(e,t,r){let n;c(e,Rn,(e=>r(21,n=e)));class o{constructor(e){this.correlationFieldName=e.CorrelationFieldName||null,this.correlationFieldValue=e.CorrelationFieldValue&&e.CorrelationFieldValue.length>0?e.CorrelationFieldValue.split(","):[],this.name=e.Name||null,this.label=e.Label||null,this.description=e.Description||null,this.type=e.Type||null,this.defaultValue=this.calcDefaultValue(e),this.format=e.Format||null,this.placeholder=e.Placeholder||null,this.isReadonly=e.IsReadonly||!1,this.isRequired=e.IsRequired||!1,this.maxValue=e.MaxValue||null,this.minValue=e.MinValue||null,this.isPrimaryField=e.IsPrimaryField||!1,this.demandUserInput=e.DemandUserInput||!1,this.autoTrim=e.AutoTrim||!1,this.autoUppercase=e.AutoUppercase||!1,this.notEqualToFieldName=e.NotEqualToFieldName||null,this.values=e.Values,this.useCopyButton=e.UseCopyButton||!1,this.inputMask=e.InputMask,this.tags=e.Tags||null}calcDefaultValue(e){return 2===this.type?"True"===e.DefaultValue:e.DefaultValue||null}get descriptionWithLink(){if("Boolean"===i[this.type]&&this.placeholder||"Link"===i[this.type]){const e=/{link}/i,t=`<a href="${this.placeholder||this.defaultValue}" target="_blank" rel="noopener noreferrer">${this.label}</a>`;return this.description.match(e)?this.description.replace(e,t):`${this.description} ${t}`}return this.description}}let{FieldTypes:i}=t;!function(e){e.Unknown="Unknown",e.Text="Text",e.Boolean="Boolean",e.Number="Number",e.Money="Money",e.DateTime="DateTime",e.Lookup="Lookup",e.IpAddress="IpAddress",e.Date="Date",e.Time="Time",e.LookupCollection="LookupCollection",e.Hidden="Hidden",e.Label="Label",e.Password="Password",e.Link="Link",e.Image="Image",e.Html="Html",e.QRCode="QR"}(i||(i={}));let s,{endpoint:a}=t,{session:l}=t,{lang:u}=t,{translationurl:h}=t,{customerid:p}=t,{currency:f}=t,{amount:d}=t,{selectedpaymentmethodname:m}=t,{clientstyling:y=""}=t,{clientstylingurl:b=""}=t,{RedirectionModeStringEnum:g}=t;!function(e){e.Default="Default",e.RedirectWithRetry="Redirect"}(g||(g={}));let v,E,w,T,C,B,x,A,L,H,P,M={},R=[],N={},k=!1,I=[],$=!1,D=window.navigator.userAgent,U=window.matchMedia("(max-width: 750px)");const F=()=>{var e;e=u,dn.set(e)};Object.keys(kn).forEach((e=>{Nn(e,kn[e])}));var G;G=()=>(window.addEventListener("closeModal",q,!1),window.addEventListener("confirmModal",Z,!1),window.addEventListener("closeIframe",K,!1),window.addEventListener("notificationButtonClick",Y,!1),document.addEventListener("click",j),()=>{window.removeEventListener("closeModal",q),window.removeEventListener("confirmModal",Z),window.removeEventListener("closeIframe",K),window.removeEventListener("notificationButtonClick",Y)}),S().$$.on_mount.push(G);const j=e=>{e.composedPath().includes(H)||r(20,L=null)},V=(e,t)=>{t!==L?(H=e.composedPath()[0],r(20,L=t)):r(20,L=null)},z=()=>{dispatchEvent(new CustomEvent("backToMethodList",{bubbles:!0,cancelable:!0,composed:!0})),X()},X=()=>{dispatchEvent(new CustomEvent("hidePaymentDetails",{detail:{hideMethodDetails:$},bubbles:!0,cancelable:!0,composed:!0}))},W=()=>{dispatchEvent(new CustomEvent("hideMethodsList",{detail:{hideMethodsList:$},bubbles:!0,cancelable:!0,composed:!0}))},K=()=>{r(14,E=null)},q=()=>{r(13,k=!1)},Z=()=>{r(18,x=!0);const e=new URL(`${a}/v1/player/${p}/payment/GetPaymentConfirm`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const n={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:s})};fetch(e,n).then((e=>e.json())).then((e=>{s=e.XPaymentSessionToken,r(14,E=e.RedirectUrl),r(16,C=e.RedirectionMode),r(18,x=!1),e.RedirectionMode===g.RedirectWithRetry&&(w=window.open(e.RedirectUrl,"_blank"),r(15,T=!!w),w||r(17,B=!0))}))},Y=()=>{w=window.open(E,"_blank"),r(15,T=!0),r(17,B=!1)},Q=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)};return e.$$set=e=>{"FieldTypes"in e&&r(0,i=e.FieldTypes),"endpoint"in e&&r(28,a=e.endpoint),"session"in e&&r(29,l=e.session),"lang"in e&&r(3,u=e.lang),"translationurl"in e&&r(4,h=e.translationurl),"customerid"in e&&r(30,p=e.customerid),"currency"in e&&r(5,f=e.currency),"amount"in e&&r(1,d=e.amount),"selectedpaymentmethodname"in e&&r(31,m=e.selectedpaymentmethodname),"clientstyling"in e&&r(32,y=e.clientstyling),"clientstylingurl"in e&&r(33,b=e.clientstylingurl),"RedirectionModeStringEnum"in e&&r(2,g=e.RedirectionModeStringEnum)},e.$$.update=()=>{/*endpoint, session, currency*/805306400&e.$$.dirty[0]|/*selectedpaymentmethodname*/1&e.$$.dirty[1]&&a&&l&&m&&f&&(()=>{const e=new URL(`${a}/v1/player/${p}/payment/GetPaymentMethod`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const n={method:"POST",mode:"cors",headers:t,body:JSON.stringify({PaymentMethodName:m,Currency:f,XPaymentSessionToken:l})};fetch(e,n).then((e=>e.json())).then((e=>{s=e.XPaymentSessionToken,r(10,M=e.PaymentMethod),r(11,R=M.Fields&&M.Fields.map((e=>new o(e)))),r(12,N={}),W()}))})(),/*customStylingContainer*/64&e.$$.dirty[0]|/*clientstyling*/2&e.$$.dirty[1]&&y&&v&&(()=>{let e=document.createElement("style");e.innerHTML=y,v.appendChild(e)})(),/*customStylingContainer*/64&e.$$.dirty[0]|/*clientstylingurl*/4&e.$$.dirty[1]&&b&&v&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{v.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*lang*/8&e.$$.dirty[0]&&u&&F(),/*lang, translationurl*/24&e.$$.dirty[0]&&u&&h&&(()=>{if(h)fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Nn(t,e[t]),r(19,A=!0)}))})).catch((e=>{r(19,A=!0)}))})(),/*qrCodeContainer*/128&e.$$.dirty[0]|/*selectedpaymentmethodname*/1&e.$$.dirty[1]&&m&&I.length&&I.forEach((e=>{if(e&&e.innerText){const t=e.innerText;e.innerText="",new QRCode(e,{text:t,width:250,height:250})}})),/*innerWidth*/512&e.$$.dirty[0]&&P&&r(8,$=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(D)||U.matches),/*mobileView*/256&e.$$.dirty[0]&&$.toString()&&W()},[i,d,g,u,h,f,v,I,$,P,M,R,N,k,E,T,C,B,x,A,L,n,V,()=>{r(18,x=!0);const e=new URL(`${a}/v1/player/${p}/payment/GetPaymentPrepare`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const n={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:s,Transaction:{PaymentMethod:M.Name,Amount:d,Currency:f,CustomFields:N},Account:{}})};fetch(e,n).then((e=>e.json())).then((e=>{s=e.XPaymentSessionToken,r(18,x=!1),r(13,k=!0)}))},z,Q,e=>!e.correlationFieldName||e.correlationFieldName&&N[e.correlationFieldName]===e.correlationFieldValue,o,a,l,p,m,y,b,function(){r(9,P=Xn.innerWidth)},()=>z(),function(){d=_(this.value),r(1,d)},function(e){N[e.name]=this.value,r(12,N)},function(e){N[e.name]=_(this.value),r(12,N)},function(e){N[e.name]=this.value,r(12,N)},function(e){N[e.name]=this.value,r(12,N)},(e,t)=>V(t,e),(e,t)=>{r(12,N[e.name]=t.name,N),r(11,R)},function(e){N[e.name]=this.value,r(12,N)},function(e){O[e?"unshift":"push"]((()=>{I[I.length]=e,r(7,I)}))},e=>{Q(e.description)},function(e){N[e.name]=this.value,r(12,N)},()=>{r(15,T=!1)},function(e){O[e?"unshift":"push"]((()=>{v=e,r(6,v)}))}]}class xo extends W{constructor(e){super();const t=document.createElement("style");t.textContent='@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.MethodsDetails{position:relative;display:flex;flex-direction:column;gap:5px}.MethodsDetails:has(.RedirectionNotification) form{visibility:hidden}.form-logo{align-items:center;display:flex;height:50px;border-bottom:1px solid var(--emw--color-gray-100, #E8E9EB)}.form-logo .SelectedLogoDescription{color:var(--emw--color-black, #111);font-size:var(--emw--font-size-small, 14px);margin:7px 5px 7px 7px;word-break:break-word}.form-logo .SelectedLogoWrapper{width:56px;height:32px;flex-shrink:0;background:var(--emw--color-background, #FFF);border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-large, 6px)}.form-logo .SelectedLogoWrapper img{max-height:32px;max-width:56px}.form-logo .ChangePaymeth{margin-left:auto;cursor:pointer;color:var(--emw--color-black, #111);font-size:var(--emw--font-size-small, 14px);text-decoration-line:underline}.RedirectionNotification{height:100%;width:inherit;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.RedirectionNotification .RedirectionClose{display:flex;width:234px;height:36px;flex-direction:column;justify-content:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:500;line-height:normal;text-transform:uppercase;border-radius:4px;background:var(--emw--color-primary, #7EC51E)}.RedirectionNotification .RedirectionTitle{color:var(--emw--color-black, #111);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none;font-weight:var(--emw--font-weight-bold, 600)}.RedirectionNotification .RedirectionMessage{color:var(--emw--color-gray-300, #666);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none}cashier-iframe-redirect{height:inherit;width:inherit}.IframeRedirect{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:var(--emw--color-gray-transparency-20, rgba(0, 0, 0, 0.2))}.FieldWrapper,label{display:flex;flex-direction:column}.FieldWrapper{background-color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));border-radius:6px;box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.1);padding:0 15px 15px;margin-bottom:10px}.FieldWrapper:has(.QRCode, .Label){box-shadow:none;background:transparent}.FieldWrapper.Hidden{height:0;visibility:hidden;margin:0;padding:0}.AmountLimits{color:var(--emw--color-gray-300, #666);font-size:var(--emw--font-size-x-small, 12px);margin:5px 0 0 2px;line-height:var(--emw--font-size-x-small, 12px)}input,.Selected{border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);height:40px;line-height:var(--emw--size-small, 14px);color:var(--emw--color-black, #111);padding:0 15px}input:focus,.Selected:focus{outline:none}label{color:var(--emw--color-black, #111);font-size:var(--emw--size-small, 14px);margin-top:7px;line-height:27px}label span.Required:before{content:"*";display:inline-block;margin-right:2px}.Description{color:var(--emw--color-gray-300, #666);font-size:var(--emw--font-size-x-small, 12px);margin:0 0 5px 2px;line-height:var(--emw--font-size-x-small, 12px)}.PrimaryButton{color:var(--emw--color-white, #FFF);text-align:center;font-size:var(--emw--font-size-small, 14px);font-style:normal;font-weight:400;height:46px;border-radius:50px;line-height:normal;border:none;background:var(--emw--color-primary, #7EC51E);width:100%;margin:12px 0;cursor:pointer;text-transform:uppercase}.PrimaryButton .ButtonSpinner{animation:loading-spinner 1s linear infinite}.QRCode{width:250px;margin:auto}.Checkbox{display:flex;position:relative;margin-top:12px}.Checkbox .Description{margin:0 0 0 20px;cursor:pointer;line-height:var(--emw--font-size-medium, 16px)}.Checkbox .Checkmark{position:absolute;top:2px;left:0;height:12px;width:12px;border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);background-color:var(--emw--color-white, #FFF);cursor:pointer}.Checkbox .Checkmark:after{content:"";position:absolute;display:none}.Checkbox .Checkmark:after{left:4px;top:0;width:2px;height:8px;border:solid var(--emw--color-white, #FFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.Checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Checkbox input:checked~.Checkmark{background-color:var(--emw--color-primary, #7EC51E);border-color:var(--emw--color-primary, #7EC51E)}.Checkbox input:checked~.Checkmark:after{display:block}.CustomSelect{width:100%;position:relative}.Selected{display:flex;align-items:center;cursor:pointer}.Selected:after{position:absolute;content:"";top:19px;right:10px;width:0;height:0;border:6px solid transparent;border-color:rgb(168, 169, 170) transparent transparent transparent}.OptionList{display:none;position:absolute;top:100%;left:0;right:0;z-index:99;background-color:white;border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin-top:5px}.OptionList div{padding:8px 16px;cursor:pointer;user-select:none}.OptionList div:hover{background-color:var(--emw--color-background-secondary, #F9F9F9)}.OptionList.Opened{display:block}',this.shadowRoot.appendChild(t),X(this,{target:this.shadowRoot,props:A(this.attributes),customElement:!0},Bo,_o,i,{PaymentMethodDetails:27,FieldTypes:0,endpoint:28,session:29,lang:3,translationurl:4,customerid:30,currency:5,amount:1,selectedpaymentmethodname:31,clientstyling:32,clientstylingurl:33,RedirectionModeStringEnum:2},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),F()))}static get observedAttributes(){return["PaymentMethodDetails","FieldTypes","endpoint","session","lang","translationurl","customerid","currency","amount","selectedpaymentmethodname","clientstyling","clientstylingurl","RedirectionModeStringEnum"]}get PaymentMethodDetails(){return this.$$.ctx[27]}get FieldTypes(){return this.$$.ctx[0]}set FieldTypes(e){this.$$set({FieldTypes:e}),F()}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),F()}get session(){return this.$$.ctx[29]}set session(e){this.$$set({session:e}),F()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),F()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),F()}get customerid(){return this.$$.ctx[30]}set customerid(e){this.$$set({customerid:e}),F()}get currency(){return this.$$.ctx[5]}set currency(e){this.$$set({currency:e}),F()}get amount(){return this.$$.ctx[1]}set amount(e){this.$$set({amount:e}),F()}get selectedpaymentmethodname(){return this.$$.ctx[31]}set selectedpaymentmethodname(e){this.$$set({selectedpaymentmethodname:e}),F()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),F()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),F()}get RedirectionModeStringEnum(){return this.$$.ctx[2]}set RedirectionModeStringEnum(e){this.$$set({RedirectionModeStringEnum:e}),F()}}return!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",xo),xo}));
|
735
|
+
// (478:2) {#if showConfirmModal}
|
736
|
+
function To(e){let t,r,n,o,i,s,a,l,c,u,d,y=/*$_*/e[20]("confirmDepositText")+"",v=/*$_*/e[20]("confirmDepositButton")+"";return{c(){t=m("cashier-confirm-modal"),r=m("span"),n=b(y),o=g(),i=b(/*amount*/e[1]),s=g(),a=b(/*currency*/e[5]),l=b(" ?"),c=g(),u=m("div"),d=b(v),w(r,"slot","text"),w(u,"slot","confirm")},m(e,f){p(e,t,f),h(t,r),h(r,n),h(r,o),h(r,i),h(r,s),h(r,a),h(r,l),h(t,c),h(t,u),h(u,d)},p(e,t){/*$_*/1048576&t[0]&&y!==(y=/*$_*/e[20]("confirmDepositText")+"")&&C(n,y),/*amount*/2&t[0]&&C(i,/*amount*/e[1]),/*currency*/32&t[0]&&C(a,/*currency*/e[5]),/*$_*/1048576&t[0]&&v!==(v=/*$_*/e[20]("confirmDepositButton")+"")&&C(d,v)},d(e){e&&f(t)}}}function _o(t){let r,n,o,i,s,l,c,u;$(/*onwindowresize*/t[33]);let d=/*selectedPaymentMethod*/t[10].Name&&qn(t),y=/*redirectUrl*/t[14]&&/*redirectMode*/t[16]===/*RedirectionModeStringEnum*/t[2].Default&&wo(t),b=/*showConfirmModal*/t[13]&&To(t);return{c(){r=m("script"),o=g(),i=m("div"),d&&d.c(),s=g(),y&&y.c(),l=g(),b&&b.c(),this.c=e,a(r.src,n=Co)||w(r,"src",n),w(i,"class","CashierMethodDetails")},m(e,n){h(zn.head,r),p(e,o,n),p(e,i,n),d&&d.m(i,null),h(i,s),y&&y.m(i,null),h(i,l),b&&b.m(i,null)
|
737
|
+
/*div_binding*/,t[47](i),c||(u=E(Xn,"resize",/*onwindowresize*/t[33]),c=!0)},p(e,t){/*selectedPaymentMethod*/e[10].Name?d?d.p(e,t):(d=qn(e),d.c(),d.m(i,s)):d&&(d.d(1),d=null),/*redirectUrl*/e[14]&&/*redirectMode*/e[16]===/*RedirectionModeStringEnum*/e[2].Default?y?y.p(e,t):(y=wo(e),y.c(),y.m(i,l)):y&&(y.d(1),y=null),/*showConfirmModal*/e[13]?b?b.p(e,t):(b=To(e),b.c(),b.m(i,null)):b&&(b.d(1),b=null)},i:e,o:e,d(e){f(r),e&&f(o),e&&f(i),d&&d.d(),y&&y.d(),b&&b.d()
|
738
|
+
/*div_binding*/,t[47](null),c=!1,u()}}}let Co="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function Bo(e,t,r){let n;c(e,Rn,(e=>r(20,n=e)));class o{constructor(e){this.correlationFieldName=e.CorrelationFieldName||null,this.correlationFieldValue=e.CorrelationFieldValue&&e.CorrelationFieldValue.length>0?e.CorrelationFieldValue.split(","):[],this.name=e.Name||null,this.label=e.Label||null,this.description=e.Description||null,this.type=e.Type||null,this.defaultValue=this.calcDefaultValue(e),this.format=e.Format||null,this.placeholder=e.Placeholder||null,this.isReadonly=e.IsReadonly||!1,this.isRequired=e.IsRequired||!1,this.maxValue=e.MaxValue||null,this.minValue=e.MinValue||null,this.isPrimaryField=e.IsPrimaryField||!1,this.demandUserInput=e.DemandUserInput||!1,this.autoTrim=e.AutoTrim||!1,this.autoUppercase=e.AutoUppercase||!1,this.notEqualToFieldName=e.NotEqualToFieldName||null,this.values=e.Values,this.useCopyButton=e.UseCopyButton||!1,this.inputMask=e.InputMask,this.tags=e.Tags||null}calcDefaultValue(e){return 2===this.type?"True"===e.DefaultValue:e.DefaultValue||null}get descriptionWithLink(){if("Boolean"===i[this.type]&&this.placeholder||"Link"===i[this.type]){const e=/{link}/i,t=`<a href="${this.placeholder||this.defaultValue}" target="_blank" rel="noopener noreferrer">${this.label}</a>`;return this.description.match(e)?this.description.replace(e,t):`${this.description} ${t}`}return this.description}}let{FieldTypes:i}=t;!function(e){e.Unknown="Unknown",e.Text="Text",e.Boolean="Boolean",e.Number="Number",e.Money="Money",e.DateTime="DateTime",e.Lookup="Lookup",e.IpAddress="IpAddress",e.Date="Date",e.Time="Time",e.LookupCollection="LookupCollection",e.Hidden="Hidden",e.Label="Label",e.Password="Password",e.Link="Link",e.Image="Image",e.Html="Html",e.QRCode="QR"}(i||(i={}));let s,{endpoint:a}=t,{session:l}=t,{lang:u}=t,{translationurl:h}=t,{customerid:p}=t,{currency:f}=t,{amount:d}=t,{selectedpaymentmethodname:m}=t,{clientstyling:y=""}=t,{clientstylingurl:b=""}=t,{RedirectionModeStringEnum:g}=t;!function(e){e.Default="Default",e.RedirectWithRetry="Redirect"}(g||(g={}));let v,E,w,T,C,B,x,A,L,H,P={},M=[],R={},N=!1,k=[],I=!1,$=window.navigator.userAgent,D=window.matchMedia("(max-width: 750px)");const U=()=>{var e;e=u,dn.set(e)};Object.keys(kn).forEach((e=>{Nn(e,kn[e])}));var F;F=()=>(window.addEventListener("closeModal",K,!1),window.addEventListener("confirmModal",q,!1),window.addEventListener("closeIframe",W,!1),window.addEventListener("notificationButtonClick",Z,!1),document.addEventListener("click",G),()=>{window.removeEventListener("closeModal",K),window.removeEventListener("confirmModal",q),window.removeEventListener("closeIframe",W),window.removeEventListener("notificationButtonClick",Z)}),S().$$.on_mount.push(F);const G=e=>{e.composedPath().includes(L)||r(19,A=null)},j=(e,t)=>{t!==A?(L=e.composedPath()[0],r(19,A=t)):r(19,A=null)},V=()=>{dispatchEvent(new CustomEvent("backToMethodList",{bubbles:!0,cancelable:!0,composed:!0})),z()},z=()=>{dispatchEvent(new CustomEvent("hidePaymentDetails",{detail:{hideMethodDetails:I},bubbles:!0,cancelable:!0,composed:!0}))},X=()=>{dispatchEvent(new CustomEvent("hideMethodsList",{detail:{hideMethodsList:I},bubbles:!0,cancelable:!0,composed:!0}))},W=()=>{r(14,E=null)},K=()=>{r(13,N=!1)},q=()=>{r(18,x=!0);const e=new URL(`${a}/v1/player/${p}/payment/GetPaymentConfirm`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const n={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:s})};fetch(e,n).then((e=>e.json())).then((e=>{s=e.XPaymentSessionToken,r(14,E=e.RedirectUrl),r(16,C=e.RedirectionMode),r(18,x=!1),e.RedirectionMode===g.RedirectWithRetry&&(w=window.open(e.RedirectUrl,"_blank"),r(15,T=!!w),w||r(17,B=!0))}))},Z=()=>{w=window.open(E,"_blank"),r(15,T=!0),r(17,B=!1)},Y=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)};return e.$$set=e=>{"FieldTypes"in e&&r(0,i=e.FieldTypes),"endpoint"in e&&r(27,a=e.endpoint),"session"in e&&r(28,l=e.session),"lang"in e&&r(3,u=e.lang),"translationurl"in e&&r(4,h=e.translationurl),"customerid"in e&&r(29,p=e.customerid),"currency"in e&&r(5,f=e.currency),"amount"in e&&r(1,d=e.amount),"selectedpaymentmethodname"in e&&r(30,m=e.selectedpaymentmethodname),"clientstyling"in e&&r(31,y=e.clientstyling),"clientstylingurl"in e&&r(32,b=e.clientstylingurl),"RedirectionModeStringEnum"in e&&r(2,g=e.RedirectionModeStringEnum)},e.$$.update=()=>{/*endpoint, session, selectedpaymentmethodname, currency*/1476395040&e.$$.dirty[0]&&a&&l&&m&&f&&(()=>{const e=new URL(`${a}/v1/player/${p}/payment/GetPaymentMethod`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const n={method:"POST",mode:"cors",headers:t,body:JSON.stringify({PaymentMethodName:m,Currency:f,XPaymentSessionToken:l})};fetch(e,n).then((e=>e.json())).then((e=>{s=e.XPaymentSessionToken,r(10,P=e.PaymentMethod),r(11,M=P.Fields&&P.Fields.map((e=>new o(e)))),r(12,R={}),X()}))})(),/*customStylingContainer*/64&e.$$.dirty[0]|/*clientstyling*/1&e.$$.dirty[1]&&y&&v&&(()=>{let e=document.createElement("style");e.innerHTML=y,v.appendChild(e)})(),/*customStylingContainer*/64&e.$$.dirty[0]|/*clientstylingurl*/2&e.$$.dirty[1]&&b&&v&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{v.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*lang*/8&e.$$.dirty[0]&&u&&U(),/*lang, translationurl*/24&e.$$.dirty[0]&&u&&h&&(()=>{if(h)fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Nn(t,e[t])}))})).catch((e=>{}))})(),/*selectedpaymentmethodname, qrCodeContainer*/1073741952&e.$$.dirty[0]&&m&&k.length&&k.forEach((e=>{if(e&&e.innerText){const t=e.innerText;e.innerText="",new QRCode(e,{text:t,width:250,height:250})}})),/*innerWidth*/512&e.$$.dirty[0]&&H&&r(8,I=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))($)||D.matches),/*mobileView*/256&e.$$.dirty[0]&&I.toString()&&X()},[i,d,g,u,h,f,v,k,I,H,P,M,R,N,E,T,C,B,x,A,n,j,()=>{r(18,x=!0);const e=new URL(`${a}/v1/player/${p}/payment/GetPaymentPrepare`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const n={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:s,Transaction:{PaymentMethod:P.Name,Amount:d,Currency:f,CustomFields:R},Account:{}})};fetch(e,n).then((e=>e.json())).then((e=>{s=e.XPaymentSessionToken,r(18,x=!1),r(13,N=!0)}))},V,Y,e=>{if(!e.correlationFieldName)return!0;const t=e.correlationFieldValue.includes(R[e.correlationFieldName]);return!t&&R[e.name]&&delete R[e.name],t},o,a,l,p,m,y,b,function(){r(9,H=Xn.innerWidth)},()=>V(),function(){d=_(this.value),r(1,d)},function(e){R[e.name]=this.value,r(12,R)},function(e){R[e.name]=_(this.value),r(12,R)},function(e){R[e.name]=this.value,r(12,R)},function(e){R[e.name]=this.value,r(12,R)},(e,t)=>j(t,e),(e,t)=>{r(12,R[e.name]=t.Name,R),r(11,M)},function(e){R[e.name]=this.value,r(12,R)},function(e){O[e?"unshift":"push"]((()=>{k[k.length]=e,r(7,k)}))},e=>{Y(e.description)},function(e){R[e.name]=this.value,r(12,R)},()=>{r(15,T=!1)},function(e){O[e?"unshift":"push"]((()=>{v=e,r(6,v)}))}]}class xo extends W{constructor(e){super();const t=document.createElement("style");t.textContent='@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.MethodsDetails{position:relative;display:flex;flex-direction:column;gap:5px}.MethodsDetails:has(.RedirectionNotification) form{visibility:hidden}.form-logo{align-items:center;display:flex;height:50px;border-bottom:1px solid var(--emw--color-gray-100, #E8E9EB)}.form-logo .SelectedLogoDescription{color:var(--emw--color-black, #111);font-size:var(--emw--font-size-small, 14px);margin:7px 5px 7px 7px;word-break:break-word}.form-logo .SelectedLogoWrapper{width:56px;height:32px;flex-shrink:0;background:var(--emw--color-background, #FFF);border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-large, 6px)}.form-logo .SelectedLogoWrapper img{max-height:32px;max-width:56px}.form-logo .ChangePaymeth{margin-left:auto;cursor:pointer;color:var(--emw--color-black, #111);font-size:var(--emw--font-size-small, 14px);text-decoration-line:underline}.RedirectionNotification{height:100%;width:inherit;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.RedirectionNotification .RedirectionClose{display:flex;width:234px;height:36px;flex-direction:column;justify-content:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:500;line-height:normal;text-transform:uppercase;border-radius:4px;background:var(--emw--color-primary, #7EC51E)}.RedirectionNotification .RedirectionTitle{color:var(--emw--color-black, #111);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none;font-weight:var(--emw--font-weight-bold, 600)}.RedirectionNotification .RedirectionMessage{color:var(--emw--color-gray-300, #666);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none}cashier-iframe-redirect{height:inherit;width:inherit}.IframeRedirect{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:var(--emw--color-gray-transparency-20, rgba(0, 0, 0, 0.2))}.FieldWrapper,label{display:flex;flex-direction:column}.FieldWrapper{background-color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));border-radius:6px;box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.1);padding:0 15px 15px;margin-bottom:10px}.FieldWrapper:has(.QRCode, .Label){box-shadow:none;background:transparent}.FieldWrapper.Hidden{height:0;visibility:hidden;margin:0;padding:0}.AmountLimits{color:var(--emw--color-gray-300, #666);font-size:var(--emw--font-size-x-small, 12px);margin:5px 0 0 2px;line-height:var(--emw--font-size-x-small, 12px)}input,.Selected{border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);height:40px;line-height:var(--emw--size-small, 14px);color:var(--emw--color-black, #111);padding:0 15px}input:focus,.Selected:focus{outline:none}label{color:var(--emw--color-black, #111);font-size:var(--emw--size-small, 14px);margin-top:7px;line-height:27px}label span.Required:before{content:"*";display:inline-block;margin-right:2px}.Description{color:var(--emw--color-gray-300, #666);font-size:var(--emw--font-size-x-small, 12px);margin:0 0 5px 2px;line-height:var(--emw--font-size-x-small, 12px)}.PrimaryButton{color:var(--emw--color-white, #FFF);text-align:center;font-size:var(--emw--font-size-small, 14px);font-style:normal;font-weight:400;height:46px;border-radius:50px;line-height:normal;border:none;background:var(--emw--color-primary, #7EC51E);width:100%;margin:12px 0;cursor:pointer;text-transform:uppercase}.PrimaryButton .ButtonSpinner{animation:loading-spinner 1s linear infinite}.QRCode{width:250px;margin:auto}.Checkbox{display:flex;position:relative;margin-top:12px}.Checkbox .Description{margin:0 0 0 20px;cursor:pointer;line-height:var(--emw--font-size-medium, 16px)}.Checkbox .Checkmark{position:absolute;top:2px;left:0;height:12px;width:12px;border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);background-color:var(--emw--color-white, #FFF);cursor:pointer}.Checkbox .Checkmark:after{content:"";position:absolute;display:none}.Checkbox .Checkmark:after{left:4px;top:0;width:2px;height:8px;border:solid var(--emw--color-white, #FFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.Checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Checkbox input:checked~.Checkmark{background-color:var(--emw--color-primary, #7EC51E);border-color:var(--emw--color-primary, #7EC51E)}.Checkbox input:checked~.Checkmark:after{display:block}.CustomSelect{width:100%;position:relative}.Selected{display:flex;align-items:center;cursor:pointer}.Selected:after{position:absolute;content:"";top:19px;right:10px;width:0;height:0;border:6px solid transparent;border-color:rgb(168, 169, 170) transparent transparent transparent}.OptionList{display:none;position:absolute;top:100%;left:0;right:0;z-index:99;background-color:white;border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin-top:5px}.OptionList div{padding:8px 16px;cursor:pointer;user-select:none}.OptionList div:hover{background-color:var(--emw--color-background-secondary, #F9F9F9)}.OptionList.Opened{display:block}',this.shadowRoot.appendChild(t),X(this,{target:this.shadowRoot,props:A(this.attributes),customElement:!0},Bo,_o,i,{PaymentMethodDetails:26,FieldTypes:0,endpoint:27,session:28,lang:3,translationurl:4,customerid:29,currency:5,amount:1,selectedpaymentmethodname:30,clientstyling:31,clientstylingurl:32,RedirectionModeStringEnum:2},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),F()))}static get observedAttributes(){return["PaymentMethodDetails","FieldTypes","endpoint","session","lang","translationurl","customerid","currency","amount","selectedpaymentmethodname","clientstyling","clientstylingurl","RedirectionModeStringEnum"]}get PaymentMethodDetails(){return this.$$.ctx[26]}get FieldTypes(){return this.$$.ctx[0]}set FieldTypes(e){this.$$set({FieldTypes:e}),F()}get endpoint(){return this.$$.ctx[27]}set endpoint(e){this.$$set({endpoint:e}),F()}get session(){return this.$$.ctx[28]}set session(e){this.$$set({session:e}),F()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),F()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),F()}get customerid(){return this.$$.ctx[29]}set customerid(e){this.$$set({customerid:e}),F()}get currency(){return this.$$.ctx[5]}set currency(e){this.$$set({currency:e}),F()}get amount(){return this.$$.ctx[1]}set amount(e){this.$$set({amount:e}),F()}get selectedpaymentmethodname(){return this.$$.ctx[30]}set selectedpaymentmethodname(e){this.$$set({selectedpaymentmethodname:e}),F()}get clientstyling(){return this.$$.ctx[31]}set clientstyling(e){this.$$set({clientstyling:e}),F()}get clientstylingurl(){return this.$$.ctx[32]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),F()}get RedirectionModeStringEnum(){return this.$$.ctx[2]}set RedirectionModeStringEnum(e){this.$$set({RedirectionModeStringEnum:e}),F()}}return!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",xo),xo}));
|
739
739
|
//# sourceMappingURL=cashier-method-details.js.map
|