@everymatrix/cashier-page 1.39.2 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/dist/cashier-page.js +33 -33
- package/dist/cashier-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CashierPage.svelte +21 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
| Version | Release date | Impacted areas | Changes |
|
|
5
5
|
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
|
6
|
+
| 1.39.3 | Thu Sep 12 2024 | cashier-page | fix(MMFE-1161)(cashier-page,cashier-error,cashier-method-details,cashier-verifications): fix translations for header, fix verifications displaying |
|
|
6
7
|
| 1.39.0 | Tue Sep 03 2024 | cashier-page | fix(MMFE-1126)(cashier-page,cashier-header,cashier-method-details,cashier-receipt-page): fix translations for header, fixes for receipt page <br /> feat(MMFE-1211)(cashier-page,cashier-verifications): add new widget to show the verifications |
|
|
7
8
|
| 1.38.0 | Fri Aug 30 2024 | cashier-page | feat(MMFE-1100)(cashier-error,cashier-method-details,cashier-page,cashier-session-expiration-modal): add session expiration widget |
|
|
8
9
|
| 1.37.2 | Mon Aug 12 2024 | cashier-page | fix(MMFE-1090)(cashier-method-details,cashier-methods-list,cashier-page): fix header frame <br /> fix(MMFE-1097)(cashier-confirm-modal,cashier-page): pass client styling to confirm-modal <br /> feat(MMFE-1035)(cashier-iframe-redirect,cashier-spinner,cashier-method-details,cashier-method-list,cashier-page): add spinner, fix translations <br /> fix(MMFE-1081)(cashier-methods-list,cashier-page): added checking on device <br /> fix(GMMMFE-995)(cashier-method-details,cashier-notifications,cashier-page): fix notification displaying <br /> feat(MMFE-1034)(cashier-page,cashier-iframe-redirect,cashier-method-details,cashier-notification,cashier-confirm-modal): create the header for whole cashier <br /> feat(MMFE-1026)(cashier-method-details,cashier-page): removed date and time... <br /> fix(GMMMFE-981)(cashier-page,cashier-error,cashier-method-details,cashier-receipt-page): show error message on receipt page, small fixes <br /> fix(MMFE-971)(cashier-error,cashier-page,cashier-receipt-page): added funct to initialize the fallback lang <br /> fix(MMFE-922)(cashier-page,cashier-method-details): added new event parameter and check on hide amount <br /> fix(MMFE-922)(cashier-page,cashier-method-details): added translations which... <br /> feat(GMMMFE-781)(cashier-page,cashier-confirm-page,cashier-method-deposit,cashier-receipt-page,cashier-error,cashier-method-list): add transaction <br /> fix(MMFE-893)(cashier-confirm-modal,cashier-iframe-redirect,cashier-method-details,cashier-page): move modals to cashier-page, move redirect frame to cashier-page, move translations to cashier-page tranlslations, changed hover for close modal <br /> fix(MMFE-859)(cashier-method-details,cashier-page): fix datepicker for mobile, fix scroll <br /> fix(MMFE-850)(cashier-page,cashier-method-details): move container which froze page, change height of scrollable container <br /> fix(GMMMFE-818)(cashier-method-details,cashier-page): add event which froze Cashier while the spinner on Deposit/Withdraw buttons is processing <br /> fix(GMMMFE-818)(cashier-method-details,cashier-page,cashier-iframe-redirect): improve the view of the frame on redirect mode 0 <br /> chore(EMFE-000)(cashier-page,cashier-method-details): add plugin in both so we can build :) <br /> chore(EMFE-000)(cashier-page,cashier-method-details): add plugin in both so we can build :) <br /> feat(GMMMFE-773)(cashier-method-details,cashier-page): add field with type 'date' <br /> feat(GMMMFE-544)(cashier-page): added new widget for making withdrawals and deposits |
|
package/dist/cashier-page.js
CHANGED
|
@@ -635,17 +635,17 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
635
635
|
/* ../cashier-header/src/CashierHeader.svelte generated by Svelte v3.59.2 */function fr(t){let n,r,i;return{c(){n=C("div"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',A(n,"class","CashierHeaderLeftButton")},m(e,o){v(e,n,o),r||(i=S(n,"click",/*back*/t[5]),r=!0)},p:e,d(e){e&&k(n),r=!1,i()}}}function mr(t){let n,r,i,o,a,s,l,c,u,d,h,p=/*$_*/t[3](/*titleText*/t[2])+"",f=/*backButton*/t[1]&&fr(t);return{c(){n=C("div"),r=C("slot"),f&&f.c(),i=M(),o=C("slot"),a=C("span"),s=T(p),l=M(),c=C("slot"),u=C("span"),u.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',this.c=e,A(r,"name","leftButton"),A(a,"class","CashierHeaderTitle"),A(o,"name","title"),A(u,"class","CashierHeaderRightButton"),A(c,"name","rightButton"),A(n,"class","CashierHeader")},m(e,p){v(e,n,p),y(n,r),f&&f.m(r,null),y(n,i),y(n,o),y(o,a),y(a,s),y(n,l),y(n,c),y(c,u),
|
|
636
636
|
/*div_binding*/t[12](n),d||(h=S(u,"click",/*close*/t[4]),d=!0)},p(e,[t]){/*backButton*/e[1]?f?f.p(e,t):(f=fr(e),f.c(),f.m(r,null)):f&&(f.d(1),f=null),/*$_, titleText*/12&t&&p!==(p=/*$_*/e[3](/*titleText*/e[2])+"")&&P(s,p)},i:e,o:e,d(e){e&&k(n),f&&f.d()
|
|
637
637
|
/*div_binding*/,t[12](null),d=!1,h()}}}function gr(e,t,n){let r;u(e,ar,(e=>n(3,r=e)));let i,o,{clientstyling:a=""}=t,{clientstylingurl:s=""}=t,{translationurl:l=""}=t,{showbackbutton:c=""}=t,{title:d="header.general"}=t,{lang:h="en"}=t,p=!1;Object.keys(pr).forEach((e=>{hr(e,pr[e])}));const f=()=>{var e;e=h,Fn.set(e)};return e.$$set=e=>{"clientstyling"in e&&n(6,a=e.clientstyling),"clientstylingurl"in e&&n(7,s=e.clientstylingurl),"translationurl"in e&&n(8,l=e.translationurl),"showbackbutton"in e&&n(9,c=e.showbackbutton),"title"in e&&n(10,d=e.title),"lang"in e&&n(11,h=e.lang)},e.$$.update=()=>{/*lang*/2048&e.$$.dirty&&h&&f(),/*lang, title*/3072&e.$$.dirty&&h&&d&&n(2,o=d||"header.general"),/*clientstyling, customStylingContainer*/65&e.$$.dirty&&a&&i&&(()=>{let e=document.createElement("style");e.innerHTML=a,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/129&e.$$.dirty&&s&&i&&(()=>{let e=new URL(s),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})(),/*translationurl*/256&e.$$.dirty&&l&&l&&fetch(l).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{hr(t,e[t])}))})).catch((e=>{console.log(e)})),/*showbackbutton*/512&e.$$.dirty&&c&&n(1,p=!!c&&"false"!==c)},[i,p,o,r,()=>{window.postMessage({type:"CloseCashier"},window.location.href)},()=>{window.postMessage({type:"BackCashier"},window.location.href)},a,s,l,c,d,h,function(e){X[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}function yr(e,t){pn(e,t)}!customElements.get("cashier-header")&&customElements.define("cashier-header",class extends ve{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}",this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},gr,mr,a,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["clientstyling","clientstylingurl","translationurl","showbackbutton","title","lang"]}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),ae()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(e){this.$$set({showbackbutton:e}),ae()}get title(){return this.$$.ctx[10]}set title(e){this.$$set({title:e}),ae()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),ae()}}),Mn({fallbackLocale:"en"});const wr={en:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};
|
|
638
|
-
/* ../cashier-verifications/src/CashierVerifications.svelte generated by Svelte v3.59.2 */function br(e,t,n){const r=e.slice();return r[
|
|
639
|
-
// (
|
|
640
|
-
function vr(e){let t,n=/*displayMessages*/e[1],r=[];for(let t=0;t<n.length;t+=1)r[t]=xr(br(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c()
|
|
641
|
-
// (
|
|
638
|
+
/* ../cashier-verifications/src/CashierVerifications.svelte generated by Svelte v3.59.2 */function br(e,t,n){const r=e.slice();return r[38]=t[n],r[40]=n,r}
|
|
639
|
+
// (243:2) {#if displayMessages}
|
|
640
|
+
function vr(e){let t,n=/*displayMessages*/e[1],r=[];for(let t=0;t<n.length;t+=1)r[t]=xr(br(e,n,t));return{c(){t=C("div");for(let e=0;e<r.length;e+=1)r[e].c()},m(e,n){v(e,t,n);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,null)},p(e,i){if(/*allVerificationsVisible, showAllVerifications, displayMessages*/14&i[0]){let o;for(n=/*displayMessages*/e[1],o=0;o<n.length;o+=1){const a=br(e,n,o);r[o]?r[o].p(a,i):(r[o]=xr(a),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){e&&k(t),x(r,e)}}}
|
|
641
|
+
// (249:10) {#if displayMessages.length > 1 && index === 0}
|
|
642
642
|
function kr(e){let t,n,r;function i(...t){/*click_handler*/
|
|
643
|
-
return e[11](/*index*/e[
|
|
644
|
-
// (
|
|
645
|
-
function xr(e){let t,n,r,i,o,a,s,l,c=/*message*/e[
|
|
646
|
-
return e[12](/*index*/e[
|
|
643
|
+
return e[11](/*index*/e[40],...t)}return{c(){t=C("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',A(t,"class","CashierVerificationChevron")},m(e,o){v(e,t,o),n||(r=S(t,"click",i),n=!0)},p(t,n){e=t},d(e){e&&k(t),n=!1,r()}}}
|
|
644
|
+
// (245:6) {#each displayMessages as message, index}
|
|
645
|
+
function xr(e){let t,n,r,i,o,a,s,l,c=/*message*/e[38]+"",u=/*displayMessages*/e[1].length>1&&/*index*/0===e[40]&&kr(e);function d(...t){/*click_handler_1*/
|
|
646
|
+
return e[12](/*index*/e[40],...t)}return{c(){t=C("div"),n=C("div"),n.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',r=M(),i=C("p"),o=M(),u&&u.c(),a=M(),A(n,"class","IconVerification"),A(i,"class","text"),A(t,"class","CashierVerificationMessage"),I(t,"ShowAll",/*allVerificationsVisible*/e[2])},m(e,h){v(e,t,h),y(t,n),y(t,r),y(t,i),i.innerHTML=c,y(t,o),u&&u.m(t,null),y(t,a),s||(l=S(t,"click",d),s=!0)},p(n,r){e=n,/*displayMessages*/2&r[0]&&c!==(c=/*message*/e[38]+"")&&(i.innerHTML=c),/*displayMessages*/e[1].length>1&&/*index*/0===e[40]?u?u.p(e,r):(u=kr(e),u.c(),u.m(t,a)):u&&(u.d(1),u=null),/*allVerificationsVisible*/4&r[0]&&I(t,"ShowAll",/*allVerificationsVisible*/e[2])},d(e){e&&k(t),u&&u.d(),s=!1,l()}}}function Cr(t){let n,r=/*displayMessages*/t[1]&&vr(t);return{c(){n=C("div"),r&&r.c(),this.c=e,A(n,"class","CashierVerifications")},m(e,i){v(e,n,i),r&&r.m(n,null)
|
|
647
647
|
/*div_binding*/,t[13](n)},p(e,t){/*displayMessages*/e[1]?r?r.p(e,t):(r=vr(e),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:e,o:e,d(e){e&&k(n),r&&r.d()
|
|
648
|
-
/*div_binding*/,t[13](null)}}}function Er(e,t,n){let r;u(e,ar,(e=>n(19,r=e)));let i,o,a,{endpoint:s}=t,{lang:l="en"}=t,{translationurl:c=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{session:p=""}=t,{customerid:f=""}=t,m=new Set,g=new Set,y=!
|
|
648
|
+
/*div_binding*/,t[13](null)}}}function Er(e,t,n){let r;u(e,ar,(e=>n(19,r=e)));let i,o,a,{endpoint:s}=t,{lang:l="en"}=t,{translationurl:c=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{session:p=""}=t,{customerid:f=""}=t,m=new Set,g=new Set,y=!0;var w,b,v,k;!function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"}(w||(w={})),function(e){e.Requested="Requested"}(b||(b={})),function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"}(v||(v={})),function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"}(k||(k={}));const x=[v.InProgress,v.Referred,v.AwaitingForResponse];Object.keys(wr).forEach((e=>{yr(e,wr[e])}));const C=()=>{var e;e=l,Fn.set(e)},E=()=>{let e=p.split(".")[1];if(e){let t=JSON.parse(atob(e));return{merchantId:null==t?void 0:t.mid,customerId:`${null==t?void 0:t.mid}~${f}`}}return{merchantId:null,customerId:null}},T=e=>{var t;if(!e||!e.length)return{VerificationSummaryStatus:v.Unverified};const n=D(e);if(n)return{VerificationSummaryStatus:v.InProgress,VerificationUrl:null===(t=n.Flags)||void 0===t?void 0:t.DeferredUrlKey,VerificationStatuses:M(e,x)};return{VerificationSummaryStatus:e.some((e=>e.Status===v.Failed))?v.Failed:v.Verified,VerificationStatuses:M(e,[v.Failed])}},M=(e,t)=>e.filter((e=>t.includes(e.Status))).map((e=>{var t,n;return{Type:e.Type,Vendor:e.VendorName,VerificationDocuments:e.Documents?[...Object.values(e.Documents)]:[],VerificationUrlType:null===(t=e.Flags)||void 0===t?void 0:t.DeferredUrlTypeKey,VerificationUrl:null===(n=e.Flags)||void 0===n?void 0:n.DeferredUrlKey}})),D=e=>e.find((e=>!!x.includes(e.Status)&&(e.Flags&&e.Flags.DeferredUrlKey||S(e)))),S=e=>{const t=e.Documents&&e.VendorName===w.Manual,n=Object.values(e.Documents).some((e=>e.Status===b.Requested));return t&&n},A=()=>{switch(o.VerificationSummaryStatus){case v.InProgress:const e=[];return m.forEach((t=>{e.push($(t))})),e;case v.Failed:return[r("verification.message.failed")]}},$=e=>{const t=o.VerificationStatuses.filter((t=>t.Vendor===e));if(e===w.ShuftiPro)return L(t);{const e=r("verification.idenfy.link-name"),n={link:`<a href="${t[0].VerificationUrl}" target="_blank">${e}</a>`};return r("verification.idenfy.in-progress",{values:n})}},L=e=>{const t=[],n={},i=[k.Biometric,k.Documents,k.ProofOfAddress];e.forEach((e=>{i.includes(e.Type)&&(t.push(e.Type),n[e.Type]=P(e,_(e.Type)))}));let o=t.every((e=>g.has(e))),a=`verification.shuftipro.in-progress.${t.sort().join(".")}`;return o?r("verification.shuftipro.validations-started"):r(a,{values:n})},P=(e,t)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${t}</a>`,_=e=>r(`verification.shuftipro.link-name.${e}`),O=(e,t)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))&&e.target.closest(".verificationLink")){const t=e.target.className.split(" ")[1];return g.add(t),void n(1,a=A())}0===t&&n(2,y=!y)};return e.$$set=e=>{"endpoint"in e&&n(4,s=e.endpoint),"lang"in e&&n(5,l=e.lang),"translationurl"in e&&n(6,c=e.translationurl),"clientstyling"in e&&n(7,d=e.clientstyling),"clientstylingurl"in e&&n(8,h=e.clientstylingurl),"session"in e&&n(9,p=e.session),"customerid"in e&&n(10,f=e.customerid)},e.$$.update=()=>{/*lang*/32&e.$$.dirty[0]&&l&&C(),/*endpoint, session*/528&e.$$.dirty[0]&&s&&p&&(()=>{const{merchantId:e,customerId:t}=E();if(!e)return;const r=new URL(`${s}/v1/player/verification/GetKYCStatus`),i=new Headers;i.append("accept","application/json"),i.append("Content-Type","application/json");const l={method:"POST",headers:i,body:JSON.stringify({MerchantId:e,CustomerId:t,All:!1,AllParameters:!1})};fetch(r,l).then((e=>e.json())).then((e=>{o=T(e.Verifications),o.VerificationStatuses.forEach((e=>{"Widget"!==e.VerificationUrlType&&m.add(e.Vendor)})),n(1,a=A())}))})(),/*translationurl*/64&e.$$.dirty[0]&&c&&(()=>{if(c)fetch(c).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{yr(t,e[t])}))})).catch((e=>{console.log(e)}))})(),/*clientstyling, customStylingContainer*/129&e.$$.dirty[0]&&d&&i&&(()=>{let e=document.createElement("style");e.innerHTML=d,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/257&e.$$.dirty[0]&&h&&i&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})()},[i,a,y,O,s,l,c,d,h,p,f,(e,t)=>O(t,e),(e,t)=>O(t,e),function(e){X[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}!customElements.get("cashier-verifications")&&customElements.define("cashier-verifications",class extends ve{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{display:flex;flex-direction:column;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.CashierVerifications:has(.CashierVerificationMessage){margin-bottom:20px}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer;border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:calc(var(--emw--size-small, 14px) + 3px);margin:var(--emw--spacing-small, 12px)}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}@container method-list (width < 450px){p{font-size:var(--emw--font-size-x-small, 12px);line-height:calc(var(--emw--size-small, 12px) + 3px)}}",this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},Er,Cr,a,{endpoint:4,lang:5,translationurl:6,clientstyling:7,clientstylingurl:8,session:9,customerid:10},null,[-1,-1]),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["endpoint","lang","translationurl","clientstyling","clientstylingurl","session","customerid"]}get endpoint(){return this.$$.ctx[4]}set endpoint(e){this.$$set({endpoint:e}),ae()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),ae()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),ae()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),ae()}get customerid(){return this.$$.ctx[10]}set customerid(e){this.$$set({customerid:e}),ae()}}),Mn({fallbackLocale:"en"});const Tr={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"}};
|
|
649
649
|
/* ../cashier-methods-list/src/CashierMethodsList.svelte generated by Svelte v3.59.2 */function Mr(e,t,n){const r=e.slice();return r[47]=t[n],r[49]=n,r}
|
|
650
650
|
// (179:0) {#if showSpinner}
|
|
651
651
|
function Dr(e){let t;return{c(){t=C("cashier-spinner"),$(t,"clientstylingurl",/*clientstylingurl*/e[4]),$(t,"clientstyling",/*clientstyling*/e[3])},m(e,n){v(e,t,n)},p(e,n){/*clientstylingurl*/16&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[4]),/*clientstyling*/8&n[0]&&$(t,"clientstyling",/*clientstyling*/e[3])},d(e){e&&k(t)}}}
|
|
@@ -731,7 +731,7 @@ function Xi(e){let t;return{c(){t=C("cashier-spinner"),$(t,"clientstylingurl",/*
|
|
|
731
731
|
// (67:2) {#if !hidebuttons || hidebuttons === 'false'}
|
|
732
732
|
function ro(e){let t,n,r,i,o,a,s=/*$_*/e[5]("errorGeneralButton")+"";return{c(){t=C("div"),n=C("slot"),r=C("span"),i=T(s),A(n,"name","button"),A(t,"class","CashierErrorButton")},m(s,l){v(s,t,l),y(t,n),y(n,r),y(r,i),o||(a=S(t,"click",/*close*/e[6]),o=!0)},p(e,t){/*$_*/32&t&&s!==(s=/*$_*/e[5]("errorGeneralButton")+"")&&P(i,s)},d(e){e&&k(t),o=!1,a()}}}function io(t){let n,r,i,o,a,s,l,c,u,d,h,p,f=/*$_*/t[5]("errorGeneralTitle")+"",m=/*$_*/t[5](`${/*errorcode*/t[3]||"errorGeneralText"}`)+"",g=/*assetsurl*/t[0]&&no(t),w=(!/*hidebuttons*/t[2]||/*hidebuttons*/"false"===t[2])&&ro(t);return{c(){n=C("div"),r=C("div"),i=C("slot"),g&&g.c(),o=M(),a=C("slot"),s=C("span"),l=T(f),c=M(),u=C("slot"),d=C("span"),h=T(m),p=M(),w&&w.c(),this.c=e,A(i,"name","icon"),A(i,"class","CashierErrorIcon"),A(a,"name","title"),A(a,"class","CashierErrorTitle"),A(u,"name","text"),A(u,"class","CashierErrorText"),A(r,"class","CashierErrorContent"),A(n,"class","CashierError")},m(e,f){v(e,n,f),y(n,r),y(r,i),g&&g.m(i,null),y(r,o),y(r,a),y(a,s),y(s,l),y(r,c),y(r,u),y(u,d),y(d,h),y(r,p),w&&w.m(r,null)
|
|
733
733
|
/*div1_binding*/,t[11](n)},p(e,[t]){/*assetsurl*/e[0]?g?g.p(e,t):(g=no(e),g.c(),g.m(i,null)):g&&(g.d(1),g=null),/*$_*/32&t&&f!==(f=/*$_*/e[5]("errorGeneralTitle")+"")&&P(l,f),/*$_, errorcode*/40&t&&m!==(m=/*$_*/e[5](`${/*errorcode*/e[3]||"errorGeneralText"}`)+"")&&P(h,m),/*hidebuttons*/e[2]&&/*hidebuttons*/"false"!==e[2]?w&&(w.d(1),w=null):w?w.p(e,t):(w=ro(e),w.c(),w.m(r,null))},i:e,o:e,d(e){e&&k(n),g&&g.d(),w&&w.d()
|
|
734
|
-
/*div1_binding*/,t[11](null)}}}function oo(e,t,n){let r;u(e,ar,(e=>n(5,r=e)));let i,{assetsurl:o=""}=t,{imgurl:a=""}=t,{lang:s="en"}=t,{hidebuttons:l=""}=t,{errorcode:c=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{translationurl:p=""}=t;Object.keys(to).forEach((e=>{eo(e,to[e])}));
|
|
734
|
+
/*div1_binding*/,t[11](null)}}}function oo(e,t,n){let r;u(e,ar,(e=>n(5,r=e)));let i,{assetsurl:o=""}=t,{imgurl:a=""}=t,{lang:s="en"}=t,{hidebuttons:l=""}=t,{errorcode:c=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{translationurl:p=""}=t;const f=()=>{var e;e=s,Fn.set(e)};Object.keys(to).forEach((e=>{eo(e,to[e])}));return e.$$set=e=>{"assetsurl"in e&&n(0,o=e.assetsurl),"imgurl"in e&&n(1,a=e.imgurl),"lang"in e&&n(7,s=e.lang),"hidebuttons"in e&&n(2,l=e.hidebuttons),"errorcode"in e&&n(3,c=e.errorcode),"clientstyling"in e&&n(8,d=e.clientstyling),"clientstylingurl"in e&&n(9,h=e.clientstylingurl),"translationurl"in e&&n(10,p=e.translationurl)},e.$$.update=()=>{/*lang*/128&e.$$.dirty&&s&&f(),/*clientstyling, customStylingContainer*/272&e.$$.dirty&&d&&i&&(()=>{let e=document.createElement("style");e.innerHTML=d,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/528&e.$$.dirty&&h&&i&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})(),/*translationurl*/1024&e.$$.dirty&&p&&fetch(p).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{eo(t,e[t])}))})).catch((e=>{console.log(e)}))},[o,a,l,c,i,r,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},s,d,h,p,function(e){X[e?"unshift":"push"]((()=>{i=e,n(4,i)}))}]}function ao(e,t){pn(e,t)}!customElements.get("cashier-error")&&customElements.define("cashier-error",class extends ve{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierError{display:flex;width:100%;justify-content:center}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:400px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:0 var(--emw--spacing-medium, 15px)}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorButton{display:flex;width:100%;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:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--mmw--color-main-button-active, #5C950F)}",this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},oo,io,a,{assetsurl:0,imgurl:1,lang:7,hidebuttons:2,errorcode:3,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["assetsurl","imgurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),ae()}get imgurl(){return this.$$.ctx[1]}set imgurl(e){this.$$set({imgurl:e}),ae()}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),ae()}get hidebuttons(){return this.$$.ctx[2]}set hidebuttons(e){this.$$set({hidebuttons:e}),ae()}get errorcode(){return this.$$.ctx[3]}set errorcode(e){this.$$set({errorcode:e}),ae()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),ae()}}),Mn({fallbackLocale:"en"});const so={en:{deposit:{success:{title:"{amount} {currency}",subTitle:"Deposited in your account",text:"Your deposit is successful"},pending:{title:"{amount} {currency}",subTitle:"Transaction is in progress",text:"Thank you. Your deposit is being processed."},reject:{title:"Deposit Rejected",subTitle:" ",text:" "},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},withdrawal:{success:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Your withdrawal is successful"},pending:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdrawal Rejected",subTitle:" ",text:" "},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},reference:"Reference ID: {code}",close:"Close"},"pt-br":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado em sua conta",text:"Seu depósito foi bem-sucedido"},pending:{title:"{amount} {currency}",subTitle:"Transação em andamento",text:"Obrigado. Seu depósito está sendo processado."},reject:{title:"Depósito Rejeitado",subTitle:"",text:"{errorText}"},fail:{title:"Erro",subTitle:"",text:"{errorText}"},cancel:{title:"Você cancelou a transação",subTitle:"",text:"{errorText}"}},reference:"Referência ID: {code}",close:"VOLTAR AO PROVEDOR DE PAGAMENTO"},"es-mx":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado en tu cuenta",text:"Tu depósito fue exitoso"},pending:{title:"{amount} {currency}",subTitle:"Transacción en proceso",text:"Gracias. Tu depósito está siendo procesado."},reject:{title:"Depósito Rechazado",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"Has cancelado la transacción",subTitle:" ",text:"{errorText}"}},reference:"Referencia ID: {code}",close:"REGRESAR A PROVEEDOR DE PAGO"}},lo={Success:"/txn-success.png",Voided:"/txn-success.png",Rejected:"/txn-failed.png",Failed:"/txn-failed.png",Canceled:"/txn-failed.png",PendingNotification:"/txn-pending.png",PendingConfirmation:"/txn-pending.png",PendingApprovalStage1:"/txn-pending.png",PendingApprovalStage2:"/txn-pending.png",PendingApprovalStage3:"/txn-pending.png",PendingOfflineNotification:"/txn-pending.png"},co={Deposit:"deposit",Withdraw:"withdrawal"},uo={Success:"success",Voided:"success",Rejected:"reject",Failed:"fail",Canceled:"cancel",PendingNotification:"pending",PendingConfirmation:"pending",PendingApprovalStage1:"pending",PendingApprovalStage3:"pending",PendingApprovalStage2:"pending",PendingOfflineNotification:"pending"},{document:ho}=g;function po(e,t,n){const r=e.slice();return r[43]=t[n],r[45]=n,r}
|
|
735
735
|
// (258:65)
|
|
736
736
|
function fo(e){let t;return{c(){t=C("cashier-error"),$(t,"assetsurl",/*assetsurl*/e[3]),$(t,"translationurl",/*translationurl*/e[2]),$(t,"clientstylingurl",/*clientstylingurl*/e[5]),$(t,"clientstyling",/*clientstyling*/e[4]),$(t,"hidebuttons","true"),$(t,"errorcode",/*errorResponseCode*/e[15])},m(e,n){v(e,t,n)},p(e,n){/*assetsurl*/8&n[0]&&$(t,"assetsurl",/*assetsurl*/e[3]),/*translationurl*/4&n[0]&&$(t,"translationurl",/*translationurl*/e[2]),/*clientstylingurl*/32&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[5]),/*clientstyling*/16&n[0]&&$(t,"clientstyling",/*clientstyling*/e[4]),/*errorResponseCode*/32768&n[0]&&$(t,"errorcode",/*errorResponseCode*/e[15])},d(e){e&&k(t)}}}
|
|
737
737
|
// (204:5) {#if txnInfo}
|
|
@@ -885,9 +885,9 @@ function Za(e){let t,n,r,i,o,a,s,c,u,d,h,p,f,m,g=/*$_*/e[36]("redirectTitle")+""
|
|
|
885
885
|
// (942:6) {#if showReceiptPage}
|
|
886
886
|
function Qa(e){let t,n;return{c(){t=C("div"),n=C("cashier-receipt-page"),$(n,"lang",/*lang*/e[2]),$(n,"translationurl",/*translationurl*/e[4]),$(n,"local",/*local*/e[3]),$(n,"endpoint",/*endpoint*/e[0]),$(n,"customerid",/*customerid*/e[5]),$(n,"assetsurl",/*assetsurl*/e[8]),$(n,"clientstylingurl",/*clientstylingurl*/e[11]),$(n,"clientstyling",/*clientstyling*/e[10]),$(n,"showerrors","false"),$(n,"showclosebutton","true"),$(n,"showcontactbutton","true"),$(n,"transactionid",/*transactionId*/e[34]),$(n,"session",/*playersession*/e[1]),A(t,"class","ReceiptPage")},m(e,r){v(e,t,r),y(t,n)},p(e,t){/*lang*/4&t[0]&&$(n,"lang",/*lang*/e[2]),/*translationurl*/16&t[0]&&$(n,"translationurl",/*translationurl*/e[4]),/*local*/8&t[0]&&$(n,"local",/*local*/e[3]),/*endpoint*/1&t[0]&&$(n,"endpoint",/*endpoint*/e[0]),/*customerid*/32&t[0]&&$(n,"customerid",/*customerid*/e[5]),/*assetsurl*/256&t[0]&&$(n,"assetsurl",/*assetsurl*/e[8]),/*clientstylingurl*/2048&t[0]&&$(n,"clientstylingurl",/*clientstylingurl*/e[11]),/*clientstyling*/1024&t[0]&&$(n,"clientstyling",/*clientstyling*/e[10]),/*transactionId*/8&t[1]&&$(n,"transactionid",/*transactionId*/e[34]),/*playersession*/2&t[0]&&$(n,"session",/*playersession*/e[1])},d(e){e&&k(t)}}}
|
|
887
887
|
// (964:2) {#if errorResponseCode && !showErrorModal}
|
|
888
|
-
function es(e){let t,n,r,i,o,a,s=/*$_*/e[36]("backToMethodList")+"";return{c(){t=C("cashier-error"),n=C("div"),r=T(s),A(n,"slot","button"),A(n,"class","ModalButton"),$(t,"assetsurl",/*assetsurl*/e[8]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"clientstylingurl",/*clientstylingurl*/e[11]),$(t,"clientstyling",/*clientstyling*/e[10]),$(t,"hidebuttons",i=`${!/*mobileView*/e[24]}`),$(t,"errorcode",/*errorResponseCode*/e[32])},m(i,s){v(i,t,s),y(t,n),y(n,r),o||(a=S(n,"click",/*backToMethodList*/e[40]),o=!0)},p(e,n){/*$_*/32&n[1]&&s!==(s=/*$_*/e[36]("backToMethodList")+"")&&P(r,s),/*assetsurl*/256&n[0]&&$(t,"assetsurl",/*assetsurl*/e[8]),/*translationurl*/16&n[0]&&$(t,"translationurl",/*translationurl*/e[4]),/*clientstylingurl*/2048&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[11]),/*clientstyling*/1024&n[0]&&$(t,"clientstyling",/*clientstyling*/e[10]),/*mobileView*/16777216&n[0]&&i!==(i=`${!/*mobileView*/e[24]}`)&&$(t,"hidebuttons",i),/*errorResponseCode*/2&n[1]&&$(t,"errorcode",/*errorResponseCode*/e[32])},d(e){e&&k(t),o=!1,a()}}}function ts(t){let n,r,i,o,a,s,c,u;ne(/*onwindowresize*/t[53]);let d=/*showSpinner*/t[35]&&Ca(t),h=/*selectedPaymentMethod*/t[17]?.Name&&Ea(t),p=/*errorResponseCode*/t[32]&&!/*showErrorModal*/t[33]&&es(t);return{c(){n=C("script"),i=M(),o=C("div"),d&&d.c(),a=M(),h&&h.c(),s=M(),p&&p.c(),this.c=e,l(n.src,r=ns)||A(n,"src",r),A(o,"class","CashierMethodDetails")},m(e,r){y(ba.head,n),v(e,i,r),v(e,o,r),d&&d.m(o,null),y(o,a),h&&h.m(o,null),y(o,s),p&&p.m(o,null)
|
|
888
|
+
function es(e){let t,n,r,i,o,a,s=/*$_*/e[36]("backToMethodList")+"";return{c(){t=C("cashier-error"),n=C("div"),r=T(s),A(n,"slot","button"),A(n,"class","ModalButton"),$(t,"assetsurl",/*assetsurl*/e[8]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"clientstylingurl",/*clientstylingurl*/e[11]),$(t,"clientstyling",/*clientstyling*/e[10]),$(t,"lang",/*lang*/e[2]),$(t,"hidebuttons",i=`${!/*mobileView*/e[24]}`),$(t,"errorcode",/*errorResponseCode*/e[32])},m(i,s){v(i,t,s),y(t,n),y(n,r),o||(a=S(n,"click",/*backToMethodList*/e[40]),o=!0)},p(e,n){/*$_*/32&n[1]&&s!==(s=/*$_*/e[36]("backToMethodList")+"")&&P(r,s),/*assetsurl*/256&n[0]&&$(t,"assetsurl",/*assetsurl*/e[8]),/*translationurl*/16&n[0]&&$(t,"translationurl",/*translationurl*/e[4]),/*clientstylingurl*/2048&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[11]),/*clientstyling*/1024&n[0]&&$(t,"clientstyling",/*clientstyling*/e[10]),/*lang*/4&n[0]&&$(t,"lang",/*lang*/e[2]),/*mobileView*/16777216&n[0]&&i!==(i=`${!/*mobileView*/e[24]}`)&&$(t,"hidebuttons",i),/*errorResponseCode*/2&n[1]&&$(t,"errorcode",/*errorResponseCode*/e[32])},d(e){e&&k(t),o=!1,a()}}}function ts(t){let n,r,i,o,a,s,c,u;ne(/*onwindowresize*/t[53]);let d=/*showSpinner*/t[35]&&Ca(t),h=/*selectedPaymentMethod*/t[17]?.Name&&Ea(t),p=/*errorResponseCode*/t[32]&&!/*showErrorModal*/t[33]&&es(t);return{c(){n=C("script"),i=M(),o=C("div"),d&&d.c(),a=M(),h&&h.c(),s=M(),p&&p.c(),this.c=e,l(n.src,r=ns)||A(n,"src",r),A(o,"class","CashierMethodDetails")},m(e,r){y(ba.head,n),v(e,i,r),v(e,o,r),d&&d.m(o,null),y(o,a),h&&h.m(o,null),y(o,s),p&&p.m(o,null)
|
|
889
889
|
/*div_binding*/,t[81](o),c||(u=S(va,"resize",/*onwindowresize*/t[53]),c=!0)},p(e,t){/*showSpinner*/e[35]?d?d.p(e,t):(d=Ca(e),d.c(),d.m(o,a)):d&&(d.d(1),d=null),/*selectedPaymentMethod*/e[17]?.Name?h?h.p(e,t):(h=Ea(e),h.c(),h.m(o,s)):h&&(h.d(1),h=null),/*errorResponseCode*/e[32]&&!/*showErrorModal*/e[33]?p?p.p(e,t):(p=es(e),p.c(),p.m(o,null)):p&&(p.d(1),p=null)},i:e,o:e,d(e){k(n),e&&k(i),e&&k(o),d&&d.d(),h&&h.d(),p&&p.d()
|
|
890
|
-
/*div_binding*/,t[81](null),c=!1,u()}}}let ns="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function rs(e,t,n){let r;u(e,ar,(e=>n(36,r=e)));class i{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=m.get(e.Type)||null,this.defaultValue=this.calcDefaultValue(e),this.format=this.setPlaceholderOrFormat(e,h.Format),this.placeholder=this.setPlaceholderOrFormat(e,h.Placeholder),this.isReadonly=e.IsReadonly||!1,this.isRequired=e.IsRequired||!1,this.maxValue=this.setValue(e,h.MaxValue),this.minValue=this.setValue(e,h.MinValue),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 this.type===d.Boolean?"True"===e.DefaultValue:p.has(e.Type)?this.setValue(e,h.DefaultValue):e.DefaultValue||null}setPlaceholderOrFormat(e,t){return p.has(e.Type)&&!f.get(e.Placeholder)?p.get(e.Type)[t]:e[t]||null}setValue(e,t){return p.has(e.Type)&&!f.get(e.Placeholder)?ya(e[t],e.Placeholder).format(p.get(e.Type).Placeholder):e[t]||null}get descriptionWithLink(){if("Boolean"===d[this.type]&&this.placeholder||"Link"===d[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}}const o=(e,[t,n])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,n]))]:[[t,n]]];var a,s,l;!function(e){e.Deposit="Deposit",e.Withdraw="Withdraw"}(a||(a={})),function(e){e.PlayerSessionIsNotValid="PlayerSessionIsNotValid",e.Success="Success",e.JwtTokenError="JwtTokenError"}(s||(s={})),function(e){e.Default="Default",e.RedirectWithRetry="Redirect"}(l||(l={}));const c=new Map([[["Default",0],l.Default],[["Redirect",1],l.RedirectWithRetry]].reduce(o,[]));var d,h;!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"}(d||(d={})),function(e){e.MaxValue="MaxValue",e.MinValue="MinValue",e.DefaultValue="DefaultValue",e.Placeholder="Placeholder",e.Format="Format"}(h||(h={}));const p=new Map([[d.Date,{Placeholder:"MM/DD/YYYY",Format:"^\\d{2}/\\d{2}/\\d{4}$"}],[d.Time,{Placeholder:"HH:mm",Format:"^\\d{2}:\\d{2}$"}],[d.DateTime,{Placeholder:"MM/DD/YYYY HH:mm",Format:"^\\d{2}/\\d{2}/\\d{4} \\d{2}:\\d{2}$"}]]),f=new Map([["MM/DD/YYYY HH:mm","m/d/Y H:i"],["DD.MM.YYYY HH:mm","d.m.Y H:i"],["YYYY-MM-DD","Y-m-d"],["MM/DD/YYYY","m/d/Y"],["DD/MM/YYYY","d/m/Y"],["YYYY.MM.DD","Y.m.d"],["HH:mm","H:i"]]),m=new Map([[["Unknown",0],d.Unknown],[["Text",1],d.Text],[["Boolean",2],d.Boolean],[["Number",3],d.Number],[["Money",4],d.Money],[["DateTime",5],d.DateTime],[["Lookup",6],d.Lookup],[["IpAddress",7],d.IpAddress],[["Date",8],d.Date],[["Time",9],d.Time],[["LookupCollection",10],d.LookupCollection],[["Hidden",11],d.Hidden],[["Label",12],d.Label],[["Password",13],d.Password],[["Link",14],d.Link],[["Image",15],d.Image],[["Html",19],d.Html],[["QR",20],d.QRCode]].reduce(o,[]));let g,y,w,b,v,k,x,C,E,T,M,{endpoint:D}=t,{session:S}=t,{playersession:A}=t,{lang:$="en"}=t,{local:P="en-US"}=t,{translationurl:_}=t,{customerid:O}=t,{currency:N}=t,{amount:R}=t,{assetsurl:H}=t,{type:I=a.Deposit}=t,{selectedpaymentmethodname:B}=t,{clientstyling:F=""}=t,{clientstylingurl:j=""}=t,{ismobileview:z}=t,U={},W=[],Y={},G=!1,V=!1,K=[],q=[],Z=!1;window.matchMedia("(max-width: 750px)");let Q,ee,te,ne,re=new Intl.NumberFormat(P,{minimumFractionDigits:2}),ie="",oe={},ae={},se=!1,le=!1,ce="",ue=!0;const de=()=>{var e;e=$,Fn.set(e)};Object.keys(Wi).forEach((e=>{Ui(e,Wi[e])}));const he=()=>{const e=new URL(`${D}/v1/player/${O}/payment/GetPaymentMethod`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({PaymentMethodName:B,Currency:N,XPaymentSessionToken:S})};fetch(e,r).then((e=>e.json())).then((e=>{if(!e.error)return e.ResponseCode===s.PlayerSessionIsNotValid||e.ResponseCode===s.JwtTokenError?(n(32,te=e.ResponseCode),void ge()):void(e.ResponseCode===s.Success?(g=e.XPaymentSessionToken,n(17,U=e.PaymentMethod),n(31,ee=Number(R)),U.HideAmountField?n(26,ie=""):Oe(),n(12,W=U.Fields&&U.Fields.map((e=>new i(e)))),W.forEach((e=>{(null==e?void 0:e.defaultValue)&&n(18,Y[e.name]=e.defaultValue,Y),Re(e)})),ye(),ge(),Ce(),window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:g,selectedPaymentMethodName:B},window.location.href)):n(32,te=e.ResponseCode));window.postMessage({type:"ShowSessionError",error:e.error},window.location.href)})).finally((()=>n(35,ue=!1)))},pe=e=>{"ErrorResponseCode"===e.data.type&&(n(32,te=e.data.errorResponseCode),n(19,V=e.data.showErrorOutsideReceiptPage)),"ReceiptLoaded"===e.data.type&&Ee(),"BackCashier"===e.data.type&&ve(),"CloseCashierReceiptPage"===e.data.type&&Se()};J((()=>(window.addEventListener("closeModal",Te,!1),window.addEventListener("confirmModal",Me,!1),window.addEventListener("closeIframe",Ee,!1),window.addEventListener("notificationButtonClick",De,!1),document.addEventListener("click",fe),window.addEventListener("message",pe,!1),ya.extend(wa),()=>{window.removeEventListener("closeModal",Te),window.removeEventListener("confirmModal",Me),window.removeEventListener("closeIframe",Ee),window.removeEventListener("notificationButtonClick",De),window.removeEventListener("message",pe)})));const fe=e=>{E&&(n(27,oe[E]=!0,oe),Re(W.find((e=>e.name===E)))),e.composedPath().includes(T)||n(23,E=null)},me=(e,t)=>{if(t===E)return n(27,oe[E]=!0,oe),Re(W.find((e=>e.name===E))),void n(23,E=null);e.stopPropagation(),T=e.composedPath()[0];const r=T.getBoundingClientRect(),i=y.getBoundingClientRect(),o=r.y;n(29,se=window.innerHeight-o<200);const a=r.top-i.top-r.height,s=i.bottom-r.bottom-r.height;n(30,Q=se?a:!se&&s<70?150:s),n(23,E=t)},ge=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:te},window.location.href)},ye=()=>{window.postMessage({type:"ShowConfirmModal",showConfirmModal:G,editedAmount:ee,hideAmountField:U.HideAmountField},window.location.href)},we=()=>{window.postMessage({type:"RedirectInfo",redirectMode:k,redirectUrl:w},window.location.href)},be=()=>{n(33,le=!0),window.postMessage({type:"ShowCashierModal",modalErrorMessage:te},window.location.href)},ve=()=>{dispatchEvent(new CustomEvent("backToMethodList",{bubbles:!0,cancelable:!0,composed:!0})),xe()},ke=()=>{window.postMessage({type:"ToggleDisableActionOnPage",disable:C},window.location.href)},xe=()=>{dispatchEvent(new CustomEvent("hidePaymentDetails",{detail:{hideMethodDetails:Z},bubbles:!0,cancelable:!0,composed:!0}))},Ce=()=>{dispatchEvent(new CustomEvent("hideMethodsList",{detail:{hideMethodsList:Z},bubbles:!0,cancelable:!0,composed:!0}))},Ee=()=>{w=null,n(19,V=!0),we()},Te=()=>{G=!1},Me=()=>{n(22,C=!0);const e=new URL(`${D}/v1/player/${O}/payment/GetPaymentConfirm`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json"),ke();const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:g})};fetch(e,r).then((e=>e.json())).then((e=>e.ResponseCode===s.PlayerSessionIsNotValid||e.ResponseCode===s.JwtTokenError?(n(32,te=e.ResponseCode),void ge()):e.ResponseCode!==s.Success?(n(32,te=e.ResponseCode),n(22,C=!1),ke(),void be()):(g=e.XPaymentSessionToken,n(34,ce=e.Transaction.Code),w=e.RedirectUrl,k=c.get(e.RedirectionMode)||c.get("Default"),n(22,C=!1),ke(),we(),window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:g,selectedpaymentmethodname:B},window.location.href),w||n(19,V=!0),void(k===l.RedirectWithRetry&&(b=window.open(e.RedirectUrl,"_blank"),n(20,v=!!b),b||n(21,x=!0))))))},De=()=>{b=window.open(w,"_blank"),n(20,v=!0),n(21,x=!1),we()},Se=()=>{n(19,V=!1)},Ae=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)},$e=(e,t)=>{n(18,Y[e.name]=t,Y),W.filter((e=>e.correlationFieldName)).forEach((e=>Re(e)))},Le=e=>{if(!e.correlationFieldName)return!0;const t=e.correlationFieldValue.includes(Y[e.correlationFieldName]);return!t&&Y[e.name]&&delete Y[e.name],t},Pe=(e,t)=>e.format&&t&&!((e,t)=>{if(!e)return!0;let n,r;return"string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),n.test(t)})(e.format,t)?r("invalidFieldError",{values:{field:e.label}}):"",_e=(e,t)=>"boolean"==typeof t||!e.isRequired||t&&t.toString().trim()?"":r("errorEmptyField"),Oe=()=>{n(26,ie=(ee?"":r("errorEmptyField"))||(U.DisplayCurrency.MinAmountLimit>ee?r("minAmountError",{values:{amount:re.format(U.DisplayCurrency.MinAmountLimit),currency:U.DisplayCurrency.Name}}):"")||(U.DisplayCurrency.MaxAmountLimit<ee?r("maxAmountError",{values:{amount:re.format(U.DisplayCurrency.MaxAmountLimit),currency:U.DisplayCurrency.Name}}):"")||(U.AmountMultiplier&&ee%U.AmountMultiplier!=0?r("amountMultiplierError",{values:{multiplier:U.AmountMultiplier}}):"")||(U.IsIntegerAmount&&!Number.isInteger(ee)?r("amountIntError"):"")||(Number(ee).toFixed(2)!=+ee?r("amountDecimalError"):""))},Ne=e=>{const t=Y[e.name],i=e.placeholder,o=ya(t,i),a=ya(e.maxValue,i),s=ya(e.minValue,i);o.isBefore(s)||o.isAfter(a)?n(28,ae[e.name]=r("invalidFieldError",{values:{field:e.label}}),ae):n(28,ae[e.name]=Le(e)?_e(e,t)||Pe(e,t):"",ae)},Re=e=>{const t=Y[e.name];n(28,ae[e.name]=Le(e)?_e(e,t)||Pe(e,t):"",ae)};return e.$$set=e=>{"endpoint"in e&&n(0,D=e.endpoint),"session"in e&&n(50,S=e.session),"playersession"in e&&n(1,A=e.playersession),"lang"in e&&n(2,$=e.lang),"local"in e&&n(3,P=e.local),"translationurl"in e&&n(4,_=e.translationurl),"customerid"in e&&n(5,O=e.customerid),"currency"in e&&n(6,N=e.currency),"amount"in e&&n(7,R=e.amount),"assetsurl"in e&&n(8,H=e.assetsurl),"type"in e&&n(9,I=e.type),"selectedpaymentmethodname"in e&&n(51,B=e.selectedpaymentmethodname),"clientstyling"in e&&n(10,F=e.clientstyling),"clientstylingurl"in e&&n(11,j=e.clientstylingurl),"ismobileview"in e&&n(52,z=e.ismobileview)},e.$$.update=()=>{/*endpoint, currency*/65&e.$$.dirty[0]|/*session, selectedpaymentmethodname*/1572864&e.$$.dirty[1]&&D&&S&&B&&N&&(q.length&&q.forEach((e=>{e&&fa(e).destroy()})),n(19,V=!1),n(21,x=!1),n(15,q=[]),n(12,W=[]),n(18,Y={}),n(27,oe={}),n(28,ae={}),n(14,K=[]),n(17,U=null),n(32,te=""),n(33,le=!1),n(35,ue=!0),ge(),he()),/*clientstyling, customStylingContainer*/9216&e.$$.dirty[0]&&F&&y&&(()=>{let e=document.createElement("style");e.innerHTML=F,y.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/10240&e.$$.dirty[0]&&j&&y&&(()=>{let e=new URL(j),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{y.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*lang*/4&e.$$.dirty[0]&&$&&de(),/*lang, translationurl*/20&e.$$.dirty[0]&&$&&_&&(()=>{if(_)fetch(_).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ui(t,e[t])}))})).catch((e=>{}))})(),/*ismobileview*/2097152&e.$$.dirty[1]&&z&&n(24,Z="true"===z),/*fields, qrCodeContainer*/20480&e.$$.dirty[0]&&W.length&&K.length&&K.forEach((e=>{if(e&&e.innerText){const t=e.innerText;e.innerText="",new QRCode(e,{text:t,width:250,height:250})}})),/*fields, flatpickrEl*/36864&e.$$.dirty[0]&&W.length&&q.length&&(()=>{const e={[d.Time]:{noCalendar:!0,enableTime:!0,allowInput:!0},[d.Date]:{allowInput:!0,locale:Object.assign({},ga[$])},[d.DateTime]:{allowInput:!0,enableTime:!0,locale:Object.assign({},ga[$])}};q.forEach((t=>{if(!t)return;const r=JSON.parse(t.dataset.field),i=f.get(r.placeholder),o=r.type===d.DateTime?f.get(r.placeholder.split(" ")[1]):i;fa(t,Object.assign(Object.assign({},e[r.type]),{dateFormat:i,time_24hr:"H:i"===o,maxDate:r.maxValue,minDate:r.minValue,defaultDate:r.defaultValue,onReady:(e,t)=>{n(18,Y[r.name]=t,Y),Ne(r)},onClose:(e,t,i)=>{ae[r.name]?n(18,Y[r.name]="",Y):n(18,Y[r.name]=t,Y)}}))}))})()},[D,A,$,P,_,O,N,R,H,I,F,j,W,y,K,q,d,U,Y,V,v,x,C,E,Z,M,ie,oe,ae,se,Q,ee,te,le,ce,ue,r,re,me,()=>{if(ne)return;n(22,C=!0);const e=new URL(`${D}/v1/player/${O}/payment/GetPaymentPrepare`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json"),ke();const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:g,Transaction:{PaymentMethod:U.Name,Amount:ee,Currency:N,CustomFields:Y},Account:{}})};fetch(e,r).then((e=>e.json())).then((e=>{if(e.error)postMessage({type:"ShowSessionError",error:e.error},window.location.href);else{if(e.ResponseCode===s.PlayerSessionIsNotValid)return n(32,te=e.ResponseCode),void ge();if(e.ResponseCode===s.JwtTokenError)return n(32,te=e.ResponseCode),void ge();if(e.ResponseCode!==s.Success)return n(32,te=e.ResponseCode),n(22,C=!1),ke(),void be();g=e.XPaymentSessionToken,n(22,C=!1),G=!0,ye(),ke(),window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:g,selectedPaymentMethodName:U.Name},window.location.href)}}))},ve,Ae,$e,(e,t)=>t?e.find((e=>e.Name===t)).Value:"",Le,Oe,Ne,Re,(e,t)=>(ne=!!e||Object.values(t).some((e=>!!e)),ne),i,S,B,z,function(){n(25,M=va.innerWidth)},()=>ve(),function(){ee=L(this.value),n(31,ee)},()=>Oe(),()=>{n(27,oe.amount=!0,oe),Oe()},function(e){Y[e.name]=this.value,n(18,Y)},e=>{Re(e)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){Y[e.name]=this.value,n(18,Y)},e=>{n(27,oe[e.name]=!0,oe),Ne(e)},e=>{n(27,oe[e.name]=!0,oe),Ne(e)},e=>{n(27,oe[e.name]=!0,oe),Ne(e)},function(e){X[e?"unshift":"push"]((()=>{q[q.length]=e,n(15,q)}))},function(e){Y[e.name]=L(this.value),n(18,Y)},e=>{Re(e)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){Y[e.name]=this.value,n(18,Y)},e=>{Re(e)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){Y[e.name]=this.value,n(18,Y)},(e,t)=>me(t,e.name),(e,t)=>{$e(e,t.Name),n(12,W)},function(e){Y[e.name]=this.checked,n(18,Y)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){X[e?"unshift":"push"]((()=>{K[K.length]=e,n(14,K)}))},e=>{Ae(e.description)},function(e){Y[e.name]=this.value,n(18,Y)},()=>{n(20,v=!1)},function(e){X[e?"unshift":"push"]((()=>{y=e,n(13,y)}))}]}function is(e,t){pn(e,t)}!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",class extends ve{constructor(e){super();const t=document.createElement("style");t.textContent='@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--mmw--color-grey-105, #E8E9EB)}::-webkit-scrollbar-thumb:hover{background:var(--mmw--color-grey-290, #666)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input::-webkit-date-and-time-value{visibility:hidden}input[type=number]{-moz-appearance:textfield}.CashierMethodDetails{width:100%;height:100%;overflow-y:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;padding:var(--emw--spacing-large, 20px) var(--emw--spacing-x-small, 10px) var(--emw--spacing-small, 12px) var(--emw--spacing-x-small, 10px);container-name:method-details;container-type:inline-size}.ReceiptPage{background-color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));border-radius:var(--mmw--border-radius-medium-plus, 6px);box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));padding:0 var(--emw--spacing-small, 12px);margin-bottom:var(--emw--spacing-small-minus, 10px)}.MethodsDetails{position:relative;display:flex;flex-direction:column;height:100%;gap:var(--mmw--spacing-2x-small-plus, 5px)}.MethodsDetails:has(.RedirectionNotification) form{visibility:hidden}.MethodsDetails.DisabledPage:after{content:"";position:absolute;height:100%;width:100%;z-index:1;top:0;left:0;background-color:var(--emw--color-background, rgba(255, 255, 255, 0.5))}.FormLogo{align-items:center;display:flex;height:50px;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB)}.SelectedLogoDescription{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);margin:var(--mmw--spacing-x-small-minus, 7px) var(--mmw--spacing-2x-small-plus, 5px) var(--mmw--spacing-x-small-minus, 7px) var(--mmw--spacing-x-small-minus, 7px);word-break:break-word}.SelectedLogoWrapper{width:56px;height:32px;flex-shrink:0;background:var(--emw--color-background, #fff);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px)}.SelectedLogoWrapper img{max-height:32px;max-width:56px}.ChangePaymeth{margin-left:auto;cursor:pointer;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);text-decoration-line:underline}.SelectedMethodDescription{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);margin:var(--emw--spacing-small-minus, 10px) 0 var(--mmw--spacing-2x-small-plus, 5px);line-height:var(--emw--font-size-x-small, 12px);white-space:pre-line}.RedirectionNotification{height:100%;width:100%;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--emw--spacing-large, 20px)}.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:var(--emw--font-weight-semibold, 500);line-height:normal;text-transform:uppercase;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.RedirectionTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none;font-weight:var(--mmw--font-weight-semibold-plus, 600)}.RedirectionMessage{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none}.FieldWrapper,label{display:flex;flex-direction:column}.FieldWrapper{background-color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));border-radius:var(--mmw--border-radius-medium-plus, 6px);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.1);padding:0 var(--emw--spacing-medium, 15px) var(--emw--spacing-medium, 15px);margin-bottom:var(--emw--spacing-small-minus, 10px)}.FieldWrapper:has(.QRCode, .Label){box-shadow:none;background:transparent}.FieldWrapper.Hidden{height:0;visibility:hidden;margin:0;padding:0}.FieldWrapper.Invalid:has(.Checkbox){border:1px solid var(--emw--color-error, #FE0101)}.Alert{display:none}.Invalid input,.Invalid .Selected{border-color:var(--emw--color-error, #FE0101)}.Invalid .Alert{display:inline-block}.Invalid .AmountLimits{display:none}.Alert{color:var(--emw--color-error, #FE0101);font-size:var(--emw--font-size-x-small, 12px);margin:var(--mmw--spacing-2x-small-plus, 5px) 0 0 var(--emw--spacing-3x-small, 2px);line-height:var(--emw--font-size-x-small, 12px)}.AmountLimits{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);margin:var(--mmw--spacing-2x-small-plus, 5px) 0 0 var(--emw--spacing-3x-small, 2px);line-height:var(--emw--font-size-x-small, 12px)}input,.Selected{border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);height:40px;line-height:var(--emw--size-small, 14px);color:var(--mmw--color-grey-10, #111);padding:0 var(--emw--spacing-medium, 15px);font-style:inherit;font-family:inherit}input:focus,.Selected:focus{outline:none}label{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--size-small, 14px);margin-top:var(--mmw--spacing-x-small-minus, 7px);line-height:27px}label span.Required:before{content:"*";display:inline-block;margin-right:var(--emw--spacing-3x-small, 2px)}.Description{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);margin:0 0 var(--mmw--spacing-2x-small-plus, 5px) var(--emw--spacing-3x-small, 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-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;border-radius:50px;line-height:normal;border:none;background:var(--emw--color-primary, #7EC51E);width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--mmw--spacing-2x-small-plus, 5px)}.PrimaryButton:has(.ButtonSpinner),.PrimaryButton:has(.ButtonSpinner):hover,.PrimaryButton:active{background:var(--mmw--color-main-button-active, #5C950F)}.PrimaryButton .ButtonAmount{font-weight:var(--mmw--font-weight-semibold-plus, 600)}.PrimaryButton .ButtonSpinner{animation:loading-spinner 1s linear infinite}.PrimaryButton[disabled]{background:var(--mmw--color-disabled, rgba(153, 153, 153, 0.5019607843));cursor:auto;pointer-events:none}.PrimaryButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.QRCode{width:250px;margin:auto}.Checkbox{display:flex;position:relative;margin-top:var(--emw--spacing-small, 12px)}.Checkbox .Description{margin:0 0 0 var(--emw--spacing-large, 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(--mmw--color-grey-105, #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}.DateInput{position:relative}.DateInput .MobileDateInput{display:none}.DateInput:has(.flatpickr-mobile) .DateTimePicker{-webkit-appearance:none;-moz-appearance:none;background:none;width:-webkit-fill-available;font-size:0;width:-moz-available}.DateInput:has(.flatpickr-mobile) .MobileDateInput{display:block;position:absolute;top:50%;transform:translateY(-50%);left:15px}.DateTimePicker{width:-webkit-fill-available;width:-moz-available}.CustomSelect{width:100%;position:relative}.Selected{display:flex;align-items:center;cursor:pointer}.Selected .SelectedValue{max-width:95%}.Selected:after{position:absolute;content:"";top:19px;right:10px;width:0;height:0;border:6px solid transparent;border-color:var(--mmw--color-border, rgb(168, 169, 170)) transparent transparent transparent}.OptionList{display:none;position:absolute;left:0;right:0;z-index:99;background-color:var(--emw--color-white, #fff);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin-top:var(--mmw--spacing-2x-small-plus, 5px);overflow:auto;box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.1)}.OptionList.Top{transform:translate(0, calc(-1 * (100% + 40px + 10px)))}.OptionList div{padding:var(--emw--spacing-x-small, 8px) var(--emw--spacing-medium, 16px);cursor:pointer;user-select:none;line-height:calc(var(--emw--size-small, 14px) + 3px);font-size:var(--emw--size-small, 14px)}.OptionList div:hover{background-color:var(--emw--color-gray-50, #F9F9F9)}.OptionList.Opened{display:block}@container method-details (width < 450px){.FormLogo .SelectedLogoDescription{font-size:var(--emw--font-size-x-small, 12px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}label,input,.Description,.FormLogo .ChangePaymeth,.OptionList div{font-size:var(--emw--font-size-x-small, 12px)}.SelectedMethodDescription,.AmountLimits{font-size:var(--emw--font-size-2x-small, 10px)}}',this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},rs,ts,a,{PaymentMethodDetails:49,endpoint:0,session:50,playersession:1,lang:2,local:3,translationurl:4,customerid:5,currency:6,amount:7,assetsurl:8,type:9,selectedpaymentmethodname:51,clientstyling:10,clientstylingurl:11,ismobileview:52},null,[-1,-1,-1,-1,-1]),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["PaymentMethodDetails","endpoint","session","playersession","lang","local","translationurl","customerid","currency","amount","assetsurl","type","selectedpaymentmethodname","clientstyling","clientstylingurl","ismobileview"]}get PaymentMethodDetails(){return this.$$.ctx[49]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),ae()}get session(){return this.$$.ctx[50]}set session(e){this.$$set({session:e}),ae()}get playersession(){return this.$$.ctx[1]}set playersession(e){this.$$set({playersession:e}),ae()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),ae()}get local(){return this.$$.ctx[3]}set local(e){this.$$set({local:e}),ae()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),ae()}get customerid(){return this.$$.ctx[5]}set customerid(e){this.$$set({customerid:e}),ae()}get currency(){return this.$$.ctx[6]}set currency(e){this.$$set({currency:e}),ae()}get amount(){return this.$$.ctx[7]}set amount(e){this.$$set({amount:e}),ae()}get assetsurl(){return this.$$.ctx[8]}set assetsurl(e){this.$$set({assetsurl:e}),ae()}get type(){return this.$$.ctx[9]}set type(e){this.$$set({type:e}),ae()}get selectedpaymentmethodname(){return this.$$.ctx[51]}set selectedpaymentmethodname(e){this.$$set({selectedpaymentmethodname:e}),ae()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get ismobileview(){return this.$$.ctx[52]}set ismobileview(e){this.$$set({ismobileview:e}),ae()}}),Mn({fallbackLocale:"en"});const os={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE"},tr:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"You session is about to expire!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"Devam et"}};var as=ai((function(e,t){
|
|
890
|
+
/*div_binding*/,t[81](null),c=!1,u()}}}let ns="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function rs(e,t,n){let r;u(e,ar,(e=>n(36,r=e)));class i{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=m.get(e.Type)||null,this.defaultValue=this.calcDefaultValue(e),this.format=this.setPlaceholderOrFormat(e,h.Format),this.placeholder=this.setPlaceholderOrFormat(e,h.Placeholder),this.isReadonly=e.IsReadonly||!1,this.isRequired=e.IsRequired||!1,this.maxValue=this.setValue(e,h.MaxValue),this.minValue=this.setValue(e,h.MinValue),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 this.type===d.Boolean?"True"===e.DefaultValue:p.has(e.Type)?this.setValue(e,h.DefaultValue):e.DefaultValue||null}setPlaceholderOrFormat(e,t){return p.has(e.Type)&&!f.get(e.Placeholder)?p.get(e.Type)[t]:e[t]||null}setValue(e,t){return p.has(e.Type)&&!f.get(e.Placeholder)?ya(e[t],e.Placeholder).format(p.get(e.Type).Placeholder):e[t]||null}get descriptionWithLink(){if("Boolean"===d[this.type]&&this.placeholder||"Link"===d[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}}const o=(e,[t,n])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,n]))]:[[t,n]]];var a,s,l;!function(e){e.Deposit="Deposit",e.Withdraw="Withdraw"}(a||(a={})),function(e){e.PlayerSessionIsNotValid="PlayerSessionIsNotValid",e.Success="Success",e.JwtTokenError="JwtTokenError"}(s||(s={})),function(e){e.Default="Default",e.RedirectWithRetry="Redirect"}(l||(l={}));const c=new Map([[["Default",0],l.Default],[["Redirect",1],l.RedirectWithRetry]].reduce(o,[]));var d,h;!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"}(d||(d={})),function(e){e.MaxValue="MaxValue",e.MinValue="MinValue",e.DefaultValue="DefaultValue",e.Placeholder="Placeholder",e.Format="Format"}(h||(h={}));const p=new Map([[d.Date,{Placeholder:"MM/DD/YYYY",Format:"^\\d{2}/\\d{2}/\\d{4}$"}],[d.Time,{Placeholder:"HH:mm",Format:"^\\d{2}:\\d{2}$"}],[d.DateTime,{Placeholder:"MM/DD/YYYY HH:mm",Format:"^\\d{2}/\\d{2}/\\d{4} \\d{2}:\\d{2}$"}]]),f=new Map([["MM/DD/YYYY HH:mm","m/d/Y H:i"],["DD.MM.YYYY HH:mm","d.m.Y H:i"],["YYYY-MM-DD","Y-m-d"],["MM/DD/YYYY","m/d/Y"],["DD/MM/YYYY","d/m/Y"],["YYYY.MM.DD","Y.m.d"],["HH:mm","H:i"]]),m=new Map([[["Unknown",0],d.Unknown],[["Text",1],d.Text],[["Boolean",2],d.Boolean],[["Number",3],d.Number],[["Money",4],d.Money],[["DateTime",5],d.DateTime],[["Lookup",6],d.Lookup],[["IpAddress",7],d.IpAddress],[["Date",8],d.Date],[["Time",9],d.Time],[["LookupCollection",10],d.LookupCollection],[["Hidden",11],d.Hidden],[["Label",12],d.Label],[["Password",13],d.Password],[["Link",14],d.Link],[["Image",15],d.Image],[["Html",19],d.Html],[["QR",20],d.QRCode]].reduce(o,[]));let g,y,w,b,v,k,x,C,E,T,M,{endpoint:D}=t,{session:S}=t,{playersession:A}=t,{lang:$="en"}=t,{local:P="en-US"}=t,{translationurl:_}=t,{customerid:O}=t,{currency:N}=t,{amount:R}=t,{assetsurl:H}=t,{type:I=a.Deposit}=t,{selectedpaymentmethodname:B}=t,{clientstyling:F=""}=t,{clientstylingurl:j=""}=t,{ismobileview:z}=t,U={},W=[],Y={},G=!1,V=!1,K=[],q=[],Z=!1;window.matchMedia("(max-width: 750px)");let Q,ee,te,ne,re=new Intl.NumberFormat(P,{minimumFractionDigits:2}),ie="",oe={},ae={},se=!1,le=!1,ce="",ue=!0;const de=()=>{var e;e=$,Fn.set(e)};Object.keys(Wi).forEach((e=>{Ui(e,Wi[e])}));const he=()=>{const e=new URL(`${D}/v1/player/${O}/payment/GetPaymentMethod`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({PaymentMethodName:B,Currency:N,XPaymentSessionToken:S})};fetch(e,r).then((e=>e.json())).then((e=>{if(!e.error)return e.ResponseCode===s.PlayerSessionIsNotValid||e.ResponseCode===s.JwtTokenError?(n(32,te=e.ResponseCode),void ge()):void(e.ResponseCode===s.Success?(g=e.XPaymentSessionToken,n(17,U=e.PaymentMethod),n(31,ee=Number(R)),U.HideAmountField?n(26,ie=""):Oe(),n(12,W=U.Fields&&U.Fields.map((e=>new i(e)))),W.forEach((e=>{(null==e?void 0:e.defaultValue)&&n(18,Y[e.name]=e.defaultValue,Y),Re(e)})),ye(),ge(),Ce(),window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:g,selectedPaymentMethodName:B},window.location.href)):n(32,te=e.ResponseCode));window.postMessage({type:"ShowSessionError",error:e.error},window.location.href)})).finally((()=>n(35,ue=!1)))},pe=e=>{"ErrorResponseCode"===e.data.type&&(n(32,te=e.data.errorResponseCode),n(19,V=e.data.showErrorOutsideReceiptPage)),"ReceiptLoaded"===e.data.type&&Ee(),"BackCashier"===e.data.type&&ve(),"CloseCashierReceiptPage"===e.data.type&&Se()};J((()=>(window.addEventListener("closeModal",Te,!1),window.addEventListener("confirmModal",Me,!1),window.addEventListener("closeIframe",Ee,!1),window.addEventListener("notificationButtonClick",De,!1),document.addEventListener("click",fe),window.addEventListener("message",pe,!1),ya.extend(wa),()=>{window.removeEventListener("closeModal",Te),window.removeEventListener("confirmModal",Me),window.removeEventListener("closeIframe",Ee),window.removeEventListener("notificationButtonClick",De),window.removeEventListener("message",pe)})));const fe=e=>{E&&(n(27,oe[E]=!0,oe),Re(W.find((e=>e.name===E)))),e.composedPath().includes(T)||n(23,E=null)},me=(e,t)=>{if(t===E)return n(27,oe[E]=!0,oe),Re(W.find((e=>e.name===E))),void n(23,E=null);e.stopPropagation(),T=e.composedPath()[0];const r=T.getBoundingClientRect(),i=y.getBoundingClientRect(),o=r.y;n(29,se=window.innerHeight-o<200);const a=r.top-i.top-r.height,s=i.bottom-r.bottom-r.height;n(30,Q=se?a:!se&&s<70?150:s),n(23,E=t)},ge=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:te},window.location.href)},ye=()=>{window.postMessage({type:"ShowConfirmModal",showConfirmModal:G,editedAmount:ee,hideAmountField:U.HideAmountField},window.location.href)},we=()=>{window.postMessage({type:"RedirectInfo",redirectMode:k,redirectUrl:w},window.location.href)},be=()=>{n(33,le=!0),window.postMessage({type:"ShowCashierModal",modalErrorMessage:te},window.location.href)},ve=()=>{dispatchEvent(new CustomEvent("backToMethodList",{bubbles:!0,cancelable:!0,composed:!0})),xe()},ke=()=>{window.postMessage({type:"ToggleDisableActionOnPage",disable:C},window.location.href)},xe=()=>{dispatchEvent(new CustomEvent("hidePaymentDetails",{detail:{hideMethodDetails:Z},bubbles:!0,cancelable:!0,composed:!0}))},Ce=()=>{dispatchEvent(new CustomEvent("hideMethodsList",{detail:{hideMethodsList:Z},bubbles:!0,cancelable:!0,composed:!0}))},Ee=()=>{w=null,n(19,V=!0),we()},Te=()=>{G=!1},Me=()=>{n(22,C=!0);const e=new URL(`${D}/v1/player/${O}/payment/GetPaymentConfirm`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json"),ke();const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:g})};fetch(e,r).then((e=>e.json())).then((e=>e.ResponseCode===s.PlayerSessionIsNotValid||e.ResponseCode===s.JwtTokenError?(n(32,te=e.ResponseCode),void ge()):e.ResponseCode!==s.Success?(n(32,te=e.ResponseCode),n(22,C=!1),ke(),void be()):(g=e.XPaymentSessionToken,n(34,ce=e.Transaction.Code),w=e.RedirectUrl,k=c.get(e.RedirectionMode)||c.get("Default"),n(22,C=!1),ke(),we(),window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:g,selectedpaymentmethodname:B},window.location.href),w||n(19,V=!0),void(k===l.RedirectWithRetry&&(b=window.open(e.RedirectUrl,"_blank"),n(20,v=!!b),b||n(21,x=!0))))))},De=()=>{b=window.open(w,"_blank"),n(20,v=!0),n(21,x=!1),we()},Se=()=>{n(19,V=!1)},Ae=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)},$e=(e,t)=>{n(18,Y[e.name]=t,Y),W.filter((e=>e.correlationFieldName)).forEach((e=>Re(e)))},Le=e=>{if(!e.correlationFieldName)return!0;const t=e.correlationFieldValue.includes(Y[e.correlationFieldName]);return!t&&Y[e.name]&&delete Y[e.name],t},Pe=(e,t)=>e.format&&t&&!((e,t)=>{if(!e)return!0;let n,r;return"string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),n.test(t)})(e.format,t)?r("invalidFieldError",{values:{field:e.label}}):"",_e=(e,t)=>"boolean"==typeof t||!e.isRequired||t&&t.toString().trim()?"":r("errorEmptyField"),Oe=()=>{n(26,ie=(ee?"":r("errorEmptyField"))||(U.DisplayCurrency.MinAmountLimit>ee?r("minAmountError",{values:{amount:re.format(U.DisplayCurrency.MinAmountLimit),currency:U.DisplayCurrency.Name}}):"")||(U.DisplayCurrency.MaxAmountLimit<ee?r("maxAmountError",{values:{amount:re.format(U.DisplayCurrency.MaxAmountLimit),currency:U.DisplayCurrency.Name}}):"")||(U.AmountMultiplier&&ee%U.AmountMultiplier!=0?r("amountMultiplierError",{values:{multiplier:U.AmountMultiplier}}):"")||(U.IsIntegerAmount&&!Number.isInteger(ee)?r("amountIntError"):"")||(Number(ee).toFixed(2)!=+ee?r("amountDecimalError"):""))},Ne=e=>{const t=Y[e.name],i=e.placeholder,o=ya(t,i),a=ya(e.maxValue,i),s=ya(e.minValue,i);o.isBefore(s)||o.isAfter(a)?n(28,ae[e.name]=r("invalidFieldError",{values:{field:e.label}}),ae):n(28,ae[e.name]=Le(e)?_e(e,t)||Pe(e,t):"",ae)},Re=e=>{const t=Y[e.name];n(28,ae[e.name]=Le(e)?_e(e,t)||Pe(e,t):"",ae)};return e.$$set=e=>{"endpoint"in e&&n(0,D=e.endpoint),"session"in e&&n(50,S=e.session),"playersession"in e&&n(1,A=e.playersession),"lang"in e&&n(2,$=e.lang),"local"in e&&n(3,P=e.local),"translationurl"in e&&n(4,_=e.translationurl),"customerid"in e&&n(5,O=e.customerid),"currency"in e&&n(6,N=e.currency),"amount"in e&&n(7,R=e.amount),"assetsurl"in e&&n(8,H=e.assetsurl),"type"in e&&n(9,I=e.type),"selectedpaymentmethodname"in e&&n(51,B=e.selectedpaymentmethodname),"clientstyling"in e&&n(10,F=e.clientstyling),"clientstylingurl"in e&&n(11,j=e.clientstylingurl),"ismobileview"in e&&n(52,z=e.ismobileview)},e.$$.update=()=>{/*endpoint, currency*/65&e.$$.dirty[0]|/*session, selectedpaymentmethodname*/1572864&e.$$.dirty[1]&&D&&S&&B&&N&&(q.length&&q.forEach((e=>{e&&fa(e).destroy()})),n(19,V=!1),n(21,x=!1),n(15,q=[]),n(12,W=[]),n(18,Y={}),n(27,oe={}),n(28,ae={}),n(14,K=[]),n(17,U=null),n(32,te=""),n(33,le=!1),n(35,ue=!0),ge(),he()),/*clientstyling, customStylingContainer*/9216&e.$$.dirty[0]&&F&&y&&(()=>{let e=document.createElement("style");e.innerHTML=F,y.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/10240&e.$$.dirty[0]&&j&&y&&(()=>{let e=new URL(j),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{y.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*lang*/4&e.$$.dirty[0]&&$&&de(),/*lang, translationurl*/20&e.$$.dirty[0]&&$&&_&&(()=>{if(_)fetch(_).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ui(t,e[t])}))})).catch((e=>{}))})(),/*ismobileview*/2097152&e.$$.dirty[1]&&z&&n(24,Z="true"===z),/*fields, qrCodeContainer*/20480&e.$$.dirty[0]&&W.length&&K.length&&K.forEach((e=>{if(e&&e.innerText){const t=e.innerText;e.innerText="",new QRCode(e,{text:t,width:250,height:250})}})),/*fields, flatpickrEl*/36864&e.$$.dirty[0]&&W.length&&q.length&&(()=>{const e={[d.Time]:{noCalendar:!0,enableTime:!0,allowInput:!0},[d.Date]:{allowInput:!0,locale:Object.assign({},ga[$])},[d.DateTime]:{allowInput:!0,enableTime:!0,locale:Object.assign({},ga[$])}};q.forEach((t=>{if(!t)return;const r=JSON.parse(t.dataset.field),i=f.get(r.placeholder),o=r.type===d.DateTime?f.get(r.placeholder.split(" ")[1]):i;fa(t,Object.assign(Object.assign({},e[r.type]),{dateFormat:i,time_24hr:"H:i"===o,maxDate:r.maxValue,minDate:r.minValue,defaultDate:r.defaultValue,onReady:(e,t)=>{n(18,Y[r.name]=t,Y),Ne(r)},onClose:(e,t,i)=>{ae[r.name]?n(18,Y[r.name]="",Y):n(18,Y[r.name]=t,Y)}}))}))})()},[D,A,$,P,_,O,N,R,H,I,F,j,W,y,K,q,d,U,Y,V,v,x,C,E,Z,M,ie,oe,ae,se,Q,ee,te,le,ce,ue,r,re,me,()=>{if(ne)return;n(22,C=!0);const e=new URL(`${D}/v1/player/${O}/payment/GetPaymentPrepare`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json"),ke();const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({XPaymentSessionToken:g,Transaction:{PaymentMethod:U.Name,Amount:ee,Currency:N,CustomFields:Y},Account:{}})};fetch(e,r).then((e=>e.json())).then((e=>{if(e.error)postMessage({type:"ShowSessionError",error:e.error},window.location.href);else{if(e.ResponseCode===s.PlayerSessionIsNotValid)return n(32,te=e.ResponseCode),void ge();if(e.ResponseCode===s.JwtTokenError)return n(32,te=e.ResponseCode),void ge();if(e.ResponseCode!==s.Success)return n(32,te=e.ResponseCode),n(22,C=!1),ke(),void be();g=e.XPaymentSessionToken,n(22,C=!1),G=!0,ye(),ke(),window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:g,selectedPaymentMethodName:U.Name},window.location.href)}}))},ve,Ae,$e,(e,t)=>t?e.find((e=>e.Name===t)).Value:"",Le,Oe,Ne,Re,(e,t)=>(ne=!!e||Object.values(t).some((e=>!!e)),ne),i,S,B,z,function(){n(25,M=va.innerWidth)},()=>ve(),function(){ee=L(this.value),n(31,ee)},()=>Oe(),()=>{n(27,oe.amount=!0,oe),Oe()},function(e){Y[e.name]=this.value,n(18,Y)},e=>{Re(e)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){Y[e.name]=this.value,n(18,Y)},e=>{n(27,oe[e.name]=!0,oe),Ne(e)},e=>{n(27,oe[e.name]=!0,oe),Ne(e)},e=>{n(27,oe[e.name]=!0,oe),Ne(e)},function(e){X[e?"unshift":"push"]((()=>{q[q.length]=e,n(15,q)}))},function(e){Y[e.name]=L(this.value),n(18,Y)},e=>{Re(e)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){Y[e.name]=this.value,n(18,Y)},e=>{Re(e)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){Y[e.name]=this.value,n(18,Y)},(e,t)=>me(t,e.name),(e,t)=>{$e(e,t.Name),n(12,W)},function(e){Y[e.name]=this.checked,n(18,Y)},e=>{n(27,oe[e.name]=!0,oe),Re(e)},function(e){X[e?"unshift":"push"]((()=>{K[K.length]=e,n(14,K)}))},e=>{Ae(e.description)},function(e){Y[e.name]=this.value,n(18,Y)},()=>{n(20,v=!1)},function(e){X[e?"unshift":"push"]((()=>{y=e,n(13,y)}))}]}function is(e,t){pn(e,t)}!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",class extends ve{constructor(e){super();const t=document.createElement("style");t.textContent='@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--mmw--color-grey-105, #E8E9EB)}::-webkit-scrollbar-thumb:hover{background:var(--mmw--color-grey-290, #666)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input::-webkit-date-and-time-value{visibility:hidden}input[type=number]{-moz-appearance:textfield}.CashierMethodDetails{width:100%;height:100%;overflow-y:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;padding:var(--emw--spacing-large, 20px) var(--emw--spacing-x-small, 10px) var(--emw--spacing-small, 12px) var(--emw--spacing-x-small, 10px);container-name:method-details;container-type:inline-size;min-height:200px}.ReceiptPage{background-color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));border-radius:var(--mmw--border-radius-medium-plus, 6px);box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));padding:0 var(--emw--spacing-small, 12px);margin-bottom:var(--emw--spacing-small-minus, 10px)}.MethodsDetails{position:relative;display:flex;flex-direction:column;height:100%;gap:var(--mmw--spacing-2x-small-plus, 5px)}.MethodsDetails:has(.RedirectionNotification) form{visibility:hidden}.MethodsDetails.DisabledPage:after{content:"";position:absolute;height:100%;width:100%;z-index:1;top:0;left:0;background-color:var(--emw--color-background, rgba(255, 255, 255, 0.5))}.FormLogo{align-items:center;display:flex;height:50px;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB)}.SelectedLogoDescription{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);margin:var(--mmw--spacing-x-small-minus, 7px) var(--mmw--spacing-2x-small-plus, 5px) var(--mmw--spacing-x-small-minus, 7px) var(--mmw--spacing-x-small-minus, 7px);word-break:break-word}.SelectedLogoWrapper{width:56px;height:32px;flex-shrink:0;background:var(--emw--color-background, #fff);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px)}.SelectedLogoWrapper img{max-height:32px;max-width:56px}.ChangePaymeth{margin-left:auto;cursor:pointer;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);text-decoration-line:underline}.SelectedMethodDescription{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);margin:var(--emw--spacing-small-minus, 10px) 0 var(--mmw--spacing-2x-small-plus, 5px);line-height:var(--emw--font-size-x-small, 12px);white-space:pre-line}.RedirectionNotification{height:100%;width:100%;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--emw--spacing-large, 20px)}.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:var(--emw--font-weight-semibold, 500);line-height:normal;text-transform:uppercase;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.RedirectionTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none;font-weight:var(--mmw--font-weight-semibold-plus, 600)}.RedirectionMessage{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);font-style:normal;text-transform:none}.FieldWrapper,label{display:flex;flex-direction:column}.FieldWrapper{background-color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));border-radius:var(--mmw--border-radius-medium-plus, 6px);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.1);padding:0 var(--emw--spacing-medium, 15px) var(--emw--spacing-medium, 15px);margin-bottom:var(--emw--spacing-small-minus, 10px)}.FieldWrapper:has(.QRCode, .Label){box-shadow:none;background:transparent}.FieldWrapper.Hidden{height:0;visibility:hidden;margin:0;padding:0}.FieldWrapper.Invalid:has(.Checkbox){border:1px solid var(--emw--color-error, #FE0101)}.Alert{display:none}.Invalid input,.Invalid .Selected{border-color:var(--emw--color-error, #FE0101)}.Invalid .Alert{display:inline-block}.Invalid .AmountLimits{display:none}.Alert{color:var(--emw--color-error, #FE0101);font-size:var(--emw--font-size-x-small, 12px);margin:var(--mmw--spacing-2x-small-plus, 5px) 0 0 var(--emw--spacing-3x-small, 2px);line-height:var(--emw--font-size-x-small, 12px)}.AmountLimits{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);margin:var(--mmw--spacing-2x-small-plus, 5px) 0 0 var(--emw--spacing-3x-small, 2px);line-height:var(--emw--font-size-x-small, 12px)}input,.Selected{border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);height:40px;line-height:var(--emw--size-small, 14px);color:var(--mmw--color-grey-10, #111);padding:0 var(--emw--spacing-medium, 15px);font-style:inherit;font-family:inherit}input:focus,.Selected:focus{outline:none}label{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--size-small, 14px);margin-top:var(--mmw--spacing-x-small-minus, 7px);line-height:27px}label span.Required:before{content:"*";display:inline-block;margin-right:var(--emw--spacing-3x-small, 2px)}.Description{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);margin:0 0 var(--mmw--spacing-2x-small-plus, 5px) var(--emw--spacing-3x-small, 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-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;border-radius:50px;line-height:normal;border:none;background:var(--emw--color-primary, #7EC51E);width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--mmw--spacing-2x-small-plus, 5px)}.PrimaryButton:has(.ButtonSpinner),.PrimaryButton:has(.ButtonSpinner):hover,.PrimaryButton:active{background:var(--mmw--color-main-button-active, #5C950F)}.PrimaryButton .ButtonAmount{font-weight:var(--mmw--font-weight-semibold-plus, 600)}.PrimaryButton .ButtonSpinner{animation:loading-spinner 1s linear infinite}.PrimaryButton[disabled]{background:var(--mmw--color-disabled, rgba(153, 153, 153, 0.5019607843));cursor:auto;pointer-events:none}.PrimaryButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.QRCode{width:250px;margin:auto}.Checkbox{display:flex;position:relative;margin-top:var(--emw--spacing-small, 12px)}.Checkbox .Description{margin:0 0 0 var(--emw--spacing-large, 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(--mmw--color-grey-105, #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}.DateInput{position:relative}.DateInput .MobileDateInput{display:none}.DateInput:has(.flatpickr-mobile) .DateTimePicker{-webkit-appearance:none;-moz-appearance:none;background:none;width:-webkit-fill-available;font-size:0;width:-moz-available}.DateInput:has(.flatpickr-mobile) .MobileDateInput{display:block;position:absolute;top:50%;transform:translateY(-50%);left:15px}.DateTimePicker{width:-webkit-fill-available;width:-moz-available}.CustomSelect{width:100%;position:relative}.Selected{display:flex;align-items:center;cursor:pointer}.Selected .SelectedValue{max-width:95%}.Selected:after{position:absolute;content:"";top:19px;right:10px;width:0;height:0;border:6px solid transparent;border-color:var(--mmw--color-border, rgb(168, 169, 170)) transparent transparent transparent}.OptionList{display:none;position:absolute;left:0;right:0;z-index:99;background-color:var(--emw--color-white, #fff);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin-top:var(--mmw--spacing-2x-small-plus, 5px);overflow:auto;box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.1)}.OptionList.Top{transform:translate(0, calc(-1 * (100% + 40px + 10px)))}.OptionList div{padding:var(--emw--spacing-x-small, 8px) var(--emw--spacing-medium, 16px);cursor:pointer;user-select:none;line-height:calc(var(--emw--size-small, 14px) + 3px);font-size:var(--emw--size-small, 14px)}.OptionList div:hover{background-color:var(--emw--color-gray-50, #F9F9F9)}.OptionList.Opened{display:block}@container method-details (width < 450px){.FormLogo .SelectedLogoDescription{font-size:var(--emw--font-size-x-small, 12px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}label,input,.Description,.FormLogo .ChangePaymeth,.OptionList div{font-size:var(--emw--font-size-x-small, 12px)}.SelectedMethodDescription,.AmountLimits{font-size:var(--emw--font-size-2x-small, 10px)}}',this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},rs,ts,a,{PaymentMethodDetails:49,endpoint:0,session:50,playersession:1,lang:2,local:3,translationurl:4,customerid:5,currency:6,amount:7,assetsurl:8,type:9,selectedpaymentmethodname:51,clientstyling:10,clientstylingurl:11,ismobileview:52},null,[-1,-1,-1,-1,-1]),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["PaymentMethodDetails","endpoint","session","playersession","lang","local","translationurl","customerid","currency","amount","assetsurl","type","selectedpaymentmethodname","clientstyling","clientstylingurl","ismobileview"]}get PaymentMethodDetails(){return this.$$.ctx[49]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),ae()}get session(){return this.$$.ctx[50]}set session(e){this.$$set({session:e}),ae()}get playersession(){return this.$$.ctx[1]}set playersession(e){this.$$set({playersession:e}),ae()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),ae()}get local(){return this.$$.ctx[3]}set local(e){this.$$set({local:e}),ae()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),ae()}get customerid(){return this.$$.ctx[5]}set customerid(e){this.$$set({customerid:e}),ae()}get currency(){return this.$$.ctx[6]}set currency(e){this.$$set({currency:e}),ae()}get amount(){return this.$$.ctx[7]}set amount(e){this.$$set({amount:e}),ae()}get assetsurl(){return this.$$.ctx[8]}set assetsurl(e){this.$$set({assetsurl:e}),ae()}get type(){return this.$$.ctx[9]}set type(e){this.$$set({type:e}),ae()}get selectedpaymentmethodname(){return this.$$.ctx[51]}set selectedpaymentmethodname(e){this.$$set({selectedpaymentmethodname:e}),ae()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get ismobileview(){return this.$$.ctx[52]}set ismobileview(e){this.$$set({ismobileview:e}),ae()}}),Mn({fallbackLocale:"en"});const os={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE"},tr:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"You session is about to expire!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"Devam et"}};var as=ai((function(e,t){
|
|
891
891
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
892
892
|
e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:a,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;// eslint-disable-line import/no-mutable-exports
|
|
893
893
|
o||(o=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=x(Array.prototype.forEach),d=x(Array.prototype.pop),h=x(Array.prototype.push),p=x(String.prototype.toLowerCase),f=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),y=x(String.prototype.indexOf),w=x(String.prototype.trim),b=x(Object.prototype.hasOwnProperty),v=x(RegExp.prototype.test),k=C(TypeError);
|
|
@@ -1286,27 +1286,27 @@ n.removeAllHooks=function(){ce={}},n}var ee=Q();return ee}()}));
|
|
|
1286
1286
|
function ls(e){let t,n;return{c(){t=C("img"),l(t.src,n=`${/*assetsurl*/e[3]}/set-timeout-icon.png`)||A(t,"src",n),A(t,"width","300px"),A(t,"alt","error")},m(e,n){v(e,t,n)},p(e,r){/*assetsurl*/8&r[0]&&!l(t.src,n=`${/*assetsurl*/e[3]}/set-timeout-icon.png`)&&A(t,"src",n)},d(e){e&&k(t)}}}function cs(t){let n,r,i=/*show*/t[5]&&ss(t);return{c(){i&&i.c(),n=D(),this.c=e},m(e,t){i&&i.m(e,t),v(e,n,t),r=!0},p(e,t){/*show*/e[5]?i?(i.p(e,t),/*show*/32&t[0]&&pe(i,1)):(i=ss(e),i.c(),pe(i,1),i.m(n.parentNode,n)):i&&(de(),fe(i,1,1,(()=>{i=null})),he())},i(e){r||(pe(i),r=!0)},o(e){fe(i),r=!1},d(e){i&&i.d(e),e&&k(n)}}}function us(e,t,n){let r;u(e,ar,(e=>n(7,r=e)));let i,o,a,s,l,c,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{width:p}=t,{height:f}=t,{duration:m=200}=t,{assetsurl:g=""}=t,{lang:y="en"}=t,{translationurl:w=""}=t,{endpoint:b}=t,{currency:v}=t,{customerid:k}=t,{selectedpaymentmethodname:x}=t,C=!1;const E=e=>{"StartSessionCountdown"===e.data.type&&(c=e.data.xPaymentSessionToken,l=e.data.paymentMethodName,T())},T=()=>{n(5,C=!1);const e=(e=>{try{return JSON.parse(atob(e.split(".")[1]))}catch(e){return null}})(c);e&&(a=null==e?void 0:e.exp,n(6,o=a),s&&clearInterval(s),s=setInterval((()=>{const e=Math.floor((new Date).getTime()/1e3);n(6,o=a-e),o<=90&&n(5,C=!0),e>=a&&(n(6,o=0),n(5,C=!1),clearInterval(s),window.postMessage({type:"SessionExpired"},window.location.href))}),1e3))},M=()=>{const e=new URL(`${b}/v1/player/${k}/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:l||x,Currency:v,XPaymentSessionToken:c})};fetch(e,n).then((e=>e.json())).then((e=>{c=e.XPaymentSessionToken,T()}))};Object.keys(os).forEach((e=>{is(e,os[e])}));const D=()=>{var e;e=y,Fn.set(e)};var S;return J((()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}))),S=()=>{clearInterval(s)},V().$$.on_destroy.push(S),e.$$set=e=>{"clientstyling"in e&&n(10,d=e.clientstyling),"clientstylingurl"in e&&n(11,h=e.clientstylingurl),"width"in e&&n(0,p=e.width),"height"in e&&n(1,f=e.height),"duration"in e&&n(2,m=e.duration),"assetsurl"in e&&n(3,g=e.assetsurl),"lang"in e&&n(12,y=e.lang),"translationurl"in e&&n(13,w=e.translationurl),"endpoint"in e&&n(14,b=e.endpoint),"currency"in e&&n(15,v=e.currency),"customerid"in e&&n(16,k=e.customerid),"selectedpaymentmethodname"in e&&n(17,x=e.selectedpaymentmethodname)},e.$$.update=()=>{/*lang*/4096&e.$$.dirty[0]&&y&&D(),/*clientstyling, customStylingContainer*/1040&e.$$.dirty[0]&&d&&i&&(()=>{let e=document.createElement("style");e.innerHTML=d,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/2064&e.$$.dirty[0]&&h&&i&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})(),/*translationurl*/8192&e.$$.dirty[0]&&w&&fetch(w).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{is(t,e[t])}))})).catch((e=>{console.log(e)}))},[p,f,m,g,i,C,o,r,M,e=>{const t=e.currentTarget;e.target===t&&M()},d,h,y,w,b,v,k,x,function(e){X[e?"unshift":"push"]((()=>{i=e,n(4,i)}))},function(){p=this.clientWidth,f=this.clientHeight,n(0,p),n(1,f)},function(e){X[e?"unshift":"push"]((()=>{i=e,n(4,i)}))}]}
|
|
1287
1287
|
/* src/CashierPage.svelte generated by Svelte v3.59.2 */
|
|
1288
1288
|
function ds(e){let t;return{c(){t=C("div"),A(t,"class","DisablePage")},m(e,n){v(e,t,n)},d(e){e&&k(t)}}}
|
|
1289
|
-
// (
|
|
1290
|
-
function hs(e){let t,n,r,i,o,a,s,l,c,u,d,h=/*$_*/e[
|
|
1291
|
-
// (
|
|
1292
|
-
function ps(e){let t;return{c(){t=C("cashier-header"),$(t,"class","Header"),$(t,"lang",/*lang*/e[2]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"title",/*title*/e[
|
|
1293
|
-
// (
|
|
1294
|
-
function fs(e){let t,n;return{c(){t=C("div"),n=C("cashier-iframe-redirect"),$(n,"lang",/*lang*/e[2]),$(n,"translationurl",/*translationurl*/e[4]),$(n,"title",/*title*/e[
|
|
1295
|
-
// (
|
|
1289
|
+
// (264:2) {#if lang && isTranslationLoaded}
|
|
1290
|
+
function hs(e){let t,n,r,i,o,a,s,l,c,u,d,h=/*$_*/e[35]("closeModal")+"",p=!!/*showheader*/e[10]&&/*showheader*/"false"!==e[10]&&ps(e),f=/*redirectUrl*/e[23]&&/*redirectMode*/e[31]===/*RedirectionModeStringEnum*/e[18].Default&&fs(e),m=/*showsessionexpirationmodal*/"true"===e[14]&&ms(e),g=/*showConfirmModal*/e[22]&&gs(e);return{c(){p&&p.c(),t=M(),f&&f.c(),n=M(),r=C("cashier-modal"),i=C("cashier-error"),o=C("div"),a=T(h),s=M(),m&&m.c(),l=M(),g&&g.c(),c=D(),A(o,"slot","button"),A(o,"class","ModalButton"),$(i,"assetsurl",/*assetsurl*/e[8]),$(i,"translationurl",/*translationurl*/e[4]),$(i,"clientstylingurl",/*clientstylingurl*/e[13]),$(i,"clientstyling",/*clientstyling*/e[12]),$(i,"lang",/*lang*/e[2]),$(i,"errorcode",/*modalErrorMessage*/e[32])},m(h,w){p&&p.m(h,w),v(h,t,w),f&&f.m(h,w),v(h,n,w),v(h,r,w),y(r,i),y(i,o),y(o,a),v(h,s,w),m&&m.m(h,w),v(h,l,w),g&&g.m(h,w),v(h,c,w),u||(d=S(o,"click",/*hideModal*/e[37]),u=!0)},p(e,r){/*showheader*/e[10]&&/*showheader*/"false"!==e[10]?p?p.p(e,r):(p=ps(e),p.c(),p.m(t.parentNode,t)):p&&(p.d(1),p=null),/*redirectUrl*/e[23]&&/*redirectMode*/e[31]===/*RedirectionModeStringEnum*/e[18].Default?f?f.p(e,r):(f=fs(e),f.c(),f.m(n.parentNode,n)):f&&(f.d(1),f=null),/*$_*/16&r[1]&&h!==(h=/*$_*/e[35]("closeModal")+"")&&P(a,h),/*assetsurl*/256&r[0]&&$(i,"assetsurl",/*assetsurl*/e[8]),/*translationurl*/16&r[0]&&$(i,"translationurl",/*translationurl*/e[4]),/*clientstylingurl*/8192&r[0]&&$(i,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&r[0]&&$(i,"clientstyling",/*clientstyling*/e[12]),/*lang*/4&r[0]&&$(i,"lang",/*lang*/e[2]),/*modalErrorMessage*/2&r[1]&&$(i,"errorcode",/*modalErrorMessage*/e[32]),/*showsessionexpirationmodal*/"true"===e[14]?m?m.p(e,r):(m=ms(e),m.c(),m.m(l.parentNode,l)):m&&(m.d(1),m=null),/*showConfirmModal*/e[22]?g?g.p(e,r):(g=gs(e),g.c(),g.m(c.parentNode,c)):g&&(g.d(1),g=null)},d(e){p&&p.d(e),e&&k(t),f&&f.d(e),e&&k(n),e&&k(r),e&&k(s),m&&m.d(e),e&&k(l),g&&g.d(e),e&&k(c),u=!1,d()}}}
|
|
1291
|
+
// (265:4) {#if !!showheader && showheader !== 'false'}
|
|
1292
|
+
function ps(e){let t;return{c(){t=C("cashier-header"),$(t,"class","Header"),$(t,"lang",/*lang*/e[2]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"title",/*title*/e[33]),$(t,"clientstylingurl",/*clientstylingurl*/e[13]),$(t,"clientstyling",/*clientstyling*/e[12]),$(t,"showbackbutton",/*showHeaderBack*/e[34])},m(e,n){v(e,t,n)},p(e,n){/*lang*/4&n[0]&&$(t,"lang",/*lang*/e[2]),/*translationurl*/16&n[0]&&$(t,"translationurl",/*translationurl*/e[4]),/*title*/4&n[1]&&$(t,"title",/*title*/e[33]),/*clientstylingurl*/8192&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&n[0]&&$(t,"clientstyling",/*clientstyling*/e[12]),/*showHeaderBack*/8&n[1]&&$(t,"showbackbutton",/*showHeaderBack*/e[34])},d(e){e&&k(t)}}}
|
|
1293
|
+
// (276:4) {#if redirectUrl && redirectMode === RedirectionModeStringEnum.Default}
|
|
1294
|
+
function fs(e){let t,n;return{c(){t=C("div"),n=C("cashier-iframe-redirect"),$(n,"lang",/*lang*/e[2]),$(n,"translationurl",/*translationurl*/e[4]),$(n,"title",/*title*/e[33]),$(n,"clientstylingurl",/*clientstylingurl*/e[13]),$(n,"clientstyling",/*clientstyling*/e[12]),$(n,"showbackbutton",/*showheader*/e[10]),$(n,"iframeurl",/*redirectUrl*/e[23]),A(t,"class","IframeRedirect")},m(e,r){v(e,t,r),y(t,n)},p(e,t){/*lang*/4&t[0]&&$(n,"lang",/*lang*/e[2]),/*translationurl*/16&t[0]&&$(n,"translationurl",/*translationurl*/e[4]),/*title*/4&t[1]&&$(n,"title",/*title*/e[33]),/*clientstylingurl*/8192&t[0]&&$(n,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&t[0]&&$(n,"clientstyling",/*clientstyling*/e[12]),/*showheader*/1024&t[0]&&$(n,"showbackbutton",/*showheader*/e[10]),/*redirectUrl*/8388608&t[0]&&$(n,"iframeurl",/*redirectUrl*/e[23])},d(e){e&&k(t)}}}
|
|
1295
|
+
// (301:6) {#if showsessionexpirationmodal === 'true'}
|
|
1296
1296
|
function ms(e){let t,n;return{c(){t=C("cashier-session-expiration-modal"),$(t,"assetsurl",/*assetsurl*/e[8]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"clientstylingurl",/*clientstylingurl*/e[13]),$(t,"clientstyling",/*clientstyling*/e[12]),$(t,"lang",/*lang*/e[2]),$(t,"local",/*local*/e[3]),$(t,"endpoint",/*endpoint*/e[0]),$(t,"currency",/*currency*/e[6]),$(t,"customerid",/*customerid*/e[5]),$(t,"selectedpaymentmethodname",n=/*selectedPaymentMethod*/e[20].Name)},m(e,n){v(e,t,n)},p(e,r){/*assetsurl*/256&r[0]&&$(t,"assetsurl",/*assetsurl*/e[8]),/*translationurl*/16&r[0]&&$(t,"translationurl",/*translationurl*/e[4]),/*clientstylingurl*/8192&r[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&r[0]&&$(t,"clientstyling",/*clientstyling*/e[12]),/*lang*/4&r[0]&&$(t,"lang",/*lang*/e[2]),/*local*/8&r[0]&&$(t,"local",/*local*/e[3]),/*endpoint*/1&r[0]&&$(t,"endpoint",/*endpoint*/e[0]),/*currency*/64&r[0]&&$(t,"currency",/*currency*/e[6]),/*customerid*/32&r[0]&&$(t,"customerid",/*customerid*/e[5]),/*selectedPaymentMethod*/1048576&r[0]&&n!==(n=/*selectedPaymentMethod*/e[20].Name)&&$(t,"selectedpaymentmethodname",n)},d(e){e&&k(t)}}}
|
|
1297
|
-
// (
|
|
1298
|
-
function gs(e){let t,n,r,i,o,a,s=/*confirmAmount*/(e[
|
|
1299
|
-
// (
|
|
1300
|
-
function ys(e){let t,n,r,i,o=!/*errorResponseCode*/e[
|
|
1301
|
-
// (
|
|
1297
|
+
// (316:6) {#if showConfirmModal}
|
|
1298
|
+
function gs(e){let t,n,r,i,o,a,s=/*confirmAmount*/(e[29]&&!/*hideAmountField*/e[30]?/*$_*/e[35](`${/*type*/e[9].toLowerCase()}.confirmTextWithAmount`,{values:{amount:/*formatter*/e[36].format(/*confirmAmount*/e[29]),currency:/*currency*/e[6]}}):/*$_*/e[35](`${/*type*/e[9].toLowerCase()}.confirmText`))+"",l=/*$_*/e[35](`${/*type*/e[9].toLowerCase()}.confirmButton`)+"";return{c(){t=C("cashier-confirm-modal"),n=C("span"),r=T(s),i=M(),o=C("div"),a=T(l),A(n,"slot","text"),A(o,"slot","confirm"),$(t,"clientstylingurl",/*clientstylingurl*/e[13]),$(t,"clientstyling",/*clientstyling*/e[12])},m(e,s){v(e,t,s),y(t,n),y(n,r),y(t,i),y(t,o),y(o,a)},p(e,n){/*confirmAmount, hideAmountField, type, currency*/1610613312&n[0]|/*$_*/16&n[1]&&s!==(s=/*confirmAmount*/(e[29]&&!/*hideAmountField*/e[30]?/*$_*/e[35](`${/*type*/e[9].toLowerCase()}.confirmTextWithAmount`,{values:{amount:/*formatter*/e[36].format(/*confirmAmount*/e[29]),currency:/*currency*/e[6]}}):/*$_*/e[35](`${/*type*/e[9].toLowerCase()}.confirmText`))+"")&&P(r,s),/*type*/512&n[0]|/*$_*/16&n[1]&&l!==(l=/*$_*/e[35](`${/*type*/e[9].toLowerCase()}.confirmButton`)+"")&&P(a,l),/*clientstylingurl*/8192&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&n[0]&&$(t,"clientstyling",/*clientstyling*/e[12])},d(e){e&&k(t)}}}
|
|
1299
|
+
// (376:4) {:else}
|
|
1300
|
+
function ys(e){let t,n,r,i,o=!/*errorResponseCode*/e[28]&&bs(e),a=/*errorResponseCode*/e[28]===dr.JwtTokenError&&vs(e);return{c(){t=C("cashier-error"),o&&o.c(),n=M(),a&&a.c(),$(t,"class","Error"),$(t,"lang",/*lang*/e[2]),$(t,"assetsurl",/*assetsurl*/e[8]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"clientstylingurl",/*clientstylingurl*/e[13]),$(t,"clientstyling",/*clientstyling*/e[12]),$(t,"imgurl",r=/*errorResponseCode*/e[28]===dr.JwtTokenError?"session-expired-icon.png":""),$(t,"hidebuttons",i=/*errorResponseCode*/e[28]!==dr.JwtTokenError),$(t,"errorcode",/*errorResponseCode*/e[28])},m(e,r){v(e,t,r),o&&o.m(t,null),y(t,n),a&&a.m(t,null)},p(e,s){/*errorResponseCode*/e[28]?o&&(o.d(1),o=null):o?o.p(e,s):(o=bs(e),o.c(),o.m(t,n)),/*errorResponseCode*/e[28]===dr.JwtTokenError?a?a.p(e,s):(a=vs(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),/*lang*/4&s[0]&&$(t,"lang",/*lang*/e[2]),/*assetsurl*/256&s[0]&&$(t,"assetsurl",/*assetsurl*/e[8]),/*translationurl*/16&s[0]&&$(t,"translationurl",/*translationurl*/e[4]),/*clientstylingurl*/8192&s[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&s[0]&&$(t,"clientstyling",/*clientstyling*/e[12]),/*errorResponseCode*/268435456&s[0]&&r!==(r=/*errorResponseCode*/e[28]===dr.JwtTokenError?"session-expired-icon.png":"")&&$(t,"imgurl",r),/*errorResponseCode*/268435456&s[0]&&i!==(i=/*errorResponseCode*/e[28]!==dr.JwtTokenError)&&$(t,"hidebuttons",i),/*errorResponseCode*/268435456&s[0]&&$(t,"errorcode",/*errorResponseCode*/e[28])},d(e){e&&k(t),o&&o.d(),a&&a.d()}}}
|
|
1301
|
+
// (327:2) {#if !errorMessage && !errorResponseCode}
|
|
1302
1302
|
function ws(e){let t,n,r,i,o,a,s,l,c=!!/*showverifications*/e[15]&&/*showverifications*/"false"!==e[15]&&ks(e);return{c(){t=C("div"),n=C("div"),c&&c.c(),r=M(),i=C("cashier-methods-list"),o=M(),a=C("div"),s=C("cashier-method-details"),$(i,"lang",/*lang*/e[2]),$(i,"local",/*local*/e[3]),$(i,"translationurl",/*translationurl*/e[4]),$(i,"endpoint",/*endpoint*/e[0]),$(i,"customerid",/*customerid*/e[5]),$(i,"currency",/*currency*/e[6]),$(i,"numberofmethodsshown",/*numberofmethodsshown*/e[11]),$(i,"clientstylingurl",/*clientstylingurl*/e[13]),$(i,"clientstyling",/*clientstyling*/e[12]),$(i,"assetsurl",/*assetsurl*/e[8]),$(i,"session",/*xPaymentSessionToken*/e[19]),$(i,"ismobileview",/*mobileView*/e[21]),A(n,"class","CashierMethodListWrapper"),$(s,"lang",/*lang*/e[2]),$(s,"local",/*local*/e[3]),$(s,"translationurl",/*translationurl*/e[4]),$(s,"endpoint",/*endpoint*/e[0]),$(s,"customerid",/*customerid*/e[5]),$(s,"currency",/*currency*/e[6]),$(s,"amount",/*amount*/e[7]),$(s,"assetsurl",/*assetsurl*/e[8]),$(s,"type",/*type*/e[9]),$(s,"clientstylingurl",/*clientstylingurl*/e[13]),$(s,"clientstyling",/*clientstyling*/e[12]),$(s,"ismobileview",/*mobileView*/e[21]),$(s,"selectedpaymentmethodname",l=/*selectedPaymentMethod*/e[20].Name),$(s,"session",/*xPaymentSessionToken*/e[19]),$(s,"playersession",/*session*/e[1]),A(a,"class","CashierMethodDetailsWrapper"),A(t,"class","CashierPage")},m(e,l){v(e,t,l),y(t,n),c&&c.m(n,null),y(n,r),y(n,i),y(t,o),y(t,a),y(a,s)},p(e,t){/*showverifications*/e[15]&&/*showverifications*/"false"!==e[15]?c?c.p(e,t):(c=ks(e),c.c(),c.m(n,r)):c&&(c.d(1),c=null),/*lang*/4&t[0]&&$(i,"lang",/*lang*/e[2]),/*local*/8&t[0]&&$(i,"local",/*local*/e[3]),/*translationurl*/16&t[0]&&$(i,"translationurl",/*translationurl*/e[4]),/*endpoint*/1&t[0]&&$(i,"endpoint",/*endpoint*/e[0]),/*customerid*/32&t[0]&&$(i,"customerid",/*customerid*/e[5]),/*currency*/64&t[0]&&$(i,"currency",/*currency*/e[6]),/*numberofmethodsshown*/2048&t[0]&&$(i,"numberofmethodsshown",/*numberofmethodsshown*/e[11]),/*clientstylingurl*/8192&t[0]&&$(i,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&t[0]&&$(i,"clientstyling",/*clientstyling*/e[12]),/*assetsurl*/256&t[0]&&$(i,"assetsurl",/*assetsurl*/e[8]),/*xPaymentSessionToken*/524288&t[0]&&$(i,"session",/*xPaymentSessionToken*/e[19]),/*mobileView*/2097152&t[0]&&$(i,"ismobileview",/*mobileView*/e[21]),/*lang*/4&t[0]&&$(s,"lang",/*lang*/e[2]),/*local*/8&t[0]&&$(s,"local",/*local*/e[3]),/*translationurl*/16&t[0]&&$(s,"translationurl",/*translationurl*/e[4]),/*endpoint*/1&t[0]&&$(s,"endpoint",/*endpoint*/e[0]),/*customerid*/32&t[0]&&$(s,"customerid",/*customerid*/e[5]),/*currency*/64&t[0]&&$(s,"currency",/*currency*/e[6]),/*amount*/128&t[0]&&$(s,"amount",/*amount*/e[7]),/*assetsurl*/256&t[0]&&$(s,"assetsurl",/*assetsurl*/e[8]),/*type*/512&t[0]&&$(s,"type",/*type*/e[9]),/*clientstylingurl*/8192&t[0]&&$(s,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&t[0]&&$(s,"clientstyling",/*clientstyling*/e[12]),/*mobileView*/2097152&t[0]&&$(s,"ismobileview",/*mobileView*/e[21]),/*selectedPaymentMethod*/1048576&t[0]&&l!==(l=/*selectedPaymentMethod*/e[20].Name)&&$(s,"selectedpaymentmethodname",l),/*xPaymentSessionToken*/524288&t[0]&&$(s,"session",/*xPaymentSessionToken*/e[19]),/*session*/2&t[0]&&$(s,"playersession",/*session*/e[1])},d(e){e&&k(t),c&&c.d()}}}
|
|
1303
|
-
// (
|
|
1304
|
-
function bs(e){let t,n;return{c(){t=C("span"),n=T(/*errorMessage*/e[
|
|
1305
|
-
// (
|
|
1306
|
-
function vs(e){let t,n,r,i,o,a,s,l,c,u,d=/*$_*/e[
|
|
1307
|
-
// (
|
|
1308
|
-
function ks(e){let t;return{c(){t=C("cashier-verifications"),$(t,"lang",/*lang*/e[2]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"endpoint",/*endpoint*/e[0]),$(t,"clientstylingurl",/*clientstylingurl*/e[13]),$(t,"clientstyling",/*clientstyling*/e[12]),$(t,"customerid",/*customerid*/e[5]),$(t,"session",/*xPaymentSessionToken*/e[19])},m(e,n){v(e,t,n)},p(e,n){/*lang*/4&n[0]&&$(t,"lang",/*lang*/e[2]),/*translationurl*/16&n[0]&&$(t,"translationurl",/*translationurl*/e[4]),/*endpoint*/1&n[0]&&$(t,"endpoint",/*endpoint*/e[0]),/*clientstylingurl*/8192&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&n[0]&&$(t,"clientstyling",/*clientstyling*/e[12]),/*customerid*/32&n[0]&&$(t,"customerid",/*customerid*/e[5]),/*xPaymentSessionToken*/524288&n[0]&&$(t,"session",/*xPaymentSessionToken*/e[19])},d(e){e&&k(t)}}}function xs(t){let n,r,i,o,a,s=/*isProcessingTxn*/t[24]&&ds(),l=/*lang*/t[2]&&hs(t);function c(e,t){/*errorMessage*/
|
|
1309
|
-
return e[
|
|
1310
|
-
/*div_binding*/t[
|
|
1311
|
-
/*div_binding*/t[42](null),a()}}}function Cs(e,t,n){let r;var i;u(e,ar,(e=>n(34,r=e))),function(e){e.Default="Default",e.RedirectWithRetry="Redirect"}(i||(i={}));new Map([[["Default",0],i.Default],[["Redirect",1],i.RedirectWithRetry]].reduce(((e,[t,n])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,n]))]:[[t,n]]]),[]));let o,a,s,l,c,d,h,p,f,m,g,y,w,b,{endpoint:v}=t,{session:k}=t,{lang:x="en"}=t,{local:C="en-US"}=t,{translationurl:E}=t,{successurl:T}=t,{failurl:M}=t,{cancelurl:D}=t,{customerid:S}=t,{currency:A}=t,{amount:$}=t,{assetsurl:L}=t,{type:P=cr.Deposit}=t,{channel:_=ur.Desktop}=t,{showheader:O="true"}=t,{numberofmethodsshown:N}=t,{clientstyling:R=""}=t,{clientstylingurl:H=""}=t,{showsessionexpirationmodal:I="true"}=t,{showverifications:B="true"}=t,F={},j=new Intl.NumberFormat(C,{minimumFractionDigits:2}),z=!1,U=!1;const W=()=>{var e;e=x,Fn.set(e)};Object.keys(lr).forEach((e=>{sr(e,lr[e])}));const Y=()=>{const e=new URL(`${v}/v2/player/${S}/payment/GetPaymentSession`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json"),t.append("X-SessionId",`${k}`);const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({Channel:_,Type:P,SuccessUrl:T,CancelUrl:D,FailUrl:M,Language:x})};fetch(e,r).then((e=>e.json())).then((e=>(e.error&&n(26,h=e.error),e.ResponseCode===dr.PlayerSessionIsNotValid?(n(27,p=e.ResponseCode),void q()):(e.ResponseCode===dr.JwtTokenError&&(n(27,p=e.ResponseCode),q()),e.ResponseCode!==dr.Success?(n(27,p=e.ResponseCode),void q()):(n(19,o=e.XPaymentSessionToken),void window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:o},window.location.href)))))).catch((e=>console.log(e)))},G=()=>{U&&V()&&!p?(n(32,w=F.Label||F.Name),n(33,b="true")):(n(32,w=`header.${P.toLowerCase()}`),n(33,b="false"))},V=()=>s<750,K=e=>{n(20,F.Name=e.detail.Name,F),n(20,F.Label=e.detail.Label,F),n(25,U=!0),G()},q=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:p},window.location.href)},Z=e=>{n(25,U=!e.detail.hideMethodDetails),G()};J((()=>(window.addEventListener("selectPayMeth",K,!1),window.addEventListener("hidePaymentDetails",Z,!1),window.addEventListener("message",ee,!1),window.addEventListener("closeModal",Q,!1),()=>{window.removeEventListener("hidePaymentDetails",Z),window.removeEventListener("selectPayMeth",K),window.removeEventListener("message",ee),window.removeEventListener("closeModal",Q)})));const Q=()=>{n(22,z=!1)},ee=e=>{"ShowSessionError"===e.data.type&&n(26,h=e.data.error),"ToggleDisableActionOnPage"===e.data.type&&n(24,d=e.data.disable),"ErrorResponseCode"===e.data.type&&(n(27,p=e.data.errorResponseCode),G()),"ShowConfirmModal"===e.data.type&&(n(22,z=e.data.showConfirmModal),n(28,f=e.data.editedAmount),n(29,m=e.data.hideAmountField)),"RedirectInfo"===e.data.type&&(n(23,c=e.data.redirectUrl),n(30,g=e.data.redirectMode),G()),"ShowCashierModal"===e.data.type&&n(31,y=e.data.modalErrorMessage),"SessionExpired"===e.data.type&&(n(27,p=dr.JwtTokenError),q())};return e.$$set=e=>{"endpoint"in e&&n(0,v=e.endpoint),"session"in e&&n(1,k=e.session),"lang"in e&&n(2,x=e.lang),"local"in e&&n(3,C=e.local),"translationurl"in e&&n(4,E=e.translationurl),"successurl"in e&&n(38,T=e.successurl),"failurl"in e&&n(39,M=e.failurl),"cancelurl"in e&&n(40,D=e.cancelurl),"customerid"in e&&n(5,S=e.customerid),"currency"in e&&n(6,A=e.currency),"amount"in e&&n(7,$=e.amount),"assetsurl"in e&&n(8,L=e.assetsurl),"type"in e&&n(9,P=e.type),"channel"in e&&n(41,_=e.channel),"showheader"in e&&n(10,O=e.showheader),"numberofmethodsshown"in e&&n(11,N=e.numberofmethodsshown),"clientstyling"in e&&n(12,R=e.clientstyling),"clientstylingurl"in e&&n(13,H=e.clientstylingurl),"showsessionexpirationmodal"in e&&n(14,I=e.showsessionexpirationmodal),"showverifications"in e&&n(15,B=e.showverifications)},e.$$.update=()=>{/*endpoint, session, customerid, lang, type*/551&e.$$.dirty[0]|/*channel, successurl, failurl, cancelurl*/1920&e.$$.dirty[1]&&v&&k&&S&&x&&_&&P&&T&&M&&D&&Y(),/*clientstyling, customStylingContainer*/69632&e.$$.dirty[0]&&R&&a&&(()=>{let e=document.createElement("style");e.innerHTML=R,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/73728&e.$$.dirty[0]&&H&&a&&(()=>{let e=new URL(H),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*lang*/4&e.$$.dirty[0]&&x&&W(),/*lang*/4&e.$$.dirty[0]&&x&&G(),/*translationurl*/16&e.$$.dirty[0]&&E&&(()=>{if(E)fetch(E).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{sr(t,e[t])}))})).catch((e=>{console.log(e)}))})(),/*widgetWidth*/131072&e.$$.dirty[0]&&s&&(n(21,l=V().toString()),G())},[v,k,x,C,E,S,A,$,L,P,O,N,R,H,I,B,a,s,i,o,F,l,z,c,d,U,h,p,f,m,g,y,w,b,r,j,()=>{window.postMessage({type:"HideCashierModal"},window.location.href)},()=>{n(27,p=null),q(),Y()},T,M,D,_,function(e){X[e?"unshift":"push"]((()=>{a=e,n(16,a)}))},function(){s=this.clientWidth,n(17,s)}]}!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",class extends ve{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:101;top:0;left:0;background-color:var(--mmw--color-black-transparency-4, rgba(0, 0, 0, 0.04));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-small, 14px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;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:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierSessionExpirationButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--mmw--color-main-button-active, #5C950F)}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}",this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},us,cs,a,{clientstyling:10,clientstylingurl:11,width:0,height:1,duration:2,assetsurl:3,lang:12,translationurl:13,endpoint:14,currency:15,customerid:16,selectedpaymentmethodname:17},null,[-1,-1]),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["clientstyling","clientstylingurl","width","height","duration","assetsurl","lang","translationurl","endpoint","currency","customerid","selectedpaymentmethodname"]}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),ae()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),ae()}get duration(){return this.$$.ctx[2]}set duration(e){this.$$set({duration:e}),ae()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(e){this.$$set({assetsurl:e}),ae()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),ae()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),ae()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),ae()}get currency(){return this.$$.ctx[15]}set currency(e){this.$$set({currency:e}),ae()}get customerid(){return this.$$.ctx[16]}set customerid(e){this.$$set({customerid:e}),ae()}get selectedpaymentmethodname(){return this.$$.ctx[17]}set selectedpaymentmethodname(e){this.$$set({selectedpaymentmethodname:e}),ae()}});class Es extends ve{constructor(e){super();const t=document.createElement("style");t.textContent="@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.DisablePage{container-type:inline-size;container-name:confirm-modal;position:absolute;width:100%;height:100%;z-index:100;top:0;left:0;background-color:transparent}.CashierPageWidget{container-type:inline-size;container-name:deposit-page;height:inherit;position:relative;box-sizing:border-box}.CashierPageWidget .CashierMethodDetailsWrapper{display:none}.CashierPageWidget:has(.Header){border-radius:6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);box-sizing:border-box}.CashierPageWidget:has(.Header) .IframeRedirect{border-radius:6px}.CashierPageWidget:has(.Header) .CashierPage,.CashierPageWidget:has(.Header) .DisablePage{height:calc(100% - var(--mmw--header-height, 32px))}.CashierPageWidget:has(.Header) .DisablePage{top:var(--mmw--header-height, 32px)}.CashierMethodListWrapper{height:100%;overflow:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;padding:var(--emw--spacing-large, 20px) var(--emw--spacing-x-small, 10px) var(--emw--spacing-small, 12px) var(--emw--spacing-x-small, 10px);width:50%}.CashierMethodListWrapper::-webkit-scrollbar{border-right:none}.BothSections .CashierMethodDetailsWrapper{height:100%;overflow:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;display:block;transition:all 1s;width:50%;justify-content:center}.BothSections .CashierMethodListWrapper::-webkit-scrollbar{border-right:1px solid var(--emw--color-gray-100, #E0E0E0)}.CashierPage{position:relative;display:flex;flex-direction:row;justify-content:center;height:inherit}cashier-method-details{width:0}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-white, #FFF)}@container deposit-page (max-width:750px){.CashierPage,.BothSections .CashierPage{flex-direction:column;justify-content:flex-start;gap:0}.CashierPage cashier-methods-list,.CashierPage cashier-method-details,.CashierPage .CashierMethodDetailsWrapper,.BothSections .CashierPage cashier-methods-list,.BothSections .CashierPage cashier-method-details,.BothSections .CashierPage .CashierMethodDetailsWrapper{width:100%;height:100%}cashier-method-details{display:none}.BothSections cashier-method-details{display:flex}.BothSections .CashierMethodListWrapper{display:none}.CashierMethodListWrapper{width:100%}}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--mmw--color-grey-105, #E8E9EB)}::-webkit-scrollbar-thumb:hover{background:var(--mmw--color-grey-290, #666)}",this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},Cs,xs,a,{endpoint:0,session:1,lang:2,local:3,translationurl:4,successurl:38,failurl:39,cancelurl:40,customerid:5,currency:6,amount:7,assetsurl:8,type:9,channel:41,showheader:10,numberofmethodsshown:11,clientstyling:12,clientstylingurl:13,showsessionexpirationmodal:14,showverifications:15},null,[-1,-1,-1]),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["endpoint","session","lang","local","translationurl","successurl","failurl","cancelurl","customerid","currency","amount","assetsurl","type","channel","showheader","numberofmethodsshown","clientstyling","clientstylingurl","showsessionexpirationmodal","showverifications"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),ae()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),ae()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),ae()}get local(){return this.$$.ctx[3]}set local(e){this.$$set({local:e}),ae()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),ae()}get successurl(){return this.$$.ctx[38]}set successurl(e){this.$$set({successurl:e}),ae()}get failurl(){return this.$$.ctx[39]}set failurl(e){this.$$set({failurl:e}),ae()}get cancelurl(){return this.$$.ctx[40]}set cancelurl(e){this.$$set({cancelurl:e}),ae()}get customerid(){return this.$$.ctx[5]}set customerid(e){this.$$set({customerid:e}),ae()}get currency(){return this.$$.ctx[6]}set currency(e){this.$$set({currency:e}),ae()}get amount(){return this.$$.ctx[7]}set amount(e){this.$$set({amount:e}),ae()}get assetsurl(){return this.$$.ctx[8]}set assetsurl(e){this.$$set({assetsurl:e}),ae()}get type(){return this.$$.ctx[9]}set type(e){this.$$set({type:e}),ae()}get channel(){return this.$$.ctx[41]}set channel(e){this.$$set({channel:e}),ae()}get showheader(){return this.$$.ctx[10]}set showheader(e){this.$$set({showheader:e}),ae()}get numberofmethodsshown(){return this.$$.ctx[11]}set numberofmethodsshown(e){this.$$set({numberofmethodsshown:e}),ae()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get showsessionexpirationmodal(){return this.$$.ctx[14]}set showsessionexpirationmodal(e){this.$$set({showsessionexpirationmodal:e}),ae()}get showverifications(){return this.$$.ctx[15]}set showverifications(e){this.$$set({showverifications:e}),ae()}}return!customElements.get("cashier-page")&&customElements.define("cashier-page",Es),Es}));
|
|
1303
|
+
// (387:6) {#if !errorResponseCode}
|
|
1304
|
+
function bs(e){let t,n;return{c(){t=C("span"),n=T(/*errorMessage*/e[27]),A(t,"slot","text")},m(e,r){v(e,t,r),y(t,n)},p(e,t){/*errorMessage*/134217728&t[0]&&P(n,/*errorMessage*/e[27])},d(e){e&&k(t)}}}
|
|
1305
|
+
// (390:6) {#if errorResponseCode === ResponseCode.JwtTokenError}
|
|
1306
|
+
function vs(e){let t,n,r,i,o,a,s,l,c,u,d=/*$_*/e[35]("sessionExpiredTitle")+"",h=/*$_*/e[35]("sessionExpiredText")+"",p=/*$_*/e[35]("continueSession")+"";return{c(){t=C("span"),n=T(d),r=M(),i=C("span"),o=T(h),a=M(),s=C("div"),l=T(p),A(t,"slot","title"),A(i,"slot","text"),A(s,"slot","button"),A(s,"class","CashierErrorButton")},m(d,h){v(d,t,h),y(t,n),v(d,r,h),v(d,i,h),y(i,o),v(d,a,h),v(d,s,h),y(s,l),c||(u=S(s,"click",/*renewSession*/e[38]),c=!0)},p(e,t){/*$_*/16&t[1]&&d!==(d=/*$_*/e[35]("sessionExpiredTitle")+"")&&P(n,d),/*$_*/16&t[1]&&h!==(h=/*$_*/e[35]("sessionExpiredText")+"")&&P(o,h),/*$_*/16&t[1]&&p!==(p=/*$_*/e[35]("continueSession")+"")&&P(l,p)},d(e){e&&k(t),e&&k(r),e&&k(i),e&&k(a),e&&k(s),c=!1,u()}}}
|
|
1307
|
+
// (330:8) {#if !!showverifications && showverifications !== 'false'}
|
|
1308
|
+
function ks(e){let t;return{c(){t=C("cashier-verifications"),$(t,"lang",/*lang*/e[2]),$(t,"translationurl",/*translationurl*/e[4]),$(t,"endpoint",/*endpoint*/e[0]),$(t,"clientstylingurl",/*clientstylingurl*/e[13]),$(t,"clientstyling",/*clientstyling*/e[12]),$(t,"customerid",/*customerid*/e[5]),$(t,"session",/*xPaymentSessionToken*/e[19])},m(e,n){v(e,t,n)},p(e,n){/*lang*/4&n[0]&&$(t,"lang",/*lang*/e[2]),/*translationurl*/16&n[0]&&$(t,"translationurl",/*translationurl*/e[4]),/*endpoint*/1&n[0]&&$(t,"endpoint",/*endpoint*/e[0]),/*clientstylingurl*/8192&n[0]&&$(t,"clientstylingurl",/*clientstylingurl*/e[13]),/*clientstyling*/4096&n[0]&&$(t,"clientstyling",/*clientstyling*/e[12]),/*customerid*/32&n[0]&&$(t,"customerid",/*customerid*/e[5]),/*xPaymentSessionToken*/524288&n[0]&&$(t,"session",/*xPaymentSessionToken*/e[19])},d(e){e&&k(t)}}}function xs(t){let n,r,i,o,a,s=/*isProcessingTxn*/t[24]&&ds(),l=/*lang*/t[2]&&/*isTranslationLoaded*/t[25]&&hs(t);function c(e,t){/*errorMessage*/
|
|
1309
|
+
return e[27]||/*errorResponseCode*/e[28]?ys:ws}let u=c(t),d=u(t);return{c(){n=C("div"),s&&s.c(),r=M(),l&&l.c(),i=M(),d.c(),this.c=e,A(n,"class",o=/*showMethodDetailsPage*/t[26]?"CashierPageWidget BothSections":"CashierPageWidget"),ne((()=>/*div_elementresize_handler*/t[44].call(n)))},m(e,o){v(e,n,o),s&&s.m(n,null),y(n,r),l&&l.m(n,null),y(n,i),d.m(n,null),
|
|
1310
|
+
/*div_binding*/t[43](n),a=H(n,/*div_elementresize_handler*/t[44].bind(n))},p(e,t){/*isProcessingTxn*/e[24]?s||(s=ds(),s.c(),s.m(n,r)):s&&(s.d(1),s=null),/*lang*/e[2]&&/*isTranslationLoaded*/e[25]?l?l.p(e,t):(l=hs(e),l.c(),l.m(n,i)):l&&(l.d(1),l=null),u===(u=c(e))&&d?d.p(e,t):(d.d(1),d=u(e),d&&(d.c(),d.m(n,null))),/*showMethodDetailsPage*/67108864&t[0]&&o!==(o=/*showMethodDetailsPage*/e[26]?"CashierPageWidget BothSections":"CashierPageWidget")&&A(n,"class",o)},i:e,o:e,d(e){e&&k(n),s&&s.d(),l&&l.d(),d.d(),
|
|
1311
|
+
/*div_binding*/t[43](null),a()}}}function Cs(e,t,n){let r;var i;u(e,ar,(e=>n(35,r=e))),function(e){e.Default="Default",e.RedirectWithRetry="Redirect"}(i||(i={}));new Map([[["Default",0],i.Default],[["Redirect",1],i.RedirectWithRetry]].reduce(((e,[t,n])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,n]))]:[[t,n]]]),[]));let o,a,s,l,c,d,h,p,f,m,g,y,w,b,v,{endpoint:k}=t,{session:x}=t,{lang:C="en"}=t,{local:E="en-US"}=t,{translationurl:T}=t,{successurl:M}=t,{failurl:D}=t,{cancelurl:S}=t,{customerid:A}=t,{currency:$}=t,{amount:L}=t,{assetsurl:P}=t,{type:_=cr.Deposit}=t,{channel:O=ur.Desktop}=t,{showheader:N="true"}=t,{numberofmethodsshown:R}=t,{clientstyling:H=""}=t,{clientstylingurl:I=""}=t,{showsessionexpirationmodal:B="true"}=t,{showverifications:F="true"}=t,j={},z=new Intl.NumberFormat(E,{minimumFractionDigits:2}),U=!1,W=!1;const Y=()=>{var e;e=C,Fn.set(e)};Object.keys(lr).forEach((e=>{sr(e,lr[e])})),T||(h=!0);const G=()=>{const e=new URL(`${k}/v2/player/${A}/payment/GetPaymentSession`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json"),t.append("X-SessionId",`${x}`);const r={method:"POST",mode:"cors",headers:t,body:JSON.stringify({Channel:O,Type:_,SuccessUrl:M,CancelUrl:S,FailUrl:D,Language:C})};fetch(e,r).then((e=>e.json())).then((e=>(e.error&&n(27,p=e.error),e.ResponseCode===dr.PlayerSessionIsNotValid?(n(28,f=e.ResponseCode),void Z()):(e.ResponseCode===dr.JwtTokenError&&(n(28,f=e.ResponseCode),Z()),e.ResponseCode!==dr.Success?(n(28,f=e.ResponseCode),void Z()):(n(19,o=e.XPaymentSessionToken),void window.postMessage({type:"StartSessionCountdown",xPaymentSessionToken:o},window.location.href)))))).catch((e=>console.log(e)))},V=()=>{W&&K()&&!f?(n(33,b=j.Label||j.Name),n(34,v="true")):(n(33,b=`header.${_.toLowerCase()}`),n(34,v="false"))},K=()=>s<750,q=e=>{n(20,j.Name=e.detail.Name,j),n(20,j.Label=e.detail.Label,j),n(26,W=!0),V()},Z=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:f},window.location.href)},Q=e=>{n(26,W=!e.detail.hideMethodDetails),V()};J((()=>(window.addEventListener("selectPayMeth",q,!1),window.addEventListener("hidePaymentDetails",Q,!1),window.addEventListener("message",te,!1),window.addEventListener("closeModal",ee,!1),()=>{window.removeEventListener("hidePaymentDetails",Q),window.removeEventListener("selectPayMeth",q),window.removeEventListener("message",te),window.removeEventListener("closeModal",ee)})));const ee=()=>{n(22,U=!1)},te=e=>{"ShowSessionError"===e.data.type&&n(27,p=e.data.error),"ToggleDisableActionOnPage"===e.data.type&&n(24,d=e.data.disable),"ErrorResponseCode"===e.data.type&&(n(28,f=e.data.errorResponseCode),V()),"ShowConfirmModal"===e.data.type&&(n(22,U=e.data.showConfirmModal),n(29,m=e.data.editedAmount),n(30,g=e.data.hideAmountField)),"RedirectInfo"===e.data.type&&(n(23,c=e.data.redirectUrl),n(31,y=e.data.redirectMode),V()),"ShowCashierModal"===e.data.type&&n(32,w=e.data.modalErrorMessage),"SessionExpired"===e.data.type&&(n(28,f=dr.JwtTokenError),Z())};return e.$$set=e=>{"endpoint"in e&&n(0,k=e.endpoint),"session"in e&&n(1,x=e.session),"lang"in e&&n(2,C=e.lang),"local"in e&&n(3,E=e.local),"translationurl"in e&&n(4,T=e.translationurl),"successurl"in e&&n(39,M=e.successurl),"failurl"in e&&n(40,D=e.failurl),"cancelurl"in e&&n(41,S=e.cancelurl),"customerid"in e&&n(5,A=e.customerid),"currency"in e&&n(6,$=e.currency),"amount"in e&&n(7,L=e.amount),"assetsurl"in e&&n(8,P=e.assetsurl),"type"in e&&n(9,_=e.type),"channel"in e&&n(42,O=e.channel),"showheader"in e&&n(10,N=e.showheader),"numberofmethodsshown"in e&&n(11,R=e.numberofmethodsshown),"clientstyling"in e&&n(12,H=e.clientstyling),"clientstylingurl"in e&&n(13,I=e.clientstylingurl),"showsessionexpirationmodal"in e&&n(14,B=e.showsessionexpirationmodal),"showverifications"in e&&n(15,F=e.showverifications)},e.$$.update=()=>{/*endpoint, session, customerid, lang, type*/551&e.$$.dirty[0]|/*channel, successurl, failurl, cancelurl*/3840&e.$$.dirty[1]&&k&&x&&A&&C&&O&&_&&M&&D&&S&&G(),/*clientstyling, customStylingContainer*/69632&e.$$.dirty[0]&&H&&a&&(()=>{let e=document.createElement("style");e.innerHTML=H,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/73728&e.$$.dirty[0]&&I&&a&&(()=>{let e=new URL(I),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1),setTimeout((()=>{}),500)}))})(),/*lang*/4&e.$$.dirty[0]&&C&&Y(),/*lang*/4&e.$$.dirty[0]&&C&&V(),/*translationurl*/16&e.$$.dirty[0]&&T&&(()=>{if(T)fetch(T).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{sr(t,e[t]),n(25,h=!0)}))})).catch((e=>{n(25,h=!0),console.log(e)}))})(),/*widgetWidth*/131072&e.$$.dirty[0]&&s&&(n(21,l=K().toString()),V())},[k,x,C,E,T,A,$,L,P,_,N,R,H,I,B,F,a,s,i,o,j,l,U,c,d,h,W,p,f,m,g,y,w,b,v,r,z,()=>{window.postMessage({type:"HideCashierModal"},window.location.href)},()=>{n(28,f=null),Z(),G()},M,D,S,O,function(e){X[e?"unshift":"push"]((()=>{a=e,n(16,a)}))},function(){s=this.clientWidth,n(17,s)}]}!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",class extends ve{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:101;top:0;left:0;background-color:var(--mmw--color-black-transparency-4, rgba(0, 0, 0, 0.04));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-small, 14px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;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:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierSessionExpirationButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--mmw--color-main-button-active, #5C950F)}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}",this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},us,cs,a,{clientstyling:10,clientstylingurl:11,width:0,height:1,duration:2,assetsurl:3,lang:12,translationurl:13,endpoint:14,currency:15,customerid:16,selectedpaymentmethodname:17},null,[-1,-1]),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["clientstyling","clientstylingurl","width","height","duration","assetsurl","lang","translationurl","endpoint","currency","customerid","selectedpaymentmethodname"]}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),ae()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),ae()}get duration(){return this.$$.ctx[2]}set duration(e){this.$$set({duration:e}),ae()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(e){this.$$set({assetsurl:e}),ae()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),ae()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),ae()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),ae()}get currency(){return this.$$.ctx[15]}set currency(e){this.$$set({currency:e}),ae()}get customerid(){return this.$$.ctx[16]}set customerid(e){this.$$set({customerid:e}),ae()}get selectedpaymentmethodname(){return this.$$.ctx[17]}set selectedpaymentmethodname(e){this.$$set({selectedpaymentmethodname:e}),ae()}});class Es extends ve{constructor(e){super();const t=document.createElement("style");t.textContent="@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.DisablePage{container-type:inline-size;container-name:confirm-modal;position:absolute;width:100%;height:100%;z-index:100;top:0;left:0;background-color:transparent}.CashierPageWidget{container-type:inline-size;container-name:deposit-page;height:inherit;position:relative;box-sizing:border-box}.CashierPageWidget .CashierMethodDetailsWrapper{display:none}.CashierPageWidget:has(.Header){border-radius:6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);box-sizing:border-box}.CashierPageWidget:has(.Header) .IframeRedirect{border-radius:6px}.CashierPageWidget:has(.Header) .CashierPage,.CashierPageWidget:has(.Header) .DisablePage{height:calc(100% - var(--mmw--header-height, 32px))}.CashierPageWidget:has(.Header) .DisablePage{top:var(--mmw--header-height, 32px)}.CashierMethodListWrapper{height:100%;overflow:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;padding:var(--emw--spacing-large, 20px) var(--emw--spacing-x-small, 10px) var(--emw--spacing-small, 12px) var(--emw--spacing-x-small, 10px);width:50%}.CashierMethodListWrapper::-webkit-scrollbar{border-right:none}.BothSections .CashierMethodDetailsWrapper{height:100%;overflow:auto;box-sizing:border-box;scrollbar-gutter:stable both-edges;display:block;transition:all 1s;width:50%;justify-content:center}.BothSections .CashierMethodListWrapper::-webkit-scrollbar{border-right:1px solid var(--emw--color-gray-100, #E0E0E0)}.CashierPage{position:relative;display:flex;flex-direction:row;justify-content:center;height:inherit}cashier-method-details{width:0}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-white, #FFF)}@container deposit-page (max-width:750px){.CashierPage,.BothSections .CashierPage{flex-direction:column;justify-content:flex-start;gap:0}.CashierPage cashier-methods-list,.CashierPage cashier-method-details,.CashierPage .CashierMethodDetailsWrapper,.BothSections .CashierPage cashier-methods-list,.BothSections .CashierPage cashier-method-details,.BothSections .CashierPage .CashierMethodDetailsWrapper{width:100%;height:100%}cashier-method-details{display:none}.BothSections cashier-method-details{display:flex}.BothSections .CashierMethodListWrapper{display:none}.CashierMethodListWrapper{width:100%}}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--mmw--color-grey-105, #E8E9EB)}::-webkit-scrollbar-thumb:hover{background:var(--mmw--color-grey-290, #666)}",this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:F(this.attributes),customElement:!0},Cs,xs,a,{endpoint:0,session:1,lang:2,local:3,translationurl:4,successurl:39,failurl:40,cancelurl:41,customerid:5,currency:6,amount:7,assetsurl:8,type:9,channel:42,showheader:10,numberofmethodsshown:11,clientstyling:12,clientstylingurl:13,showsessionexpirationmodal:14,showverifications:15},null,[-1,-1,-1]),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),ae()))}static get observedAttributes(){return["endpoint","session","lang","local","translationurl","successurl","failurl","cancelurl","customerid","currency","amount","assetsurl","type","channel","showheader","numberofmethodsshown","clientstyling","clientstylingurl","showsessionexpirationmodal","showverifications"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),ae()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),ae()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),ae()}get local(){return this.$$.ctx[3]}set local(e){this.$$set({local:e}),ae()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),ae()}get successurl(){return this.$$.ctx[39]}set successurl(e){this.$$set({successurl:e}),ae()}get failurl(){return this.$$.ctx[40]}set failurl(e){this.$$set({failurl:e}),ae()}get cancelurl(){return this.$$.ctx[41]}set cancelurl(e){this.$$set({cancelurl:e}),ae()}get customerid(){return this.$$.ctx[5]}set customerid(e){this.$$set({customerid:e}),ae()}get currency(){return this.$$.ctx[6]}set currency(e){this.$$set({currency:e}),ae()}get amount(){return this.$$.ctx[7]}set amount(e){this.$$set({amount:e}),ae()}get assetsurl(){return this.$$.ctx[8]}set assetsurl(e){this.$$set({assetsurl:e}),ae()}get type(){return this.$$.ctx[9]}set type(e){this.$$set({type:e}),ae()}get channel(){return this.$$.ctx[42]}set channel(e){this.$$set({channel:e}),ae()}get showheader(){return this.$$.ctx[10]}set showheader(e){this.$$set({showheader:e}),ae()}get numberofmethodsshown(){return this.$$.ctx[11]}set numberofmethodsshown(e){this.$$set({numberofmethodsshown:e}),ae()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),ae()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ae()}get showsessionexpirationmodal(){return this.$$.ctx[14]}set showsessionexpirationmodal(e){this.$$set({showsessionexpirationmodal:e}),ae()}get showverifications(){return this.$$.ctx[15]}set showverifications(e){this.$$set({showverifications:e}),ae()}}return!customElements.get("cashier-page")&&customElements.define("cashier-page",Es),Es}));
|
|
1312
1312
|
//# sourceMappingURL=cashier-page.js.map
|