@everymatrix/cashier-page 1.87.26 → 1.87.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/components/{CashierCarousel-DsekS1gS.js → CashierCarousel-BS_3salc.js} +1328 -1321
  2. package/components/CashierCarousel-BhLbwlL5.js +5736 -0
  3. package/components/CashierCarousel-Bwhda3Gl.js +5774 -0
  4. package/components/CashierCarousel-CfPrrhkY.cjs +23 -0
  5. package/components/{CashierCarousel-BJw_SNG2.js → CashierCarousel-CyAfjImL.js} +1172 -1166
  6. package/components/CashierCarousel-GM1WPyu3.cjs +23 -0
  7. package/components/CashierError-BN1XW0cs.cjs +1 -0
  8. package/components/{CashierError-B1WXlDdK.js → CashierError-CDBKwx0N.js} +212 -206
  9. package/components/{CashierError-40KPQU2s.js → CashierError-CV6Kq3fN.js} +212 -206
  10. package/components/CashierError-CXcO-Kju.js +415 -0
  11. package/components/CashierError-CXwvUOLy.js +415 -0
  12. package/components/CashierError-D4Au4WNB.cjs +1 -0
  13. package/components/{CashierHeader-BZvqRar_.js → CashierHeader-BgAqvq1Q.js} +74 -81
  14. package/components/CashierHeader-BhGRQhkm.cjs +1 -0
  15. package/components/CashierHeader-C_Mz7ISU.js +397 -0
  16. package/components/CashierHeader-CaV1gcjZ.js +397 -0
  17. package/components/CashierHeader-CmAjJv-w.cjs +1 -0
  18. package/components/{CashierHeader-BfpTyZmQ.js → CashierHeader-DRj1BUdj.js} +78 -85
  19. package/components/{CashierIframeRedirect-CyI4soMo.js → CashierIframeRedirect-7uZKKZOy.js} +68 -68
  20. package/components/CashierIframeRedirect-B76kjw0o.js +389 -0
  21. package/components/{CashierIframeRedirect-DBSuyK9E.cjs → CashierIframeRedirect-BU-0tKNo.cjs} +1 -1
  22. package/components/{CashierIframeRedirect-2CfxTUrh.js → CashierIframeRedirect-BkvkX6Ih.js} +68 -68
  23. package/components/CashierIframeRedirect-Ddt7NW02.cjs +1 -0
  24. package/components/CashierIframeRedirect-DmvuwOL2.js +389 -0
  25. package/components/{CashierMethodDetails-U6L33HpX.cjs → CashierMethodDetails-BEykktuA.cjs} +4 -4
  26. package/components/CashierMethodDetails-BX_W3rwH.js +9887 -0
  27. package/components/{CashierMethodDetails-CuQYMgbw.js → CashierMethodDetails-Bdko0TrB.js} +1574 -1574
  28. package/components/{CashierMethodDetails-DFXMp3df.js → CashierMethodDetails-C0EaNINa.js} +1611 -1611
  29. package/components/CashierMethodDetails-DmvyMFjk.cjs +85 -0
  30. package/components/CashierMethodDetails-i7grZPp4.js +9927 -0
  31. package/components/CashierMethodsList-B6tMxcnh.js +794 -0
  32. package/components/{CashierMethodsList-tRbJ56Bk.js → CashierMethodsList-CRWXDpa-.js} +263 -263
  33. package/components/{CashierMethodsList-CshlP6d7.js → CashierMethodsList-CVSYKCiY.js} +153 -153
  34. package/components/CashierMethodsList-DSq72RRw.js +809 -0
  35. package/components/CashierMethodsList-GOTxtR6r.cjs +1 -0
  36. package/components/CashierMethodsList-LHoZgwVR.cjs +1 -0
  37. package/components/{CashierModal-BCs-hvy-.js → CashierModal-B7N_nPHW.js} +162 -146
  38. package/components/CashierModal-C845c3D0.cjs +1 -0
  39. package/components/CashierModal-CTYxaPKG.js +366 -0
  40. package/components/{CashierModal-DdvNZLqY.cjs → CashierModal-Cd1uDEwu.cjs} +1 -1
  41. package/components/{CashierModal-Cyn1bRtX.js → CashierModal-KhxltwKt.js} +123 -139
  42. package/components/CashierModal-ndVMjksn.js +382 -0
  43. package/components/{CashierNotifications-CkRmBcgx.js → CashierNotifications-BmarDqdP.js} +34 -34
  44. package/components/{CashierNotifications-DfV8x-rA.js → CashierNotifications-Bp4KJnpm.js} +34 -34
  45. package/components/CashierNotifications-D4fUbROm.js +129 -0
  46. package/components/CashierNotifications-JNstA5Yb.js +129 -0
  47. package/components/{CashierNotifications-B93HkTiJ.cjs → CashierNotifications-bGhd7Jsw.cjs} +1 -1
  48. package/components/CashierNotifications-tfTPEiSk.cjs +1 -0
  49. package/components/CashierPage-4nTfbT_j.js +3994 -0
  50. package/components/{CashierPage--A8w0jWY.js → CashierPage-BSByd5RU.js} +79 -79
  51. package/components/CashierPage-Bd71Nhaq.js +4020 -0
  52. package/components/CashierPage-CHtYMgc0.cjs +1 -0
  53. package/components/{CashierPage-DJxPlCxY.js → CashierPage-CZ4TSJkx.js} +81 -81
  54. package/components/{CashierPage-kf1tVNZU.cjs → CashierPage-DfrmhWzm.cjs} +1 -1
  55. package/components/{CashierReceiptPage-CZbWQvvv.js → CashierReceiptPage-BD3aDt3T.js} +492 -492
  56. package/components/{CashierReceiptPage-Bp7jFvov.cjs → CashierReceiptPage-BQpEnTyU.cjs} +2 -2
  57. package/components/CashierReceiptPage-CnyLmUmL.js +1694 -0
  58. package/components/CashierReceiptPage-DV7Iz4wR.js +1690 -0
  59. package/components/{CashierReceiptPage-CofNGFj1.js → CashierReceiptPage-DgxlKvM2.js} +518 -518
  60. package/components/CashierReceiptPage-HRthn--H.cjs +28 -0
  61. package/components/CashierSessionExpirationModal-B98EEWed.js +1198 -0
  62. package/components/CashierSessionExpirationModal-CYcBByMT.cjs +2 -0
  63. package/components/CashierSessionExpirationModal-Ckhir3qN.cjs +2 -0
  64. package/components/{CashierSessionExpirationModal-Ckh0MnJn.js → CashierSessionExpirationModal-CvYI4jUg.js} +129 -128
  65. package/components/CashierSessionExpirationModal-D6FwiFE-.js +1198 -0
  66. package/components/{CashierSessionExpirationModal-CqqS70E7.js → CashierSessionExpirationModal-DM8-SPd3.js} +131 -130
  67. package/components/CashierSpinner-C0P8ZCtD.js +78 -0
  68. package/components/{CashierSpinner-BTDAq-Gk.js → CashierSpinner-CeX51xPH.js} +17 -17
  69. package/components/CashierSpinner-CikMZBzw.cjs +1 -0
  70. package/components/CashierSpinner-DJTUb5NI.js +78 -0
  71. package/components/{CashierSpinner-yhu6RHaO.cjs → CashierSpinner-ODmoTC6W.cjs} +1 -1
  72. package/components/{CashierSpinner-C8tFNM39.js → CashierSpinner-a2VW8q1r.js} +17 -17
  73. package/components/CashierStepUp-5um8gbUX.js +1068 -0
  74. package/components/{CashierStepUp-CHNRsm-i.js → CashierStepUp-Bk5fP7qd.js} +243 -243
  75. package/components/CashierStepUp-CjnvqYJo.cjs +1 -0
  76. package/components/CashierStepUp-CxawlCYf.cjs +1 -0
  77. package/components/CashierStepUp-CyO7gmgP.js +1107 -0
  78. package/components/{CashierStepUp-BTxHmTK2.js → CashierStepUp-DS-UsgrI.js} +294 -294
  79. package/components/CashierTransactionHistory-5JNtVHcj.js +1305 -0
  80. package/components/{CashierTransactionHistory-HclQq8wA.cjs → CashierTransactionHistory-Bwc0I09a.cjs} +1 -1
  81. package/components/CashierTransactionHistory-Cm3ikVPK.js +1305 -0
  82. package/components/CashierTransactionHistory-CmgO6bXN.cjs +1 -0
  83. package/components/{CashierTransactionHistory-DTAdYC2Y.js → CashierTransactionHistory-CoqckbJ2.js} +231 -231
  84. package/components/{CashierTransactionHistory-Bd7CEoaj.js → CashierTransactionHistory-DO6C0I1a.js} +420 -420
  85. package/components/{CashierVerifications-fPErTC9e.js → CashierVerifications-B8fkVYVD.js} +88 -88
  86. package/components/CashierVerifications-BmZYiJaN.js +578 -0
  87. package/components/{CashierVerifications-b9Eeag80.js → CashierVerifications-CuX4vrPf.js} +95 -95
  88. package/components/CashierVerifications-DkayuISY.cjs +1 -0
  89. package/components/CashierVerifications-hID6hjDs.js +582 -0
  90. package/components/{CashierVerifications--VdCm0A0.cjs → CashierVerifications-mSpdNrML.cjs} +1 -1
  91. package/components/{TxnStatusIcon-Dm5lj3fd.js → TxnStatusIcon-BDnNMhFD.js} +19 -19
  92. package/components/{TxnStatusIcon-DRLLqFXC.js → TxnStatusIcon-BZMSpoHv.js} +19 -19
  93. package/components/{TxnStatusIcon-C8lEFNJK.cjs → TxnStatusIcon-C8bPyggx.cjs} +1 -1
  94. package/components/TxnStatusIcon-HrmfQdAc.js +142 -0
  95. package/components/TxnStatusIcon-Le-TBKNh.cjs +1 -0
  96. package/components/TxnStatusIcon-VvYGYLio.js +142 -0
  97. package/components/{TxnTypeIcons-CFpm5fsz.cjs → TxnTypeIcons-Cc7Yt6gg.cjs} +1 -1
  98. package/components/{TxnTypeIcons-B32Qcanf.js → TxnTypeIcons-DZRNYWUy.js} +14 -14
  99. package/components/{TxnTypeIcons-Dwfdotxd.js → TxnTypeIcons-__im0AE_.js} +14 -14
  100. package/components/TxnTypeIcons-lKki7AUK.js +101 -0
  101. package/components/TxnTypeIcons-sZUo9qa8.cjs +1 -0
  102. package/components/TxnTypeIcons-zM86UKOx.js +101 -0
  103. package/es2015/cashier-page.cjs +1 -1
  104. package/es2015/cashier-page.js +1 -1
  105. package/esnext/cashier-page.js +1 -1
  106. package/package.json +1 -1
  107. package/stencil/index-97d17652-DvplcHtm.js +558 -0
  108. package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
  109. package/stencil/index-97d17652-p-iQtjus.js +542 -0
  110. package/stencil/index-b2193545-Bvpy7mp9.js +503 -0
  111. package/stencil/index-b2193545-DxDmFccl.js +519 -0
  112. package/stencil/index-b2193545-P1qvDl70.cjs +1 -0
  113. package/stencil/{ui-image-CNaRr0ax.js → ui-image-BIr_PDb-.js} +1 -1
  114. package/stencil/{ui-image-IJc7Zz_R.cjs → ui-image-CEbrFHSD.cjs} +1 -1
  115. package/stencil/{ui-image-BsYHwNhO.js → ui-image-D69wsX4B.js} +1 -1
  116. package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
  117. package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
  118. package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
  119. package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BESQEo1l.js} +2 -2
  120. package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BfZmduAK.js} +2 -2
  121. package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
  122. package/stencil/{ui-skeleton-UxIIZ8UD.cjs → ui-skeleton-CTOStr1f.cjs} +1 -1
  123. package/stencil/{ui-skeleton-CQ-FgYMx.js → ui-skeleton-UELn0TdO.js} +2 -2
  124. package/stencil/{ui-skeleton-ed169f8f-BEwquWmd.cjs → ui-skeleton-ed169f8f-6tILWWI7.cjs} +1 -1
  125. package/stencil/{ui-skeleton-ed169f8f-BMrkXoR5.js → ui-skeleton-ed169f8f-DU5yFWqG.js} +1 -1
  126. package/stencil/{ui-skeleton-ed169f8f-BNn31z1X.js → ui-skeleton-ed169f8f-DmzkEnLt.js} +1 -1
  127. package/stencil/{ui-skeleton-B9YTz-WD.js → ui-skeleton-i8axfHXy.js} +2 -2
  128. package/components/CashierCarousel-Uqj8lOn9.cjs +0 -23
  129. package/components/CashierError-BOmVvy3N.cjs +0 -1
  130. package/components/CashierHeader-B7XYr24D.cjs +0 -1
  131. package/components/CashierMethodsList-DueBSlwx.cjs +0 -1
  132. package/components/CashierSessionExpirationModal-kLS8veZV.cjs +0 -2
  133. package/components/CashierStepUp-FR5Znqdo.cjs +0 -1
  134. package/stencil/index-97d17652-B6BYeRne.js +0 -542
  135. package/stencil/index-97d17652-BOr4KAqq.js +0 -558
  136. package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
  137. package/stencil/index-b2193545-B5Q7rnAU.cjs +0 -1
  138. package/stencil/index-b2193545-CF_fVoFe.js +0 -519
  139. package/stencil/index-b2193545-DfttkCgg.js +0 -503
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-Uqj8lOn9.cjs"),wt=require("./CashierReceiptPage-Bp7jFvov.cjs"),Me=require("./CashierMethodDetails-U6L33HpX.cjs");function St(i,n){e.addMessages(i,n)}function en(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const At={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"},fr:{sessionExpirationHeader:"Avertissement de session",sessionExpirationTitle:"Votre session est sur le point d’expirer !",sessionExpirationGeneralText:"Votre session se terminera automatiquement dans <b>{second} secondes</b>.",sessionExpirationGeneralButton:"Continuer la session",sessionExpirationLoadingButton:"Traitement en cours...",sessionExpirationEnd:"Terminer la session"}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ft,setPrototypeOf:xt,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:P,seal:J,create:zt}=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,o,r){return n.apply(o,r)});et||(et=function(n,o){return new n(...o)});const Fe=X(Array.prototype.forEach),Ct=X(Array.prototype.pop),Re=X(Array.prototype.push),Ge=X(String.prototype.toLowerCase),qe=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(i){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),l=1;l<o;l++)r[l-1]=arguments[l];return $e(i,n,r)}}function an(i){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return et(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge;xt&&xt(i,null);let r=n.length;for(;r--;){let l=n[r];if(typeof l=="string"){const f=o(l);f!==l&&(tn(n)||(n[r]=f),l=f)}i[l]=!0}return i}function ln(i){for(let n=0;n<i.length;n++)ee(i,n)||(i[n]=null);return i}function ye(i){const n=zt(null);for(const[o,r]of Ft(i))ee(i,o)&&(Array.isArray(r)?n[o]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=ye(r):n[o]=r);return n}function De(i,n){for(;i!==null;){const r=on(i,n);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}i=nn(i)}function o(){return null}return o}const Lt=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"]),Mt=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"]),ze=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]+$/),Gt=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),Wt=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:Gt,IS_SCRIPT_OR_DATA:gn,ATTR_WHITESPACE:_n,DOCTYPE_NAME:Wt,CUSTOM_ELEMENT:En});const Ne={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},yn=function(n,o){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const l="data-tt-policy-suffix";o&&o.hasAttribute(l)&&(r=o.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 i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==Ne.document)return n.isSupported=!1,n;let{document:o}=i;const r=o,l=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:h,Node:w,Element:E,NodeFilter:g,NamedNodeMap:Y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:K,DOMParser:Ee,trustedTypes:U}=i,H=E.prototype,de=De(H,"cloneNode"),te=De(H,"remove"),B=De(H,"nextSibling"),ce=De(H,"childNodes"),V=De(H,"parentNode");if(typeof h=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let d,S="";const{implementation:Q,createNodeIterator:ne,createDocumentFragment:ue,getElementsByTagName:F}=o,{importNode:$}=r;let v={};n.isSupported=typeof Ft=="function"&&typeof V=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:ie,TMPLIT_EXPR:he,DATA_ATTR:q,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:oe,CUSTOM_ELEMENT:be}=Ot;let{IS_ALLOWED_URI:j}=Ot,p=null;const ge=m({},[...Lt,...Ze,...Je,...Ke,...Mt]);let A=null;const _e=m({},[...Rt,...Qe,...kt,...ze]);let _=Object.seal(zt(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,L=!0,Te=!1,G=!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 We=!0,Ce=!1,we={},Se=null;const it=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 ot=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 Vt=m({},[Ue,He,pe],qe);let ve=null;const qt=["application/xhtml+xml","text/html"],Zt="text/html";let R=null,xe=null;const Jt=o.createElement("form"),at=function(t){return t instanceof RegExp||t instanceof Function},Ve=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=qt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,R=ve==="application/xhtml+xml"?qe:Ge,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,qe):Vt,Ye=ee(t,"ADD_URI_SAFE_ATTR")?m(ye(st),t.ADD_URI_SAFE_ATTR,R):st,ot=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):it,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,L=t.ALLOW_DATA_ATTR!==!1,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=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,We=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||Gt,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&&(L=!1),Ie&&(se=!0),we&&(p=m({},Mt),A=[],we.html===!0&&(m(p,Lt),m(A,Rt)),we.svg===!0&&(m(p,Ze),m(A,Qe),m(A,ze)),we.svgFilters===!0&&(m(p,Je),m(A,Qe),m(A,ze)),we.mathMl===!0&&(m(p,Ke),m(A,kt),m(A,ze))),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===it&&(Se=ye(Se)),m(Se,t.FORBID_CONTENTS,R)),We&&(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=V(t);(!s||!s.tagName)&&(s={namespaceURI:Ae,tagName:"template"});const c=Ge(t.tagName),y=Ge(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{V(t).removeChild(t)}catch(s){te(t)}},Be=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(o.createTextNode(c),D.childNodes[0]||null),Ae===pe?F.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]&&Fe(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(We&&!Se[c]){const y=V(t)||t.parentNode,D=ce(t)||t.childNodes;if(D&&y){const k=D.length;for(let W=k-1;W>=0;--W){const le=de(D[W],!0);le.__removalCount=(t.__removalCount||0)+1,y.insertBefore(le,B(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,Fe([z,ie,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 o||c in Jt))return!1;if(!(L&&!T[s]&&I(q,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,oe,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&ot[t])){if(!(Te&&!I(M,ke(c,oe,"")))){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:W,value:le}=D,Le=R(k);let N=k==="value"?le:sn(le);if(c.attrName=Le,c.attrValue=N,c.keepAttr=!0,c.forceKeepAttr=void 0,me("uponSanitizeAttribute",t,c),N=c.attrValue,Z&&I(/((--!?|])>)|<\/(style|title)/i,N)){Be(k,t);continue}if(c.forceKeepAttr||(Be(k,t),!c.keepAttr))continue;if(!G&&I(/\/>/i,N)){Be(k,t);continue}fe&&Fe([z,ie,he],bt=>{N=ke(N,bt," ")});const yt=R(t.nodeName);if(_t(yt,Le,N)){if(nt&&(Le==="id"||Le==="name")&&(Be(k,t),N=Xt+N),d&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!W)switch(U.getAttributeType(yt,Le)){case"TrustedHTML":{N=d.createHTML(N);break}case"TrustedScriptURL":{N=d.createScriptURL(N);break}}try{W?t.setAttributeNS(W,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||Ve(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 W=re?s.outerHTML:s.innerHTML;return re&&p["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&I(Wt,s.ownerDocument.doctype.name)&&(W="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
2
- `+W),fe&&Fe([z,ie,he],le=>{W=ke(W,le," ")}),d&&Pe?d.createHTML(W):W},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ve(u),b=!0},n.clearConfig=function(){xe=null,b=!1},n.isValidAttribute=function(u,t,s){xe||Ve({});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(i){e.append_styles(i,"svelte-1kjup2o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}')}const wn=i=>({}),Nt=i=>({}),Sn=i=>({}),It=i=>({}),An=i=>({}),Pt=i=>({}),xn=i=>({}),Ut=i=>({class:"CashierSessionExpirationIcon"});function Ht(i){let n,o,r,l,f,h,w,E,g,Y,K,Ee,U=i[8]("sessionExpirationHeader")+"",H,de,te,B,ce,V,d,S,Q,ne,ue,F,$,v,z=i[8]("sessionExpirationEnd")+"",ie,he,q,O,M,oe,be,j,p,ge,A;const _e=i[23].icon,_=e.create_slot(_e,i,i[22],Ut),a=_||Cn(i),T=i[23].title,x=e.create_slot(T,i,i[22],Pt),L=i[23].text,Te=e.create_slot(L,i,i[22],It),G=Te||vn(i),fe=[Mn,Ln],Z=[];function re(b,C){return b[6]?0:1}return O=re(i),M=Z[O]=fe[O](i),{c(){n=e.element("div"),o=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"),B=e.svg_element("svg"),ce=e.svg_element("path"),V=e.space(),d=e.element("div"),S=e.element("div"),a&&a.c(),Q=e.space(),x&&x.c(),ne=e.space(),G&&G.c(),ue=e.space(),F=e.element("div"),$=e.element("button"),v=e.element("span"),ie=e.text(z),he=e.space(),q=e.element("button"),M.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(B,"xmlns","http://www.w3.org/2000/svg"),e.attr(B,"viewBox","0 0 13 13"),e.attr(B,"fill","none"),e.attr(B,"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(q,"type","button"),e.attr(q,"class",oe="ModalButton Primary "+(i[6]?"Disabled":"")),e.attr(F,"class","ButtonsContainer"),e.attr(S,"class","CashierSessionExpiration"),e.attr(d,"class","CashierSessionExpirationModalContainer"),e.attr(o,"class","CashierSessionExpirationModalWrapper"),e.attr(n,"class","CashierSessionExpirationModalWindow"),e.attr(n,"id","CashierSessionExpirationModal"),e.add_render_callback(()=>i[25].call(n))},m(b,C){e.insert(b,n,C),e.append(n,o),e.append(o,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,B),e.append(B,ce),e.append(o,V),e.append(o,d),e.append(d,S),a&&a.m(S,null),e.append(S,Q),x&&x.m(S,null),e.append(S,ne),G&&G.m(S,null),e.append(S,ue),e.append(S,F),e.append(F,$),e.append($,v),e.append(v,ie),e.append(F,he),e.append(F,q),Z[O].m(q,null),i[24](S),be=e.add_iframe_resize_listener(n,i[25].bind(n)),p=!0,ge||(A=[e.listen(B,"click",i[11]),e.listen($,"click",i[11]),e.listen(q,"click",i[9]),e.listen(n,"click",i[10])],ge=!0)},p(b,C){i=b,(!p||C[0]&256)&&U!==(U=i[8]("sessionExpirationHeader")+"")&&e.set_data(H,U),_?_.p&&(!p||C[0]&4194304)&&e.update_slot_base(_,_e,i,i[22],p?e.get_slot_changes(_e,i[22],C,xn):e.get_all_dirty_from_scope(i[22]),Ut):a&&a.p&&(!p||C[0]&8)&&a.p(i,p?C:[-1,-1]),x&&x.p&&(!p||C[0]&4194304)&&e.update_slot_base(x,T,i,i[22],p?e.get_slot_changes(T,i[22],C,An):e.get_all_dirty_from_scope(i[22]),Pt),Te?Te.p&&(!p||C[0]&4194304)&&e.update_slot_base(Te,L,i,i[22],p?e.get_slot_changes(L,i[22],C,Sn):e.get_all_dirty_from_scope(i[22]),It):G&&G.p&&(!p||C[0]&384)&&G.p(i,p?C:[-1,-1]),(!p||C[0]&256)&&z!==(z=i[8]("sessionExpirationEnd")+"")&&e.set_data(ie,z);let se=O;O=re(i),O===se?Z[O].p(i,C):(e.group_outros(),e.transition_out(Z[se],1,1,()=>{Z[se]=null}),e.check_outros(),M=Z[O],M?M.p(i,C):(M=Z[O]=fe[O](i),M.c()),e.transition_in(M,1),M.m(q,null)),(!p||C[0]&64&&oe!==(oe="ModalButton Primary "+(i[6]?"Disabled":"")))&&e.attr(q,"class",oe)},i(b){p||(e.transition_in(a,b),e.transition_in(x,b),e.transition_in(G,b),e.transition_in(M),b&&e.add_render_callback(()=>{p&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:i[2]},!0)),j.run(1))}),p=!0)},o(b){e.transition_out(a,b),e.transition_out(x,b),e.transition_out(G,b),e.transition_out(M),b&&(j||(j=e.create_bidirectional_transition(n,wt.fade,{duration:i[2]},!1)),j.run(0)),p=!1},d(b){b&&e.detach(n),a&&a.d(b),x&&x.d(b),G&&G.d(b),Z[O].d(),i[24](null),be(),b&&j&&j.end(),ge=!1,e.run_all(A)}}}function Bt(i){let n,o;return{c(){n=e.element("img"),e.src_url_equal(n.src,o=`${i[3]}/set-timeout-icon.png`)||e.attr(n,"src",o),e.attr(n,"width","300px"),e.attr(n,"alt","error")},m(r,l){e.insert(r,n,l)},p(r,l){l[0]&8&&!e.src_url_equal(n.src,o=`${r[3]}/set-timeout-icon.png`)&&e.attr(n,"src",o)},d(r){r&&e.detach(n)}}}function Cn(i){let n,o=i[3]&&Bt(i);return{c(){o&&o.c(),n=e.empty()},m(r,l){o&&o.m(r,l),e.insert(r,n,l)},p(r,l){r[3]?o?o.p(r,l):(o=Bt(r),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(r){r&&e.detach(n),o&&o.d(r)}}}function vn(i){let n,o,r=i[8]("sessionExpirationTitle")+"",l,f,h,w=Dt.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=e.element("span"),o=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,o),e.append(o,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 Ln(i){let n;const o=i[23].button,r=e.create_slot(o,i,i[22],Nt),l=r||Rn(i);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,o,f,f[22],n?e.get_slot_changes(o,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 Mn(i){let n,o,r,l,f,h=i[8]("sessionExpirationLoadingButton")+"",w;return{c(){n=e.element("div"),o=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(o,"class","CashierSessionExpirationButtonSpinner"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","15"),e.attr(o,"height","14"),e.attr(o,"viewBox","0 0 15 14"),e.attr(o,"fill","none"),e.attr(f,"class","CashierSessionExpirationButtonText")},m(E,g){e.insert(E,n,g),e.append(n,o),e.append(o,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(i){let n,o=i[8]("sessionExpirationGeneralButton")+"",r;return{c(){n=e.element("span"),r=e.text(o),e.attr(n,"class","CashierSessionExpirationButtonText")},m(l,f){e.insert(l,n,f),e.append(n,r)},p(l,f){f[0]&256&&o!==(o=l[8]("sessionExpirationGeneralButton")+"")&&e.set_data(r,o)},d(l){l&&e.detach(n)}}}function kn(i){let n,o,r=i[5]&&Ht(i);return{c(){n=e.element("div"),r&&r.c()},m(l,f){e.insert(l,n,f),r&&r.m(n,null),i[26](n),o=!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){o||(e.transition_in(r),o=!0)},o(l){e.transition_out(r),o=!1},d(l){l&&e.detach(n),r&&r.d(),i[26](null)}}}const On=90;function Dn(i,n,o){let r,l;e.component_subscribe(i,Me.xPaymentSessionToken,a=>o(21,r=a)),e.component_subscribe(i,e.$format,a=>o(8,l=a));let{$$slots:f={},$$scope:h}=n;Me.dayjs.extend(Me.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:B}=n,{selectedpaymentmethodname:ce}=n,{mbsource:V=""}=n,d,S=!1,Q=!1,ne,ue,F,$,v;var z;(function(a){a.PlayerSessionIsNotValid="PlayerSessionIsNotValid",a.Success="Success",a.JwtTokenError="JwtTokenError"})(z||(z={}));const ie=a=>{a.data.type==="StartSessionCountdown"&&($=a.data.paymentMethodName)},he=a=>{try{return JSON.parse(atob(a.split(".")[1]))}catch(T){return null}},q=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:v},window.location.href)},O=a=>{o(5,S=!1);const T=he(a);T&&(ue=T==null?void 0:T.exp,o(7,ne=ue),F&&clearInterval(F),F=setInterval(()=>{const x=Math.floor(new Date().getTime()/1e3);o(7,ne=ue-x),ne<=On&&o(5,S=!0),x>=ue&&(M(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},M=()=>{o(7,ne=0),o(5,S=!1),clearInterval(F)},oe=()=>{if(Q)return;const a=new URL(`${de}/v1/player/${B}/payment/GetPaymentMethod`),T=new Headers;o(6,Q=!0),T.append("accept","application/json"),T.append("Content-Type","application/json"),T.append("X-Client-Request-Timestamp",Me.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(L=>L.json()).then(L=>{if(L.error){window.postMessage({type:"ShowSessionError",error:L.error},window.location.href),M();return}if(L.ResponseCode===z.PlayerSessionIsNotValid||L.ResponseCode===z.JwtTokenError){v=L.ResponseCode,M(),q();return}if(L.ResponseCode!==z.Success){v=L.ResponseCode,M();return}L.XPaymentSessionToken&&Me.xPaymentSessionToken.set(L.XPaymentSessionToken)}).finally(()=>o(6,Q=!1))},be=a=>{const T=a.currentTarget;a.target===T&&oe()},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),o(5,S=!1)};Object.keys(At).forEach(a=>{St(a,At[a])});const ge=()=>{en(U)};e.onMount(()=>(window.addEventListener("message",ie,!1),()=>{window.removeEventListener("message",ie)})),e.onDestroy(()=>{clearInterval(F)});function A(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,o(4,d)})}function _e(){g=this.clientWidth,Y=this.clientHeight,o(0,g),o(1,Y)}function _(a){e.binding_callbacks[a?"unshift":"push"](()=>{d=a,o(4,d)})}return i.$$set=a=>{"clientstyling"in a&&o(12,w=a.clientstyling),"clientstylingurl"in a&&o(13,E=a.clientstylingurl),"width"in a&&o(0,g=a.width),"height"in a&&o(1,Y=a.height),"duration"in a&&o(2,K=a.duration),"assetsurl"in a&&o(3,Ee=a.assetsurl),"lang"in a&&o(14,U=a.lang),"translationurl"in a&&o(15,H=a.translationurl),"endpoint"in a&&o(16,de=a.endpoint),"currency"in a&&o(17,te=a.currency),"customerid"in a&&o(18,B=a.customerid),"selectedpaymentmethodname"in a&&o(19,ce=a.selectedpaymentmethodname),"mbsource"in a&&o(20,V=a.mbsource),"$$scope"in a&&o(22,h=a.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2097152&&O(r),i.$$.dirty[0]&16384&&U&&ge(),i.$$.dirty[0]&4112&&w&&d&&e.setClientStyling(d,w),i.$$.dirty[0]&8208&&E&&d&&e.setClientStylingURL(d,E),i.$$.dirty[0]&1048592&&V&&d&&e.setStreamStyling(d,`${V}.Style`),i.$$.dirty[0]&32768&&H&&j()},[g,Y,K,Ee,d,S,Q,ne,l,oe,be,p,w,E,U,H,de,te,B,ce,V,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 +0,0 @@
1
- "use strict";var je=Object.defineProperty,Ve=Object.defineProperties;var Be=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var he=(a,n,t)=>n in a?je(a,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[n]=t,pe=(a,n)=>{for(var t in n||(n={}))He.call(n,t)&&he(a,t,n[t]);if(me)for(var t of me(n))Ne.call(n,t)&&he(a,t,n[t]);return a},ge=(a,n)=>Ve(a,Be(n));var re=(a,n,t)=>new Promise((r,l)=>{var o=p=>{try{s(t.next(p))}catch(u){l(u)}},d=p=>{try{s(t.throw(p))}catch(u){l(u)}},s=p=>p.done?r(p.value):Promise.resolve(p.value).then(o,d);s((t=t.apply(a,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-Uqj8lOn9.cjs");function _e(a,n){e.addMessages(a,n)}function We(a){e.$locale.set(a)}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, your transaction will fail and you will be returned back to payment method.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resent OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",timeRemaining:"Code expires in:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS",channelEmail:"Email",sendCode:"Send code",waitSeconds:"Please wait for before resending:"},tr:{otpTitle:"Kod doğrulaması gereklidir",popupMessage:"Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",accountBlocked:"OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",submissionError:"Bir şeyler ters gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",timeRemaining:"Kodun süresi doluyor:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS kodu",channelEmail:"E-posta kodu",sendCode:"Kodu gönder",waitSeconds:"Tekrar göndermeden önce lütfen bekleyin:"},fr:{otpTitle:"La vérification par code est requise",popupMessage:"Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d’effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Saisir le code OTP",resendOtp:"Renvoyer le code OTP",submit:"Valider",close:"Fermer",invalidOtp:"Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Une erreur s’est produite. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",timeRemaining:"Le code expire dans :",selectChannelTitle:"Sélectionner la méthode de vérification",selectChannelMessage:"Choisissez comment vous souhaitez recevoir votre code de vérification",channelSMS:"SMS",channelEmail:"E-mail",sendCode:"Envoyer le code",waitSeconds:"Veuillez patienter avant de renvoyer le code :"}};function qe(a){e.append_styles(a,"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(a,n,t){const r=a.slice();return r[69]=n[t],r[70]=n,r[71]=t,r}function Fe(a){let n,t,r,l,o,d,s,p,u,b,_,E,C,g,f,w,v,M=a[19]("channelSMS")+"",B,D,z,T,G,j,F,Y,U,k,O,P,J,Q,Z=a[19]("channelEmail")+"",V,N,R,X,W,$,te;function ee(c,y){return c[9]?Ge:c[12]?Xe:Ke}let ne=ee(a),H=ne(a),L=a[0]&&ve(a);function le(c,y){if(c[3]&&c[12])return et;if(c[12]&&c[4])return $e}let K=le(a),x=K&&K(a);function ie(c,y){if(c[9])return nt;if(c[12]&&c[4])return tt}let q=ie(a),I=q&&q(a);return{c(){n=e.element("div"),H.c(),t=e.space(),r=e.element("div"),l=e.element("label"),o=e.element("div"),d=e.space(),s=e.element("input"),u=e.space(),b=e.element("div"),_=e.svg_element("svg"),E=e.svg_element("path"),C=e.svg_element("circle"),g=e.svg_element("circle"),f=e.svg_element("circle"),w=e.space(),v=e.element("span"),B=e.text(M),D=e.space(),z=e.element("label"),T=e.element("div"),G=e.space(),j=e.element("input"),Y=e.space(),U=e.element("div"),k=e.svg_element("svg"),O=e.svg_element("rect"),P=e.svg_element("path"),J=e.space(),Q=e.element("span"),V=e.text(Z),N=e.space(),L&&L.c(),R=e.space(),x&&x.c(),X=e.space(),W=e.element("div"),I&&I.c(),e.attr(n,"class","OtpDescription"),e.attr(o,"class","RadioIndicator"),e.toggle_class(o,"checked",a[0]===a[20].SMS),e.attr(s,"type","radio"),e.attr(s,"name","channel"),s.value=a[20].SMS,s.checked=p=a[0]===a[20].SMS,e.attr(E,"d","M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"),e.attr(C,"cx","9"),e.attr(C,"cy","11"),e.attr(C,"r","0.5"),e.attr(C,"fill","currentColor"),e.attr(g,"cx","12"),e.attr(g,"cy","11"),e.attr(g,"r","0.5"),e.attr(g,"fill","currentColor"),e.attr(f,"cx","15"),e.attr(f,"cy","11"),e.attr(f,"r","0.5"),e.attr(f,"fill","currentColor"),e.attr(_,"xmlns","http://www.w3.org/2000/svg"),e.attr(_,"width","24"),e.attr(_,"height","24"),e.attr(_,"viewBox","0 0 24 24"),e.attr(_,"fill","none"),e.attr(_,"stroke","currentColor"),e.attr(_,"stroke-width","2"),e.attr(_,"stroke-linecap","round"),e.attr(_,"stroke-linejoin","round"),e.attr(b,"class","ChannelContent"),e.attr(l,"class","ChannelCheckbox"),e.toggle_class(l,"selected",a[0]===a[20].SMS),e.attr(T,"class","RadioIndicator"),e.toggle_class(T,"checked",a[0]===a[20].EMAIL),e.attr(j,"type","radio"),e.attr(j,"name","channel"),j.value=a[20].EMAIL,j.checked=F=a[0]===a[20].EMAIL,e.attr(O,"x","2"),e.attr(O,"y","4"),e.attr(O,"width","20"),e.attr(O,"height","16"),e.attr(O,"rx","2"),e.attr(P,"d","m2 7 10 6 10-6"),e.attr(k,"xmlns","http://www.w3.org/2000/svg"),e.attr(k,"width","24"),e.attr(k,"height","24"),e.attr(k,"viewBox","0 0 24 24"),e.attr(k,"fill","none"),e.attr(k,"stroke","currentColor"),e.attr(k,"stroke-width","2"),e.attr(k,"stroke-linecap","round"),e.attr(k,"stroke-linejoin","round"),e.attr(U,"class","ChannelContent"),e.attr(z,"class","ChannelCheckbox"),e.toggle_class(z,"selected",a[0]===a[20].EMAIL),e.attr(r,"class","ChannelSelection"),e.attr(W,"class","OtpActionButtons")},m(c,y){e.insert(c,n,y),H.m(n,null),e.insert(c,t,y),e.insert(c,r,y),e.append(r,l),e.append(l,o),e.append(l,d),e.append(l,s),e.append(l,u),e.append(l,b),e.append(b,_),e.append(_,E),e.append(_,C),e.append(_,g),e.append(_,f),e.append(b,w),e.append(b,v),e.append(v,B),e.append(r,D),e.append(r,z),e.append(z,T),e.append(z,G),e.append(z,j),e.append(z,Y),e.append(z,U),e.append(U,k),e.append(k,O),e.append(k,P),e.append(U,J),e.append(U,Q),e.append(Q,V),e.insert(c,N,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),I&&I.m(W,null),$||(te=[e.listen(s,"change",a[39]),e.listen(j,"change",a[40])],$=!0)},p(c,y){ne===(ne=ee(c))&&H?H.p(c,y):(H.d(1),H=ne(c),H&&(H.c(),H.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)&&(s.checked=p),y[0]&524288&&M!==(M=c[19]("channelSMS")+"")&&e.set_data(B,M),y[0]&1048577&&e.toggle_class(l,"selected",c[0]===c[20].SMS),y[0]&1048577&&e.toggle_class(T,"checked",c[0]===c[20].EMAIL),y[0]&1&&F!==(F=c[0]===c[20].EMAIL)&&(j.checked=F),y[0]&524288&&Z!==(Z=c[19]("channelEmail")+"")&&e.set_data(V,Z),y[0]&1048577&&e.toggle_class(z,"selected",c[0]===c[20].EMAIL),c[0]?L?L.p(c,y):(L=ve(c),L.c(),L.m(R.parentNode,R)):L&&(L.d(1),L=null),K===(K=le(c))&&x?x.p(c,y):(x&&x.d(1),x=K&&K(c),x&&(x.c(),x.m(X.parentNode,X))),q===(q=ie(c))&&I?I.p(c,y):(I&&I.d(1),I=q&&q(c),I&&(I.c(),I.m(W,null)))},d(c){c&&(e.detach(n),e.detach(t),e.detach(r),e.detach(N),e.detach(R),e.detach(X),e.detach(W)),H.d(),L&&L.d(c),x&&x.d(c),I&&I.d(),$=!1,e.run_all(te)}}}function Ue(a){let n,t,r,l,o,d,s=a[19]("errorHeader")+"",p,u,b,_,E,C,g=a[19]("close")+"",f,w,v;return{c(){n=e.element("div"),t=e.element("div"),r=e.svg_element("svg"),l=e.svg_element("path"),o=e.space(),d=e.element("h2"),p=e.text(s),u=e.space(),b=e.element("p"),_=e.text(a[8]),E=e.space(),C=e.element("button"),f=e.text(g),e.attr(l,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(r,"viewBox","0 0 512 512"),e.attr(t,"class","OtpErrorHeader"),e.attr(C,"class","OtpButton error"),e.attr(n,"class","OtpError")},m(M,B){e.insert(M,n,B),e.append(n,t),e.append(t,r),e.append(r,l),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,E),e.append(n,C),e.append(C,f),w||(v=e.listen(C,"click",a[28]),w=!0)},p(M,B){B[0]&524288&&s!==(s=M[19]("errorHeader")+"")&&e.set_data(p,s),B[0]&256&&e.set_data(_,M[8]),B[0]&524288&&g!==(g=M[19]("close")+"")&&e.set_data(f,g)},d(M){M&&e.detach(n),w=!1,v()}}}function Xe(a){let n,t,r,l;function o(u,b){return u[10]?Je:Ye}let d=o(a),s=d(a),p=a[6]&&ye(a);return{c(){n=e.element("p"),s.c(),r=e.space(),p&&p.c(),l=e.empty(),e.attr(n,"class",t=a[10]?"LastWarningMessage":"")},m(u,b){e.insert(u,n,b),s.m(n,null),e.insert(u,r,b),p&&p.m(u,b),e.insert(u,l,b)},p(u,b){d===(d=o(u))&&s?s.p(u,b):(s.d(1),s=d(u),s&&(s.c(),s.m(n,null))),b[0]&1024&&t!==(t=u[10]?"LastWarningMessage":"")&&e.attr(n,"class",t),u[6]?p?p.p(u,b):(p=ye(u),p.c(),p.m(l.parentNode,l)):p&&(p.d(1),p=null)},d(u){u&&(e.detach(n),e.detach(r),e.detach(l)),s.d(),p&&p.d(u)}}}function Ke(a){let n,t=(a[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",r;return{c(){n=e.element("p"),r=e.text(t)},m(l,o){e.insert(l,n,o),e.append(n,r)},p(l,o){o[0]&524288&&t!==(t=(l[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&e.set_data(r,t)},d(l){l&&e.detach(n)}}}function Ge(a){let n,t=a[19]("otpExpiredMessage")+"",r;return{c(){n=e.element("p"),r=e.text(t),e.attr(n,"class","OtpNoticeMessage"),e.attr(n,"role","alert")},m(l,o){e.insert(l,n,o),e.append(n,r)},p(l,o){o[0]&524288&&t!==(t=l[19]("otpExpiredMessage")+"")&&e.set_data(r,t)},d(l){l&&e.detach(n)}}}function Ye(a){let n=a[19]("popupMessage")+"",t;return{c(){t=e.text(n)},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&524288&&n!==(n=r[19]("popupMessage")+"")&&e.set_data(t,n)},d(r){r&&e.detach(t)}}}function Je(a){let n=a[19]("popupMessageLastWarning")+"",t;return{c(){t=e.text(n)},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&524288&&n!==(n=r[19]("popupMessageLastWarning")+"")&&e.set_data(t,n)},d(r){r&&e.detach(t)}}}function ye(a){let n,t;return{c(){n=e.element("p"),t=e.text(a[8]),e.attr(n,"class","OtpErrorMessage"),e.attr(n,"role","alert")},m(r,l){e.insert(r,n,l),e.append(n,t)},p(r,l){l[0]&256&&e.set_data(t,r[8])},d(r){r&&e.detach(n)}}}function ve(a){let n,t,r,l;function o(p,u){return p[17]>0?Ze:Qe}let d=o(a),s=d(a);return{c(){n=e.element("button"),s.c(),e.attr(n,"class","OtpButton"),n.disabled=t=!a[18],e.toggle_class(n,"disabled",!a[18]||a[16])},m(p,u){e.insert(p,n,u),s.m(n,null),r||(l=e.listen(n,"click",a[22]),r=!0)},p(p,u){d===(d=o(p))&&s?s.p(p,u):(s.d(1),s=d(p),s&&(s.c(),s.m(n,null))),u[0]&262144&&t!==(t=!p[18])&&(n.disabled=t),u[0]&327680&&e.toggle_class(n,"disabled",!p[18]||p[16])},d(p){p&&e.detach(n),s.d(),r=!1,l()}}}function Qe(a){let n=a[19]("sendCode")+"",t;return{c(){t=e.text(n)},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&524288&&n!==(n=r[19]("sendCode")+"")&&e.set_data(t,n)},d(r){r&&e.detach(t)}}}function Ze(a){let n=a[19]("waitSeconds")+"",t,r,l,o;return{c(){t=e.text(n),r=e.text(" ("),l=e.text(a[17]),o=e.text("s)")},m(d,s){e.insert(d,t,s),e.insert(d,r,s),e.insert(d,l,s),e.insert(d,o,s)},p(d,s){s[0]&524288&&n!==(n=d[19]("waitSeconds")+"")&&e.set_data(t,n),s[0]&131072&&e.set_data(l,d[17])},d(d){d&&(e.detach(t),e.detach(r),e.detach(l),e.detach(o))}}}function $e(a){let n,t,r=a[19]("timeRemaining")+"",l,o,d=a[23](a[5])+"",s,p,u=a[19]("minutes")+"",b,_,E,C=e.ensure_array_like(a[2]),g=[];for(let f=0;f<C.length;f+=1)g[f]=ke(we(a,C,f));return{c(){n=e.element("div"),t=e.element("div"),l=e.text(r),o=e.space(),s=e.text(d),p=e.space(),b=e.text(u),_=e.space(),E=e.element("div");for(let f=0;f<g.length;f+=1)g[f].c();e.attr(t,"class","OtpTimer"),e.attr(E,"class","OtpField"),e.attr(n,"class","OtpFieldWrapper")},m(f,w){e.insert(f,n,w),e.append(n,t),e.append(t,l),e.append(t,o),e.append(t,s),e.append(t,p),e.append(t,b),e.append(n,_),e.append(n,E);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(E,null)},p(f,w){if(w[0]&524288&&r!==(r=f[19]("timeRemaining")+"")&&e.set_data(l,r),w[0]&32&&d!==(d=f[23](f[5])+"")&&e.set_data(s,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 v;for(v=0;v<C.length;v+=1){const M=we(f,C,v);g[v]?g[v].p(M,w):(g[v]=ke(M),g[v].c(),g[v].m(E,null))}for(;v<g.length;v+=1)g[v].d(1);g.length=C.length}},d(f){f&&e.detach(n),e.destroy_each(g,f)}}}function et(a){let n;return{c(){n=e.element("div"),n.innerHTML='<span class="OtpLoader"></span>',e.attr(n,"class","OtpLoaderContainer")},m(t,r){e.insert(t,n,r)},p:e.noop,d(t){t&&e.detach(n)}}}function ke(a){let n,t,r,l=a[71],o,d;const s=()=>a[41](n,l),p=()=>a[41](null,l);function u(..._){return a[42](a[71],..._)}function b(..._){return a[43](a[71],..._)}return{c(){n=e.element("input"),e.attr(n,"id",`otp-input-${a[71]}`),e.attr(n,"type","text"),e.attr(n,"class",t=`otp-box ${a[4].inputLength%2===0&&a[71]===a[4].inputLength/2-1?"space":""}`),e.attr(n,"maxlength",1),n.value=r=a[69],e.attr(n,"inputmode","numeric"),n.disabled=a[11],e.attr(n,"autocomplete","off")},m(_,E){e.insert(_,n,E),s(),o||(d=[e.listen(n,"input",u),e.listen(n,"keydown",b),e.listen(n,"paste",a[24])],o=!0)},p(_,E){a=_,E[0]&16&&t!==(t=`otp-box ${a[4].inputLength%2===0&&a[71]===a[4].inputLength/2-1?"space":""}`)&&e.attr(n,"class",t),E[0]&4&&r!==(r=a[69])&&n.value!==r&&(n.value=r),E[0]&2048&&(n.disabled=a[11]),l!==a[71]&&(p(),l=a[71],s())},d(_){_&&e.detach(n),p(),o=!1,e.run_all(d)}}}function tt(a){let n,t=a[19]("submit")+"",r,l,o,d;return{c(){n=e.element("button"),r=e.text(t),e.attr(n,"class","OtpButton"),n.disabled=l=a[2].join("").length!==a[4].inputLength||a[13]||a[15]},m(s,p){e.insert(s,n,p),e.append(n,r),o||(d=e.listen(n,"click",a[29]),o=!0)},p(s,p){p[0]&524288&&t!==(t=s[19]("submit")+"")&&e.set_data(r,t),p[0]&40980&&l!==(l=s[2].join("").length!==s[4].inputLength||s[13]||s[15])&&(n.disabled=l)},d(s){s&&e.detach(n),o=!1,d()}}}function nt(a){let n,t=a[19]("resendOtp")+"",r,l,o;return{c(){n=e.element("button"),r=e.text(t),e.attr(n,"class","OtpButton")},m(d,s){e.insert(d,n,s),e.append(n,r),l||(o=e.listen(n,"click",a[27]),l=!0)},p(d,s){s[0]&524288&&t!==(t=d[19]("resendOtp")+"")&&e.set_data(r,t)},d(d){d&&e.detach(n),l=!1,o()}}}function at(a){let n;function t(o,d){return o[7]?Ue:Fe}let r=t(a),l=r(a);return{c(){n=e.element("div"),l.c(),e.attr(n,"class","OtpContent")},m(o,d){e.insert(o,n,d),l.m(n,null),a[44](n)},p(o,d){r===(r=t(o))&&l?l.p(o,d):(l.d(1),l=r(o),l&&(l.c(),l.m(n,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(n),l.d(),a[44](null)}}}function rt(a,n,t){let r,l,o;e.component_subscribe(a,e.$format,i=>t(19,o=i));let{clientstyling:d=""}=n,{clientstylingurl:s=""}=n,{mbsource:p}=n,{lang:u="en"}=n,{endpoint:b}=n,{session:_}=n,{translationurl:E}=n,{templateid:C}=n,g=[],f=!0,w=null,v=0,M="",B="",D=!1,z=!1,T="",G="",j="",F=!1,Y=!1,U=!1,k="",O={},P=null,J=!1,Q=!1,Z="",V,N=[],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(i=>{_e(i,be[i])});const ne=()=>{We(u)},H=()=>{fetch(E).then(i=>i.json()).then(i=>{Object.keys(i).forEach(m=>{_e(m,i[m])})}).catch(i=>{console.log(i)})},L=i=>re(this,null,function*(){var m;if((m=i.detail)!=null&&m["x-step-up-required"]){if(t(7,z=!1),t(6,D=!1),t(8,T=""),G=i.detail["x-step-up-token"],j=i.detail.flow,!G||!j){t(3,f=!1),t(7,z=!0),t(8,T=o("configError"));return}t(12,J=!1),t(3,f=!1)}}),le=()=>{R&&(clearInterval(R),R=null),P&&(clearInterval(P),P=null),t(6,D=!1),t(7,z=!1),t(8,T=""),t(10,Y=!1),t(2,g=[]),t(4,w=null),t(3,f=!0),t(0,k=""),t(12,J=!1),t(38,O={})},K=()=>{le()},x=()=>new Promise((i,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 ae={method:"PATCH",headers:S,body:JSON.stringify({channel:k,templateId:C})};fetch(h,ae).then(fe=>fe.json()).then(()=>{t(15,W=!1),c(),y(),i()}).catch(fe=>{m()})}),ie=()=>{P&&clearInterval(P),P=setInterval(()=>{const i=pe({},O);let m=!1;Object.keys(i).forEach(h=>{i[h]>0&&(i[h]--,m=!0)}),t(38,O=i),!m&&P&&(clearInterval(P),P=null)},1e3)},q=i=>{t(0,k=i)},I=()=>re(this,null,function*(){if(!(!k||O[k]&&O[k]>0)){t(3,f=!0),C&&C.startsWith("2fa-")&&t(30,C=`2fa-${k}`);try{yield x(),yield oe(),t(38,O=ge(pe({},O),{[k]:30})),ie(),t(12,J=!0),c(),y()}catch(i){console.error("Error submitting channel:",i),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}}),c=()=>{const i=new Date(M),m=new Date(B),h=new Date,S=m.getTime()-h.getTime();X=i.getTime()-S;const A=Date.now(),ae=Math.max(0,Math.floor((X-A)/1e3));t(5,v=ae)},y=()=>{R&&clearInterval(R),R=setInterval(()=>{const i=Date.now(),m=Math.max(0,Math.floor((X-i)/1e3));t(5,v=m),t(11,U=m<=0),m<=0&&(clearInterval(R),R=null,t(9,F=!0),t(6,D=!1),t(10,Y=!1))},1e3)},Ee=i=>{const m=Math.floor(i/60),h=i%60;return`${m.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`},se=(i,m)=>{const h=[...g];h[i]=m.toUpperCase(),t(2,g=h),h.join("")!==Z&&t(13,Q=!1)},Oe=i=>{var S,A,ae;i.preventDefault();const h=(((A=(S=i.clipboardData)==null?void 0:S.getData("text"))==null?void 0:A.trim())||"").slice(0,w.inputLength).split("");t(2,g=[...h,...Array(w.inputLength-h.length).fill("")]),(ae=N[h.length])==null||ae.focus(),h.length===w.inputLength&&ue()},ce=(i,m)=>{const h=i.target,S=h.value;if(/^[a-z0-9]$/i.test(S)){se(m,S);const A=N[m+1];A==null||A.focus()}h.value=""},de=(i,m)=>{const h=i.key,S=i.ctrlKey||i.metaKey;if(/^[a-z0-9]$/i.test(h)){if(S&&h.toLowerCase()==="v")return;i.preventDefault(),se(m,h);const A=N[m+1];A==null||A.focus()}else if(h==="Backspace"){i.preventDefault(),g[m]!==""&&se(m,"");const A=N[m-1];A==null||A.focus()}},Se=()=>{j=="stateful"&&(x(),t(9,F=!1));const i=new CustomEvent("otpResendRequested");window.dispatchEvent(i)},Me=i=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:i,maxAttempts:w.maxValidationAttempts,validatedAttempts:w.numberOfValidateAttempts}}))},Te=i=>re(this,null,function*(){const m=new URL(`/api/nwa/api/v1/mfa/challenge/${G}/validate`,b);m.searchParams.append("input",i);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=()=>re(this,null,function*(){if(g.join("").length!==w.inputLength){t(6,D=!0),t(8,T=o("invalidOtp"));return}const i=g.join("");t(13,Q=!0),Z=i,t(3,f=!0),t(6,D=!1),t(8,T=""),j==="stateless"&&Me(i),j==="stateful"&&(yield Te(i))}),oe=()=>re(this,null,function*(){if(b)try{t(3,f=!0);const i=new URL(`/api/nwa/api/v1/mfa/challenge/${G}/config`,b),m=yield fetch(i.href),h=yield m.json();if(m.ok)t(4,w=h),t(2,g=Array(w.inputLength).fill("")),t(9,F=!1),M=w.expirationTime,B=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(i){t(3,f=!1),t(7,z=!0),t(8,T=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",i)}});e.onMount(()=>(window.addEventListener("stepUpAuthRequired",L,!1),window.addEventListener("closePopup",K,!1),()=>{window.removeEventListener("stepUpAuthRequired",L),window.removeEventListener("closePopup",K,!1),R&&clearInterval(R),P&&clearInterval(P)}));const Ae=()=>q(te.SMS),ze=()=>q(te.EMAIL);function Re(i,m){e.binding_callbacks[i?"unshift":"push"](()=>{N[m]=i,t(14,N)})}const Ie=(i,m)=>ce(m,i),Pe=(i,m)=>de(m,i);function De(i){e.binding_callbacks[i?"unshift":"push"](()=>{V=i,t(1,V)})}return a.$$set=i=>{"clientstyling"in i&&t(31,d=i.clientstyling),"clientstylingurl"in i&&t(32,s=i.clientstylingurl),"mbsource"in i&&t(33,p=i.mbsource),"lang"in i&&t(34,u=i.lang),"endpoint"in i&&t(35,b=i.endpoint),"session"in i&&t(36,_=i.session),"translationurl"in i&&t(37,E=i.translationurl),"templateid"in i&&t(30,C=i.templateid)},a.$$.update=()=>{a.$$.dirty[0]&2|a.$$.dirty[1]&1&&d&&V&&e.setClientStyling(V,d),a.$$.dirty[0]&2|a.$$.dirty[1]&2&&s&&V&&e.setClientStylingURL(V,s),a.$$.dirty[0]&2|a.$$.dirty[1]&4&&p&&V&&e.setStreamStyling(V,`${p}.Style`),a.$$.dirty[1]&8&&u&&ne(),a.$$.dirty[1]&72&&u&&E&&H(),a.$$.dirty[0]&1|a.$$.dirty[1]&128&&t(18,r=k&&(!O[k]||O[k]===0)),a.$$.dirty[0]&1|a.$$.dirty[1]&128&&t(17,l=k&&O[k]||0)},[k,V,g,f,w,v,D,z,T,F,Y,U,J,Q,N,W,$,l,r,o,te,q,I,Ee,Oe,ce,de,Se,xe,ue,C,d,s,p,u,b,_,E,O,Ae,ze,Re,Ie,Pe,De]}class Ce extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,rt,at,e.safe_not_equal,{clientstyling:31,clientstylingurl:32,mbsource:33,lang:34,endpoint:35,session:36,translationurl:37,templateid:30},qe,[-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;