@everymatrix/cashier-page 1.87.2 → 1.87.4

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 (29) hide show
  1. package/components/{CashierError-DzvJtXEF.js → CashierError-B7A15YvS.js} +61 -57
  2. package/components/CashierError-BvD7radj.cjs +1 -0
  3. package/components/{CashierError-BCO7xQlq.js → CashierError-D0BJZtGN.js} +61 -57
  4. package/components/{CashierMethodDetails-Cf8LFTUj.js → CashierMethodDetails-BdlHR1PC.js} +2 -2
  5. package/components/{CashierMethodDetails-gziX4hTy.cjs → CashierMethodDetails-CjL5-po_.cjs} +2 -2
  6. package/components/{CashierMethodDetails-Cq_cbG1m.js → CashierMethodDetails-CnWc6Jl5.js} +2 -2
  7. package/components/{CashierMethodsList-BUz7wpzU.cjs → CashierMethodsList-Bkhyrkpj.cjs} +1 -1
  8. package/components/{CashierMethodsList-B8RzOTH2.js → CashierMethodsList-Bt8EUCAN.js} +1 -1
  9. package/components/{CashierMethodsList-Cb0U2qDK.js → CashierMethodsList-DjbJRqd4.js} +1 -1
  10. package/components/{CashierPage-BNe2n6x3.js → CashierPage-BW0dTggU.js} +6 -6
  11. package/components/{CashierPage-VS7IiCyh.js → CashierPage-Cj-JwUP8.js} +6 -6
  12. package/components/{CashierPage-CgQAOtkb.cjs → CashierPage-hOVFrtIF.cjs} +1 -1
  13. package/components/{CashierReceiptPage-BTqVv8Gm.js → CashierReceiptPage-CCi_X5vb.js} +1 -1
  14. package/components/{CashierReceiptPage-oLP94Rg3.js → CashierReceiptPage-CK3MwTyw.js} +1 -1
  15. package/components/{CashierReceiptPage-BnFjQy-B.cjs → CashierReceiptPage-DWg3cN1R.cjs} +1 -1
  16. package/components/{CashierSessionExpirationModal-DfGtyO0n.js → CashierSessionExpirationModal-ByMDJhaE.js} +2 -2
  17. package/components/{CashierSessionExpirationModal-Bh8U8OJp.js → CashierSessionExpirationModal-CFRMQOsS.js} +2 -2
  18. package/components/{CashierSessionExpirationModal-BTEYVGrw.cjs → CashierSessionExpirationModal-k_a6y_b-.cjs} +1 -1
  19. package/components/{CashierTransactionHistory-BwnWNBk-.cjs → CashierTransactionHistory-BNiGA4I-.cjs} +1 -1
  20. package/components/{CashierTransactionHistory-Dce40QSf.js → CashierTransactionHistory-CU8DuAJC.js} +2 -2
  21. package/components/{CashierTransactionHistory-A_BJgZ3T.js → CashierTransactionHistory-D8BLMoXS.js} +2 -2
  22. package/components/{CashierVerifications-DdnPbA-r.js → CashierVerifications-DOSd5kn7.js} +1 -1
  23. package/components/{CashierVerifications-DjPLSTkE.cjs → CashierVerifications-Ddy4p3B5.cjs} +1 -1
  24. package/components/{CashierVerifications-B7U2f1XB.js → CashierVerifications-DkGXFNAT.js} +1 -1
  25. package/es2015/cashier-page.cjs +1 -1
  26. package/es2015/cashier-page.js +1 -1
  27. package/esnext/cashier-page.js +1 -1
  28. package/package.json +1 -1
  29. package/components/CashierError-Bi6R1tHR.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-1mMP8tyv.cjs"),q=require("./CashierMethodDetails-gziX4hTy.cjs");function H(o,t){e.addMessages(o,t)}function ge(o){e.init({fallbackLocale:"en"}),e.$locale.set(o)}const U={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"}};function ve(o){e.append_styles(o,"svelte-etf668",'*,*::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:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.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:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;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;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));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:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);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 j(o,t,r){const s=o.slice();return s[53]=t[r],s}function we(o){let t,r=o[3].length>0&&W(o);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=W(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ke(o){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",o[1]),e.set_custom_element_data(t,"clientstyling",o[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 W(o){let t,r,s,a,l,d,g,_=o[8]("verificationsRequired")+"",w,y,S,P,v,V,M,z,C=e.ensure_array_like(o[3]),h=[];for(let f=0;f<C.length;f+=1)h[f]=N(j(o,C,f));let m=o[6]&&Y(o);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(_),y=e.space(),S=e.element("span"),S.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>',P=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();V=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(S,"class","CashierVerificationChevron"),e.toggle_class(S,"ShowVerifications",o[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",o[4])},m(f,b){e.insert(f,t,b),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,y),e.append(t,S),e.insert(f,P,b),e.insert(f,v,b);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,V),m&&m.m(v,null),M||(z=e.listen(t,"click",o[9]),M=!0)},p(f,b){if(b[0]&256&&_!==(_=f[8]("verificationsRequired")+"")&&e.set_data(w,_),b[0]&16&&e.toggle_class(S,"ShowVerifications",f[4]),b[0]&8){C=e.ensure_array_like(f[3]);let u;for(u=0;u<C.length;u+=1){const A=j(f,C,u);h[u]?h[u].p(A,b):(h[u]=N(A),h[u].c(),h[u].m(v,V))}for(;u<h.length;u+=1)h[u].d(1);h.length=C.length}f[6]?m?m.p(f,b):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),b[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(P),e.detach(v)),e.destroy_each(h,f),m&&m.d(),M=!1,z()}}}function N(o){let t,r,s,a,l=o[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(o){let t,r,s,a,l=o[8]("verification.video.how-to")+"",d,g,_;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",o[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,y){e.insert(w,t,y),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(_=e.listen(t,"click",o[10]),g=!0)},p(w,y){y[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),y[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,_()}}}function ye(o){let t;function r(l,d){if(l[7])return ke;if(l[3])return we}let s=r(o),a=s&&s(o);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",o[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),o[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(),o[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function be(o,t,r){let s,a;e.component_subscribe(o,e.$format,i=>r(8,s=i)),e.component_subscribe(o,q.xPaymentSessionToken,i=>r(27,a=i)),q.dayjs.extend(q.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:_=""}=t,{clientstylingurl:w=""}=t,{session:y=""}=t,{customerid:S=""}=t,{playersession:P=""}=t,{mbsource:v=""}=t,V,M=new Set,z=new Set,C,h,m,f=!1,b=!0,u=!1,A="",B=!1,K=window.navigator.userAgent;var T;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(T||(T={}));var F;(function(i){i.Requested="Requested"})(F||(F={}));var k;(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"})(k||(k={}));var L;(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"})(L||(L={}));const E=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",E),ue(),()=>{window.removeEventListener("message",E)}));const Z=[k.InProgress,k.Referred,k.AwaitingForResponse],G=()=>{let i=g;if(i)return fetch(i).then(n=>n.json()).then(n=>{Object.keys(n).forEach(c=>{H(c,n[c])})}).catch(n=>{console.log(n)})};Object.keys(U).forEach(i=>{H(i,U[i])});const J=()=>{ge(d)},I=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${S}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${P}`),n.append("X-Client-Request-Timestamp",q.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:n,body:JSON.stringify({})};r(7,B=!0),fetch(i,c).then(p=>p.json()).then(p=>{const D=Q(p==null?void 0:p.Verifications);C=ie(D),C.VerificationStatuses.forEach(O=>{O.VerificationUrlType!=="Widget"&&M.add(O.Vendor)}),r(3,m=se())}).finally(()=>r(7,B=!1))},Q=i=>i?i.sort((n,c)=>new Date(c.Created).getTime()-new Date(n.Created).getTime()):[],$=()=>{a&&I()},ee=()=>{let i=(y||a).split(".")[1];if(i){let n=JSON.parse(atob(i));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:k.Unverified,VerificationStatuses:[]};const n=re(i);if(n&&n.length){const p=te(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(n,p.Status)}}else return{VerificationSummaryStatus:i.some(D=>D.Status===k.Failed)?k.Failed:k.Verified,VerificationStatuses:R(i,[k.Failed])}},te=i=>i.reduce((n,c)=>n?new Date(n)<new Date(c)?c:n:c,0),R=(i,n)=>i.filter(c=>n.includes(c.Status)).map(c=>{var p,D;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(D=c.FlowInfo)==null?void 0:D.Url}}),re=i=>i.filter(n=>Z.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||ne(n)||oe(n):!1),ne=i=>{const n=i.Documents&&i.VendorName===T.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===F.Requested);return n&&c},oe=i=>i.VendorName===T.ShuftiPro&&i.Status===k.Referred,se=()=>{switch(C.VerificationSummaryStatus){case k.InProgress:const i=[];return M.forEach(n=>{i.push(ae(n))}),i;case k.Referred:return[s("verification.idenfy.referred-awaiting")];case k.Failed:return[s("verification.message.failed")]}},ae=i=>{const n=C.VerificationStatuses.filter(c=>c.Vendor===i);if(i===T.ShuftiPro)return le(n);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const n=[],c={},p=[L.Biometric,L.Documents,L.ProofOfAddress];i.forEach(x=>{p.includes(x.Type)&&(n.push(x.Type),c[x.Type]=ce(x,fe(x.Type)))});let D=n.every(x=>z.has(x)),O=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return D?s("verification.shuftipro.validations-started"):s(O,{values:c})},ce=(i,n)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${n}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,b=!e.isMobile(K))},he=()=>{A=h+"/"+d+"/"+Ve;try{fetch(A,{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:A}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{V=i,r(2,V)})}return o.$$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,_=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,y=i.session),"customerid"in i&&r(15,S=i.customerid),"playersession"in i&&r(16,P=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},o.$$.update=()=>{o.$$.dirty[0]&4096&&d&&J(),o.$$.dirty[0]&83968&&l&&y&&P&&I(),o.$$.dirty[0]&83968&&l&&!y&&P&&$(),o.$$.dirty[0]&8192&&g&&G(),o.$$.dirty[0]&5&&_&&V&&e.setClientStyling(V,_),o.$$.dirty[0]&6&&w&&V&&e.setClientStylingURL(V,w),o.$$.dirty[0]&262144&&h&&he(),o.$$.dirty[0]&131076&&v&&V&&e.setStreamStyling(V,`${v}.Style`)},[_,w,V,m,f,b,u,B,s,de,pe,l,d,g,y,S,P,v,h,me]}class X extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,be,ye,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(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-1mMP8tyv.cjs"),q=require("./CashierMethodDetails-CjL5-po_.cjs");function H(o,t){e.addMessages(o,t)}function ge(o){e.init({fallbackLocale:"en"}),e.$locale.set(o)}const U={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"}};function ve(o){e.append_styles(o,"svelte-etf668",'*,*::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:var(--emw--spacing-small, 12px) 0}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.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:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;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;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));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:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);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 j(o,t,r){const s=o.slice();return s[53]=t[r],s}function we(o){let t,r=o[3].length>0&&W(o);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=W(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ke(o){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",o[1]),e.set_custom_element_data(t,"clientstyling",o[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 W(o){let t,r,s,a,l,d,g,_=o[8]("verificationsRequired")+"",w,y,S,P,v,V,M,z,C=e.ensure_array_like(o[3]),h=[];for(let f=0;f<C.length;f+=1)h[f]=N(j(o,C,f));let m=o[6]&&Y(o);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(_),y=e.space(),S=e.element("span"),S.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>',P=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();V=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(S,"class","CashierVerificationChevron"),e.toggle_class(S,"ShowVerifications",o[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",o[4])},m(f,b){e.insert(f,t,b),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,y),e.append(t,S),e.insert(f,P,b),e.insert(f,v,b);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,V),m&&m.m(v,null),M||(z=e.listen(t,"click",o[9]),M=!0)},p(f,b){if(b[0]&256&&_!==(_=f[8]("verificationsRequired")+"")&&e.set_data(w,_),b[0]&16&&e.toggle_class(S,"ShowVerifications",f[4]),b[0]&8){C=e.ensure_array_like(f[3]);let u;for(u=0;u<C.length;u+=1){const A=j(f,C,u);h[u]?h[u].p(A,b):(h[u]=N(A),h[u].c(),h[u].m(v,V))}for(;u<h.length;u+=1)h[u].d(1);h.length=C.length}f[6]?m?m.p(f,b):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),b[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(P),e.detach(v)),e.destroy_each(h,f),m&&m.d(),M=!1,z()}}}function N(o){let t,r,s,a,l=o[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(o){let t,r,s,a,l=o[8]("verification.video.how-to")+"",d,g,_;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",o[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,y){e.insert(w,t,y),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(_=e.listen(t,"click",o[10]),g=!0)},p(w,y){y[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),y[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,_()}}}function ye(o){let t;function r(l,d){if(l[7])return ke;if(l[3])return we}let s=r(o),a=s&&s(o);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",o[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),o[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(),o[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function be(o,t,r){let s,a;e.component_subscribe(o,e.$format,i=>r(8,s=i)),e.component_subscribe(o,q.xPaymentSessionToken,i=>r(27,a=i)),q.dayjs.extend(q.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:_=""}=t,{clientstylingurl:w=""}=t,{session:y=""}=t,{customerid:S=""}=t,{playersession:P=""}=t,{mbsource:v=""}=t,V,M=new Set,z=new Set,C,h,m,f=!1,b=!0,u=!1,A="",B=!1,K=window.navigator.userAgent;var T;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(T||(T={}));var F;(function(i){i.Requested="Requested"})(F||(F={}));var k;(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"})(k||(k={}));var L;(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"})(L||(L={}));const E=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",E),ue(),()=>{window.removeEventListener("message",E)}));const Z=[k.InProgress,k.Referred,k.AwaitingForResponse],G=()=>{let i=g;if(i)return fetch(i).then(n=>n.json()).then(n=>{Object.keys(n).forEach(c=>{H(c,n[c])})}).catch(n=>{console.log(n)})};Object.keys(U).forEach(i=>{H(i,U[i])});const J=()=>{ge(d)},I=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${S}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${P}`),n.append("X-Client-Request-Timestamp",q.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:n,body:JSON.stringify({})};r(7,B=!0),fetch(i,c).then(p=>p.json()).then(p=>{const D=Q(p==null?void 0:p.Verifications);C=ie(D),C.VerificationStatuses.forEach(O=>{O.VerificationUrlType!=="Widget"&&M.add(O.Vendor)}),r(3,m=se())}).finally(()=>r(7,B=!1))},Q=i=>i?i.sort((n,c)=>new Date(c.Created).getTime()-new Date(n.Created).getTime()):[],$=()=>{a&&I()},ee=()=>{let i=(y||a).split(".")[1];if(i){let n=JSON.parse(atob(i));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:k.Unverified,VerificationStatuses:[]};const n=re(i);if(n&&n.length){const p=te(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(n,p.Status)}}else return{VerificationSummaryStatus:i.some(D=>D.Status===k.Failed)?k.Failed:k.Verified,VerificationStatuses:R(i,[k.Failed])}},te=i=>i.reduce((n,c)=>n?new Date(n)<new Date(c)?c:n:c,0),R=(i,n)=>i.filter(c=>n.includes(c.Status)).map(c=>{var p,D;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(D=c.FlowInfo)==null?void 0:D.Url}}),re=i=>i.filter(n=>Z.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||ne(n)||oe(n):!1),ne=i=>{const n=i.Documents&&i.VendorName===T.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===F.Requested);return n&&c},oe=i=>i.VendorName===T.ShuftiPro&&i.Status===k.Referred,se=()=>{switch(C.VerificationSummaryStatus){case k.InProgress:const i=[];return M.forEach(n=>{i.push(ae(n))}),i;case k.Referred:return[s("verification.idenfy.referred-awaiting")];case k.Failed:return[s("verification.message.failed")]}},ae=i=>{const n=C.VerificationStatuses.filter(c=>c.Vendor===i);if(i===T.ShuftiPro)return le(n);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const n=[],c={},p=[L.Biometric,L.Documents,L.ProofOfAddress];i.forEach(x=>{p.includes(x.Type)&&(n.push(x.Type),c[x.Type]=ce(x,fe(x.Type)))});let D=n.every(x=>z.has(x)),O=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return D?s("verification.shuftipro.validations-started"):s(O,{values:c})},ce=(i,n)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${n}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,b=!e.isMobile(K))},he=()=>{A=h+"/"+d+"/"+Ve;try{fetch(A,{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:A}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{V=i,r(2,V)})}return o.$$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,_=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,y=i.session),"customerid"in i&&r(15,S=i.customerid),"playersession"in i&&r(16,P=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},o.$$.update=()=>{o.$$.dirty[0]&4096&&d&&J(),o.$$.dirty[0]&83968&&l&&y&&P&&I(),o.$$.dirty[0]&83968&&l&&!y&&P&&$(),o.$$.dirty[0]&8192&&g&&G(),o.$$.dirty[0]&5&&_&&V&&e.setClientStyling(V,_),o.$$.dirty[0]&6&&w&&V&&e.setClientStylingURL(V,w),o.$$.dirty[0]&262144&&h&&he(),o.$$.dirty[0]&131076&&v&&V&&e.setStreamStyling(V,`${v}.Style`)},[_,w,V,m,f,b,u,B,s,de,pe,l,d,g,y,S,P,v,h,me]}class X extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,be,ye,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(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;
@@ -1,5 +1,5 @@
1
1
  import { a as Me, i as Te, $ as Le, S as ze, b as Oe, s as Be, f as A, c as Fe, G, e as T, W as M, k as L, m as C, o as c, p as Z, q as qe, N as Ee, y as Ie, A as H, Y as J, a4 as Re, v as ne, l as p, x as se, X as U, n as F, w as ae, B as He, C as Ue, D as je, E as We, F as Ne } from "./CashierCarousel-D-vvfyMH.js";
2
- import { d as Q, u as Ye, x as Xe } from "./CashierMethodDetails-Cf8LFTUj.js";
2
+ import { d as Q, u as Ye, x as Xe } from "./CashierMethodDetails-BdlHR1PC.js";
3
3
  function $(r, i) {
4
4
  Me(r, i);
5
5
  }
@@ -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-CgQAOtkb.cjs")).then(({default:t})=>{!customElements.get("cashier-page-nd")&&customElements.define("cashier-page-nd",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-hOVFrtIF.cjs")).then(({default:t})=>{!customElements.get("cashier-page-nd")&&customElements.define("cashier-page-nd",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-VS7IiCyh.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierPage-Cj-JwUP8.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-page-nd") && customElements.define("cashier-page-nd", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierPage-BNe2n6x3.js";
1
+ import { C as n } from "../components/CashierPage-BW0dTggU.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.87.2",
3
+ "version": "1.87.4",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-page.cjs",
6
6
  "module": "esnext/cashier-page.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-1mMP8tyv.cjs");require("../stencil/ui-image-IJc7Zz_R.cjs");function w(r,n){e.addMessages(r,n)}function I(r){e.init({fallbackLocale:"en"}),e.$locale.set(r)}const z={en:{errorGeneralTitle:"Error Occurred",errorGeneralText:"Something went wrong",errorGeneralButton:"CLOSE",PlayerSessionIsNotValid:"Player session is not valid",VendorCommunicationError:"We apologise, but your payment provider has declined to process due to technical error. Please try later or contact your payment solution provider for further assistance. Error Code 21297",PaymentMethodNotAllowed:"We apologise, but this payment method is unavailable at this time, please contact Customer Support for further assistance. Error Code 11402",InvalidPaymentDetails:"We apologise, but you payment details are not valid. Please make sure you entered all payment details correctly and try again or contact Customer Support for further assistance. Error Code 13555",MerchantUserHasWithdrawBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate withdrawal transactions from your player account. Error Code: 21122",MerchantUserHasDepositBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate deposit transactions from your player account. Error Code: 21123",JwtTokenError:"IDX12741: JWT must have three segments (JWS) or five segments (JWE).",TransactionIsBlockedDueToNotCompletedKyc:"We apologise, but we cannot process the transaction because you haven't completed KYC. Please verify your identity or contact Customer Support for further assistance. Error Code 23601",InsufficientCasinoFunds:" Your withdrawal is over your available balance. Please check your available balance to adjust your withdrawal amount",DepositWageringLimit:"Attention! Your winnings balance has less than the amount you want to withdraw.",AmountMinLimitExceeded:"Amount is smaller than PaymentMethod minimum limit",AmountMaxLimitExceeded:"Amount is bigger than PaymentMethod maximum limit",AmountIsMissing:"Amount is missing",MaxCustomerTransactionsCountReached:"Looks like you have reached the frequency limit of the transaction attempts per minute. The server is taking too long to respond. Please wait a bit and try again in a while",VendorTimeoutError:"Looks like the payment vendor has some issues. The server is taking too long to respond. Please wait a bit and try again in a while. Error Code 21292",MerchantUserAccountIsInactive:"Declined by merchant user account is inactive",MerchantUserHasDepositDenyRole:"Declined by merchant user has deposit deny role",TransactionCodeIsInvalid:"Transaction code is invalid",InvalidSession:"Your session has expired. Please try again",TwoFactorAuthRequired:"Two-factor authentication is required",DeclinedByMerchant:"We apologise, but transaction has been closed by merchant. Please contact Customer Support for further assistance.",FraudSuspectedError:"We apologise, but we are unable to process your transaction at this time, please try later or contact Customer Support for further assistance. Error Code 22020"},tr:{errorGeneralTitle:"Hata oluştu",errorGeneralText:"Bir şeyler ters gitti",errorGeneralButton:"KAPALI",PlayerSessionIsNotValid:"Hesabınızla ilgili oturum geçersiz veya süresi dolmuş görünüyor. Lütfen tekrar giriş yapınız",VendorCommunicationError:"Özür dileriz, ancak ödeme sağlayıcınız teknik hata nedeniyle işlemi yapmayı reddetti. Lütfen daha sonra deneyin veya daha fazla yardım için ödeme çözümü sağlayıcınızla iletişime geçin. Hata Kodu 21297",PaymentMethodNotAllowed:"Özür dileriz, ancak bu ödeme yöntemi şu anda kullanılamıyor. Daha fazla yardım için lütfen Müşteri Desteğiyle iletişime geçin. Hata Kodu 11402",InvalidPaymentDetails:"Özür dileriz, ancak ödeme bilgileriniz geçerli değil. Lütfen tüm ödeme ayrıntılarını doğru girdiğinizden emin olun ve tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 13555",MerchantUserHasWithdrawBlockRole:"Sevgili Oyuncu! Şu anda oyuncu hesabınızdan para çekme işlemi başlatmanıza izin verilmediğini lütfen unutmayın. Hata Kodu: 21122",MerchantUserHasDepositBlockRole:"Değerli Oyuncumuz, Şu anda hesabınız üzerinden para yatırma işlemi yapmanıza izin verilmemektedir. Hata Kodu: 21123",JwtTokenError:"IDX12741: JWT must have three segments (JWS) or five segments (JWE).",TransactionIsBlockedDueToNotCompletedKyc:"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. ",InsufficientCasinoFunds:"Çekmek istediğiniz tutar, mevcut bakiyenizin üzerindedir. Lütfen çekim tutarınızı belirlemek için bakiyenizi kontrol ediniz",DepositWageringLimit:"Para çekim işleminizi gerçekleştirebilmek için ana para çevriminizi tamamlamanız gerekmektedir. Ana para çevrimi hakkında bilgi almak için sitemiz genel şartlar ve kurallar bölümünü ziyaret edebilir ya da destek kanallarımız üzerinden bilgi alabilirsiniz.",AmountMinLimitExceeded:"Tutar, Ödeme Yöntemi minimum sınırından daha küçük",AmountMaxLimitExceeded:"Tutar, Ödeme Yöntemi maksimum sınırından daha büyük",AmountIsMissing:"Tutar eksik",MaxCustomerTransactionsCountReached:"İşlem denemelerinin sıklık sınırına ulaştınız. Sunucunun yanıt vermesi çok uzun sürüyor. Lütfen biraz bekleyin ve bir süre sonra tekrar deneyin.",VendorTechnicalError:"Özür dileriz, fakat bir teknik hata nedeniyle işleminiz sağlayıcı tarafından reddedildi. Lütfen daha sonra tekrar deneyin veya servis sağlayıcınızla iletişime geçin. Hata kodu 21298",MerchantUserAccountIsInactive:"Tüccar tarafından reddedildi kullanıcı hesabı etkin değil",MerchantUserHasDepositDenyRole:"Sevgili Oyuncu! Şu anda hesabınıza para yatırmanıza izin verilmediğini lütfen unutmayın. Hata Kodu: 21123",TransactionCodeIsInvalid:"Transaction code is invalid",InvalidSession:"Beklenmedik bir hata oluştu, lütfen tekrar deneyin.",TwoFactorAuthRequired:"İki faktörlü kimlik doğrulama gereklidi",DeclinedByMerchant:"Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin.",FraudSuspectedError:"Üzgünüz, ancak işleminizi şu anda gerçekleştiremiyoruz. Lütfen daha sonra tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 22020."}};function x(r){e.append_styles(r,"svelte-m958fw",".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}")}const P=r=>({}),C=r=>({}),A=r=>({}),E=r=>({}),L=r=>({}),T=r=>({}),B=r=>({}),M=r=>({class:"CashierErrorIcon"});function S(r){let n,i;return{c(){n=e.element("ui-image"),e.src_url_equal(n.src,i=`${r[0]}/error-general-icon.png`)||e.set_custom_element_data(n,"src",i),e.set_custom_element_data(n,"width","300px"),e.set_custom_element_data(n,"alt","error")},m(a,o){e.insert(a,n,o)},p(a,o){o&1&&!e.src_url_equal(n.src,i=`${a[0]}/error-general-icon.png`)&&e.set_custom_element_data(n,"src",i)},d(a){a&&e.detach(n)}}}function H(r){let n,i=r[0]&&S(r);return{c(){i&&i.c(),n=e.empty()},m(a,o){i&&i.m(a,o),e.insert(a,n,o)},p(a,o){a[0]?i?i.p(a,o):(i=S(a),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(a){a&&e.detach(n),i&&i.d(a)}}}function W(r){let n,i=r[3](`${r[1]||"errorGeneralText"}`)+"",a;return{c(){n=e.element("span"),a=e.text(i),e.attr(n,"class","CashierErrorText")},m(o,h){e.insert(o,n,h),e.append(n,a)},p(o,h){h&10&&i!==(i=o[3](`${o[1]||"errorGeneralText"}`)+"")&&e.set_data(a,i)},d(o){o&&e.detach(n)}}}function R(r){let n,i,a=r[3]("errorGeneralButton")+"",o,h,s;return{c(){n=e.element("button"),i=e.element("span"),o=e.text(a),e.attr(n,"class","CashierErrorButton")},m(d,y){e.insert(d,n,y),e.append(n,i),e.append(i,o),h||(s=e.listen(n,"click",r[4]),h=!0)},p(d,y){y&8&&a!==(a=d[3]("errorGeneralButton")+"")&&e.set_data(o,a)},d(d){d&&e.detach(n),h=!1,s()}}}function K(r){let n,i,a,o,h,s;const d=r[11].icon,y=e.create_slot(d,r,r[10],M),c=y||H(r),_=r[11].title,u=e.create_slot(_,r,r[10],T),p=r[11].text,m=e.create_slot(p,r,r[10],E),f=m||W(r),k=r[11].button,b=e.create_slot(k,r,r[10],C),g=b||R(r);return{c(){n=e.element("div"),i=e.element("div"),c&&c.c(),a=e.space(),u&&u.c(),o=e.space(),f&&f.c(),h=e.space(),g&&g.c(),e.attr(i,"class","CashierErrorContent"),e.attr(n,"class","CashierError")},m(t,l){e.insert(t,n,l),e.append(n,i),c&&c.m(i,null),e.append(i,a),u&&u.m(i,null),e.append(i,o),f&&f.m(i,null),e.append(i,h),g&&g.m(i,null),r[12](n),s=!0},p(t,[l]){y?y.p&&(!s||l&1024)&&e.update_slot_base(y,d,t,t[10],s?e.get_slot_changes(d,t[10],l,B):e.get_all_dirty_from_scope(t[10]),M):c&&c.p&&(!s||l&1)&&c.p(t,s?l:-1),u&&u.p&&(!s||l&1024)&&e.update_slot_base(u,_,t,t[10],s?e.get_slot_changes(_,t[10],l,L):e.get_all_dirty_from_scope(t[10]),T),m?m.p&&(!s||l&1024)&&e.update_slot_base(m,p,t,t[10],s?e.get_slot_changes(p,t[10],l,A):e.get_all_dirty_from_scope(t[10]),E):f&&f.p&&(!s||l&10)&&f.p(t,s?l:-1),b?b.p&&(!s||l&1024)&&e.update_slot_base(b,k,t,t[10],s?e.get_slot_changes(k,t[10],l,P):e.get_all_dirty_from_scope(t[10]),C):g&&g.p&&(!s||l&8)&&g.p(t,s?l:-1)},i(t){s||(e.transition_in(c,t),e.transition_in(u,t),e.transition_in(f,t),e.transition_in(g,t),s=!0)},o(t){e.transition_out(c,t),e.transition_out(u,t),e.transition_out(f,t),e.transition_out(g,t),s=!1},d(t){t&&e.detach(n),c&&c.d(t),u&&u.d(t),f&&f.d(t),g&&g.d(t),r[12](null)}}}function G(r,n,i){let a;e.component_subscribe(r,e.$format,t=>i(3,a=t));let{$$slots:o={},$$scope:h}=n,{assetsurl:s=""}=n,{lang:d="en"}=n,{errorcode:y=""}=n,{clientstyling:c=""}=n,{clientstylingurl:_=""}=n,{translationurl:u=""}=n,{mbsource:p=""}=n,m;const f=()=>{I(d)},k=()=>{fetch(u).then(l=>l.json()).then(l=>{Object.keys(l).forEach(v=>{w(v,l[v])})}).catch(l=>{console.error(l)})};Object.keys(z).forEach(t=>{w(t,z[t])});const b=()=>{window.postMessage({type:"ErrorClose"},window.location.href)};e.onMount(()=>()=>{});function g(t){e.binding_callbacks[t?"unshift":"push"](()=>{m=t,i(2,m)})}return r.$$set=t=>{"assetsurl"in t&&i(0,s=t.assetsurl),"lang"in t&&i(5,d=t.lang),"errorcode"in t&&i(1,y=t.errorcode),"clientstyling"in t&&i(6,c=t.clientstyling),"clientstylingurl"in t&&i(7,_=t.clientstylingurl),"translationurl"in t&&i(8,u=t.translationurl),"mbsource"in t&&i(9,p=t.mbsource),"$$scope"in t&&i(10,h=t.$$scope)},r.$$.update=()=>{r.$$.dirty&32&&d&&f(),r.$$.dirty&68&&c&&m&&e.setClientStyling(m,c),r.$$.dirty&132&&_&&m&&e.setClientStylingURL(m,_),r.$$.dirty&516&&p&&m&&e.setStreamStyling(m,`${p}.Style`),r.$$.dirty&256&&u&&k()},[s,y,m,a,b,d,c,_,u,p,h,o,g]}class D extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,G,K,e.safe_not_equal,{assetsurl:0,lang:5,errorcode:1,clientstyling:6,clientstylingurl:7,translationurl:8,mbsource:9},x)}get assetsurl(){return this.$$.ctx[0]}set assetsurl(n){this.$$set({assetsurl:n}),e.flush()}get lang(){return this.$$.ctx[5]}set lang(n){this.$$set({lang:n}),e.flush()}get errorcode(){return this.$$.ctx[1]}set errorcode(n){this.$$set({errorcode:n}),e.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}}e.create_custom_element(D,{assetsurl:{},lang:{},errorcode:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=D;