@everymatrix/cashier-page 1.86.0 → 1.86.1
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/{CashierError-BwZRYX5r.js → CashierError-7qg__v0Z.js} +206 -229
- package/components/{CashierError-DFQyDQHn.cjs → CashierError-BorUJmCn.cjs} +1 -1
- package/components/{CashierError-kVdNczE9.js → CashierError-DZSJKCbW.js} +206 -229
- package/components/{CashierMethodDetails--Ebwn4lg.js → CashierMethodDetails-Bxh5WhVb.js} +2225 -2204
- package/components/{CashierMethodDetails-E1XQT_gz.js → CashierMethodDetails-BzVSr2on.js} +2349 -2328
- package/components/CashierMethodDetails-C1kjc4-Q.cjs +85 -0
- package/components/{CashierMethodsList-ByGJLq8_.js → CashierMethodsList-CBnuQYXc.js} +1 -1
- package/components/{CashierMethodsList-D5p1ksRs.js → CashierMethodsList-CLQK5Xcn.js} +1 -1
- package/components/{CashierMethodsList-BCfPOiPQ.cjs → CashierMethodsList-D9ypDDJW.cjs} +1 -1
- package/components/{CashierPage-BOXcdzek.js → CashierPage-BREFnfc1.js} +874 -812
- package/components/CashierPage-DcE7E_Wf.cjs +1 -0
- package/components/{CashierPage-DSBg3R7m.js → CashierPage-y5YsPxSa.js} +976 -914
- package/components/{CashierReceiptPage-DLHbUzv0.js → CashierReceiptPage-BbHKdDra.js} +1 -1
- package/components/{CashierReceiptPage-DWJG1k-S.js → CashierReceiptPage-CNwhHWwV.js} +1 -1
- package/components/{CashierReceiptPage-DW63yTeU.cjs → CashierReceiptPage-DGAjOoFe.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-Di0jBCa7.cjs → CashierSessionExpirationModal-33ygvBxj.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-CeesVv0R.js → CashierSessionExpirationModal-BQujD7Vd.js} +2 -2
- package/components/{CashierSessionExpirationModal-Dk8_yCxM.js → CashierSessionExpirationModal-D6h6euRq.js} +2 -2
- package/components/CashierStepUp-B9H7E8wY.cjs +1 -0
- package/components/CashierStepUp-DEb05cBS.js +1068 -0
- package/components/CashierStepUp-DnvNxlcq.js +1107 -0
- package/components/{CashierTransactionHistory-DAieZJ7I.js → CashierTransactionHistory-ButX2_sB.js} +2 -2
- package/components/{CashierTransactionHistory-DZS6p6Wq.js → CashierTransactionHistory-CX3RviXD.js} +2 -2
- package/components/{CashierTransactionHistory-dL_Zbx6y.cjs → CashierTransactionHistory-D8cuhIj_.cjs} +1 -1
- package/components/{CashierVerifications-B6QC6J6G.js → CashierVerifications-CPUhZGV4.js} +1 -1
- package/components/{CashierVerifications-BhbImoKx.cjs → CashierVerifications-DPeQTcCN.cjs} +1 -1
- package/components/{CashierVerifications-63wvOw6D.js → CashierVerifications-DVccv6qc.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +7 -7
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodDetails-D3OcsUSC.cjs +0 -85
- package/components/CashierPage-DSwyNlUe.cjs +0 -1
- package/components/CashierStepUp-BA2IK4WI.js +0 -1070
- package/components/CashierStepUp-CSkfphtu.js +0 -1109
- package/components/CashierStepUp-pkLhK-RI.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ac as X1, a as J1, i as $1, $ as ee, S as te, b as ie, s as ne, f as H, c as oe, G as c1, e as g, k as h, m, o as l, p as ae, q as se, O as le, U as re, y as D1, N as R1, g as B1, a6 as ce, t as ue, a7 as pe, l as c, n as k, ad as de, L as fe, ae as Ce, v as R, w as x, A as b, x as g1, r as L1, Y as x1, a4 as F1, X as U, a0 as me, z as P1, B as ge, C as he, D as we, E as be, F as ye } from "./CashierCarousel-D8MiOwuE.js";
|
|
2
|
-
import { d as S1, u as ve, a as H1 } from "./CashierMethodDetails-
|
|
2
|
+
import { d as S1, u as ve, a as H1 } from "./CashierMethodDetails-BzVSr2on.js";
|
|
3
3
|
function W1(n, { delay: e = 0, duration: t = 400, easing: i = X1 } = {}) {
|
|
4
4
|
const o = +getComputedStyle(n).opacity;
|
|
5
5
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ac as X1, a as J1, i as $1, $ as ee, S as te, b as ie, s as ne, f as P, c as oe, G as c1, e as g, k as h, m as C, o as l, p as ae, q as se, T as le, y as D1, N as R1, g as B1, a6 as re, t as ce, a7 as ue, l as c, n as T, ad as pe, L as de, ae as fe, v as M, w as R, A as b, x as g1, r as L1, X as x1, a3 as F1, W as U, _ as Ce, z as P1, B as me, C as ge, D as he, E as we, F as be, a5 as ye } from "./CashierCarousel-BNKjZ4dF.js";
|
|
2
|
-
import { d as S1, u as ve, a as H1 } from "./CashierMethodDetails
|
|
2
|
+
import { d as S1, u as ve, a as H1 } from "./CashierMethodDetails-Bxh5WhVb.js";
|
|
3
3
|
function W1(n, { delay: e = 0, duration: t = 400, easing: i = X1 } = {}) {
|
|
4
4
|
const o = +getComputedStyle(n).opacity;
|
|
5
5
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./CashierCarousel-CecQbbdW.cjs"),$=require("./CashierMethodDetails-
|
|
1
|
+
"use strict";const e=require("./CashierCarousel-CecQbbdW.cjs"),$=require("./CashierMethodDetails-C1kjc4-Q.cjs");function C1(i,{delay:t=0,duration:n=400,easing:a=e.identity}={}){const s=+getComputedStyle(i).opacity;return{delay:t,duration:n,easing:a,css:r=>`opacity: ${r*s}`}}function g1(i,t){e.addMessages(i,t)}function B1(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const h1={en:{amount:"Amount",status:"Status",transactionId:"Transaction ID",payemntMethod:"Payment Method",paymentTime:"Payment Time",backHome:"Back to home",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",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"}},P1=(i,t)=>`${i+z1[t]}`,H1=(i,t)=>`${I1[t]}.${L1[i]}.text`,W1=i=>`${L1[`${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"},I1={Deposit:"deposit",Withdraw:"withdrawal"},L1={Success:"success",Voided:"success",Rejected:"reject",Failed:"fail",Canceled:"cancel",PendingNotification:"pending",PendingConfirmation:"pending",PendingApprovalStage1:"pending",PendingApprovalStage3:"pending",PendingApprovalStage2:"pending",PendingOfflineNotification:"pending"},_1={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,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-CecQbbdW.cjs"),wt=require("./CashierReceiptPage-DW63yTeU.cjs"),Le=require("./CashierMethodDetails-D3OcsUSC.cjs");function St(o,n){e.addMessages(o,n)}function en(o){e.init({fallbackLocale:"en"}),e.$locale.set(o)}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"}};/*! @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:P,seal:J,create:Bt}=Object,{apply:$e,construct:et}=typeof Reflect!="undefined"&&Reflect;P||(P=function(n){return n});J||(J=function(n){return n});$e||($e=function(n,i,r){return n.apply(i,r)});et||(et=function(n,i){return new n(...i)});const ze=X(Array.prototype.forEach),Ct=X(Array.prototype.pop),Re=X(Array.prototype.push),We=X(String.prototype.toLowerCase),Ve=X(String.prototype.toString),vt=X(String.prototype.match),ke=X(String.prototype.replace),rn=X(String.prototype.indexOf),sn=X(String.prototype.trim),ee=X(Object.prototype.hasOwnProperty),I=X(RegExp.prototype.test),Oe=an(TypeError);function X(o){return function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),l=1;l<i;l++)r[l-1]=arguments[l];return $e(o,n,r)}}function an(o){return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return et(o,i)}}function m(o,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:We;xt&&xt(o,null);let r=n.length;for(;r--;){let l=n[r];if(typeof l=="string"){const f=i(l);f!==l&&(tn(n)||(n[r]=f),l=f)}o[l]=!0}return o}function ln(o){for(let n=0;n<o.length;n++)ee(o,n)||(o[n]=null);return o}function ye(o){const n=Bt(null);for(const[i,r]of zt(o))ee(o,i)&&(Array.isArray(r)?n[i]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[i]=ye(r):n[i]=r);return n}function De(o,n){for(;o!==null;){const r=on(o,n);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}o=nn(o)}function i(){return null}return i}const Mt=P(["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=P(["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=P(["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=P(["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=P(["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=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=P(["#text"]),Rt=P(["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=P(["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"]),kt=P(["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"]),Be=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fn=J(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pn=J(/<%[\w\W]*|[\w\W]*%>/gm),mn=J(/\${[\w\W]*}/gm),dn=J(/^data-[\-\w.\u00B7-\uFFFF]/),hn=J(/^aria-[\-\w]+$/),Wt=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gn=J(/^(?:\w+script|data):/i),_n=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=J(/^html$/i),En=J(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ot=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:pn,TMPLIT_EXPR:mn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Wt,IS_SCRIPT_OR_DATA:gn,ATTR_WHITESPACE:_n,DOCTYPE_NAME:Gt,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,i){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const l="data-tt-policy-suffix";i&&i.hasAttribute(l)&&(r=i.getAttribute(l));const f="dompurify"+(r?"#"+r:"");try{return n.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch(h){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!o||!o.document||o.document.nodeType!==Ne.document)return n.isSupported=!1,n;let{document:i}=o;const r=i,l=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:h,Node:w,Element:E,NodeFilter:g,NamedNodeMap:Y=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:K,DOMParser:Ee,trustedTypes:U}=o,H=E.prototype,de=De(H,"cloneNode"),te=De(H,"remove"),F=De(H,"nextSibling"),ce=De(H,"childNodes"),q=De(H,"parentNode");if(typeof h=="function"){const u=i.createElement("template");u.content&&u.content.ownerDocument&&(i=u.content.ownerDocument)}let d,S="";const{implementation:Q,createNodeIterator:ne,createDocumentFragment:ue,getElementsByTagName:z}=i,{importNode:$}=r;let v={};n.isSupported=typeof zt=="function"&&typeof q=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:oe,TMPLIT_EXPR:he,DATA_ATTR:V,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:be}=Ot;let{IS_ALLOWED_URI:j}=Ot,p=null;const ge=m({},[...Mt,...Ze,...Je,...Ke,...Lt]);let A=null;const _e=m({},[...Rt,...Qe,...kt,...Be]);let _=Object.seal(Bt(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}})),a=null,T=null,x=!0,M=!0,Te=!1,W=!0,fe=!1,Z=!0,re=!1,b=!1,C=!1,se=!1,Ie=!1,Pe=!1,tt=!0,nt=!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 it=null;const rt=m({},["audio","video","img","source","image","track"]);let Ye=null;const st=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Ae=pe,je=!1,Xe=null;const qt=m({},[Ue,He,pe],Ve);let ve=null;const Vt=["application/xhtml+xml","text/html"],Zt="text/html";let R=null,xe=null;const Jt=i.createElement("form"),at=function(t){return t instanceof RegExp||t instanceof Function},qe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===t)){if((!t||typeof t!="object")&&(t={}),t=ye(t),ve=Vt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,R=ve==="application/xhtml+xml"?Ve:We,p=ee(t,"ALLOWED_TAGS")?m({},t.ALLOWED_TAGS,R):ge,A=ee(t,"ALLOWED_ATTR")?m({},t.ALLOWED_ATTR,R):_e,Xe=ee(t,"ALLOWED_NAMESPACES")?m({},t.ALLOWED_NAMESPACES,Ve):qt,Ye=ee(t,"ADD_URI_SAFE_ATTR")?m(ye(st),t.ADD_URI_SAFE_ATTR,R):st,it=ee(t,"ADD_DATA_URI_TAGS")?m(ye(rt),t.ADD_DATA_URI_TAGS,R):rt,Se=ee(t,"FORBID_CONTENTS")?m({},t.FORBID_CONTENTS,R):ot,a=ee(t,"FORBID_TAGS")?m({},t.FORBID_TAGS,R):{},T=ee(t,"FORBID_ATTR")?m({},t.FORBID_ATTR,R):{},we=ee(t,"USE_PROFILES")?t.USE_PROFILES:!1,x=t.ALLOW_ARIA_ATTR!==!1,M=t.ALLOW_DATA_ATTR!==!1,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,W=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=t.SAFE_FOR_TEMPLATES||!1,Z=t.SAFE_FOR_XML!==!1,re=t.WHOLE_DOCUMENT||!1,se=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,C=t.FORCE_BODY||!1,tt=t.SANITIZE_DOM!==!1,nt=t.SANITIZE_NAMED_PROPS||!1,Ge=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||Wt,Ae=t.NAMESPACE||pe,_=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(M=!1),Ie&&(se=!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,Be)),we.svgFilters===!0&&(m(p,Je),m(A,Qe),m(A,Be)),we.mathMl===!0&&(m(p,Ke),m(A,kt),m(A,Be))),t.ADD_TAGS&&(p===ge&&(p=ye(p)),m(p,t.ADD_TAGS,R)),t.ADD_ATTR&&(A===_e&&(A=ye(A)),m(A,t.ADD_ATTR,R)),t.ADD_URI_SAFE_ATTR&&m(Ye,t.ADD_URI_SAFE_ATTR,R),t.FORBID_CONTENTS&&(Se===ot&&(Se=ye(Se)),m(Se,t.FORBID_CONTENTS,R)),Ge&&(p["#text"]=!0),re&&m(p,["html","head","body"]),p.table&&(m(p,["tbody"]),delete a.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.');d=t.TRUSTED_TYPES_POLICY,S=d.createHTML("")}else d===void 0&&(d=yn(U,l)),d!==null&&typeof S=="string"&&(S=d.createHTML(""));P&&P(t),xe=t}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Kt=m({},["title","style","font","a","script"]),ut=m({},[...Ze,...Je,...cn]),ft=m({},[...Ke,...un]),Qt=function(t){let s=q(t);(!s||!s.tagName)&&(s={namespaceURI:Ae,tagName:"template"});const c=We(t.tagName),y=We(s.tagName);return Xe[t.namespaceURI]?t.namespaceURI===He?s.namespaceURI===pe?c==="svg":s.namespaceURI===Ue?c==="svg"&&(y==="annotation-xml"||lt[y]):!!ut[c]:t.namespaceURI===Ue?s.namespaceURI===pe?c==="math":s.namespaceURI===He?c==="math"&&ct[y]:!!ft[c]:t.namespaceURI===pe?s.namespaceURI===He&&!ct[y]||s.namespaceURI===Ue&&!lt[y]?!1:!ft[c]&&(Kt[c]||!ut[c]):!!(ve==="application/xhtml+xml"&&Xe[t.namespaceURI]):!1},ae=function(t){Re(n.removed,{element:t});try{q(t).removeChild(t)}catch(s){te(t)}},Fe=function(t,s){try{Re(n.removed,{attribute:s.getAttributeNode(t),from:s})}catch(c){Re(n.removed,{attribute:null,from:s})}if(s.removeAttribute(t),t==="is"&&!A[t])if(se||Ie)try{ae(s)}catch(c){}else try{s.setAttribute(t,"")}catch(c){}},pt=function(t){let s=null,c=null;if(C)t="<remove></remove>"+t;else{const k=vt(t,/^[\r\n\t ]+/);c=k&&k[0]}ve==="application/xhtml+xml"&&Ae===pe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const y=d?d.createHTML(t):t;if(Ae===pe)try{s=new Ee().parseFromString(y,ve)}catch(k){}if(!s||!s.documentElement){s=Q.createDocument(Ae,"template",null);try{s.documentElement.innerHTML=je?S:y}catch(k){}}const D=s.body||s.documentElement;return t&&c&&D.insertBefore(i.createTextNode(c),D.childNodes[0]||null),Ae===pe?z.call(s,re?"html":"body")[0]:re?s.documentElement:D},mt=function(t){return ne.call(t.ownerDocument||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(t){return t instanceof K&&(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")},ht=function(t){return typeof w=="function"&&t instanceof w},me=function(t,s,c){v[t]&&ze(v[t],y=>{y.call(n,s,c,xe)})},gt=function(t){let s=null;if(me("beforeSanitizeElements",t,null),dt(t))return ae(t),!0;const c=R(t.nodeName);if(me("uponSanitizeElement",t,{tagName:c,allowedTags:p}),t.hasChildNodes()&&!ht(t.firstElementChild)&&I(/<[/\w]/g,t.innerHTML)&&I(/<[/\w]/g,t.textContent)||t.nodeType===Ne.progressingInstruction||Z&&t.nodeType===Ne.comment&&I(/<[/\w]/g,t.data))return ae(t),!0;if(!p[c]||a[c]){if(!a[c]&&Et(c)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c)))return!1;if(Ge&&!Se[c]){const y=q(t)||t.parentNode,D=ce(t)||t.childNodes;if(D&&y){const k=D.length;for(let G=k-1;G>=0;--G){const le=de(D[G],!0);le.__removalCount=(t.__removalCount||0)+1,y.insertBefore(le,F(t))}}}return ae(t),!0}return t instanceof E&&!Qt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&I(/<\/no(script|embed|frames)/i,t.innerHTML)?(ae(t),!0):(fe&&t.nodeType===Ne.text&&(s=t.textContent,ze([B,oe,he],y=>{s=ke(s,y," ")}),t.textContent!==s&&(Re(n.removed,{element:t.cloneNode()}),t.textContent=s)),me("afterSanitizeElements",t,null),!1)},_t=function(t,s,c){if(tt&&(s==="id"||s==="name")&&(c in i||c in Jt))return!1;if(!(M&&!T[s]&&I(V,s))){if(!(x&&I(O,s))){if(!A[s]||T[s]){if(!(Et(t)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,t)||_.tagNameCheck instanceof Function&&_.tagNameCheck(t))&&(_.attributeNameCheck instanceof RegExp&&I(_.attributeNameCheck,s)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(s))||s==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c))))return!1}else if(!Ye[s]){if(!I(j,ke(c,ie,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&it[t])){if(!(Te&&!I(L,ke(c,ie,"")))){if(c)return!1}}}}}}return!0},Et=function(t){return t!=="annotation-xml"&&vt(t,be)},Tt=function(t){me("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 D=s[y],{name:k,namespaceURI:G,value:le}=D,Me=R(k);let N=k==="value"?le:sn(le);if(c.attrName=Me,c.attrValue=N,c.keepAttr=!0,c.forceKeepAttr=void 0,me("uponSanitizeAttribute",t,c),N=c.attrValue,Z&&I(/((--!?|])>)|<\/(style|title)/i,N)){Fe(k,t);continue}if(c.forceKeepAttr||(Fe(k,t),!c.keepAttr))continue;if(!W&&I(/\/>/i,N)){Fe(k,t);continue}fe&&ze([B,oe,he],bt=>{N=ke(N,bt," ")});const yt=R(t.nodeName);if(_t(yt,Me,N)){if(nt&&(Me==="id"||Me==="name")&&(Fe(k,t),N=Xt+N),d&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!G)switch(U.getAttributeType(yt,Me)){case"TrustedHTML":{N=d.createHTML(N);break}case"TrustedScriptURL":{N=d.createScriptURL(N);break}}try{G?t.setAttributeNS(G,k,N):t.setAttribute(k,N),dt(t)?ae(t):Ct(n.removed)}catch(bt){}}}me("afterSanitizeAttributes",t,null)},$t=function u(t){let s=null;const c=mt(t);for(me("beforeSanitizeShadowDOM",t,null);s=c.nextNode();)me("uponSanitizeShadowNode",s,null),!gt(s)&&(s.content instanceof f&&u(s.content),Tt(s));me("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,D=null;if(je=!u,je&&(u="<!-->"),typeof u!="string"&&!ht(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||qe(t),n.removed=[],typeof u=="string"&&(Ce=!1),Ce){if(u.nodeName){const le=R(u.nodeName);if(!p[le]||a[le])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof w)s=pt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===Ne.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!se&&!fe&&!re&&u.indexOf("<")===-1)return d&&Pe?d.createHTML(u):u;if(s=pt(u),!s)return se?null:Pe?S:""}s&&C&&ae(s.firstChild);const k=mt(Ce?u:s);for(;y=k.nextNode();)gt(y)||(y.content instanceof f&&$t(y.content),Tt(y));if(Ce)return u;if(se){if(Ie)for(D=ue.call(s.ownerDocument);s.firstChild;)D.appendChild(s.firstChild);else D=s;return(A.shadowroot||A.shadowrootmode)&&(D=$.call(r,D,!0)),D}let G=re?s.outerHTML:s.innerHTML;return re&&p["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&I(Gt,s.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-CecQbbdW.cjs"),wt=require("./CashierReceiptPage-DGAjOoFe.cjs"),Le=require("./CashierMethodDetails-C1kjc4-Q.cjs");function St(o,n){e.addMessages(o,n)}function en(o){e.init({fallbackLocale:"en"}),e.$locale.set(o)}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"}};/*! @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:P,seal:J,create:Bt}=Object,{apply:$e,construct:et}=typeof Reflect!="undefined"&&Reflect;P||(P=function(n){return n});J||(J=function(n){return n});$e||($e=function(n,i,r){return n.apply(i,r)});et||(et=function(n,i){return new n(...i)});const ze=X(Array.prototype.forEach),Ct=X(Array.prototype.pop),Re=X(Array.prototype.push),We=X(String.prototype.toLowerCase),Ve=X(String.prototype.toString),vt=X(String.prototype.match),ke=X(String.prototype.replace),rn=X(String.prototype.indexOf),sn=X(String.prototype.trim),ee=X(Object.prototype.hasOwnProperty),I=X(RegExp.prototype.test),Oe=an(TypeError);function X(o){return function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),l=1;l<i;l++)r[l-1]=arguments[l];return $e(o,n,r)}}function an(o){return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return et(o,i)}}function m(o,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:We;xt&&xt(o,null);let r=n.length;for(;r--;){let l=n[r];if(typeof l=="string"){const f=i(l);f!==l&&(tn(n)||(n[r]=f),l=f)}o[l]=!0}return o}function ln(o){for(let n=0;n<o.length;n++)ee(o,n)||(o[n]=null);return o}function ye(o){const n=Bt(null);for(const[i,r]of zt(o))ee(o,i)&&(Array.isArray(r)?n[i]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[i]=ye(r):n[i]=r);return n}function De(o,n){for(;o!==null;){const r=on(o,n);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}o=nn(o)}function i(){return null}return i}const Mt=P(["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=P(["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=P(["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=P(["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=P(["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=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=P(["#text"]),Rt=P(["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=P(["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"]),kt=P(["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"]),Be=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fn=J(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pn=J(/<%[\w\W]*|[\w\W]*%>/gm),mn=J(/\${[\w\W]*}/gm),dn=J(/^data-[\-\w.\u00B7-\uFFFF]/),hn=J(/^aria-[\-\w]+$/),Wt=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gn=J(/^(?:\w+script|data):/i),_n=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=J(/^html$/i),En=J(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ot=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:pn,TMPLIT_EXPR:mn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Wt,IS_SCRIPT_OR_DATA:gn,ATTR_WHITESPACE:_n,DOCTYPE_NAME:Gt,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,i){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const l="data-tt-policy-suffix";i&&i.hasAttribute(l)&&(r=i.getAttribute(l));const f="dompurify"+(r?"#"+r:"");try{return n.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch(h){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!o||!o.document||o.document.nodeType!==Ne.document)return n.isSupported=!1,n;let{document:i}=o;const r=i,l=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:h,Node:w,Element:E,NodeFilter:g,NamedNodeMap:Y=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:K,DOMParser:Ee,trustedTypes:U}=o,H=E.prototype,de=De(H,"cloneNode"),te=De(H,"remove"),F=De(H,"nextSibling"),ce=De(H,"childNodes"),q=De(H,"parentNode");if(typeof h=="function"){const u=i.createElement("template");u.content&&u.content.ownerDocument&&(i=u.content.ownerDocument)}let d,S="";const{implementation:Q,createNodeIterator:ne,createDocumentFragment:ue,getElementsByTagName:z}=i,{importNode:$}=r;let v={};n.isSupported=typeof zt=="function"&&typeof q=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:oe,TMPLIT_EXPR:he,DATA_ATTR:V,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:be}=Ot;let{IS_ALLOWED_URI:j}=Ot,p=null;const ge=m({},[...Mt,...Ze,...Je,...Ke,...Lt]);let A=null;const _e=m({},[...Rt,...Qe,...kt,...Be]);let _=Object.seal(Bt(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}})),a=null,T=null,x=!0,M=!0,Te=!1,W=!0,fe=!1,Z=!0,re=!1,b=!1,C=!1,se=!1,Ie=!1,Pe=!1,tt=!0,nt=!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 it=null;const rt=m({},["audio","video","img","source","image","track"]);let Ye=null;const st=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Ae=pe,je=!1,Xe=null;const qt=m({},[Ue,He,pe],Ve);let ve=null;const Vt=["application/xhtml+xml","text/html"],Zt="text/html";let R=null,xe=null;const Jt=i.createElement("form"),at=function(t){return t instanceof RegExp||t instanceof Function},qe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===t)){if((!t||typeof t!="object")&&(t={}),t=ye(t),ve=Vt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,R=ve==="application/xhtml+xml"?Ve:We,p=ee(t,"ALLOWED_TAGS")?m({},t.ALLOWED_TAGS,R):ge,A=ee(t,"ALLOWED_ATTR")?m({},t.ALLOWED_ATTR,R):_e,Xe=ee(t,"ALLOWED_NAMESPACES")?m({},t.ALLOWED_NAMESPACES,Ve):qt,Ye=ee(t,"ADD_URI_SAFE_ATTR")?m(ye(st),t.ADD_URI_SAFE_ATTR,R):st,it=ee(t,"ADD_DATA_URI_TAGS")?m(ye(rt),t.ADD_DATA_URI_TAGS,R):rt,Se=ee(t,"FORBID_CONTENTS")?m({},t.FORBID_CONTENTS,R):ot,a=ee(t,"FORBID_TAGS")?m({},t.FORBID_TAGS,R):{},T=ee(t,"FORBID_ATTR")?m({},t.FORBID_ATTR,R):{},we=ee(t,"USE_PROFILES")?t.USE_PROFILES:!1,x=t.ALLOW_ARIA_ATTR!==!1,M=t.ALLOW_DATA_ATTR!==!1,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,W=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=t.SAFE_FOR_TEMPLATES||!1,Z=t.SAFE_FOR_XML!==!1,re=t.WHOLE_DOCUMENT||!1,se=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,C=t.FORCE_BODY||!1,tt=t.SANITIZE_DOM!==!1,nt=t.SANITIZE_NAMED_PROPS||!1,Ge=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||Wt,Ae=t.NAMESPACE||pe,_=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(M=!1),Ie&&(se=!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,Be)),we.svgFilters===!0&&(m(p,Je),m(A,Qe),m(A,Be)),we.mathMl===!0&&(m(p,Ke),m(A,kt),m(A,Be))),t.ADD_TAGS&&(p===ge&&(p=ye(p)),m(p,t.ADD_TAGS,R)),t.ADD_ATTR&&(A===_e&&(A=ye(A)),m(A,t.ADD_ATTR,R)),t.ADD_URI_SAFE_ATTR&&m(Ye,t.ADD_URI_SAFE_ATTR,R),t.FORBID_CONTENTS&&(Se===ot&&(Se=ye(Se)),m(Se,t.FORBID_CONTENTS,R)),Ge&&(p["#text"]=!0),re&&m(p,["html","head","body"]),p.table&&(m(p,["tbody"]),delete a.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.');d=t.TRUSTED_TYPES_POLICY,S=d.createHTML("")}else d===void 0&&(d=yn(U,l)),d!==null&&typeof S=="string"&&(S=d.createHTML(""));P&&P(t),xe=t}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Kt=m({},["title","style","font","a","script"]),ut=m({},[...Ze,...Je,...cn]),ft=m({},[...Ke,...un]),Qt=function(t){let s=q(t);(!s||!s.tagName)&&(s={namespaceURI:Ae,tagName:"template"});const c=We(t.tagName),y=We(s.tagName);return Xe[t.namespaceURI]?t.namespaceURI===He?s.namespaceURI===pe?c==="svg":s.namespaceURI===Ue?c==="svg"&&(y==="annotation-xml"||lt[y]):!!ut[c]:t.namespaceURI===Ue?s.namespaceURI===pe?c==="math":s.namespaceURI===He?c==="math"&&ct[y]:!!ft[c]:t.namespaceURI===pe?s.namespaceURI===He&&!ct[y]||s.namespaceURI===Ue&&!lt[y]?!1:!ft[c]&&(Kt[c]||!ut[c]):!!(ve==="application/xhtml+xml"&&Xe[t.namespaceURI]):!1},ae=function(t){Re(n.removed,{element:t});try{q(t).removeChild(t)}catch(s){te(t)}},Fe=function(t,s){try{Re(n.removed,{attribute:s.getAttributeNode(t),from:s})}catch(c){Re(n.removed,{attribute:null,from:s})}if(s.removeAttribute(t),t==="is"&&!A[t])if(se||Ie)try{ae(s)}catch(c){}else try{s.setAttribute(t,"")}catch(c){}},pt=function(t){let s=null,c=null;if(C)t="<remove></remove>"+t;else{const k=vt(t,/^[\r\n\t ]+/);c=k&&k[0]}ve==="application/xhtml+xml"&&Ae===pe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const y=d?d.createHTML(t):t;if(Ae===pe)try{s=new Ee().parseFromString(y,ve)}catch(k){}if(!s||!s.documentElement){s=Q.createDocument(Ae,"template",null);try{s.documentElement.innerHTML=je?S:y}catch(k){}}const D=s.body||s.documentElement;return t&&c&&D.insertBefore(i.createTextNode(c),D.childNodes[0]||null),Ae===pe?z.call(s,re?"html":"body")[0]:re?s.documentElement:D},mt=function(t){return ne.call(t.ownerDocument||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(t){return t instanceof K&&(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")},ht=function(t){return typeof w=="function"&&t instanceof w},me=function(t,s,c){v[t]&&ze(v[t],y=>{y.call(n,s,c,xe)})},gt=function(t){let s=null;if(me("beforeSanitizeElements",t,null),dt(t))return ae(t),!0;const c=R(t.nodeName);if(me("uponSanitizeElement",t,{tagName:c,allowedTags:p}),t.hasChildNodes()&&!ht(t.firstElementChild)&&I(/<[/\w]/g,t.innerHTML)&&I(/<[/\w]/g,t.textContent)||t.nodeType===Ne.progressingInstruction||Z&&t.nodeType===Ne.comment&&I(/<[/\w]/g,t.data))return ae(t),!0;if(!p[c]||a[c]){if(!a[c]&&Et(c)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c)))return!1;if(Ge&&!Se[c]){const y=q(t)||t.parentNode,D=ce(t)||t.childNodes;if(D&&y){const k=D.length;for(let G=k-1;G>=0;--G){const le=de(D[G],!0);le.__removalCount=(t.__removalCount||0)+1,y.insertBefore(le,F(t))}}}return ae(t),!0}return t instanceof E&&!Qt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&I(/<\/no(script|embed|frames)/i,t.innerHTML)?(ae(t),!0):(fe&&t.nodeType===Ne.text&&(s=t.textContent,ze([B,oe,he],y=>{s=ke(s,y," ")}),t.textContent!==s&&(Re(n.removed,{element:t.cloneNode()}),t.textContent=s)),me("afterSanitizeElements",t,null),!1)},_t=function(t,s,c){if(tt&&(s==="id"||s==="name")&&(c in i||c in Jt))return!1;if(!(M&&!T[s]&&I(V,s))){if(!(x&&I(O,s))){if(!A[s]||T[s]){if(!(Et(t)&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,t)||_.tagNameCheck instanceof Function&&_.tagNameCheck(t))&&(_.attributeNameCheck instanceof RegExp&&I(_.attributeNameCheck,s)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(s))||s==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&I(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c))))return!1}else if(!Ye[s]){if(!I(j,ke(c,ie,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&it[t])){if(!(Te&&!I(L,ke(c,ie,"")))){if(c)return!1}}}}}}return!0},Et=function(t){return t!=="annotation-xml"&&vt(t,be)},Tt=function(t){me("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 D=s[y],{name:k,namespaceURI:G,value:le}=D,Me=R(k);let N=k==="value"?le:sn(le);if(c.attrName=Me,c.attrValue=N,c.keepAttr=!0,c.forceKeepAttr=void 0,me("uponSanitizeAttribute",t,c),N=c.attrValue,Z&&I(/((--!?|])>)|<\/(style|title)/i,N)){Fe(k,t);continue}if(c.forceKeepAttr||(Fe(k,t),!c.keepAttr))continue;if(!W&&I(/\/>/i,N)){Fe(k,t);continue}fe&&ze([B,oe,he],bt=>{N=ke(N,bt," ")});const yt=R(t.nodeName);if(_t(yt,Me,N)){if(nt&&(Me==="id"||Me==="name")&&(Fe(k,t),N=Xt+N),d&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!G)switch(U.getAttributeType(yt,Me)){case"TrustedHTML":{N=d.createHTML(N);break}case"TrustedScriptURL":{N=d.createScriptURL(N);break}}try{G?t.setAttributeNS(G,k,N):t.setAttribute(k,N),dt(t)?ae(t):Ct(n.removed)}catch(bt){}}}me("afterSanitizeAttributes",t,null)},$t=function u(t){let s=null;const c=mt(t);for(me("beforeSanitizeShadowDOM",t,null);s=c.nextNode();)me("uponSanitizeShadowNode",s,null),!gt(s)&&(s.content instanceof f&&u(s.content),Tt(s));me("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,D=null;if(je=!u,je&&(u="<!-->"),typeof u!="string"&&!ht(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||qe(t),n.removed=[],typeof u=="string"&&(Ce=!1),Ce){if(u.nodeName){const le=R(u.nodeName);if(!p[le]||a[le])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof w)s=pt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===Ne.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!se&&!fe&&!re&&u.indexOf("<")===-1)return d&&Pe?d.createHTML(u):u;if(s=pt(u),!s)return se?null:Pe?S:""}s&&C&&ae(s.firstChild);const k=mt(Ce?u:s);for(;y=k.nextNode();)gt(y)||(y.content instanceof f&&$t(y.content),Tt(y));if(Ce)return u;if(se){if(Ie)for(D=ue.call(s.ownerDocument);s.firstChild;)D.appendChild(s.firstChild);else D=s;return(A.shadowroot||A.shadowrootmode)&&(D=$.call(r,D,!0)),D}let G=re?s.outerHTML:s.innerHTML;return re&&p["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&I(Gt,s.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
2
2
|
`+G),fe&&ze([B,oe,he],le=>{G=ke(G,le," ")}),d&&Pe?d.createHTML(G):G},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qe(u),b=!0},n.clearConfig=function(){xe=null,b=!1},n.isValidAttribute=function(u,t,s){xe||qe({});const c=R(u),y=R(t);return _t(c,y,s)},n.addHook=function(u,t){typeof t=="function"&&(v[u]=v[u]||[],Re(v[u],t))},n.removeHook=function(u){if(v[u])return Ct(v[u])},n.removeHooks=function(u){v[u]&&(v[u]=[])},n.removeAllHooks=function(){v={}},n}var Dt=Yt();function bn(o){e.append_styles(o,"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=o=>({}),Nt=o=>({}),Sn=o=>({}),It=o=>({}),An=o=>({}),Pt=o=>({}),xn=o=>({}),Ut=o=>({class:"CashierSessionExpirationIcon"});function Ht(o){let n,i,r,l,f,h,w,E,g,Y,K,Ee,U=o[8]("sessionExpirationHeader")+"",H,de,te,F,ce,q,d,S,Q,ne,ue,z,$,v,B=o[8]("sessionExpirationEnd")+"",oe,he,V,O,L,ie,be,j,p,ge,A;const _e=o[23].icon,_=e.create_slot(_e,o,o[22],Ut),a=_||Cn(o),T=o[23].title,x=e.create_slot(T,o,o[22],Pt),M=o[23].text,Te=e.create_slot(M,o,o[22],It),W=Te||vn(o),fe=[Ln,Mn],Z=[];function re(b,C){return b[6]?0:1}return O=re(o),L=Z[O]=fe[O](o),{c(){n=e.element("div"),i=e.element("div"),r=e.element("div"),l=e.element("div"),f=e.svg_element("svg"),h=e.svg_element("defs"),w=e.svg_element("mask"),E=e.svg_element("circle"),g=e.svg_element("rect"),Y=e.svg_element("circle"),K=e.svg_element("circle"),Ee=e.space(),H=e.text(U),de=e.space(),te=e.element("div"),F=e.svg_element("svg"),ce=e.svg_element("path"),q=e.space(),d=e.element("div"),S=e.element("div"),a&&a.c(),Q=e.space(),x&&x.c(),ne=e.space(),W&&W.c(),ue=e.space(),z=e.element("div"),$=e.element("button"),v=e.element("span"),oe=e.text(B),he=e.space(),V=e.element("button"),L.c(),e.attr(E,"cx","100"),e.attr(E,"cy","100"),e.attr(E,"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(K,"cx","100"),e.attr(K,"cy","100"),e.attr(K,"r","90"),e.attr(K,"mask","url(#exclamation-mask)"),e.attr(f,"viewBox","0 0 200 200"),e.attr(f,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"class","CashierSessionExpirationModalHeaderTitle"),e.attr(ce,"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(F,"xmlns","http://www.w3.org/2000/svg"),e.attr(F,"viewBox","0 0 13 13"),e.attr(F,"fill","none"),e.attr(F,"class","CloseButton"),e.attr(te,"class","ModalCloseIcon"),e.attr(r,"class","CashierSessionExpirationModalHeader"),e.attr(v,"class","CashierSessionExpirationButtonText"),e.attr($,"type","button"),e.attr($,"class","ModalButton Secondary"),e.attr(V,"type","button"),e.attr(V,"class",ie="ModalButton Primary "+(o[6]?"Disabled":"")),e.attr(z,"class","ButtonsContainer"),e.attr(S,"class","CashierSessionExpiration"),e.attr(d,"class","CashierSessionExpirationModalContainer"),e.attr(i,"class","CashierSessionExpirationModalWrapper"),e.attr(n,"class","CashierSessionExpirationModalWindow"),e.attr(n,"id","CashierSessionExpirationModal"),e.add_render_callback(()=>o[25].call(n))},m(b,C){e.insert(b,n,C),e.append(n,i),e.append(i,r),e.append(r,l),e.append(l,f),e.append(f,h),e.append(h,w),e.append(w,E),e.append(w,g),e.append(w,Y),e.append(f,K),e.append(l,Ee),e.append(l,H),e.append(r,de),e.append(r,te),e.append(te,F),e.append(F,ce),e.append(i,q),e.append(i,d),e.append(d,S),a&&a.m(S,null),e.append(S,Q),x&&x.m(S,null),e.append(S,ne),W&&W.m(S,null),e.append(S,ue),e.append(S,z),e.append(z,$),e.append($,v),e.append(v,oe),e.append(z,he),e.append(z,V),Z[O].m(V,null),o[24](S),be=e.add_iframe_resize_listener(n,o[25].bind(n)),p=!0,ge||(A=[e.listen(F,"click",o[11]),e.listen($,"click",o[11]),e.listen(V,"click",o[9]),e.listen(n,"click",o[10])],ge=!0)},p(b,C){o=b,(!p||C[0]&256)&&U!==(U=o[8]("sessionExpirationHeader")+"")&&e.set_data(H,U),_?_.p&&(!p||C[0]&4194304)&&e.update_slot_base(_,_e,o,o[22],p?e.get_slot_changes(_e,o[22],C,xn):e.get_all_dirty_from_scope(o[22]),Ut):a&&a.p&&(!p||C[0]&8)&&a.p(o,p?C:[-1,-1]),x&&x.p&&(!p||C[0]&4194304)&&e.update_slot_base(x,T,o,o[22],p?e.get_slot_changes(T,o[22],C,An):e.get_all_dirty_from_scope(o[22]),Pt),Te?Te.p&&(!p||C[0]&4194304)&&e.update_slot_base(Te,M,o,o[22],p?e.get_slot_changes(M,o[22],C,Sn):e.get_all_dirty_from_scope(o[22]),It):W&&W.p&&(!p||C[0]&384)&&W.p(o,p?C:[-1,-1]),(!p||C[0]&256)&&B!==(B=o[8]("sessionExpirationEnd")+"")&&e.set_data(oe,B);let se=O;O=re(o),O===se?Z[O].p(o,C):(e.group_outros(),e.transition_out(Z[se],1,1,()=>{Z[se]=null}),e.check_outros(),L=Z[O],L?L.p(o,C):(L=Z[O]=fe[O](o),L.c()),e.transition_in(L,1),L.m(V,null)),(!p||C[0]&64&&ie!==(ie="ModalButton Primary "+(o[6]?"Disabled":"")))&&e.attr(V,"class",ie)},i(b){p||(e.transition_in(a,b),e.transition_in(x,b),e.transition_in(W,b),e.transition_in(L),b&&e.add_render_callback(()=>{p&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:o[2]},!0)),j.run(1))}),p=!0)},o(b){e.transition_out(a,b),e.transition_out(x,b),e.transition_out(W,b),e.transition_out(L),b&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:o[2]},!1)),j.run(0)),p=!1},d(b){b&&e.detach(n),a&&a.d(b),x&&x.d(b),W&&W.d(b),Z[O].d(),o[24](null),be(),b&&j&&j.end(),ge=!1,e.run_all(A)}}}function Ft(o){let n,i;return{c(){n=e.element("img"),e.src_url_equal(n.src,i=`${o[3]}/set-timeout-icon.png`)||e.attr(n,"src",i),e.attr(n,"width","300px"),e.attr(n,"alt","error")},m(r,l){e.insert(r,n,l)},p(r,l){l[0]&8&&!e.src_url_equal(n.src,i=`${r[3]}/set-timeout-icon.png`)&&e.attr(n,"src",i)},d(r){r&&e.detach(n)}}}function Cn(o){let n,i=o[3]&&Ft(o);return{c(){i&&i.c(),n=e.empty()},m(r,l){i&&i.m(r,l),e.insert(r,n,l)},p(r,l){r[3]?i?i.p(r,l):(i=Ft(r),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(r){r&&e.detach(n),i&&i.d(r)}}}function vn(o){let n,i,r=o[8]("sessionExpirationTitle")+"",l,f,h,w=Dt.sanitize(o[8]("sessionExpirationGeneralText",{values:{second:o[7]}}))+"";return{c(){n=e.element("span"),i=e.element("p"),l=e.text(r),f=e.space(),h=e.element("p"),e.attr(n,"class","CashierSessionExpirationText")},m(E,g){e.insert(E,n,g),e.append(n,i),e.append(i,l),e.append(n,f),e.append(n,h),h.innerHTML=w},p(E,g){g[0]&256&&r!==(r=E[8]("sessionExpirationTitle")+"")&&e.set_data(l,r),g[0]&384&&w!==(w=Dt.sanitize(E[8]("sessionExpirationGeneralText",{values:{second:E[7]}}))+"")&&(h.innerHTML=w)},d(E){E&&e.detach(n)}}}function Mn(o){let n;const i=o[23].button,r=e.create_slot(i,o,o[22],Nt),l=r||Rn(o);return{c(){l&&l.c()},m(f,h){l&&l.m(f,h),n=!0},p(f,h){r?r.p&&(!n||h[0]&4194304)&&e.update_slot_base(r,i,f,f[22],n?e.get_slot_changes(i,f[22],h,wn):e.get_all_dirty_from_scope(f[22]),Nt):l&&l.p&&(!n||h[0]&256)&&l.p(f,n?h:[-1,-1])},i(f){n||(e.transition_in(l,f),n=!0)},o(f){e.transition_out(l,f),n=!1},d(f){l&&l.d(f)}}}function Ln(o){let n,i,r,l,f,h=o[8]("sessionExpirationLoadingButton")+"",w;return{c(){n=e.element("div"),i=e.svg_element("svg"),r=e.svg_element("path"),l=e.space(),f=e.element("span"),w=e.text(h),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(i,"class","CashierSessionExpirationButtonSpinner"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","15"),e.attr(i,"height","14"),e.attr(i,"viewBox","0 0 15 14"),e.attr(i,"fill","none"),e.attr(f,"class","CashierSessionExpirationButtonText")},m(E,g){e.insert(E,n,g),e.append(n,i),e.append(i,r),e.append(n,l),e.append(n,f),e.append(f,w)},p(E,g){g[0]&256&&h!==(h=E[8]("sessionExpirationLoadingButton")+"")&&e.set_data(w,h)},i:e.noop,o:e.noop,d(E){E&&e.detach(n)}}}function Rn(o){let n,i=o[8]("sessionExpirationGeneralButton")+"",r;return{c(){n=e.element("span"),r=e.text(i),e.attr(n,"class","CashierSessionExpirationButtonText")},m(l,f){e.insert(l,n,f),e.append(n,r)},p(l,f){f[0]&256&&i!==(i=l[8]("sessionExpirationGeneralButton")+"")&&e.set_data(r,i)},d(l){l&&e.detach(n)}}}function kn(o){let n,i,r=o[5]&&Ht(o);return{c(){n=e.element("div"),r&&r.c()},m(l,f){e.insert(l,n,f),r&&r.m(n,null),o[26](n),i=!0},p(l,f){l[5]?r?(r.p(l,f),f[0]&32&&e.transition_in(r,1)):(r=Ht(l),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(l){i||(e.transition_in(r),i=!0)},o(l){e.transition_out(r),i=!1},d(l){l&&e.detach(n),r&&r.d(),o[26](null)}}}const On=90;function Dn(o,n,i){let r,l;e.component_subscribe(o,Le.xPaymentSessionToken,a=>i(21,r=a)),e.component_subscribe(o,e.$format,a=>i(8,l=a));let{$$slots:f={},$$scope:h}=n;Le.dayjs.extend(Le.utc);let{clientstyling:w=""}=n,{clientstylingurl:E=""}=n,{width:g}=n,{height:Y}=n,{duration:K=200}=n,{assetsurl:Ee=""}=n,{lang:U="en"}=n,{translationurl:H=""}=n,{endpoint:de}=n,{currency:te}=n,{customerid:F}=n,{selectedpaymentmethodname:ce}=n,{mbsource:q=""}=n,d,S=!1,Q=!1,ne,ue,z,$,v;var B;(function(a){a.PlayerSessionIsNotValid="PlayerSessionIsNotValid",a.Success="Success",a.JwtTokenError="JwtTokenError"})(B||(B={}));const oe=a=>{a.data.type==="StartSessionCountdown"&&($=a.data.paymentMethodName)},he=a=>{try{return JSON.parse(atob(a.split(".")[1]))}catch(T){return null}},V=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:v},window.location.href)},O=a=>{i(5,S=!1);const T=he(a);T&&(ue=T==null?void 0:T.exp,i(7,ne=ue),z&&clearInterval(z),z=setInterval(()=>{const x=Math.floor(new Date().getTime()/1e3);i(7,ne=ue-x),ne<=On&&i(5,S=!0),x>=ue&&(L(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},L=()=>{i(7,ne=0),i(5,S=!1),clearInterval(z)},ie=()=>{if(Q)return;const a=new URL(`${de}/v1/player/${F}/payment/GetPaymentMethod`),T=new Headers;i(6,Q=!0),T.append("accept","application/json"),T.append("Content-Type","application/json"),T.append("X-Client-Request-Timestamp",Le.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const x={method:"POST",mode:"cors",headers:T,body:JSON.stringify({PaymentMethodName:$||ce,Currency:te,XPaymentSessionToken:r})};fetch(a,x).then(M=>M.json()).then(M=>{if(M.error){window.postMessage({type:"ShowSessionError",error:M.error},window.location.href),L();return}if(M.ResponseCode===B.PlayerSessionIsNotValid||M.ResponseCode===B.JwtTokenError){v=M.ResponseCode,L(),V();return}if(M.ResponseCode!==B.Success){v=M.ResponseCode,L();return}M.XPaymentSessionToken&&Le.xPaymentSessionToken.set(M.XPaymentSessionToken)}).finally(()=>i(6,Q=!1))},be=a=>{const T=a.currentTarget;a.target===T&&ie()},j=()=>{fetch(H).then(T=>T.json()).then(T=>{Object.keys(T).forEach(x=>{St(x,T[x])})}).catch(T=>{console.log(T)})},p=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),i(5,S=!1)};Object.keys(At).forEach(a=>{St(a,At[a])});const ge=()=>{en(U)};e.onMount(()=>(window.addEventListener("message",oe,!1),()=>{window.removeEventListener("message",oe)})),e.onDestroy(()=>{clearInterval(z)});function A(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,i(4,d)})}function _e(){g=this.clientWidth,Y=this.clientHeight,i(0,g),i(1,Y)}function _(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,i(4,d)})}return o.$$set=a=>{"clientstyling"in a&&i(12,w=a.clientstyling),"clientstylingurl"in a&&i(13,E=a.clientstylingurl),"width"in a&&i(0,g=a.width),"height"in a&&i(1,Y=a.height),"duration"in a&&i(2,K=a.duration),"assetsurl"in a&&i(3,Ee=a.assetsurl),"lang"in a&&i(14,U=a.lang),"translationurl"in a&&i(15,H=a.translationurl),"endpoint"in a&&i(16,de=a.endpoint),"currency"in a&&i(17,te=a.currency),"customerid"in a&&i(18,F=a.customerid),"selectedpaymentmethodname"in a&&i(19,ce=a.selectedpaymentmethodname),"mbsource"in a&&i(20,q=a.mbsource),"$$scope"in a&&i(22,h=a.$$scope)},o.$$.update=()=>{o.$$.dirty[0]&2097152&&O(r),o.$$.dirty[0]&16384&&U&&ge(),o.$$.dirty[0]&4112&&w&&d&&e.setClientStyling(d,w),o.$$.dirty[0]&8208&&E&&d&&e.setClientStylingURL(d,E),o.$$.dirty[0]&1048592&&q&&d&&e.setStreamStyling(d,`${q}.Style`),o.$$.dirty[0]&32768&&H&&j()},[g,Y,K,Ee,d,S,Q,ne,l,ie,be,p,w,E,U,H,de,te,F,ce,q,r,h,f,A,_e,_]}class jt extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,Dn,kn,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);exports.default=jt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as xn, i as Cn, $ as Ln, S as vn, b as Mn, s as Rn, f as q, c as On, e as ve, t as Ae, g as Te, a6 as un, a7 as fn, k as Me, m as R, p as Ut, q as kn, af as Dn, d as $e, a0 as Nn, ag as Ht, L as Ft, v as We, u as et, h as tt, j as nt, o as u, l as p, a8 as In, x as Je, X as oe, n as Ee, w as Ye, y as zt, r as Pn, G as Bt, z as Gt, B as Un, C as Hn, D as Fn, E as zn, F as Bn } from "./CashierCarousel-D8MiOwuE.js";
|
|
2
|
-
import { f as Wt } from "./CashierReceiptPage-
|
|
3
|
-
import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-
|
|
2
|
+
import { f as Wt } from "./CashierReceiptPage-BbHKdDra.js";
|
|
3
|
+
import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-BzVSr2on.js";
|
|
4
4
|
function Xt(n, t) {
|
|
5
5
|
xn(n, t);
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as xn, i as Cn, $ as Ln, S as vn, b as Mn, s as Rn, f as q, c as kn, e as ve, t as Ae, g as Te, a6 as un, a7 as fn, k as Me, m as R, p as Ut, q as On, af as Dn, d as $e, _ as Nn, ag as Ht, L as Ft, v as Ge, u as et, h as tt, j as nt, o as u, l as p, a8 as In, x as Je, W as oe, n as Ee, w as Ye, y as zt, r as Pn, G as Bt, z as Wt, B as Un, C as Hn, D as Fn, E as zn, F as Bn } from "./CashierCarousel-BNKjZ4dF.js";
|
|
2
|
-
import { f as Gt } from "./CashierReceiptPage-
|
|
3
|
-
import { d as Yt, u as Wn, x as jt } from "./CashierMethodDetails
|
|
2
|
+
import { f as Gt } from "./CashierReceiptPage-CNwhHWwV.js";
|
|
3
|
+
import { d as Yt, u as Wn, x as jt } from "./CashierMethodDetails-Bxh5WhVb.js";
|
|
4
4
|
function Xt(n, t) {
|
|
5
5
|
xn(n, t);
|
|
6
6
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var je=Object.defineProperty,Be=Object.defineProperties;var He=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable;var he=(l,n,t)=>n in l?je(l,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[n]=t,pe=(l,n)=>{for(var t in n||(n={}))Ne.call(n,t)&&he(l,t,n[t]);if(me)for(var t of me(n))Ve.call(n,t)&&he(l,t,n[t]);return l},ge=(l,n)=>Be(l,He(n));var ae=(l,n,t)=>new Promise((a,r)=>{var o=p=>{try{i(t.next(p))}catch(u){r(u)}},d=p=>{try{i(t.throw(p))}catch(u){r(u)}},i=p=>p.done?a(p.value):Promise.resolve(p.value).then(o,d);i((t=t.apply(l,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-CecQbbdW.cjs");function _e(l,n){e.addMessages(l,n)}function We(l){e.$locale.set(l)}const be={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, you will be logged out and blocked temporarily.",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, oturumunuz kapatılacak ve geçici olarak engelleneceksiniz.",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:"}};function Fe(l){e.append_styles(l,"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 we(l,n,t){const a=l.slice();return a[69]=n[t],a[70]=n,a[71]=t,a}function Ue(l){let n,t,a,r,o,d,i,p,u,b,_,O,C,g,f,w,k,M=l[19]("channelSMS")+"",H,D,I,T,G,j,U,Y,q,v,E,P,J,Q,Z=l[19]("channelEmail")+"",B,V,R,X,W,$,te;function ee(c,y){return c[9]?Ge:c[12]?Xe:Ke}let ne=ee(l),N=ne(l),L=l[0]&&ke(l);function re(c,y){if(c[3]&&c[12])return et;if(c[12]&&c[4])return $e}let K=re(l),x=K&&K(l);function se(c,y){if(c[9])return nt;if(c[12]&&c[4])return tt}let F=se(l),z=F&&F(l);return{c(){n=e.element("div"),N.c(),t=e.space(),a=e.element("div"),r=e.element("label"),o=e.element("div"),d=e.space(),i=e.element("input"),u=e.space(),b=e.element("div"),_=e.svg_element("svg"),O=e.svg_element("path"),C=e.svg_element("circle"),g=e.svg_element("circle"),f=e.svg_element("circle"),w=e.space(),k=e.element("span"),H=e.text(M),D=e.space(),I=e.element("label"),T=e.element("div"),G=e.space(),j=e.element("input"),Y=e.space(),q=e.element("div"),v=e.svg_element("svg"),E=e.svg_element("rect"),P=e.svg_element("path"),J=e.space(),Q=e.element("span"),B=e.text(Z),V=e.space(),L&&L.c(),R=e.space(),x&&x.c(),X=e.space(),W=e.element("div"),z&&z.c(),e.attr(n,"class","OtpDescription"),e.attr(o,"class","RadioIndicator"),e.toggle_class(o,"checked",l[0]===l[20].SMS),e.attr(i,"type","radio"),e.attr(i,"name","channel"),i.value=l[20].SMS,i.checked=p=l[0]===l[20].SMS,e.attr(O,"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(r,"class","ChannelCheckbox"),e.toggle_class(r,"selected",l[0]===l[20].SMS),e.attr(T,"class","RadioIndicator"),e.toggle_class(T,"checked",l[0]===l[20].EMAIL),e.attr(j,"type","radio"),e.attr(j,"name","channel"),j.value=l[20].EMAIL,j.checked=U=l[0]===l[20].EMAIL,e.attr(E,"x","2"),e.attr(E,"y","4"),e.attr(E,"width","20"),e.attr(E,"height","16"),e.attr(E,"rx","2"),e.attr(P,"d","m2 7 10 6 10-6"),e.attr(v,"xmlns","http://www.w3.org/2000/svg"),e.attr(v,"width","24"),e.attr(v,"height","24"),e.attr(v,"viewBox","0 0 24 24"),e.attr(v,"fill","none"),e.attr(v,"stroke","currentColor"),e.attr(v,"stroke-width","2"),e.attr(v,"stroke-linecap","round"),e.attr(v,"stroke-linejoin","round"),e.attr(q,"class","ChannelContent"),e.attr(I,"class","ChannelCheckbox"),e.toggle_class(I,"selected",l[0]===l[20].EMAIL),e.attr(a,"class","ChannelSelection"),e.attr(W,"class","OtpActionButtons")},m(c,y){e.insert(c,n,y),N.m(n,null),e.insert(c,t,y),e.insert(c,a,y),e.append(a,r),e.append(r,o),e.append(r,d),e.append(r,i),e.append(r,u),e.append(r,b),e.append(b,_),e.append(_,O),e.append(_,C),e.append(_,g),e.append(_,f),e.append(b,w),e.append(b,k),e.append(k,H),e.append(a,D),e.append(a,I),e.append(I,T),e.append(I,G),e.append(I,j),e.append(I,Y),e.append(I,q),e.append(q,v),e.append(v,E),e.append(v,P),e.append(q,J),e.append(q,Q),e.append(Q,B),e.insert(c,V,y),L&&L.m(c,y),e.insert(c,R,y),x&&x.m(c,y),e.insert(c,X,y),e.insert(c,W,y),z&&z.m(W,null),$||(te=[e.listen(i,"change",l[39]),e.listen(j,"change",l[40])],$=!0)},p(c,y){ne===(ne=ee(c))&&N?N.p(c,y):(N.d(1),N=ne(c),N&&(N.c(),N.m(n,null))),y[0]&1048577&&e.toggle_class(o,"checked",c[0]===c[20].SMS),y[0]&1&&p!==(p=c[0]===c[20].SMS)&&(i.checked=p),y[0]&524288&&M!==(M=c[19]("channelSMS")+"")&&e.set_data(H,M),y[0]&1048577&&e.toggle_class(r,"selected",c[0]===c[20].SMS),y[0]&1048577&&e.toggle_class(T,"checked",c[0]===c[20].EMAIL),y[0]&1&&U!==(U=c[0]===c[20].EMAIL)&&(j.checked=U),y[0]&524288&&Z!==(Z=c[19]("channelEmail")+"")&&e.set_data(B,Z),y[0]&1048577&&e.toggle_class(I,"selected",c[0]===c[20].EMAIL),c[0]?L?L.p(c,y):(L=ke(c),L.c(),L.m(R.parentNode,R)):L&&(L.d(1),L=null),K===(K=re(c))&&x?x.p(c,y):(x&&x.d(1),x=K&&K(c),x&&(x.c(),x.m(X.parentNode,X))),F===(F=se(c))&&z?z.p(c,y):(z&&z.d(1),z=F&&F(c),z&&(z.c(),z.m(W,null)))},d(c){c&&(e.detach(n),e.detach(t),e.detach(a),e.detach(V),e.detach(R),e.detach(X),e.detach(W)),N.d(),L&&L.d(c),x&&x.d(c),z&&z.d(),$=!1,e.run_all(te)}}}function qe(l){let n,t,a,r,o,d,i=l[19]("errorHeader")+"",p,u,b,_,O,C,g=l[19]("close")+"",f,w,k;return{c(){n=e.element("div"),t=e.element("div"),a=e.svg_element("svg"),r=e.svg_element("path"),o=e.space(),d=e.element("h2"),p=e.text(i),u=e.space(),b=e.element("p"),_=e.text(l[8]),O=e.space(),C=e.element("button"),f=e.text(g),e.attr(r,"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,r),e.append(t,o),e.append(t,d),e.append(d,p),e.append(n,u),e.append(n,b),e.append(b,_),e.append(n,O),e.append(n,C),e.append(C,f),w||(k=e.listen(C,"click",l[28]),w=!0)},p(M,H){H[0]&524288&&i!==(i=M[19]("errorHeader")+"")&&e.set_data(p,i),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,k()}}}function Xe(l){let n,t,a,r;function o(u,b){return u[10]?Je:Ye}let d=o(l),i=d(l),p=l[6]&&ye(l);return{c(){n=e.element("p"),i.c(),a=e.space(),p&&p.c(),r=e.empty(),e.attr(n,"class",t=l[10]?"LastWarningMessage":"")},m(u,b){e.insert(u,n,b),i.m(n,null),e.insert(u,a,b),p&&p.m(u,b),e.insert(u,r,b)},p(u,b){d===(d=o(u))&&i?i.p(u,b):(i.d(1),i=d(u),i&&(i.c(),i.m(n,null))),b[0]&1024&&t!==(t=u[10]?"LastWarningMessage":"")&&e.attr(n,"class",t),u[6]?p?p.p(u,b):(p=ye(u),p.c(),p.m(r.parentNode,r)):p&&(p.d(1),p=null)},d(u){u&&(e.detach(n),e.detach(a),e.detach(r)),i.d(),p&&p.d(u)}}}function Ke(l){let n,t=(l[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",a;return{c(){n=e.element("p"),a=e.text(t)},m(r,o){e.insert(r,n,o),e.append(n,a)},p(r,o){o[0]&524288&&t!==(t=(r[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&e.set_data(a,t)},d(r){r&&e.detach(n)}}}function Ge(l){let n,t=l[19]("otpExpiredMessage")+"",a;return{c(){n=e.element("p"),a=e.text(t),e.attr(n,"class","OtpNoticeMessage"),e.attr(n,"role","alert")},m(r,o){e.insert(r,n,o),e.append(n,a)},p(r,o){o[0]&524288&&t!==(t=r[19]("otpExpiredMessage")+"")&&e.set_data(a,t)},d(r){r&&e.detach(n)}}}function Ye(l){let n=l[19]("popupMessage")+"",t;return{c(){t=e.text(n)},m(a,r){e.insert(a,t,r)},p(a,r){r[0]&524288&&n!==(n=a[19]("popupMessage")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function Je(l){let n=l[19]("popupMessageLastWarning")+"",t;return{c(){t=e.text(n)},m(a,r){e.insert(a,t,r)},p(a,r){r[0]&524288&&n!==(n=a[19]("popupMessageLastWarning")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function ye(l){let n,t;return{c(){n=e.element("p"),t=e.text(l[8]),e.attr(n,"class","OtpErrorMessage"),e.attr(n,"role","alert")},m(a,r){e.insert(a,n,r),e.append(n,t)},p(a,r){r[0]&256&&e.set_data(t,a[8])},d(a){a&&e.detach(n)}}}function ke(l){let n,t,a,r;function o(p,u){return p[17]>0?Ze:Qe}let d=o(l),i=d(l);return{c(){n=e.element("button"),i.c(),e.attr(n,"class","OtpButton"),n.disabled=t=!l[18],e.toggle_class(n,"disabled",!l[18]||l[16])},m(p,u){e.insert(p,n,u),i.m(n,null),a||(r=e.listen(n,"click",l[22]),a=!0)},p(p,u){d===(d=o(p))&&i?i.p(p,u):(i.d(1),i=d(p),i&&(i.c(),i.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),i.d(),a=!1,r()}}}function Qe(l){let n=l[19]("sendCode")+"",t;return{c(){t=e.text(n)},m(a,r){e.insert(a,t,r)},p(a,r){r[0]&524288&&n!==(n=a[19]("sendCode")+"")&&e.set_data(t,n)},d(a){a&&e.detach(t)}}}function Ze(l){let n=l[19]("waitSeconds")+"",t,a,r,o;return{c(){t=e.text(n),a=e.text(" ("),r=e.text(l[17]),o=e.text("s)")},m(d,i){e.insert(d,t,i),e.insert(d,a,i),e.insert(d,r,i),e.insert(d,o,i)},p(d,i){i[0]&524288&&n!==(n=d[19]("waitSeconds")+"")&&e.set_data(t,n),i[0]&131072&&e.set_data(r,d[17])},d(d){d&&(e.detach(t),e.detach(a),e.detach(r),e.detach(o))}}}function $e(l){let n,t,a=l[19]("timeRemaining")+"",r,o,d=l[23](l[5])+"",i,p,u=l[19]("minutes")+"",b,_,O,C=e.ensure_array_like(l[2]),g=[];for(let f=0;f<C.length;f+=1)g[f]=ve(we(l,C,f));return{c(){n=e.element("div"),t=e.element("div"),r=e.text(a),o=e.space(),i=e.text(d),p=e.space(),b=e.text(u),_=e.space(),O=e.element("div");for(let f=0;f<g.length;f+=1)g[f].c();e.attr(t,"class","OtpTimer"),e.attr(O,"class","OtpField"),e.attr(n,"class","OtpFieldWrapper")},m(f,w){e.insert(f,n,w),e.append(n,t),e.append(t,r),e.append(t,o),e.append(t,i),e.append(t,p),e.append(t,b),e.append(n,_),e.append(n,O);for(let k=0;k<g.length;k+=1)g[k]&&g[k].m(O,null)},p(f,w){if(w[0]&524288&&a!==(a=f[19]("timeRemaining")+"")&&e.set_data(r,a),w[0]&32&&d!==(d=f[23](f[5])+"")&&e.set_data(i,d),w[0]&524288&&u!==(u=f[19]("minutes")+"")&&e.set_data(b,u),w[0]&117458964){C=e.ensure_array_like(f[2]);let k;for(k=0;k<C.length;k+=1){const M=we(f,C,k);g[k]?g[k].p(M,w):(g[k]=ve(M),g[k].c(),g[k].m(O,null))}for(;k<g.length;k+=1)g[k].d(1);g.length=C.length}},d(f){f&&e.detach(n),e.destroy_each(g,f)}}}function et(l){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 ve(l){let n,t,a,r=l[71],o,d;const i=()=>l[41](n,r),p=()=>l[41](null,r);function u(..._){return l[42](l[71],..._)}function b(..._){return l[43](l[71],..._)}return{c(){n=e.element("input"),e.attr(n,"id",`otp-input-${l[71]}`),e.attr(n,"type","text"),e.attr(n,"class",t=`otp-box ${l[4].inputLength%2===0&&l[71]===l[4].inputLength/2-1?"space":""}`),e.attr(n,"maxlength",1),n.value=a=l[69],e.attr(n,"inputmode","numeric"),n.disabled=l[11],e.attr(n,"autocomplete","off")},m(_,O){e.insert(_,n,O),i(),o||(d=[e.listen(n,"input",u),e.listen(n,"keydown",b),e.listen(n,"paste",l[24])],o=!0)},p(_,O){l=_,O[0]&16&&t!==(t=`otp-box ${l[4].inputLength%2===0&&l[71]===l[4].inputLength/2-1?"space":""}`)&&e.attr(n,"class",t),O[0]&4&&a!==(a=l[69])&&n.value!==a&&(n.value=a),O[0]&2048&&(n.disabled=l[11]),r!==l[71]&&(p(),r=l[71],i())},d(_){_&&e.detach(n),p(),o=!1,e.run_all(d)}}}function tt(l){let n,t=l[19]("submit")+"",a,r,o,d;return{c(){n=e.element("button"),a=e.text(t),e.attr(n,"class","OtpButton"),n.disabled=r=l[2].join("").length!==l[4].inputLength||l[13]||l[15]},m(i,p){e.insert(i,n,p),e.append(n,a),o||(d=e.listen(n,"click",l[29]),o=!0)},p(i,p){p[0]&524288&&t!==(t=i[19]("submit")+"")&&e.set_data(a,t),p[0]&40980&&r!==(r=i[2].join("").length!==i[4].inputLength||i[13]||i[15])&&(n.disabled=r)},d(i){i&&e.detach(n),o=!1,d()}}}function nt(l){let n,t=l[19]("resendOtp")+"",a,r,o;return{c(){n=e.element("button"),a=e.text(t),e.attr(n,"class","OtpButton")},m(d,i){e.insert(d,n,i),e.append(n,a),r||(o=e.listen(n,"click",l[27]),r=!0)},p(d,i){i[0]&524288&&t!==(t=d[19]("resendOtp")+"")&&e.set_data(a,t)},d(d){d&&e.detach(n),r=!1,o()}}}function lt(l){let n;function t(o,d){return o[7]?qe:Ue}let a=t(l),r=a(l);return{c(){n=e.element("div"),r.c(),e.attr(n,"class","OtpContent")},m(o,d){e.insert(o,n,d),r.m(n,null),l[44](n)},p(o,d){a===(a=t(o))&&r?r.p(o,d):(r.d(1),r=a(o),r&&(r.c(),r.m(n,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(n),r.d(),l[44](null)}}}function at(l,n,t){let a,r,o;e.component_subscribe(l,e.$format,s=>t(19,o=s));let{clientstyling:d=""}=n,{clientstylingurl:i=""}=n,{mbsource:p}=n,{lang:u="en"}=n,{endpoint:b}=n,{session:_}=n,{translationurl:O}=n,{templateid:C}=n,g=[],f=!0,w=null,k=0,M="",H="",D=!1,I=!1,T="",G="",j="",U=!1,Y=!1,q=!1,v="",E={},P=null,J=!1,Q=!1,Z="",B,V=[],R=null,X=0,W=!1,$=!1;const te={SMS:"sms",EMAIL:"email"},ee={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(be).forEach(s=>{_e(s,be[s])});const ne=()=>{We(u)},N=()=>{fetch(O).then(s=>s.json()).then(s=>{Object.keys(s).forEach(m=>{_e(m,s[m])})}).catch(s=>{console.log(s)})},L=s=>ae(this,null,function*(){var m;if((m=s.detail)!=null&&m["x-step-up-required"]){if(t(7,I=!1),t(6,D=!1),t(8,T=""),G=s.detail["x-step-up-token"],j=s.detail.flow,!G||!j){t(3,f=!1),t(7,I=!0),t(8,T=o("configError"));return}t(12,J=!1),t(3,f=!1)}}),re=()=>{R&&(clearInterval(R),R=null),P&&(clearInterval(P),P=null),t(6,D=!1),t(7,I=!1),t(8,T=""),t(10,Y=!1),t(2,g=[]),t(4,w=null),t(3,f=!0),t(0,v=""),t(12,J=!1),t(38,E={})},K=()=>{re()},x=()=>new Promise((s,m)=>{const h=new URL(`${b}/api/pam/v1/mfa/challenge/${G}`),S=new Headers;S.append("accept","application/json"),S.append("Content-Type","application/json"),S.append("X-SessionId",`${_}`),t(16,$=!0);const le={method:"PATCH",headers:S,body:JSON.stringify({channel:v,templateId:C})};fetch(h,le).then(fe=>fe.json()).then(()=>{t(15,W=!1),c(),y(),s()}).catch(fe=>{m()})}),se=()=>{P&&clearInterval(P),P=setInterval(()=>{const s=pe({},E);let m=!1;Object.keys(s).forEach(h=>{s[h]>0&&(s[h]--,m=!0)}),t(38,E=s),!m&&P&&(clearInterval(P),P=null)},1e3)},F=s=>{t(0,v=s)},z=()=>ae(this,null,function*(){if(!(!v||E[v]&&E[v]>0)){t(3,f=!0),C&&C.startsWith("2fa-")&&t(30,C=`2fa-${v}`);try{yield x(),yield oe(),t(38,E=ge(pe({},E),{[v]:30})),se(),t(12,J=!0),c(),y()}catch(s){console.error("Error submitting channel:",s),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}}),c=()=>{const s=new Date(M),m=new Date(H),h=new Date,S=m.getTime()-h.getTime();X=s.getTime()-S;const A=Date.now(),le=Math.max(0,Math.floor((X-A)/1e3));t(5,k=le)},y=()=>{R&&clearInterval(R),R=setInterval(()=>{const s=Date.now(),m=Math.max(0,Math.floor((X-s)/1e3));t(5,k=m),t(11,q=m<=0),m<=0&&(clearInterval(R),R=null,t(9,U=!0),t(6,D=!1),t(10,Y=!1))},1e3)},Oe=s=>{const m=Math.floor(s/60),h=s%60;return`${m.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`},ie=(s,m)=>{const h=[...g];h[s]=m.toUpperCase(),t(2,g=h),h.join("")!==Z&&t(13,Q=!1)},Ee=s=>{var S,A,le;s.preventDefault();const h=(((A=(S=s.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("")]),(le=V[h.length])==null||le.focus(),h.length===w.inputLength&&ue()},ce=(s,m)=>{const h=s.target,S=h.value;if(/^[a-z0-9]$/i.test(S)){ie(m,S);const A=V[m+1];A==null||A.focus()}h.value=""},de=(s,m)=>{const h=s.key,S=s.ctrlKey||s.metaKey;if(/^[a-z0-9]$/i.test(h)){if(S&&h.toLowerCase()==="v")return;s.preventDefault(),ie(m,h);const A=V[m+1];A==null||A.focus()}else if(h==="Backspace"){s.preventDefault(),g[m]!==""&&ie(m,"");const A=V[m-1];A==null||A.focus()}},Se=()=>{j=="stateful"&&(x(),t(9,U=!1));const s=new CustomEvent("otpResendRequested");window.dispatchEvent(s)},Me=s=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:s,maxAttempts:w.maxValidationAttempts,validatedAttempts:w.numberOfValidateAttempts}}))},Te=s=>ae(this,null,function*(){const m=new URL(`/api/nwa/api/v1/mfa/challenge/${G}/validate`,b);m.searchParams.append("input",s);try{const h=yield fetch(m.href,{method:"POST"});if(h.status===200){Le();return}const S=yield h.json();throw new Error(S.message)}catch(h){if(yield oe(),h.message===ee.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")),oe();return}h.message===ee.MAX_INVALIDATE&&(t(6,D=!0),t(8,T=o("invalidOtp"))),h.details===ee.MAX_ATTEMPTS_EXCEEDED&&t(15,W=!0),console.error("OTP submission failed:",h),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}),Le=()=>{window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}}))},xe=()=>{window.dispatchEvent(new CustomEvent("manualClosePopup"))},ue=()=>ae(this,null,function*(){if(g.join("").length!==w.inputLength){t(6,D=!0),t(8,T=o("invalidOtp"));return}const s=g.join("");t(13,Q=!0),Z=s,t(3,f=!0),t(6,D=!1),t(8,T=""),j==="stateless"&&Me(s),j==="stateful"&&(yield Te(s))}),oe=()=>ae(this,null,function*(){if(b)try{t(3,f=!0);const s=new URL(`/api/nwa/api/v1/mfa/challenge/${G}/config`,b),m=yield fetch(s.href),h=yield m.json();if(m.ok)t(4,w=h),t(2,g=Array(w.inputLength).fill("")),t(9,U=!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),c(),y(),t(16,$=!1);else if(h&&h.details===ee.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(s){t(3,f=!1),t(7,I=!0),t(8,T=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",s)}});e.onMount(()=>(window.addEventListener("stepUpAuthRequired",L,!1),window.addEventListener("closePopup",K,!1),()=>{window.removeEventListener("stepUpAuthRequired",L),window.removeEventListener("closePopup",K,!1),R&&clearInterval(R),P&&clearInterval(P)}));const Ae=()=>F(te.SMS),Ie=()=>F(te.EMAIL);function Re(s,m){e.binding_callbacks[s?"unshift":"push"](()=>{V[m]=s,t(14,V)})}const ze=(s,m)=>ce(m,s),Pe=(s,m)=>de(m,s);function De(s){e.binding_callbacks[s?"unshift":"push"](()=>{B=s,t(1,B)})}return l.$$set=s=>{"clientstyling"in s&&t(31,d=s.clientstyling),"clientstylingurl"in s&&t(32,i=s.clientstylingurl),"mbsource"in s&&t(33,p=s.mbsource),"lang"in s&&t(34,u=s.lang),"endpoint"in s&&t(35,b=s.endpoint),"session"in s&&t(36,_=s.session),"translationurl"in s&&t(37,O=s.translationurl),"templateid"in s&&t(30,C=s.templateid)},l.$$.update=()=>{l.$$.dirty[0]&2|l.$$.dirty[1]&1&&d&&B&&e.setClientStyling(B,d),l.$$.dirty[0]&2|l.$$.dirty[1]&2&&i&&B&&e.setClientStylingURL(B,i),l.$$.dirty[0]&2|l.$$.dirty[1]&4&&p&&B&&e.setStreamStyling(B,`${p}.Style`),l.$$.dirty[1]&8&&u&&ne(),l.$$.dirty[1]&72&&u&&O&&N(),l.$$.dirty[0]&1|l.$$.dirty[1]&128&&t(18,a=v&&(!E[v]||E[v]===0)),l.$$.dirty[0]&1|l.$$.dirty[1]&128&&t(17,r=v&&E[v]||0)},[v,B,g,f,w,k,D,I,T,U,Y,q,J,Q,V,W,$,r,a,o,te,F,z,Oe,Ee,ce,de,Se,xe,ue,C,d,i,p,u,b,_,O,E,Ae,Ie,Re,ze,Pe,De]}class Ce extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,at,lt,e.safe_not_equal,{clientstyling:31,clientstylingurl:32,mbsource:33,lang:34,endpoint:35,session:36,translationurl:37,templateid:30},Fe,[-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(Ce,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},session:{},translationurl:{},templateid:{}},[],[],!0);exports.default=Ce;
|