@everymatrix/cashier-page 1.87.39 → 1.87.41
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.
- package/components/{CashierCarousel-BdZgyowd.js → CashierCarousel-0xZo1gES.js} +2 -2
- package/components/{CashierCarousel-mqBAJONB.cjs → CashierCarousel-CTc4yyes.cjs} +1 -1
- package/components/{CashierCarousel-BJoLoZxq.js → CashierCarousel-bboODhdA.js} +2 -2
- package/components/{CashierError-BAnXFHoy.cjs → CashierError-BG0puw7Q.cjs} +1 -1
- package/components/{CashierError-DpOkcYKH.js → CashierError-DDxdFe1Z.js} +2 -2
- package/components/{CashierError-BoXPvHiS.js → CashierError-To855Uh8.js} +2 -2
- package/components/{CashierHeader-BQYvgUtz.js → CashierHeader-B-MiUqDu.js} +1 -1
- package/components/{CashierHeader-BnBu6anS.cjs → CashierHeader-C34sx3iv.cjs} +1 -1
- package/components/{CashierHeader-YfTqYwjX.js → CashierHeader-ZdCYbpAD.js} +1 -1
- package/components/{CashierIframeRedirect-Cdx8xOAg.cjs → CashierIframeRedirect-D3QxvMJI.cjs} +1 -1
- package/components/{CashierIframeRedirect-JWVbPLaN.js → CashierIframeRedirect-DAhkwwBO.js} +3 -3
- package/components/{CashierIframeRedirect-DYnNkvdd.js → CashierIframeRedirect-DZHvCE1Y.js} +3 -3
- package/components/CashierMethodDetails-BHyQHh7b.cjs +85 -0
- package/components/{CashierMethodDetails-DwfNlniV.js → CashierMethodDetails-BwzUwOZQ.js} +1489 -1470
- package/components/{CashierMethodDetails-C8Ju9Eyc.js → CashierMethodDetails-CHLwq_SD.js} +1301 -1282
- package/components/{CashierMethodsList-CIWv0Zq4.js → CashierMethodsList-CLmZ5enC.js} +2 -2
- package/components/{CashierMethodsList-CJB7_eXr.js → CashierMethodsList-DgXpgOi5.js} +2 -2
- package/components/{CashierMethodsList-DaETG3-O.cjs → CashierMethodsList-DybOxKcV.cjs} +1 -1
- package/components/{CashierModal-B9mNcaQh.cjs → CashierModal-BA7Y5tFX.cjs} +1 -1
- package/components/{CashierModal-BuJTL7ei.js → CashierModal-DSkwW14u.js} +2 -2
- package/components/{CashierModal-DyS4YBac.js → CashierModal-DXmHg1iF.js} +2 -2
- package/components/{CashierNotifications-BmiaXTiu.js → CashierNotifications-BG5PwQcE.js} +1 -1
- package/components/{CashierNotifications-puzzBBuq.js → CashierNotifications-C51a44-4.js} +1 -1
- package/components/{CashierNotifications-BCi2bWZ5.cjs → CashierNotifications-DnFUR0pv.cjs} +1 -1
- package/components/{CashierPage-BHgig4cK.js → CashierPage-C0nhoSpy.js} +921 -919
- package/components/{CashierPage-BL7F7z0O.cjs → CashierPage-CnReQV08.cjs} +6 -6
- package/components/{CashierPage-B1I_yxyq.js → CashierPage-fWDW-t7q.js} +1008 -1005
- package/components/{CashierReceiptPage-BXK4rFRn.js → CashierReceiptPage-BqjUrAaW.js} +3 -3
- package/components/{CashierReceiptPage-wZgXppWG.js → CashierReceiptPage-C-WcZdVu.js} +3 -3
- package/components/{CashierReceiptPage-tJChwS7m.cjs → CashierReceiptPage-VvlMKLl1.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-uLospL1F.js → CashierSessionExpirationModal-B99AtkVH.js} +2 -2
- package/components/{CashierSessionExpirationModal-PDin2g1J.js → CashierSessionExpirationModal-BWmxnVIf.js} +2 -2
- package/components/{CashierSessionExpirationModal-CcNfQutI.cjs → CashierSessionExpirationModal-CDoIuj0L.cjs} +1 -1
- package/components/{CashierSpinner-Co_MPQLG.js → CashierSpinner-25MWmu9L.js} +2 -2
- package/components/{CashierSpinner-QehNBfU3.cjs → CashierSpinner-B9AvBOzg.cjs} +1 -1
- package/components/{CashierSpinner-BYuJ83ho.js → CashierSpinner-Cd-Ze4Dc.js} +2 -2
- package/components/{CashierStepUp-WAE1o9tr.js → CashierStepUp-C63itZlS.js} +2 -2
- package/components/{CashierStepUp-CI2_kl5j.js → CashierStepUp-D0XIkrCV.js} +2 -2
- package/components/{CashierStepUp-BzDiWUX5.cjs → CashierStepUp-DsWlbIiv.cjs} +1 -1
- package/components/{CashierTransactionHistory-BLGUDfKP.cjs → CashierTransactionHistory-C75M8QcN.cjs} +1 -1
- package/components/{CashierTransactionHistory-BD_2z4PT.js → CashierTransactionHistory-CYKR4mAv.js} +5 -5
- package/components/{CashierTransactionHistory-c_aS21Yl.js → CashierTransactionHistory-Qbq4uqR_.js} +5 -5
- package/components/{CashierVerifications-Cm-5rdY0.cjs → CashierVerifications-B6z9zI7d.cjs} +1 -1
- package/components/{CashierVerifications-BllO2Y9u.js → CashierVerifications-CViQksVL.js} +3 -3
- package/components/{CashierVerifications-DKQ8_H9m.js → CashierVerifications-DDvm-t1I.js} +3 -3
- package/components/{TxnStatusIcon-CAVlLQGT.js → TxnStatusIcon-Bl61uGtP.js} +1 -1
- package/components/{TxnStatusIcon-noKP4PgI.js → TxnStatusIcon-BnlSefQv.js} +1 -1
- package/components/{TxnStatusIcon-89HKOphR.cjs → TxnStatusIcon-BtBa4IGC.cjs} +1 -1
- package/components/{TxnTypeIcons-CNSQd4mn.js → TxnTypeIcons-BDxGo0sw.js} +1 -1
- package/components/{TxnTypeIcons-CVdCWab4.js → TxnTypeIcons-DXz0_Yz5.js} +1 -1
- package/components/{TxnTypeIcons-BvNSuWYr.cjs → TxnTypeIcons-QDTNsDgn.cjs} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodDetails-BWJXZEHS.cjs +0 -85
|
@@ -14,9 +14,9 @@ var W1 = (i, e, t) => new Promise((n, a) => {
|
|
|
14
14
|
}, p = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(r, o);
|
|
15
15
|
p((t = t.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { a as ee, i as te, $ as ne, S as ie, b as ae, s as oe, f as D, c as se, y as s1, e as h, k as w, m, o as l, p as re, M as x1, N as le, q as ce, K as ue, I as pe, Y as I1, x as H1, C as z1, g as A1, a8 as de, t as fe, a9 as Ce, l as c, n as k, ac as me, H as ge, ad as he, v as S, w as x, O as R, F as we, z as T1, r as L1, D as M1, E as J1, P as j, J as Z1, A as be, B as ye } from "./CashierPage-
|
|
18
|
-
import { f as j1 } from "./CashierSessionExpirationModal-
|
|
19
|
-
import { s as ve, a as _e, b as ke } from "./CashierHeader-
|
|
17
|
+
import { a as ee, i as te, $ as ne, S as ie, b as ae, s as oe, f as D, c as se, y as s1, e as h, k as w, m, o as l, p as re, M as x1, N as le, q as ce, K as ue, I as pe, Y as I1, x as H1, C as z1, g as A1, a8 as de, t as fe, a9 as Ce, l as c, n as k, ac as me, H as ge, ad as he, v as S, w as x, O as R, F as we, z as T1, r as L1, D as M1, E as J1, P as j, J as Z1, A as be, B as ye } from "./CashierPage-fWDW-t7q.js";
|
|
18
|
+
import { f as j1 } from "./CashierSessionExpirationModal-BWmxnVIf.js";
|
|
19
|
+
import { s as ve, a as _e, b as ke } from "./CashierHeader-ZdCYbpAD.js";
|
|
20
20
|
function V1(i, e) {
|
|
21
21
|
ee(i, e);
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as q1, i as Q1, $ as X1, S as J1, b as $1, s as ee, f as D, d as te, z as r1, g as h, l as w, n as m, p as l, q as ne, M as S1, N as ie, r as ae, K as oe, I as se, Y as L1, y as D1, C as B1, h as P1, a8 as re, t as le, a9 as ce, m as c, o as T, ac as ue, H as pe, ad as de, w as S, x, O as R, F as fe, A as T1, v as M1, D as x1, E as F1, P as j, J as W1, c as Ce, B as me } from "./CashierPage-
|
|
2
|
-
import { f as I1 } from "./CashierSessionExpirationModal-
|
|
3
|
-
import { s as ge, a as he, b as we } from "./CashierHeader-
|
|
1
|
+
import { a as q1, i as Q1, $ as X1, S as J1, b as $1, s as ee, f as D, d as te, z as r1, g as h, l as w, n as m, p as l, q as ne, M as S1, N as ie, r as ae, K as oe, I as se, Y as L1, y as D1, C as B1, h as P1, a8 as re, t as le, a9 as ce, m as c, o as T, ac as ue, H as pe, ad as de, w as S, x, O as R, F as fe, A as T1, v as M1, D as x1, E as F1, P as j, J as W1, c as Ce, B as me } from "./CashierPage-C0nhoSpy.js";
|
|
2
|
+
import { f as I1 } from "./CashierSessionExpirationModal-B99AtkVH.js";
|
|
3
|
+
import { s as ge, a as he, b as we } from "./CashierHeader-B-MiUqDu.js";
|
|
4
4
|
function H1(i, e) {
|
|
5
5
|
q1(i, e);
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var b1=(i,t,n)=>new Promise((a,s)=>{var l=u=>{try{p(n.next(u))}catch(m){s(m)}},r=u=>{try{p(n.throw(u))}catch(m){s(m)}},p=u=>u.done?a(u.value):Promise.resolve(u.value).then(l,r);p((n=n.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-
|
|
1
|
+
"use strict";var b1=(i,t,n)=>new Promise((a,s)=>{var l=u=>{try{p(n.next(u))}catch(m){s(m)}},r=u=>{try{p(n.throw(u))}catch(m){s(m)}},p=u=>u.done?a(u.value):Promise.resolve(u.value).then(l,r);p((n=n.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-CnReQV08.cjs"),w1=require("./CashierSessionExpirationModal-CDoIuj0L.cjs"),C1=require("./CashierHeader-C34sx3iv.cjs");function y1(i,t){e.addMessages(i,t)}function I1(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const v1={en:{amount:"Amount",status:"Status",transactionId:"Transaction ID",payemntMethod:"Payment Method",paymentTime:"Payment Time",backHome:"Back to home",makeAnotherTransaction:"Make another transaction",backDeposit:"Back to deposit",backWithdraw:"Back to withdraw",tryAgainButton:"Try Again",refreshButton:"Check your status",success:"Success",pending:"Pending",failed:"Error",canceled:"Error",rejected:"Rejected",copyTransactionId:"Copied!",deposit:{success:{amount:"{amount}",title:"Deposit Success!",text:"Your deposit is successful"},pending:{amount:"{amount}",title:"Transaction is in pending",text:"Your payment will be deposited soon"},reject:{title:"Deposit Rejected",subTitle:"",text:"Unfortunately, your deposit was been rejected"},fail:{amount:" ",title:"Deposit Failed!",text:"Unfortunately, your deposit did not go through."},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Withdrawn from your account",title:"Withdraw success!",text:"Your withdrawal is successful"},pending:{title:"Withdraw pending",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdraw rejected",subTitle:" ",text:"Unfortunately, your withdraw was been rejected"},fail:{title:"Withdraw failed",subTitle:" ",text:"Unfortunately, your withdraw did not go through."},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},reference:"Reference ID: {code}",close:"CLOSE",receipt:{maintenance:{title:"We’ll Be Back Soon",text:"We are down for a scheduled maintenance and expect to be back online in a few minutes"}},goToPromotions:"Promotions",goToTournaments:"Tournaments",goToSupport:"Contact Support",goToMerchantHomePage:"Merchant's Home Website",goToSports:"Sports",goToCasino:"Casino",goToLiveCasino:"Live Casino",externalLink:"External Link",uploadDocuments:"Upload Documents",goToHomepage:"Go To Homepage"},tr:{amount:"Tutar",status:"Durum",transactionId:"İşlem Kimliği",payemntMethod:"Ödeme Yöntemi",paymentTime:"Ödeme Zamanı",backDeposit:"Yatırıma geri dön",backWithdraw:"Çekime geri dön",backHome:"Ana sayfaya dön",makeAnotherTransaction:"Başka bir işlem yap",tryAgainButton:"Tekrar Dene",refreshButton:"Durumunu Kontrol Et",success:"Başarılı",pending:"Beklemede",failed:"Hata",canceled:"Hata",rejected:"Reddedildi",copyTransactionId:"Kopyalandı!",deposit:{success:{amount:"{amount}",title:"Yatırım Başarılı!",text:"Yatırımınız başarıyla gerçekleştirildi"},pending:{amount:"{amount}",title:"İşlem beklemede",text:"Ödemeniz yakında yatırılacak"},reject:{title:"Yatırım Reddedildi",subTitle:"",text:"Maalesef yatırımınız reddedildi"},fail:{amount:" ",title:"Yatırım Başarısız!",text:"Maalesef yatırımınız gerçekleşmedi."},cancel:{title:"İşlemi iptal ettiniz",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Hesabınızdan çekildi",title:"Para Çekme Başarılı!",text:"Para çekme işleminiz başarıyla tamamlandı"},pending:{title:"Çekim beklemede",subTitle:"Hesabınızdan çekildi",text:"Teşekkürler. Çekim işleminiz işleniyor."},reject:{title:"Çekim reddedildi",subTitle:" ",text:"Maalesef çekim işleminiz reddedildi"},fail:{title:"Çekim hatası",subTitle:" ",text:"Maalesef çekim işleminiz gerçekleşmedi."},cancel:{title:"İşlemi iptal ettiniz",subTitle:" ",text:" "}},reference:"Referans Kimliği: {code}",close:"KAPAT",receipt:{maintenance:{title:"Kısa Süreliğine Kapalıyız",text:"Planlı bakım çalışması nedeniyle hizmet veremiyoruz, birkaç dakika içinde geri döneceğiz"}},goToPromotions:"Promosyonlara Git",goToTournaments:"Turnuvalar",goToSupport:"Destek ile İletişime Geç",goToMerchantHomePage:"Satıcının Ana Web Sitesi",goToSports:"Sporlara Git",goToCasino:"Casino",goToLiveCasino:"Canlı Casino",externalLink:"Harici Bağlantı",uploadDocuments:"Belgeleri Yükle",goToHomepage:"Ana Sayfaya Git"},fr:{amount:"Montant",status:"Statut",transactionId:"ID de transaction",payemntMethod:"Moyen de paiement",paymentTime:"Heure du paiement",backHome:"Retour à l’accueil",makeAnotherTransaction:"Effectuer une autre transaction",backDeposit:"Retour au dépôt",backWithdraw:"Retour au retrait",tryAgainButton:"Réessayer",refreshButton:"Vérifier votre statut",success:"Succès",pending:"En attente",failed:"Erreur",canceled:"Erreur",rejected:"Rejeté",copyTransactionId:"Copié !",deposit:{success:{amount:"{amount}",title:"Dépôt réussi !",text:"Votre dépôt a été effectué avec succès"},pending:{amount:"{amount}",title:"Transaction en attente",text:"Votre paiement sera crédité prochainement"},reject:{title:"Dépôt rejeté",subTitle:"",text:"Malheureusement, votre dépôt a été rejeté"},fail:{amount:" ",title:"Échec du dépôt !",text:"Malheureusement, votre dépôt n’a pas abouti."},cancel:{title:"Vous avez annulé la transaction",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Retiré de votre compte",title:"Retrait réussi !",text:"Votre retrait a été effectué avec succès"},pending:{title:"Retrait en attente",subTitle:"Retiré de votre compte",text:"Merci. Votre retrait est en cours de traitement."},reject:{title:"Retrait rejeté",subTitle:" ",text:"Malheureusement, votre retrait a été rejeté"},fail:{title:"Échec du retrait",subTitle:" ",text:"Malheureusement, votre retrait n’a pas abouti."},cancel:{title:"Vous avez annulé la transaction",subTitle:" ",text:" "}},reference:"ID de référence : {code}",close:"FERMER",receipt:{maintenance:{title:"Nous revenons bientôt",text:"Nous sommes en maintenance programmée et prévoyons d’être de nouveau en ligne dans quelques minutes"}},goToPromotions:"Promotions",goToTournaments:"Tournois",goToSupport:"Contacter le support",goToMerchantHomePage:"Site web du marchand",goToSports:"Sports",goToCasino:"Casino",goToLiveCasino:"Casino en direct",externalLink:"Lien externe",uploadDocuments:"Télécharger des documents",goToHomepage:"Aller à la page d’accueil"}},z1=(i,t)=>`${i+Z1[t]}`,j1=(i,t)=>`${V1[t]}.${W1[i]}.text`,A1=i=>`${W1[`${i}`]}`,Z1={Success:"/txn-success.png",Voided:"/txn-success.png",Rejected:"/txn-failed.png",Failed:"/txn-failed.png",Canceled:"/txn-failed.png",PendingNotification:"/txn-pending.png",PendingConfirmation:"/txn-pending.png",PendingApprovalStage1:"/txn-pending.png",PendingApprovalStage2:"/txn-pending.png",PendingApprovalStage3:"/txn-pending.png",PendingOfflineNotification:"/txn-pending.png"},V1={Deposit:"deposit",Withdraw:"withdrawal"},W1={Success:"success",Voided:"success",Rejected:"reject",Failed:"fail",Canceled:"cancel",PendingNotification:"pending",PendingConfirmation:"pending",PendingApprovalStage1:"pending",PendingApprovalStage3:"pending",PendingApprovalStage2:"pending",PendingOfflineNotification:"pending"},k1={CasinoButton:`<svg viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M15.8233 3.85297C16.0588 3.88497 16.2962 3.90865 16.5298 3.95089C18.1241 4.24081 19.4188 5.01137 20.3583 6.34705C20.4076 6.41681 20.462 6.42449 20.5343 6.42449C21.9673 6.42321 23.4002 6.42385 24.8338 6.42385C24.8825 6.42385 24.9311 6.42385 24.9868 6.42385C24.9868 7.45297 24.9868 8.47185 24.9868 9.49841C18.6098 9.49841 12.2374 9.49841 5.85657 9.49841C5.85657 8.47313 5.85657 7.45489 5.85657 6.42385C5.91545 6.42385 5.96793 6.42385 6.02041 6.42385C7.44953 6.42385 8.87865 6.42321 10.3071 6.42641C10.4012 6.42641 10.453 6.39569 10.5062 6.32017C11.381 5.08369 12.5778 4.33361 14.0454 4.00529C14.341 3.93937 14.647 3.91569 14.9478 3.87217C14.9759 3.86833 15.0034 3.85937 15.031 3.85297C15.2966 3.85297 15.5596 3.85297 15.8233 3.85297ZM13.9359 6.34449C14.1062 6.53201 14.247 6.71185 14.4127 6.86417C14.5766 7.01457 14.6162 7.17649 14.5759 7.38897C14.535 7.60465 14.5292 7.82673 14.5062 8.06609C14.7878 7.94449 15.0489 7.83697 15.3055 7.71857C15.3932 7.67825 15.4636 7.68209 15.5494 7.72113C15.8066 7.83825 16.0678 7.94705 16.343 8.06609C16.3122 7.76593 16.286 7.48369 16.2527 7.20273C16.2431 7.12337 16.254 7.06513 16.3122 7.00369C16.4799 6.82833 16.6406 6.64529 16.8031 6.46481C16.8345 6.43025 16.8633 6.39377 16.9068 6.34193C16.5951 6.27537 16.3058 6.21649 16.0191 6.14929C15.9705 6.13777 15.9148 6.09937 15.8886 6.05713C15.7535 5.84081 15.6268 5.61937 15.4962 5.39985C15.4745 5.36337 15.4502 5.32817 15.4207 5.28337C15.2646 5.54705 15.1218 5.79729 14.9682 6.04049C14.9362 6.09169 14.8697 6.13841 14.8108 6.15249C14.5286 6.22097 14.2431 6.27793 13.9359 6.34449Z" />
|
|
3
3
|
<path d="M24.9957 10.8303C24.9957 13.965 24.9957 17.0933 24.9957 20.2351C25.2908 20.2351 25.5768 20.2351 25.8725 20.2351C25.8725 20.6587 25.8725 21.069 25.8725 21.4901C26.0972 21.4901 26.3122 21.4901 26.5407 21.4901C26.5407 21.4376 26.5407 21.3896 26.5407 21.341C26.5407 17.5029 26.5407 13.6648 26.5426 9.82675C26.5426 9.73459 26.5157 9.67955 26.4408 9.62387C25.902 9.22387 25.7349 8.51411 26.0325 7.91251C26.3199 7.33075 27.0002 7.03123 27.6268 7.20915C28.2687 7.39155 28.6872 8.00019 28.6194 8.66387C28.5784 9.06003 28.3967 9.38451 28.0748 9.62195C27.9986 9.67827 27.9743 9.73395 27.9743 9.82419C27.9762 14.1359 27.9762 18.4475 27.9762 22.7592C27.9762 22.8117 27.9762 22.8648 27.9762 22.9314C27.2754 22.9314 26.5861 22.9314 25.8828 22.9314C25.8828 23.3583 25.8828 23.7723 25.8828 24.2011C25.5832 24.2011 25.2972 24.2011 25.0028 24.2011C25.0028 25.3794 25.0028 26.5423 25.0028 27.7199C25.3324 27.7199 25.6594 27.7199 25.9928 27.7199C25.9928 28.2018 25.9928 28.6696 25.9928 29.1471C18.9484 29.1471 11.9052 29.1471 4.85492 29.1471C4.85492 28.6773 4.85492 28.2095 4.85492 27.7256C5.1794 27.7256 5.5058 27.7256 5.845 27.7256C5.845 22.0859 5.845 16.4629 5.845 10.8309C12.2316 10.8303 18.604 10.8303 24.9957 10.8303ZM23.5551 12.2651C18.1266 12.2651 12.7103 12.2651 7.29268 12.2651C7.29268 15.0933 7.29268 17.9125 7.29268 20.7387C12.7167 20.7387 18.1336 20.7387 23.5551 20.7387C23.5551 17.9112 23.5551 15.092 23.5551 12.2651ZM8.28404 23.3679C13.0482 23.3679 17.8047 23.3679 22.5618 23.3679C22.5618 22.9301 22.5618 22.5 22.5618 22.0725C17.797 22.0725 13.0399 22.0725 8.28404 22.0725C8.28404 22.5103 8.28404 22.9365 8.28404 23.3679ZM18.9138 24.7087C16.581 24.7087 14.2629 24.7087 11.9346 24.7087C12.0063 25.3672 12.0767 26.0117 12.1471 26.6556C14.3391 26.6556 16.5157 26.6556 18.7032 26.6556C18.773 26.0059 18.8428 25.3608 18.9138 24.7087Z" />
|
|
4
4
|
<path d="M18.6232 13.5765C19.836 13.5765 21.0404 13.5765 22.2564 13.5765C22.2564 15.5227 22.2564 17.467 22.2564 19.419C21.0462 19.419 19.8379 19.419 18.6232 19.419C18.6232 17.4741 18.6232 15.533 18.6232 13.5765ZM18.9873 16.1794C19.1672 16.3784 19.3233 16.5691 19.4993 16.7387C19.6209 16.8558 19.6433 16.9768 19.619 17.1349C19.5832 17.3685 19.5691 17.6059 19.5441 17.8581C19.6024 17.8357 19.6401 17.8229 19.6772 17.8069C19.9038 17.7096 20.1278 17.6078 20.3569 17.5163C20.4068 17.4965 20.4779 17.4958 20.5272 17.5157C20.7556 17.6072 20.9803 17.709 21.2068 17.8062C21.2452 17.8229 21.2856 17.8357 21.3387 17.8549C21.3086 17.5522 21.2779 17.2706 21.2561 16.9877C21.2523 16.9384 21.2721 16.8738 21.3041 16.8366C21.4731 16.6402 21.6504 16.4507 21.8232 16.2581C21.843 16.2363 21.8577 16.2094 21.8833 16.1742C21.6555 16.1256 21.4449 16.0654 21.2305 16.0386C21.0155 16.0117 20.876 15.9214 20.7825 15.7205C20.6897 15.5221 20.5617 15.3397 20.4408 15.1362C20.3006 15.3736 20.1649 15.5886 20.044 15.812C19.98 15.9304 19.8987 15.9912 19.7643 16.0142C19.5108 16.0578 19.2612 16.1205 18.9873 16.1794Z" />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a7 as Cn, a as vn, i as Mn, $ as Ln, S as Rn, b as On, s as kn, f as J, d as Nn, g as Le, t as xe, h as be, a8 as un, a9 as fn, l as Re, n as R, q as Ut, M as Ht, N as Dn, r as In, aa as Pn, e as $e, F as Un, ab as Bt, H as zt, w as We, u as et, j as tt, k as nt, p as u, m as p, G as Hn, A as Ze, P as se, o as ye, x as Ye, Q as Ft, y as Gt, v as Bn, z as Wt, J as Yt, c as zn, B as Fn } from "./CashierPage-
|
|
2
|
-
import { s as Gn, a as Wn, b as Yn } from "./CashierHeader-
|
|
1
|
+
import { a7 as Cn, a as vn, i as Mn, $ as Ln, S as Rn, b as On, s as kn, f as J, d as Nn, g as Le, t as xe, h as be, a8 as un, a9 as fn, l as Re, n as R, q as Ut, M as Ht, N as Dn, r as In, aa as Pn, e as $e, F as Un, ab as Bt, H as zt, w as We, u as et, j as tt, k as nt, p as u, m as p, G as Hn, A as Ze, P as se, o as ye, x as Ye, Q as Ft, y as Gt, v as Bn, z as Wt, J as Yt, c as zn, B as Fn } from "./CashierPage-C0nhoSpy.js";
|
|
2
|
+
import { s as Gn, a as Wn, b as Yn } from "./CashierHeader-B-MiUqDu.js";
|
|
3
3
|
function jt(n, { delay: t = 0, duration: o = 400, easing: i = Cn } = {}) {
|
|
4
4
|
const r = +getComputedStyle(n).opacity;
|
|
5
5
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a7 as Cn, a as vn, i as Mn, $ as Ln, S as Rn, b as On, s as kn, f as J, c as Nn, e as Le, t as xe, g as be, a8 as un, a9 as fn, k as Re, m as R, p as Ut, M as Ht, N as Dn, q as In, aa as Pn, d as $e, F as Un, ab as Bt, H as zt, v as We, u as et, h as tt, j as nt, o as u, l as p, G as Hn, z as Ze, P as se, n as ye, w as Ye, Q as Ft, x as Gt, r as Bn, y as Wt, J as Yt, A as zn, B as Fn } from "./CashierPage-
|
|
2
|
-
import { s as Gn, a as Wn, b as Yn } from "./CashierHeader-
|
|
1
|
+
import { a7 as Cn, a as vn, i as Mn, $ as Ln, S as Rn, b as On, s as kn, f as J, c as Nn, e as Le, t as xe, g as be, a8 as un, a9 as fn, k as Re, m as R, p as Ut, M as Ht, N as Dn, q as In, aa as Pn, d as $e, F as Un, ab as Bt, H as zt, v as We, u as et, h as tt, j as nt, o as u, l as p, G as Hn, z as Ze, P as se, n as ye, w as Ye, Q as Ft, x as Gt, r as Bn, y as Wt, J as Yt, A as zn, B as Fn } from "./CashierPage-fWDW-t7q.js";
|
|
2
|
+
import { s as Gn, a as Wn, b as Yn } from "./CashierHeader-ZdCYbpAD.js";
|
|
3
3
|
function jt(n, { delay: t = 0, duration: o = 400, easing: i = Cn } = {}) {
|
|
4
4
|
const r = +getComputedStyle(n).opacity;
|
|
5
5
|
return {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./CashierPage-BL7F7z0O.cjs"),Ve=require("./CashierHeader-BnBu6anS.cjs");function $e(i,{delay:n=0,duration:o=400,easing:r=e.identity}={}){const a=+getComputedStyle(i).opacity;return{delay:n,duration:o,easing:r,css:f=>`opacity: ${f*a}`}}function St(i,n){e.addMessages(i,n)}function en(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const At={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"},fr:{sessionExpirationHeader:"Avertissement de session",sessionExpirationTitle:"Votre session est sur le point d’expirer !",sessionExpirationGeneralText:"Votre session se terminera automatiquement dans <b>{second} secondes</b>.",sessionExpirationGeneralButton:"Continuer la session",sessionExpirationLoadingButton:"Traitement en cours...",sessionExpirationEnd:"Terminer la session"}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:zt,setPrototypeOf:xt,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:U,seal:Q,create:Ft}=Object,{apply:et,construct:tt}=typeof Reflect!="undefined"&&Reflect;U||(U=function(n){return n});Q||(Q=function(n){return n});et||(et=function(n,o,r){return n.apply(o,r)});tt||(tt=function(n,o){return new n(...o)});const Be=V(Array.prototype.forEach),Ct=V(Array.prototype.pop),Le=V(Array.prototype.push),Fe=V(String.prototype.toLowerCase),qe=V(String.prototype.toString),vt=V(String.prototype.match),Re=V(String.prototype.replace),rn=V(String.prototype.indexOf),sn=V(String.prototype.trim),ne=V(Object.prototype.hasOwnProperty),P=V(RegExp.prototype.test),Oe=an(TypeError);function V(i){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return et(i,n,r)}}function an(i){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return tt(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe;xt&&xt(i,null);let r=n.length;for(;r--;){let a=n[r];if(typeof a=="string"){const f=o(a);f!==a&&(tn(n)||(n[r]=f),a=f)}i[a]=!0}return i}function ln(i){for(let n=0;n<i.length;n++)ne(i,n)||(i[n]=null);return i}function be(i){const n=Ft(null);for(const[o,r]of zt(i))ne(i,o)&&(Array.isArray(r)?n[o]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=be(r):n[o]=r);return n}function ke(i,n){for(;i!==null;){const r=on(i,n);if(r){if(r.get)return V(r.get);if(typeof r.value=="function")return V(r.value)}i=nn(i)}function o(){return null}return o}const Mt=U(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ze=U(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Je=U(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=U(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ke=U(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),un=U(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=U(["#text"]),Rt=U(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qe=U(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ot=U(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ze=U(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fn=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pn=Q(/<%[\w\W]*|[\w\W]*%>/gm),mn=Q(/\${[\w\W]*}/gm),dn=Q(/^data-[\-\w.\u00B7-\uFFFF]/),hn=Q(/^aria-[\-\w]+$/),Gt=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=Q(/^(?:\w+script|data):/i),gn=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=Q(/^html$/i),En=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var kt=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:pn,TMPLIT_EXPR:mn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Gt,IS_SCRIPT_OR_DATA:_n,ATTR_WHITESPACE:gn,DOCTYPE_NAME:Wt,CUSTOM_ELEMENT:En});const Ne={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},yn=function(n,o){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(r=o.getAttribute(a));const f="dompurify"+(r?"#"+r:"");try{return n.createPolicy(f,{createHTML(_){return _},createScriptURL(_){return _}})}catch(_){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==Ne.document)return n.isSupported=!1,n;let{document:o}=i;const r=o,a=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:_,Node:w,Element:T,NodeFilter:g,NamedNodeMap:Y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:$,DOMParser:Te,trustedTypes:H}=i,B=T.prototype,_e=ke(B,"cloneNode"),ie=ke(B,"remove"),z=ke(B,"nextSibling"),ue=ke(B,"childNodes"),q=ke(B,"parentNode");if(typeof _=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let h,S="";const{implementation:ee,createNodeIterator:oe,createDocumentFragment:fe,getElementsByTagName:F}=o,{importNode:te}=r;let C={};n.isSupported=typeof zt=="function"&&typeof q=="function"&&ee&&ee.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:re,ERB_EXPR:j,TMPLIT_EXPR:pe,DATA_ATTR:Z,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:ye}=kt;let{IS_ALLOWED_URI:X}=kt,p=null;const ge=m({},[...Mt,...Ze,...Je,...Ke,...Lt]);let A=null;const Ee=m({},[...Rt,...Qe,...Ot,...ze]);let E=Object.seal(Ft(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),v=null,l=null,d=!0,D=!0,M=!1,G=!0,me=!1,K=!0,se=!1,b=!1,x=!1,ae=!1,De=!1,Ie=!1,nt=!0,it=!1;const Xt="user-content-";let Ge=!0,Ce=!1,we={},Se=null;const ot=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rt=null;const st=m({},["audio","video","img","source","image","track"]);let We=null;const at=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Ae=de,Ye=!1,je=null;const Vt=m({},[Pe,Ue,de],qe);let ve=null;const qt=["application/xhtml+xml","text/html"],Zt="text/html";let L=null,xe=null;const Jt=o.createElement("form"),lt=function(t){return t instanceof RegExp||t instanceof Function},Xe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===t)){if((!t||typeof t!="object")&&(t={}),t=be(t),ve=qt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,L=ve==="application/xhtml+xml"?qe:Fe,p=ne(t,"ALLOWED_TAGS")?m({},t.ALLOWED_TAGS,L):ge,A=ne(t,"ALLOWED_ATTR")?m({},t.ALLOWED_ATTR,L):Ee,je=ne(t,"ALLOWED_NAMESPACES")?m({},t.ALLOWED_NAMESPACES,qe):Vt,We=ne(t,"ADD_URI_SAFE_ATTR")?m(be(at),t.ADD_URI_SAFE_ATTR,L):at,rt=ne(t,"ADD_DATA_URI_TAGS")?m(be(st),t.ADD_DATA_URI_TAGS,L):st,Se=ne(t,"FORBID_CONTENTS")?m({},t.FORBID_CONTENTS,L):ot,v=ne(t,"FORBID_TAGS")?m({},t.FORBID_TAGS,L):{},l=ne(t,"FORBID_ATTR")?m({},t.FORBID_ATTR,L):{},we=ne(t,"USE_PROFILES")?t.USE_PROFILES:!1,d=t.ALLOW_ARIA_ATTR!==!1,D=t.ALLOW_DATA_ATTR!==!1,M=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=t.SAFE_FOR_TEMPLATES||!1,K=t.SAFE_FOR_XML!==!1,se=t.WHOLE_DOCUMENT||!1,ae=t.RETURN_DOM||!1,De=t.RETURN_DOM_FRAGMENT||!1,Ie=t.RETURN_TRUSTED_TYPE||!1,x=t.FORCE_BODY||!1,nt=t.SANITIZE_DOM!==!1,it=t.SANITIZE_NAMED_PROPS||!1,Ge=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,X=t.ALLOWED_URI_REGEXP||Gt,Ae=t.NAMESPACE||de,E=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&<(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&<(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(D=!1),De&&(ae=!0),we&&(p=m({},Lt),A=[],we.html===!0&&(m(p,Mt),m(A,Rt)),we.svg===!0&&(m(p,Ze),m(A,Qe),m(A,ze)),we.svgFilters===!0&&(m(p,Je),m(A,Qe),m(A,ze)),we.mathMl===!0&&(m(p,Ke),m(A,Ot),m(A,ze))),t.ADD_TAGS&&(p===ge&&(p=be(p)),m(p,t.ADD_TAGS,L)),t.ADD_ATTR&&(A===Ee&&(A=be(A)),m(A,t.ADD_ATTR,L)),t.ADD_URI_SAFE_ATTR&&m(We,t.ADD_URI_SAFE_ATTR,L),t.FORBID_CONTENTS&&(Se===ot&&(Se=be(Se)),m(Se,t.FORBID_CONTENTS,L)),Ge&&(p["#text"]=!0),se&&m(p,["html","head","body"]),p.table&&(m(p,["tbody"]),delete v.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=t.TRUSTED_TYPES_POLICY,S=h.createHTML("")}else h===void 0&&(h=yn(H,a)),h!==null&&typeof S=="string"&&(S=h.createHTML(""));U&&U(t),xe=t}},ct=m({},["mi","mo","mn","ms","mtext"]),ut=m({},["foreignobject","annotation-xml"]),Kt=m({},["title","style","font","a","script"]),ft=m({},[...Ze,...Je,...cn]),pt=m({},[...Ke,...un]),Qt=function(t){let s=q(t);(!s||!s.tagName)&&(s={namespaceURI:Ae,tagName:"template"});const c=Fe(t.tagName),y=Fe(s.tagName);return je[t.namespaceURI]?t.namespaceURI===Ue?s.namespaceURI===de?c==="svg":s.namespaceURI===Pe?c==="svg"&&(y==="annotation-xml"||ct[y]):!!ft[c]:t.namespaceURI===Pe?s.namespaceURI===de?c==="math":s.namespaceURI===Ue?c==="math"&&ut[y]:!!pt[c]:t.namespaceURI===de?s.namespaceURI===Ue&&!ut[y]||s.namespaceURI===Pe&&!ct[y]?!1:!pt[c]&&(Kt[c]||!ft[c]):!!(ve==="application/xhtml+xml"&&je[t.namespaceURI]):!1},le=function(t){Le(n.removed,{element:t});try{q(t).removeChild(t)}catch(s){ie(t)}},He=function(t,s){try{Le(n.removed,{attribute:s.getAttributeNode(t),from:s})}catch(c){Le(n.removed,{attribute:null,from:s})}if(s.removeAttribute(t),t==="is"&&!A[t])if(ae||De)try{le(s)}catch(c){}else try{s.setAttribute(t,"")}catch(c){}},mt=function(t){let s=null,c=null;if(x)t="<remove></remove>"+t;else{const R=vt(t,/^[\r\n\t ]+/);c=R&&R[0]}ve==="application/xhtml+xml"&&Ae===de&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const y=h?h.createHTML(t):t;if(Ae===de)try{s=new Te().parseFromString(y,ve)}catch(R){}if(!s||!s.documentElement){s=ee.createDocument(Ae,"template",null);try{s.documentElement.innerHTML=Ye?S:y}catch(R){}}const k=s.body||s.documentElement;return t&&c&&k.insertBefore(o.createTextNode(c),k.childNodes[0]||null),Ae===de?F.call(s,se?"html":"body")[0]:se?s.documentElement:k},dt=function(t){return oe.call(t.ownerDocument||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},ht=function(t){return t instanceof $&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Y)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},_t=function(t){return typeof w=="function"&&t instanceof w},he=function(t,s,c){C[t]&&Be(C[t],y=>{y.call(n,s,c,xe)})},gt=function(t){let s=null;if(he("beforeSanitizeElements",t,null),ht(t))return le(t),!0;const c=L(t.nodeName);if(he("uponSanitizeElement",t,{tagName:c,allowedTags:p}),t.hasChildNodes()&&!_t(t.firstElementChild)&&P(/<[/\w]/g,t.innerHTML)&&P(/<[/\w]/g,t.textContent)||t.nodeType===Ne.progressingInstruction||K&&t.nodeType===Ne.comment&&P(/<[/\w]/g,t.data))return le(t),!0;if(!p[c]||v[c]){if(!v[c]&&Tt(c)&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,c)||E.tagNameCheck instanceof Function&&E.tagNameCheck(c)))return!1;if(Ge&&!Se[c]){const y=q(t)||t.parentNode,k=ue(t)||t.childNodes;if(k&&y){const R=k.length;for(let W=R-1;W>=0;--W){const ce=_e(k[W],!0);ce.__removalCount=(t.__removalCount||0)+1,y.insertBefore(ce,z(t))}}}return le(t),!0}return t instanceof T&&!Qt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&P(/<\/no(script|embed|frames)/i,t.innerHTML)?(le(t),!0):(me&&t.nodeType===Ne.text&&(s=t.textContent,Be([re,j,pe],y=>{s=Re(s,y," ")}),t.textContent!==s&&(Le(n.removed,{element:t.cloneNode()}),t.textContent=s)),he("afterSanitizeElements",t,null),!1)},Et=function(t,s,c){if(nt&&(s==="id"||s==="name")&&(c in o||c in Jt))return!1;if(!(D&&!l[s]&&P(Z,s))){if(!(d&&P(O,s))){if(!A[s]||l[s]){if(!(Tt(t)&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,t)||E.tagNameCheck instanceof Function&&E.tagNameCheck(t))&&(E.attributeNameCheck instanceof RegExp&&P(E.attributeNameCheck,s)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(s))||s==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,c)||E.tagNameCheck instanceof Function&&E.tagNameCheck(c))))return!1}else if(!We[s]){if(!P(X,Re(c,J,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&rt[t])){if(!(M&&!P(N,Re(c,J,"")))){if(c)return!1}}}}}}return!0},Tt=function(t){return t!=="annotation-xml"&&vt(t,ye)},yt=function(t){he("beforeSanitizeAttributes",t,null);const{attributes:s}=t;if(!s)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A};let y=s.length;for(;y--;){const k=s[y],{name:R,namespaceURI:W,value:ce}=k,Me=L(R);let I=R==="value"?ce:sn(ce);if(c.attrName=Me,c.attrValue=I,c.keepAttr=!0,c.forceKeepAttr=void 0,he("uponSanitizeAttribute",t,c),I=c.attrValue,K&&P(/((--!?|])>)|<\/(style|title)/i,I)){He(R,t);continue}if(c.forceKeepAttr||(He(R,t),!c.keepAttr))continue;if(!G&&P(/\/>/i,I)){He(R,t);continue}me&&Be([re,j,pe],wt=>{I=Re(I,wt," ")});const bt=L(t.nodeName);if(Et(bt,Me,I)){if(it&&(Me==="id"||Me==="name")&&(He(R,t),I=Xt+I),h&&typeof H=="object"&&typeof H.getAttributeType=="function"&&!W)switch(H.getAttributeType(bt,Me)){case"TrustedHTML":{I=h.createHTML(I);break}case"TrustedScriptURL":{I=h.createScriptURL(I);break}}try{W?t.setAttributeNS(W,R,I):t.setAttribute(R,I),ht(t)?le(t):Ct(n.removed)}catch(wt){}}}he("afterSanitizeAttributes",t,null)},$t=function u(t){let s=null;const c=dt(t);for(he("beforeSanitizeShadowDOM",t,null);s=c.nextNode();)he("uponSanitizeShadowNode",s,null),!gt(s)&&(s.content instanceof f&&u(s.content),yt(s));he("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(u){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=null,c=null,y=null,k=null;if(Ye=!u,Ye&&(u="<!-->"),typeof u!="string"&&!_t(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw Oe("dirty is not a string, aborting")}else throw Oe("toString is not a function");if(!n.isSupported)return u;if(b||Xe(t),n.removed=[],typeof u=="string"&&(Ce=!1),Ce){if(u.nodeName){const ce=L(u.nodeName);if(!p[ce]||v[ce])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof w)s=mt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===Ne.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!ae&&!me&&!se&&u.indexOf("<")===-1)return h&&Ie?h.createHTML(u):u;if(s=mt(u),!s)return ae?null:Ie?S:""}s&&x&&le(s.firstChild);const R=dt(Ce?u:s);for(;y=R.nextNode();)gt(y)||(y.content instanceof f&&$t(y.content),yt(y));if(Ce)return u;if(ae){if(De)for(k=fe.call(s.ownerDocument);s.firstChild;)k.appendChild(s.firstChild);else k=s;return(A.shadowroot||A.shadowrootmode)&&(k=te.call(r,k,!0)),k}let W=se?s.outerHTML:s.innerHTML;return se&&p["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&P(Wt,s.ownerDocument.doctype.name)&&(W="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
1
|
+
"use strict";const e=require("./CashierPage-CnReQV08.cjs"),Ve=require("./CashierHeader-C34sx3iv.cjs");function $e(i,{delay:n=0,duration:o=400,easing:r=e.identity}={}){const a=+getComputedStyle(i).opacity;return{delay:n,duration:o,easing:r,css:f=>`opacity: ${f*a}`}}function St(i,n){e.addMessages(i,n)}function en(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const At={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"},fr:{sessionExpirationHeader:"Avertissement de session",sessionExpirationTitle:"Votre session est sur le point d’expirer !",sessionExpirationGeneralText:"Votre session se terminera automatiquement dans <b>{second} secondes</b>.",sessionExpirationGeneralButton:"Continuer la session",sessionExpirationLoadingButton:"Traitement en cours...",sessionExpirationEnd:"Terminer la session"}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:zt,setPrototypeOf:xt,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:U,seal:Q,create:Ft}=Object,{apply:et,construct:tt}=typeof Reflect!="undefined"&&Reflect;U||(U=function(n){return n});Q||(Q=function(n){return n});et||(et=function(n,o,r){return n.apply(o,r)});tt||(tt=function(n,o){return new n(...o)});const Be=V(Array.prototype.forEach),Ct=V(Array.prototype.pop),Le=V(Array.prototype.push),Fe=V(String.prototype.toLowerCase),qe=V(String.prototype.toString),vt=V(String.prototype.match),Re=V(String.prototype.replace),rn=V(String.prototype.indexOf),sn=V(String.prototype.trim),ne=V(Object.prototype.hasOwnProperty),P=V(RegExp.prototype.test),Oe=an(TypeError);function V(i){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return et(i,n,r)}}function an(i){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return tt(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe;xt&&xt(i,null);let r=n.length;for(;r--;){let a=n[r];if(typeof a=="string"){const f=o(a);f!==a&&(tn(n)||(n[r]=f),a=f)}i[a]=!0}return i}function ln(i){for(let n=0;n<i.length;n++)ne(i,n)||(i[n]=null);return i}function be(i){const n=Ft(null);for(const[o,r]of zt(i))ne(i,o)&&(Array.isArray(r)?n[o]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=be(r):n[o]=r);return n}function ke(i,n){for(;i!==null;){const r=on(i,n);if(r){if(r.get)return V(r.get);if(typeof r.value=="function")return V(r.value)}i=nn(i)}function o(){return null}return o}const Mt=U(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ze=U(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Je=U(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=U(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ke=U(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),un=U(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=U(["#text"]),Rt=U(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qe=U(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ot=U(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ze=U(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fn=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pn=Q(/<%[\w\W]*|[\w\W]*%>/gm),mn=Q(/\${[\w\W]*}/gm),dn=Q(/^data-[\-\w.\u00B7-\uFFFF]/),hn=Q(/^aria-[\-\w]+$/),Gt=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=Q(/^(?:\w+script|data):/i),gn=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=Q(/^html$/i),En=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var kt=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:pn,TMPLIT_EXPR:mn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Gt,IS_SCRIPT_OR_DATA:_n,ATTR_WHITESPACE:gn,DOCTYPE_NAME:Wt,CUSTOM_ELEMENT:En});const Ne={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},yn=function(n,o){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(r=o.getAttribute(a));const f="dompurify"+(r?"#"+r:"");try{return n.createPolicy(f,{createHTML(_){return _},createScriptURL(_){return _}})}catch(_){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==Ne.document)return n.isSupported=!1,n;let{document:o}=i;const r=o,a=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:_,Node:w,Element:T,NodeFilter:g,NamedNodeMap:Y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:$,DOMParser:Te,trustedTypes:H}=i,B=T.prototype,_e=ke(B,"cloneNode"),ie=ke(B,"remove"),z=ke(B,"nextSibling"),ue=ke(B,"childNodes"),q=ke(B,"parentNode");if(typeof _=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let h,S="";const{implementation:ee,createNodeIterator:oe,createDocumentFragment:fe,getElementsByTagName:F}=o,{importNode:te}=r;let C={};n.isSupported=typeof zt=="function"&&typeof q=="function"&&ee&&ee.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:re,ERB_EXPR:j,TMPLIT_EXPR:pe,DATA_ATTR:Z,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:ye}=kt;let{IS_ALLOWED_URI:X}=kt,p=null;const ge=m({},[...Mt,...Ze,...Je,...Ke,...Lt]);let A=null;const Ee=m({},[...Rt,...Qe,...Ot,...ze]);let E=Object.seal(Ft(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),v=null,l=null,d=!0,D=!0,M=!1,G=!0,me=!1,K=!0,se=!1,b=!1,x=!1,ae=!1,De=!1,Ie=!1,nt=!0,it=!1;const Xt="user-content-";let Ge=!0,Ce=!1,we={},Se=null;const ot=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rt=null;const st=m({},["audio","video","img","source","image","track"]);let We=null;const at=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Ae=de,Ye=!1,je=null;const Vt=m({},[Pe,Ue,de],qe);let ve=null;const qt=["application/xhtml+xml","text/html"],Zt="text/html";let L=null,xe=null;const Jt=o.createElement("form"),lt=function(t){return t instanceof RegExp||t instanceof Function},Xe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===t)){if((!t||typeof t!="object")&&(t={}),t=be(t),ve=qt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,L=ve==="application/xhtml+xml"?qe:Fe,p=ne(t,"ALLOWED_TAGS")?m({},t.ALLOWED_TAGS,L):ge,A=ne(t,"ALLOWED_ATTR")?m({},t.ALLOWED_ATTR,L):Ee,je=ne(t,"ALLOWED_NAMESPACES")?m({},t.ALLOWED_NAMESPACES,qe):Vt,We=ne(t,"ADD_URI_SAFE_ATTR")?m(be(at),t.ADD_URI_SAFE_ATTR,L):at,rt=ne(t,"ADD_DATA_URI_TAGS")?m(be(st),t.ADD_DATA_URI_TAGS,L):st,Se=ne(t,"FORBID_CONTENTS")?m({},t.FORBID_CONTENTS,L):ot,v=ne(t,"FORBID_TAGS")?m({},t.FORBID_TAGS,L):{},l=ne(t,"FORBID_ATTR")?m({},t.FORBID_ATTR,L):{},we=ne(t,"USE_PROFILES")?t.USE_PROFILES:!1,d=t.ALLOW_ARIA_ATTR!==!1,D=t.ALLOW_DATA_ATTR!==!1,M=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=t.SAFE_FOR_TEMPLATES||!1,K=t.SAFE_FOR_XML!==!1,se=t.WHOLE_DOCUMENT||!1,ae=t.RETURN_DOM||!1,De=t.RETURN_DOM_FRAGMENT||!1,Ie=t.RETURN_TRUSTED_TYPE||!1,x=t.FORCE_BODY||!1,nt=t.SANITIZE_DOM!==!1,it=t.SANITIZE_NAMED_PROPS||!1,Ge=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,X=t.ALLOWED_URI_REGEXP||Gt,Ae=t.NAMESPACE||de,E=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&<(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&<(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(D=!1),De&&(ae=!0),we&&(p=m({},Lt),A=[],we.html===!0&&(m(p,Mt),m(A,Rt)),we.svg===!0&&(m(p,Ze),m(A,Qe),m(A,ze)),we.svgFilters===!0&&(m(p,Je),m(A,Qe),m(A,ze)),we.mathMl===!0&&(m(p,Ke),m(A,Ot),m(A,ze))),t.ADD_TAGS&&(p===ge&&(p=be(p)),m(p,t.ADD_TAGS,L)),t.ADD_ATTR&&(A===Ee&&(A=be(A)),m(A,t.ADD_ATTR,L)),t.ADD_URI_SAFE_ATTR&&m(We,t.ADD_URI_SAFE_ATTR,L),t.FORBID_CONTENTS&&(Se===ot&&(Se=be(Se)),m(Se,t.FORBID_CONTENTS,L)),Ge&&(p["#text"]=!0),se&&m(p,["html","head","body"]),p.table&&(m(p,["tbody"]),delete v.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=t.TRUSTED_TYPES_POLICY,S=h.createHTML("")}else h===void 0&&(h=yn(H,a)),h!==null&&typeof S=="string"&&(S=h.createHTML(""));U&&U(t),xe=t}},ct=m({},["mi","mo","mn","ms","mtext"]),ut=m({},["foreignobject","annotation-xml"]),Kt=m({},["title","style","font","a","script"]),ft=m({},[...Ze,...Je,...cn]),pt=m({},[...Ke,...un]),Qt=function(t){let s=q(t);(!s||!s.tagName)&&(s={namespaceURI:Ae,tagName:"template"});const c=Fe(t.tagName),y=Fe(s.tagName);return je[t.namespaceURI]?t.namespaceURI===Ue?s.namespaceURI===de?c==="svg":s.namespaceURI===Pe?c==="svg"&&(y==="annotation-xml"||ct[y]):!!ft[c]:t.namespaceURI===Pe?s.namespaceURI===de?c==="math":s.namespaceURI===Ue?c==="math"&&ut[y]:!!pt[c]:t.namespaceURI===de?s.namespaceURI===Ue&&!ut[y]||s.namespaceURI===Pe&&!ct[y]?!1:!pt[c]&&(Kt[c]||!ft[c]):!!(ve==="application/xhtml+xml"&&je[t.namespaceURI]):!1},le=function(t){Le(n.removed,{element:t});try{q(t).removeChild(t)}catch(s){ie(t)}},He=function(t,s){try{Le(n.removed,{attribute:s.getAttributeNode(t),from:s})}catch(c){Le(n.removed,{attribute:null,from:s})}if(s.removeAttribute(t),t==="is"&&!A[t])if(ae||De)try{le(s)}catch(c){}else try{s.setAttribute(t,"")}catch(c){}},mt=function(t){let s=null,c=null;if(x)t="<remove></remove>"+t;else{const R=vt(t,/^[\r\n\t ]+/);c=R&&R[0]}ve==="application/xhtml+xml"&&Ae===de&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const y=h?h.createHTML(t):t;if(Ae===de)try{s=new Te().parseFromString(y,ve)}catch(R){}if(!s||!s.documentElement){s=ee.createDocument(Ae,"template",null);try{s.documentElement.innerHTML=Ye?S:y}catch(R){}}const k=s.body||s.documentElement;return t&&c&&k.insertBefore(o.createTextNode(c),k.childNodes[0]||null),Ae===de?F.call(s,se?"html":"body")[0]:se?s.documentElement:k},dt=function(t){return oe.call(t.ownerDocument||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},ht=function(t){return t instanceof $&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Y)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},_t=function(t){return typeof w=="function"&&t instanceof w},he=function(t,s,c){C[t]&&Be(C[t],y=>{y.call(n,s,c,xe)})},gt=function(t){let s=null;if(he("beforeSanitizeElements",t,null),ht(t))return le(t),!0;const c=L(t.nodeName);if(he("uponSanitizeElement",t,{tagName:c,allowedTags:p}),t.hasChildNodes()&&!_t(t.firstElementChild)&&P(/<[/\w]/g,t.innerHTML)&&P(/<[/\w]/g,t.textContent)||t.nodeType===Ne.progressingInstruction||K&&t.nodeType===Ne.comment&&P(/<[/\w]/g,t.data))return le(t),!0;if(!p[c]||v[c]){if(!v[c]&&Tt(c)&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,c)||E.tagNameCheck instanceof Function&&E.tagNameCheck(c)))return!1;if(Ge&&!Se[c]){const y=q(t)||t.parentNode,k=ue(t)||t.childNodes;if(k&&y){const R=k.length;for(let W=R-1;W>=0;--W){const ce=_e(k[W],!0);ce.__removalCount=(t.__removalCount||0)+1,y.insertBefore(ce,z(t))}}}return le(t),!0}return t instanceof T&&!Qt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&P(/<\/no(script|embed|frames)/i,t.innerHTML)?(le(t),!0):(me&&t.nodeType===Ne.text&&(s=t.textContent,Be([re,j,pe],y=>{s=Re(s,y," ")}),t.textContent!==s&&(Le(n.removed,{element:t.cloneNode()}),t.textContent=s)),he("afterSanitizeElements",t,null),!1)},Et=function(t,s,c){if(nt&&(s==="id"||s==="name")&&(c in o||c in Jt))return!1;if(!(D&&!l[s]&&P(Z,s))){if(!(d&&P(O,s))){if(!A[s]||l[s]){if(!(Tt(t)&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,t)||E.tagNameCheck instanceof Function&&E.tagNameCheck(t))&&(E.attributeNameCheck instanceof RegExp&&P(E.attributeNameCheck,s)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(s))||s==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,c)||E.tagNameCheck instanceof Function&&E.tagNameCheck(c))))return!1}else if(!We[s]){if(!P(X,Re(c,J,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&rt[t])){if(!(M&&!P(N,Re(c,J,"")))){if(c)return!1}}}}}}return!0},Tt=function(t){return t!=="annotation-xml"&&vt(t,ye)},yt=function(t){he("beforeSanitizeAttributes",t,null);const{attributes:s}=t;if(!s)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A};let y=s.length;for(;y--;){const k=s[y],{name:R,namespaceURI:W,value:ce}=k,Me=L(R);let I=R==="value"?ce:sn(ce);if(c.attrName=Me,c.attrValue=I,c.keepAttr=!0,c.forceKeepAttr=void 0,he("uponSanitizeAttribute",t,c),I=c.attrValue,K&&P(/((--!?|])>)|<\/(style|title)/i,I)){He(R,t);continue}if(c.forceKeepAttr||(He(R,t),!c.keepAttr))continue;if(!G&&P(/\/>/i,I)){He(R,t);continue}me&&Be([re,j,pe],wt=>{I=Re(I,wt," ")});const bt=L(t.nodeName);if(Et(bt,Me,I)){if(it&&(Me==="id"||Me==="name")&&(He(R,t),I=Xt+I),h&&typeof H=="object"&&typeof H.getAttributeType=="function"&&!W)switch(H.getAttributeType(bt,Me)){case"TrustedHTML":{I=h.createHTML(I);break}case"TrustedScriptURL":{I=h.createScriptURL(I);break}}try{W?t.setAttributeNS(W,R,I):t.setAttribute(R,I),ht(t)?le(t):Ct(n.removed)}catch(wt){}}}he("afterSanitizeAttributes",t,null)},$t=function u(t){let s=null;const c=dt(t);for(he("beforeSanitizeShadowDOM",t,null);s=c.nextNode();)he("uponSanitizeShadowNode",s,null),!gt(s)&&(s.content instanceof f&&u(s.content),yt(s));he("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(u){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=null,c=null,y=null,k=null;if(Ye=!u,Ye&&(u="<!-->"),typeof u!="string"&&!_t(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw Oe("dirty is not a string, aborting")}else throw Oe("toString is not a function");if(!n.isSupported)return u;if(b||Xe(t),n.removed=[],typeof u=="string"&&(Ce=!1),Ce){if(u.nodeName){const ce=L(u.nodeName);if(!p[ce]||v[ce])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof w)s=mt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===Ne.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!ae&&!me&&!se&&u.indexOf("<")===-1)return h&&Ie?h.createHTML(u):u;if(s=mt(u),!s)return ae?null:Ie?S:""}s&&x&&le(s.firstChild);const R=dt(Ce?u:s);for(;y=R.nextNode();)gt(y)||(y.content instanceof f&&$t(y.content),yt(y));if(Ce)return u;if(ae){if(De)for(k=fe.call(s.ownerDocument);s.firstChild;)k.appendChild(s.firstChild);else k=s;return(A.shadowroot||A.shadowrootmode)&&(k=te.call(r,k,!0)),k}let W=se?s.outerHTML:s.innerHTML;return se&&p["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&P(Wt,s.ownerDocument.doctype.name)&&(W="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
2
2
|
`+W),me&&Be([re,j,pe],ce=>{W=Re(W,ce," ")}),h&&Ie?h.createHTML(W):W},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xe(u),b=!0},n.clearConfig=function(){xe=null,b=!1},n.isValidAttribute=function(u,t,s){xe||Xe({});const c=L(u),y=L(t);return Et(c,y,s)},n.addHook=function(u,t){typeof t=="function"&&(C[u]=C[u]||[],Le(C[u],t))},n.removeHook=function(u){if(C[u])return Ct(C[u])},n.removeHooks=function(u){C[u]&&(C[u]=[])},n.removeAllHooks=function(){C={}},n}var Nt=Yt();function bn(i){e.append_styles(i,"svelte-1kjup2o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{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, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}')}const wn=i=>({}),Dt=i=>({}),Sn=i=>({}),It=i=>({}),An=i=>({}),Pt=i=>({}),xn=i=>({}),Ut=i=>({class:"CashierSessionExpirationIcon"});function Ht(i){let n,o,r,a,f,_,w,T,g,Y,$,Te,H=i[8]("sessionExpirationHeader")+"",B,_e,ie,z,ue,q,h,S,ee,oe,fe,F,te,C,re=i[8]("sessionExpirationEnd")+"",j,pe,Z,O,N,J,ye,X,p,ge,A;const Ee=i[23].icon,E=e.create_slot(Ee,i,i[22],Ut),v=E||Cn(i),l=i[23].title,d=e.create_slot(l,i,i[22],Pt),D=i[23].text,M=e.create_slot(D,i,i[22],It),G=M||vn(i),me=[Ln,Mn],K=[];function se(b,x){return b[6]?0:1}return O=se(i),N=K[O]=me[O](i),{c(){n=e.element("div"),o=e.element("div"),r=e.element("div"),a=e.element("div"),f=e.svg_element("svg"),_=e.svg_element("defs"),w=e.svg_element("mask"),T=e.svg_element("circle"),g=e.svg_element("rect"),Y=e.svg_element("circle"),$=e.svg_element("circle"),Te=e.space(),B=e.text(H),_e=e.space(),ie=e.element("div"),z=e.svg_element("svg"),ue=e.svg_element("path"),q=e.space(),h=e.element("div"),S=e.element("div"),v&&v.c(),ee=e.space(),d&&d.c(),oe=e.space(),G&&G.c(),fe=e.space(),F=e.element("div"),te=e.element("button"),C=e.element("span"),j=e.text(re),pe=e.space(),Z=e.element("button"),N.c(),e.attr(T,"cx","100"),e.attr(T,"cy","100"),e.attr(T,"r","90"),e.attr(g,"x","88"),e.attr(g,"y","40"),e.attr(g,"width","24"),e.attr(g,"height","80"),e.attr(g,"rx","12"),e.attr(g,"fill","black"),e.attr(Y,"cx","100"),e.attr(Y,"cy","150"),e.attr(Y,"r","14"),e.attr(Y,"fill","black"),e.attr(w,"id","exclamation-mask"),e.attr($,"cx","100"),e.attr($,"cy","100"),e.attr($,"r","90"),e.attr($,"mask","url(#exclamation-mask)"),e.attr(f,"viewBox","0 0 200 200"),e.attr(f,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"class","CashierSessionExpirationModalHeaderTitle"),e.attr(ue,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(z,"xmlns","http://www.w3.org/2000/svg"),e.attr(z,"viewBox","0 0 13 13"),e.attr(z,"fill","none"),e.attr(z,"class","CloseButton"),e.attr(ie,"class","ModalCloseIcon"),e.attr(r,"class","CashierSessionExpirationModalHeader"),e.attr(C,"class","CashierSessionExpirationButtonText"),e.attr(te,"type","button"),e.attr(te,"class","ModalButton Secondary"),e.attr(Z,"type","button"),e.attr(Z,"class",J="ModalButton Primary "+(i[6]?"Disabled":"")),e.attr(F,"class","ButtonsContainer"),e.attr(S,"class","CashierSessionExpiration"),e.attr(h,"class","CashierSessionExpirationModalContainer"),e.attr(o,"class","CashierSessionExpirationModalWrapper"),e.attr(n,"class","CashierSessionExpirationModalWindow"),e.attr(n,"id","CashierSessionExpirationModal"),e.add_render_callback(()=>i[25].call(n))},m(b,x){e.insert(b,n,x),e.append(n,o),e.append(o,r),e.append(r,a),e.append(a,f),e.append(f,_),e.append(_,w),e.append(w,T),e.append(w,g),e.append(w,Y),e.append(f,$),e.append(a,Te),e.append(a,B),e.append(r,_e),e.append(r,ie),e.append(ie,z),e.append(z,ue),e.append(o,q),e.append(o,h),e.append(h,S),v&&v.m(S,null),e.append(S,ee),d&&d.m(S,null),e.append(S,oe),G&&G.m(S,null),e.append(S,fe),e.append(S,F),e.append(F,te),e.append(te,C),e.append(C,j),e.append(F,pe),e.append(F,Z),K[O].m(Z,null),i[24](S),ye=e.add_iframe_resize_listener(n,i[25].bind(n)),p=!0,ge||(A=[e.listen(z,"click",i[11]),e.listen(te,"click",i[11]),e.listen(Z,"click",i[9]),e.listen(n,"click",i[10])],ge=!0)},p(b,x){i=b,(!p||x[0]&256)&&H!==(H=i[8]("sessionExpirationHeader")+"")&&e.set_data(B,H),E?E.p&&(!p||x[0]&4194304)&&e.update_slot_base(E,Ee,i,i[22],p?e.get_slot_changes(Ee,i[22],x,xn):e.get_all_dirty_from_scope(i[22]),Ut):v&&v.p&&(!p||x[0]&8)&&v.p(i,p?x:[-1,-1]),d&&d.p&&(!p||x[0]&4194304)&&e.update_slot_base(d,l,i,i[22],p?e.get_slot_changes(l,i[22],x,An):e.get_all_dirty_from_scope(i[22]),Pt),M?M.p&&(!p||x[0]&4194304)&&e.update_slot_base(M,D,i,i[22],p?e.get_slot_changes(D,i[22],x,Sn):e.get_all_dirty_from_scope(i[22]),It):G&&G.p&&(!p||x[0]&384)&&G.p(i,p?x:[-1,-1]),(!p||x[0]&256)&&re!==(re=i[8]("sessionExpirationEnd")+"")&&e.set_data(j,re);let ae=O;O=se(i),O===ae?K[O].p(i,x):(e.group_outros(),e.transition_out(K[ae],1,1,()=>{K[ae]=null}),e.check_outros(),N=K[O],N?N.p(i,x):(N=K[O]=me[O](i),N.c()),e.transition_in(N,1),N.m(Z,null)),(!p||x[0]&64&&J!==(J="ModalButton Primary "+(i[6]?"Disabled":"")))&&e.attr(Z,"class",J)},i(b){p||(e.transition_in(v,b),e.transition_in(d,b),e.transition_in(G,b),e.transition_in(N),b&&e.add_render_callback(()=>{p&&(X||(X=e.create_bidirectional_transition(n,$e,{duration:i[2]},!0)),X.run(1))}),p=!0)},o(b){e.transition_out(v,b),e.transition_out(d,b),e.transition_out(G,b),e.transition_out(N),b&&(X||(X=e.create_bidirectional_transition(n,$e,{duration:i[2]},!1)),X.run(0)),p=!1},d(b){b&&e.detach(n),v&&v.d(b),d&&d.d(b),G&&G.d(b),K[O].d(),i[24](null),ye(),b&&X&&X.end(),ge=!1,e.run_all(A)}}}function Bt(i){let n,o;return{c(){n=e.element("img"),e.src_url_equal(n.src,o=`${i[3]}/set-timeout-icon.png`)||e.attr(n,"src",o),e.attr(n,"width","300px"),e.attr(n,"alt","error")},m(r,a){e.insert(r,n,a)},p(r,a){a[0]&8&&!e.src_url_equal(n.src,o=`${r[3]}/set-timeout-icon.png`)&&e.attr(n,"src",o)},d(r){r&&e.detach(n)}}}function Cn(i){let n,o=i[3]&&Bt(i);return{c(){o&&o.c(),n=e.empty()},m(r,a){o&&o.m(r,a),e.insert(r,n,a)},p(r,a){r[3]?o?o.p(r,a):(o=Bt(r),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(r){r&&e.detach(n),o&&o.d(r)}}}function vn(i){let n,o,r=i[8]("sessionExpirationTitle")+"",a,f,_,w=Nt.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=e.element("span"),o=e.element("p"),a=e.text(r),f=e.space(),_=e.element("p"),e.attr(n,"class","CashierSessionExpirationText")},m(T,g){e.insert(T,n,g),e.append(n,o),e.append(o,a),e.append(n,f),e.append(n,_),_.innerHTML=w},p(T,g){g[0]&256&&r!==(r=T[8]("sessionExpirationTitle")+"")&&e.set_data(a,r),g[0]&384&&w!==(w=Nt.sanitize(T[8]("sessionExpirationGeneralText",{values:{second:T[7]}}))+"")&&(_.innerHTML=w)},d(T){T&&e.detach(n)}}}function Mn(i){let n;const o=i[23].button,r=e.create_slot(o,i,i[22],Dt),a=r||Rn(i);return{c(){a&&a.c()},m(f,_){a&&a.m(f,_),n=!0},p(f,_){r?r.p&&(!n||_[0]&4194304)&&e.update_slot_base(r,o,f,f[22],n?e.get_slot_changes(o,f[22],_,wn):e.get_all_dirty_from_scope(f[22]),Dt):a&&a.p&&(!n||_[0]&256)&&a.p(f,n?_:[-1,-1])},i(f){n||(e.transition_in(a,f),n=!0)},o(f){e.transition_out(a,f),n=!1},d(f){a&&a.d(f)}}}function Ln(i){let n,o,r,a,f,_=i[8]("sessionExpirationLoadingButton")+"",w;return{c(){n=e.element("div"),o=e.svg_element("svg"),r=e.svg_element("path"),a=e.space(),f=e.element("span"),w=e.text(_),e.attr(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),e.attr(r,"fill","white"),e.attr(o,"class","CashierSessionExpirationButtonSpinner"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","15"),e.attr(o,"height","14"),e.attr(o,"viewBox","0 0 15 14"),e.attr(o,"fill","none"),e.attr(f,"class","CashierSessionExpirationButtonText")},m(T,g){e.insert(T,n,g),e.append(n,o),e.append(o,r),e.append(n,a),e.append(n,f),e.append(f,w)},p(T,g){g[0]&256&&_!==(_=T[8]("sessionExpirationLoadingButton")+"")&&e.set_data(w,_)},i:e.noop,o:e.noop,d(T){T&&e.detach(n)}}}function Rn(i){let n,o=i[8]("sessionExpirationGeneralButton")+"",r;return{c(){n=e.element("span"),r=e.text(o),e.attr(n,"class","CashierSessionExpirationButtonText")},m(a,f){e.insert(a,n,f),e.append(n,r)},p(a,f){f[0]&256&&o!==(o=a[8]("sessionExpirationGeneralButton")+"")&&e.set_data(r,o)},d(a){a&&e.detach(n)}}}function On(i){let n,o,r=i[5]&&Ht(i);return{c(){n=e.element("div"),r&&r.c()},m(a,f){e.insert(a,n,f),r&&r.m(n,null),i[26](n),o=!0},p(a,f){a[5]?r?(r.p(a,f),f[0]&32&&e.transition_in(r,1)):(r=Ht(a),r.c(),e.transition_in(r,1),r.m(n,null)):r&&(e.group_outros(),e.transition_out(r,1,1,()=>{r=null}),e.check_outros())},i(a){o||(e.transition_in(r),o=!0)},o(a){e.transition_out(r),o=!1},d(a){a&&e.detach(n),r&&r.d(),i[26](null)}}}const kn=90;function Nn(i,n,o){let r,a;e.component_subscribe(i,e.xPaymentSessionToken,l=>o(21,r=l)),e.component_subscribe(i,e.$format,l=>o(8,a=l));let{$$slots:f={},$$scope:_}=n;e.dayjs.extend(e.utc);let{clientstyling:w=""}=n,{clientstylingurl:T=""}=n,{width:g}=n,{height:Y}=n,{duration:$=200}=n,{assetsurl:Te=""}=n,{lang:H="en"}=n,{translationurl:B=""}=n,{endpoint:_e}=n,{currency:ie}=n,{customerid:z}=n,{selectedpaymentmethodname:ue}=n,{mbsource:q=""}=n,h,S=!1,ee=!1,oe,fe,F,te,C,re;var j;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(j||(j={}));const pe=l=>{l.data.type==="StartSessionCountdown"&&(te=l.data.paymentMethodName)},Z=l=>{try{return JSON.parse(atob(l.split(".")[1]))}catch(d){return null}},O=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:C},window.location.href)},N=l=>{o(5,S=!1);const d=Z(l);d&&(fe=d==null?void 0:d.exp,o(7,oe=fe),F&&clearInterval(F),F=setInterval(()=>{const D=Math.floor(new Date().getTime()/1e3);o(7,oe=fe-D),oe<=kn&&o(5,S=!0),D>=fe&&(J(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},J=()=>{o(7,oe=0),o(5,S=!1),clearInterval(F)},ye=()=>{if(ee)return;const l=new URL(`${_e}/v1/player/${z}/payment/GetPaymentMethod`),d=new Headers;o(6,ee=!0),d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-Client-Request-Timestamp",e.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const D={method:"POST",mode:"cors",headers:d,body:JSON.stringify({PaymentMethodName:te||ue,Currency:ie,XPaymentSessionToken:r})};fetch(l,D).then(M=>M.json()).then(M=>{if(M.error){window.postMessage({type:"ShowSessionError",error:M.error},window.location.href),J();return}if(M.ResponseCode===j.PlayerSessionIsNotValid||M.ResponseCode===j.JwtTokenError){C=M.ResponseCode,J(),O();return}if(M.ResponseCode!==j.Success){C=M.ResponseCode,J();return}M.XPaymentSessionToken&&e.xPaymentSessionToken.set(M.XPaymentSessionToken)}).finally(()=>o(6,ee=!1))},X=l=>{const d=l.currentTarget;l.target===d&&ye()},p=()=>{fetch(B).then(d=>d.json()).then(d=>{Object.keys(d).forEach(D=>{St(D,d[D])})}).catch(d=>{console.log(d)})},ge=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),o(5,S=!1)};Object.keys(At).forEach(l=>{St(l,At[l])});const A=()=>{en(H)};e.onMount(()=>(window.addEventListener("message",pe,!1),()=>{window.removeEventListener("message",pe)})),e.onDestroy(()=>{clearInterval(F)});function Ee(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,o(4,h)})}function E(){g=this.clientWidth,Y=this.clientHeight,o(0,g),o(1,Y)}function v(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,o(4,h)})}return i.$$set=l=>{"clientstyling"in l&&o(12,w=l.clientstyling),"clientstylingurl"in l&&o(13,T=l.clientstylingurl),"width"in l&&o(0,g=l.width),"height"in l&&o(1,Y=l.height),"duration"in l&&o(2,$=l.duration),"assetsurl"in l&&o(3,Te=l.assetsurl),"lang"in l&&o(14,H=l.lang),"translationurl"in l&&o(15,B=l.translationurl),"endpoint"in l&&o(16,_e=l.endpoint),"currency"in l&&o(17,ie=l.currency),"customerid"in l&&o(18,z=l.customerid),"selectedpaymentmethodname"in l&&o(19,ue=l.selectedpaymentmethodname),"mbsource"in l&&o(20,q=l.mbsource),"$$scope"in l&&o(22,_=l.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2097152&&N(r),i.$$.dirty[0]&16384&&H&&A(),i.$$.dirty[0]&4112&&w&&h&&Ve.setClientStyling(h,w),i.$$.dirty[0]&8208&&T&&h&&Ve.setClientStylingURL(h,T),i.$$.dirty[0]&1048592&&q&&h&&Ve.setStreamStyling(h,`${q}.Style`,re),i.$$.dirty[0]&32768&&B&&p()},[g,Y,$,Te,h,S,ee,oe,a,ye,X,ge,w,T,H,B,_e,ie,z,ue,q,r,_,f,Ee,E,v]}class jt extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,Nn,On,e.safe_not_equal,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},bn,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get width(){return this.$$.ctx[0]}set width(n){this.$$set({width:n}),e.flush()}get height(){return this.$$.ctx[1]}set height(n){this.$$set({height:n}),e.flush()}get duration(){return this.$$.ctx[2]}set duration(n){this.$$set({duration:n}),e.flush()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(n){this.$$set({assetsurl:n}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get endpoint(){return this.$$.ctx[16]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get currency(){return this.$$.ctx[17]}set currency(n){this.$$set({currency:n}),e.flush()}get customerid(){return this.$$.ctx[18]}set customerid(n){this.$$set({customerid:n}),e.flush()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(n){this.$$set({selectedpaymentmethodname:n}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}}e.create_custom_element(jt,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);const Dn=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"}));exports.CashierSessionExpirationModal_ce=Dn;exports.fade=$e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as f, b as h, s as y, f as o, c as d, y as c, e as g, k as p, m as k, o as b, q as S, x, A as v } from "./CashierPage-
|
|
2
|
-
import { s as w, a as _, b as C } from "./CashierHeader-
|
|
1
|
+
import { S as f, b as h, s as y, f as o, c as d, y as c, e as g, k as p, m as k, o as b, q as S, x, A as v } from "./CashierPage-fWDW-t7q.js";
|
|
2
|
+
import { s as w, a as _, b as C } from "./CashierHeader-ZdCYbpAD.js";
|
|
3
3
|
function z(e) {
|
|
4
4
|
d(e, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierPage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierPage-CnReQV08.cjs"),c=require("./CashierHeader-C34sx3iv.cjs");function y(n){t.append_styles(n,"svelte-sjjtuo",".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function f(n){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner")},m(r,l){t.insert(r,e,l),n[4](e)},p:t.noop,i:t.noop,o:t.noop,d(r){r&&t.detach(e),n[4](null)}}}function m(n,e,r){let{clientstyling:l=""}=e,{clientstylingurl:o=""}=e,{mbsource:a=""}=e,i,h;t.onMount(()=>()=>{});function d(s){t.binding_callbacks[s?"unshift":"push"](()=>{i=s,r(0,i)})}return n.$$set=s=>{"clientstyling"in s&&r(1,l=s.clientstyling),"clientstylingurl"in s&&r(2,o=s.clientstylingurl),"mbsource"in s&&r(3,a=s.mbsource)},n.$$.update=()=>{n.$$.dirty&3&&l&&i&&c.setClientStyling(i,l),n.$$.dirty&5&&o&&i&&c.setClientStylingURL(i,o),n.$$.dirty&9&&a&&i&&c.setStreamStyling(i,`${a}.Style`,h)},[i,l,o,a,d]}class u extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,m,f,t.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(u,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as f, b as h, s as y, f as o, d, z as c, g, l as p, n as k, p as b, r as S, y as x, c as v } from "./CashierPage-
|
|
2
|
-
import { s as w, a as _, b as C } from "./CashierHeader-
|
|
1
|
+
import { S as f, b as h, s as y, f as o, d, z as c, g, l as p, n as k, p as b, r as S, y as x, c as v } from "./CashierPage-C0nhoSpy.js";
|
|
2
|
+
import { s as w, a as _, b as C } from "./CashierHeader-B-MiUqDu.js";
|
|
3
3
|
function z(e) {
|
|
4
4
|
d(e, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Ke, $ as Ge, S as Ye, b as Je, s as Qe, f as ie, d as Ze, z as ye, g as O, l as S, n as v, p as r, q as $e, r as et, y as Oe, w as P, m as d, A as ee, P as Y, o as R, x as L, F as xe, L as J, v as tt, D as Se, E as nt, c as ot, B as it } from "./CashierPage-
|
|
2
|
-
import { s as lt, a as rt, b as st } from "./CashierHeader-
|
|
1
|
+
import { a as Ke, $ as Ge, S as Ye, b as Je, s as Qe, f as ie, d as Ze, z as ye, g as O, l as S, n as v, p as r, q as $e, r as et, y as Oe, w as P, m as d, A as ee, P as Y, o as R, x as L, F as xe, L as J, v as tt, D as Se, E as nt, c as ot, B as it } from "./CashierPage-C0nhoSpy.js";
|
|
2
|
+
import { s as lt, a as rt, b as st } from "./CashierHeader-B-MiUqDu.js";
|
|
3
3
|
function Me(n, t) {
|
|
4
4
|
Ke(n, t);
|
|
5
5
|
}
|
|
@@ -26,8 +26,8 @@ var me = (n, t, e) => new Promise((o, i) => {
|
|
|
26
26
|
}, s = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(a, p);
|
|
27
27
|
s((e = e.apply(n, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { a as ot, $ as it, S as lt, b as rt, s as st, f as le, c as at, y as ke, e as O, k as S, m as v, o as r, p as ct, q as pt, x as Ae, v as D, l as d, z as te, P as J, n as x, w as L, F as Be, L as Q, r as ut, D as ze, E as dt, A as ft, B as mt } from "./CashierPage-
|
|
30
|
-
import { s as ht, a as gt, b as bt } from "./CashierHeader-
|
|
29
|
+
import { a as ot, $ as it, S as lt, b as rt, s as st, f as le, c as at, y as ke, e as O, k as S, m as v, o as r, p as ct, q as pt, x as Ae, v as D, l as d, z as te, P as J, n as x, w as L, F as Be, L as Q, r as ut, D as ze, E as dt, A as ft, B as mt } from "./CashierPage-fWDW-t7q.js";
|
|
30
|
+
import { s as ht, a as gt, b as bt } from "./CashierHeader-ZdCYbpAD.js";
|
|
31
31
|
function Re(n, t) {
|
|
32
32
|
ot(n, t);
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Be=Object.defineProperty,He=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var ge=Object.getOwnPropertySymbols;var qe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var _e=(r,n,t)=>n in r?Be(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t,ce=(r,n)=>{for(var t in n||(n={}))qe.call(n,t)&&_e(r,t,n[t]);if(ge)for(var t of ge(n))We.call(n,t)&&_e(r,t,n[t]);return r},be=(r,n)=>He(r,Ne(n));var re=(r,n,t)=>new Promise((a,l)=>{var o=p=>{try{s(t.next(p))}catch(u){l(u)}},c=p=>{try{s(t.throw(p))}catch(u){l(u)}},s=p=>p.done?a(p.value):Promise.resolve(p.value).then(o,c);s((t=t.apply(r,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-BL7F7z0O.cjs"),de=require("./CashierHeader-BnBu6anS.cjs");function we(r,n){e.addMessages(r,n)}function Fe(r){e.$locale.set(r)}const ye={en:{otpTitle:"Code verification is required",popupMessage:"Please enter the security code received on your SMS/email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, your transaction will fail and you will be returned back to payment method.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resent OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",timeRemaining:"Code expires in:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS",channelEmail:"Email",sendCode:"Send code",waitSeconds:"Please wait for before resending:"},tr:{otpTitle:"Kod doğrulaması gereklidir",popupMessage:"Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",accountBlocked:"OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",submissionError:"Bir şeyler ters gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",timeRemaining:"Kodun süresi doluyor:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS kodu",channelEmail:"E-posta kodu",sendCode:"Kodu gönder",waitSeconds:"Tekrar göndermeden önce lütfen bekleyin:"},fr:{otpTitle:"La vérification par code est requise",popupMessage:"Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d’effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Saisir le code OTP",resendOtp:"Renvoyer le code OTP",submit:"Valider",close:"Fermer",invalidOtp:"Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Une erreur s’est produite. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",timeRemaining:"Le code expire dans :",selectChannelTitle:"Sélectionner la méthode de vérification",selectChannelMessage:"Choisissez comment vous souhaitez recevoir votre code de vérification",channelSMS:"SMS",channelEmail:"E-mail",sendCode:"Envoyer le code",waitSeconds:"Veuillez patienter avant de renvoyer le code :"}};function Ue(r){e.append_styles(r,"svelte-gpy3mu",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}')}function ve(r,n,t){const a=r.slice();return a[69]=n[t],a[70]=n,a[71]=t,a}function Xe(r){let n,t,a,l,o,c,s,p,u,b,_,E,C,g,f,w,v,M=r[19]("channelSMS")+"",H,D,z,T,X,j,W,Y,F,k,O,P,J,Q,Z=r[19]("channelEmail")+"",V,ae,B,R,q,$,ee;function te(d,y){return d[9]?Je:d[12]?Ge:Ye}let U=te(r),N=U(r),I=r[0]&&Ce(r);function le(d,y){if(d[3]&&d[12])return nt;if(d[12]&&d[4])return tt}let K=le(r),x=K&&K(r);function ie(d,y){if(d[9])return at;if(d[12]&&d[4])return rt}let G=ie(r),L=G&&G(r);return{c(){n=e.element("div"),N.c(),t=e.space(),a=e.element("div"),l=e.element("label"),o=e.element("div"),c=e.space(),s=e.element("input"),u=e.space(),b=e.element("div"),_=e.svg_element("svg"),E=e.svg_element("path"),C=e.svg_element("circle"),g=e.svg_element("circle"),f=e.svg_element("circle"),w=e.space(),v=e.element("span"),H=e.text(M),D=e.space(),z=e.element("label"),T=e.element("div"),X=e.space(),j=e.element("input"),Y=e.space(),F=e.element("div"),k=e.svg_element("svg"),O=e.svg_element("rect"),P=e.svg_element("path"),J=e.space(),Q=e.element("span"),V=e.text(Z),ae=e.space(),I&&I.c(),B=e.space(),x&&x.c(),R=e.space(),q=e.element("div"),L&&L.c(),e.attr(n,"class","OtpDescription"),e.attr(o,"class","RadioIndicator"),e.toggle_class(o,"checked",r[0]===r[20].SMS),e.attr(s,"type","radio"),e.attr(s,"name","channel"),s.value=r[20].SMS,s.checked=p=r[0]===r[20].SMS,e.attr(E,"d","M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"),e.attr(C,"cx","9"),e.attr(C,"cy","11"),e.attr(C,"r","0.5"),e.attr(C,"fill","currentColor"),e.attr(g,"cx","12"),e.attr(g,"cy","11"),e.attr(g,"r","0.5"),e.attr(g,"fill","currentColor"),e.attr(f,"cx","15"),e.attr(f,"cy","11"),e.attr(f,"r","0.5"),e.attr(f,"fill","currentColor"),e.attr(_,"xmlns","http://www.w3.org/2000/svg"),e.attr(_,"width","24"),e.attr(_,"height","24"),e.attr(_,"viewBox","0 0 24 24"),e.attr(_,"fill","none"),e.attr(_,"stroke","currentColor"),e.attr(_,"stroke-width","2"),e.attr(_,"stroke-linecap","round"),e.attr(_,"stroke-linejoin","round"),e.attr(b,"class","ChannelContent"),e.attr(l,"class","ChannelCheckbox"),e.toggle_class(l,"selected",r[0]===r[20].SMS),e.attr(T,"class","RadioIndicator"),e.toggle_class(T,"checked",r[0]===r[20].EMAIL),e.attr(j,"type","radio"),e.attr(j,"name","channel"),j.value=r[20].EMAIL,j.checked=W=r[0]===r[20].EMAIL,e.attr(O,"x","2"),e.attr(O,"y","4"),e.attr(O,"width","20"),e.attr(O,"height","16"),e.attr(O,"rx","2"),e.attr(P,"d","m2 7 10 6 10-6"),e.attr(k,"xmlns","http://www.w3.org/2000/svg"),e.attr(k,"width","24"),e.attr(k,"height","24"),e.attr(k,"viewBox","0 0 24 24"),e.attr(k,"fill","none"),e.attr(k,"stroke","currentColor"),e.attr(k,"stroke-width","2"),e.attr(k,"stroke-linecap","round"),e.attr(k,"stroke-linejoin","round"),e.attr(F,"class","ChannelContent"),e.attr(z,"class","ChannelCheckbox"),e.toggle_class(z,"selected",r[0]===r[20].EMAIL),e.attr(a,"class","ChannelSelection"),e.attr(q,"class","OtpActionButtons")},m(d,y){e.insert(d,n,y),N.m(n,null),e.insert(d,t,y),e.insert(d,a,y),e.append(a,l),e.append(l,o),e.append(l,c),e.append(l,s),e.append(l,u),e.append(l,b),e.append(b,_),e.append(_,E),e.append(_,C),e.append(_,g),e.append(_,f),e.append(b,w),e.append(b,v),e.append(v,H),e.append(a,D),e.append(a,z),e.append(z,T),e.append(z,X),e.append(z,j),e.append(z,Y),e.append(z,F),e.append(F,k),e.append(k,O),e.append(k,P),e.append(F,J),e.append(F,Q),e.append(Q,V),e.insert(d,ae,y),I&&I.m(d,y),e.insert(d,B,y),x&&x.m(d,y),e.insert(d,R,y),e.insert(d,q,y),L&&L.m(q,null),$||(ee=[e.listen(s,"change",r[39]),e.listen(j,"change",r[40])],$=!0)},p(d,y){U===(U=te(d))&&N?N.p(d,y):(N.d(1),N=U(d),N&&(N.c(),N.m(n,null))),y[0]&1048577&&e.toggle_class(o,"checked",d[0]===d[20].SMS),y[0]&1&&p!==(p=d[0]===d[20].SMS)&&(s.checked=p),y[0]&524288&&M!==(M=d[19]("channelSMS")+"")&&e.set_data(H,M),y[0]&1048577&&e.toggle_class(l,"selected",d[0]===d[20].SMS),y[0]&1048577&&e.toggle_class(T,"checked",d[0]===d[20].EMAIL),y[0]&1&&W!==(W=d[0]===d[20].EMAIL)&&(j.checked=W),y[0]&524288&&Z!==(Z=d[19]("channelEmail")+"")&&e.set_data(V,Z),y[0]&1048577&&e.toggle_class(z,"selected",d[0]===d[20].EMAIL),d[0]?I?I.p(d,y):(I=Ce(d),I.c(),I.m(B.parentNode,B)):I&&(I.d(1),I=null),K===(K=le(d))&&x?x.p(d,y):(x&&x.d(1),x=K&&K(d),x&&(x.c(),x.m(R.parentNode,R))),G===(G=ie(d))&&L?L.p(d,y):(L&&L.d(1),L=G&&G(d),L&&(L.c(),L.m(q,null)))},d(d){d&&(e.detach(n),e.detach(t),e.detach(a),e.detach(ae),e.detach(B),e.detach(R),e.detach(q)),N.d(),I&&I.d(d),x&&x.d(d),L&&L.d(),$=!1,e.run_all(ee)}}}function Ke(r){let n,t,a,l,o,c,s=r[19]("errorHeader")+"",p,u,b,_,E,C,g=r[19]("close")+"",f,w,v;return{c(){n=e.element("div"),t=e.element("div"),a=e.svg_element("svg"),l=e.svg_element("path"),o=e.space(),c=e.element("h2"),p=e.text(s),u=e.space(),b=e.element("p"),_=e.text(r[8]),E=e.space(),C=e.element("button"),f=e.text(g),e.attr(l,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"viewBox","0 0 512 512"),e.attr(t,"class","OtpErrorHeader"),e.attr(C,"class","OtpButton error"),e.attr(n,"class","OtpError")},m(M,H){e.insert(M,n,H),e.append(n,t),e.append(t,a),e.append(a,l),e.append(t,o),e.append(t,c),e.append(c,p),e.append(n,u),e.append(n,b),e.append(b,_),e.append(n,E),e.append(n,C),e.append(C,f),w||(v=e.listen(C,"click",r[28]),w=!0)},p(M,H){H[0]&524288&&s!==(s=M[19]("errorHeader")+"")&&e.set_data(p,s),H[0]&256&&e.set_data(_,M[8]),H[0]&524288&&g!==(g=M[19]("close")+"")&&e.set_data(f,g)},d(M){M&&e.detach(n),w=!1,v()}}}function Ge(r){let n,t,a,l;function o(u,b){return u[10]?Ze:Qe}let c=o(r),s=c(r),p=r[6]&&ke(r);return{c(){n=e.element("p"),s.c(),a=e.space(),p&&p.c(),l=e.empty(),e.attr(n,"class",t=r[10]?"LastWarningMessage":"")},m(u,b){e.insert(u,n,b),s.m(n,null),e.insert(u,a,b),p&&p.m(u,b),e.insert(u,l,b)},p(u,b){c===(c=o(u))&&s?s.p(u,b):(s.d(1),s=c(u),s&&(s.c(),s.m(n,null))),b[0]&1024&&t!==(t=u[10]?"LastWarningMessage":"")&&e.attr(n,"class",t),u[6]?p?p.p(u,b):(p=ke(u),p.c(),p.m(l.parentNode,l)):p&&(p.d(1),p=null)},d(u){u&&(e.detach(n),e.detach(a),e.detach(l)),s.d(),p&&p.d(u)}}}function Ye(r){let n,t=(r[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",a;return{c(){n=e.element("p"),a=e.text(t)},m(l,o){e.insert(l,n,o),e.append(n,a)},p(l,o){o[0]&524288&&t!==(t=(l[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&e.set_data(a,t)},d(l){l&&e.detach(n)}}}function Je(r){let n,t=r[19]("otpExpiredMessage")+"",a;return{c(){n=e.element("p"),a=e.text(t),e.attr(n,"class","OtpNoticeMessage"),e.attr(n,"role","alert")},m(l,o){e.insert(l,n,o),e.append(n,a)},p(l,o){o[0]&524288&&t!==(t=l[19]("otpExpiredMessage")+"")&&e.set_data(a,t)},d(l){l&&e.detach(n)}}}function Qe(r){let n=r[19]("popupMessage")+"",t;return{c(){t=e.text(n)},m(a,l){e.insert(a,t,l)},p(a,l){l[0]&524288&&n!==(n=a[19]("popupMessage")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function Ze(r){let n=r[19]("popupMessageLastWarning")+"",t;return{c(){t=e.text(n)},m(a,l){e.insert(a,t,l)},p(a,l){l[0]&524288&&n!==(n=a[19]("popupMessageLastWarning")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function ke(r){let n,t;return{c(){n=e.element("p"),t=e.text(r[8]),e.attr(n,"class","OtpErrorMessage"),e.attr(n,"role","alert")},m(a,l){e.insert(a,n,l),e.append(n,t)},p(a,l){l[0]&256&&e.set_data(t,a[8])},d(a){a&&e.detach(n)}}}function Ce(r){let n,t,a,l;function o(p,u){return p[17]>0?et:$e}let c=o(r),s=c(r);return{c(){n=e.element("button"),s.c(),e.attr(n,"class","OtpButton"),n.disabled=t=!r[18],e.toggle_class(n,"disabled",!r[18]||r[16])},m(p,u){e.insert(p,n,u),s.m(n,null),a||(l=e.listen(n,"click",r[22]),a=!0)},p(p,u){c===(c=o(p))&&s?s.p(p,u):(s.d(1),s=c(p),s&&(s.c(),s.m(n,null))),u[0]&262144&&t!==(t=!p[18])&&(n.disabled=t),u[0]&327680&&e.toggle_class(n,"disabled",!p[18]||p[16])},d(p){p&&e.detach(n),s.d(),a=!1,l()}}}function $e(r){let n=r[19]("sendCode")+"",t;return{c(){t=e.text(n)},m(a,l){e.insert(a,t,l)},p(a,l){l[0]&524288&&n!==(n=a[19]("sendCode")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function et(r){let n=r[19]("waitSeconds")+"",t,a,l,o;return{c(){t=e.text(n),a=e.text(" ("),l=e.text(r[17]),o=e.text("s)")},m(c,s){e.insert(c,t,s),e.insert(c,a,s),e.insert(c,l,s),e.insert(c,o,s)},p(c,s){s[0]&524288&&n!==(n=c[19]("waitSeconds")+"")&&e.set_data(t,n),s[0]&131072&&e.set_data(l,c[17])},d(c){c&&(e.detach(t),e.detach(a),e.detach(l),e.detach(o))}}}function tt(r){let n,t,a=r[19]("timeRemaining")+"",l,o,c=r[23](r[5])+"",s,p,u=r[19]("minutes")+"",b,_,E,C=e.ensure_array_like(r[2]),g=[];for(let f=0;f<C.length;f+=1)g[f]=Ee(ve(r,C,f));return{c(){n=e.element("div"),t=e.element("div"),l=e.text(a),o=e.space(),s=e.text(c),p=e.space(),b=e.text(u),_=e.space(),E=e.element("div");for(let f=0;f<g.length;f+=1)g[f].c();e.attr(t,"class","OtpTimer"),e.attr(E,"class","OtpField"),e.attr(n,"class","OtpFieldWrapper")},m(f,w){e.insert(f,n,w),e.append(n,t),e.append(t,l),e.append(t,o),e.append(t,s),e.append(t,p),e.append(t,b),e.append(n,_),e.append(n,E);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(E,null)},p(f,w){if(w[0]&524288&&a!==(a=f[19]("timeRemaining")+"")&&e.set_data(l,a),w[0]&32&&c!==(c=f[23](f[5])+"")&&e.set_data(s,c),w[0]&524288&&u!==(u=f[19]("minutes")+"")&&e.set_data(b,u),w[0]&117458964){C=e.ensure_array_like(f[2]);let v;for(v=0;v<C.length;v+=1){const M=ve(f,C,v);g[v]?g[v].p(M,w):(g[v]=Ee(M),g[v].c(),g[v].m(E,null))}for(;v<g.length;v+=1)g[v].d(1);g.length=C.length}},d(f){f&&e.detach(n),e.destroy_each(g,f)}}}function nt(r){let n;return{c(){n=e.element("div"),n.innerHTML='<span class="OtpLoader"></span>',e.attr(n,"class","OtpLoaderContainer")},m(t,a){e.insert(t,n,a)},p:e.noop,d(t){t&&e.detach(n)}}}function Ee(r){let n,t,a,l=r[71],o,c;const s=()=>r[41](n,l),p=()=>r[41](null,l);function u(..._){return r[42](r[71],..._)}function b(..._){return r[43](r[71],..._)}return{c(){n=e.element("input"),e.attr(n,"id",`otp-input-${r[71]}`),e.attr(n,"type","text"),e.attr(n,"class",t=`otp-box ${r[4].inputLength%2===0&&r[71]===r[4].inputLength/2-1?"space":""}`),e.attr(n,"maxlength",1),n.value=a=r[69],e.attr(n,"inputmode","numeric"),n.disabled=r[11],e.attr(n,"autocomplete","off")},m(_,E){e.insert(_,n,E),s(),o||(c=[e.listen(n,"input",u),e.listen(n,"keydown",b),e.listen(n,"paste",r[24])],o=!0)},p(_,E){r=_,E[0]&16&&t!==(t=`otp-box ${r[4].inputLength%2===0&&r[71]===r[4].inputLength/2-1?"space":""}`)&&e.attr(n,"class",t),E[0]&4&&a!==(a=r[69])&&n.value!==a&&(n.value=a),E[0]&2048&&(n.disabled=r[11]),l!==r[71]&&(p(),l=r[71],s())},d(_){_&&e.detach(n),p(),o=!1,e.run_all(c)}}}function rt(r){let n,t=r[19]("submit")+"",a,l,o,c;return{c(){n=e.element("button"),a=e.text(t),e.attr(n,"class","OtpButton"),n.disabled=l=r[2].join("").length!==r[4].inputLength||r[13]||r[15]},m(s,p){e.insert(s,n,p),e.append(n,a),o||(c=e.listen(n,"click",r[29]),o=!0)},p(s,p){p[0]&524288&&t!==(t=s[19]("submit")+"")&&e.set_data(a,t),p[0]&40980&&l!==(l=s[2].join("").length!==s[4].inputLength||s[13]||s[15])&&(n.disabled=l)},d(s){s&&e.detach(n),o=!1,c()}}}function at(r){let n,t=r[19]("resendOtp")+"",a,l,o;return{c(){n=e.element("button"),a=e.text(t),e.attr(n,"class","OtpButton")},m(c,s){e.insert(c,n,s),e.append(n,a),l||(o=e.listen(n,"click",r[27]),l=!0)},p(c,s){s[0]&524288&&t!==(t=c[19]("resendOtp")+"")&&e.set_data(a,t)},d(c){c&&e.detach(n),l=!1,o()}}}function lt(r){let n;function t(o,c){return o[7]?Ke:Xe}let a=t(r),l=a(r);return{c(){n=e.element("div"),l.c(),e.attr(n,"class","OtpContent")},m(o,c){e.insert(o,n,c),l.m(n,null),r[44](n)},p(o,c){a===(a=t(o))&&l?l.p(o,c):(l.d(1),l=a(o),l&&(l.c(),l.m(n,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(n),l.d(),r[44](null)}}}function it(r,n,t){let a,l,o;e.component_subscribe(r,e.$format,i=>t(19,o=i));let{clientstyling:c=""}=n,{clientstylingurl:s=""}=n,{mbsource:p}=n,{lang:u="en"}=n,{endpoint:b}=n,{session:_}=n,{translationurl:E}=n,{templateid:C}=n,g=[],f=!0,w=null,v=0,M="",H="",D=!1,z=!1,T="",X="",j="",W=!1,Y=!1,F=!1,k="",O={},P=null,J=!1,Q=!1,Z="",V,ae,B=[],R=null,q=0,$=!1,ee=!1;const te={SMS:"sms",EMAIL:"email"},U={MAX_ATTEMPTS_EXCEEDED:"gm.twofa.token_max_attempts_exceeded",INTERNAL_SERVER_ERROR:"gm.multifactorauthentication.internal_server_error",MAX_INVALIDATE:"gm.multifactorauthentication.challenge_internal_server_error"};Object.keys(ye).forEach(i=>{we(i,ye[i])});const N=()=>{Fe(u)},I=()=>{fetch(E).then(i=>i.json()).then(i=>{Object.keys(i).forEach(m=>{we(m,i[m])})}).catch(i=>{console.log(i)})},le=i=>re(this,null,function*(){var m;if((m=i.detail)!=null&&m["x-step-up-required"]){if(t(7,z=!1),t(6,D=!1),t(8,T=""),X=i.detail["x-step-up-token"],j=i.detail.flow,!X||!j){t(3,f=!1),t(7,z=!0),t(8,T=o("configError"));return}t(12,J=!1),t(3,f=!1)}}),K=()=>{R&&(clearInterval(R),R=null),P&&(clearInterval(P),P=null),t(6,D=!1),t(7,z=!1),t(8,T=""),t(10,Y=!1),t(2,g=[]),t(4,w=null),t(3,f=!0),t(0,k=""),t(12,J=!1),t(38,O={})},x=()=>{K()},ie=()=>new Promise((i,m)=>{const h=new URL(`${b}/api/pam/v1/mfa/challenge/${X}`),S=new Headers;S.append("accept","application/json"),S.append("Content-Type","application/json"),S.append("X-SessionId",`${_}`),t(16,ee=!0);const ne={method:"PATCH",headers:S,body:JSON.stringify({channel:k,templateId:C})};fetch(h,ne).then(he=>he.json()).then(()=>{t(15,$=!1),y(),se(),i()}).catch(he=>{m()})}),G=()=>{P&&clearInterval(P),P=setInterval(()=>{const i=ce({},O);let m=!1;Object.keys(i).forEach(h=>{i[h]>0&&(i[h]--,m=!0)}),t(38,O=i),!m&&P&&(clearInterval(P),P=null)},1e3)},L=i=>{t(0,k=i)},d=()=>re(this,null,function*(){if(!(!k||O[k]&&O[k]>0)){t(3,f=!0),C&&C.startsWith("2fa-")&&t(30,C=`2fa-${k}`);try{yield ie(),yield pe(),t(38,O=be(ce({},O),{[k]:30})),G(),t(12,J=!0),y(),se()}catch(i){console.error("Error submitting channel:",i),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}}),y=()=>{const i=new Date(M),m=new Date(H),h=new Date,S=m.getTime()-h.getTime();q=i.getTime()-S;const A=Date.now(),ne=Math.max(0,Math.floor((q-A)/1e3));t(5,v=ne)},se=()=>{R&&clearInterval(R),R=setInterval(()=>{const i=Date.now(),m=Math.max(0,Math.floor((q-i)/1e3));t(5,v=m),t(11,F=m<=0),m<=0&&(clearInterval(R),R=null,t(9,W=!0),t(6,D=!1),t(10,Y=!1))},1e3)},Se=i=>{const m=Math.floor(i/60),h=i%60;return`${m.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`},oe=(i,m)=>{const h=[...g];h[i]=m.toUpperCase(),t(2,g=h),h.join("")!==Z&&t(13,Q=!1)},Me=i=>{var S,A,ne;i.preventDefault();const h=(((A=(S=i.clipboardData)==null?void 0:S.getData("text"))==null?void 0:A.trim())||"").slice(0,w.inputLength).split("");t(2,g=[...h,...Array(w.inputLength-h.length).fill("")]),(ne=B[h.length])==null||ne.focus(),h.length===w.inputLength&&me()},ue=(i,m)=>{const h=i.target,S=h.value;if(/^[a-z0-9]$/i.test(S)){oe(m,S);const A=B[m+1];A==null||A.focus()}h.value=""},fe=(i,m)=>{const h=i.key,S=i.ctrlKey||i.metaKey;if(/^[a-z0-9]$/i.test(h)){if(S&&h.toLowerCase()==="v")return;i.preventDefault(),oe(m,h);const A=B[m+1];A==null||A.focus()}else if(h==="Backspace"){i.preventDefault(),g[m]!==""&&oe(m,"");const A=B[m-1];A==null||A.focus()}},Te=()=>{j=="stateful"&&(ie(),t(9,W=!1));const i=new CustomEvent("otpResendRequested");window.dispatchEvent(i)},Le=i=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:i,maxAttempts:w.maxValidationAttempts,validatedAttempts:w.numberOfValidateAttempts}}))},xe=i=>re(this,null,function*(){const m=new URL(`/api/nwa/api/v1/mfa/challenge/${X}/validate`,b);m.searchParams.append("input",i);try{const h=yield fetch(m.href,{method:"POST"});if(h.status===200){Ae();return}const S=yield h.json();throw new Error(S.message)}catch(h){if(yield pe(),h.message===U.INTERNAL_SERVER_ERROR){if(w.numberOfValidateAttempts===w.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("accountBlocked")}},window.location.href),window.dispatchEvent(new CustomEvent("manualClosePopup"));return}t(6,D=!0),t(8,T=o("invalidOtp")),pe();return}h.message===U.MAX_INVALIDATE&&(t(6,D=!0),t(8,T=o("invalidOtp"))),h.details===U.MAX_ATTEMPTS_EXCEEDED&&t(15,$=!0),console.error("OTP submission failed:",h),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}),Ae=()=>{window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}}))},ze=()=>{window.dispatchEvent(new CustomEvent("manualClosePopup"))},me=()=>re(this,null,function*(){if(g.join("").length!==w.inputLength){t(6,D=!0),t(8,T=o("invalidOtp"));return}const i=g.join("");t(13,Q=!0),Z=i,t(3,f=!0),t(6,D=!1),t(8,T=""),j==="stateless"&&Le(i),j==="stateful"&&(yield xe(i))}),pe=()=>re(this,null,function*(){if(b)try{t(3,f=!0);const i=new URL(`/api/nwa/api/v1/mfa/challenge/${X}/config`,b),m=yield fetch(i.href),h=yield m.json();if(m.ok)t(4,w=h),t(2,g=Array(w.inputLength).fill("")),t(9,W=!1),M=w.expirationTime,H=w.serverTime,w.numberOfValidateAttempts!==0&&(t(6,D=!0),t(8,T=o("invalidOtp"))),w.numberOfValidateAttempts===w.maxValidationAttempts-1&&t(10,Y=!0),t(3,f=!1),y(),se(),t(16,ee=!1);else if(h&&h.details===U.MAX_ATTEMPTS_EXCEEDED)window.dispatchEvent(new CustomEvent("manualClosePopup"));else{const S=h&&h.message||`Failed to load config. Status: ${m.status}`;throw new Error(S)}}catch(i){t(3,f=!1),t(7,z=!0),t(8,T=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",i)}});e.onMount(()=>(window.addEventListener("stepUpAuthRequired",le,!1),window.addEventListener("closePopup",x,!1),()=>{window.removeEventListener("stepUpAuthRequired",le),window.removeEventListener("closePopup",x,!1),R&&clearInterval(R),P&&clearInterval(P)}));const Re=()=>L(te.SMS),Ie=()=>L(te.EMAIL);function Pe(i,m){e.binding_callbacks[i?"unshift":"push"](()=>{B[m]=i,t(14,B)})}const De=(i,m)=>ue(m,i),je=(i,m)=>fe(m,i);function Ve(i){e.binding_callbacks[i?"unshift":"push"](()=>{V=i,t(1,V)})}return r.$$set=i=>{"clientstyling"in i&&t(31,c=i.clientstyling),"clientstylingurl"in i&&t(32,s=i.clientstylingurl),"mbsource"in i&&t(33,p=i.mbsource),"lang"in i&&t(34,u=i.lang),"endpoint"in i&&t(35,b=i.endpoint),"session"in i&&t(36,_=i.session),"translationurl"in i&&t(37,E=i.translationurl),"templateid"in i&&t(30,C=i.templateid)},r.$$.update=()=>{r.$$.dirty[0]&2|r.$$.dirty[1]&1&&c&&V&&de.setClientStyling(V,c),r.$$.dirty[0]&2|r.$$.dirty[1]&2&&s&&V&&de.setClientStylingURL(V,s),r.$$.dirty[0]&2|r.$$.dirty[1]&4&&p&&V&&de.setStreamStyling(V,`${p}.Style`,ae),r.$$.dirty[1]&8&&u&&N(),r.$$.dirty[1]&72&&u&&E&&I(),r.$$.dirty[0]&1|r.$$.dirty[1]&128&&t(18,a=k&&(!O[k]||O[k]===0)),r.$$.dirty[0]&1|r.$$.dirty[1]&128&&t(17,l=k&&O[k]||0)},[k,V,g,f,w,v,D,z,T,W,Y,F,J,Q,B,$,ee,l,a,o,te,L,d,Se,Me,ue,fe,Te,ze,me,C,c,s,p,u,b,_,E,O,Re,Ie,Pe,De,je,Ve]}class Oe extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,it,lt,e.safe_not_equal,{clientstyling:31,clientstylingurl:32,mbsource:33,lang:34,endpoint:35,session:36,translationurl:37,templateid:30},Ue,[-1,-1,-1])}get clientstyling(){return this.$$.ctx[31]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[32]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get mbsource(){return this.$$.ctx[33]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}get lang(){return this.$$.ctx[34]}set lang(n){this.$$set({lang:n}),e.flush()}get endpoint(){return this.$$.ctx[35]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get session(){return this.$$.ctx[36]}set session(n){this.$$set({session:n}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get templateid(){return this.$$.ctx[30]}set templateid(n){this.$$set({templateid:n}),e.flush()}}e.create_custom_element(Oe,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},session:{},translationurl:{},templateid:{}},[],[],!0);exports.default=Oe;
|
|
1
|
+
"use strict";var Be=Object.defineProperty,He=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var ge=Object.getOwnPropertySymbols;var qe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var _e=(r,n,t)=>n in r?Be(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t,ce=(r,n)=>{for(var t in n||(n={}))qe.call(n,t)&&_e(r,t,n[t]);if(ge)for(var t of ge(n))We.call(n,t)&&_e(r,t,n[t]);return r},be=(r,n)=>He(r,Ne(n));var re=(r,n,t)=>new Promise((a,l)=>{var o=p=>{try{s(t.next(p))}catch(u){l(u)}},c=p=>{try{s(t.throw(p))}catch(u){l(u)}},s=p=>p.done?a(p.value):Promise.resolve(p.value).then(o,c);s((t=t.apply(r,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-CnReQV08.cjs"),de=require("./CashierHeader-C34sx3iv.cjs");function we(r,n){e.addMessages(r,n)}function Fe(r){e.$locale.set(r)}const ye={en:{otpTitle:"Code verification is required",popupMessage:"Please enter the security code received on your SMS/email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, your transaction will fail and you will be returned back to payment method.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resent OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",timeRemaining:"Code expires in:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS",channelEmail:"Email",sendCode:"Send code",waitSeconds:"Please wait for before resending:"},tr:{otpTitle:"Kod doğrulaması gereklidir",popupMessage:"Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",accountBlocked:"OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",submissionError:"Bir şeyler ters gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",timeRemaining:"Kodun süresi doluyor:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS kodu",channelEmail:"E-posta kodu",sendCode:"Kodu gönder",waitSeconds:"Tekrar göndermeden önce lütfen bekleyin:"},fr:{otpTitle:"La vérification par code est requise",popupMessage:"Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d’effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Saisir le code OTP",resendOtp:"Renvoyer le code OTP",submit:"Valider",close:"Fermer",invalidOtp:"Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Une erreur s’est produite. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",timeRemaining:"Le code expire dans :",selectChannelTitle:"Sélectionner la méthode de vérification",selectChannelMessage:"Choisissez comment vous souhaitez recevoir votre code de vérification",channelSMS:"SMS",channelEmail:"E-mail",sendCode:"Envoyer le code",waitSeconds:"Veuillez patienter avant de renvoyer le code :"}};function Ue(r){e.append_styles(r,"svelte-gpy3mu",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}')}function ve(r,n,t){const a=r.slice();return a[69]=n[t],a[70]=n,a[71]=t,a}function Xe(r){let n,t,a,l,o,c,s,p,u,b,_,E,C,g,f,w,v,M=r[19]("channelSMS")+"",H,D,z,T,X,j,W,Y,F,k,O,P,J,Q,Z=r[19]("channelEmail")+"",V,ae,B,R,q,$,ee;function te(d,y){return d[9]?Je:d[12]?Ge:Ye}let U=te(r),N=U(r),I=r[0]&&Ce(r);function le(d,y){if(d[3]&&d[12])return nt;if(d[12]&&d[4])return tt}let K=le(r),x=K&&K(r);function ie(d,y){if(d[9])return at;if(d[12]&&d[4])return rt}let G=ie(r),L=G&&G(r);return{c(){n=e.element("div"),N.c(),t=e.space(),a=e.element("div"),l=e.element("label"),o=e.element("div"),c=e.space(),s=e.element("input"),u=e.space(),b=e.element("div"),_=e.svg_element("svg"),E=e.svg_element("path"),C=e.svg_element("circle"),g=e.svg_element("circle"),f=e.svg_element("circle"),w=e.space(),v=e.element("span"),H=e.text(M),D=e.space(),z=e.element("label"),T=e.element("div"),X=e.space(),j=e.element("input"),Y=e.space(),F=e.element("div"),k=e.svg_element("svg"),O=e.svg_element("rect"),P=e.svg_element("path"),J=e.space(),Q=e.element("span"),V=e.text(Z),ae=e.space(),I&&I.c(),B=e.space(),x&&x.c(),R=e.space(),q=e.element("div"),L&&L.c(),e.attr(n,"class","OtpDescription"),e.attr(o,"class","RadioIndicator"),e.toggle_class(o,"checked",r[0]===r[20].SMS),e.attr(s,"type","radio"),e.attr(s,"name","channel"),s.value=r[20].SMS,s.checked=p=r[0]===r[20].SMS,e.attr(E,"d","M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"),e.attr(C,"cx","9"),e.attr(C,"cy","11"),e.attr(C,"r","0.5"),e.attr(C,"fill","currentColor"),e.attr(g,"cx","12"),e.attr(g,"cy","11"),e.attr(g,"r","0.5"),e.attr(g,"fill","currentColor"),e.attr(f,"cx","15"),e.attr(f,"cy","11"),e.attr(f,"r","0.5"),e.attr(f,"fill","currentColor"),e.attr(_,"xmlns","http://www.w3.org/2000/svg"),e.attr(_,"width","24"),e.attr(_,"height","24"),e.attr(_,"viewBox","0 0 24 24"),e.attr(_,"fill","none"),e.attr(_,"stroke","currentColor"),e.attr(_,"stroke-width","2"),e.attr(_,"stroke-linecap","round"),e.attr(_,"stroke-linejoin","round"),e.attr(b,"class","ChannelContent"),e.attr(l,"class","ChannelCheckbox"),e.toggle_class(l,"selected",r[0]===r[20].SMS),e.attr(T,"class","RadioIndicator"),e.toggle_class(T,"checked",r[0]===r[20].EMAIL),e.attr(j,"type","radio"),e.attr(j,"name","channel"),j.value=r[20].EMAIL,j.checked=W=r[0]===r[20].EMAIL,e.attr(O,"x","2"),e.attr(O,"y","4"),e.attr(O,"width","20"),e.attr(O,"height","16"),e.attr(O,"rx","2"),e.attr(P,"d","m2 7 10 6 10-6"),e.attr(k,"xmlns","http://www.w3.org/2000/svg"),e.attr(k,"width","24"),e.attr(k,"height","24"),e.attr(k,"viewBox","0 0 24 24"),e.attr(k,"fill","none"),e.attr(k,"stroke","currentColor"),e.attr(k,"stroke-width","2"),e.attr(k,"stroke-linecap","round"),e.attr(k,"stroke-linejoin","round"),e.attr(F,"class","ChannelContent"),e.attr(z,"class","ChannelCheckbox"),e.toggle_class(z,"selected",r[0]===r[20].EMAIL),e.attr(a,"class","ChannelSelection"),e.attr(q,"class","OtpActionButtons")},m(d,y){e.insert(d,n,y),N.m(n,null),e.insert(d,t,y),e.insert(d,a,y),e.append(a,l),e.append(l,o),e.append(l,c),e.append(l,s),e.append(l,u),e.append(l,b),e.append(b,_),e.append(_,E),e.append(_,C),e.append(_,g),e.append(_,f),e.append(b,w),e.append(b,v),e.append(v,H),e.append(a,D),e.append(a,z),e.append(z,T),e.append(z,X),e.append(z,j),e.append(z,Y),e.append(z,F),e.append(F,k),e.append(k,O),e.append(k,P),e.append(F,J),e.append(F,Q),e.append(Q,V),e.insert(d,ae,y),I&&I.m(d,y),e.insert(d,B,y),x&&x.m(d,y),e.insert(d,R,y),e.insert(d,q,y),L&&L.m(q,null),$||(ee=[e.listen(s,"change",r[39]),e.listen(j,"change",r[40])],$=!0)},p(d,y){U===(U=te(d))&&N?N.p(d,y):(N.d(1),N=U(d),N&&(N.c(),N.m(n,null))),y[0]&1048577&&e.toggle_class(o,"checked",d[0]===d[20].SMS),y[0]&1&&p!==(p=d[0]===d[20].SMS)&&(s.checked=p),y[0]&524288&&M!==(M=d[19]("channelSMS")+"")&&e.set_data(H,M),y[0]&1048577&&e.toggle_class(l,"selected",d[0]===d[20].SMS),y[0]&1048577&&e.toggle_class(T,"checked",d[0]===d[20].EMAIL),y[0]&1&&W!==(W=d[0]===d[20].EMAIL)&&(j.checked=W),y[0]&524288&&Z!==(Z=d[19]("channelEmail")+"")&&e.set_data(V,Z),y[0]&1048577&&e.toggle_class(z,"selected",d[0]===d[20].EMAIL),d[0]?I?I.p(d,y):(I=Ce(d),I.c(),I.m(B.parentNode,B)):I&&(I.d(1),I=null),K===(K=le(d))&&x?x.p(d,y):(x&&x.d(1),x=K&&K(d),x&&(x.c(),x.m(R.parentNode,R))),G===(G=ie(d))&&L?L.p(d,y):(L&&L.d(1),L=G&&G(d),L&&(L.c(),L.m(q,null)))},d(d){d&&(e.detach(n),e.detach(t),e.detach(a),e.detach(ae),e.detach(B),e.detach(R),e.detach(q)),N.d(),I&&I.d(d),x&&x.d(d),L&&L.d(),$=!1,e.run_all(ee)}}}function Ke(r){let n,t,a,l,o,c,s=r[19]("errorHeader")+"",p,u,b,_,E,C,g=r[19]("close")+"",f,w,v;return{c(){n=e.element("div"),t=e.element("div"),a=e.svg_element("svg"),l=e.svg_element("path"),o=e.space(),c=e.element("h2"),p=e.text(s),u=e.space(),b=e.element("p"),_=e.text(r[8]),E=e.space(),C=e.element("button"),f=e.text(g),e.attr(l,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"viewBox","0 0 512 512"),e.attr(t,"class","OtpErrorHeader"),e.attr(C,"class","OtpButton error"),e.attr(n,"class","OtpError")},m(M,H){e.insert(M,n,H),e.append(n,t),e.append(t,a),e.append(a,l),e.append(t,o),e.append(t,c),e.append(c,p),e.append(n,u),e.append(n,b),e.append(b,_),e.append(n,E),e.append(n,C),e.append(C,f),w||(v=e.listen(C,"click",r[28]),w=!0)},p(M,H){H[0]&524288&&s!==(s=M[19]("errorHeader")+"")&&e.set_data(p,s),H[0]&256&&e.set_data(_,M[8]),H[0]&524288&&g!==(g=M[19]("close")+"")&&e.set_data(f,g)},d(M){M&&e.detach(n),w=!1,v()}}}function Ge(r){let n,t,a,l;function o(u,b){return u[10]?Ze:Qe}let c=o(r),s=c(r),p=r[6]&&ke(r);return{c(){n=e.element("p"),s.c(),a=e.space(),p&&p.c(),l=e.empty(),e.attr(n,"class",t=r[10]?"LastWarningMessage":"")},m(u,b){e.insert(u,n,b),s.m(n,null),e.insert(u,a,b),p&&p.m(u,b),e.insert(u,l,b)},p(u,b){c===(c=o(u))&&s?s.p(u,b):(s.d(1),s=c(u),s&&(s.c(),s.m(n,null))),b[0]&1024&&t!==(t=u[10]?"LastWarningMessage":"")&&e.attr(n,"class",t),u[6]?p?p.p(u,b):(p=ke(u),p.c(),p.m(l.parentNode,l)):p&&(p.d(1),p=null)},d(u){u&&(e.detach(n),e.detach(a),e.detach(l)),s.d(),p&&p.d(u)}}}function Ye(r){let n,t=(r[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",a;return{c(){n=e.element("p"),a=e.text(t)},m(l,o){e.insert(l,n,o),e.append(n,a)},p(l,o){o[0]&524288&&t!==(t=(l[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&e.set_data(a,t)},d(l){l&&e.detach(n)}}}function Je(r){let n,t=r[19]("otpExpiredMessage")+"",a;return{c(){n=e.element("p"),a=e.text(t),e.attr(n,"class","OtpNoticeMessage"),e.attr(n,"role","alert")},m(l,o){e.insert(l,n,o),e.append(n,a)},p(l,o){o[0]&524288&&t!==(t=l[19]("otpExpiredMessage")+"")&&e.set_data(a,t)},d(l){l&&e.detach(n)}}}function Qe(r){let n=r[19]("popupMessage")+"",t;return{c(){t=e.text(n)},m(a,l){e.insert(a,t,l)},p(a,l){l[0]&524288&&n!==(n=a[19]("popupMessage")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function Ze(r){let n=r[19]("popupMessageLastWarning")+"",t;return{c(){t=e.text(n)},m(a,l){e.insert(a,t,l)},p(a,l){l[0]&524288&&n!==(n=a[19]("popupMessageLastWarning")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function ke(r){let n,t;return{c(){n=e.element("p"),t=e.text(r[8]),e.attr(n,"class","OtpErrorMessage"),e.attr(n,"role","alert")},m(a,l){e.insert(a,n,l),e.append(n,t)},p(a,l){l[0]&256&&e.set_data(t,a[8])},d(a){a&&e.detach(n)}}}function Ce(r){let n,t,a,l;function o(p,u){return p[17]>0?et:$e}let c=o(r),s=c(r);return{c(){n=e.element("button"),s.c(),e.attr(n,"class","OtpButton"),n.disabled=t=!r[18],e.toggle_class(n,"disabled",!r[18]||r[16])},m(p,u){e.insert(p,n,u),s.m(n,null),a||(l=e.listen(n,"click",r[22]),a=!0)},p(p,u){c===(c=o(p))&&s?s.p(p,u):(s.d(1),s=c(p),s&&(s.c(),s.m(n,null))),u[0]&262144&&t!==(t=!p[18])&&(n.disabled=t),u[0]&327680&&e.toggle_class(n,"disabled",!p[18]||p[16])},d(p){p&&e.detach(n),s.d(),a=!1,l()}}}function $e(r){let n=r[19]("sendCode")+"",t;return{c(){t=e.text(n)},m(a,l){e.insert(a,t,l)},p(a,l){l[0]&524288&&n!==(n=a[19]("sendCode")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function et(r){let n=r[19]("waitSeconds")+"",t,a,l,o;return{c(){t=e.text(n),a=e.text(" ("),l=e.text(r[17]),o=e.text("s)")},m(c,s){e.insert(c,t,s),e.insert(c,a,s),e.insert(c,l,s),e.insert(c,o,s)},p(c,s){s[0]&524288&&n!==(n=c[19]("waitSeconds")+"")&&e.set_data(t,n),s[0]&131072&&e.set_data(l,c[17])},d(c){c&&(e.detach(t),e.detach(a),e.detach(l),e.detach(o))}}}function tt(r){let n,t,a=r[19]("timeRemaining")+"",l,o,c=r[23](r[5])+"",s,p,u=r[19]("minutes")+"",b,_,E,C=e.ensure_array_like(r[2]),g=[];for(let f=0;f<C.length;f+=1)g[f]=Ee(ve(r,C,f));return{c(){n=e.element("div"),t=e.element("div"),l=e.text(a),o=e.space(),s=e.text(c),p=e.space(),b=e.text(u),_=e.space(),E=e.element("div");for(let f=0;f<g.length;f+=1)g[f].c();e.attr(t,"class","OtpTimer"),e.attr(E,"class","OtpField"),e.attr(n,"class","OtpFieldWrapper")},m(f,w){e.insert(f,n,w),e.append(n,t),e.append(t,l),e.append(t,o),e.append(t,s),e.append(t,p),e.append(t,b),e.append(n,_),e.append(n,E);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(E,null)},p(f,w){if(w[0]&524288&&a!==(a=f[19]("timeRemaining")+"")&&e.set_data(l,a),w[0]&32&&c!==(c=f[23](f[5])+"")&&e.set_data(s,c),w[0]&524288&&u!==(u=f[19]("minutes")+"")&&e.set_data(b,u),w[0]&117458964){C=e.ensure_array_like(f[2]);let v;for(v=0;v<C.length;v+=1){const M=ve(f,C,v);g[v]?g[v].p(M,w):(g[v]=Ee(M),g[v].c(),g[v].m(E,null))}for(;v<g.length;v+=1)g[v].d(1);g.length=C.length}},d(f){f&&e.detach(n),e.destroy_each(g,f)}}}function nt(r){let n;return{c(){n=e.element("div"),n.innerHTML='<span class="OtpLoader"></span>',e.attr(n,"class","OtpLoaderContainer")},m(t,a){e.insert(t,n,a)},p:e.noop,d(t){t&&e.detach(n)}}}function Ee(r){let n,t,a,l=r[71],o,c;const s=()=>r[41](n,l),p=()=>r[41](null,l);function u(..._){return r[42](r[71],..._)}function b(..._){return r[43](r[71],..._)}return{c(){n=e.element("input"),e.attr(n,"id",`otp-input-${r[71]}`),e.attr(n,"type","text"),e.attr(n,"class",t=`otp-box ${r[4].inputLength%2===0&&r[71]===r[4].inputLength/2-1?"space":""}`),e.attr(n,"maxlength",1),n.value=a=r[69],e.attr(n,"inputmode","numeric"),n.disabled=r[11],e.attr(n,"autocomplete","off")},m(_,E){e.insert(_,n,E),s(),o||(c=[e.listen(n,"input",u),e.listen(n,"keydown",b),e.listen(n,"paste",r[24])],o=!0)},p(_,E){r=_,E[0]&16&&t!==(t=`otp-box ${r[4].inputLength%2===0&&r[71]===r[4].inputLength/2-1?"space":""}`)&&e.attr(n,"class",t),E[0]&4&&a!==(a=r[69])&&n.value!==a&&(n.value=a),E[0]&2048&&(n.disabled=r[11]),l!==r[71]&&(p(),l=r[71],s())},d(_){_&&e.detach(n),p(),o=!1,e.run_all(c)}}}function rt(r){let n,t=r[19]("submit")+"",a,l,o,c;return{c(){n=e.element("button"),a=e.text(t),e.attr(n,"class","OtpButton"),n.disabled=l=r[2].join("").length!==r[4].inputLength||r[13]||r[15]},m(s,p){e.insert(s,n,p),e.append(n,a),o||(c=e.listen(n,"click",r[29]),o=!0)},p(s,p){p[0]&524288&&t!==(t=s[19]("submit")+"")&&e.set_data(a,t),p[0]&40980&&l!==(l=s[2].join("").length!==s[4].inputLength||s[13]||s[15])&&(n.disabled=l)},d(s){s&&e.detach(n),o=!1,c()}}}function at(r){let n,t=r[19]("resendOtp")+"",a,l,o;return{c(){n=e.element("button"),a=e.text(t),e.attr(n,"class","OtpButton")},m(c,s){e.insert(c,n,s),e.append(n,a),l||(o=e.listen(n,"click",r[27]),l=!0)},p(c,s){s[0]&524288&&t!==(t=c[19]("resendOtp")+"")&&e.set_data(a,t)},d(c){c&&e.detach(n),l=!1,o()}}}function lt(r){let n;function t(o,c){return o[7]?Ke:Xe}let a=t(r),l=a(r);return{c(){n=e.element("div"),l.c(),e.attr(n,"class","OtpContent")},m(o,c){e.insert(o,n,c),l.m(n,null),r[44](n)},p(o,c){a===(a=t(o))&&l?l.p(o,c):(l.d(1),l=a(o),l&&(l.c(),l.m(n,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(n),l.d(),r[44](null)}}}function it(r,n,t){let a,l,o;e.component_subscribe(r,e.$format,i=>t(19,o=i));let{clientstyling:c=""}=n,{clientstylingurl:s=""}=n,{mbsource:p}=n,{lang:u="en"}=n,{endpoint:b}=n,{session:_}=n,{translationurl:E}=n,{templateid:C}=n,g=[],f=!0,w=null,v=0,M="",H="",D=!1,z=!1,T="",X="",j="",W=!1,Y=!1,F=!1,k="",O={},P=null,J=!1,Q=!1,Z="",V,ae,B=[],R=null,q=0,$=!1,ee=!1;const te={SMS:"sms",EMAIL:"email"},U={MAX_ATTEMPTS_EXCEEDED:"gm.twofa.token_max_attempts_exceeded",INTERNAL_SERVER_ERROR:"gm.multifactorauthentication.internal_server_error",MAX_INVALIDATE:"gm.multifactorauthentication.challenge_internal_server_error"};Object.keys(ye).forEach(i=>{we(i,ye[i])});const N=()=>{Fe(u)},I=()=>{fetch(E).then(i=>i.json()).then(i=>{Object.keys(i).forEach(m=>{we(m,i[m])})}).catch(i=>{console.log(i)})},le=i=>re(this,null,function*(){var m;if((m=i.detail)!=null&&m["x-step-up-required"]){if(t(7,z=!1),t(6,D=!1),t(8,T=""),X=i.detail["x-step-up-token"],j=i.detail.flow,!X||!j){t(3,f=!1),t(7,z=!0),t(8,T=o("configError"));return}t(12,J=!1),t(3,f=!1)}}),K=()=>{R&&(clearInterval(R),R=null),P&&(clearInterval(P),P=null),t(6,D=!1),t(7,z=!1),t(8,T=""),t(10,Y=!1),t(2,g=[]),t(4,w=null),t(3,f=!0),t(0,k=""),t(12,J=!1),t(38,O={})},x=()=>{K()},ie=()=>new Promise((i,m)=>{const h=new URL(`${b}/api/pam/v1/mfa/challenge/${X}`),S=new Headers;S.append("accept","application/json"),S.append("Content-Type","application/json"),S.append("X-SessionId",`${_}`),t(16,ee=!0);const ne={method:"PATCH",headers:S,body:JSON.stringify({channel:k,templateId:C})};fetch(h,ne).then(he=>he.json()).then(()=>{t(15,$=!1),y(),se(),i()}).catch(he=>{m()})}),G=()=>{P&&clearInterval(P),P=setInterval(()=>{const i=ce({},O);let m=!1;Object.keys(i).forEach(h=>{i[h]>0&&(i[h]--,m=!0)}),t(38,O=i),!m&&P&&(clearInterval(P),P=null)},1e3)},L=i=>{t(0,k=i)},d=()=>re(this,null,function*(){if(!(!k||O[k]&&O[k]>0)){t(3,f=!0),C&&C.startsWith("2fa-")&&t(30,C=`2fa-${k}`);try{yield ie(),yield pe(),t(38,O=be(ce({},O),{[k]:30})),G(),t(12,J=!0),y(),se()}catch(i){console.error("Error submitting channel:",i),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}}),y=()=>{const i=new Date(M),m=new Date(H),h=new Date,S=m.getTime()-h.getTime();q=i.getTime()-S;const A=Date.now(),ne=Math.max(0,Math.floor((q-A)/1e3));t(5,v=ne)},se=()=>{R&&clearInterval(R),R=setInterval(()=>{const i=Date.now(),m=Math.max(0,Math.floor((q-i)/1e3));t(5,v=m),t(11,F=m<=0),m<=0&&(clearInterval(R),R=null,t(9,W=!0),t(6,D=!1),t(10,Y=!1))},1e3)},Se=i=>{const m=Math.floor(i/60),h=i%60;return`${m.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`},oe=(i,m)=>{const h=[...g];h[i]=m.toUpperCase(),t(2,g=h),h.join("")!==Z&&t(13,Q=!1)},Me=i=>{var S,A,ne;i.preventDefault();const h=(((A=(S=i.clipboardData)==null?void 0:S.getData("text"))==null?void 0:A.trim())||"").slice(0,w.inputLength).split("");t(2,g=[...h,...Array(w.inputLength-h.length).fill("")]),(ne=B[h.length])==null||ne.focus(),h.length===w.inputLength&&me()},ue=(i,m)=>{const h=i.target,S=h.value;if(/^[a-z0-9]$/i.test(S)){oe(m,S);const A=B[m+1];A==null||A.focus()}h.value=""},fe=(i,m)=>{const h=i.key,S=i.ctrlKey||i.metaKey;if(/^[a-z0-9]$/i.test(h)){if(S&&h.toLowerCase()==="v")return;i.preventDefault(),oe(m,h);const A=B[m+1];A==null||A.focus()}else if(h==="Backspace"){i.preventDefault(),g[m]!==""&&oe(m,"");const A=B[m-1];A==null||A.focus()}},Te=()=>{j=="stateful"&&(ie(),t(9,W=!1));const i=new CustomEvent("otpResendRequested");window.dispatchEvent(i)},Le=i=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:i,maxAttempts:w.maxValidationAttempts,validatedAttempts:w.numberOfValidateAttempts}}))},xe=i=>re(this,null,function*(){const m=new URL(`/api/nwa/api/v1/mfa/challenge/${X}/validate`,b);m.searchParams.append("input",i);try{const h=yield fetch(m.href,{method:"POST"});if(h.status===200){Ae();return}const S=yield h.json();throw new Error(S.message)}catch(h){if(yield pe(),h.message===U.INTERNAL_SERVER_ERROR){if(w.numberOfValidateAttempts===w.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("accountBlocked")}},window.location.href),window.dispatchEvent(new CustomEvent("manualClosePopup"));return}t(6,D=!0),t(8,T=o("invalidOtp")),pe();return}h.message===U.MAX_INVALIDATE&&(t(6,D=!0),t(8,T=o("invalidOtp"))),h.details===U.MAX_ATTEMPTS_EXCEEDED&&t(15,$=!0),console.error("OTP submission failed:",h),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}),Ae=()=>{window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}}))},ze=()=>{window.dispatchEvent(new CustomEvent("manualClosePopup"))},me=()=>re(this,null,function*(){if(g.join("").length!==w.inputLength){t(6,D=!0),t(8,T=o("invalidOtp"));return}const i=g.join("");t(13,Q=!0),Z=i,t(3,f=!0),t(6,D=!1),t(8,T=""),j==="stateless"&&Le(i),j==="stateful"&&(yield xe(i))}),pe=()=>re(this,null,function*(){if(b)try{t(3,f=!0);const i=new URL(`/api/nwa/api/v1/mfa/challenge/${X}/config`,b),m=yield fetch(i.href),h=yield m.json();if(m.ok)t(4,w=h),t(2,g=Array(w.inputLength).fill("")),t(9,W=!1),M=w.expirationTime,H=w.serverTime,w.numberOfValidateAttempts!==0&&(t(6,D=!0),t(8,T=o("invalidOtp"))),w.numberOfValidateAttempts===w.maxValidationAttempts-1&&t(10,Y=!0),t(3,f=!1),y(),se(),t(16,ee=!1);else if(h&&h.details===U.MAX_ATTEMPTS_EXCEEDED)window.dispatchEvent(new CustomEvent("manualClosePopup"));else{const S=h&&h.message||`Failed to load config. Status: ${m.status}`;throw new Error(S)}}catch(i){t(3,f=!1),t(7,z=!0),t(8,T=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",i)}});e.onMount(()=>(window.addEventListener("stepUpAuthRequired",le,!1),window.addEventListener("closePopup",x,!1),()=>{window.removeEventListener("stepUpAuthRequired",le),window.removeEventListener("closePopup",x,!1),R&&clearInterval(R),P&&clearInterval(P)}));const Re=()=>L(te.SMS),Ie=()=>L(te.EMAIL);function Pe(i,m){e.binding_callbacks[i?"unshift":"push"](()=>{B[m]=i,t(14,B)})}const De=(i,m)=>ue(m,i),je=(i,m)=>fe(m,i);function Ve(i){e.binding_callbacks[i?"unshift":"push"](()=>{V=i,t(1,V)})}return r.$$set=i=>{"clientstyling"in i&&t(31,c=i.clientstyling),"clientstylingurl"in i&&t(32,s=i.clientstylingurl),"mbsource"in i&&t(33,p=i.mbsource),"lang"in i&&t(34,u=i.lang),"endpoint"in i&&t(35,b=i.endpoint),"session"in i&&t(36,_=i.session),"translationurl"in i&&t(37,E=i.translationurl),"templateid"in i&&t(30,C=i.templateid)},r.$$.update=()=>{r.$$.dirty[0]&2|r.$$.dirty[1]&1&&c&&V&&de.setClientStyling(V,c),r.$$.dirty[0]&2|r.$$.dirty[1]&2&&s&&V&&de.setClientStylingURL(V,s),r.$$.dirty[0]&2|r.$$.dirty[1]&4&&p&&V&&de.setStreamStyling(V,`${p}.Style`,ae),r.$$.dirty[1]&8&&u&&N(),r.$$.dirty[1]&72&&u&&E&&I(),r.$$.dirty[0]&1|r.$$.dirty[1]&128&&t(18,a=k&&(!O[k]||O[k]===0)),r.$$.dirty[0]&1|r.$$.dirty[1]&128&&t(17,l=k&&O[k]||0)},[k,V,g,f,w,v,D,z,T,W,Y,F,J,Q,B,$,ee,l,a,o,te,L,d,Se,Me,ue,fe,Te,ze,me,C,c,s,p,u,b,_,E,O,Re,Ie,Pe,De,je,Ve]}class Oe extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,it,lt,e.safe_not_equal,{clientstyling:31,clientstylingurl:32,mbsource:33,lang:34,endpoint:35,session:36,translationurl:37,templateid:30},Ue,[-1,-1,-1])}get clientstyling(){return this.$$.ctx[31]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[32]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get mbsource(){return this.$$.ctx[33]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}get lang(){return this.$$.ctx[34]}set lang(n){this.$$set({lang:n}),e.flush()}get endpoint(){return this.$$.ctx[35]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get session(){return this.$$.ctx[36]}set session(n){this.$$set({session:n}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get templateid(){return this.$$.ctx[30]}set templateid(n){this.$$set({templateid:n}),e.flush()}}e.create_custom_element(Oe,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},session:{},translationurl:{},templateid:{}},[],[],!0);exports.default=Oe;
|