@everymatrix/cashier-page 1.64.8 → 1.65.1
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/components/{CashierIframeRedirect-CnJ3VzHc.js → CashierIframeRedirect-CQOqJJue.js} +1 -1
- package/components/{CashierIframeRedirect-fN5PDOc4.js → CashierIframeRedirect-CblW0VT6.js} +1 -1
- package/components/{CashierIframeRedirect-BcbdEBA1.cjs → CashierIframeRedirect-Ddfq0L8C.cjs} +1 -1
- package/components/{CashierMethodDetails-MqGg4bbJ.cjs → CashierMethodDetails-EaBEBoQO.cjs} +1 -1
- package/components/{CashierMethodDetails-B_BhZEkY.js → CashierMethodDetails-I-aP27hH.js} +2 -2
- package/components/{CashierMethodDetails--rzIMrEs.js → CashierMethodDetails-NF4M3BjK.js} +2 -2
- package/components/{CashierMethodsList-C9PUtmAp.js → CashierMethodsList-6w8FuO9r.js} +347 -322
- package/components/{CashierMethodsList-B5tb0WjS.js → CashierMethodsList-Dda8_29U.js} +347 -323
- package/components/CashierMethodsList-DyQac0D0.cjs +1 -0
- package/components/{CashierPage-Bx6B2IBb.js → CashierPage-C8LZCit2.js} +118 -115
- package/components/{CashierPage-C89vlJ-0.cjs → CashierPage-DMjvnG0Z.cjs} +1 -1
- package/components/{CashierPage-DM7C4hyO.js → CashierPage-DnFKJ1eh.js} +118 -115
- package/components/{CashierReceiptPage-DinW0opb.cjs → CashierReceiptPage-C14xuKTb.cjs} +1 -1
- package/components/{CashierReceiptPage-CdgFNrPp.js → CashierReceiptPage-Dd5y5Qy1.js} +1 -1
- package/components/{CashierReceiptPage-Jiu5qUxI.js → CashierReceiptPage-sT1NOysr.js} +1 -1
- package/components/{CashierSessionExpirationModal-HI5RwZaG.js → CashierSessionExpirationModal-ChmcV7j1.js} +1 -1
- package/components/{CashierSessionExpirationModal-J63vMq0N.js → CashierSessionExpirationModal-Cnf5emOX.js} +1 -1
- package/components/{CashierSessionExpirationModal-m_2LL_N-.cjs → CashierSessionExpirationModal-bYWJ13Hc.cjs} +1 -1
- package/components/CashierSpinner-BAfTKICK.js +71 -0
- package/components/CashierSpinner-BhmndmKG.cjs +1 -0
- package/components/CashierSpinner-y6HodxHT.js +71 -0
- package/components/{CashierTransactionHistory-DM_Yer_6.js → CashierTransactionHistory-B8xfM-3Z.js} +1 -1
- package/components/{CashierTransactionHistory-Cz4JGWLZ.cjs → CashierTransactionHistory-CSdqhIc7.cjs} +1 -1
- package/components/{CashierTransactionHistory-Bryux9RA.js → CashierTransactionHistory-EEJUUScb.js} +1 -1
- package/components/{CashierVerifications-BQz_SxLe.js → CashierVerifications-B9d8CIlA.js} +1 -1
- package/components/{CashierVerifications-BhM0LBoQ.cjs → CashierVerifications-CsbiMD4K.cjs} +1 -1
- package/components/{CashierVerifications-BH5WM1AE.js → CashierVerifications-euYL9X7J.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodsList-Bpdu8yVn.cjs +0 -1
- package/components/CashierSpinner-C-ubAde7.js +0 -71
- package/components/CashierSpinner-D-uP0nCc.cjs +0 -1
- package/components/CashierSpinner-tLPMJx6q.js +0 -71
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),A=require("./CashierError-CmR-nZrh.cjs"),S=require("./CashierMethodDetails-MqGg4bbJ.cjs");function j(r,t){A.addMessages(r,t)}function we(r){A.init({fallbackLocale:"en"}),A.$locale.set(r)}const H={en:{"verification.video.how-to":"How to verify yourself","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.video.how-to":"Kimlik doğrulama nasıl yapılır","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.video.how-to":"How to verify yourself","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"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ye(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.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{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.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)}.CashierVerificationVideo{display:flex;width:100%;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}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function N(r,t,o){const a=r.slice();return a[51]=t[o],a[53]=o,a}function W(r){let t,o,a,c,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=Y(N(r,u,l));let m=r[7]&&G(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const k=N(l,u,s);d[s]?d[s].p(k,h):(d[s]=Y(k),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=G(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(c)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function c(...u){return r[18](r[53],...u)}return{c(){t=i.element("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>',i.attr(t,"class","CashierVerificationChevron")},m(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",c),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function Y(r){let t,o,a,c,u=r[51]+"",d,m,l,h,s=r[4].length>1&&r[53]===0&&K(r);function k(...w){return r[19](r[53],...w)}return{c(){t=i.element("div"),o=i.element("div"),o.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>',a=i.space(),c=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(w,v){i.insert(w,t,v),i.append(t,o),i.append(t,a),i.append(t,c),c.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",k),l=!0)},p(w,v){r=w,v[0]&16&&u!==(u=r[51]+"")&&(c.innerHTML=u),r[4].length>1&&r[53]===0?s?s.p(r,v):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),v[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(w){w&&i.detach(t),s&&s.d(),l=!1,h()}}}function G(r){let t,o,a,c,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',a=i.space(),c=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,c),i.append(c,d),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function ke(r){let t,o=r[4]&&W(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,c){i.insert(a,t,c),o&&o.m(t,null),r[21](t)},p(a,c){a[4]?o?o.p(a,c):(o=W(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[21](null)}}}const _e="verification_explanation_video_widgets.MP4";function Pe(r,t,o){let a,c;i.component_subscribe(r,A.$format,e=>o(9,a=e)),i.component_subscribe(r,S.xPaymentSessionToken,e=>o(27,c=e)),S.dayjs.extend(S.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:k=""}=t,{ismobileview:w=""}=t,v,F=new Set,x=new Set,D,C,O,M=!0,I=!0,T=!1,B="";var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var g;(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"})(g||(g={}));var b;(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"})(b||(b={}));const J=[g.InProgress,g.Referred,g.AwaitingForResponse],X=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{j(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(H).forEach(e=>{j(e,H[e])});const Q=()=>{we(d)},$=()=>{let e=document.createElement("style");e.innerHTML=l,v.appendChild(e)},ee=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{v.appendChild(n)},1)})},z=()=>{const{merchantId:e,customerId:n}=te();if(!e)return;const f=new URL(`${u}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",S.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const _={method:"POST",headers:p,body:JSON.stringify({MerchantId:e,CustomerId:n,All:!1,AllParameters:!1})};fetch(f,_).then(P=>P.json()).then(P=>{o(17,C=P.StaticCdnUrl+"/cashier/operator-assets/"+e),D=re(P.Verifications),D.VerificationStatuses.forEach(y=>{y.VerificationUrlType!=="Widget"&&F.add(y.Vendor)}),o(4,O=U())})},ie=()=>{c&&z()},te=()=>{let e=(s||c).split(".")[1];if(e){let n=JSON.parse(atob(e));return{merchantId:n==null?void 0:n.mid,customerId:`${n==null?void 0:n.mid}~${k}`}}return{merchantId:null,customerId:null}},re=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ne(e);if(n&&n.length){const p=oe(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:E(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:E(e,[g.Failed])}},oe=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),E=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,_;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...Object.values(f.Documents)]:[],VerificationUrlType:(p=f.Flags)==null?void 0:p.DeferredUrlTypeKey,VerificationUrl:(_=f.Flags)==null?void 0:_.DeferredUrlKey}}),ne=e=>e.filter(n=>J.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||se(n)||ae(n):!1),se=e=>{const n=e.Documents&&e.VendorName===V.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ae=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(le(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},le=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===V.ShuftiPro)return ce(n);{const f=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return a("verification.idenfy.in-progress",{values:p})}},ce=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(y=>{p.includes(y.Type)&&(n.push(y.Type),f[y.Type]=fe(y,de(y.Type)))});let _=n.every(y=>x.has(y)),P=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?a("verification.shuftipro.validations-started"):a(P,{values:f})},fe=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,de=e=>a(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];x.add(f),o(4,O=U())}return}n===0&&o(5,M=!M)},ue=()=>{o(6,I=w==="false")},he=()=>{o(8,B=C+"/"+d+"/"+_e);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},R=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},me=(e,n)=>q(n,e),pe=(e,n)=>q(n,e),ge=()=>R();function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{v=e,o(3,v)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,k=e.customerid),"ismobileview"in e&&o(2,w=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&Q(),r.$$.dirty[0]&36864&&u&&s&&z(),r.$$.dirty[0]&36864&&u&&!s&&ie(),r.$$.dirty[0]&16384&&m&&X(),r.$$.dirty[0]&9&&l&&v&&$(),r.$$.dirty[0]&10&&h&&v&&ee(),r.$$.dirty[0]&4&&w&&ue(),r.$$.dirty[0]&131072&&C&&he()},[l,h,w,v,O,M,I,T,B,a,q,R,u,d,m,s,k,C,me,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Pe,ke,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ye,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}}i.create_custom_element(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=Z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),A=require("./CashierError-CmR-nZrh.cjs"),S=require("./CashierMethodDetails-EaBEBoQO.cjs");function j(r,t){A.addMessages(r,t)}function we(r){A.init({fallbackLocale:"en"}),A.$locale.set(r)}const H={en:{"verification.video.how-to":"How to verify yourself","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.video.how-to":"Kimlik doğrulama nasıl yapılır","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.video.how-to":"How to verify yourself","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"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ye(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.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{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.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)}.CashierVerificationVideo{display:flex;width:100%;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}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function N(r,t,o){const a=r.slice();return a[51]=t[o],a[53]=o,a}function W(r){let t,o,a,c,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=Y(N(r,u,l));let m=r[7]&&G(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const k=N(l,u,s);d[s]?d[s].p(k,h):(d[s]=Y(k),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=G(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(c)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function c(...u){return r[18](r[53],...u)}return{c(){t=i.element("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>',i.attr(t,"class","CashierVerificationChevron")},m(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",c),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function Y(r){let t,o,a,c,u=r[51]+"",d,m,l,h,s=r[4].length>1&&r[53]===0&&K(r);function k(...w){return r[19](r[53],...w)}return{c(){t=i.element("div"),o=i.element("div"),o.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>',a=i.space(),c=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(w,v){i.insert(w,t,v),i.append(t,o),i.append(t,a),i.append(t,c),c.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",k),l=!0)},p(w,v){r=w,v[0]&16&&u!==(u=r[51]+"")&&(c.innerHTML=u),r[4].length>1&&r[53]===0?s?s.p(r,v):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),v[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(w){w&&i.detach(t),s&&s.d(),l=!1,h()}}}function G(r){let t,o,a,c,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',a=i.space(),c=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,c),i.append(c,d),m||(l=i.listen(c,"click",r[20]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function ke(r){let t,o=r[4]&&W(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,c){i.insert(a,t,c),o&&o.m(t,null),r[21](t)},p(a,c){a[4]?o?o.p(a,c):(o=W(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[21](null)}}}const _e="verification_explanation_video_widgets.MP4";function Pe(r,t,o){let a,c;i.component_subscribe(r,A.$format,e=>o(9,a=e)),i.component_subscribe(r,S.xPaymentSessionToken,e=>o(27,c=e)),S.dayjs.extend(S.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:k=""}=t,{ismobileview:w=""}=t,v,F=new Set,x=new Set,D,C,O,M=!0,I=!0,T=!1,B="";var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var g;(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"})(g||(g={}));var b;(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"})(b||(b={}));const J=[g.InProgress,g.Referred,g.AwaitingForResponse],X=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{j(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(H).forEach(e=>{j(e,H[e])});const Q=()=>{we(d)},$=()=>{let e=document.createElement("style");e.innerHTML=l,v.appendChild(e)},ee=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{v.appendChild(n)},1)})},z=()=>{const{merchantId:e,customerId:n}=te();if(!e)return;const f=new URL(`${u}/v1/player/verification/GetKYCStatus`),p=new Headers;p.append("accept","application/json"),p.append("Content-Type","application/json"),p.append("X-Client-Request-Timestamp",S.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const _={method:"POST",headers:p,body:JSON.stringify({MerchantId:e,CustomerId:n,All:!1,AllParameters:!1})};fetch(f,_).then(P=>P.json()).then(P=>{o(17,C=P.StaticCdnUrl+"/cashier/operator-assets/"+e),D=re(P.Verifications),D.VerificationStatuses.forEach(y=>{y.VerificationUrlType!=="Widget"&&F.add(y.Vendor)}),o(4,O=U())})},ie=()=>{c&&z()},te=()=>{let e=(s||c).split(".")[1];if(e){let n=JSON.parse(atob(e));return{merchantId:n==null?void 0:n.mid,customerId:`${n==null?void 0:n.mid}~${k}`}}return{merchantId:null,customerId:null}},re=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ne(e);if(n&&n.length){const p=oe(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:E(n,p.Status)}}else return{VerificationSummaryStatus:e.some(_=>_.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:E(e,[g.Failed])}},oe=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),E=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,_;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...Object.values(f.Documents)]:[],VerificationUrlType:(p=f.Flags)==null?void 0:p.DeferredUrlTypeKey,VerificationUrl:(_=f.Flags)==null?void 0:_.DeferredUrlKey}}),ne=e=>e.filter(n=>J.includes(n.Status)?n.Flags&&n.Flags.DeferredUrlKey||se(n)||ae(n):!1),se=e=>{const n=e.Documents&&e.VendorName===V.Manual,f=Object.values(e.Documents).some(p=>p.Status===L.Requested);return n&&f},ae=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(le(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},le=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===V.ShuftiPro)return ce(n);{const f=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return a("verification.idenfy.in-progress",{values:p})}},ce=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(y=>{p.includes(y.Type)&&(n.push(y.Type),f[y.Type]=fe(y,de(y.Type)))});let _=n.every(y=>x.has(y)),P=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return _?a("verification.shuftipro.validations-started"):a(P,{values:f})},fe=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,de=e=>a(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];x.add(f),o(4,O=U())}return}n===0&&o(5,M=!M)},ue=()=>{o(6,I=w==="false")},he=()=>{o(8,B=C+"/"+d+"/"+_e);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,T=e.ok)})}catch(e){o(7,T=!1)}},R=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},me=(e,n)=>q(n,e),pe=(e,n)=>q(n,e),ge=()=>R();function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{v=e,o(3,v)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,k=e.customerid),"ismobileview"in e&&o(2,w=e.ismobileview)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&Q(),r.$$.dirty[0]&36864&&u&&s&&z(),r.$$.dirty[0]&36864&&u&&!s&&ie(),r.$$.dirty[0]&16384&&m&&X(),r.$$.dirty[0]&9&&l&&v&&$(),r.$$.dirty[0]&10&&h&&v&&ee(),r.$$.dirty[0]&4&&w&&ue(),r.$$.dirty[0]&131072&&C&&he()},[l,h,w,v,O,M,I,T,B,a,q,R,u,d,m,s,k,C,me,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Pe,ke,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2},ye,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}}i.create_custom_element(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=Z;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as Ae, b as Oe, s as Me, f as D, c as Te, n as J, e as S, J as M, m as _, p as y, v as P, w as Z, K as X, L as Be, D as C, q as O, A as Le, o as k, B as R, y as qe, z as xe, E as Fe } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
2
|
import { a as Ie, i as ze, $ as Ee, b as Ue } from "./CashierError-CpPMMDmw.js";
|
|
3
|
-
import { d as Q, u as Re, x as He } from "./CashierMethodDetails
|
|
3
|
+
import { d as Q, u as Re, x as He } from "./CashierMethodDetails-NF4M3BjK.js";
|
|
4
4
|
function $(t, i) {
|
|
5
5
|
Ie(t, i);
|
|
6
6
|
}
|
package/es2015/cashier-page.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-DMjvnG0Z.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
|
package/es2015/cashier-page.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierPage-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierPage-DnFKJ1eh.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-page.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var ke=Object.defineProperty,Ee=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var De=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable;var se=(s,t,l)=>t in s?ke(s,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[t]=l,J=(s,t)=>{for(var l in t||(t={}))De.call(t,l)&&se(s,l,t[l]);if(te)for(var l of te(t))Se.call(t,l)&&se(s,l,t[l]);return s},K=(s,t)=>Ee(s,xe(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-DMmJumcl.cjs"),V=require("./CashierError-CmR-nZrh.cjs"),G=require("./CashierMethodDetails-MqGg4bbJ.cjs");function le(s,t){V.addMessages(s,t)}function Pe(s){V.init({fallbackLocale:"en"}),V.$locale.set(s)}const oe={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available",promoLabel:"Recommended"},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",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil",promoLabel:"Favori"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}},Ze="data:image/svg+xml,%3csvg%20width='337'%20height='182'%20viewBox='0%200%20337%20182'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3810_1046)'%3e%3cmask%20id='mask0_3810_1046'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='337'%20height='182'%3e%3cpath%20d='M337%200H0V182H337V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3810_1046)'%3e%3cpath%20opacity='0.16'%20d='M309.269%20229.727C361.939%20177.104%20362.219%2092.0651%20309.895%2039.7875C257.571%20-12.49%20172.456%20-12.21%20119.786%2040.413C67.1163%2093.0359%2066.836%20178.075%20119.16%20230.352C171.484%20282.63%20256.599%20282.35%20309.269%20229.727Z'%20fill='url(%23paint0_linear_3810_1046)'/%3e%3cpath%20d='M306.91%2085.1765C306.739%2085.2338%20302.567%2086.122%20302.567%2086.122L303.5%2091.4846C303.248%2093.837%20303.341%2096.6725%20303.844%2099.6755C304.373%20102.836%20305.272%20105.672%20306.347%20107.862L307.255%20113.083C307.255%20113.083%20311.566%20111.854%20311.731%20111.798C314.285%20110.94%20315.276%20104.285%20313.945%2096.9328C312.614%2089.5809%20309.464%2084.317%20306.91%2085.1751V85.1765Z'%20fill='%23EFED85'/%3e%3cpath%20d='M306.685%20113.272C309.314%20112.85%20310.469%20106.436%20309.264%2098.9468C308.06%2091.4575%20304.952%2085.7283%20302.323%2086.1504C299.695%2086.5724%20298.54%2092.9859%20299.745%20100.475C300.949%20107.965%20304.057%20113.694%20306.685%20113.272Z'%20fill='white'/%3e%3cpath%20d='M305.827%20108.917C307.296%20108.672%20307.819%20104.485%20306.996%2099.565C306.173%2094.6451%20304.315%2090.8556%20302.847%2091.1009C301.378%2091.3461%20300.855%2095.5332%20301.678%20100.453C302.501%20105.373%20304.359%20109.162%20305.827%20108.917Z'%20fill='%23F4F3AC'/%3e%3cpath%20d='M304.62%20105.084L304.075%20103.589C303.619%20102.177%20303.262%20101.098%20302.642%20100.459L302.04%2099.8406L302.288%2099.5744C302.849%2098.9733%20303.198%2097.6789%20303.232%2095.9681L303.248%2095.1577L303.659%2096.3726C304.164%2097.8677%20304.895%2099.1162%20305.724%2099.851L306.266%20100.447L305.602%20100.9C304.866%20101.503%20304.705%20102.631%20304.648%20104.26L304.619%20105.084H304.62Z'%20fill='white'/%3e%3cpath%20opacity='0.72'%20d='M200.267%20126.95L215.345%20130.531L220.921%20107.008L213.789%20105.314L200.267%20126.95Z'%20fill='%23335176'/%3e%3cpath%20opacity='0.72'%20d='M206.435%2099.1181L221.513%20102.699L227.089%2079.1759L219.957%2077.4819L206.435%2099.1181Z'%20fill='%23335176'/%3e%3cpath%20opacity='0.72'%20d='M264.663%2061.4345L235.427%2055.1773L236.027%2047.2476L267.382%2054.2159L264.663%2061.4345Z'%20fill='%23C9C9CD'/%3e%3cpath%20d='M267.172%2054.3082L236.177%2047.334L241.326%2039.9707L265.402%2045.3879L267.172%2054.3082Z'%20fill='%23E5E8EB'/%3e%3cpath%20opacity='0.72'%20d='M255.482%20116.025L251.839%20139.685L247.535%20137.953L251.822%20114.85L255.482%20116.025ZM259.581%2088.2698L254.196%20110.232L256.849%20111.475L262.769%2088.2698H259.581ZM269.145%2060.0598L265.72%2059.8086L260.923%2082.2169L263.224%2083.7198L269.145%2060.0598Z'%20fill='%23335176'/%3e%3cpath%20opacity='0.72'%20d='M226.752%2081.0609L226.682%2081.044L219.685%20110.601L219.612%20110.584L213.828%20135.857L218.236%20138.931L240.91%20144.235L246.268%20142.965L251.838%20118.626L251.91%20118.643L258.982%2088.7745L259.052%2088.7913L266.134%2058.8773L233.824%2051.1924L226.752%2081.0609Z'%20fill='%23C9C9CD'/%3e%3cpath%20d='M227.064%2079.4609L226.994%2079.444L220.404%20107.182L220.33%20107.165L213.535%20135.791L246.258%20142.963L252.849%20115.225L252.923%20115.242L259.583%2087.2109L259.653%2087.2277L266.323%2059.1542L233.724%2051.4297L227.064%2079.4609Z'%20fill='white'/%3e%3cpath%20d='M226.947%2079.7684L226.879%2079.7525L220.297%20107.492L220.225%20107.476L213.438%20136.104L245.311%20143.084L251.893%20115.344L251.965%20115.361L258.617%2087.3278L258.685%2087.3441L265.347%2059.2688L233.599%2051.7358L226.947%2079.7684Z'%20fill='white'/%3e%3cpath%20opacity='0.5'%20d='M226.961%2079.7714L226.892%2079.755L220.304%20107.494L220.23%20107.476L213.438%20136.104L245.879%20143.212L252.467%20115.473L252.54%20115.49L259.197%2087.4582L259.267%2087.4745L265.934%2059.4006L233.618%2051.7397L226.961%2079.7714Z'%20fill='url(%23paint1_linear_3810_1046)'/%3e%3cpath%20opacity='0.72'%20d='M213.147%2071.0995L228.225%2074.6808L233.801%2051.1573L226.67%2049.4634L213.147%2071.0995Z'%20fill='%23335176'/%3e%3cpath%20d='M211.385%20104.483L217.562%20105.962L210.465%20129.564L197.406%20126.436L211.385%20104.483H211.385ZM205.464%2099.2332L218.524%20102.36L224.158%2078.2259L217.981%2076.7471L205.465%2099.2332H205.464ZM212.126%2071.2034L225.186%2074.3306L230.819%2050.1965L224.643%2048.7173L212.126%2071.2034H212.126Z'%20fill='white'/%3e%3cpath%20d='M211.385%20104.483L217.562%20105.962L210.465%20129.564L197.406%20126.436L211.385%20104.483H211.385ZM205.464%2099.2332L218.524%20102.36L224.158%2078.2259L217.981%2076.7471L205.465%2099.2332H205.464ZM212.126%2071.2034L225.186%2074.3306L230.819%2050.1965L224.643%2048.7173L212.126%2071.2034H212.126Z'%20fill='url(%23paint2_linear_3810_1046)'/%3e%3cpath%20d='M264.464%20143.146L251.404%20140.022L255.781%20115.769L261.958%20117.247L264.464%20143.146ZM268.656%2089.5355L262.479%2088.0577L256.557%20112.123L269.617%20115.247L268.656%2089.5355ZM275.428%2061.5321L269.251%2060.0547L263.329%2084.1201L276.389%2087.2441L275.428%2061.5321Z'%20fill='white'/%3e%3cpath%20d='M264.464%20143.146L251.404%20140.022L255.781%20115.769L261.958%20117.247L264.464%20143.146ZM268.656%2089.5355L262.479%2088.0577L256.557%20112.123L269.617%20115.247L268.656%2089.5355ZM275.428%2061.5321L269.251%2060.0547L263.329%2084.1201L276.389%2087.2441L275.428%2061.5321Z'%20fill='url(%23paint3_linear_3810_1046)'/%3e%3cpath%20d='M232.837%20135.937C239.26%20135.937%20244.468%20130.734%20244.468%20124.316C244.468%20117.898%20239.26%20112.695%20232.837%20112.695C226.413%20112.695%20221.205%20117.898%20221.205%20124.316C221.205%20130.734%20226.413%20135.937%20232.837%20135.937Z'%20fill='white'/%3e%3cg%20opacity='0.31'%3e%3cpath%20d='M232.966%20133.318C238.149%20133.318%20242.351%20129.12%20242.351%20123.941C242.351%20118.763%20238.149%20114.564%20232.966%20114.564C227.783%20114.564%20223.581%20118.763%20223.581%20123.941C223.581%20129.12%20227.783%20133.318%20232.966%20133.318Z'%20fill='%237EC51E'/%3e%3c/g%3e%3cpath%20d='M239.767%20108.582C246.191%20108.582%20251.399%20103.379%20251.399%2096.961C251.399%2090.5428%20246.191%2085.3398%20239.767%2085.3398C233.343%2085.3398%20228.136%2090.5428%20228.136%2096.961C228.136%20103.379%20233.343%20108.582%20239.767%20108.582Z'%20fill='white'/%3e%3cg%20opacity='0.4'%3e%3cpath%20d='M239.897%20105.963C245.08%20105.963%20249.282%20101.765%20249.282%2096.5861C249.282%2091.4075%20245.08%2087.2095%20239.897%2087.2095C234.714%2087.2095%20230.512%2091.4075%20230.512%2096.5861C230.512%20101.765%20234.714%20105.963%20239.897%20105.963Z'%20fill='%23EFED85'/%3e%3c/g%3e%3cpath%20d='M247.767%2080.7623C254.191%2080.7623%20259.399%2075.5594%20259.399%2069.1412C259.399%2062.723%20254.191%2057.52%20247.767%2057.52C241.343%2057.52%20236.136%2062.723%20236.136%2069.1412C236.136%2075.5594%20241.343%2080.7623%20247.767%2080.7623Z'%20fill='white'/%3e%3cg%20opacity='0.47'%3e%3cpath%20d='M248.022%2085.2495C256.699%2085.2495%20263.734%2078.2215%20263.734%2069.552C263.734%2060.8825%20256.699%2053.8545%20248.022%2053.8545C239.345%2053.8545%20232.311%2060.8825%20232.311%2069.552C232.311%2078.2215%20239.345%2085.2495%20248.022%2085.2495Z'%20fill='%23FFE5BE'/%3e%3c/g%3e%3cg%20opacity='0.4'%3e%3cpath%20d='M247.472%2080.0554C253.318%2080.0554%20258.057%2075.3206%20258.057%2069.4799C258.057%2063.6391%20253.318%2058.9043%20247.472%2058.9043C241.626%2058.9043%20236.887%2063.6391%20236.887%2069.4799C236.887%2075.3206%20241.626%2080.0554%20247.472%2080.0554Z'%20fill='%23FFA726'/%3e%3c/g%3e%3cpath%20d='M225.426%2037.6665L189.408%2042.7698L187.953%2036.5627L225.233%2031.4321L225.426%2037.6665Z'%20fill='%23DDF0C4'/%3e%3cpath%20d='M187.957%2036.5846L190.505%2032.4892L215.212%2028.6162L225.294%2031.3844L187.957%2036.5846Z'%20fill='%23ECF5E2'/%3e%3cpath%20opacity='0.56'%20d='M201.065%2030.5759L203.025%2034.1504L204.17%2040.6892L211.068%2039.8502L210.023%2033.7673L206.24%2029.731L201.065%2030.5759Z'%20fill='white'/%3e%3cpath%20d='M160.588%2079.8823L165.616%2087.0722L151.713%20102.497L145.829%2096.1782L160.588%2079.8823Z'%20fill='%23D4ECB5'/%3e%3cpath%20d='M171.11%20133.02L172.813%20127.332L196.181%20140.808L192.506%20144.839L171.11%20133.02Z'%20fill='%23D4ECB5'/%3e%3cpath%20d='M258.894%20156.181L262.412%20148.881L278.337%20162.727L273.605%20168.398L258.894%20156.181Z'%20fill='%23D4ECB5'/%3e%3cpath%20d='M207.241%20153.371L212.273%20153.509C212.273%20153.509%20219.934%20160.635%20222.834%20164.031C225.734%20167.426%20229.899%20173.527%20229.899%20173.527L232.334%20181.542L220.067%20166.246L207.241%20153.371Z'%20fill='%23DDF0C4'/%3e%3cpath%20d='M227.172%20185.145L215.896%20170.61L202.893%20158.016L207.257%20153.355L220.673%20166.876L232.261%20181.518L227.172%20185.145Z'%20fill='%23ECF5E2'/%3e%3cpath%20opacity='0.56'%20d='M220.887%20161.734L218.801%20164.233L213.988%20168.822L218.523%20174.095L223.012%20169.843L224.701%20166.281L220.887%20161.734Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3810_1046'%20x1='377.71'%20y1='128.355'%20x2='109.138'%20y2='100.506'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.294'%20stop-color='%237EC51E'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.306'%20stop-color='%237EC51E'%20stop-opacity='0.788'/%3e%3cstop%20offset='0.735'%20stop-color='%237EC51E'%20stop-opacity='0.367'/%3e%3cstop%20offset='0.931'%20stop-color='%237EC51E'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_3810_1046'%20x1='222.977'%20y1='93.7971'%20x2='256.48'%20y2='101.349'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0D2D3'%20stop-opacity='0'/%3e%3cstop%20offset='0.147'%20stop-color='%23CED2D4'%20stop-opacity='0.175'/%3e%3cstop%20offset='0.332'%20stop-color='%23CDD2D5'%20stop-opacity='0.362'/%3e%3cstop%20offset='0.513'%20stop-color='%23CDD2D5'%20stop-opacity='0.51'/%3e%3cstop%20offset='0.688'%20stop-color='%23CCD2D6'%20stop-opacity='0.615'/%3e%3cstop%20offset='0.853'%20stop-color='%23CCD2D6'%20stop-opacity='0.678'/%3e%3cstop%20offset='1'%20stop-color='%23CCD2D7'%20stop-opacity='0.7'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_3810_1046'%20x1='231.03'%20y1='58.5166'%20x2='200.367'%20y2='123.696'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23BBBCC1'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.25'%20stop-color='%23C1C4C9'%20stop-opacity='0.564'/%3e%3cstop%20offset='0.5'%20stop-color='%23C7CBD0'%20stop-opacity='0.366'/%3e%3cstop%20offset='0.702'%20stop-color='%23CAD0D5'%20stop-opacity='0.244'/%3e%3cstop%20offset='0.83'%20stop-color='%23CCD2D7'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_3810_1046'%20x1='245.954'%20y1='83.3307'%20x2='285.109'%20y2='122.52'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.207'%20stop-color='%23BBBCC1'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.432'%20stop-color='%23C1C4C9'%20stop-opacity='0.564'/%3e%3cstop%20offset='0.656'%20stop-color='%23C7CBD0'%20stop-opacity='0.366'/%3e%3cstop%20offset='0.837'%20stop-color='%23CAD0D5'%20stop-opacity='0.244'/%3e%3cstop%20offset='0.952'%20stop-color='%23CCD2D7'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_3810_1046'%3e%3crect%20width='337'%20height='182'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function Te(s){e.append_styles(s,"svelte-103kbtr","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);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}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.CashierMethodList.Promoted{position:relative;margin-bottom:var(--emw--spacing-small, 12px)}.CashierMethodList.Promoted .SelectorWrapper{height:var(--mmw-promo-method-height, 90px);border-radius:var(--mmw--border-radius-medium-plus, 6px);border:2px solid var(--mmw--color-promo-label, #ffca00)}.CashierMethodList.Promoted .MethodInfo{flex-direction:column;align-items:start}.CashierMethodList.Promoted .MethodLimits{display:flex;flex-direction:row;gap:5px}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);min-width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodPromoLabel{background:var(--mmw--color-promo-label, #FFCA00);color:var(--mmw--color-promo-text, #111111);font-size:14px;font-weight:600;padding:3px;position:absolute;top:0;right:0;min-width:100px;text-align:center;border-radius:0 var(--mmw--border-radius-medium, 4px) 0 var(--mmw--border-radius-medium-plus, 6px)}.MethodInfo{width:100%;display:flex;flex-direction:row;gap:var(--emw--spacing-small-minus, 10px);overflow:hidden;justify-content:space-between;align-items:center}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;gap:var(--emw--spacing-small-minus, 10px);text-align:end}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);position:absolute;bottom:10%;left:5%;width:calc(100% - 125px)}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);line-height:calc(var(--emw--font-size-medium, 16px) + 4px)}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--mmw--color-grey-290, #666)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{top:50%;left:250px;bottom:auto;transform:translateY(-50%);padding:0 10px 0 5px;width:calc(100% - 250px);margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);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;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{width:var(--mmw-logo-small-width, 90px);min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo-small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle,.MethodLimits{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.MethodInfo{flex-direction:column;align-items:start}.MethodLimits{display:flex;flex-direction:row;gap:5px}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function ne(s,t,l){const n=s.slice();return n[52]=t[l],n[54]=l,n}function ie(s,t,l){const n=s.slice();return n[52]=t[l],n[54]=l,n}function ae(s){let t,l,n,i,c,h,g=e.ensure_array_like(s[15]),u=[];for(let r=0;r<g.length;r+=1)u[r]=re(ie(s,g,r));let _=e.ensure_array_like(s[8]),d=[];for(let r=0;r<_.length;r+=1)d[r]=ce(ne(s,_,r));let m=s[13]&&s[12]&&pe(s),f=s[7]&&de(s);return{c(){t=e.element("div"),l=e.element("div");for(let r=0;r<u.length;r+=1)u[r].c();n=e.space(),i=e.element("div");for(let r=0;r<d.length;r+=1)d[r].c();c=e.space(),m&&m.c(),h=e.space(),f&&f.c(),e.attr(l,"class","CashierMethodList Promoted"),e.attr(i,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(r,p){e.insert(r,t,p),e.append(t,l);for(let a=0;a<u.length;a+=1)u[a]&&u[a].m(l,null);e.append(t,n),e.append(t,i);for(let a=0;a<d.length;a+=1)d[a]&&d[a].m(i,null);e.append(i,c),m&&m.m(i,null),e.append(t,h),f&&f.m(t,null),s[29](t)},p(r,p){if(p[0]&245824){g=e.ensure_array_like(r[15]);let a;for(a=0;a<g.length;a+=1){const y=ie(r,g,a);u[a]?u[a].p(y,p):(u[a]=re(y),u[a].c(),u[a].m(l,null))}for(;a<u.length;a+=1)u[a].d(1);u.length=g.length}if(p[0]&213312){_=e.ensure_array_like(r[8]);let a;for(a=0;a<_.length;a+=1){const y=ne(r,_,a);d[a]?d[a].p(y,p):(d[a]=ce(y),d[a].c(),d[a].m(i,c))}for(;a<d.length;a+=1)d[a].d(1);d.length=_.length}r[13]&&r[12]?m?m.p(r,p):(m=pe(r),m.c(),m.m(i,null)):m&&(m.d(1),m=null),r[7]?f?f.p(r,p):(f=de(r),f.c(),f.m(t,null)):f&&(f.d(1),f=null)},d(r){r&&e.detach(t),e.destroy_each(u,r),e.destroy_each(d,r),m&&m.d(),f&&f.d(),s[29](null)}}}function re(s){let t,l,n,i,c,h,g,u,_,d,m,f=s[14]("generalMin")+"",r,p,a=s[16].format(s[52].DisplayCurrency.MinAmountLimit)+"",y,b,v=s[52].DisplayCurrency.Name+"",E,D,w,S=s[14]("generalMax")+"",T,k,F=s[16].format(s[52].DisplayCurrency.MaxAmountLimit)+"",U,H,x=s[52].DisplayCurrency.Name+"",O,B,P,z,A=s[14]("promoLabel")+"",j,R,Z,C;function Y(){return s[26](s[52])}return{c(){t=e.element("div"),l=e.element("div"),n=e.element("img"),c=e.space(),h=e.element("div"),g=e.element("div"),u=e.element("span"),u.textContent=`${s[52].Label||s[52].Name}`,_=e.space(),d=e.element("div"),m=e.element("span"),r=e.text(f),p=e.space(),y=e.text(a),b=e.space(),E=e.text(v),D=e.space(),w=e.element("span"),T=e.text(S),k=e.space(),U=e.text(F),H=e.space(),O=e.text(x),B=e.space(),P=e.element("div"),z=e.element("span"),j=e.text(A),R=e.space(),e.src_url_equal(n.src,i=s[52].LogoUrl)||e.attr(n,"src",i),e.attr(n,"alt",s[52].Label),e.attr(l,"class","MethodLogo"),e.attr(g,"class","MethodTitle"),e.attr(m,"class","Limits"),e.attr(w,"class","Limits"),e.attr(d,"class","MethodLimits"),e.attr(h,"class","MethodInfo"),e.attr(P,"class","MethodPromoLabel"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",s[6]===s[52].Name)},m(W,I){e.insert(W,t,I),e.append(t,l),e.append(l,n),e.append(t,c),e.append(t,h),e.append(h,g),e.append(g,u),e.append(h,_),e.append(h,d),e.append(d,m),e.append(m,r),e.append(m,p),e.append(m,y),e.append(m,b),e.append(m,E),e.append(d,D),e.append(d,w),e.append(w,T),e.append(w,k),e.append(w,U),e.append(w,H),e.append(w,O),e.append(t,B),e.append(t,P),e.append(P,z),e.append(z,j),e.append(t,R),Z||(C=[e.listen(t,"click",Y),e.listen(t,"keyup",He)],Z=!0)},p(W,I){s=W,I[0]&16384&&f!==(f=s[14]("generalMin")+"")&&e.set_data(r,f),I[0]&16384&&S!==(S=s[14]("generalMax")+"")&&e.set_data(T,S),I[0]&16384&&A!==(A=s[14]("promoLabel")+"")&&e.set_data(j,A),I[0]&32832&&e.toggle_class(t,"checked",s[6]===s[52].Name)},d(W){W&&e.detach(t),Z=!1,e.run_all(C)}}}function ce(s){let t,l,n,i,c,h,g,u,_,d=(s[52].Label||s[52].Name)+"",m,f,r,p,a=s[14]("generalMin")+"",y,b,v=s[16].format(s[52].DisplayCurrency.MinAmountLimit)+"",E,D,w=s[52].DisplayCurrency.Name+"",S,T,k,F=s[14]("generalMax")+"",U,H,x=s[16].format(s[52].DisplayCurrency.MaxAmountLimit)+"",O,B,P=s[52].DisplayCurrency.Name+"",z,A,j;function R(){return s[27](s[52])}return{c(){t=e.element("div"),l=e.element("div"),n=e.element("img"),h=e.space(),g=e.element("div"),u=e.element("div"),_=e.element("span"),m=e.text(d),f=e.space(),r=e.element("div"),p=e.element("span"),y=e.text(a),b=e.space(),E=e.text(v),D=e.space(),S=e.text(w),T=e.space(),k=e.element("span"),U=e.text(F),H=e.space(),O=e.text(x),B=e.space(),z=e.text(P),e.src_url_equal(n.src,i=s[52].LogoUrl)||e.attr(n,"src",i),e.attr(n,"alt",c=s[52].Label),e.attr(l,"class","MethodLogo"),e.attr(u,"class","MethodTitle"),e.attr(p,"class","Limits"),e.attr(k,"class","Limits"),e.attr(r,"class","MethodLimits"),e.attr(g,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",s[6]===s[52].Name)},m(Z,C){e.insert(Z,t,C),e.append(t,l),e.append(l,n),e.append(t,h),e.append(t,g),e.append(g,u),e.append(u,_),e.append(_,m),e.append(g,f),e.append(g,r),e.append(r,p),e.append(p,y),e.append(p,b),e.append(p,E),e.append(p,D),e.append(p,S),e.append(r,T),e.append(r,k),e.append(k,U),e.append(k,H),e.append(k,O),e.append(k,B),e.append(k,z),A||(j=[e.listen(t,"click",R),e.listen(t,"keyup",Oe)],A=!0)},p(Z,C){s=Z,C[0]&256&&!e.src_url_equal(n.src,i=s[52].LogoUrl)&&e.attr(n,"src",i),C[0]&256&&c!==(c=s[52].Label)&&e.attr(n,"alt",c),C[0]&256&&d!==(d=(s[52].Label||s[52].Name)+"")&&e.set_data(m,d),C[0]&16384&&a!==(a=s[14]("generalMin")+"")&&e.set_data(y,a),C[0]&256&&v!==(v=s[16].format(s[52].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(E,v),C[0]&256&&w!==(w=s[52].DisplayCurrency.Name+"")&&e.set_data(S,w),C[0]&16384&&F!==(F=s[14]("generalMax")+"")&&e.set_data(U,F),C[0]&256&&x!==(x=s[16].format(s[52].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(O,x),C[0]&256&&P!==(P=s[52].DisplayCurrency.Name+"")&&e.set_data(z,P),C[0]&320&&e.toggle_class(t,"checked",s[6]===s[52].Name)},d(Z){Z&&e.detach(t),A=!1,e.run_all(j)}}}function pe(s){let t,l,n,i,c,h=s[14]("error")+"",g,u,_,d=s[14]("noPaymentMethods")+"",m;function f(a,y){return a[1]?Ne:Ae}let r=f(s),p=r(s);return{c(){t=e.element("div"),l=e.element("div"),p.c(),n=e.space(),i=e.element("div"),c=e.element("p"),g=e.text(h),u=e.space(),_=e.element("p"),m=e.text(d),e.attr(l,"class","EmptyContentMessageImg"),e.attr(c,"class","EmptyContentMessageTitle"),e.attr(_,"class","EmptyContentMessageText"),e.attr(i,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",s[11])},m(a,y){e.insert(a,t,y),e.append(t,l),p.m(l,null),e.append(t,n),e.append(t,i),e.append(i,c),e.append(c,g),e.append(i,u),e.append(i,_),e.append(_,m)},p(a,y){r===(r=f(a))&&p?p.p(a,y):(p.d(1),p=r(a),p&&(p.c(),p.m(l,null))),y[0]&16384&&h!==(h=a[14]("error")+"")&&e.set_data(g,h),y[0]&16384&&d!==(d=a[14]("noPaymentMethods")+"")&&e.set_data(m,d),y[0]&2048&&e.toggle_class(t,"EmptyContentMessageDesktop",a[11])},d(a){a&&e.detach(t),p.d()}}}function Ae(s){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=Ze)||e.attr(t,"src",l),e.attr(t,"alt","empty-payment-method-list")},m(n,i){e.insert(n,t,i)},p:e.noop,d(n){n&&e.detach(t)}}}function Ne(s){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=`${s[1]}/empty-pay-meth-list.png`)||e.attr(t,"src",l),e.attr(t,"width","300px"),e.attr(t,"alt","empty-payment-method-list")},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&2&&!e.src_url_equal(t.src,l=`${n[1]}/empty-pay-meth-list.png`)&&e.attr(t,"src",l)},d(n){n&&e.detach(t)}}}function de(s){let t,l,n,i;return{c(){t=e.element("div"),l=e.text(s[7]),e.attr(t,"class","ShowAllButton")},m(c,h){e.insert(c,t,h),e.append(t,l),n||(i=e.listen(t,"click",s[28]),n=!0)},p(c,h){h[0]&128&&e.set_data(l,c[7])},d(c){c&&e.detach(t),n=!1,i()}}}function me(s){let t,l,n;return{c(){t=e.element("cashier-error"),l=e.element("span"),n=e.text(s[10]),e.attr(l,"slot","text"),e.set_custom_element_data(t,"lang",s[0]),e.set_custom_element_data(t,"assetsurl",s[1]),e.set_custom_element_data(t,"translationurl",s[2]),e.set_custom_element_data(t,"clientstylingurl",s[4]),e.set_custom_element_data(t,"clientstyling",s[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(i,c){e.insert(i,t,c),e.append(t,l),e.append(l,n)},p(i,c){c[0]&1024&&e.set_data(n,i[10]),c[0]&1&&e.set_custom_element_data(t,"lang",i[0]),c[0]&2&&e.set_custom_element_data(t,"assetsurl",i[1]),c[0]&4&&e.set_custom_element_data(t,"translationurl",i[2]),c[0]&16&&e.set_custom_element_data(t,"clientstylingurl",i[4]),c[0]&8&&e.set_custom_element_data(t,"clientstyling",i[3])},d(i){i&&e.detach(t)}}}function Fe(s){let t,l,n=(s[9]||s[11])&&ae(s),i=s[10]&&me(s);return{c(){n&&n.c(),t=e.space(),i&&i.c(),l=e.empty()},m(c,h){n&&n.m(c,h),e.insert(c,t,h),i&&i.m(c,h),e.insert(c,l,h)},p(c,h){c[9]||c[11]?n?n.p(c,h):(n=ae(c),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),c[10]?i?i.p(c,h):(i=me(c),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(c){c&&(e.detach(t),e.detach(l)),n&&n.d(c),i&&i.d(c)}}}const Ue="PaymentPromotion",He=()=>{},Oe=()=>{};function Be(s,t,l){let n,i;e.component_subscribe(s,V.$format,o=>l(14,n=o)),e.component_subscribe(s,G.xPaymentSessionToken,o=>l(35,i=o)),G.dayjs.extend(G.utc);let{lang:c="en"}=t,{local:h="en-US"}=t,{endpoint:g}=t,{session:u}=t,{customerid:_}=t,{assetsurl:d}=t,{currency:m}=t,{numberofmethodsshown:f}=t,{translationurl:r=""}=t,{clientstyling:p=""}=t,{clientstylingurl:a=""}=t,{ismobileview:y}=t,b=[],v,E,D="",w=[],S=[],T=!0,k=new Intl.NumberFormat(h,{minimumFractionDigits:2}),F="",U,H=!0,x=!1,O=!1;var B;(function(o){o.PlayerSessionIsNotValid="PlayerSessionIsNotValid",o.Success="Success",o.JwtTokenError="JwtTokenError"})(B||(B={}));const P=()=>{let o=r;if(o)return fetch(o).then(L=>L.json()).then(L=>{Object.keys(L).forEach(N=>{le(N,L[N])})}).catch(L=>{console.log(L)})};Object.keys(oe).forEach(o=>{le(o,oe[o])});const z=()=>{Pe(c)},A=()=>{i&&j()},j=()=>{window.postMessage({type:"DataLoading",isDataLoaded:x});const o=new URL(`${g}/v1/player/${_}/payment/GetPaymentMetadata`),L=new Headers;L.append("accept","application/json"),L.append("Content-Type","application/json"),L.append("X-Client-Request-Timestamp",G.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const N={method:"POST",headers:L,body:JSON.stringify({XPaymentSessionToken:u||i,Currency:m,Tags:{UserAgent:window.navigator.userAgent}})};fetch(o,N).then(M=>M.json()).then(M=>{var q;if(M.error){l(10,F=M.error);return}if(M.ResponseCode!==B.Success){U=M.ResponseCode,Y();return}M.XPaymentSessionToken&&G.xPaymentSessionToken.set(M.XPaymentSessionToken),b=(q=M.PaymentMethods)!=null&&q.Ordering?R(M):Z(M),l(7,D=f&&+f>0&&b.length>+f?n("showAll"):""),l(8,w=D?b.slice(0,+f):b),l(13,O=!w.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:b[0].Name},window.location.href),window.postMessage({type:"DataLoading",isDataLoaded:x})}).finally(()=>{l(12,x=!0),window.postMessage({type:"DataLoading",isDataLoaded:x})})},R=o=>{const L=[];return o.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(N=>{const M=o.PaymentMethods.PaymentMethods.find(q=>q.Name===N);if(M){const q=(M==null?void 0:M.Logos.find(X=>X.LogoType==="Desktop"))||{},ve=(M==null?void 0:M.Logos.find(X=>X.LogoType==="Mobile"))||{},ee=H?q:ve;(Q(M.Tags)?S:L).push(K(J({},M),{LogoUrl:ee.LogoUrl?`https:${ee.LogoUrl}`:""}))}}),L},Z=o=>o.PaymentMethods.PaymentMethods.map(L=>K(J({},L),{isMethodPromoted:Q(L.Tags),LogoUrl:L.Logos&&L.Logos.length&&L.Logos[0].LogoUrl?`https:${L.Logos[0].LogoUrl}`:""})),C=o=>{l(6,E=o.Name),window.postMessage({type:"SelectPayMeth",details:o},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:o,bubbles:!0,cancelable:!0,composed:!0}))},Y=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:U},window.location.href)},W=()=>{l(11,H=y==="false")},I=()=>{w==b?fe():ue()},ue=()=>{l(8,w=b),l(7,D=n("showLess"))},fe=()=>{l(8,w=b.slice(0,+f)),E&&!w.find(o=>o.Name===E)&&w.splice(0,0,b.find(o=>o.Name===E)),l(7,D=n("showAll"))},ge=()=>{l(9,T=!0)},Le=o=>{l(9,T=!o.hideMethodsList)},ye=()=>{let o=document.createElement("style");o.innerHTML=p,v.appendChild(o)},_e=()=>{let o=new URL(a),L=document.createElement("style");fetch(o.href).then(N=>N.text()).then(N=>{L.innerHTML=N,setTimeout(()=>{v.appendChild(L)},1),setTimeout(()=>{},500)})},Q=o=>o&&o.split(",").some(L=>L===Ue);e.onMount(()=>(window.addEventListener("message",$,!1),()=>{window.removeEventListener("message",$,!1)}));const $=o=>{switch(o.data.type){case"BackToMethodList":ge();break;case"HideMethodsList":Le(o.data.details);break}},we=o=>C(o),Me=o=>C(o),Ce=()=>I();function be(o){e.binding_callbacks[o?"unshift":"push"](()=>{v=o,l(5,v)})}return s.$$set=o=>{"lang"in o&&l(0,c=o.lang),"local"in o&&l(19,h=o.local),"endpoint"in o&&l(20,g=o.endpoint),"session"in o&&l(21,u=o.session),"customerid"in o&&l(22,_=o.customerid),"assetsurl"in o&&l(1,d=o.assetsurl),"currency"in o&&l(23,m=o.currency),"numberofmethodsshown"in o&&l(24,f=o.numberofmethodsshown),"translationurl"in o&&l(2,r=o.translationurl),"clientstyling"in o&&l(3,p=o.clientstyling),"clientstylingurl"in o&&l(4,a=o.clientstylingurl),"ismobileview"in o&&l(25,y=o.ismobileview)},s.$$.update=()=>{s.$$.dirty[0]&7340032&&g&&u&&_&&j(),s.$$.dirty[0]&7340032&&g&&!u&&_&&A(),s.$$.dirty[0]&1&&c&&z(),s.$$.dirty[0]&40&&p&&v&&ye(),s.$$.dirty[0]&48&&a&&v&&_e(),s.$$.dirty[0]&33554432&&y&&W(),s.$$.dirty[0]&5&&c&&r&&P()},[c,d,r,p,a,v,E,D,w,T,F,H,x,O,n,S,k,C,I,h,g,u,_,m,f,y,we,Me,Ce,be]}class he extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Be,Fe,e.safe_not_equal,{lang:0,local:19,endpoint:20,session:21,customerid:22,assetsurl:1,currency:23,numberofmethodsshown:24,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:25},Te,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[19]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[20]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[22]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[23]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[24]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[25]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(he,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=he;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, l as C, o as x, q as S, z as _, E as b } from "./CashierConfirmModal-untxGhsx.js";
|
|
2
|
-
function v(n) {
|
|
3
|
-
p(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
|
-
}
|
|
5
|
-
function w(n) {
|
|
6
|
-
let t;
|
|
7
|
-
return {
|
|
8
|
-
c() {
|
|
9
|
-
t = x("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', S(t, "class", "CashierSpinner");
|
|
10
|
-
},
|
|
11
|
-
m(s, r) {
|
|
12
|
-
C(s, t, r), n[3](t);
|
|
13
|
-
},
|
|
14
|
-
p: c,
|
|
15
|
-
i: c,
|
|
16
|
-
o: c,
|
|
17
|
-
d(s) {
|
|
18
|
-
s && k(t), n[3](null);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function E(n, t, s) {
|
|
23
|
-
let { clientstyling: r = "" } = t, { clientstylingurl: l = "" } = t, i;
|
|
24
|
-
const d = () => {
|
|
25
|
-
let e = document.createElement("style");
|
|
26
|
-
e.innerHTML = r, i.appendChild(e);
|
|
27
|
-
}, f = () => {
|
|
28
|
-
let e = new URL(l), o = document.createElement("style");
|
|
29
|
-
fetch(e.href).then((a) => a.text()).then((a) => {
|
|
30
|
-
o.innerHTML = a, setTimeout(
|
|
31
|
-
() => {
|
|
32
|
-
i.appendChild(o);
|
|
33
|
-
},
|
|
34
|
-
1
|
|
35
|
-
);
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
function u(e) {
|
|
39
|
-
_[e ? "unshift" : "push"](() => {
|
|
40
|
-
i = e, s(0, i);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return n.$$set = (e) => {
|
|
44
|
-
"clientstyling" in e && s(1, r = e.clientstyling), "clientstylingurl" in e && s(2, l = e.clientstylingurl);
|
|
45
|
-
}, n.$$.update = () => {
|
|
46
|
-
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
47
|
-
3 && r && i && d(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
48
|
-
5 && l && i && f();
|
|
49
|
-
}, [i, r, l, u];
|
|
50
|
-
}
|
|
51
|
-
class L extends y {
|
|
52
|
-
constructor(t) {
|
|
53
|
-
super(), g(this, t, E, w, m, { clientstyling: 1, clientstylingurl: 2 }, v);
|
|
54
|
-
}
|
|
55
|
-
get clientstyling() {
|
|
56
|
-
return this.$$.ctx[1];
|
|
57
|
-
}
|
|
58
|
-
set clientstyling(t) {
|
|
59
|
-
this.$$set({ clientstyling: t }), h();
|
|
60
|
-
}
|
|
61
|
-
get clientstylingurl() {
|
|
62
|
-
return this.$$.ctx[2];
|
|
63
|
-
}
|
|
64
|
-
set clientstylingurl(t) {
|
|
65
|
-
this.$$set({ clientstylingurl: t }), h();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
b(L, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
69
|
-
export {
|
|
70
|
-
L as default
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-DMmJumcl.cjs");function y(i){e.append_styles(i,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function g(i){let t;return{c(){t=e.element("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',e.attr(t,"class","CashierSpinner")},m(s,l){e.insert(s,t,l),i[3](t)},p:e.noop,i:e.noop,o:e.noop,d(s){s&&e.detach(t),i[3](null)}}}function p(i,t,s){let{clientstyling:l=""}=t,{clientstylingurl:a=""}=t,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends e.SvelteComponent{constructor(t){super(),e.init(this,t,p,g,e.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, m as C, p as x, v as S, A as _, E as v } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
|
-
function b(n) {
|
|
3
|
-
p(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
|
-
}
|
|
5
|
-
function w(n) {
|
|
6
|
-
let t;
|
|
7
|
-
return {
|
|
8
|
-
c() {
|
|
9
|
-
t = x("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', S(t, "class", "CashierSpinner");
|
|
10
|
-
},
|
|
11
|
-
m(s, r) {
|
|
12
|
-
C(s, t, r), n[3](t);
|
|
13
|
-
},
|
|
14
|
-
p: c,
|
|
15
|
-
i: c,
|
|
16
|
-
o: c,
|
|
17
|
-
d(s) {
|
|
18
|
-
s && k(t), n[3](null);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function E(n, t, s) {
|
|
23
|
-
let { clientstyling: r = "" } = t, { clientstylingurl: l = "" } = t, i;
|
|
24
|
-
const d = () => {
|
|
25
|
-
let e = document.createElement("style");
|
|
26
|
-
e.innerHTML = r, i.appendChild(e);
|
|
27
|
-
}, f = () => {
|
|
28
|
-
let e = new URL(l), o = document.createElement("style");
|
|
29
|
-
fetch(e.href).then((a) => a.text()).then((a) => {
|
|
30
|
-
o.innerHTML = a, setTimeout(
|
|
31
|
-
() => {
|
|
32
|
-
i.appendChild(o);
|
|
33
|
-
},
|
|
34
|
-
1
|
|
35
|
-
);
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
function u(e) {
|
|
39
|
-
_[e ? "unshift" : "push"](() => {
|
|
40
|
-
i = e, s(0, i);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return n.$$set = (e) => {
|
|
44
|
-
"clientstyling" in e && s(1, r = e.clientstyling), "clientstylingurl" in e && s(2, l = e.clientstylingurl);
|
|
45
|
-
}, n.$$.update = () => {
|
|
46
|
-
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
47
|
-
3 && r && i && d(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
48
|
-
5 && l && i && f();
|
|
49
|
-
}, [i, r, l, u];
|
|
50
|
-
}
|
|
51
|
-
class L extends y {
|
|
52
|
-
constructor(t) {
|
|
53
|
-
super(), g(this, t, E, w, m, { clientstyling: 1, clientstylingurl: 2 }, b);
|
|
54
|
-
}
|
|
55
|
-
get clientstyling() {
|
|
56
|
-
return this.$$.ctx[1];
|
|
57
|
-
}
|
|
58
|
-
set clientstyling(t) {
|
|
59
|
-
this.$$set({ clientstyling: t }), h();
|
|
60
|
-
}
|
|
61
|
-
get clientstylingurl() {
|
|
62
|
-
return this.$$.ctx[2];
|
|
63
|
-
}
|
|
64
|
-
set clientstylingurl(t) {
|
|
65
|
-
this.$$set({ clientstylingurl: t }), h();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
v(L, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
69
|
-
export {
|
|
70
|
-
L as default
|
|
71
|
-
};
|