@everymatrix/cashier-page 1.74.1 → 1.74.3
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-1Nze3uRQ.cjs +4 -0
- package/components/{CashierConfirmModal-Bl65cs4j.js → CashierConfirmModal-CAadcioc.js} +159 -149
- package/components/{CashierConfirmModal-DiJy6WCC.js → CashierConfirmModal-DDAKZDUC.js} +304 -294
- package/components/CashierError-CK3QkcBi.cjs +18 -0
- package/components/{CashierError-DT8XXsZb.js → CashierError-DKXwWPdS.js} +988 -954
- package/components/{CashierError-sabBjpnx.js → CashierError-sD7IMbO3.js} +989 -955
- package/components/{CashierHeader-B_TbzRzY.js → CashierHeader-Csl1fr7B.js} +121 -121
- package/components/{CashierHeader-CRNLSN-X.js → CashierHeader-DgkvmyGy.js} +124 -124
- package/components/CashierHeader-DuCdkwLD.cjs +1 -0
- package/components/{CashierIframeRedirect-DcI_fdtE.js → CashierIframeRedirect-BVbylufQ.js} +34 -34
- package/components/{CashierIframeRedirect-zBfOGfH0.js → CashierIframeRedirect-BmpK5ow8.js} +34 -34
- package/components/{CashierIframeRedirect-q6Z4Yxd2.cjs → CashierIframeRedirect-CfNgplrC.cjs} +1 -1
- package/components/CashierMethodDetails-Cv7OCjGx.cjs +86 -0
- package/components/{CashierMethodDetails-CzQGZLT9.js → CashierMethodDetails-DiAqx44U.js} +2676 -2690
- package/components/{CashierMethodDetails-SkPBUxsi.js → CashierMethodDetails-P17OdcdK.js} +2736 -2747
- package/components/{CashierMethodsList-BwQxzNhr.js → CashierMethodsList-BCVnAycL.js} +408 -405
- package/components/{CashierMethodsList-CNZRTEmt.js → CashierMethodsList-CKthlCGX.js} +417 -414
- package/components/CashierMethodsList-Ckph7ZrW.cjs +1 -0
- package/components/{CashierModal-BUzTqeZq.cjs → CashierModal-BeyYHPh_.cjs} +1 -1
- package/components/{CashierModal-l0r5lSbV.js → CashierModal-BzLUXC5b.js} +29 -29
- package/components/{CashierModal-C9DRbWKa.js → CashierModal-DgJVwKgD.js} +31 -31
- package/components/{CashierNotifications-BRaPHw0O.js → CashierNotifications-Bg4FfLXd.js} +18 -18
- package/components/{CashierNotifications-C60PYJS0.js → CashierNotifications-CnNs8Q-I.js} +18 -18
- package/components/{CashierNotifications-BrGm-gyx.cjs → CashierNotifications-DQLEBAzG.cjs} +1 -1
- package/components/{CashierPage-DcNLQxqw.js → CashierPage-CBJ9IN-g.js} +743 -608
- package/components/{CashierPage-El2u8C5N.js → CashierPage-CPeiabkN.js} +743 -608
- package/components/CashierPage-Cfx71rM-.cjs +1 -0
- package/components/{CashierReceiptPage-D-G8rB5N.js → CashierReceiptPage-B0PozTkv.js} +445 -424
- package/components/CashierReceiptPage-B6UjN5Q1.cjs +1 -0
- package/components/{CashierReceiptPage-DfMEJsZx.js → CashierReceiptPage-DiS2KHAz.js} +471 -446
- package/components/CashierSessionExpirationModal-BAJRL4gv.cjs +2 -0
- package/components/{CashierSessionExpirationModal-BuUgCatI.js → CashierSessionExpirationModal-Buy3vdjO.js} +229 -220
- package/components/{CashierSessionExpirationModal-CwWstvB8.js → CashierSessionExpirationModal-DT3oBfp2.js} +230 -221
- package/components/{CashierSpinner-DGvxbV84.js → CashierSpinner-BPDTwIid.js} +15 -15
- package/components/{CashierSpinner-Dek1XIlD.cjs → CashierSpinner-C4GQ6kb8.cjs} +1 -1
- package/components/{CashierSpinner-CC_b-bLQ.js → CashierSpinner-l6gUFRED.js} +18 -18
- package/components/CashierTransactionHistory-C86tMPpk.js +1303 -0
- package/components/CashierTransactionHistory-CKKvzN0W.cjs +1 -0
- package/components/CashierTransactionHistory-xBP8Taal.js +1303 -0
- package/components/{CashierVerifications-xsgXX--M.js → CashierVerifications-C7bW-1bL.js} +37 -37
- package/components/{CashierVerifications-3Axu0Hzv.js → CashierVerifications-JJPCakqk.js} +36 -36
- package/components/{CashierVerifications-C_StTRQe.cjs → CashierVerifications-hXDF0Y0-.cjs} +1 -1
- package/components/{CashierVideoModal-CnhHqo1M.cjs → CashierVideoModal-B7fVKDny.cjs} +1 -1
- package/components/{CashierVideoModal-CLzErDsi.js → CashierVideoModal-BJTlGVpX.js} +44 -44
- package/components/{CashierVideoModal-DJJAzqj3.js → CashierVideoModal-C02JNbWy.js} +46 -46
- package/components/TxnStatusIcon-Bg9sJj0e.js +142 -0
- package/components/TxnStatusIcon-BiT0IpnZ.js +142 -0
- package/components/TxnStatusIcon-DKKXQdof.cjs +1 -0
- package/components/TxnTypeIcons-9BTCQOTk.js +101 -0
- package/components/TxnTypeIcons-BDSLNTNd.js +101 -0
- package/components/TxnTypeIcons-Dbv7Pgop.cjs +1 -0
- 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/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
- package/stencil/index-b2193545-B1ZEoKQs.cjs +1 -0
- package/stencil/index-b2193545-B5WVVmva.js +519 -0
- package/stencil/index-b2193545-CfiRkmy3.js +503 -0
- package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-CNNeJmP0.cjs} +1 -1
- package/stencil/{ui-image-DIEeZy5u.js → ui-image-DCPAt25-.js} +1 -1
- package/stencil/{ui-image-BWJXFWH1.js → ui-image-am9MgSQ8.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-D1L4lwNZ.js} +2 -2
- package/stencil/{ui-skeleton-_yJvAdAL.cjs → ui-skeleton-DuT40Wl3.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-skeleton-ae35c6f2-Biyf8F-y.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CKgUXOQC.cjs → ui-skeleton-ae35c6f2-CFTNuZYA.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-skeleton-ae35c6f2-CzSGP5Of.js} +1 -1
- package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-vQGsM2TX.js} +2 -2
- package/components/CashierConfirmModal-Dbth1Vwp.cjs +0 -4
- package/components/CashierError-CUi7dlhw.cjs +0 -5
- package/components/CashierHeader-C87PEbuI.cjs +0 -1
- package/components/CashierMethodDetails-DI5D_QCF.cjs +0 -99
- package/components/CashierMethodsList-BuJMDLdX.cjs +0 -1
- package/components/CashierPage-M26PQ4uv.cjs +0 -1
- package/components/CashierReceiptPage-qJvPvJga.cjs +0 -1
- package/components/CashierSessionExpirationModal-BfPvkDUo.cjs +0 -2
- package/components/CashierTransactionHistory-D46VIVuo.js +0 -613
- package/components/CashierTransactionHistory-DTgDyhFg.js +0 -613
- package/components/CashierTransactionHistory-idoNMIZM.cjs +0 -1
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-b2193545-B8kMF2bI.cjs +0 -1
- package/stencil/index-b2193545-BoSqyMpB.js +0 -519
- package/stencil/index-b2193545-D4dOaNlR.js +0 -503
|
@@ -1 +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-DI5D_QCF.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-CnhHqo1M.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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-1Nze3uRQ.cjs"),T=require("./CashierError-CK3QkcBi.cjs"),O=require("./CashierMethodDetails-Cv7OCjGx.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-B7fVKDny.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-1Nze3uRQ.cjs"),m=require("./CashierMethodDetails-Cv7OCjGx.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,18 +1,18 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { i as M } from "./CashierMethodDetails-
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { S as j, b as q, f as m, c as A, a as R, d as Z, y as F, k as b, n as p, v as _, x as G, g as C, h as L, H as k, j as l, L as V, l as h, R as v, B as z, D as N, E as U, F as I, G as J } from "./CashierConfirmModal-CAadcioc.js";
|
|
2
|
+
import { i as M } from "./CashierMethodDetails-P17OdcdK.js";
|
|
3
|
+
function K(s) {
|
|
4
|
+
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}");
|
|
5
5
|
}
|
|
6
6
|
function S(s) {
|
|
7
|
-
let e, i, t,
|
|
7
|
+
let e, i, t, n, o, u, g, r = !/*desktopView*/
|
|
8
8
|
s[2] && x(s), a = (
|
|
9
9
|
/*desktopView*/
|
|
10
10
|
s[2] && H(s)
|
|
11
11
|
);
|
|
12
12
|
return {
|
|
13
13
|
c() {
|
|
14
|
-
e = C("div"), r && r.c(), i =
|
|
15
|
-
s[0]) || l(u, "src", g),
|
|
14
|
+
e = C("div"), r && r.c(), i = L(), t = C("div"), a && a.c(), n = L(), o = C("video"), u = C("source"), k(u.src, g = /*videosrc*/
|
|
15
|
+
s[0]) || l(u, "src", g), o.autoplay = !0, o.controls = !0, l(o, "controlslist", "nodownload"), l(o, "disablepictureinpicture", ""), l(t, "class", "CashierVideo"), l(e, "class", "CashierVideoWrapper"), V(
|
|
16
16
|
e,
|
|
17
17
|
"CashierVideoWrapperDesktop",
|
|
18
18
|
/*desktopView*/
|
|
@@ -20,15 +20,15 @@ function S(s) {
|
|
|
20
20
|
);
|
|
21
21
|
},
|
|
22
22
|
m(c, d) {
|
|
23
|
-
|
|
23
|
+
b(c, e, d), r && r.m(e, null), h(e, i), h(e, t), a && a.m(t, null), h(t, n), h(t, o), h(o, u), s[11](e);
|
|
24
24
|
},
|
|
25
25
|
p(c, d) {
|
|
26
26
|
/*desktopView*/
|
|
27
27
|
c[2] ? r && (r.d(1), r = null) : r ? r.p(c, d) : (r = x(c), r.c(), r.m(e, i)), /*desktopView*/
|
|
28
|
-
c[2] ? a ? a.p(c, d) : (a = H(c), a.c(), a.m(t,
|
|
29
|
-
1 && !
|
|
28
|
+
c[2] ? a ? a.p(c, d) : (a = H(c), a.c(), a.m(t, n)) : a && (a.d(1), a = null), d & /*videosrc*/
|
|
29
|
+
1 && !k(u.src, g = /*videosrc*/
|
|
30
30
|
c[0]) && l(u, "src", g), d & /*desktopView*/
|
|
31
|
-
4 &&
|
|
31
|
+
4 && V(
|
|
32
32
|
e,
|
|
33
33
|
"CashierVideoWrapperDesktop",
|
|
34
34
|
/*desktopView*/
|
|
@@ -36,38 +36,38 @@ function S(s) {
|
|
|
36
36
|
);
|
|
37
37
|
},
|
|
38
38
|
d(c) {
|
|
39
|
-
c &&
|
|
39
|
+
c && _(e), r && r.d(), a && a.d(), s[11](null);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
function x(s) {
|
|
44
|
-
let e, i, t,
|
|
44
|
+
let e, i, t, n, o;
|
|
45
45
|
return {
|
|
46
46
|
c() {
|
|
47
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");
|
|
48
48
|
},
|
|
49
49
|
m(u, g) {
|
|
50
|
-
|
|
50
|
+
b(u, e, g), h(e, i), h(i, t), n || (o = z(
|
|
51
51
|
i,
|
|
52
52
|
"click",
|
|
53
53
|
/*click_handler*/
|
|
54
54
|
s[9]
|
|
55
|
-
),
|
|
55
|
+
), n = !0);
|
|
56
56
|
},
|
|
57
57
|
p,
|
|
58
58
|
d(u) {
|
|
59
|
-
u &&
|
|
59
|
+
u && _(e), n = !1, o();
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
function H(s) {
|
|
64
|
-
let e, i, t,
|
|
64
|
+
let e, i, t, n;
|
|
65
65
|
return {
|
|
66
66
|
c() {
|
|
67
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");
|
|
68
68
|
},
|
|
69
|
-
m(
|
|
70
|
-
|
|
69
|
+
m(o, u) {
|
|
70
|
+
b(o, e, u), h(e, i), t || (n = z(
|
|
71
71
|
e,
|
|
72
72
|
"click",
|
|
73
73
|
/*click_handler_1*/
|
|
@@ -75,12 +75,12 @@ function H(s) {
|
|
|
75
75
|
), t = !0);
|
|
76
76
|
},
|
|
77
77
|
p,
|
|
78
|
-
d(
|
|
79
|
-
|
|
78
|
+
d(o) {
|
|
79
|
+
o && _(e), t = !1, n();
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function O(s) {
|
|
84
84
|
let e, i = (
|
|
85
85
|
/*show*/
|
|
86
86
|
s[3] && S(s)
|
|
@@ -89,22 +89,22 @@ function K(s) {
|
|
|
89
89
|
c() {
|
|
90
90
|
i && i.c(), e = F();
|
|
91
91
|
},
|
|
92
|
-
m(t,
|
|
93
|
-
i && i.m(t,
|
|
92
|
+
m(t, n) {
|
|
93
|
+
i && i.m(t, n), b(t, e, n);
|
|
94
94
|
},
|
|
95
|
-
p(t, [
|
|
95
|
+
p(t, [n]) {
|
|
96
96
|
/*show*/
|
|
97
|
-
t[3] ? i ? i.p(t,
|
|
97
|
+
t[3] ? i ? i.p(t, n) : (i = S(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
98
98
|
},
|
|
99
99
|
i: p,
|
|
100
100
|
o: p,
|
|
101
101
|
d(t) {
|
|
102
|
-
t &&
|
|
102
|
+
t && _(e), i && i.d(t);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
let { clientstyling: t = "" } = e, { clientstylingurl:
|
|
106
|
+
function P(s, e, i) {
|
|
107
|
+
let { clientstyling: t = "" } = e, { clientstylingurl: n = "" } = e, { ismobileview: o } = e, { videosrc: u } = e, { mbsource: g = "" } = e, r = window.navigator.userAgent, a = !0, c = !1, d;
|
|
108
108
|
const w = () => {
|
|
109
109
|
i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
110
110
|
}, y = (f) => {
|
|
@@ -115,19 +115,19 @@ function O(s, e, i) {
|
|
|
115
115
|
G(() => (window.addEventListener("message", y, !1), () => {
|
|
116
116
|
window.removeEventListener("message", y);
|
|
117
117
|
}));
|
|
118
|
-
const
|
|
118
|
+
const E = () => w(), W = () => w();
|
|
119
119
|
function B(f) {
|
|
120
|
-
|
|
120
|
+
N[f ? "unshift" : "push"](() => {
|
|
121
121
|
d = f, i(1, d);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
return s.$$set = (f) => {
|
|
125
|
-
"clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6,
|
|
125
|
+
"clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6, n = f.clientstylingurl), "ismobileview" in f && i(7, o = f.ismobileview), "videosrc" in f && i(0, u = f.videosrc), "mbsource" in f && i(8, g = f.mbsource);
|
|
126
126
|
}, s.$$.update = () => {
|
|
127
127
|
s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
128
|
-
34 && t && d &&
|
|
129
|
-
66 &&
|
|
130
|
-
258 && g && d &&
|
|
128
|
+
34 && t && d && U(d, t), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
129
|
+
66 && n && d && I(d, n), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
130
|
+
258 && g && d && J(d, `${g}.Style`);
|
|
131
131
|
}, M(r) && D(), [
|
|
132
132
|
u,
|
|
133
133
|
d,
|
|
@@ -135,22 +135,22 @@ function O(s, e, i) {
|
|
|
135
135
|
c,
|
|
136
136
|
w,
|
|
137
137
|
t,
|
|
138
|
-
o,
|
|
139
138
|
n,
|
|
139
|
+
o,
|
|
140
140
|
g,
|
|
141
|
+
E,
|
|
141
142
|
W,
|
|
142
|
-
q,
|
|
143
143
|
B
|
|
144
144
|
];
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class Q extends j {
|
|
147
147
|
constructor(e) {
|
|
148
|
-
super(),
|
|
148
|
+
super(), q(
|
|
149
149
|
this,
|
|
150
150
|
e,
|
|
151
|
+
P,
|
|
151
152
|
O,
|
|
152
|
-
|
|
153
|
-
Z,
|
|
153
|
+
R,
|
|
154
154
|
{
|
|
155
155
|
clientstyling: 5,
|
|
156
156
|
clientstylingurl: 6,
|
|
@@ -158,7 +158,7 @@ class P extends E {
|
|
|
158
158
|
videosrc: 0,
|
|
159
159
|
mbsource: 8
|
|
160
160
|
},
|
|
161
|
-
|
|
161
|
+
K
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
get clientstyling() {
|
|
@@ -192,7 +192,7 @@ class P extends E {
|
|
|
192
192
|
this.$$set({ mbsource: e }), m();
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
A(Q, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
196
196
|
export {
|
|
197
|
-
|
|
197
|
+
Q as default
|
|
198
198
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { i as M } from "./CashierMethodDetails-
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { S as j, b as q, f as m, c as A, a as R, d as Z, y as F, k as b, n as p, v as _, x as G, g as C, h as L, H as k, j as l, L as V, l as h, R as v, B as z, D as N, E as U, F as I, G as J } from "./CashierConfirmModal-DDAKZDUC.js";
|
|
2
|
+
import { i as M } from "./CashierMethodDetails-DiAqx44U.js";
|
|
3
|
+
function K(s) {
|
|
4
|
+
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}");
|
|
5
5
|
}
|
|
6
6
|
function S(s) {
|
|
7
|
-
let e, i, t,
|
|
7
|
+
let e, i, t, n, o, u, g, r = !/*desktopView*/
|
|
8
8
|
s[2] && x(s), a = (
|
|
9
9
|
/*desktopView*/
|
|
10
10
|
s[2] && H(s)
|
|
11
11
|
);
|
|
12
12
|
return {
|
|
13
13
|
c() {
|
|
14
|
-
e = C("div"), r && r.c(), i =
|
|
15
|
-
s[0]) || l(u, "src", g),
|
|
14
|
+
e = C("div"), r && r.c(), i = L(), t = C("div"), a && a.c(), n = L(), o = C("video"), u = C("source"), k(u.src, g = /*videosrc*/
|
|
15
|
+
s[0]) || l(u, "src", g), o.autoplay = !0, o.controls = !0, l(o, "controlslist", "nodownload"), l(o, "disablepictureinpicture", ""), l(t, "class", "CashierVideo"), l(e, "class", "CashierVideoWrapper"), V(
|
|
16
16
|
e,
|
|
17
17
|
"CashierVideoWrapperDesktop",
|
|
18
18
|
/*desktopView*/
|
|
@@ -20,15 +20,15 @@ function S(s) {
|
|
|
20
20
|
);
|
|
21
21
|
},
|
|
22
22
|
m(c, d) {
|
|
23
|
-
|
|
23
|
+
b(c, e, d), r && r.m(e, null), h(e, i), h(e, t), a && a.m(t, null), h(t, n), h(t, o), h(o, u), s[11](e);
|
|
24
24
|
},
|
|
25
25
|
p(c, d) {
|
|
26
26
|
/*desktopView*/
|
|
27
27
|
c[2] ? r && (r.d(1), r = null) : r ? r.p(c, d) : (r = x(c), r.c(), r.m(e, i)), /*desktopView*/
|
|
28
|
-
c[2] ? a ? a.p(c, d) : (a = H(c), a.c(), a.m(t,
|
|
29
|
-
1 && !
|
|
28
|
+
c[2] ? a ? a.p(c, d) : (a = H(c), a.c(), a.m(t, n)) : a && (a.d(1), a = null), d & /*videosrc*/
|
|
29
|
+
1 && !k(u.src, g = /*videosrc*/
|
|
30
30
|
c[0]) && l(u, "src", g), d & /*desktopView*/
|
|
31
|
-
4 &&
|
|
31
|
+
4 && V(
|
|
32
32
|
e,
|
|
33
33
|
"CashierVideoWrapperDesktop",
|
|
34
34
|
/*desktopView*/
|
|
@@ -36,38 +36,38 @@ function S(s) {
|
|
|
36
36
|
);
|
|
37
37
|
},
|
|
38
38
|
d(c) {
|
|
39
|
-
c &&
|
|
39
|
+
c && _(e), r && r.d(), a && a.d(), s[11](null);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
function x(s) {
|
|
44
|
-
let e, i, t,
|
|
44
|
+
let e, i, t, n, o;
|
|
45
45
|
return {
|
|
46
46
|
c() {
|
|
47
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");
|
|
48
48
|
},
|
|
49
49
|
m(u, g) {
|
|
50
|
-
|
|
50
|
+
b(u, e, g), h(e, i), h(i, t), n || (o = z(
|
|
51
51
|
i,
|
|
52
52
|
"click",
|
|
53
53
|
/*click_handler*/
|
|
54
54
|
s[9]
|
|
55
|
-
),
|
|
55
|
+
), n = !0);
|
|
56
56
|
},
|
|
57
57
|
p,
|
|
58
58
|
d(u) {
|
|
59
|
-
u &&
|
|
59
|
+
u && _(e), n = !1, o();
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
function H(s) {
|
|
64
|
-
let e, i, t,
|
|
64
|
+
let e, i, t, n;
|
|
65
65
|
return {
|
|
66
66
|
c() {
|
|
67
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");
|
|
68
68
|
},
|
|
69
|
-
m(
|
|
70
|
-
|
|
69
|
+
m(o, u) {
|
|
70
|
+
b(o, e, u), h(e, i), t || (n = z(
|
|
71
71
|
e,
|
|
72
72
|
"click",
|
|
73
73
|
/*click_handler_1*/
|
|
@@ -75,12 +75,12 @@ function H(s) {
|
|
|
75
75
|
), t = !0);
|
|
76
76
|
},
|
|
77
77
|
p,
|
|
78
|
-
d(
|
|
79
|
-
|
|
78
|
+
d(o) {
|
|
79
|
+
o && _(e), t = !1, n();
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function O(s) {
|
|
84
84
|
let e, i = (
|
|
85
85
|
/*show*/
|
|
86
86
|
s[3] && S(s)
|
|
@@ -89,22 +89,22 @@ function K(s) {
|
|
|
89
89
|
c() {
|
|
90
90
|
i && i.c(), e = F();
|
|
91
91
|
},
|
|
92
|
-
m(t,
|
|
93
|
-
i && i.m(t,
|
|
92
|
+
m(t, n) {
|
|
93
|
+
i && i.m(t, n), b(t, e, n);
|
|
94
94
|
},
|
|
95
|
-
p(t, [
|
|
95
|
+
p(t, [n]) {
|
|
96
96
|
/*show*/
|
|
97
|
-
t[3] ? i ? i.p(t,
|
|
97
|
+
t[3] ? i ? i.p(t, n) : (i = S(t), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
98
98
|
},
|
|
99
99
|
i: p,
|
|
100
100
|
o: p,
|
|
101
101
|
d(t) {
|
|
102
|
-
t &&
|
|
102
|
+
t && _(e), i && i.d(t);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
let { clientstyling: t = "" } = e, { clientstylingurl:
|
|
106
|
+
function P(s, e, i) {
|
|
107
|
+
let { clientstyling: t = "" } = e, { clientstylingurl: n = "" } = e, { ismobileview: o } = e, { videosrc: u } = e, { mbsource: g = "" } = e, r = window.navigator.userAgent, a = !0, c = !1, d;
|
|
108
108
|
const w = () => {
|
|
109
109
|
i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
110
110
|
}, y = (f) => {
|
|
@@ -115,19 +115,19 @@ function O(s, e, i) {
|
|
|
115
115
|
G(() => (window.addEventListener("message", y, !1), () => {
|
|
116
116
|
window.removeEventListener("message", y);
|
|
117
117
|
}));
|
|
118
|
-
const
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
const E = () => w(), W = () => w();
|
|
119
|
+
function B(f) {
|
|
120
|
+
N[f ? "unshift" : "push"](() => {
|
|
121
121
|
d = f, i(1, d);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
return s.$$set = (f) => {
|
|
125
|
-
"clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6,
|
|
125
|
+
"clientstyling" in f && i(5, t = f.clientstyling), "clientstylingurl" in f && i(6, n = f.clientstylingurl), "ismobileview" in f && i(7, o = f.ismobileview), "videosrc" in f && i(0, u = f.videosrc), "mbsource" in f && i(8, g = f.mbsource);
|
|
126
126
|
}, s.$$.update = () => {
|
|
127
127
|
s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
128
|
-
34 && t && d &&
|
|
129
|
-
66 &&
|
|
130
|
-
258 && g && d &&
|
|
128
|
+
34 && t && d && U(d, t), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
129
|
+
66 && n && d && I(d, n), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
130
|
+
258 && g && d && J(d, `${g}.Style`);
|
|
131
131
|
}, M(r) && D(), [
|
|
132
132
|
u,
|
|
133
133
|
d,
|
|
@@ -135,22 +135,22 @@ function O(s, e, i) {
|
|
|
135
135
|
c,
|
|
136
136
|
w,
|
|
137
137
|
t,
|
|
138
|
-
o,
|
|
139
138
|
n,
|
|
139
|
+
o,
|
|
140
140
|
g,
|
|
141
|
+
E,
|
|
141
142
|
W,
|
|
142
|
-
|
|
143
|
-
A
|
|
143
|
+
B
|
|
144
144
|
];
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class Q extends j {
|
|
147
147
|
constructor(e) {
|
|
148
|
-
super(),
|
|
148
|
+
super(), q(
|
|
149
149
|
this,
|
|
150
150
|
e,
|
|
151
|
+
P,
|
|
151
152
|
O,
|
|
152
|
-
|
|
153
|
-
Z,
|
|
153
|
+
R,
|
|
154
154
|
{
|
|
155
155
|
clientstyling: 5,
|
|
156
156
|
clientstylingurl: 6,
|
|
@@ -158,7 +158,7 @@ class P extends B {
|
|
|
158
158
|
videosrc: 0,
|
|
159
159
|
mbsource: 8
|
|
160
160
|
},
|
|
161
|
-
|
|
161
|
+
K
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
get clientstyling() {
|
|
@@ -192,7 +192,7 @@ class P extends B {
|
|
|
192
192
|
this.$$set({ mbsource: e }), m();
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
A(Q, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
196
196
|
export {
|
|
197
|
-
|
|
197
|
+
Q as default
|
|
198
198
|
};
|