@everymatrix/cashier-page-cashpoint 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/components/CashierCarousel-D70vWJDX.js +732 -0
  2. package/components/CashierCarousel-Y48Rdc8S.cjs +1 -0
  3. package/components/CashierCarousel-vEXZoifv.js +735 -0
  4. package/components/CashierError--vyGcWeS.cjs +1 -0
  5. package/components/CashierError-B35FifPR.js +953 -0
  6. package/components/CashierError-kW7RwMkE.js +953 -0
  7. package/components/CashierHeader-8YrE4V8S.js +491 -0
  8. package/components/CashierHeader-CtRQV-iw.cjs +1 -0
  9. package/components/CashierHeader-qmPiSN1_.js +491 -0
  10. package/components/CashierIframeRedirect-BIziLldk.js +393 -0
  11. package/components/CashierIframeRedirect-CY6TynhI.cjs +1 -0
  12. package/components/CashierIframeRedirect-CvMvo2iC.js +393 -0
  13. package/components/CashierMethodDetailsCashpoint-CqaETJKC.js +12351 -0
  14. package/components/CashierMethodDetailsCashpoint-DdkJML1S.js +12279 -0
  15. package/components/CashierMethodDetailsCashpoint-aL6H7vtk.cjs +238 -0
  16. package/components/CashierMethodsList-CHLzCfFz.js +993 -0
  17. package/components/CashierMethodsList-DQuSIxfh.js +979 -0
  18. package/components/CashierMethodsList-Dn5qrzuK.cjs +1 -0
  19. package/components/CashierModal-1o5uAROx.js +402 -0
  20. package/components/CashierModal-CU6qLy0F.js +386 -0
  21. package/components/CashierModal-kyGa6Q2i.cjs +1 -0
  22. package/components/CashierNotifications-Ctu4HSfK.cjs +1 -0
  23. package/components/CashierNotifications-DMQ4ZUr8.js +129 -0
  24. package/components/CashierNotifications-pJpOdpj5.js +129 -0
  25. package/components/CashierPageCashpoint-CW7dOhG8.js +10562 -0
  26. package/components/CashierPageCashpoint-DD20HnUq.cjs +23 -0
  27. package/components/CashierPageCashpoint-QO6Pqi8J.js +10509 -0
  28. package/components/CashierReceiptPage-BR41CTkI.js +2247 -0
  29. package/components/CashierReceiptPage-BeBYrYyM.js +2227 -0
  30. package/components/CashierReceiptPage-DkjXrczG.cjs +29 -0
  31. package/components/CashierSessionExpirationModal-BImlUn85.cjs +2 -0
  32. package/components/CashierSessionExpirationModal-BSy1MfxY.js +1228 -0
  33. package/components/CashierSessionExpirationModal-Dj-PUb3c.js +1228 -0
  34. package/components/CashierSpinner-BHKvfmv9.cjs +1 -0
  35. package/components/CashierSpinner-dnJ5rGhU.js +79 -0
  36. package/components/CashierSpinner-tGFI9GW9.js +79 -0
  37. package/components/CashierStepUpCashpoint-Caj-7KLi.js +1398 -0
  38. package/components/CashierStepUpCashpoint-CeNnJfiF.cjs +1 -0
  39. package/components/CashierStepUpCashpoint-Q3QQCWRQ.js +1358 -0
  40. package/components/CashierTransactionHistory-BGxgHd_e.cjs +1 -0
  41. package/components/CashierTransactionHistory-CL5Yim0j.js +1465 -0
  42. package/components/CashierTransactionHistory-CiT1vw1G.js +1465 -0
  43. package/components/CashierVerifications-BRpMX9Cv.js +772 -0
  44. package/components/CashierVerifications-Bml3Cjt-.cjs +1 -0
  45. package/components/CashierVerifications-TcSdlbsS.js +768 -0
  46. package/components/TxnStatusIcon-09rQaWKW.cjs +1 -0
  47. package/components/TxnStatusIcon-B3lGZsh5.js +142 -0
  48. package/components/TxnStatusIcon-Bidlvh73.js +142 -0
  49. package/components/TxnTypeIcons-DepnRxUQ.js +101 -0
  50. package/components/TxnTypeIcons-Ds21RVmW.cjs +1 -0
  51. package/components/TxnTypeIcons-J35Cp0dl.js +101 -0
  52. package/es2015/cashier-page-cashpoint.cjs +1 -0
  53. package/es2015/cashier-page-cashpoint.js +16 -0
  54. package/esnext/cashier-page-cashpoint.js +14 -0
  55. package/package.json +24 -0
  56. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  57. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  58. package/stencil/index-97d17652-B6BYeRne.js +542 -0
  59. package/stencil/index-97d17652-BOr4KAqq.js +558 -0
  60. package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
  61. package/stencil/index-b2193545-B5Q7rnAU.cjs +1 -0
  62. package/stencil/index-b2193545-CF_fVoFe.js +519 -0
  63. package/stencil/index-b2193545-DfttkCgg.js +503 -0
  64. package/stencil/ui-image-BsYHwNhO.js +7 -0
  65. package/stencil/ui-image-CNaRr0ax.js +25 -0
  66. package/stencil/ui-image-IJc7Zz_R.cjs +1 -0
  67. package/stencil/ui-image-b7b48fe5-BKRtoUuG.js +39 -0
  68. package/stencil/ui-image-b7b48fe5-HA45CrsG.js +39 -0
  69. package/stencil/ui-image-b7b48fe5-MC0x5ZQd.cjs +1 -0
  70. package/stencil/ui-image_2-CmVho0dS.js +157 -0
  71. package/stencil/ui-image_2-CyqE6j_W.cjs +55 -0
  72. package/stencil/ui-image_2-Daq38JGa.js +157 -0
  73. package/stencil/ui-skeleton-B9YTz-WD.js +29 -0
  74. package/stencil/ui-skeleton-CQ-FgYMx.js +11 -0
  75. package/stencil/ui-skeleton-UxIIZ8UD.cjs +1 -0
  76. package/stencil/ui-skeleton-ed169f8f-BEwquWmd.cjs +55 -0
  77. package/stencil/ui-skeleton-ed169f8f-BMrkXoR5.js +155 -0
  78. package/stencil/ui-skeleton-ed169f8f-BNn31z1X.js +155 -0
