@everymatrix/cashier-page 1.72.2 → 1.73.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 (87) hide show
  1. package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-BCk4hvRj.js} +3 -3
  2. package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-DXlKhIue.js} +3 -3
  3. package/components/{CashierError-Zu3Whx-d.js → CashierError-BydkW7s_.js} +2 -2
  4. package/components/{CashierError-DfpdiheS.cjs → CashierError-Dpt_Z7yL.cjs} +1 -1
  5. package/components/{CashierError-yts9rF-i.js → CashierError-Dz_HsnJl.js} +2 -2
  6. package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-86wrgmgP.js} +2 -2
  7. package/components/{CashierHeader-B9cdsOYh.cjs → CashierHeader-BXKYku0i.cjs} +1 -1
  8. package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-DtS_U-De.js} +2 -2
  9. package/components/CashierIframeRedirect-BARMuRTc.cjs +1 -0
  10. package/components/CashierIframeRedirect-CmqcfGcT.js +429 -0
  11. package/components/CashierIframeRedirect-Xzpx4Rjk.js +429 -0
  12. package/components/CashierMethodDetails-Cf6KUGlj.cjs +99 -0
  13. package/components/{CashierMethodDetails-DhkT1TEG.js → CashierMethodDetails-DaUlJ18Q.js} +3451 -2898
  14. package/components/{CashierMethodDetails-D1ZeLJFI.js → CashierMethodDetails-oVkmdGDk.js} +3542 -2989
  15. package/components/CashierMethodsList-BKtn4kYZ.js +859 -0
  16. package/components/CashierMethodsList-BmNbGD7c.cjs +1 -0
  17. package/components/{CashierMethodsList-z8dlFfeS.js → CashierMethodsList-bnXzA9E8.js} +397 -402
  18. package/components/CashierModal-B4b12-Am.js +229 -0
  19. package/components/CashierModal-C-yyjQ8m.cjs +1 -0
  20. package/components/CashierModal-DCgiaC4V.js +229 -0
  21. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BZCaBrRm.js} +1 -1
  22. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CWqwdi55.js} +1 -1
  23. package/components/{CashierPage-DagcI5W-.js → CashierPage-BhUYgsyn.js} +628 -475
  24. package/components/CashierPage-K6Sfcy3_.cjs +1 -0
  25. package/components/{CashierPage-BbiDGdpa.js → CashierPage-qGww6KeO.js} +629 -476
  26. package/components/CashierReceiptPage-B5GxOKJ9.cjs +1 -0
  27. package/components/CashierReceiptPage-BePAYhQV.js +1451 -0
  28. package/components/CashierReceiptPage-Hvc3tNuq.js +1453 -0
  29. package/components/CashierSessionExpirationModal-BCKPn-ln.cjs +2 -0
  30. package/components/CashierSessionExpirationModal-C24hf-_h.js +1205 -0
  31. package/components/CashierSessionExpirationModal-DfMX7unr.js +1205 -0
  32. package/components/CashierSpinner-BdeNFm1c.js +79 -0
  33. package/components/CashierSpinner-COjPdCUV.js +79 -0
  34. package/components/CashierSpinner-CpkB8Zoj.cjs +1 -0
  35. package/components/CashierTransactionHistory-BgDq7hN9.js +614 -0
  36. package/components/CashierTransactionHistory-BtkomNSc.js +614 -0
  37. package/components/CashierTransactionHistory-siYwxijY.cjs +1 -0
  38. package/components/{CashierVerifications-8ZmmqlLE.js → CashierVerifications-7QimQj7T.js} +324 -277
  39. package/components/CashierVerifications-CjEiYZ7G.cjs +1 -0
  40. package/components/{CashierVerifications-DJ8j0wXs.js → CashierVerifications-tYl7M23B.js} +332 -285
  41. package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-CM_ySf75.js} +91 -94
  42. package/components/CashierVideoModal-CZSRGjh-.cjs +1 -0
  43. package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-D4tXmX3D.js} +91 -94
  44. package/es2015/cashier-page.cjs +1 -1
  45. package/es2015/cashier-page.js +1 -1
  46. package/esnext/cashier-page.js +1 -1
  47. package/package.json +1 -1
  48. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  49. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  50. package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
  51. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  52. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  53. package/stencil/{ui-image-C7s6Uvn5.js → ui-image-BWJXFWH1.js} +1 -1
  54. package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  55. package/stencil/{ui-image-CHeV8e9p.js → ui-image-DIEeZy5u.js} +1 -1
  56. package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
  57. package/stencil/ui-skeleton-9boHSjtG.js +29 -0
  58. package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
  59. package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
  60. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
  61. package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
  62. package/components/CashierIframeRedirect-3Ttb1Wdk.js +0 -378
  63. package/components/CashierIframeRedirect-BIMJNSib.js +0 -378
  64. package/components/CashierIframeRedirect-NF0DKl7A.cjs +0 -1
  65. package/components/CashierMethodDetails-Cgu5TXSP.cjs +0 -84
  66. package/components/CashierMethodsList-Bd0awrSP.js +0 -864
  67. package/components/CashierMethodsList-D4ou6zMr.cjs +0 -1
  68. package/components/CashierModal-BrwIBn9a.js +0 -232
  69. package/components/CashierModal-BuM2Yq-y.cjs +0 -1
  70. package/components/CashierModal-ZfKvGxFq.js +0 -232
  71. package/components/CashierPage-eEO1eHcj.cjs +0 -1
  72. package/components/CashierReceiptPage--SlIuxeH.js +0 -1174
  73. package/components/CashierReceiptPage-Si7b2HWz.js +0 -1172
  74. package/components/CashierReceiptPage-dUPhckvS.cjs +0 -1
  75. package/components/CashierSessionExpirationModal-BmFSh_r0.js +0 -1208
  76. package/components/CashierSessionExpirationModal-CVnU7oKj.cjs +0 -2
  77. package/components/CashierSessionExpirationModal-QHzlcCYu.js +0 -1208
  78. package/components/CashierSpinner-BAfTKICK.js +0 -71
  79. package/components/CashierSpinner-BhmndmKG.cjs +0 -1
  80. package/components/CashierSpinner-y6HodxHT.js +0 -71
  81. package/components/CashierTransactionHistory-CBJrAtki.js +0 -569
  82. package/components/CashierTransactionHistory-DwYyVBtn.cjs +0 -1
  83. package/components/CashierTransactionHistory-LW9NA8-t.js +0 -569
  84. package/components/CashierVerifications-CYRbG7DV.cjs +0 -1
  85. package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
  86. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  87. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),T=require("./CashierError-Dpt_Z7yL.cjs"),O=require("./CashierMethodDetails-Cf6KUGlj.cjs"),I=require("./CashierIframeRedirect-BARMuRTc.cjs");function Y(r,t){T.addMessages(r,t)}function ke(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const K={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-CZSRGjh-.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function _e(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 G(r,t,o){const a=r.slice();return a[54]=t[o],a[56]=o,a}function be(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]=J(G(r,c,f));let m=r[7]&&X(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=G(f,c,l);d[l]?d[l].p(y,h):(d[l]=J(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=X(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 Ve(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 Z(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 J(r){let t,o,a,s,c=r[54]+"",d,m,f,h,l=r[4].length>1&&r[56]===0&&Z(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=Z(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 X(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 Pe(r){let t;function o(c,d){if(c[9])return Ve;if(c[4])return be}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 De="verification_explanation_video_widgets.MP4";function Ce(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,_,E=new Set,R=new Set,C,S,M,B=!0,U=!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 $=[g.InProgress,g.Referred,g.AwaitingForResponse],ee=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(u=>{Y(u,n[u])})}).catch(n=>{console.log(n)})};Object.keys(K).forEach(e=>{Y(e,K[e])});const ie=()=>{ke(d)},j=()=>{o(20,S=oe());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=te(p==null?void 0:p.Verifications);C=ne(k),C.VerificationStatuses.forEach(A=>{A.VerificationUrlType!=="Widget"&&E.add(A.Vendor)}),o(4,M=N())}).finally(()=>o(9,F=!1))},te=e=>e?e.sort((n,u)=>new Date(u.Created).getTime()-new Date(n.Created).getTime()):[],re=()=>{s&&j()},oe=()=>{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""},ne=e=>{var u;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ae(e);if(n&&n.length){const p=se(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(u=p.Flags)==null?void 0:u.DeferredUrlKey,VerificationStatuses:H(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:H(e,[g.Failed])}},se=e=>e.reduce((n,u)=>n?new Date(n)<new Date(u)?u:n:u,0),H=(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}}),ae=e=>e.filter(n=>$.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||le(n)||ce(n):!1),le=e=>{const n=e.Documents&&e.VendorName===V.Manual,u=e.Documents&&e.Documents.some(p=>p.Status===x.Requested);return n&&u},ce=e=>e.VendorName===V.ShuftiPro&&e.Status===g.Referred,N=()=>{switch(C.VerificationSummaryStatus){case g.InProgress:const e=[];return E.forEach(n=>{e.push(fe(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},fe=e=>{const n=C.VerificationStatuses.filter(u=>u.Vendor===e);if(e===V.ShuftiPro)return de(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})}},de=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]=ue(b,me(b.Type)))});let k=n.every(b=>R.has(b)),A=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(A,{values:u})},ue=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,me=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];R.add(u),o(4,M=N())}return}n===0&&o(5,B=!B)},he=()=>{o(6,U=v==="false")},pe=()=>{o(8,L=S+"/"+d+"/"+De);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,q=e.ok)})}catch(e){o(7,q=!1)}},W=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},ge=(e,n)=>z(n,e),ve=(e,n)=>z(n,e),we=()=>W();function ye(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&&ie(),r.$$.dirty[0]&335872&&c&&l&&w&&j(),r.$$.dirty[0]&335872&&c&&!l&&w&&re(),r.$$.dirty[0]&32768&&m&&ee(),r.$$.dirty[0]&9&&f&&_&&I.setClientStyling(),r.$$.dirty[0]&10&&h&&_&&I.setClientStylingURL(),r.$$.dirty[0]&4&&v&&he(),r.$$.dirty[0]&1048576&&S&&pe(),r.$$.dirty[0]&524296&&D&&_&&I.setStreamStyling(_,`${D}.Style`)},[f,h,v,_,M,B,U,q,L,F,a,z,W,c,d,m,l,y,w,D,S,ge,ve,we,ye]}class Q extends i.SvelteComponent{constructor(t){super(),i.init(this,t,Ce,Pe,i.safe_not_equal,{endpoint:13,lang:14,translationurl:15,clientstyling:0,clientstylingurl:1,session:16,customerid:17,ismobileview:2,playersession:18,mbsource:19},_e,[-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(Q,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{},mbsource:{}},[],[],!0);exports.default=Q;