@everymatrix/cashier-page 1.73.1 → 1.73.2
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/{CashierConfirmModal-BCk4hvRj.js → CashierConfirmModal-Bl65cs4j.js} +505 -470
- package/components/CashierConfirmModal-Dbth1Vwp.cjs +4 -0
- package/components/{CashierConfirmModal-DXlKhIue.js → CashierConfirmModal-DiJy6WCC.js} +359 -324
- package/components/CashierError-CUi7dlhw.cjs +5 -0
- package/components/CashierError-DT8XXsZb.js +3798 -0
- package/components/CashierError-sabBjpnx.js +3798 -0
- package/components/{CashierHeader-DtS_U-De.js → CashierHeader-B_TbzRzY.js} +181 -184
- package/components/CashierHeader-C87PEbuI.cjs +1 -0
- package/components/{CashierHeader-86wrgmgP.js → CashierHeader-CRNLSN-X.js} +182 -185
- package/components/{CashierIframeRedirect-Xzpx4Rjk.js → CashierIframeRedirect-DcI_fdtE.js} +79 -109
- package/components/CashierIframeRedirect-q6Z4Yxd2.cjs +1 -0
- package/components/{CashierIframeRedirect-CmqcfGcT.js → CashierIframeRedirect-zBfOGfH0.js} +79 -109
- package/components/{CashierMethodDetails-B1jSb3IC.js → CashierMethodDetails-BSFTmQGh.js} +11 -12
- package/components/{CashierMethodDetails-D9tO8F-N.cjs → CashierMethodDetails-Bn2T2uqA.cjs} +6 -6
- package/components/{CashierMethodDetails-CZ1Xj4bB.js → CashierMethodDetails-Dw38VRXT.js} +11 -12
- package/components/{CashierMethodsList-BoP67Zj_.js → CashierMethodsList-BoxBSxdg.js} +42 -43
- package/components/CashierMethodsList-BraJmcfY.cjs +1 -0
- package/components/{CashierMethodsList-pOyUlgCs.js → CashierMethodsList-DpB8OQgM.js} +47 -48
- package/components/CashierModal-BUzTqeZq.cjs +1 -0
- package/components/{CashierModal-B4b12-Am.js → CashierModal-C9DRbWKa.js} +24 -25
- package/components/{CashierModal-DCgiaC4V.js → CashierModal-l0r5lSbV.js} +28 -29
- package/components/{CashierNotifications-CWqwdi55.js → CashierNotifications-BRaPHw0O.js} +3 -3
- package/components/{CashierNotifications-BLJS7gpv.cjs → CashierNotifications-BrGm-gyx.cjs} +1 -1
- package/components/{CashierNotifications-BZCaBrRm.js → CashierNotifications-C60PYJS0.js} +9 -9
- package/components/{CashierPage-BZCoKtSr.cjs → CashierPage-9Ld9PtFx.cjs} +1 -1
- package/components/{CashierPage-BVN_y5LM.js → CashierPage-DPeHCblC.js} +12 -12
- package/components/{CashierPage-B14Zambu.js → CashierPage-Kr04tUC9.js} +12 -12
- package/components/{CashierReceiptPage-hbrIFE7Z.js → CashierReceiptPage-BJsytdmQ.js} +47 -47
- package/components/{CashierReceiptPage-BM8IB2en.js → CashierReceiptPage-D8xJxpP4.js} +47 -47
- package/components/CashierReceiptPage-Y3xANFuN.cjs +1 -0
- package/components/CashierSessionExpirationModal-B5KZiMN1.cjs +2 -0
- package/components/{CashierSessionExpirationModal-4QgY4tj0.js → CashierSessionExpirationModal-CLmExJ5_.js} +13 -14
- package/components/{CashierSessionExpirationModal-BZjFbzTF.js → CashierSessionExpirationModal-COQu8IVr.js} +13 -14
- package/components/{CashierSpinner-BdeNFm1c.js → CashierSpinner-CC_b-bLQ.js} +10 -11
- package/components/{CashierSpinner-COjPdCUV.js → CashierSpinner-DGvxbV84.js} +6 -7
- package/components/CashierSpinner-Dek1XIlD.cjs +1 -0
- package/components/{CashierTransactionHistory-DwBe7fCZ.js → CashierTransactionHistory-BtCGDpsh.js} +83 -84
- package/components/{CashierTransactionHistory-DzdL--gs.js → CashierTransactionHistory-_dzkXj9B.js} +69 -70
- package/components/CashierTransactionHistory-yWcSzIDX.cjs +1 -0
- package/components/{CashierVerifications-Ct5BMC4Z.js → CashierVerifications-CFZOQaUC.js} +31 -32
- package/components/CashierVerifications-Deeuh5dM.cjs +1 -0
- package/components/{CashierVerifications-bo5F0ePz.js → CashierVerifications-df_pAaWn.js} +31 -32
- package/components/CashierVideoModal-BVDx9GT8.cjs +1 -0
- package/components/{CashierVideoModal-CzRdJr4V.js → CashierVideoModal-C4pk_kaX.js} +28 -29
- package/components/{CashierVideoModal-CQLJKJAK.js → CashierVideoModal-DfOU6IDE.js} +35 -36
- 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/CashierConfirmModal-DMmJumcl.cjs +0 -4
- package/components/CashierError-BydkW7s_.js +0 -3800
- package/components/CashierError-Dpt_Z7yL.cjs +0 -5
- package/components/CashierError-Dz_HsnJl.js +0 -3800
- package/components/CashierHeader-BXKYku0i.cjs +0 -1
- package/components/CashierIframeRedirect-BARMuRTc.cjs +0 -1
- package/components/CashierMethodsList-F_QBfadW.cjs +0 -1
- package/components/CashierModal-C-yyjQ8m.cjs +0 -1
- package/components/CashierReceiptPage-DY4vYKOg.cjs +0 -1
- package/components/CashierSessionExpirationModal-B-JloK58.cjs +0 -2
- package/components/CashierSpinner-CpkB8Zoj.cjs +0 -1
- package/components/CashierTransactionHistory-BRRK3_Wm.cjs +0 -1
- package/components/CashierVerifications-DEJgktmX.cjs +0 -1
- package/components/CashierVideoModal-8I67tMwv.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-Dbth1Vwp.cjs"),T=require("./CashierError-CUi7dlhw.cjs"),O=require("./CashierMethodDetails-Bn2T2uqA.cjs");function W(r,t){T.addMessages(r,t)}function ye(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const Y={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-BVDx9GT8.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ke(r){i.append_styles(r,"svelte-3ui5us","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;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 K(r,t,o){const a=r.slice();return a[54]=t[o],a[56]=o,a}function _e(r){let t,o,a,s,c=i.ensure_array_like(r[4]),d=[];for(let f=0;f<c.length;f+=1)d[f]=Z(K(r,c,f));let m=r[7]&&J(r);return{c(){t=i.element("div");for(let f=0;f<d.length;f+=1)d[f].c();o=i.space(),m&&m.c(),a=i.space(),s=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(s,"clientstylingurl",r[1]),i.set_custom_element_data(s,"clientstyling",r[0]),i.set_custom_element_data(s,"ismobileview",r[2]),i.set_custom_element_data(s,"videosrc",r[8])},m(f,h){i.insert(f,t,h);for(let l=0;l<d.length;l+=1)d[l]&&d[l].m(t,null);i.insert(f,o,h),m&&m.m(f,h),i.insert(f,a,h),i.insert(f,s,h)},p(f,h){if(h[0]&2096){c=i.ensure_array_like(f[4]);let l;for(l=0;l<c.length;l+=1){const y=K(f,c,l);d[l]?d[l].p(y,h):(d[l]=Z(y),d[l].c(),d[l].m(t,null))}for(;l<d.length;l+=1)d[l].d(1);d.length=c.length}f[7]?m?m.p(f,h):(m=J(f),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(s,"clientstylingurl",f[1]),h[0]&1&&i.set_custom_element_data(s,"clientstyling",f[0]),h[0]&4&&i.set_custom_element_data(s,"ismobileview",f[2]),h[0]&256&&i.set_custom_element_data(s,"videosrc",f[8])},d(f){f&&(i.detach(t),i.detach(o),i.detach(a),i.detach(s)),i.destroy_each(d,f),m&&m.d(f)}}}function be(r){let t;return{c(){t=i.element("cashier-spinner"),i.set_custom_element_data(t,"clientstylingurl",r[1]),i.set_custom_element_data(t,"clientstyling",r[0])},m(o,a){i.insert(o,t,a)},p(o,a){a[0]&2&&i.set_custom_element_data(t,"clientstylingurl",o[1]),a[0]&1&&i.set_custom_element_data(t,"clientstyling",o[0])},d(o){o&&i.detach(t)}}}function G(r){let t,o,a;function s(...c){return r[21](r[56],...c)}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(c,d){i.insert(c,t,d),o||(a=i.listen(t,"click",s),o=!0)},p(c,d){r=c},d(c){c&&i.detach(t),o=!1,a()}}}function Z(r){let t,o,a,s,c=r[54]+"",d,m,f,h,l=r[4].length>1&&r[56]===0&&G(r);function y(...v){return r[22](r[56],...v)}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(),s=i.element("p"),d=i.space(),l&&l.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(s,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,s),s.innerHTML=c,i.append(t,d),l&&l.m(t,null),i.append(t,m),f||(h=i.listen(t,"click",y),f=!0)},p(v,w){r=v,w[0]&16&&c!==(c=r[54]+"")&&(s.innerHTML=c),r[4].length>1&&r[56]===0?l?l.p(r,w):(l=G(r),l.c(),l.m(t,m)):l&&(l.d(1),l=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),l&&l.d(),f=!1,h()}}}function J(r){let t,o,a,s,c=r[10]("verification.video.how-to")+"",d,m,f;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(),s=i.element("div"),d=i.text(c),i.attr(o,"class","IconVideo"),i.attr(s,"class","CashierVerificationVideoLink"),i.toggle_class(s,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,l){i.insert(h,t,l),i.append(t,o),i.append(t,a),i.append(t,s),i.append(s,d),m||(f=i.listen(s,"click",r[23]),m=!0)},p(h,l){l[0]&1024&&c!==(c=h[10]("verification.video.how-to")+"")&&i.set_data(d,c),l[0]&64&&i.toggle_class(s,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,f()}}}function Ve(r){let t;function o(c,d){if(c[9])return be;if(c[4])return _e}let a=o(r),s=a&&a(r);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(c,d){i.insert(c,t,d),s&&s.m(t,null),r[24](t)},p(c,d){a===(a=o(c))&&s?s.p(c,d):(s&&s.d(1),s=a&&a(c),s&&(s.c(),s.m(t,null))),d[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",c[6])},i:i.noop,o:i.noop,d(c){c&&i.detach(t),s&&s.d(),r[24](null)}}}const Pe="verification_explanation_video_widgets.MP4";function De(r,t,o){let a,s;i.component_subscribe(r,T.$format,e=>o(10,a=e)),i.component_subscribe(r,O.xPaymentSessionToken,e=>o(30,s=e)),O.dayjs.extend(O.utc);let{endpoint:c}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{session:l=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,{mbsource:D=""}=t,_,I=new Set,E=new Set,S,C,M,B=!0,R=!0,q=!1,L="",F=!1;var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var x;(function(e){e.Requested="Requested"})(x||(x={}));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 P;(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"})(P||(P={})),i.onMount(()=>()=>{});const Q=[g.InProgress,g.Referred,g.AwaitingForResponse],$=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(u=>{W(u,n[u])})}).catch(n=>{console.log(n)})};Object.keys(Y).forEach(e=>{W(e,Y[e])});const ee=()=>{ye(d)},U=()=>{o(20,C=re());const e=new URL(`${c}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",O.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const u={method:"POST",headers:n,body:JSON.stringify({})};o(9,F=!0),fetch(e,u).then(p=>p.json()).then(p=>{const k=ie(p==null?void 0:p.Verifications);S=oe(k),S.VerificationStatuses.forEach(A=>{A.VerificationUrlType!=="Widget"&&I.add(A.Vendor)}),o(4,M=H())}).finally(()=>o(9,F=!1))},ie=e=>e?e.sort((n,u)=>new Date(u.Created).getTime()-new Date(n.Created).getTime()):[],te=()=>{s&&U()},re=()=>{let e=(l||s).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},oe=e=>{var u;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=se(e);if(n&&n.length){const p=ne(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(u=p.Flags)==null?void 0:u.DeferredUrlKey,VerificationStatuses:j(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:j(e,[g.Failed])}},ne=e=>e.reduce((n,u)=>n?new Date(n)<new Date(u)?u:n:u,0),j=(e,n)=>e.filter(u=>n.includes(u.Status)).map(u=>{var p,k;return{Type:u.Type,Vendor:u.VendorName,VerificationDocuments:u.Documents?[...u.Documents]:[],VerificationUrlType:(p=u.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=u.FlowInfo)==null?void 0:k.Url}}),se=e=>e.filter(n=>Q.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||ae(n)||le(n):!1),ae=e=>{const n=e.Documents&&e.VendorName===V.Manual,u=e.Documents&&e.Documents.some(p=>p.Status===x.Requested);return n&&u},le=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,H=()=>{switch(S.VerificationSummaryStatus){case g.InProgress:const e=[];return I.forEach(n=>{e.push(ce(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},ce=e=>{const n=S.VerificationStatuses.filter(u=>u.Vendor===e);if(e===V.ShuftiPro)return fe(n);{const u=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${u}</a>`};return a("verification.idenfy.in-progress",{values:p})}},fe=e=>{const n=[],u={},p=[P.Biometric,P.Documents,P.ProofOfAddress];e.forEach(b=>{p.includes(b.Type)&&(n.push(b.Type),u[b.Type]=de(b,ue(b.Type)))});let k=n.every(b=>E.has(b)),A=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(A,{values:u})},de=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,ue=e=>a(`verification.shuftipro.link-name.${e}`),z=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const u=e.target.className.split(" ")[1];E.add(u),o(4,M=H())}return}n===0&&o(5,B=!B)},me=()=>{o(6,R=v==="false")},he=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,q=e.ok)})}catch(e){o(7,q=!1)}},N=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},pe=(e,n)=>z(n,e),ge=(e,n)=>z(n,e),ve=()=>N();function we(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(13,c=e.endpoint),"lang"in e&&o(14,d=e.lang),"translationurl"in e&&o(15,m=e.translationurl),"clientstyling"in e&&o(0,f=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(16,l=e.session),"customerid"in e&&o(17,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(18,w=e.playersession),"mbsource"in e&&o(19,D=e.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&16384&&d&&ee(),r.$$.dirty[0]&335872&&c&&l&&w&&U(),r.$$.dirty[0]&335872&&c&&!l&&w&&te(),r.$$.dirty[0]&32768&&m&&$(),r.$$.dirty[0]&9&&f&&_&&i.setClientStyling(),r.$$.dirty[0]&10&&h&&_&&i.setClientStylingURL(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&1048576&&C&&he(),r.$$.dirty[0]&524296&&D&&_&&i.setStreamStyling(_,`${D}.Style`)},[f,h,v,_,M,B,R,q,L,F,a,z,N,c,d,m,l,y,w,D,C,pe,ge,ve,we]}class X extends i.SvelteComponent{constructor(t){super(),i.init(this,t,De,Ve,i.safe_not_equal,{endpoint:13,lang:14,translationurl:15,clientstyling:0,clientstylingurl:1,session:16,customerid:17,ismobileview:2,playersession:18,mbsource:19},ke,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[15]}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[16]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[18]}set playersession(t){this.$$set({playersession:t}),i.flush()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { S as Te, b as Oe, s as Be, f as k, c as Me, n as Q, e as V,
|
|
2
|
-
import { a as
|
|
3
|
-
import { d as ie, u as
|
|
4
|
-
import { s as We, a as Ke, b as Ye } from "./CashierIframeRedirect-Xzpx4Rjk.js";
|
|
1
|
+
import { S as Te, b as Oe, s as Be, f as k, c as Me, n as Q, e as V, M as T, l as P, o as y, q as D, v as $, w as Le, A as qe, D as g, N as ee, O as xe, p as A, m as b, B as j, y as Fe, z as ze, F as Ie, G as Ee, H as Re, I as Ue } from "./CashierConfirmModal-DiJy6WCC.js";
|
|
2
|
+
import { a as He, i as Ne, $ as je, b as We } from "./CashierError-DT8XXsZb.js";
|
|
3
|
+
import { d as ie, u as Ye, x as Ge } from "./CashierMethodDetails-Dw38VRXT.js";
|
|
5
4
|
function te(t, i) {
|
|
6
|
-
|
|
5
|
+
He(t, i);
|
|
7
6
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function Ke(t) {
|
|
8
|
+
Ne({
|
|
10
9
|
fallbackLocale: "en"
|
|
11
|
-
}),
|
|
10
|
+
}), je.set(t);
|
|
12
11
|
}
|
|
13
12
|
const re = {
|
|
14
13
|
en: {
|
|
@@ -78,18 +77,18 @@ if (typeof window < "u") {
|
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
79
|
};
|
|
81
|
-
customElements.define = t(customElements.define), import("./CashierVideoModal-
|
|
80
|
+
customElements.define = t(customElements.define), import("./CashierVideoModal-C4pk_kaX.js").then(({ default: i }) => {
|
|
82
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
83
82
|
});
|
|
84
83
|
}
|
|
85
|
-
function
|
|
84
|
+
function Ze(t) {
|
|
86
85
|
Me(t, "svelte-3ui5us", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;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)}");
|
|
87
86
|
}
|
|
88
87
|
function oe(t, i, r) {
|
|
89
88
|
const n = t.slice();
|
|
90
89
|
return n[54] = i[r], n[56] = r, n;
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function Je(t) {
|
|
93
92
|
let i, r, n, s, l = ee(
|
|
94
93
|
/*displayMessages*/
|
|
95
94
|
t[4]
|
|
@@ -346,7 +345,7 @@ function Qe(t) {
|
|
|
346
345
|
/*displayMessages*/
|
|
347
346
|
l[4]
|
|
348
347
|
)
|
|
349
|
-
return
|
|
348
|
+
return Je;
|
|
350
349
|
}
|
|
351
350
|
let n = r(t), s = n && n(t);
|
|
352
351
|
return {
|
|
@@ -380,8 +379,8 @@ function Qe(t) {
|
|
|
380
379
|
const $e = "verification_explanation_video_widgets.MP4";
|
|
381
380
|
function ei(t, i, r) {
|
|
382
381
|
let n, s;
|
|
383
|
-
$(t,
|
|
384
|
-
let { endpoint: l } = i, { lang: f = "en" } = i, { translationurl: u = "" } = i, { clientstyling: c = "" } = i, { clientstylingurl: h = "" } = i, { session: a = "" } = i, { customerid: _ = "" } = i, { ismobileview: p = "" } = i, { playersession: v = "" } = i, { mbsource: M = "" } = i, S, W = /* @__PURE__ */ new Set(),
|
|
382
|
+
$(t, We, (e) => r(10, n = e)), $(t, Ge, (e) => r(30, s = e)), ie.extend(Ye);
|
|
383
|
+
let { endpoint: l } = i, { lang: f = "en" } = i, { translationurl: u = "" } = i, { clientstyling: c = "" } = i, { clientstylingurl: h = "" } = i, { session: a = "" } = i, { customerid: _ = "" } = i, { ismobileview: p = "" } = i, { playersession: v = "" } = i, { mbsource: M = "" } = i, S, W = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Set(), L, q, F, z = !0, G = !0, I = !1, E = "", R = !1;
|
|
385
384
|
var O;
|
|
386
385
|
(function(e) {
|
|
387
386
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
@@ -418,8 +417,8 @@ function ei(t, i, r) {
|
|
|
418
417
|
te(e, re[e]);
|
|
419
418
|
});
|
|
420
419
|
const fe = () => {
|
|
421
|
-
|
|
422
|
-
},
|
|
420
|
+
Ke(f);
|
|
421
|
+
}, K = () => {
|
|
423
422
|
r(20, q = he());
|
|
424
423
|
const e = new URL(`${l}/v1/player/${_}/verification/GetKYCCustomerStatus?language=${f}`), o = new Headers();
|
|
425
424
|
o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${v}`), o.append("X-Client-Request-Timestamp", ie.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
@@ -432,10 +431,10 @@ function ei(t, i, r) {
|
|
|
432
431
|
const N = de(w?.Verifications);
|
|
433
432
|
L = me(N), L.VerificationStatuses.forEach((x) => {
|
|
434
433
|
x.VerificationUrlType !== "Widget" && W.add(x.Vendor);
|
|
435
|
-
}), r(4, F =
|
|
434
|
+
}), r(4, F = J());
|
|
436
435
|
}).finally(() => r(9, R = !1));
|
|
437
436
|
}, de = (e) => e ? e.sort((o, d) => new Date(d.Created).getTime() - new Date(o.Created).getTime()) : [], ue = () => {
|
|
438
|
-
s &&
|
|
437
|
+
s && K();
|
|
439
438
|
}, he = () => {
|
|
440
439
|
let e = (a || s).split(".")[1];
|
|
441
440
|
if (e) {
|
|
@@ -455,17 +454,17 @@ function ei(t, i, r) {
|
|
|
455
454
|
return {
|
|
456
455
|
VerificationSummaryStatus: d.Status,
|
|
457
456
|
VerificationUrl: d.Flags?.DeferredUrlKey,
|
|
458
|
-
VerificationStatuses:
|
|
457
|
+
VerificationStatuses: Z(o, d.Status)
|
|
459
458
|
};
|
|
460
459
|
} else
|
|
461
460
|
return {
|
|
462
461
|
VerificationSummaryStatus: e.some((w) => w.Status === m.Failed) ? m.Failed : m.Verified,
|
|
463
|
-
VerificationStatuses:
|
|
462
|
+
VerificationStatuses: Z(e, [m.Failed])
|
|
464
463
|
};
|
|
465
464
|
}, pe = (e) => e.reduce(
|
|
466
465
|
(o, d) => o ? new Date(o) < new Date(d) ? d : o : d,
|
|
467
466
|
0
|
|
468
|
-
),
|
|
467
|
+
), Z = (e, o) => e.filter((d) => o.includes(d.Status)).map((d) => ({
|
|
469
468
|
Type: d.Type,
|
|
470
469
|
Vendor: d.VendorName,
|
|
471
470
|
VerificationDocuments: d.Documents ? [...d.Documents] : [],
|
|
@@ -474,7 +473,7 @@ function ei(t, i, r) {
|
|
|
474
473
|
})), ge = (e) => e.filter((o) => le.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || ve(o) || we(o) : !1), ve = (e) => {
|
|
475
474
|
const o = e.Documents && e.VendorName === O.Manual, d = e.Documents && e.Documents.some((w) => w.Status === U.Requested);
|
|
476
475
|
return o && d;
|
|
477
|
-
}, we = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred,
|
|
476
|
+
}, we = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred, J = () => {
|
|
478
477
|
switch (L.VerificationSummaryStatus) {
|
|
479
478
|
case m.InProgress:
|
|
480
479
|
const e = [];
|
|
@@ -505,19 +504,19 @@ function ei(t, i, r) {
|
|
|
505
504
|
e.forEach((C) => {
|
|
506
505
|
w.includes(C.Type) && (o.push(C.Type), d[C.Type] = be(C, Ve(C.Type)));
|
|
507
506
|
});
|
|
508
|
-
let N = o.every((C) =>
|
|
507
|
+
let N = o.every((C) => Y.has(C)), x = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
|
|
509
508
|
return N ? n("verification.shuftipro.validations-started") : n(x, { values: d });
|
|
510
509
|
}, be = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, Ve = (e) => n(`verification.shuftipro.link-name.${e}`), H = (e, o) => {
|
|
511
510
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
512
511
|
if (e.target.closest(".verificationLink")) {
|
|
513
512
|
const d = e.target.className.split(" ")[1];
|
|
514
|
-
|
|
513
|
+
Y.add(d), r(4, F = J());
|
|
515
514
|
}
|
|
516
515
|
return;
|
|
517
516
|
}
|
|
518
517
|
o === 0 && r(5, z = !z);
|
|
519
518
|
}, Pe = () => {
|
|
520
|
-
r(6,
|
|
519
|
+
r(6, G = p === "false");
|
|
521
520
|
}, De = () => {
|
|
522
521
|
r(8, E = q + "/" + f + "/" + $e);
|
|
523
522
|
try {
|
|
@@ -540,14 +539,14 @@ function ei(t, i, r) {
|
|
|
540
539
|
}, t.$$.update = () => {
|
|
541
540
|
t.$$.dirty[0] & /*lang*/
|
|
542
541
|
16384 && f && fe(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
543
|
-
335872 && l && a && v &&
|
|
542
|
+
335872 && l && a && v && K(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
544
543
|
335872 && l && !a && v && ue(), t.$$.dirty[0] & /*translationurl*/
|
|
545
544
|
32768 && u && ce(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
546
|
-
9 && c && S &&
|
|
547
|
-
10 && h && S &&
|
|
545
|
+
9 && c && S && Ie(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
546
|
+
10 && h && S && Ee(), t.$$.dirty[0] & /*ismobileview*/
|
|
548
547
|
4 && p && Pe(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
549
548
|
1048576 && q && De(), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
550
|
-
524296 && M && S &&
|
|
549
|
+
524296 && M && S && Re(S, `${M}.Style`);
|
|
551
550
|
}, [
|
|
552
551
|
c,
|
|
553
552
|
h,
|
|
@@ -555,7 +554,7 @@ function ei(t, i, r) {
|
|
|
555
554
|
S,
|
|
556
555
|
F,
|
|
557
556
|
z,
|
|
558
|
-
|
|
557
|
+
G,
|
|
559
558
|
I,
|
|
560
559
|
E,
|
|
561
560
|
R,
|
|
@@ -596,7 +595,7 @@ class ii extends Te {
|
|
|
596
595
|
playersession: 18,
|
|
597
596
|
mbsource: 19
|
|
598
597
|
},
|
|
599
|
-
|
|
598
|
+
Ze,
|
|
600
599
|
[-1, -1]
|
|
601
600
|
);
|
|
602
601
|
}
|
|
@@ -661,7 +660,7 @@ class ii extends Te {
|
|
|
661
660
|
this.$$set({ mbsource: i }), k();
|
|
662
661
|
}
|
|
663
662
|
}
|
|
664
|
-
|
|
663
|
+
Ue(ii, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {}, mbsource: {} }, [], [], !0);
|
|
665
664
|
export {
|
|
666
665
|
ii as default
|
|
667
666
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-Dbth1Vwp.cjs"),m=require("./CashierMethodDetails-Bn2T2uqA.cjs");function M(l){e.append_styles(l,"svelte-1d17c9c",".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}")}function C(l){let t,i,s,n,o,f,g,r=!l[2]&&w(l),a=l[2]&&v(l);return{c(){t=e.element("div"),r&&r.c(),i=e.space(),s=e.element("div"),a&&a.c(),n=e.space(),o=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,g=l[0])||e.attr(f,"src",g),o.autoplay=!0,o.controls=!0,e.attr(o,"controlslist","nodownload"),e.attr(o,"disablepictureinpicture",""),e.attr(s,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.toggle_class(t,"CashierVideoWrapperDesktop",l[2])},m(c,d){e.insert(c,t,d),r&&r.m(t,null),e.append(t,i),e.append(t,s),a&&a.m(s,null),e.append(s,n),e.append(s,o),e.append(o,f),l[11](t)},p(c,d){c[2]?r&&(r.d(1),r=null):r?r.p(c,d):(r=w(c),r.c(),r.m(t,i)),c[2]?a?a.p(c,d):(a=v(c),a.c(),a.m(s,n)):a&&(a.d(1),a=null),d&1&&!e.src_url_equal(f.src,g=c[0])&&e.attr(f,"src",g),d&4&&e.toggle_class(t,"CashierVideoWrapperDesktop",c[2])},d(c){c&&e.detach(t),r&&r.d(),a&&a.d(),l[11](null)}}}function w(l){let t,i,s,n,o;return{c(){t=e.element("div"),i=e.svg_element("svg"),s=e.svg_element("path"),e.attr(s,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(s,"fill","#111111"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","13"),e.attr(i,"height","13"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(t,"class","CashierVideoHeader")},m(f,g){e.insert(f,t,g),e.append(t,i),e.append(i,s),n||(o=e.listen(i,"click",l[9]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,o()}}}function v(l){let t,i,s,n;return{c(){t=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(i,"fill","#111111"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"width","13"),e.attr(t,"height","13"),e.attr(t,"viewBox","0 0 13 13"),e.attr(t,"fill","none")},m(o,f){e.insert(o,t,f),e.append(t,i),s||(n=e.listen(t,"click",l[10]),s=!0)},p:e.noop,d(o){o&&e.detach(t),s=!1,n()}}}function V(l){let t,i=l[3]&&C(l);return{c(){i&&i.c(),t=e.empty()},m(s,n){i&&i.m(s,n),e.insert(s,t,n)},p(s,[n]){s[3]?i?i.p(s,n):(i=C(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(s){s&&e.detach(t),i&&i.d(s)}}}function S(l,t,i){let{clientstyling:s=""}=t,{clientstylingurl:n=""}=t,{ismobileview:o}=t,{videosrc:f}=t,{mbsource:g=""}=t,r=window.navigator.userAgent,a=!0,c=!1,d;const h=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},p=u=>{u.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),u.data.type=="HideCashierVideoModal"&&h()},b=()=>{i(2,a=!m.isMobile(r))};e.onMount(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)}));const y=()=>h(),L=()=>h();function k(u){e.binding_callbacks[u?"unshift":"push"](()=>{d=u,i(1,d)})}return l.$$set=u=>{"clientstyling"in u&&i(5,s=u.clientstyling),"clientstylingurl"in u&&i(6,n=u.clientstylingurl),"ismobileview"in u&&i(7,o=u.ismobileview),"videosrc"in u&&i(0,f=u.videosrc),"mbsource"in u&&i(8,g=u.mbsource)},l.$$.update=()=>{l.$$.dirty&34&&s&&d&&e.setClientStyling(d,s),l.$$.dirty&66&&n&&d&&e.setClientStylingURL(d,n),l.$$.dirty&258&&g&&d&&e.setStreamStyling(d,`${g}.Style`)},m.isMobile(r)&&b(),[f,d,a,c,h,s,n,o,g,y,L,k]}class _ extends e.SvelteComponent{constructor(t){super(),e.init(this,t,S,V,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0,mbsource:8},M)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[7]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}get videosrc(){return this.$$.ctx[0]}set videosrc(t){this.$$set({videosrc:t}),e.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(_,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{},mbsource:{}},[],[],!0);exports.default=_;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Z(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
1
|
+
import { S as B, b as E, s as Z, f as m, c as j, n as p, e as b, l as _, x as F, w as G, C as L, q as l, M as k, m as h, o as C, p as V, A as I, B as z, Q as v, F as N, G as Q, H as R, I as U } from "./CashierConfirmModal-DiJy6WCC.js";
|
|
2
|
+
import { i as M } from "./CashierMethodDetails-Dw38VRXT.js";
|
|
3
|
+
function J(s) {
|
|
4
|
+
j(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
6
5
|
}
|
|
7
6
|
function S(s) {
|
|
8
7
|
let e, i, t, o, n, u, g, r = !/*desktopView*/
|
|
9
8
|
s[2] && x(s), a = (
|
|
10
9
|
/*desktopView*/
|
|
11
|
-
s[2] &&
|
|
10
|
+
s[2] && H(s)
|
|
12
11
|
);
|
|
13
12
|
return {
|
|
14
13
|
c() {
|
|
@@ -26,7 +25,7 @@ function S(s) {
|
|
|
26
25
|
p(c, d) {
|
|
27
26
|
/*desktopView*/
|
|
28
27
|
c[2] ? r && (r.d(1), r = null) : r ? r.p(c, d) : (r = x(c), r.c(), r.m(e, i)), /*desktopView*/
|
|
29
|
-
c[2] ? a ? a.p(c, d) : (a =
|
|
28
|
+
c[2] ? a ? a.p(c, d) : (a = H(c), a.c(), a.m(t, o)) : a && (a.d(1), a = null), d & /*videosrc*/
|
|
30
29
|
1 && !L(u.src, g = /*videosrc*/
|
|
31
30
|
c[0]) && l(u, "src", g), d & /*desktopView*/
|
|
32
31
|
4 && k(
|
|
@@ -48,7 +47,7 @@ function x(s) {
|
|
|
48
47
|
e = C("div"), i = v("svg"), t = v("path"), l(t, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), l(t, "fill", "#111111"), l(i, "xmlns", "http://www.w3.org/2000/svg"), l(i, "width", "13"), l(i, "height", "13"), l(i, "viewBox", "0 0 13 13"), l(i, "fill", "none"), l(e, "class", "CashierVideoHeader");
|
|
49
48
|
},
|
|
50
49
|
m(u, g) {
|
|
51
|
-
_(u, e, g), h(e, i), h(i, t), o || (n =
|
|
50
|
+
_(u, e, g), h(e, i), h(i, t), o || (n = z(
|
|
52
51
|
i,
|
|
53
52
|
"click",
|
|
54
53
|
/*click_handler*/
|
|
@@ -61,14 +60,14 @@ function x(s) {
|
|
|
61
60
|
}
|
|
62
61
|
};
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function H(s) {
|
|
65
64
|
let e, i, t, o;
|
|
66
65
|
return {
|
|
67
66
|
c() {
|
|
68
67
|
e = v("svg"), i = v("path"), l(i, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), l(i, "fill", "#111111"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "fill", "none");
|
|
69
68
|
},
|
|
70
69
|
m(n, u) {
|
|
71
|
-
_(n, e, u), h(e, i), t || (o =
|
|
70
|
+
_(n, e, u), h(e, i), t || (o = z(
|
|
72
71
|
e,
|
|
73
72
|
"click",
|
|
74
73
|
/*click_handler_1*/
|
|
@@ -81,14 +80,14 @@ function z(s) {
|
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
|
-
function
|
|
83
|
+
function K(s) {
|
|
85
84
|
let e, i = (
|
|
86
85
|
/*show*/
|
|
87
86
|
s[3] && S(s)
|
|
88
87
|
);
|
|
89
88
|
return {
|
|
90
89
|
c() {
|
|
91
|
-
i && i.c(), e =
|
|
90
|
+
i && i.c(), e = F();
|
|
92
91
|
},
|
|
93
92
|
m(t, o) {
|
|
94
93
|
i && i.m(t, o), _(t, e, o);
|
|
@@ -104,7 +103,7 @@ function O(s) {
|
|
|
104
103
|
}
|
|
105
104
|
};
|
|
106
105
|
}
|
|
107
|
-
function
|
|
106
|
+
function O(s, e, i) {
|
|
108
107
|
let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: n } = e, { videosrc: u } = e, { mbsource: g = "" } = e, r = window.navigator.userAgent, a = !0, c = !1, d;
|
|
109
108
|
const w = () => {
|
|
110
109
|
i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
@@ -113,12 +112,12 @@ function P(s, e, i) {
|
|
|
113
112
|
}, D = () => {
|
|
114
113
|
i(2, a = !M(r));
|
|
115
114
|
};
|
|
116
|
-
|
|
115
|
+
G(() => (window.addEventListener("message", y, !1), () => {
|
|
117
116
|
window.removeEventListener("message", y);
|
|
118
117
|
}));
|
|
119
|
-
const
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const W = () => w(), q = () => w();
|
|
119
|
+
function A(f) {
|
|
120
|
+
I[f ? "unshift" : "push"](() => {
|
|
122
121
|
d = f, i(1, d);
|
|
123
122
|
});
|
|
124
123
|
}
|
|
@@ -126,9 +125,9 @@ function P(s, e, i) {
|
|
|
126
125
|
"clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6, o = f.clientstylingurl), "ismobileview" in f && i(7, n = f.ismobileview), "videosrc" in f && i(0, u = f.videosrc), "mbsource" in f && i(8, g = f.mbsource);
|
|
127
126
|
}, s.$$.update = () => {
|
|
128
127
|
s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
129
|
-
34 && t && d &&
|
|
130
|
-
66 && o && d &&
|
|
131
|
-
258 && g && d &&
|
|
128
|
+
34 && t && d && N(d, t), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
129
|
+
66 && o && d && Q(d, o), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
130
|
+
258 && g && d && R(d, `${g}.Style`);
|
|
132
131
|
}, M(r) && D(), [
|
|
133
132
|
u,
|
|
134
133
|
d,
|
|
@@ -139,19 +138,19 @@ function P(s, e, i) {
|
|
|
139
138
|
o,
|
|
140
139
|
n,
|
|
141
140
|
g,
|
|
142
|
-
E,
|
|
143
141
|
W,
|
|
144
|
-
q
|
|
142
|
+
q,
|
|
143
|
+
A
|
|
145
144
|
];
|
|
146
145
|
}
|
|
147
|
-
class
|
|
146
|
+
class P extends B {
|
|
148
147
|
constructor(e) {
|
|
149
|
-
super(),
|
|
148
|
+
super(), E(
|
|
150
149
|
this,
|
|
151
150
|
e,
|
|
152
|
-
P,
|
|
153
151
|
O,
|
|
154
|
-
|
|
152
|
+
K,
|
|
153
|
+
Z,
|
|
155
154
|
{
|
|
156
155
|
clientstyling: 5,
|
|
157
156
|
clientstylingurl: 6,
|
|
@@ -159,7 +158,7 @@ class Q extends A {
|
|
|
159
158
|
videosrc: 0,
|
|
160
159
|
mbsource: 8
|
|
161
160
|
},
|
|
162
|
-
|
|
161
|
+
J
|
|
163
162
|
);
|
|
164
163
|
}
|
|
165
164
|
get clientstyling() {
|
|
@@ -193,7 +192,7 @@ class Q extends A {
|
|
|
193
192
|
this.$$set({ mbsource: e }), m();
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
|
-
|
|
195
|
+
U(P, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
197
196
|
export {
|
|
198
|
-
|
|
197
|
+
P as default
|
|
199
198
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Z(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
1
|
+
import { S as E, b as A, s as Z, f as m, c as j, n as p, e as b, m as _, y as F, x as G, D as L, v as l, M as k, o as h, p as C, q as V, B as I, C as z, Q as v, F as N, G as Q, H as R, I as U } from "./CashierConfirmModal-Bl65cs4j.js";
|
|
2
|
+
import { i as M } from "./CashierMethodDetails-BSFTmQGh.js";
|
|
3
|
+
function J(s) {
|
|
4
|
+
j(s, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
6
5
|
}
|
|
7
6
|
function S(s) {
|
|
8
7
|
let e, i, t, o, n, u, g, r = !/*desktopView*/
|
|
9
8
|
s[2] && x(s), a = (
|
|
10
9
|
/*desktopView*/
|
|
11
|
-
s[2] &&
|
|
10
|
+
s[2] && H(s)
|
|
12
11
|
);
|
|
13
12
|
return {
|
|
14
13
|
c() {
|
|
@@ -26,7 +25,7 @@ function S(s) {
|
|
|
26
25
|
p(c, d) {
|
|
27
26
|
/*desktopView*/
|
|
28
27
|
c[2] ? r && (r.d(1), r = null) : r ? r.p(c, d) : (r = x(c), r.c(), r.m(e, i)), /*desktopView*/
|
|
29
|
-
c[2] ? a ? a.p(c, d) : (a =
|
|
28
|
+
c[2] ? a ? a.p(c, d) : (a = H(c), a.c(), a.m(t, o)) : a && (a.d(1), a = null), d & /*videosrc*/
|
|
30
29
|
1 && !L(u.src, g = /*videosrc*/
|
|
31
30
|
c[0]) && l(u, "src", g), d & /*desktopView*/
|
|
32
31
|
4 && k(
|
|
@@ -48,47 +47,47 @@ function x(s) {
|
|
|
48
47
|
e = C("div"), i = v("svg"), t = v("path"), l(t, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), l(t, "fill", "#111111"), l(i, "xmlns", "http://www.w3.org/2000/svg"), l(i, "width", "13"), l(i, "height", "13"), l(i, "viewBox", "0 0 13 13"), l(i, "fill", "none"), l(e, "class", "CashierVideoHeader");
|
|
49
48
|
},
|
|
50
49
|
m(u, g) {
|
|
51
|
-
_(u, e, g), h(e, i), h(i, t), o || (n =
|
|
50
|
+
_(u, e, g), h(e, i), h(i, t), o || (n = z(
|
|
52
51
|
i,
|
|
53
52
|
"click",
|
|
54
53
|
/*click_handler*/
|
|
55
54
|
s[9]
|
|
56
55
|
), o = !0);
|
|
57
56
|
},
|
|
58
|
-
p
|
|
57
|
+
p,
|
|
59
58
|
d(u) {
|
|
60
59
|
u && b(e), o = !1, n();
|
|
61
60
|
}
|
|
62
61
|
};
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function H(s) {
|
|
65
64
|
let e, i, t, o;
|
|
66
65
|
return {
|
|
67
66
|
c() {
|
|
68
67
|
e = v("svg"), i = v("path"), l(i, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), l(i, "fill", "#111111"), l(e, "xmlns", "http://www.w3.org/2000/svg"), l(e, "width", "13"), l(e, "height", "13"), l(e, "viewBox", "0 0 13 13"), l(e, "fill", "none");
|
|
69
68
|
},
|
|
70
69
|
m(n, u) {
|
|
71
|
-
_(n, e, u), h(e, i), t || (o =
|
|
70
|
+
_(n, e, u), h(e, i), t || (o = z(
|
|
72
71
|
e,
|
|
73
72
|
"click",
|
|
74
73
|
/*click_handler_1*/
|
|
75
74
|
s[10]
|
|
76
75
|
), t = !0);
|
|
77
76
|
},
|
|
78
|
-
p
|
|
77
|
+
p,
|
|
79
78
|
d(n) {
|
|
80
79
|
n && b(e), t = !1, o();
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
|
-
function
|
|
83
|
+
function K(s) {
|
|
85
84
|
let e, i = (
|
|
86
85
|
/*show*/
|
|
87
86
|
s[3] && S(s)
|
|
88
87
|
);
|
|
89
88
|
return {
|
|
90
89
|
c() {
|
|
91
|
-
i && i.c(), e =
|
|
90
|
+
i && i.c(), e = F();
|
|
92
91
|
},
|
|
93
92
|
m(t, o) {
|
|
94
93
|
i && i.m(t, o), _(t, e, o);
|
|
@@ -97,28 +96,28 @@ function O(s) {
|
|
|
97
96
|
/*show*/
|
|
98
97
|
t[3] ? i ? i.p(t, o) : (i = S(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
99
98
|
},
|
|
100
|
-
i:
|
|
101
|
-
o:
|
|
99
|
+
i: p,
|
|
100
|
+
o: p,
|
|
102
101
|
d(t) {
|
|
103
102
|
t && b(e), i && i.d(t);
|
|
104
103
|
}
|
|
105
104
|
};
|
|
106
105
|
}
|
|
107
|
-
function
|
|
106
|
+
function O(s, e, i) {
|
|
108
107
|
let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: n } = e, { videosrc: u } = e, { mbsource: g = "" } = e, r = window.navigator.userAgent, a = !0, c = !1, d;
|
|
109
|
-
const
|
|
108
|
+
const w = () => {
|
|
110
109
|
i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
111
110
|
}, y = (f) => {
|
|
112
|
-
f.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), f.data.type == "HideCashierVideoModal" &&
|
|
111
|
+
f.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), f.data.type == "HideCashierVideoModal" && w();
|
|
113
112
|
}, D = () => {
|
|
114
113
|
i(2, a = !M(r));
|
|
115
114
|
};
|
|
116
|
-
|
|
115
|
+
G(() => (window.addEventListener("message", y, !1), () => {
|
|
117
116
|
window.removeEventListener("message", y);
|
|
118
117
|
}));
|
|
119
|
-
const
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const W = () => w(), q = () => w();
|
|
119
|
+
function B(f) {
|
|
120
|
+
I[f ? "unshift" : "push"](() => {
|
|
122
121
|
d = f, i(1, d);
|
|
123
122
|
});
|
|
124
123
|
}
|
|
@@ -126,32 +125,32 @@ function P(s, e, i) {
|
|
|
126
125
|
"clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6, o = f.clientstylingurl), "ismobileview" in f && i(7, n = f.ismobileview), "videosrc" in f && i(0, u = f.videosrc), "mbsource" in f && i(8, g = f.mbsource);
|
|
127
126
|
}, s.$$.update = () => {
|
|
128
127
|
s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
129
|
-
34 && t && d &&
|
|
130
|
-
66 && o && d &&
|
|
131
|
-
258 && g && d &&
|
|
128
|
+
34 && t && d && N(d, t), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
129
|
+
66 && o && d && Q(d, o), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
130
|
+
258 && g && d && R(d, `${g}.Style`);
|
|
132
131
|
}, M(r) && D(), [
|
|
133
132
|
u,
|
|
134
133
|
d,
|
|
135
134
|
a,
|
|
136
135
|
c,
|
|
137
|
-
|
|
136
|
+
w,
|
|
138
137
|
t,
|
|
139
138
|
o,
|
|
140
139
|
n,
|
|
141
140
|
g,
|
|
142
|
-
E,
|
|
143
141
|
W,
|
|
144
|
-
q
|
|
142
|
+
q,
|
|
143
|
+
B
|
|
145
144
|
];
|
|
146
145
|
}
|
|
147
|
-
class
|
|
146
|
+
class P extends E {
|
|
148
147
|
constructor(e) {
|
|
149
|
-
super(),
|
|
148
|
+
super(), A(
|
|
150
149
|
this,
|
|
151
150
|
e,
|
|
152
|
-
P,
|
|
153
151
|
O,
|
|
154
|
-
|
|
152
|
+
K,
|
|
153
|
+
Z,
|
|
155
154
|
{
|
|
156
155
|
clientstyling: 5,
|
|
157
156
|
clientstylingurl: 6,
|
|
@@ -159,7 +158,7 @@ class Q extends A {
|
|
|
159
158
|
videosrc: 0,
|
|
160
159
|
mbsource: 8
|
|
161
160
|
},
|
|
162
|
-
|
|
161
|
+
J
|
|
163
162
|
);
|
|
164
163
|
}
|
|
165
164
|
get clientstyling() {
|
|
@@ -193,7 +192,7 @@ class Q extends A {
|
|
|
193
192
|
this.$$set({ mbsource: e }), m();
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
|
-
|
|
195
|
+
U(P, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
197
196
|
export {
|
|
198
|
-
|
|
197
|
+
P as default
|
|
199
198
|
};
|
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-9Ld9PtFx.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-Kr04tUC9.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|