@@ -0,0 +1 @@
1
+ "use strict";var Fe=Object.defineProperty,Ie=Object.defineProperties;var Oe=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var we=(n,t,s)=>t in n?Fe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,he=(n,t)=>{for(var s in t||(t={}))Re.call(t,s)&&we(n,s,t[s]);if(Me)for(var s of Me(t))je.call(t,s)&&we(n,s,t[s]);return n},pe=(n,t)=>Ie(n,Oe(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPageCashpoint-DD20HnUq.cjs"),fe=require("./CashierHeader-CtRQV-iw.cjs");function _e(n,t){e.addMessages(n,t)}function He(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const be={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available",favorite:"Favorite",promoLabel:"Recommended",otherMethodsTitle:"All Methods",otherMethodsDescription:"Discover our incredible selection of unique products that you won't want to miss!"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil",favorite:"Favori",promoLabel:"Favori",otherMethodsTitle:"Tüm Yöntemler",otherMethodsDescription:"Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"},fr:{generalMin:"Min",generalMax:"Max",showAll:"AFFICHER TOUT",showLess:"AFFICHER MOINS",error:"Erreur",noPaymentMethods:"Aucun moyen de paiement disponible",favorite:"Favori",promoLabel:"Recommandé",otherMethodsTitle:"Toutes les méthodes",otherMethodsDescription:"Découvrez notre incroyable sélection de produits uniques à ne pas manquer !"},da:{generalMin:"Min",generalMax:"Maks",showAll:"VIS ALLE",showLess:"VIS FÆRRE",error:"Fejl",noPaymentMethods:"Ingen betalingsmetoder tilgængelige",favorite:"Favorit",promoLabel:"Anbefalet",otherMethodsTitle:"Alle metoder",otherMethodsDescription:"Oplev vores utrolige udvalg af unikke produkter, som du ikke vil gå glip af!"},de:{generalMin:"Min",generalMax:"Max",showAll:"ALLE ANZEIGEN",showLess:"WENIGER ANZEIGEN",error:"Fehler",noPaymentMethods:"Keine Zahlungsmethoden verfügbar",favorite:"Favorit",promoLabel:"Empfohlen",otherMethodsTitle:"Alle Methoden",otherMethodsDescription:"Entdecken Sie unsere unglaubliche Auswahl an einzigartigen Produkten, die Sie nicht verpassen möchten!"},nl:{generalMin:"Min",generalMax:"Max",showAll:"ALLES TONEN",showLess:"MINDER TONEN",error:"Fout",noPaymentMethods:"Geen betaalmethoden beschikbaar",favorite:"Favoriet",promoLabel:"Aanbevolen",otherMethodsTitle:"Alle methoden",otherMethodsDescription:"Ontdek onze ongelooflijke selectie van unieke producten die u niet wilt missen!"},ru:{generalMin:"Мин",generalMax:"Макс",showAll:"ПОКАЗАТЬ ВСЕ",showLess:"СВЕРНУТЬ",error:"Ошибка",noPaymentMethods:"Нет доступных способов оплаты",favorite:"Избранное",promoLabel:"Рекомендуем",otherMethodsTitle:"Все методы",otherMethodsDescription:"Откройте для себя нашу невероятную подборку уникальных продуктов, которые вы не захотите пропустить!"},az:{generalMin:"Min",generalMax:"Maks",showAll:"HAMISINI GÖSTƏR",showLess:"AZ GÖSTƏR",error:"Xəta",noPaymentMethods:"Ödəniş üsulu mövcud deyil",favorite:"Sevimli",promoLabel:"Tövsiyə olunan",otherMethodsTitle:"Bütün üsullar",otherMethodsDescription:"Qaçırmaq istəməyəcəyiniz unikal məhsullardan ibarət inanılmaz seçimimizi kəşf edin!"}};function Ue(n){e.append_styles(n,"svelte-njj9wo",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;max-width:100%;gap:5px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;position:relative;box-sizing:border-box;padding:5px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:22px}.MethodPromoLabel{background:var(--emw--color-button-background, #f1f3ff);color:var(--emw--color-primary, #f9c405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));margin:5px;word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:10px}.MethodLimits{word-break:break-word;margin:5px}.Limits{max-width:100%;font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.MethodFavorite{font-size:var(--emw--font-size-x-small, 8px);color:var(--emw--color-typography, #fff);background-color:var(--emw--color-red, red);border-radius:15px;margin:0 5px;line-height:10px;height:16px}.MethodFavorite p{padding:3px}.PaymentProcessing{padding:5px;color:var(--emw--color-primary, #ffce00);font-style:italic;font-size:var(--emw--font-size-small, 12px)}@media(min-width: 499px){.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:36px}.SelectorWrapper{padding:10px}.MethodTitle{font-size:var(--emw--font-size-medium, 12px)}.Limits{font-size:var(--emw--font-size-small, 10px)}}@media(max-width: 500px){.PaymentProcessing{font-size:var(--emw--font-size-x-small, 8px)}.MethodTitle{font-size:var(--emw--font-size-small, 10px)}.Limits{font-size:var(--emw--font-size-x-small, 8px)}}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #f7f8fa);line-height:normal;border:1px solid var(--emw--color-grey-105, #e8e9eb);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}')}function ve(n,t,s){const r=n.slice();return r[58]=t[s],r[60]=s,r}function Le(n){let t,s,r,o,l=!n[15]&&ke(n);function a(d,h){return d[15]&&d[14]?qe:We}let c=a(n),u=c(n),m=n[10]&&Se(n);return{c(){t=e.element("div"),l&&l.c(),s=e.space(),r=e.element("div"),u.c(),o=e.space(),m&&m.c(),e.attr(r,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(d,h){e.insert(d,t,h),l&&l.m(t,null),e.append(t,s),e.append(t,r),u.m(r,null),e.append(t,o),m&&m.m(t,null),n[34](t)},p(d,h){d[15]?l&&(l.d(1),l=null):l?l.p(d,h):(l=ke(d),l.c(),l.m(t,s)),c===(c=a(d))&&u?u.p(d,h):(u.d(1),u=c(d),u&&(u.c(),u.m(r,null))),d[10]?m?m.p(d,h):(m=Se(d),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},d(d){d&&e.detach(t),l&&l.d(),u.d(),m&&m.d(),n[34](null)}}}function ke(n){let t,s,r=n[17]("otherMethodsTitle")+"",o,l,a,c=n[17]("otherMethodsDescription")+"",u;return{c(){t=e.element("div"),s=e.element("h3"),o=e.text(r),l=e.space(),a=e.element("p"),u=e.text(c),e.attr(t,"class","MethodsListDescription")},m(m,d){e.insert(m,t,d),e.append(t,s),e.append(s,o),e.append(t,l),e.append(t,a),e.append(a,u)},p(m,d){d[0]&131072&&r!==(r=m[17]("otherMethodsTitle")+"")&&e.set_data(o,r),d[0]&131072&&c!==(c=m[17]("otherMethodsDescription")+"")&&e.set_data(u,c)},d(m){m&&e.detach(t)}}}function We(n){let t,s=e.ensure_array_like(n[11]),r=[];for(let o=0;o<s.length;o+=1)r[o]=Ee(ve(n,s,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,l){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(o,l);e.insert(o,t,l)},p(o,l){if(l[0]&469824){s=e.ensure_array_like(o[11]);let a;for(a=0;a<s.length;a+=1){const c=ve(o,s,a);r[a]?r[a].p(c,l):(r[a]=Ee(c),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=s.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function qe(n){let t,s,r,o=n[17]("error")+"",l,a,c,u=n[17]("noPaymentMethods")+"",m;return{c(){t=e.element("div"),s=e.element("div"),r=e.element("p"),l=e.text(o),a=e.space(),c=e.element("p"),m=e.text(u),e.attr(r,"class","EmptyContentMessageTitle"),e.attr(c,"class","EmptyContentMessageText"),e.attr(s,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[13])},m(d,h){e.insert(d,t,h),e.append(t,s),e.append(s,r),e.append(r,l),e.append(s,a),e.append(s,c),e.append(c,m)},p(d,h){h[0]&131072&&o!==(o=d[17]("error")+"")&&e.set_data(l,o),h[0]&131072&&u!==(u=d[17]("noPaymentMethods")+"")&&e.set_data(m,u),h[0]&8192&&e.toggle_class(t,"EmptyContentMessageDesktop",d[13])},d(d){d&&e.detach(t)}}}function Ce(n){let t,s=n[17]("favorite")+"",r;return{c(){t=e.element("p"),r=e.text(s)},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&131072&&s!==(s=o[17]("favorite")+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Pe(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Te(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Ee(n){var Z,J,V,se,oe,re,ie,le;let t,s,r,o,l,a,c,u,m,d,h,j=(n[58].Label||n[58].Name)+"",H,T,z,D,P,E,A=n[17]("generalMin")+"",U,B,F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(J=(Z=n[58])==null?void 0:Z.DisplayCurrency)==null?void 0:J.Name]||n[16],minimumFractionDigits:n[8][(se=(V=n[58])==null?void 0:V.DisplayCurrency)==null?void 0:se.Name]||n[16]})+"",X,I,N,W=n[17]("generalMax")+"",L,te,Y=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(re=(oe=n[58])==null?void 0:oe.DisplayCurrency)==null?void 0:re.Name]||n[16],minimumFractionDigits:n[8][(le=(ie=n[58])==null?void 0:ie.DisplayCurrency)==null?void 0:le.Name]||n[16]})+"",k,O,R,b,q,y=n[58].isMethodPromoted&&Ce(n),M=!n[13]&&Pe(n),g=n[13]&&Te(n);function ne(){return n[32](n[58])}return{c(){t=e.element("div"),s=e.element("div"),r=e.element("img"),a=e.space(),c=e.element("div"),y&&y.c(),u=e.space(),m=e.element("div"),d=e.element("div"),h=e.element("span"),H=e.text(j),T=e.space(),M&&M.c(),z=e.space(),D=e.element("div"),P=e.element("span"),E=e.element("p"),U=e.text(A),B=e.space(),X=e.text(F),I=e.space(),N=e.element("p"),L=e.text(W),te=e.space(),k=e.text(Y),O=e.space(),g&&g.c(),R=e.space(),e.src_url_equal(r.src,o=n[58].LogoUrl)||e.attr(r,"src",o),e.attr(r,"alt",l=n[58].Label),e.attr(s,"class","MethodLogo"),e.attr(c,"class","MethodFavorite"),e.attr(d,"class","MethodTitle"),e.attr(P,"class","Limits"),e.attr(D,"class","MethodLimits"),e.attr(m,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[9]===n[58].Name)},m(G,w){e.insert(G,t,w),e.append(t,s),e.append(s,r),e.append(t,a),e.append(t,c),y&&y.m(c,null),e.append(t,u),e.append(t,m),e.append(m,d),e.append(d,h),e.append(h,H),e.append(m,T),M&&M.m(m,null),e.append(m,z),e.append(m,D),e.append(D,P),e.append(P,E),e.append(E,U),e.append(E,B),e.append(E,X),e.append(P,I),e.append(P,N),e.append(N,L),e.append(N,te),e.append(N,k),e.append(m,O),g&&g.m(m,null),e.append(t,R),b||(q=[e.listen(t,"click",ne),e.listen(t,"keyup",Xe)],b=!0)},p(G,w){var ae,me,K,de,ce,Q,$,ue;n=G,w[0]&2048&&!e.src_url_equal(r.src,o=n[58].LogoUrl)&&e.attr(r,"src",o),w[0]&2048&&l!==(l=n[58].Label)&&e.attr(r,"alt",l),n[58].isMethodPromoted?y?y.p(n,w):(y=Ce(n),y.c(),y.m(c,null)):y&&(y.d(1),y=null),w[0]&2048&&j!==(j=(n[58].Label||n[58].Name)+"")&&e.set_data(H,j),n[13]?M&&(M.d(1),M=null):M?M.p(n,w):(M=Pe(n),M.c(),M.m(m,z)),w[0]&131072&&A!==(A=n[17]("generalMin")+"")&&e.set_data(U,A),w[0]&67840&&F!==(F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(me=(ae=n[58])==null?void 0:ae.DisplayCurrency)==null?void 0:me.Name]||n[16],minimumFractionDigits:n[8][(de=(K=n[58])==null?void 0:K.DisplayCurrency)==null?void 0:de.Name]||n[16]})+"")&&e.set_data(X,F),w[0]&131072&&W!==(W=n[17]("generalMax")+"")&&e.set_data(L,W),w[0]&67840&&Y!==(Y=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(Q=(ce=n[58])==null?void 0:ce.DisplayCurrency)==null?void 0:Q.Name]||n[16],minimumFractionDigits:n[8][(ue=($=n[58])==null?void 0:$.DisplayCurrency)==null?void 0:ue.Name]||n[16]})+"")&&e.set_data(k,Y),n[13]?g?g.p(n,w):(g=Te(n),g.c(),g.m(m,null)):g&&(g.d(1),g=null),w[0]&2560&&e.toggle_class(t,"checked",n[9]===n[58].Name)},d(G){G&&e.detach(t),y&&y.d(),M&&M.d(),g&&g.d(),b=!1,e.run_all(q)}}}function Se(n){let t,s,r,o;return{c(){t=e.element("div"),s=e.text(n[10]),e.attr(t,"class","ShowAllButton")},m(l,a){e.insert(l,t,a),e.append(t,s),r||(o=e.listen(t,"click",n[33]),r=!0)},p(l,a){a[0]&1024&&e.set_data(s,l[10])},d(l){l&&e.detach(t),r=!1,o()}}}function De(n){let t,s,r;return{c(){t=e.element("cashier-error"),s=e.element("span"),r=e.text(n[12]),e.attr(s,"class","ErrorMessage"),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[5]),e.set_custom_element_data(t,"clientstyling",n[4]),e.set_custom_element_data(t,"mbsource",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(o,l){e.insert(o,t,l),e.append(t,s),e.append(s,r)},p(o,l){l[0]&4096&&e.set_data(r,o[12]),l[0]&1&&e.set_custom_element_data(t,"lang",o[0]),l[0]&2&&e.set_custom_element_data(t,"assetsurl",o[1]),l[0]&4&&e.set_custom_element_data(t,"translationurl",o[2]),l[0]&32&&e.set_custom_element_data(t,"clientstylingurl",o[5]),l[0]&16&&e.set_custom_element_data(t,"clientstyling",o[4]),l[0]&8&&e.set_custom_element_data(t,"mbsource",o[3])},d(o){o&&e.detach(t)}}}function Ge(n){let t,s,r=n[14]&&Le(n),o=n[12]&&De(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),s=e.empty()},m(l,a){r&&r.m(l,a),e.insert(l,t,a),o&&o.m(l,a),e.insert(l,s,a)},p(l,a){l[14]?r?r.p(l,a):(r=Le(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),l[12]?o?o.p(l,a):(o=De(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(l){l&&(e.detach(t),e.detach(s)),r&&r.d(l),o&&o.d(l)}}}const Be="PaymentPromotion",Xe=()=>{};function Ye(n,t,s){let r,o,l;e.component_subscribe(n,e.$format,i=>s(17,o=i)),e.component_subscribe(n,e.xPaymentSessionToken,i=>s(42,l=i)),e.dayjs.extend(e.utc);let{lang:a="en"}=t,{local:c="en-US"}=t,{endpoint:u}=t,{paymentsession:m}=t,{playersession:d}=t,{customerid:h}=t,{assetsurl:j}=t,{currency:H}=t,{numberofmethodsshown:T}=t,{translationurl:z=""}=t,{mbsource:D}=t,{clientstyling:P}=t,{clientstylingurl:E}=t,{currencydecimals:A="0"}=t,{currencysymbol:U=""}=t,{currencyposition:B=""}=t,{promotedmethods:F="false"}=t,{type:X}=t,{userroles:I=""}=t,N,W={},L,te,Y=window.navigator.userAgent,k=[],O,R="",b=[],q=[],y="",M,g=!0,ne=!1,Z=!1,J=[];var V;(function(i){i.PlayerSessionIsNotValid="PlayerSessionIsNotValid",i.Success="Success",i.JwtTokenError="JwtTokenError"})(V||(V={}));const se=()=>{let i=z;if(i)return fetch(i).then(p=>p.json()).then(p=>{Object.keys(p).forEach(S=>{_e(S,p[S])})}).catch(p=>{console.log(p)})};Object.keys(be).forEach(i=>{_e(i,be[i])});const oe=()=>{He(a)},re=i=>{l&&ie(i)},ie=i=>{const{currency:p}=i,f=N!==void 0&&N!==p?"MetadataLoading":"DataLoading";N=p,window.postMessage({type:f,isDataLoaded:!1},window.location.href);const _=new URL(`${u}/v2/player/${h}/payment/GetPaymentMetadata`),C=new Headers;C.append("accept","application/json"),C.append("Content-Type","application/json"),C.append("X-Client-Request-Timestamp",e.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),C.append("X-SessionId",`${d}`),C.append("X-Payment-Session-Token",`${m||l}`),J.indexOf("MM_CHANNEL_BETA")!=-1&&C.append("MM_CHANNEL","BETA");const x={method:"POST",headers:C,mode:"cors",body:JSON.stringify(pe(he({},p&&{Currency:p}),{Tags:{UserAgent:window.navigator.userAgent}}))};fetch(_,x).then(v=>{const ee=v.headers.get("X-Payment-Session-Token");return ee&&e.xPaymentSessionToken.set(ee),v.json()}).then(v=>{var ee;if(v.error){s(12,y=v.error);return}if(v.ResponseCode!==V.Success){M=v.ResponseCode,ae();return}k=(ee=v.PaymentMethods)!=null&&ee.Ordering?le(v):G(v),window.postMessage({type:"PromotedPaymentMethods",promotedPaymentMethods:q},window.location.href),s(10,R=T&&+T>0&&k.length>+T?o("showAll"):""),s(11,b=R?k.slice(0,+T):k),F=="false"&&s(11,b=b.sort((ge,ye)=>ge.isMethodPromoted&&!ye.isMethodPromoted?-1:!ge.isMethodPromoted&&ye.isMethodPromoted?1:0)),s(15,Z=!b.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:k[0].Name},window.location.href),window.postMessage({type:f,isDataLoaded:!0},window.location.href)}).finally(()=>{s(14,ne=!0),window.postMessage({type:f,isDataLoaded:!0},window.location.href)})},le=i=>{const p=[];return q=[],i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(S=>{const f=i.PaymentMethods.PaymentMethods.find(_=>_.Name===S);if(f){const _=(f==null?void 0:f.Logos.find(v=>v.LogoType==="Desktop"))||{},C=(f==null?void 0:f.Logos.find(v=>v.LogoType==="Mobile"))||{},x=g?_:C;f.isMethodPromoted=Q(f.Tags),f.LogoUrl=x.LogoUrl?`https:${x.LogoUrl}`:"",f.isMethodPromoted&&q.push(f),p.push(f)}}),p},G=i=>{const p=i.PaymentMethods.PaymentMethods.map(_=>pe(he({},_),{isMethodPromoted:Q(_.Tags),LogoUrl:_.Logos&&_.Logos.length&&_.Logos[0].LogoUrl?`https:${_.Logos[0].LogoUrl}`:""})),[S,f]=p.reduce(([_,C],x)=>(x&&x.isMethodPromoted?_.push(x):C.promo(x),[_,C]),[[],[]]);return q=S,f},w=i=>{s(9,O=i.Name),window.postMessage({type:"SelectPayMeth",details:i},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:i,bubbles:!0,cancelable:!0,composed:!0}))},ae=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:M},window.location.href)},me=()=>{s(13,g=!e.isMobile(Y))},K=()=>{b==k?ce():de()},de=()=>{s(11,b=k),s(10,R=o("showLess"))},ce=()=>{s(11,b=k.slice(0,+T)),O&&!b.find(i=>i.Name===O)&&b.splice(0,0,k.find(i=>i.Name===O)),s(10,R=o("showAll"))},Q=i=>i&&i.split(",").some(p=>p===Be),$=i=>{var S;const{data:{type:p}={}}=i||{};switch(p){case"PrecisionCurrenciesMap":{s(8,W=((S=i==null?void 0:i.data)==null?void 0:S.payload)||{});break}}},ue=()=>{I.length>0&&(J=I.split(","))};e.onMount(()=>(me(),e.initCurrencyFormatter(c,U,B,A),window.postMessage({type:"CashierMethodsListReady"},window.location.href),window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}));const Ne=i=>w(i),xe=()=>K();function ze(i){e.binding_callbacks[i?"unshift":"push"](()=>{L=i,s(7,L)})}return n.$$set=i=>{"lang"in i&&s(0,a=i.lang),"local"in i&&s(20,c=i.local),"endpoint"in i&&s(21,u=i.endpoint),"paymentsession"in i&&s(22,m=i.paymentsession),"playersession"in i&&s(23,d=i.playersession),"customerid"in i&&s(24,h=i.customerid),"assetsurl"in i&&s(1,j=i.assetsurl),"currency"in i&&s(25,H=i.currency),"numberofmethodsshown"in i&&s(26,T=i.numberofmethodsshown),"translationurl"in i&&s(2,z=i.translationurl),"mbsource"in i&&s(3,D=i.mbsource),"clientstyling"in i&&s(4,P=i.clientstyling),"clientstylingurl"in i&&s(5,E=i.clientstylingurl),"currencydecimals"in i&&s(27,A=i.currencydecimals),"currencysymbol"in i&&s(28,U=i.currencysymbol),"currencyposition"in i&&s(29,B=i.currencyposition),"promotedmethods"in i&&s(30,F=i.promotedmethods),"type"in i&&s(6,X=i.type),"userroles"in i&&s(31,I=i.userroles)},n.$$.update=()=>{n.$$.dirty[1]&1&&I&&ue(),n.$$.dirty[0]&56623104&&u&&!m&&h&&re({currency:H}),n.$$.dirty[0]&1&&a&&oe(),n.$$.dirty[0]&144&&P&&L&&fe.setClientStyling(L,P),n.$$.dirty[0]&160&&E&&L&&fe.setClientStylingURL(L,E),n.$$.dirty[0]&136&&D&&L&&fe.setStreamStyling(L,`${D}.Style`,te),n.$$.dirty[0]&5&&a&&z&&se(),n.$$.dirty[0]&134217728&&s(16,r=Number(A))},[a,j,z,D,P,E,X,L,W,O,R,b,y,g,ne,Z,r,o,w,K,c,u,m,d,h,H,T,A,U,B,F,I,Ne,xe,ze]}class Ae extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Ye,Ge,e.safe_not_equal,{lang:0,local:20,endpoint:21,paymentsession:22,playersession:23,customerid:24,assetsurl:1,currency:25,numberofmethodsshown:26,translationurl:2,mbsource:3,clientstyling:4,clientstylingurl:5,currencydecimals:27,currencysymbol:28,currencyposition:29,promotedmethods:30,type:6,userroles:31},Ue,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[20]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get paymentsession(){return this.$$.ctx[22]}set paymentsession(t){this.$$set({paymentsession:t}),e.flush()}get playersession(){return this.$$.ctx[23]}set playersession(t){this.$$set({playersession:t}),e.flush()}get customerid(){return this.$$.ctx[24]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[25]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[26]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get currencydecimals(){return this.$$.ctx[27]}set currencydecimals(t){this.$$set({currencydecimals:t}),e.flush()}get currencysymbol(){return this.$$.ctx[28]}set currencysymbol(t){this.$$set({currencysymbol:t}),e.flush()}get currencyposition(){return this.$$.ctx[29]}set currencyposition(t){this.$$set({currencyposition:t}),e.flush()}get promotedmethods(){return this.$$.ctx[30]}set promotedmethods(t){this.$$set({promotedmethods:t}),e.flush()}get type(){return this.$$.ctx[6]}set type(t){this.$$set({type:t}),e.flush()}get userroles(){return this.$$.ctx[31]}set userroles(t){this.$$set({userroles:t}),e.flush()}}e.create_custom_element(Ae,{lang:{},local:{},endpoint:{},paymentsession:{},playersession:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydecimals:{},currencysymbol:{},currencyposition:{},promotedmethods:{},type:{},userroles:{}},[],[],!0);exports.default=Ae;
@@ -0,0 +1,402 @@
1
+ var B = (i, e, t) => new Promise((n, a) => {
2
+ var f = (p) => {
3
+ try {
4
+ g(t.next(p));
5
+ } catch (x) {
6
+ a(x);
7
+ }
8
+ }, h = (p) => {
9
+ try {
10
+ g(t.throw(p));
11
+ } catch (x) {
12
+ a(x);
13
+ }
14
+ }, g = (p) => p.done ? n(p.value) : Promise.resolve(p.value).then(f, h);
15
+ g((t = t.apply(i, e)).next());
16
+ });
17
+ import { S as ie, b as ne, s as oe, f as M, c as le, e as S, t as O, g as z, a7 as se, a8 as ae, k as H, m as C, q as re, a0 as j, d as F, u as Y, h as q, j as D, L as T, l as v, G as de, n as I, o as m, H as ce, x as W, y as fe, z as ue, Q as R, A as he } from "./CashierPageCashpoint-CW7dOhG8.js";
18
+ import { s as me, a as ge, b as pe } from "./CashierHeader-8YrE4V8S.js";
19
+ function we(i) {
20
+ le(i, "svelte-e2luo5", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.Uppercase{text-transform:uppercase}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}');
21
+ }
22
+ const ye = (i) => ({}), U = (i) => ({}), _e = (i) => ({}), A = (i) => ({});
23
+ function G(i) {
24
+ let e, t, n, a, f, h, g, p, x, b, k, u, d = (
25
+ /*modaltype*/
26
+ (i[3] == "error" || /*modaltype*/
27
+ i[3] == "bonusDescription") && P()
28
+ );
29
+ const w = (
30
+ /*#slots*/
31
+ i[14].title
32
+ ), y = F(
33
+ w,
34
+ i,
35
+ /*$$scope*/
36
+ i[13],
37
+ A
38
+ );
39
+ let r = (
40
+ /*modaltype*/
41
+ i[3] != "2fa-old" && Q(i)
42
+ ), l = (
43
+ /*isloading*/
44
+ i[4] === "true" && Z()
45
+ );
46
+ const L = (
47
+ /*#slots*/
48
+ i[14].content
49
+ ), c = F(
50
+ L,
51
+ i,
52
+ /*$$scope*/
53
+ i[13],
54
+ U
55
+ );
56
+ return {
57
+ c() {
58
+ e = C("div"), t = C("div"), n = C("div"), a = C("div"), d && d.c(), f = I(), h = C("div"), y && y.c(), g = I(), r && r.c(), p = I(), l && l.c(), x = I(), b = C("div"), c && c.c(), m(h, "class", "TitleText"), m(a, "class", "ModalTitle"), m(n, "class", "ModalHeader"), m(b, "class", "ModalContentWrapper"), T(
59
+ b,
60
+ "hidden",
61
+ /*isloading*/
62
+ i[4] === "true"
63
+ ), m(t, "class", "ModalContainer"), T(
64
+ t,
65
+ "video-mode",
66
+ /*modaltype*/
67
+ i[3] === "video"
68
+ ), T(
69
+ t,
70
+ "twofa-mode",
71
+ /*modaltype*/
72
+ i[3] === "2fa"
73
+ ), m(e, "id", "Modal"), ce(() => (
74
+ /*div5_elementresize_handler*/
75
+ i[18].call(e)
76
+ ));
77
+ },
78
+ m(s, _) {
79
+ H(s, e, _), v(e, t), v(t, n), v(n, a), d && d.m(a, null), v(a, f), v(a, h), y && y.m(h, null), v(n, g), r && r.m(n, null), v(t, p), l && l.m(t, null), v(t, x), v(t, b), c && c.m(b, null), i[15](b), i[16](t), i[17](e), k = de(
80
+ e,
81
+ /*div5_elementresize_handler*/
82
+ i[18].bind(e)
83
+ ), u = !0;
84
+ },
85
+ p(s, _) {
86
+ /*modaltype*/
87
+ s[3] == "error" || /*modaltype*/
88
+ s[3] == "bonusDescription" ? d || (d = P(), d.c(), d.m(a, f)) : d && (d.d(1), d = null), y && y.p && (!u || _ & /*$$scope*/
89
+ 8192) && Y(
90
+ y,
91
+ w,
92
+ s,
93
+ /*$$scope*/
94
+ s[13],
95
+ u ? D(
96
+ w,
97
+ /*$$scope*/
98
+ s[13],
99
+ _,
100
+ _e
101
+ ) : q(
102
+ /*$$scope*/
103
+ s[13]
104
+ ),
105
+ A
106
+ ), /*modaltype*/
107
+ s[3] != "2fa-old" ? r ? r.p(s, _) : (r = Q(s), r.c(), r.m(n, null)) : r && (r.d(1), r = null), /*isloading*/
108
+ s[4] === "true" ? l || (l = Z(), l.c(), l.m(t, x)) : l && (l.d(1), l = null), c && c.p && (!u || _ & /*$$scope*/
109
+ 8192) && Y(
110
+ c,
111
+ L,
112
+ s,
113
+ /*$$scope*/
114
+ s[13],
115
+ u ? D(
116
+ L,
117
+ /*$$scope*/
118
+ s[13],
119
+ _,
120
+ ye
121
+ ) : q(
122
+ /*$$scope*/
123
+ s[13]
124
+ ),
125
+ U
126
+ ), (!u || _ & /*isloading*/
127
+ 16) && T(
128
+ b,
129
+ "hidden",
130
+ /*isloading*/
131
+ s[4] === "true"
132
+ ), (!u || _ & /*modaltype*/
133
+ 8) && T(
134
+ t,
135
+ "video-mode",
136
+ /*modaltype*/
137
+ s[3] === "video"
138
+ ), (!u || _ & /*modaltype*/
139
+ 8) && T(
140
+ t,
141
+ "twofa-mode",
142
+ /*modaltype*/
143
+ s[3] === "2fa"
144
+ );
145
+ },
146
+ i(s) {
147
+ u || (z(y, s), z(c, s), u = !0);
148
+ },
149
+ o(s) {
150
+ O(y, s), O(c, s), u = !1;
151
+ },
152
+ d(s) {
153
+ s && S(e), d && d.d(), y && y.d(s), r && r.d(), l && l.d(), c && c.d(s), i[15](null), i[16](null), i[17](null), k();
154
+ }
155
+ };
156
+ }
157
+ function P(i) {
158
+ let e;
159
+ return {
160
+ c() {
161
+ e = C("div"), e.innerHTML = '<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>', m(e, "class", "WarningIcon");
162
+ },
163
+ m(t, n) {
164
+ H(t, e, n);
165
+ },
166
+ d(t) {
167
+ t && S(e);
168
+ }
169
+ };
170
+ }
171
+ function Q(i) {
172
+ let e, t, n, a, f;
173
+ return {
174
+ c() {
175
+ e = C("div"), t = R("svg"), n = R("path"), m(n, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), m(t, "xmlns", "http://www.w3.org/2000/svg"), m(t, "viewBox", "0 0 13 13"), m(t, "fill", "none"), m(t, "class", "CloseButton"), m(e, "class", "ModalCloseIcon");
176
+ },
177
+ m(h, g) {
178
+ H(h, e, g), v(e, t), v(t, n), a || (f = ue(
179
+ t,
180
+ "click",
181
+ /*closeModal*/
182
+ i[9]
183
+ ), a = !0);
184
+ },
185
+ p: fe,
186
+ d(h) {
187
+ h && S(e), a = !1, f();
188
+ }
189
+ };
190
+ }
191
+ function Z(i) {
192
+ let e;
193
+ return {
194
+ c() {
195
+ e = C("div"), e.innerHTML = '<div class="ModalLoader"></div>', m(e, "class", "ModalLoadingOverlay");
196
+ },
197
+ m(t, n) {
198
+ H(t, e, n);
199
+ },
200
+ d(t) {
201
+ t && S(e);
202
+ }
203
+ };
204
+ }
205
+ function be(i) {
206
+ let e, t, n = (
207
+ /*show*/
208
+ i[2] === "true" && G(i)
209
+ );
210
+ return {
211
+ c() {
212
+ e = C("div"), n && n.c();
213
+ },
214
+ m(a, f) {
215
+ H(a, e, f), n && n.m(e, null), i[19](e), t = !0;
216
+ },
217
+ p(a, [f]) {
218
+ /*show*/
219
+ a[2] === "true" ? n ? (n.p(a, f), f & /*show*/
220
+ 4 && z(n, 1)) : (n = G(a), n.c(), z(n, 1), n.m(e, null)) : n && (se(), O(n, 1, 1, () => {
221
+ n = null;
222
+ }), ae());
223
+ },
224
+ i(a) {
225
+ t || (z(n), t = !0);
226
+ },
227
+ o(a) {
228
+ O(n), t = !1;
229
+ },
230
+ d(a) {
231
+ a && S(e), n && n.d(), i[19](null);
232
+ }
233
+ };
234
+ }
235
+ function ve(i, e, t) {
236
+ let { $$slots: n = {}, $$scope: a } = e, { mbsource: f } = e, { clientstyling: h } = e, { clientstylingurl: g } = e, { show: p } = e, { modaltype: x = "" } = e, { isloading: b = "false" } = e, { width: k } = e, { height: u } = e, d, w, y, r, l, L = !1, c, s;
237
+ const _ = () => {
238
+ c && clearTimeout(c), d && (d.classList.add("closing"), window.dispatchEvent(new CustomEvent("manualClosePopup")), c = setTimeout(
239
+ () => {
240
+ window.dispatchEvent(new CustomEvent("modal-update", { detail: { type: "closed", data: {} } }));
241
+ },
242
+ 200
243
+ ));
244
+ }, E = () => B(this, null, function* () {
245
+ if (!l || !r || L)
246
+ return;
247
+ s && clearTimeout(c), L = !0;
248
+ const o = l.offsetWidth, $ = l.offsetHeight;
249
+ t(8, l.style.width = `${o}px`, l), t(8, l.style.height = `${$}px`, l), l.offsetHeight, yield j();
250
+ const ee = r.scrollHeight, te = r.scrollWidth;
251
+ t(8, l.style.width = `${te}px`, l), t(8, l.style.height = `${ee}px`, l), s = setTimeout(
252
+ () => {
253
+ l && (t(8, l.style.width = "auto", l), t(8, l.style.height = "auto", l)), L = !1;
254
+ },
255
+ 300
256
+ );
257
+ });
258
+ re(() => {
259
+ if (j().then(() => {
260
+ E();
261
+ }), r) {
262
+ const o = new ResizeObserver(() => {
263
+ E();
264
+ });
265
+ return o.observe(r), () => {
266
+ o.disconnect();
267
+ };
268
+ }
269
+ return () => {
270
+ c && clearTimeout(c), s && clearTimeout(c);
271
+ };
272
+ });
273
+ function J(o) {
274
+ W[o ? "unshift" : "push"](() => {
275
+ r = o, t(7, r);
276
+ });
277
+ }
278
+ function K(o) {
279
+ W[o ? "unshift" : "push"](() => {
280
+ l = o, t(8, l);
281
+ });
282
+ }
283
+ function N(o) {
284
+ W[o ? "unshift" : "push"](() => {
285
+ d = o, t(6, d);
286
+ });
287
+ }
288
+ function V() {
289
+ k = this.clientWidth, u = this.clientHeight, t(0, k), t(1, u);
290
+ }
291
+ function X(o) {
292
+ W[o ? "unshift" : "push"](() => {
293
+ w = o, t(5, w);
294
+ });
295
+ }
296
+ return i.$$set = (o) => {
297
+ "mbsource" in o && t(10, f = o.mbsource), "clientstyling" in o && t(11, h = o.clientstyling), "clientstylingurl" in o && t(12, g = o.clientstylingurl), "show" in o && t(2, p = o.show), "modaltype" in o && t(3, x = o.modaltype), "isloading" in o && t(4, b = o.isloading), "width" in o && t(0, k = o.width), "height" in o && t(1, u = o.height), "$$scope" in o && t(13, a = o.$$scope);
298
+ }, i.$$.update = () => {
299
+ i.$$.dirty & /*isloading*/
300
+ 16 && b && j().then(() => {
301
+ E();
302
+ }), i.$$.dirty & /*clientstyling, customStylingContainer*/
303
+ 2080 && h && w && me(w, h), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
304
+ 4128 && g && w && ge(w, g), i.$$.dirty & /*mbsource, customStylingContainer*/
305
+ 1056 && f && w && pe(w, `${f}.Style`, y);
306
+ }, [
307
+ k,
308
+ u,
309
+ p,
310
+ x,
311
+ b,
312
+ w,
313
+ d,
314
+ r,
315
+ l,
316
+ _,
317
+ f,
318
+ h,
319
+ g,
320
+ a,
321
+ n,
322
+ J,
323
+ K,
324
+ N,
325
+ V,
326
+ X
327
+ ];
328
+ }
329
+ class xe extends ie {
330
+ constructor(e) {
331
+ super(), ne(
332
+ this,
333
+ e,
334
+ ve,
335
+ be,
336
+ oe,
337
+ {
338
+ mbsource: 10,
339
+ clientstyling: 11,
340
+ clientstylingurl: 12,
341
+ show: 2,
342
+ modaltype: 3,
343
+ isloading: 4,
344
+ width: 0,
345
+ height: 1
346
+ },
347
+ we
348
+ );
349
+ }
350
+ get mbsource() {
351
+ return this.$$.ctx[10];
352
+ }
353
+ set mbsource(e) {
354
+ this.$$set({ mbsource: e }), M();
355
+ }
356
+ get clientstyling() {
357
+ return this.$$.ctx[11];
358
+ }
359
+ set clientstyling(e) {
360
+ this.$$set({ clientstyling: e }), M();
361
+ }
362
+ get clientstylingurl() {
363
+ return this.$$.ctx[12];
364
+ }
365
+ set clientstylingurl(e) {
366
+ this.$$set({ clientstylingurl: e }), M();
367
+ }
368
+ get show() {
369
+ return this.$$.ctx[2];
370
+ }
371
+ set show(e) {
372
+ this.$$set({ show: e }), M();
373
+ }
374
+ get modaltype() {
375
+ return this.$$.ctx[3];
376
+ }
377
+ set modaltype(e) {
378
+ this.$$set({ modaltype: e }), M();
379
+ }
380
+ get isloading() {
381
+ return this.$$.ctx[4];
382
+ }
383
+ set isloading(e) {
384
+ this.$$set({ isloading: e }), M();
385
+ }
386
+ get width() {
387
+ return this.$$.ctx[0];
388
+ }
389
+ set width(e) {
390
+ this.$$set({ width: e }), M();
391
+ }
392
+ get height() {
393
+ return this.$$.ctx[1];
394
+ }
395
+ set height(e) {
396
+ this.$$set({ height: e }), M();
397
+ }
398
+ }
399
+ he(xe, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, modaltype: {}, isloading: {}, width: {}, height: {} }, ["title", "content"], [], !0);
400
+ export {
401
+ xe as default
402
+ };