@everymatrix/cashier-page 1.85.16 → 1.85.18

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 (82) hide show
  1. package/components/{CashierCarousel-D9RhCULN.js → CashierCarousel-Cf2c1vPp.js} +1938 -1376
  2. package/components/{CashierCarousel-C-jIotRi.js → CashierCarousel-CsnmOP94.js} +1961 -1398
  3. package/components/CashierCarousel-DHmjrgBC.cjs +23 -0
  4. package/components/CashierError-BDmChuIE.js +438 -0
  5. package/components/CashierError-BIiEXbdF.js +438 -0
  6. package/components/CashierError-CLWqWwfU.cjs +1 -0
  7. package/components/CashierHeader-CP7RROYr.cjs +1 -0
  8. package/components/{CashierHeader-CK_NVBvX.js → CashierHeader-Cecv5g56.js} +51 -51
  9. package/components/{CashierHeader-Z4vR_fbH.js → CashierHeader-Dd5b4-yJ.js} +47 -47
  10. package/components/CashierIframeRedirect-BXrhvi-f.cjs +1 -0
  11. package/components/{CashierIframeRedirect-Cae_sEXq.js → CashierIframeRedirect-DMYVav-v.js} +51 -51
  12. package/components/{CashierIframeRedirect-Cs3dAZqE.js → CashierIframeRedirect-reE-yTgQ.js} +45 -45
  13. package/components/CashierMethodDetails-DMWm-2jm.js +9918 -0
  14. package/components/CashierMethodDetails-Dqye22rm.cjs +85 -0
  15. package/components/CashierMethodDetails-wpPiw7iF.js +9878 -0
  16. package/components/CashierMethodsList-3cUFLT6G.js +825 -0
  17. package/components/CashierMethodsList-Cu_kh22f.cjs +1 -0
  18. package/components/CashierMethodsList-DLD2m0bS.js +810 -0
  19. package/components/CashierModal-C-jze_SD.js +342 -0
  20. package/components/CashierModal-DVeVHCTj.cjs +1 -0
  21. package/components/CashierModal-Dclaqxyx.js +358 -0
  22. package/components/{CashierNotifications-64xrf21d.js → CashierNotifications-BVUb_REU.js} +13 -13
  23. package/components/{CashierNotifications-Cot8tKyV.js → CashierNotifications-COlT367w.js} +13 -13
  24. package/components/{CashierNotifications-o1UTpxCw.cjs → CashierNotifications-DdrhkPqp.cjs} +1 -1
  25. package/components/CashierPage-BZrMKgWP.js +3848 -0
  26. package/components/CashierPage-CNxxSYGB.cjs +1 -0
  27. package/components/CashierPage-DXq4FlWN.js +3822 -0
  28. package/components/{CashierReceiptPage-ctSAsYol.js → CashierReceiptPage-BDZFgJSl.js} +894 -744
  29. package/components/{CashierReceiptPage-xNlmU_u-.js → CashierReceiptPage-aqMEl6Er.js} +887 -737
  30. package/components/CashierReceiptPage-fKiQGusu.cjs +26 -0
  31. package/components/{CashierSessionExpirationModal-DbkIQJ-J.js → CashierSessionExpirationModal-BqgXO3EK.js} +238 -238
  32. package/components/CashierSessionExpirationModal-UM35srIk.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-DJxx7PT2.js → CashierSessionExpirationModal-lONAKt8s.js} +202 -202
  34. package/components/{CashierSpinner-fUvoz21a.js → CashierSpinner-BQWOaYce.js} +8 -8
  35. package/components/{CashierSpinner-DOCzNsD8.cjs → CashierSpinner-D5McPkCt.cjs} +1 -1
  36. package/components/{CashierSpinner-CIpXwm9I.js → CashierSpinner-DZSuVNPM.js} +6 -6
  37. package/components/CashierStepUp-DWd3cylJ.cjs +1 -0
  38. package/components/CashierStepUp-DyfuU9cc.js +1109 -0
  39. package/components/CashierStepUp-sBUhsV5t.js +1070 -0
  40. package/components/CashierTransactionHistory-DG7eCAHQ.js +1305 -0
  41. package/components/CashierTransactionHistory-EZ0xgsVJ.js +1305 -0
  42. package/components/CashierTransactionHistory-MUYg9ooO.cjs +1 -0
  43. package/components/CashierVerifications-BbUQaFnO.cjs +1 -0
  44. package/components/{CashierVerifications-DyEtjk9T.js → CashierVerifications-Cz6b5MUe.js} +159 -159
  45. package/components/{CashierVerifications-OqNAPlvP.js → CashierVerifications-kIOoUzVh.js} +144 -144
  46. package/components/{TxnStatusIcon-Dx4SpBKR.cjs → TxnStatusIcon-BhtPQm1B.cjs} +1 -1
  47. package/components/{TxnStatusIcon-C5YEVJGC.js → TxnStatusIcon-DMKCkAXd.js} +1 -1
  48. package/components/{TxnStatusIcon-Cdbn57Qc.js → TxnStatusIcon-ty2g5_He.js} +1 -1
  49. package/components/{TxnTypeIcons-DaYTcY0u.js → TxnTypeIcons-B5CYl9NW.js} +1 -1
  50. package/components/{TxnTypeIcons-D-p9WLvQ.cjs → TxnTypeIcons-CyHXLkXz.cjs} +1 -1
  51. package/components/{TxnTypeIcons-Dl8aWDV4.js → TxnTypeIcons-D_bSXM7r.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +2 -2
  54. package/esnext/cashier-page.js +2 -2
  55. package/package.json +1 -1
  56. package/stencil/{index-b2193545-CEVSYa3a.cjs → index-b2193545-B5Q7rnAU.cjs} +1 -1
  57. package/stencil/{ui-skeleton-CjyC3-3H.cjs → ui-skeleton-UxIIZ8UD.cjs} +1 -1
  58. package/stencil/{ui-skeleton-ed169f8f-Cb3lsf1V.cjs → ui-skeleton-ed169f8f-BEwquWmd.cjs} +1 -1
  59. package/components/CashierCarousel-DXPbv83E.cjs +0 -23
  60. package/components/CashierError-BrNzlEVN.js +0 -478
  61. package/components/CashierError-C8pJvoqH.cjs +0 -1
  62. package/components/CashierError-eoaZt-lY.js +0 -478
  63. package/components/CashierHeader-B3IckLiD.cjs +0 -1
  64. package/components/CashierIframeRedirect-CdQkuIPa.cjs +0 -1
  65. package/components/CashierMethodDetails-C-vMOTBK.cjs +0 -85
  66. package/components/CashierMethodDetails-CHTQD5q8.js +0 -9014
  67. package/components/CashierMethodDetails-nseWnQWW.js +0 -8995
  68. package/components/CashierMethodsList-Bk6wZ8bj.js +0 -733
  69. package/components/CashierMethodsList-CDXei8fp.cjs +0 -1
  70. package/components/CashierMethodsList-DmYBXQ0H.js +0 -745
  71. package/components/CashierModal-By3PyyVz.js +0 -268
  72. package/components/CashierModal-D2cxw8Kv.cjs +0 -1
  73. package/components/CashierModal-pKGYmx2d.js +0 -268
  74. package/components/CashierPage-Bvp8N4fC.cjs +0 -1
  75. package/components/CashierPage-DYIYpRj6.js +0 -2619
  76. package/components/CashierPage-Ddeo-vHf.js +0 -2619
  77. package/components/CashierReceiptPage-C0VpFZGT.cjs +0 -26
  78. package/components/CashierSessionExpirationModal-DgpP9ZIj.cjs +0 -2
  79. package/components/CashierTransactionHistory-8T01T0tU.js +0 -1305
  80. package/components/CashierTransactionHistory-CIy5cCml.cjs +0 -1
  81. package/components/CashierTransactionHistory-Cd8u6Bhf.js +0 -1305
  82. package/components/CashierVerifications-5x8_YW9j.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-DXPbv83E.cjs"),q=require("./CashierMethodDetails-C-vMOTBK.cjs");function H(n,t){e.addMessages(n,t)}function ge(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const j={en:{verificationsRequired:"Verifications Required","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:{verificationsRequired:"Doğrulamalar Gerekli","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:{verificationsRequired:"Potrebne su provjere","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"}};function ve(n){e.append_styles(n,"svelte-16iaxkf","*,*::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}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--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%;background-color:var(--emw--color-white, #ffffff);border-radius:10px}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.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(--emw--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:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--emw--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}.text a{color:var(--emw--color-primary, #3854FF);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--emw--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(--emw--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;fill:var(--emw--color-primary, #3854FF)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #3854FF);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function U(n,t,r){const s=n.slice();return s[53]=t[r],s}function we(n){let t,r=n[3].length>0&&N(n);return{c(){t=e.element("div"),r&&r.c(),e.attr(t,"class","CashierVerificationsWrapper")},m(s,a){e.insert(s,t,a),r&&r.m(t,null)},p(s,a){s[3].length>0?r?r.p(s,a):(r=N(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ye(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0])},m(r,s){e.insert(r,t,s)},p(r,s){s[0]&2&&e.set_custom_element_data(t,"clientstylingurl",r[1]),s[0]&1&&e.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&e.detach(t)}}}function N(n){let t,r,s,a,l,d,g,P=n[8]("verificationsRequired")+"",w,k,C,D,v,_,T,x,b=e.ensure_array_like(n[3]),h=[];for(let f=0;f<b.length;f+=1)h[f]=W(U(n,b,f));let m=n[6]&&Y(n);return{c(){t=e.element("div"),r=e.svg_element("svg"),s=e.svg_element("path"),a=e.svg_element("path"),l=e.svg_element("path"),d=e.space(),g=e.element("p"),w=e.text(P),k=e.space(),C=e.element("span"),C.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',D=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();_=e.space(),m&&m.c(),e.attr(s,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),e.attr(s,"stroke","#6E738F"),e.attr(s,"stroke-width","2"),e.attr(s,"stroke-linecap","round"),e.attr(s,"stroke-linejoin","round"),e.attr(a,"d","M12 8V12"),e.attr(a,"stroke","#6E738F"),e.attr(a,"stroke-width","2"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(l,"d","M12 16H12.01"),e.attr(l,"stroke","#6E738F"),e.attr(l,"stroke-width","2"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(r,"width","24"),e.attr(r,"height","24"),e.attr(r,"viewBox","0 0 24 24"),e.attr(r,"fill","none"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"class","CashierVerificationChevron"),e.toggle_class(C,"ShowVerifications",n[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",n[4])},m(f,V){e.insert(f,t,V),e.append(t,r),e.append(r,s),e.append(r,a),e.append(r,l),e.append(t,d),e.append(t,g),e.append(g,w),e.append(t,k),e.append(t,C),e.insert(f,D,V),e.insert(f,v,V);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,_),m&&m.m(v,null),T||(x=e.listen(t,"click",n[9]),T=!0)},p(f,V){if(V[0]&256&&P!==(P=f[8]("verificationsRequired")+"")&&e.set_data(w,P),V[0]&16&&e.toggle_class(C,"ShowVerifications",f[4]),V[0]&8){b=e.ensure_array_like(f[3]);let u;for(u=0;u<b.length;u+=1){const F=U(f,b,u);h[u]?h[u].p(F,V):(h[u]=W(F),h[u].c(),h[u].m(v,_))}for(;u<h.length;u+=1)h[u].d(1);h.length=b.length}f[6]?m?m.p(f,V):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),V[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(D),e.detach(v)),e.destroy_each(h,f),m&&m.d(),T=!1,x()}}}function W(n){let t,r,s,a,l=n[53]+"";return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',s=e.space(),a=e.element("p"),e.attr(r,"class","IconVerification"),e.attr(a,"class","text"),e.attr(t,"class","CashierVerificationMessage Test")},m(d,g){e.insert(d,t,g),e.append(t,r),e.append(t,s),e.append(t,a),a.innerHTML=l},p(d,g){g[0]&8&&l!==(l=d[53]+"")&&(a.innerHTML=l)},d(d){d&&e.detach(t)}}}function Y(n){let t,r,s,a,l=n[8]("verification.video.how-to")+"",d,g,P;return{c(){t=e.element("div"),r=e.element("div"),r.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>',s=e.space(),a=e.element("div"),d=e.text(l),e.attr(r,"class","IconVideo"),e.attr(a,"class","CashierVerificationVideoLink"),e.toggle_class(a,"CashierVerificationVideoLinkDesktop",n[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,k){e.insert(w,t,k),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(P=e.listen(t,"click",n[10]),g=!0)},p(w,k){k[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),k[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,P()}}}function ke(n){let t;function r(l,d){if(l[7])return ye;if(l[3])return we}let s=r(n),a=s&&s(n);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",n[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),n[19](t)},p(l,d){s===(s=r(l))&&a?a.p(l,d):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(t,null))),d[0]&32&&e.toggle_class(t,"CashierVerificationsDesktop",l[5])},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a&&a.d(),n[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function Pe(n,t,r){let s,a;e.component_subscribe(n,e.$format,i=>r(8,s=i)),e.component_subscribe(n,q.xPaymentSessionToken,i=>r(27,a=i)),q.dayjs.extend(q.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:P=""}=t,{clientstylingurl:w=""}=t,{session:k=""}=t,{customerid:C=""}=t,{playersession:D=""}=t,{mbsource:v=""}=t,_,T=new Set,x=new Set,b,h,m,f=!1,V=!0,u=!1,F="",L=!1,Z=window.navigator.userAgent;var M;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(M||(M={}));var E;(function(i){i.Requested="Requested"})(E||(E={}));var y;(function(i){i.Unknown="Unknown",i.Unverified="Unverified",i.InProgress="InProgress",i.Failed="Failed",i.Verified="Verified",i.Referred="Referred",i.True="True",i.False="False",i.AwaitingForResponse="AwaitingForResponse"})(y||(y={}));var O;(function(i){i.Unknown="Unknown",i.Documents="Documents",i.Age="Age",i.Pep="Pep",i.Sanction="Sanction",i.Aml="Aml",i.ProofOfAddress="ProofOfAddress",i.SourceOfWealth="SourceOfWealth",i.SocialMedia="SocialMedia",i.Biometric="Biometric"})(O||(O={}));const z=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",z),ue(),()=>{window.removeEventListener("message",z)}));const G=[y.InProgress,y.Referred,y.AwaitingForResponse],J=()=>{let i=g;if(i)return fetch(i).then(o=>o.json()).then(o=>{Object.keys(o).forEach(c=>{H(c,o[c])})}).catch(o=>{console.log(o)})};Object.keys(j).forEach(i=>{H(i,j[i])});const X=()=>{ge(d)},I=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${C}/verification/GetKYCCustomerStatus?language=${d}`),o=new Headers;o.append("accept","application/json"),o.append("Content-Type","application/json"),o.append("x-sessionid",`${D}`),o.append("X-Client-Request-Timestamp",q.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:o,body:JSON.stringify({})};r(7,L=!0),fetch(i,c).then(p=>p.json()).then(p=>{const S=Q(p==null?void 0:p.Verifications);b=ie(S),b.VerificationStatuses.forEach(B=>{B.VerificationUrlType!=="Widget"&&T.add(B.Vendor)}),r(3,m=se())}).finally(()=>r(7,L=!1))},Q=i=>i?i.sort((o,c)=>new Date(c.Created).getTime()-new Date(o.Created).getTime()):[],$=()=>{a&&I()},ee=()=>{let i=(k||a).split(".")[1];if(i){let o=JSON.parse(atob(i));return o.cdn+"/cashier/operator-assets/"+(o==null?void 0:o.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:y.Unverified,VerificationStatuses:[]};const o=re(i);if(o&&o.length){const p=te(o);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(o,p.Status)}}else return{VerificationSummaryStatus:i.some(S=>S.Status===y.Failed)?y.Failed:y.Verified,VerificationStatuses:R(i,[y.Failed])}},te=i=>i.reduce((o,c)=>o?new Date(o)<new Date(c)?c:o:c,0),R=(i,o)=>i.filter(c=>o.includes(c.Status)).map(c=>{var p,S;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(S=c.FlowInfo)==null?void 0:S.Url}}),re=i=>i.filter(o=>G.includes(o.Status)?o.FlowInfo&&o.FlowInfo.Url||oe(o)||ne(o):!1),oe=i=>{const o=i.Documents&&i.VendorName===M.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===E.Requested);return o&&c},ne=i=>i.VendorName===M.ShuftiPro&&i.Status===y.Referred,se=()=>{switch(b.VerificationSummaryStatus){case y.InProgress:const i=[];return T.forEach(o=>{i.push(ae(o))}),i;case y.Referred:return[s("verification.idenfy.referred-awaiting")];case y.Failed:return[s("verification.message.failed")]}},ae=i=>{const o=b.VerificationStatuses.filter(c=>c.Vendor===i);if(i===M.ShuftiPro)return le(o);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const o=[],c={},p=[O.Biometric,O.Documents,O.ProofOfAddress];i.forEach(A=>{p.includes(A.Type)&&(o.push(A.Type),c[A.Type]=ce(A,fe(A.Type)))});let S=o.every(A=>x.has(A)),B=`verification.shuftipro.in-progress.${o.sort().join(".")}`;return S?s("verification.shuftipro.validations-started"):s(B,{values:c})},ce=(i,o)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${o}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,V=!e.isMobile(Z))},he=()=>{F=h+"/"+d+"/"+Ve;try{fetch(F,{method:"HEAD"}).then(i=>{r(6,u=i.ok)})}catch(i){r(6,u=!1)}},pe=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:F}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{_=i,r(2,_)})}return n.$$set=i=>{"endpoint"in i&&r(11,l=i.endpoint),"lang"in i&&r(12,d=i.lang),"translationurl"in i&&r(13,g=i.translationurl),"clientstyling"in i&&r(0,P=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,k=i.session),"customerid"in i&&r(15,C=i.customerid),"playersession"in i&&r(16,D=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&4096&&d&&X(),n.$$.dirty[0]&83968&&l&&k&&D&&I(),n.$$.dirty[0]&83968&&l&&!k&&D&&$(),n.$$.dirty[0]&8192&&g&&J(),n.$$.dirty[0]&5&&P&&_&&e.setClientStyling(),n.$$.dirty[0]&6&&w&&_&&e.setClientStylingURL(),n.$$.dirty[0]&262144&&h&&he(),n.$$.dirty[0]&131076&&v&&_&&e.setStreamStyling(_,`${v}.Style`)},[P,w,_,m,f,V,u,L,s,de,pe,l,d,g,k,C,D,v,h,me]}class K extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Pe,ke,e.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},ve,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),e.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),e.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=K;