@everymatrix/cashier-page 1.67.3 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/components/{CashierConfirmModal-DSousiGi.js → CashierConfirmModal-4RYp7Eiq.js} +63 -63
  2. package/components/{CashierConfirmModal-aR9avzhT.cjs → CashierConfirmModal-DMmJumcl.cjs} +1 -1
  3. package/components/{CashierConfirmModal-Dqt01j--.js → CashierConfirmModal-untxGhsx.js} +63 -63
  4. package/components/{CashierError-BJ0E1_1v.js → CashierError-Cns-3PNq.js} +822 -820
  5. package/components/{CashierError-CDMTA5XZ.js → CashierError-DUzkCsXh.js} +825 -823
  6. package/components/CashierError-DaAmOVnU.cjs +5 -0
  7. package/components/{CashierHeader-DdaYQk1z.js → CashierHeader-B70dCV9P.js} +76 -76
  8. package/components/CashierHeader-D09r-jkw.cjs +1 -0
  9. package/components/{CashierHeader-CIGQbunN.js → CashierHeader-UB8k3unf.js} +75 -75
  10. package/components/{CashierIframeRedirect-DFbde_A6.cjs → CashierIframeRedirect-B3F7pZ1B.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-uKBvAgPd.js → CashierIframeRedirect-CFX4sGYO.js} +32 -32
  12. package/components/{CashierIframeRedirect-DgRv7mIi.js → CashierIframeRedirect-ftwTZ2xd.js} +39 -39
  13. package/components/{CashierMethodDetails-C8zoV6W4.js → CashierMethodDetails-B6Mr4aP0.js} +260 -260
  14. package/components/{CashierMethodDetails-C2_u6BK8.js → CashierMethodDetails-CCXOr2gb.js} +269 -269
  15. package/components/{CashierMethodDetails-B3iGe4hR.cjs → CashierMethodDetails-D0Y5nPiN.cjs} +1 -1
  16. package/components/{CashierMethodsList-D8b1qu2l.js → CashierMethodsList-DVjbbHO_.js} +111 -111
  17. package/components/{CashierMethodsList-TjtjgYd2.cjs → CashierMethodsList-DaNccxCT.cjs} +1 -1
  18. package/components/{CashierMethodsList-zbTtJNbj.js → CashierMethodsList-lyl4lzH4.js} +106 -106
  19. package/components/{CashierModal-i5BLXeMG.js → CashierModal-BrwIBn9a.js} +35 -35
  20. package/components/{CashierModal-C4UbhpUy.cjs → CashierModal-BuM2Yq-y.cjs} +1 -1
  21. package/components/{CashierModal-D7l5xNNv.js → CashierModal-ZfKvGxFq.js} +40 -40
  22. package/components/{CashierNotifications-NZjMeobR.cjs → CashierNotifications-BLJS7gpv.cjs} +1 -1
  23. package/components/{CashierNotifications-NeYZwpe0.js → CashierNotifications-C48iLynX.js} +19 -19
  24. package/components/{CashierNotifications-C8IpBoiL.js → CashierNotifications-dn6rnyK_.js} +18 -18
  25. package/components/{CashierPage-BUhLJIX9.cjs → CashierPage-B6U1sEpL.cjs} +1 -1
  26. package/components/{CashierPage-B5AOrnIR.js → CashierPage-DwwVZWaQ.js} +105 -105
  27. package/components/{CashierPage-Bta_wcmm.js → CashierPage-Oq46yP5A.js} +178 -178
  28. package/components/{CashierReceiptPage-Clg1Fc7Z.js → CashierReceiptPage-B7SvdgM-.js} +28 -28
  29. package/components/{CashierReceiptPage-DHzc7FzL.cjs → CashierReceiptPage-D_fuJVBK.cjs} +1 -1
  30. package/components/{CashierReceiptPage-QzdS-ShS.js → CashierReceiptPage-YAGlqjjm.js} +28 -28
  31. package/components/{CashierSessionExpirationModal-lYRN5IL1.js → CashierSessionExpirationModal-B4sZWPat.js} +255 -264
  32. package/components/{CashierSessionExpirationModal-DvQFH1r5.js → CashierSessionExpirationModal-CZreGxnI.js} +240 -249
  33. package/components/{CashierSessionExpirationModal-Ctwh56Tb.cjs → CashierSessionExpirationModal-D3E8pXO5.cjs} +2 -2
  34. package/components/{CashierSpinner-DIo0_MsH.js → CashierSpinner-BAfTKICK.js} +17 -17
  35. package/components/{CashierSpinner-CMKSvNOT.cjs → CashierSpinner-BhmndmKG.cjs} +1 -1
  36. package/components/{CashierSpinner-BWEendA2.js → CashierSpinner-y6HodxHT.js} +14 -14
  37. package/components/{CashierTransactionHistory-DfHVhVcP.js → CashierTransactionHistory-CGPCwBBR.js} +95 -95
  38. package/components/{CashierTransactionHistory-CC-C7I-S.js → CashierTransactionHistory-CNFeJ6tL.js} +82 -82
  39. package/components/{CashierTransactionHistory-ClzvfAky.cjs → CashierTransactionHistory-skFu8ocY.cjs} +1 -1
  40. package/components/{CashierVerifications-OYhB9s9G.js → CashierVerifications-BPZjO4hX.js} +33 -33
  41. package/components/{CashierVerifications-BCw9TH6P.js → CashierVerifications-BnmIMTOt.js} +42 -42
  42. package/components/{CashierVerifications-B2LJC-xc.cjs → CashierVerifications-DXULEiAu.cjs} +1 -1
  43. package/components/{CashierVideoModal-B-7IPsEa.cjs → CashierVideoModal-BZg_b6bd.cjs} +1 -1
  44. package/components/{CashierVideoModal-BFng4vaT.js → CashierVideoModal-CVDvqrcy.js} +39 -39
  45. package/components/{CashierVideoModal-BOcjBUjZ.js → CashierVideoModal-DHNu0BQz.js} +38 -38
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
  51. package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
  52. package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
  53. package/stencil/{ui-image-B2ynFkLT.cjs → ui-image-CMb1eK44.cjs} +1 -1
  54. package/stencil/{ui-image-D7A7MInC.js → ui-image-CQQDA5b0.js} +1 -1
  55. package/stencil/{ui-image-D_Js9Evk.js → ui-image-CmwNU-jf.js} +1 -1
  56. package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
  57. package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
  58. package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
  59. package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-B56t6kXT.js} +2 -2
  60. package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-BncuYpLi.js} +2 -2
  61. package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
  62. package/components/CashierError-B5iCX53y.cjs +0 -18
  63. package/components/CashierHeader-DL5BrZ9i.cjs +0 -1
  64. package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-aR9avzhT.cjs"),A=require("./CashierError-B5iCX53y.cjs"),S=require("./CashierMethodDetails-B3iGe4hR.cjs");function H(r,t){A.addMessages(r,t)}function ye(r){A.init({fallbackLocale:"en"}),A.$locale.set(r)}const j={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-B-7IPsEa.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ke(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function N(r,t,o){const a=r.slice();return a[52]=t[o],a[54]=o,a}function W(r){let t,o,a,c,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=K(N(r,u,l));let m=r[7]&&G(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const k=N(l,u,s);d[s]?d[s].p(k,h):(d[s]=K(k),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=G(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(c)),i.destroy_each(d,l),m&&m.d(l)}}}function Y(r){let t,o,a;function c(...u){return r[19](r[54],...u)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",c),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function K(r){let t,o,a,c,u=r[52]+"",d,m,l,h,s=r[4].length>1&&r[54]===0&&Y(r);function k(...v){return r[20](r[54],...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(),c=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,c),c.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",k),l=!0)},p(v,w){r=v,w[0]&16&&u!==(u=r[52]+"")&&(c.innerHTML=u),r[4].length>1&&r[54]===0?s?s.p(r,w):(s=Y(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),s&&s.d(),l=!1,h()}}}function G(r){let t,o,a,c,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',a=i.space(),c=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,c),i.append(c,d),m||(l=i.listen(c,"click",r[21]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function _e(r){let t,o=r[4]&&W(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,c){i.insert(a,t,c),o&&o.m(t,null),r[22](t)},p(a,c){a[4]?o?o.p(a,c):(o=W(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[22](null)}}}const Pe="verification_explanation_video_widgets.MP4";function Ve(r,t,o){let a,c;i.component_subscribe(r,A.$format,e=>o(9,a=e)),i.component_subscribe(r,S.xPaymentSessionToken,e=>o(28,c=e)),S.dayjs.extend(S.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:k=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,_,x=new Set,F=new Set,D,C,O,T=!0,z=!0,M=!1,B="";var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var g;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(g||(g={}));var b;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(b||(b={}));const J=[g.InProgress,g.Referred,g.AwaitingForResponse],X=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{H(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(j).forEach(e=>{H(e,j[e])});const Q=()=>{ye(d)},$=()=>{let e=document.createElement("style");e.innerHTML=l,_.appendChild(e)},ee=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{_.appendChild(n)},1)})},I=()=>{o(18,C=te());const e=new URL(`${u}/v1/player/${k}/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",S.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const f={method:"POST",headers:n,body:JSON.stringify({})};fetch(e,f).then(p=>p.json()).then(p=>{D=re(p.Verifications),D.VerificationStatuses.forEach(y=>{y.VerificationUrlType!=="Widget"&&x.add(y.Vendor)}),o(4,O=R())})},ie=()=>{c&&I()},te=()=>{let e=(s||c).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},re=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ne(e);if(n&&n.length){const p=oe(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:E(n,p.Status)}}else return{VerificationSummaryStatus:e.some(y=>y.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:E(e,[g.Failed])}},oe=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),E=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,y;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...f.Documents]:[],VerificationUrlType:(p=f.FlowInfo)==null?void 0:p.Type,VerificationUrl:(y=f.FlowInfo)==null?void 0:y.Url}}),ne=e=>e.filter(n=>J.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||se(n)||ae(n):!1),se=e=>{const n=e.Documents&&e.VendorName===V.Manual,f=e.Documents&&e.Documents.some(p=>p.Status===L.Requested);return n&&f},ae=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,R=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return x.forEach(n=>{e.push(le(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},le=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===V.ShuftiPro)return ce(n);{const f=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return a("verification.idenfy.in-progress",{values:p})}},ce=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(P=>{p.includes(P.Type)&&(n.push(P.Type),f[P.Type]=fe(P,de(P.Type)))});let y=n.every(P=>F.has(P)),we=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return y?a("verification.shuftipro.validations-started"):a(we,{values:f})},fe=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,de=e=>a(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];F.add(f),o(4,O=R())}return}n===0&&o(5,T=!T)},ue=()=>{o(6,z=v==="false")},he=()=>{o(8,B=C+"/"+d+"/"+Pe);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,M=e.ok)})}catch(e){o(7,M=!1)}},U=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},me=(e,n)=>q(n,e),pe=(e,n)=>q(n,e),ge=()=>U();function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,k=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(17,w=e.playersession)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&Q(),r.$$.dirty[0]&167936&&u&&s&&w&&I(),r.$$.dirty[0]&167936&&u&&!s&&w&&ie(),r.$$.dirty[0]&16384&&m&&X(),r.$$.dirty[0]&9&&l&&_&&$(),r.$$.dirty[0]&10&&h&&_&&ee(),r.$$.dirty[0]&4&&v&&ue(),r.$$.dirty[0]&262144&&C&&he()},[l,h,v,_,O,T,z,M,B,a,q,U,u,d,m,s,k,w,C,me,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ve,_e,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2,playersession:17},ke,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[17]}set playersession(t){this.$$set({playersession:t}),i.flush()}}i.create_custom_element(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{}},[],[],!0);exports.default=Z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),A=require("./CashierError-DaAmOVnU.cjs"),S=require("./CashierMethodDetails-D0Y5nPiN.cjs");function H(r,t){A.addMessages(r,t)}function ye(r){A.init({fallbackLocale:"en"}),A.$locale.set(r)}const j={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function ke(r){i.append_styles(r,"svelte-1emynn4","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function N(r,t,o){const a=r.slice();return a[52]=t[o],a[54]=o,a}function W(r){let t,o,a,c,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=K(N(r,u,l));let m=r[7]&&G(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),c=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(c,"clientstylingurl",r[1]),i.set_custom_element_data(c,"clientstyling",r[0]),i.set_custom_element_data(c,"ismobileview",r[2]),i.set_custom_element_data(c,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,c,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const k=N(l,u,s);d[s]?d[s].p(k,h):(d[s]=K(k),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=G(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(c,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(c,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(c,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(c,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(c)),i.destroy_each(d,l),m&&m.d(l)}}}function Y(r){let t,o,a;function c(...u){return r[19](r[54],...u)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",c),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function K(r){let t,o,a,c,u=r[52]+"",d,m,l,h,s=r[4].length>1&&r[54]===0&&Y(r);function k(...v){return r[20](r[54],...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(),c=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(c,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,c),c.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",k),l=!0)},p(v,w){r=v,w[0]&16&&u!==(u=r[52]+"")&&(c.innerHTML=u),r[4].length>1&&r[54]===0?s?s.p(r,w):(s=Y(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),s&&s.d(),l=!1,h()}}}function G(r){let t,o,a,c,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',a=i.space(),c=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(c,"class","CashierVerificationVideoLink"),i.toggle_class(c,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,c),i.append(c,d),m||(l=i.listen(c,"click",r[21]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(c,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function _e(r){let t,o=r[4]&&W(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,c){i.insert(a,t,c),o&&o.m(t,null),r[22](t)},p(a,c){a[4]?o?o.p(a,c):(o=W(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),c[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[22](null)}}}const Pe="verification_explanation_video_widgets.MP4";function Ve(r,t,o){let a,c;i.component_subscribe(r,A.$format,e=>o(9,a=e)),i.component_subscribe(r,S.xPaymentSessionToken,e=>o(28,c=e)),S.dayjs.extend(S.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:k=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,_,x=new Set,F=new Set,D,C,O,T=!0,z=!0,M=!1,B="";var V;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(V||(V={}));var L;(function(e){e.Requested="Requested"})(L||(L={}));var g;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(g||(g={}));var b;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(b||(b={}));const J=[g.InProgress,g.Referred,g.AwaitingForResponse],X=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(f=>{H(f,n[f])})}).catch(n=>{console.log(n)})};Object.keys(j).forEach(e=>{H(e,j[e])});const Q=()=>{ye(d)},$=()=>{let e=document.createElement("style");e.innerHTML=l,_.appendChild(e)},ee=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(f=>f.text()).then(f=>{n.innerHTML=f,setTimeout(()=>{_.appendChild(n)},1)})},I=()=>{o(18,C=te());const e=new URL(`${u}/v1/player/${k}/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",S.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const f={method:"POST",headers:n,body:JSON.stringify({})};fetch(e,f).then(p=>p.json()).then(p=>{D=re(p.Verifications),D.VerificationStatuses.forEach(y=>{y.VerificationUrlType!=="Widget"&&x.add(y.Vendor)}),o(4,O=R())})},ie=()=>{c&&I()},te=()=>{let e=(s||c).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},re=e=>{var f;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ne(e);if(n&&n.length){const p=oe(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(f=p.Flags)==null?void 0:f.DeferredUrlKey,VerificationStatuses:E(n,p.Status)}}else return{VerificationSummaryStatus:e.some(y=>y.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:E(e,[g.Failed])}},oe=e=>e.reduce((n,f)=>n?new Date(n)<new Date(f)?f:n:f,0),E=(e,n)=>e.filter(f=>n.includes(f.Status)).map(f=>{var p,y;return{Type:f.Type,Vendor:f.VendorName,VerificationDocuments:f.Documents?[...f.Documents]:[],VerificationUrlType:(p=f.FlowInfo)==null?void 0:p.Type,VerificationUrl:(y=f.FlowInfo)==null?void 0:y.Url}}),ne=e=>e.filter(n=>J.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||se(n)||ae(n):!1),se=e=>{const n=e.Documents&&e.VendorName===V.Manual,f=e.Documents&&e.Documents.some(p=>p.Status===L.Requested);return n&&f},ae=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,R=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return x.forEach(n=>{e.push(le(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},le=e=>{const n=D.VerificationStatuses.filter(f=>f.Vendor===e);if(e===V.ShuftiPro)return ce(n);{const f=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${f}</a>`};return a("verification.idenfy.in-progress",{values:p})}},ce=e=>{const n=[],f={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(P=>{p.includes(P.Type)&&(n.push(P.Type),f[P.Type]=fe(P,de(P.Type)))});let y=n.every(P=>F.has(P)),we=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return y?a("verification.shuftipro.validations-started"):a(we,{values:f})},fe=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,de=e=>a(`verification.shuftipro.link-name.${e}`),q=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const f=e.target.className.split(" ")[1];F.add(f),o(4,O=R())}return}n===0&&o(5,T=!T)},ue=()=>{o(6,z=v==="false")},he=()=>{o(8,B=C+"/"+d+"/"+Pe);try{fetch(B,{method:"HEAD"}).then(e=>{o(7,M=e.ok)})}catch(e){o(7,M=!1)}},U=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},me=(e,n)=>q(n,e),pe=(e,n)=>q(n,e),ge=()=>U();function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,k=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(17,w=e.playersession)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&Q(),r.$$.dirty[0]&167936&&u&&s&&w&&I(),r.$$.dirty[0]&167936&&u&&!s&&w&&ie(),r.$$.dirty[0]&16384&&m&&X(),r.$$.dirty[0]&9&&l&&_&&$(),r.$$.dirty[0]&10&&h&&_&&ee(),r.$$.dirty[0]&4&&v&&ue(),r.$$.dirty[0]&262144&&C&&he()},[l,h,v,_,O,T,z,M,B,a,q,U,u,d,m,s,k,w,C,me,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ve,_e,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2,playersession:17},ke,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[17]}set playersession(t){this.$$set({playersession:t}),i.flush()}}i.create_custom_element(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{}},[],[],!0);exports.default=Z;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-aR9avzhT.cjs");function M(n){e.append_styles(n,"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 m(n){let t,i,l,o,r,f,u,c=!n[2]&&C(n),s=n[2]&&w(n);return{c(){t=e.element("div"),c&&c.c(),i=e.space(),l=e.element("div"),s&&s.c(),o=e.space(),r=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,u=n[0])||e.attr(f,"src",u),r.autoplay=!0,r.controls=!0,e.attr(r,"controlslist","nodownload"),e.attr(r,"disablepictureinpicture",""),e.attr(l,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.attr(t,"part","CustomStylingContainer"),e.toggle_class(t,"CashierVideoWrapperDesktop",n[2])},m(d,p){e.insert(d,t,p),c&&c.m(t,null),e.append(t,i),e.append(t,l),s&&s.m(l,null),e.append(l,o),e.append(l,r),e.append(r,f),n[10](t)},p(d,p){d[2]?c&&(c.d(1),c=null):c?c.p(d,p):(c=C(d),c.c(),c.m(t,i)),d[2]?s?s.p(d,p):(s=w(d),s.c(),s.m(l,o)):s&&(s.d(1),s=null),p&1&&!e.src_url_equal(f.src,u=d[0])&&e.attr(f,"src",u),p&4&&e.toggle_class(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&e.detach(t),c&&c.d(),s&&s.d(),n[10](null)}}}function C(n){let t,i,l,o,r;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"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(l,"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,u){e.insert(f,t,u),e.append(t,i),e.append(i,l),o||(r=e.listen(i,"click",n[8]),o=!0)},p:e.noop,d(f){f&&e.detach(t),o=!1,r()}}}function w(n){let t,i,l,o;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(r,f){e.insert(r,t,f),e.append(t,i),l||(o=e.listen(t,"click",n[9]),l=!0)},p:e.noop,d(r){r&&e.detach(t),l=!1,o()}}}function S(n){let t,i=n[3]&&m(n);return{c(){i&&i.c(),t=e.empty()},m(l,o){i&&i.m(l,o),e.insert(l,t,o)},p(l,[o]){l[3]?i?i.p(l,o):(i=m(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),i&&i.d(l)}}}function H(n,t,i){let{clientstyling:l=""}=t,{clientstylingurl:o=""}=t,{ismobileview:r}=t,{videosrc:f}=t,u=!0,c=!1,s;const d=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},p=a=>{a.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},_=()=>{i(2,u=r==="false")},y=()=>{let a=document.createElement("style");a.innerHTML=l,s.appendChild(a)},L=()=>{let a=new URL(o),g=document.createElement("style");fetch(a.href).then(h=>h.text()).then(h=>{g.innerHTML=h,setTimeout(()=>{s.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)}));const b=()=>d(),k=()=>d();function V(a){e.binding_callbacks[a?"unshift":"push"](()=>{s=a,i(1,s)})}return n.$$set=a=>{"clientstyling"in a&&i(5,l=a.clientstyling),"clientstylingurl"in a&&i(6,o=a.clientstylingurl),"ismobileview"in a&&i(7,r=a.ismobileview),"videosrc"in a&&i(0,f=a.videosrc)},n.$$.update=()=>{n.$$.dirty&128&&r&&_(),n.$$.dirty&34&&l&&s&&y(),n.$$.dirty&66&&o&&s&&L()},[f,s,u,c,d,l,o,r,b,k,V]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,H,S,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},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()}}e.create_custom_element(v,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-DMmJumcl.cjs");function M(n){e.append_styles(n,"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 m(n){let t,i,l,o,r,f,u,c=!n[2]&&C(n),s=n[2]&&w(n);return{c(){t=e.element("div"),c&&c.c(),i=e.space(),l=e.element("div"),s&&s.c(),o=e.space(),r=e.element("video"),f=e.element("source"),e.src_url_equal(f.src,u=n[0])||e.attr(f,"src",u),r.autoplay=!0,r.controls=!0,e.attr(r,"controlslist","nodownload"),e.attr(r,"disablepictureinpicture",""),e.attr(l,"class","CashierVideo"),e.attr(t,"class","CashierVideoWrapper"),e.attr(t,"part","CustomStylingContainer"),e.toggle_class(t,"CashierVideoWrapperDesktop",n[2])},m(d,p){e.insert(d,t,p),c&&c.m(t,null),e.append(t,i),e.append(t,l),s&&s.m(l,null),e.append(l,o),e.append(l,r),e.append(r,f),n[10](t)},p(d,p){d[2]?c&&(c.d(1),c=null):c?c.p(d,p):(c=C(d),c.c(),c.m(t,i)),d[2]?s?s.p(d,p):(s=w(d),s.c(),s.m(l,o)):s&&(s.d(1),s=null),p&1&&!e.src_url_equal(f.src,u=d[0])&&e.attr(f,"src",u),p&4&&e.toggle_class(t,"CashierVideoWrapperDesktop",d[2])},d(d){d&&e.detach(t),c&&c.d(),s&&s.d(),n[10](null)}}}function C(n){let t,i,l,o,r;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"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(l,"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,u){e.insert(f,t,u),e.append(t,i),e.append(i,l),o||(r=e.listen(i,"click",n[8]),o=!0)},p:e.noop,d(f){f&&e.detach(t),o=!1,r()}}}function w(n){let t,i,l,o;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(r,f){e.insert(r,t,f),e.append(t,i),l||(o=e.listen(t,"click",n[9]),l=!0)},p:e.noop,d(r){r&&e.detach(t),l=!1,o()}}}function S(n){let t,i=n[3]&&m(n);return{c(){i&&i.c(),t=e.empty()},m(l,o){i&&i.m(l,o),e.insert(l,t,o)},p(l,[o]){l[3]?i?i.p(l,o):(i=m(l),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),i&&i.d(l)}}}function H(n,t,i){let{clientstyling:l=""}=t,{clientstylingurl:o=""}=t,{ismobileview:r}=t,{videosrc:f}=t,u=!0,c=!1,s;const d=()=>{i(3,c=!1),window.postMessage({type:"ClosedCashierVideoModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},p=a=>{a.data.type=="ShowCashierVideoModal"&&(i(3,c=!0),window.postMessage({type:"DisableScroll"},window.location.href)),a.data.type=="HideCashierVideoModal"&&d()},_=()=>{i(2,u=r==="false")},y=()=>{let a=document.createElement("style");a.innerHTML=l,s.appendChild(a)},L=()=>{let a=new URL(o),g=document.createElement("style");fetch(a.href).then(h=>h.text()).then(h=>{g.innerHTML=h,setTimeout(()=>{s.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)}));const b=()=>d(),k=()=>d();function V(a){e.binding_callbacks[a?"unshift":"push"](()=>{s=a,i(1,s)})}return n.$$set=a=>{"clientstyling"in a&&i(5,l=a.clientstyling),"clientstylingurl"in a&&i(6,o=a.clientstylingurl),"ismobileview"in a&&i(7,r=a.ismobileview),"videosrc"in a&&i(0,f=a.videosrc)},n.$$.update=()=>{n.$$.dirty&128&&r&&_(),n.$$.dirty&34&&l&&s&&y(),n.$$.dirty&66&&o&&s&&L()},[f,s,u,c,d,l,o,r,b,k,V]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,H,S,e.safe_not_equal,{clientstyling:5,clientstylingurl:6,ismobileview:7,videosrc:0},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()}}e.create_custom_element(v,{clientstyling:{},clientstylingurl:{},ismobileview:{},videosrc:{}},[],[],!0);exports.default=v;
@@ -1,17 +1,17 @@
1
- import { S as q, b as B, f as p, c as R, a as U, d as Z, x as A, k as v, n as m, v as _, G as F, g as C, h as b, D as k, j as n, I as V, l as g, O as w, A as H, C as G } from "./CashierConfirmModal-Dqt01j--.js";
2
- function I(s) {
3
- 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 T, b as N, s as R, f as p, c as U, n as m, e as v, l as _, w as Z, H as j, B as b, q as n, J as k, m as g, o as C, p as V, z as A, A as x, N as w, E as F } from "./CashierConfirmModal-untxGhsx.js";
2
+ function J(s) {
3
+ U(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}");
4
4
  }
5
5
  function M(s) {
6
6
  let e, i, t, o, r, f, u, c = !/*desktopView*/
7
7
  s[2] && S(s), l = (
8
8
  /*desktopView*/
9
- s[2] && x(s)
9
+ s[2] && H(s)
10
10
  );
11
11
  return {
12
12
  c() {
13
- e = C("div"), c && c.c(), i = b(), t = C("div"), l && l.c(), o = b(), r = C("video"), f = C("source"), k(f.src, u = /*videosrc*/
14
- s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer"), V(
13
+ e = C("div"), c && c.c(), i = V(), t = C("div"), l && l.c(), o = V(), r = C("video"), f = C("source"), b(f.src, u = /*videosrc*/
14
+ s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer"), k(
15
15
  e,
16
16
  "CashierVideoWrapperDesktop",
17
17
  /*desktopView*/
@@ -19,15 +19,15 @@ function M(s) {
19
19
  );
20
20
  },
21
21
  m(d, h) {
22
- v(d, e, h), c && c.m(e, null), g(e, i), g(e, t), l && l.m(t, null), g(t, o), g(t, r), g(r, f), s[10](e);
22
+ _(d, e, h), c && c.m(e, null), g(e, i), g(e, t), l && l.m(t, null), g(t, o), g(t, r), g(r, f), s[10](e);
23
23
  },
24
24
  p(d, h) {
25
25
  /*desktopView*/
26
26
  d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = S(d), c.c(), c.m(e, i)), /*desktopView*/
27
- d[2] ? l ? l.p(d, h) : (l = x(d), l.c(), l.m(t, o)) : l && (l.d(1), l = null), h & /*videosrc*/
28
- 1 && !k(f.src, u = /*videosrc*/
27
+ d[2] ? l ? l.p(d, h) : (l = H(d), l.c(), l.m(t, o)) : l && (l.d(1), l = null), h & /*videosrc*/
28
+ 1 && !b(f.src, u = /*videosrc*/
29
29
  d[0]) && n(f, "src", u), h & /*desktopView*/
30
- 4 && V(
30
+ 4 && k(
31
31
  e,
32
32
  "CashierVideoWrapperDesktop",
33
33
  /*desktopView*/
@@ -35,7 +35,7 @@ function M(s) {
35
35
  );
36
36
  },
37
37
  d(d) {
38
- d && _(e), c && c.d(), l && l.d(), s[10](null);
38
+ d && v(e), c && c.d(), l && l.d(), s[10](null);
39
39
  }
40
40
  };
41
41
  }
@@ -46,7 +46,7 @@ function S(s) {
46
46
  e = C("div"), i = w("svg"), t = w("path"), n(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"), n(t, "fill", "#111111"), n(i, "xmlns", "http://www.w3.org/2000/svg"), n(i, "width", "13"), n(i, "height", "13"), n(i, "viewBox", "0 0 13 13"), n(i, "fill", "none"), n(e, "class", "CashierVideoHeader");
47
47
  },
48
48
  m(f, u) {
49
- v(f, e, u), g(e, i), g(i, t), o || (r = H(
49
+ _(f, e, u), g(e, i), g(i, t), o || (r = x(
50
50
  i,
51
51
  "click",
52
52
  /*click_handler*/
@@ -55,18 +55,18 @@ function S(s) {
55
55
  },
56
56
  p: m,
57
57
  d(f) {
58
- f && _(e), o = !1, r();
58
+ f && v(e), o = !1, r();
59
59
  }
60
60
  };
61
61
  }
62
- function x(s) {
62
+ function H(s) {
63
63
  let e, i, t, o;
64
64
  return {
65
65
  c() {
66
66
  e = w("svg"), i = w("path"), n(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"), n(i, "fill", "#111111"), n(e, "xmlns", "http://www.w3.org/2000/svg"), n(e, "width", "13"), n(e, "height", "13"), n(e, "viewBox", "0 0 13 13"), n(e, "fill", "none");
67
67
  },
68
68
  m(r, f) {
69
- v(r, e, f), g(e, i), t || (o = H(
69
+ _(r, e, f), g(e, i), t || (o = x(
70
70
  e,
71
71
  "click",
72
72
  /*click_handler_1*/
@@ -75,21 +75,21 @@ function x(s) {
75
75
  },
76
76
  p: m,
77
77
  d(r) {
78
- r && _(e), t = !1, o();
78
+ r && v(e), t = !1, o();
79
79
  }
80
80
  };
81
81
  }
82
- function N(s) {
82
+ function G(s) {
83
83
  let e, i = (
84
84
  /*show*/
85
85
  s[3] && M(s)
86
86
  );
87
87
  return {
88
88
  c() {
89
- i && i.c(), e = A();
89
+ i && i.c(), e = Z();
90
90
  },
91
91
  m(t, o) {
92
- i && i.m(t, o), v(t, e, o);
92
+ i && i.m(t, o), _(t, e, o);
93
93
  },
94
94
  p(t, [o]) {
95
95
  /*show*/
@@ -98,11 +98,11 @@ function N(s) {
98
98
  i: m,
99
99
  o: m,
100
100
  d(t) {
101
- t && _(e), i && i.d(t);
101
+ t && v(e), i && i.d(t);
102
102
  }
103
103
  };
104
104
  }
105
- function O(s, e, i) {
105
+ function I(s, e, i) {
106
106
  let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: r } = e, { videosrc: f } = e, u = !0, c = !1, l;
107
107
  const d = () => {
108
108
  i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
@@ -110,10 +110,10 @@ function O(s, e, i) {
110
110
  a.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
111
111
  }, z = () => {
112
112
  i(2, u = r === "false");
113
- }, D = () => {
113
+ }, E = () => {
114
114
  let a = document.createElement("style");
115
115
  a.innerHTML = t, l.appendChild(a);
116
- }, E = () => {
116
+ }, D = () => {
117
117
  let a = new URL(o), L = document.createElement("style");
118
118
  fetch(a.href).then((y) => y.text()).then((y) => {
119
119
  L.innerHTML = y, setTimeout(
@@ -124,12 +124,12 @@ function O(s, e, i) {
124
124
  );
125
125
  });
126
126
  };
127
- F(() => (window.addEventListener("message", h, !1), () => {
127
+ j(() => (window.addEventListener("message", h, !1), () => {
128
128
  window.removeEventListener("message", h);
129
129
  }));
130
- const W = () => d(), T = () => d();
131
- function j(a) {
132
- G[a ? "unshift" : "push"](() => {
130
+ const W = () => d(), q = () => d();
131
+ function B(a) {
132
+ A[a ? "unshift" : "push"](() => {
133
133
  l = a, i(1, l);
134
134
  });
135
135
  }
@@ -138,8 +138,8 @@ function O(s, e, i) {
138
138
  }, s.$$.update = () => {
139
139
  s.$$.dirty & /*ismobileview*/
140
140
  128 && r && z(), s.$$.dirty & /*clientstyling, customStylingContainer*/
141
- 34 && t && l && D(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
- 66 && o && l && E();
141
+ 34 && t && l && E(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
+ 66 && o && l && D();
143
143
  }, [
144
144
  f,
145
145
  l,
@@ -150,25 +150,25 @@ function O(s, e, i) {
150
150
  o,
151
151
  r,
152
152
  W,
153
- T,
154
- j
153
+ q,
154
+ B
155
155
  ];
156
156
  }
157
- class J extends q {
157
+ class K extends T {
158
158
  constructor(e) {
159
- super(), B(
159
+ super(), N(
160
160
  this,
161
161
  e,
162
- O,
163
- N,
164
- U,
162
+ I,
163
+ G,
164
+ R,
165
165
  {
166
166
  clientstyling: 5,
167
167
  clientstylingurl: 6,
168
168
  ismobileview: 7,
169
169
  videosrc: 0
170
170
  },
171
- I
171
+ J
172
172
  );
173
173
  }
174
174
  get clientstyling() {
@@ -196,7 +196,7 @@ class J extends q {
196
196
  this.$$set({ videosrc: e }), p();
197
197
  }
198
198
  }
199
- R(J, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
199
+ F(K, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
200
200
  export {
201
- J as default
201
+ K as default
202
202
  };
@@ -1,6 +1,6 @@
1
- import { S as q, b as B, f as p, c as R, a as U, d as Z, x as A, k as v, n as m, v as _, G as F, g as C, h as b, D as k, j as n, I as V, l as g, O as w, A as H, C as G } from "./CashierConfirmModal-DSousiGi.js";
2
- function I(s) {
3
- 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 T, b as N, s as R, f as p, c as U, n as m, e as v, m as _, x as Z, H as j, C as b, v as n, J as k, o as g, p as C, q as V, A, B as H, N as w, E as F } from "./CashierConfirmModal-4RYp7Eiq.js";
2
+ function J(s) {
3
+ U(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}");
4
4
  }
5
5
  function M(s) {
6
6
  let e, i, t, o, r, f, u, c = !/*desktopView*/
@@ -10,8 +10,8 @@ function M(s) {
10
10
  );
11
11
  return {
12
12
  c() {
13
- e = C("div"), c && c.c(), i = b(), t = C("div"), l && l.c(), o = b(), r = C("video"), f = C("source"), k(f.src, u = /*videosrc*/
14
- s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer"), V(
13
+ e = C("div"), c && c.c(), i = V(), t = C("div"), l && l.c(), o = V(), r = C("video"), f = C("source"), b(f.src, u = /*videosrc*/
14
+ s[0]) || n(f, "src", u), r.autoplay = !0, r.controls = !0, n(r, "controlslist", "nodownload"), n(r, "disablepictureinpicture", ""), n(t, "class", "CashierVideo"), n(e, "class", "CashierVideoWrapper"), n(e, "part", "CustomStylingContainer"), k(
15
15
  e,
16
16
  "CashierVideoWrapperDesktop",
17
17
  /*desktopView*/
@@ -19,15 +19,15 @@ function M(s) {
19
19
  );
20
20
  },
21
21
  m(d, h) {
22
- v(d, e, h), c && c.m(e, null), g(e, i), g(e, t), l && l.m(t, null), g(t, o), g(t, r), g(r, f), s[10](e);
22
+ _(d, e, h), c && c.m(e, null), g(e, i), g(e, t), l && l.m(t, null), g(t, o), g(t, r), g(r, f), s[10](e);
23
23
  },
24
24
  p(d, h) {
25
25
  /*desktopView*/
26
26
  d[2] ? c && (c.d(1), c = null) : c ? c.p(d, h) : (c = S(d), c.c(), c.m(e, i)), /*desktopView*/
27
27
  d[2] ? l ? l.p(d, h) : (l = x(d), l.c(), l.m(t, o)) : l && (l.d(1), l = null), h & /*videosrc*/
28
- 1 && !k(f.src, u = /*videosrc*/
28
+ 1 && !b(f.src, u = /*videosrc*/
29
29
  d[0]) && n(f, "src", u), h & /*desktopView*/
30
- 4 && V(
30
+ 4 && k(
31
31
  e,
32
32
  "CashierVideoWrapperDesktop",
33
33
  /*desktopView*/
@@ -35,7 +35,7 @@ function M(s) {
35
35
  );
36
36
  },
37
37
  d(d) {
38
- d && _(e), c && c.d(), l && l.d(), s[10](null);
38
+ d && v(e), c && c.d(), l && l.d(), s[10](null);
39
39
  }
40
40
  };
41
41
  }
@@ -46,7 +46,7 @@ function S(s) {
46
46
  e = C("div"), i = w("svg"), t = w("path"), n(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"), n(t, "fill", "#111111"), n(i, "xmlns", "http://www.w3.org/2000/svg"), n(i, "width", "13"), n(i, "height", "13"), n(i, "viewBox", "0 0 13 13"), n(i, "fill", "none"), n(e, "class", "CashierVideoHeader");
47
47
  },
48
48
  m(f, u) {
49
- v(f, e, u), g(e, i), g(i, t), o || (r = H(
49
+ _(f, e, u), g(e, i), g(i, t), o || (r = H(
50
50
  i,
51
51
  "click",
52
52
  /*click_handler*/
@@ -55,7 +55,7 @@ function S(s) {
55
55
  },
56
56
  p: m,
57
57
  d(f) {
58
- f && _(e), o = !1, r();
58
+ f && v(e), o = !1, r();
59
59
  }
60
60
  };
61
61
  }
@@ -66,7 +66,7 @@ function x(s) {
66
66
  e = w("svg"), i = w("path"), n(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"), n(i, "fill", "#111111"), n(e, "xmlns", "http://www.w3.org/2000/svg"), n(e, "width", "13"), n(e, "height", "13"), n(e, "viewBox", "0 0 13 13"), n(e, "fill", "none");
67
67
  },
68
68
  m(r, f) {
69
- v(r, e, f), g(e, i), t || (o = H(
69
+ _(r, e, f), g(e, i), t || (o = H(
70
70
  e,
71
71
  "click",
72
72
  /*click_handler_1*/
@@ -75,21 +75,21 @@ function x(s) {
75
75
  },
76
76
  p: m,
77
77
  d(r) {
78
- r && _(e), t = !1, o();
78
+ r && v(e), t = !1, o();
79
79
  }
80
80
  };
81
81
  }
82
- function N(s) {
82
+ function G(s) {
83
83
  let e, i = (
84
84
  /*show*/
85
85
  s[3] && M(s)
86
86
  );
87
87
  return {
88
88
  c() {
89
- i && i.c(), e = A();
89
+ i && i.c(), e = Z();
90
90
  },
91
91
  m(t, o) {
92
- i && i.m(t, o), v(t, e, o);
92
+ i && i.m(t, o), _(t, e, o);
93
93
  },
94
94
  p(t, [o]) {
95
95
  /*show*/
@@ -98,22 +98,22 @@ function N(s) {
98
98
  i: m,
99
99
  o: m,
100
100
  d(t) {
101
- t && _(e), i && i.d(t);
101
+ t && v(e), i && i.d(t);
102
102
  }
103
103
  };
104
104
  }
105
- function O(s, e, i) {
105
+ function I(s, e, i) {
106
106
  let { clientstyling: t = "" } = e, { clientstylingurl: o = "" } = e, { ismobileview: r } = e, { videosrc: f } = e, u = !0, c = !1, l;
107
107
  const d = () => {
108
108
  i(3, c = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
109
109
  }, h = (a) => {
110
110
  a.data.type == "ShowCashierVideoModal" && (i(3, c = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), a.data.type == "HideCashierVideoModal" && d();
111
- }, z = () => {
111
+ }, E = () => {
112
112
  i(2, u = r === "false");
113
- }, D = () => {
113
+ }, z = () => {
114
114
  let a = document.createElement("style");
115
115
  a.innerHTML = t, l.appendChild(a);
116
- }, E = () => {
116
+ }, D = () => {
117
117
  let a = new URL(o), L = document.createElement("style");
118
118
  fetch(a.href).then((y) => y.text()).then((y) => {
119
119
  L.innerHTML = y, setTimeout(
@@ -124,12 +124,12 @@ function O(s, e, i) {
124
124
  );
125
125
  });
126
126
  };
127
- F(() => (window.addEventListener("message", h, !1), () => {
127
+ j(() => (window.addEventListener("message", h, !1), () => {
128
128
  window.removeEventListener("message", h);
129
129
  }));
130
- const W = () => d(), T = () => d();
131
- function j(a) {
132
- G[a ? "unshift" : "push"](() => {
130
+ const W = () => d(), q = () => d();
131
+ function B(a) {
132
+ A[a ? "unshift" : "push"](() => {
133
133
  l = a, i(1, l);
134
134
  });
135
135
  }
@@ -137,9 +137,9 @@ function O(s, e, i) {
137
137
  "clientstyling" in a && i(5, t = a.clientstyling), "clientstylingurl" in a && i(6, o = a.clientstylingurl), "ismobileview" in a && i(7, r = a.ismobileview), "videosrc" in a && i(0, f = a.videosrc);
138
138
  }, s.$$.update = () => {
139
139
  s.$$.dirty & /*ismobileview*/
140
- 128 && r && z(), s.$$.dirty & /*clientstyling, customStylingContainer*/
141
- 34 && t && l && D(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
- 66 && o && l && E();
140
+ 128 && r && E(), s.$$.dirty & /*clientstyling, customStylingContainer*/
141
+ 34 && t && l && z(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
142
+ 66 && o && l && D();
143
143
  }, [
144
144
  f,
145
145
  l,
@@ -150,25 +150,25 @@ function O(s, e, i) {
150
150
  o,
151
151
  r,
152
152
  W,
153
- T,
154
- j
153
+ q,
154
+ B
155
155
  ];
156
156
  }
157
- class J extends q {
157
+ class K extends T {
158
158
  constructor(e) {
159
- super(), B(
159
+ super(), N(
160
160
  this,
161
161
  e,
162
- O,
163
- N,
164
- U,
162
+ I,
163
+ G,
164
+ R,
165
165
  {
166
166
  clientstyling: 5,
167
167
  clientstylingurl: 6,
168
168
  ismobileview: 7,
169
169
  videosrc: 0
170
170
  },
171
- I
171
+ J
172
172
  );
173
173
  }
174
174
  get clientstyling() {
@@ -196,7 +196,7 @@ class J extends q {
196
196
  this.$$set({ videosrc: e }), p();
197
197
  }
198
198
  }
199
- R(J, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
199
+ F(K, { clientstyling: {}, clientstylingurl: {}, ismobileview: {}, videosrc: {} }, [], [], !0);
200
200
  export {
201
- J as default
201
+ K as default
202
202
  };
@@ -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-BUhLJIX9.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
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-B6U1sEpL.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierPage-Bta_wcmm.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierPage-Oq46yP5A.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierPage-B5AOrnIR.js";
1
+ import { C as n } from "../components/CashierPage-DwwVZWaQ.js";
2
2
  function a(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-page",
3
- "version": "1.67.3",
3
+ "version": "1.68.0",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-page.cjs",
6
6
  "module": "esnext/cashier-page.js",