@everymatrix/cashier-page 1.85.21 → 1.85.23

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 (66) hide show
  1. package/components/{CashierCarousel-C5QNf4lE.js → CashierCarousel-BNKjZ4dF.js} +68 -80
  2. package/components/{CashierCarousel-Jl2aqYfe.cjs → CashierCarousel-CecQbbdW.cjs} +1 -1
  3. package/components/{CashierCarousel-SDse7_hX.js → CashierCarousel-D8MiOwuE.js} +78 -90
  4. package/components/{CashierError-Jdj_uZ4I.js → CashierError-BwZRYX5r.js} +1 -1
  5. package/components/{CashierError-Bwwq1pwM.cjs → CashierError-DFQyDQHn.cjs} +1 -1
  6. package/components/{CashierError-DkeWHxFp.js → CashierError-kVdNczE9.js} +1 -1
  7. package/components/CashierHeader-B3b8zbwP.cjs +1 -0
  8. package/components/{CashierHeader-Bfh3U7q4.js → CashierHeader-B9Y-DaUB.js} +40 -47
  9. package/components/{CashierHeader-Cee3k8wZ.js → CashierHeader-CzpZDjFX.js} +40 -47
  10. package/components/{CashierIframeRedirect-aSqRnHR6.js → CashierIframeRedirect-B_A79AFN.js} +31 -40
  11. package/components/CashierIframeRedirect-YYamzRsf.cjs +1 -0
  12. package/components/{CashierIframeRedirect-BrbS0BDH.js → CashierIframeRedirect-aTaiu0hG.js} +31 -40
  13. package/components/{CashierMethodDetails-i-RQQsra.js → CashierMethodDetails--Ebwn4lg.js} +5 -5
  14. package/components/{CashierMethodDetails-CkmKFn6o.cjs → CashierMethodDetails-D3OcsUSC.cjs} +2 -2
  15. package/components/{CashierMethodDetails-DX-z6Jjw.js → CashierMethodDetails-E1XQT_gz.js} +5 -5
  16. package/components/CashierMethodsList-BCfPOiPQ.cjs +1 -0
  17. package/components/{CashierMethodsList-BGudjIvl.js → CashierMethodsList-ByGJLq8_.js} +157 -173
  18. package/components/{CashierMethodsList-BHs-wwYk.js → CashierMethodsList-D5p1ksRs.js} +133 -149
  19. package/components/{CashierModal-yJBbNL81.js → CashierModal-BE9c03E8.js} +24 -22
  20. package/components/CashierModal-Diij1t-w.cjs +1 -0
  21. package/components/{CashierModal-CwsfMVcW.js → CashierModal-R6fQk7sI.js} +31 -29
  22. package/components/{CashierNotifications-CFvZHX_b.js → CashierNotifications-5EjGguMj.js} +1 -1
  23. package/components/{CashierNotifications-hmcOuIJT.cjs → CashierNotifications-kuNLTOB3.cjs} +1 -1
  24. package/components/{CashierNotifications-DMZuy8M1.js → CashierNotifications-mhDeZtGd.js} +1 -1
  25. package/components/CashierPage-BOXcdzek.js +3958 -0
  26. package/components/CashierPage-DSBg3R7m.js +3932 -0
  27. package/components/CashierPage-DSwyNlUe.cjs +1 -0
  28. package/components/{CashierReceiptPage-B9a7gDY-.js → CashierReceiptPage-DLHbUzv0.js} +512 -673
  29. package/components/{CashierReceiptPage-C3EVhPo1.cjs → CashierReceiptPage-DW63yTeU.cjs} +2 -2
  30. package/components/{CashierReceiptPage-DuEiUyJc.js → CashierReceiptPage-DWJG1k-S.js} +546 -707
  31. package/components/CashierSessionExpirationModal-CeesVv0R.js +1181 -0
  32. package/components/CashierSessionExpirationModal-Di0jBCa7.cjs +2 -0
  33. package/components/CashierSessionExpirationModal-Dk8_yCxM.js +1181 -0
  34. package/components/{CashierSpinner-CXXRwfkL.js → CashierSpinner-CYSebSGZ.js} +1 -1
  35. package/components/{CashierSpinner-XWfResBK.js → CashierSpinner-DIyI0RD1.js} +1 -1
  36. package/components/{CashierSpinner-DHf6UHDV.cjs → CashierSpinner-DVLxgI0s.cjs} +1 -1
  37. package/components/{CashierStepUp-BkNgRDll.js → CashierStepUp-BA2IK4WI.js} +1 -1
  38. package/components/{CashierStepUp-BUkCs2Td.js → CashierStepUp-CSkfphtu.js} +1 -1
  39. package/components/{CashierStepUp-Cbk0-AbY.cjs → CashierStepUp-pkLhK-RI.cjs} +1 -1
  40. package/components/{CashierTransactionHistory-B8cH2q8D.js → CashierTransactionHistory-DAieZJ7I.js} +5 -5
  41. package/components/{CashierTransactionHistory-wILVLaBk.js → CashierTransactionHistory-DZS6p6Wq.js} +5 -5
  42. package/components/{CashierTransactionHistory-DK5N-xDu.cjs → CashierTransactionHistory-dL_Zbx6y.cjs} +1 -1
  43. package/components/{CashierVerifications-jxiTTMUn.js → CashierVerifications-63wvOw6D.js} +106 -125
  44. package/components/{CashierVerifications-DEAJcpkR.js → CashierVerifications-B6QC6J6G.js} +109 -128
  45. package/components/CashierVerifications-BhbImoKx.cjs +1 -0
  46. package/components/{TxnStatusIcon-BRmGPXeu.js → TxnStatusIcon-CpJJHtXq.js} +1 -1
  47. package/components/{TxnStatusIcon-BorUmEdf.cjs → TxnStatusIcon-DuWdYaRx.cjs} +1 -1
  48. package/components/{TxnStatusIcon-B7vs3WN_.js → TxnStatusIcon-Krgh5oF3.js} +1 -1
  49. package/components/{TxnTypeIcons-DvPoXWdX.js → TxnTypeIcons-Az6Gbxxw.js} +1 -1
  50. package/components/{TxnTypeIcons-C_PpXN7w.js → TxnTypeIcons-Bvy6NVGO.js} +1 -1
  51. package/components/{TxnTypeIcons-CDAmP_Qb.cjs → TxnTypeIcons-iU9VGsWs.cjs} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierHeader-CMbldu41.cjs +0 -1
  57. package/components/CashierIframeRedirect-C913Adzi.cjs +0 -1
  58. package/components/CashierMethodsList-Bi3djwQ1.cjs +0 -1
  59. package/components/CashierModal-BNtmC5_L.cjs +0 -1
  60. package/components/CashierPage-Ce2US2_i.js +0 -3951
  61. package/components/CashierPage-Dd9JdidT.cjs +0 -1
  62. package/components/CashierPage-g4TEdHpC.js +0 -3977
  63. package/components/CashierSessionExpirationModal-BCXqjFP1.cjs +0 -2
  64. package/components/CashierSessionExpirationModal-CUZEUmS8.js +0 -1187
  65. package/components/CashierSessionExpirationModal-VNg9En5U.js +0 -1187
  66. package/components/CashierVerifications-BvCSSDjh.cjs +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-Jl2aqYfe.cjs"),wt=require("./CashierReceiptPage-C3EVhPo1.cjs"),Re=require("./CashierMethodDetails-CkmKFn6o.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..."},"en-us":{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."}};/*! @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:Ct,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:U,seal:K,create:Bt}=Object,{apply:$e,construct:et}=typeof Reflect!="undefined"&&Reflect;U||(U=function(n){return n});K||(K=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=V(Array.prototype.forEach),xt=V(Array.prototype.pop),Me=V(Array.prototype.push),Ge=V(String.prototype.toLowerCase),Ve=V(String.prototype.toString),vt=V(String.prototype.match),Oe=V(String.prototype.replace),rn=V(String.prototype.indexOf),sn=V(String.prototype.trim),te=V(Object.prototype.hasOwnProperty),P=V(RegExp.prototype.test),ke=an(TypeError);function V(i){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return $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 p(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge;Ct&&Ct(i,null);let r=n.length;for(;r--;){let a=n[r];if(typeof a=="string"){const f=o(a);f!==a&&(tn(n)||(n[r]=f),a=f)}i[a]=!0}return i}function ln(i){for(let n=0;n<i.length;n++)te(i,n)||(i[n]=null);return i}function Ee(i){const n=Bt(null);for(const[o,r]of Ft(i))te(i,o)&&(Array.isArray(r)?n[o]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=Ee(r):n[o]=r);return n}function Ne(i,n){for(;i!==null;){const r=on(i,n);if(r){if(r.get)return V(r.get);if(typeof r.value=="function")return V(r.value)}i=nn(i)}function o(){return null}return o}const Lt=U(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ze=U(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Je=U(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=U(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ke=U(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),un=U(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rt=U(["#text"]),Mt=U(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qe=U(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ot=U(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Be=U(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fn=K(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pn=K(/<%[\w\W]*|[\w\W]*%>/gm),mn=K(/\${[\w\W]*}/gm),dn=K(/^data-[\-\w.\u00B7-\uFFFF]/),hn=K(/^aria-[\-\w]+$/),Gt=K(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gn=K(/^(?:\w+script|data):/i),_n=K(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=K(/^html$/i),En=K(/^[a-z][.\w]*(-[.\w]+)+$/i);var kt=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:pn,TMPLIT_EXPR:mn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Gt,IS_SCRIPT_OR_DATA:gn,ATTR_WHITESPACE:_n,DOCTYPE_NAME:Wt,CUSTOM_ELEMENT:En});const De={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},yn=function(n,o){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(r=o.getAttribute(a));const f="dompurify"+(r?"#"+r:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch(g){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!==De.document)return n.isSupported=!1,n;let{document:o}=i;const r=o,a=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:g,Node:b,Element:T,NodeFilter:E,NamedNodeMap:X=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:Q,DOMParser:he,trustedTypes:H}=i,z=T.prototype,pe=Ne(z,"cloneNode"),ne=Ne(z,"remove"),F=Ne(z,"nextSibling"),ae=Ne(z,"childNodes"),Z=Ne(z,"parentNode");if(typeof g=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let h,A="";const{implementation:$,createNodeIterator:ie,createDocumentFragment:le,getElementsByTagName:B}=o,{importNode:ee}=r;let L={};n.isSupported=typeof Ft=="function"&&typeof Z=="function"&&$&&$.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:G,ERB_EXPR:oe,TMPLIT_EXPR:me,DATA_ATTR:q,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:J}=kt;let{IS_ALLOWED_URI:C}=kt,w=null;const ge=p({},[...Lt,...Ze,...Je,...Ke,...Rt]);let S=null;const ce=p({},[...Mt,...Qe,...Ot,...Be]);let m=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}})),l=null,d=null,W=!0,v=!0,Y=!1,Ce=!0,D=!1,Te=!0,_=!1,x=!1,_e=!1,ye=!1,Ie=!1,Pe=!1,tt=!0,nt=!1;const Xt="user-content-";let We=!0,xe=!1,be={},we=null;const it=p({},["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=p({},["audio","video","img","source","image","track"]);let Ye=null;const st=p({},["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",ue="http://www.w3.org/1999/xhtml";let Se=ue,je=!1,Xe=null;const qt=p({},[Ue,He,ue],Ve);let ve=null;const Vt=["application/xhtml+xml","text/html"],Zt="text/html";let M=null,Ae=null;const Jt=o.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(!(Ae&&Ae===t)){if((!t||typeof t!="object")&&(t={}),t=Ee(t),ve=Vt.indexOf(t.PARSER_MEDIA_TYPE)===-1?Zt:t.PARSER_MEDIA_TYPE,M=ve==="application/xhtml+xml"?Ve:Ge,w=te(t,"ALLOWED_TAGS")?p({},t.ALLOWED_TAGS,M):ge,S=te(t,"ALLOWED_ATTR")?p({},t.ALLOWED_ATTR,M):ce,Xe=te(t,"ALLOWED_NAMESPACES")?p({},t.ALLOWED_NAMESPACES,Ve):qt,Ye=te(t,"ADD_URI_SAFE_ATTR")?p(Ee(st),t.ADD_URI_SAFE_ATTR,M):st,ot=te(t,"ADD_DATA_URI_TAGS")?p(Ee(rt),t.ADD_DATA_URI_TAGS,M):rt,we=te(t,"FORBID_CONTENTS")?p({},t.FORBID_CONTENTS,M):it,l=te(t,"FORBID_TAGS")?p({},t.FORBID_TAGS,M):{},d=te(t,"FORBID_ATTR")?p({},t.FORBID_ATTR,M):{},be=te(t,"USE_PROFILES")?t.USE_PROFILES:!1,W=t.ALLOW_ARIA_ATTR!==!1,v=t.ALLOW_DATA_ATTR!==!1,Y=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,D=t.SAFE_FOR_TEMPLATES||!1,Te=t.SAFE_FOR_XML!==!1,_=t.WHOLE_DOCUMENT||!1,ye=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,_e=t.FORCE_BODY||!1,tt=t.SANITIZE_DOM!==!1,nt=t.SANITIZE_NAMED_PROPS||!1,We=t.KEEP_CONTENT!==!1,xe=t.IN_PLACE||!1,C=t.ALLOWED_URI_REGEXP||Gt,Se=t.NAMESPACE||ue,m=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),D&&(v=!1),Ie&&(ye=!0),be&&(w=p({},Rt),S=[],be.html===!0&&(p(w,Lt),p(S,Mt)),be.svg===!0&&(p(w,Ze),p(S,Qe),p(S,Be)),be.svgFilters===!0&&(p(w,Je),p(S,Qe),p(S,Be)),be.mathMl===!0&&(p(w,Ke),p(S,Ot),p(S,Be))),t.ADD_TAGS&&(w===ge&&(w=Ee(w)),p(w,t.ADD_TAGS,M)),t.ADD_ATTR&&(S===ce&&(S=Ee(S)),p(S,t.ADD_ATTR,M)),t.ADD_URI_SAFE_ATTR&&p(Ye,t.ADD_URI_SAFE_ATTR,M),t.FORBID_CONTENTS&&(we===it&&(we=Ee(we)),p(we,t.FORBID_CONTENTS,M)),We&&(w["#text"]=!0),_&&p(w,["html","head","body"]),w.table&&(p(w,["tbody"]),delete l.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=t.TRUSTED_TYPES_POLICY,A=h.createHTML("")}else h===void 0&&(h=yn(H,a)),h!==null&&typeof A=="string"&&(A=h.createHTML(""));U&&U(t),Ae=t}},lt=p({},["mi","mo","mn","ms","mtext"]),ct=p({},["foreignobject","annotation-xml"]),Kt=p({},["title","style","font","a","script"]),ut=p({},[...Ze,...Je,...cn]),ft=p({},[...Ke,...un]),Qt=function(t){let s=Z(t);(!s||!s.tagName)&&(s={namespaceURI:Se,tagName:"template"});const c=Ge(t.tagName),y=Ge(s.tagName);return Xe[t.namespaceURI]?t.namespaceURI===He?s.namespaceURI===ue?c==="svg":s.namespaceURI===Ue?c==="svg"&&(y==="annotation-xml"||lt[y]):!!ut[c]:t.namespaceURI===Ue?s.namespaceURI===ue?c==="math":s.namespaceURI===He?c==="math"&&ct[y]:!!ft[c]:t.namespaceURI===ue?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},re=function(t){Me(n.removed,{element:t});try{Z(t).removeChild(t)}catch(s){ne(t)}},ze=function(t,s){try{Me(n.removed,{attribute:s.getAttributeNode(t),from:s})}catch(c){Me(n.removed,{attribute:null,from:s})}if(s.removeAttribute(t),t==="is"&&!S[t])if(ye||Ie)try{re(s)}catch(c){}else try{s.setAttribute(t,"")}catch(c){}},pt=function(t){let s=null,c=null;if(_e)t="<remove></remove>"+t;else{const O=vt(t,/^[\r\n\t ]+/);c=O&&O[0]}ve==="application/xhtml+xml"&&Se===ue&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const y=h?h.createHTML(t):t;if(Se===ue)try{s=new he().parseFromString(y,ve)}catch(O){}if(!s||!s.documentElement){s=$.createDocument(Se,"template",null);try{s.documentElement.innerHTML=je?A:y}catch(O){}}const N=s.body||s.documentElement;return t&&c&&N.insertBefore(o.createTextNode(c),N.childNodes[0]||null),Se===ue?B.call(s,_?"html":"body")[0]:_?s.documentElement:N},mt=function(t){return ie.call(t.ownerDocument||t,t,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},dt=function(t){return t instanceof Q&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof X)||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 b=="function"&&t instanceof b},fe=function(t,s,c){L[t]&&Fe(L[t],y=>{y.call(n,s,c,Ae)})},gt=function(t){let s=null;if(fe("beforeSanitizeElements",t,null),dt(t))return re(t),!0;const c=M(t.nodeName);if(fe("uponSanitizeElement",t,{tagName:c,allowedTags:w}),t.hasChildNodes()&&!ht(t.firstElementChild)&&P(/<[/\w]/g,t.innerHTML)&&P(/<[/\w]/g,t.textContent)||t.nodeType===De.progressingInstruction||Te&&t.nodeType===De.comment&&P(/<[/\w]/g,t.data))return re(t),!0;if(!w[c]||l[c]){if(!l[c]&&Et(c)&&(m.tagNameCheck instanceof RegExp&&P(m.tagNameCheck,c)||m.tagNameCheck instanceof Function&&m.tagNameCheck(c)))return!1;if(We&&!we[c]){const y=Z(t)||t.parentNode,N=ae(t)||t.childNodes;if(N&&y){const O=N.length;for(let j=O-1;j>=0;--j){const se=pe(N[j],!0);se.__removalCount=(t.__removalCount||0)+1,y.insertBefore(se,F(t))}}}return re(t),!0}return t instanceof T&&!Qt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&P(/<\/no(script|embed|frames)/i,t.innerHTML)?(re(t),!0):(D&&t.nodeType===De.text&&(s=t.textContent,Fe([G,oe,me],y=>{s=Oe(s,y," ")}),t.textContent!==s&&(Me(n.removed,{element:t.cloneNode()}),t.textContent=s)),fe("afterSanitizeElements",t,null),!1)},_t=function(t,s,c){if(tt&&(s==="id"||s==="name")&&(c in o||c in Jt))return!1;if(!(v&&!d[s]&&P(q,s))){if(!(W&&P(k,s))){if(!S[s]||d[s]){if(!(Et(t)&&(m.tagNameCheck instanceof RegExp&&P(m.tagNameCheck,t)||m.tagNameCheck instanceof Function&&m.tagNameCheck(t))&&(m.attributeNameCheck instanceof RegExp&&P(m.attributeNameCheck,s)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(s))||s==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&P(m.tagNameCheck,c)||m.tagNameCheck instanceof Function&&m.tagNameCheck(c))))return!1}else if(!Ye[s]){if(!P(C,Oe(c,de,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&t!=="script"&&rn(c,"data:")===0&&ot[t])){if(!(Y&&!P(R,Oe(c,de,"")))){if(c)return!1}}}}}}return!0},Et=function(t){return t!=="annotation-xml"&&vt(t,J)},Tt=function(t){fe("beforeSanitizeAttributes",t,null);const{attributes:s}=t;if(!s)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S};let y=s.length;for(;y--;){const N=s[y],{name:O,namespaceURI:j,value:se}=N,Le=M(O);let I=O==="value"?se:sn(se);if(c.attrName=Le,c.attrValue=I,c.keepAttr=!0,c.forceKeepAttr=void 0,fe("uponSanitizeAttribute",t,c),I=c.attrValue,Te&&P(/((--!?|])>)|<\/(style|title)/i,I)){ze(O,t);continue}if(c.forceKeepAttr||(ze(O,t),!c.keepAttr))continue;if(!Ce&&P(/\/>/i,I)){ze(O,t);continue}D&&Fe([G,oe,me],bt=>{I=Oe(I,bt," ")});const yt=M(t.nodeName);if(_t(yt,Le,I)){if(nt&&(Le==="id"||Le==="name")&&(ze(O,t),I=Xt+I),h&&typeof H=="object"&&typeof H.getAttributeType=="function"&&!j)switch(H.getAttributeType(yt,Le)){case"TrustedHTML":{I=h.createHTML(I);break}case"TrustedScriptURL":{I=h.createScriptURL(I);break}}try{j?t.setAttributeNS(j,O,I):t.setAttribute(O,I),dt(t)?re(t):xt(n.removed)}catch(bt){}}}fe("afterSanitizeAttributes",t,null)},$t=function u(t){let s=null;const c=mt(t);for(fe("beforeSanitizeShadowDOM",t,null);s=c.nextNode();)fe("uponSanitizeShadowNode",s,null),!gt(s)&&(s.content instanceof f&&u(s.content),Tt(s));fe("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,N=null;if(je=!u,je&&(u="<!-->"),typeof u!="string"&&!ht(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw ke("dirty is not a string, aborting")}else throw ke("toString is not a function");if(!n.isSupported)return u;if(x||qe(t),n.removed=[],typeof u=="string"&&(xe=!1),xe){if(u.nodeName){const se=M(u.nodeName);if(!w[se]||l[se])throw ke("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof b)s=pt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===De.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!ye&&!D&&!_&&u.indexOf("<")===-1)return h&&Pe?h.createHTML(u):u;if(s=pt(u),!s)return ye?null:Pe?A:""}s&&_e&&re(s.firstChild);const O=mt(xe?u:s);for(;y=O.nextNode();)gt(y)||(y.content instanceof f&&$t(y.content),Tt(y));if(xe)return u;if(ye){if(Ie)for(N=le.call(s.ownerDocument);s.firstChild;)N.appendChild(s.firstChild);else N=s;return(S.shadowroot||S.shadowrootmode)&&(N=ee.call(r,N,!0)),N}let j=_?s.outerHTML:s.innerHTML;return _&&w["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&P(Wt,s.ownerDocument.doctype.name)&&(j="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
2
- `+j),D&&Fe([G,oe,me],se=>{j=Oe(j,se," ")}),h&&Pe?h.createHTML(j):j},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qe(u),x=!0},n.clearConfig=function(){Ae=null,x=!1},n.isValidAttribute=function(u,t,s){Ae||qe({});const c=M(u),y=M(t);return _t(c,y,s)},n.addHook=function(u,t){typeof t=="function"&&(L[u]=L[u]||[],Me(L[u],t))},n.removeHook=function(u){if(L[u])return xt(L[u])},n.removeHooks=function(u){L[u]&&(L[u]=[])},n.removeAllHooks=function(){L={}},n}var Nt=Yt();function bn(i){e.append_styles(i,"svelte-1ct078u",'*,*::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%)}.CashierSessionHomeButton{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%;background-color:transparent;border-radius:var(--emw--border-radius-medium, 4px);border:1px solid var(---emw-color-primary, #fff)}.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}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #f9c405)}.CashierErrorButton:hover{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.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}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}')}const wn=i=>({}),Dt=i=>({}),Sn=i=>({}),It=i=>({}),An=i=>({}),Pt=i=>({}),Cn=i=>({}),Ut=i=>({class:"CashierSessionExpirationIcon"});function Ht(i){let n,o,r,a,f,g,b,T,E,X,Q,he,H=i[8]("sessionExpirationHeader")+"",z,pe,ne,F,ae,Z,h,A,$,ie,le,B,ee,L,G=i[8]("sessionExpirationEnd")+"",oe,me,q,k,R,de,J,C,w,ge;const S=i[23].icon,ce=e.create_slot(S,i,i[22],Ut),m=ce||xn(i),l=i[23].title,d=e.create_slot(l,i,i[22],Pt),W=i[23].text,v=e.create_slot(W,i,i[22],It),Y=v||vn(i),Ce=[Rn,Ln],D=[];function Te(_,x){return _[6]?0:1}return k=Te(i),R=D[k]=Ce[k](i),{c(){n=e.element("div"),o=e.element("div"),r=e.element("div"),a=e.element("div"),f=e.svg_element("svg"),g=e.svg_element("defs"),b=e.svg_element("mask"),T=e.svg_element("circle"),E=e.svg_element("rect"),X=e.svg_element("circle"),Q=e.svg_element("circle"),he=e.space(),z=e.text(H),pe=e.space(),ne=e.element("div"),F=e.svg_element("svg"),ae=e.svg_element("path"),Z=e.space(),h=e.element("div"),A=e.element("div"),m&&m.c(),$=e.space(),d&&d.c(),ie=e.space(),Y&&Y.c(),le=e.space(),B=e.element("div"),ee=e.element("button"),L=e.element("span"),oe=e.text(G),me=e.space(),q=e.element("button"),R.c(),e.attr(T,"cx","100"),e.attr(T,"cy","100"),e.attr(T,"r","90"),e.attr(E,"x","88"),e.attr(E,"y","40"),e.attr(E,"width","24"),e.attr(E,"height","80"),e.attr(E,"rx","12"),e.attr(E,"fill","black"),e.attr(X,"cx","100"),e.attr(X,"cy","150"),e.attr(X,"r","14"),e.attr(X,"fill","black"),e.attr(b,"id","exclamation-mask"),e.attr(Q,"cx","100"),e.attr(Q,"cy","100"),e.attr(Q,"r","90"),e.attr(Q,"mask","url(#exclamation-mask)"),e.attr(f,"viewBox","0 0 200 200"),e.attr(f,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"class","CashierSessionExpirationModalHeaderTitle"),e.attr(ae,"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(ne,"class","ModalCloseIcon"),e.attr(r,"class","CashierSessionExpirationModalHeader"),e.attr(L,"class","CashierSessionExpirationButtonText"),e.attr(ee,"type","button"),e.attr(ee,"class","CashierSessionHomeButton"),e.attr(q,"type","button"),q.disabled=i[6],e.attr(q,"class","CashierSessionExpirationButton"),e.attr(B,"class","ButtonsContainer"),e.attr(A,"class","CashierSessionExpiration"),e.attr(h,"class","CashierSessionExpirationModalContainer"),e.attr(o,"class","CashierSessionExpirationModalWrapper"),e.attr(n,"class","CashierSessionExpirationModalWindow"),e.attr(n,"id","CashierSessionExpirationModal"),e.add_render_callback(()=>i[25].call(n))},m(_,x){e.insert(_,n,x),e.append(n,o),e.append(o,r),e.append(r,a),e.append(a,f),e.append(f,g),e.append(g,b),e.append(b,T),e.append(b,E),e.append(b,X),e.append(f,Q),e.append(a,he),e.append(a,z),e.append(r,pe),e.append(r,ne),e.append(ne,F),e.append(F,ae),e.append(o,Z),e.append(o,h),e.append(h,A),m&&m.m(A,null),e.append(A,$),d&&d.m(A,null),e.append(A,ie),Y&&Y.m(A,null),e.append(A,le),e.append(A,B),e.append(B,ee),e.append(ee,L),e.append(L,oe),e.append(B,me),e.append(B,q),D[k].m(q,null),i[24](A),de=e.add_iframe_resize_listener(n,i[25].bind(n)),C=!0,w||(ge=[e.listen(F,"click",i[11]),e.listen(ee,"click",i[11]),e.listen(q,"click",i[9]),e.listen(n,"click",i[10])],w=!0)},p(_,x){i=_,(!C||x[0]&256)&&H!==(H=i[8]("sessionExpirationHeader")+"")&&e.set_data(z,H),ce?ce.p&&(!C||x[0]&4194304)&&e.update_slot_base(ce,S,i,i[22],C?e.get_slot_changes(S,i[22],x,Cn):e.get_all_dirty_from_scope(i[22]),Ut):m&&m.p&&(!C||x[0]&8)&&m.p(i,C?x:[-1,-1]),d&&d.p&&(!C||x[0]&4194304)&&e.update_slot_base(d,l,i,i[22],C?e.get_slot_changes(l,i[22],x,An):e.get_all_dirty_from_scope(i[22]),Pt),v?v.p&&(!C||x[0]&4194304)&&e.update_slot_base(v,W,i,i[22],C?e.get_slot_changes(W,i[22],x,Sn):e.get_all_dirty_from_scope(i[22]),It):Y&&Y.p&&(!C||x[0]&384)&&Y.p(i,C?x:[-1,-1]),(!C||x[0]&256)&&G!==(G=i[8]("sessionExpirationEnd")+"")&&e.set_data(oe,G);let _e=k;k=Te(i),k===_e?D[k].p(i,x):(e.group_outros(),e.transition_out(D[_e],1,1,()=>{D[_e]=null}),e.check_outros(),R=D[k],R?R.p(i,x):(R=D[k]=Ce[k](i),R.c()),e.transition_in(R,1),R.m(q,null)),(!C||x[0]&64)&&(q.disabled=i[6])},i(_){C||(e.transition_in(m,_),e.transition_in(d,_),e.transition_in(Y,_),e.transition_in(R),_&&e.add_render_callback(()=>{C&&(J||(J=e.create_bidirectional_transition(n,wt.fade,{duration:i[2]},!0)),J.run(1))}),C=!0)},o(_){e.transition_out(m,_),e.transition_out(d,_),e.transition_out(Y,_),e.transition_out(R),_&&(J||(J=e.create_bidirectional_transition(n,wt.fade,{duration:i[2]},!1)),J.run(0)),C=!1},d(_){_&&e.detach(n),m&&m.d(_),d&&d.d(_),Y&&Y.d(_),D[k].d(),i[24](null),de(),_&&J&&J.end(),w=!1,e.run_all(ge)}}}function zt(i){let n,o;return{c(){n=e.element("img"),e.src_url_equal(n.src,o=`${i[3]}/set-timeout-icon.png`)||e.attr(n,"src",o),e.attr(n,"width","300px"),e.attr(n,"alt","error")},m(r,a){e.insert(r,n,a)},p(r,a){a[0]&8&&!e.src_url_equal(n.src,o=`${r[3]}/set-timeout-icon.png`)&&e.attr(n,"src",o)},d(r){r&&e.detach(n)}}}function xn(i){let n,o=i[3]&&zt(i);return{c(){o&&o.c(),n=e.empty()},m(r,a){o&&o.m(r,a),e.insert(r,n,a)},p(r,a){r[3]?o?o.p(r,a):(o=zt(r),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(r){r&&e.detach(n),o&&o.d(r)}}}function vn(i){let n,o,r=i[8]("sessionExpirationTitle")+"",a,f,g,b=Nt.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=e.element("span"),o=e.element("p"),a=e.text(r),f=e.space(),g=e.element("p"),e.attr(n,"class","CashierSessionExpirationText")},m(T,E){e.insert(T,n,E),e.append(n,o),e.append(o,a),e.append(n,f),e.append(n,g),g.innerHTML=b},p(T,E){E[0]&256&&r!==(r=T[8]("sessionExpirationTitle")+"")&&e.set_data(a,r),E[0]&384&&b!==(b=Nt.sanitize(T[8]("sessionExpirationGeneralText",{values:{second:T[7]}}))+"")&&(g.innerHTML=b)},d(T){T&&e.detach(n)}}}function Ln(i){let n;const o=i[23].button,r=e.create_slot(o,i,i[22],Dt),a=r||Mn(i);return{c(){a&&a.c()},m(f,g){a&&a.m(f,g),n=!0},p(f,g){r?r.p&&(!n||g[0]&4194304)&&e.update_slot_base(r,o,f,f[22],n?e.get_slot_changes(o,f[22],g,wn):e.get_all_dirty_from_scope(f[22]),Dt):a&&a.p&&(!n||g[0]&256)&&a.p(f,n?g:[-1,-1])},i(f){n||(e.transition_in(a,f),n=!0)},o(f){e.transition_out(a,f),n=!1},d(f){a&&a.d(f)}}}function Rn(i){let n,o,r,a,f,g=i[8]("sessionExpirationLoadingButton")+"",b;return{c(){n=e.element("div"),o=e.svg_element("svg"),r=e.svg_element("path"),a=e.space(),f=e.element("span"),b=e.text(g),e.attr(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),e.attr(r,"fill","white"),e.attr(o,"class","CashierSessionExpirationButtonSpinner"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","15"),e.attr(o,"height","14"),e.attr(o,"viewBox","0 0 15 14"),e.attr(o,"fill","none"),e.attr(f,"class","CashierSessionExpirationButtonText")},m(T,E){e.insert(T,n,E),e.append(n,o),e.append(o,r),e.append(n,a),e.append(n,f),e.append(f,b)},p(T,E){E[0]&256&&g!==(g=T[8]("sessionExpirationLoadingButton")+"")&&e.set_data(b,g)},i:e.noop,o:e.noop,d(T){T&&e.detach(n)}}}function Mn(i){let n,o=i[8]("sessionExpirationGeneralButton")+"",r;return{c(){n=e.element("span"),r=e.text(o),e.attr(n,"class","CashierSessionExpirationButtonText")},m(a,f){e.insert(a,n,f),e.append(n,r)},p(a,f){f[0]&256&&o!==(o=a[8]("sessionExpirationGeneralButton")+"")&&e.set_data(r,o)},d(a){a&&e.detach(n)}}}function On(i){let n,o,r=i[5]&&Ht(i);return{c(){n=e.element("div"),r&&r.c()},m(a,f){e.insert(a,n,f),r&&r.m(n,null),i[26](n),o=!0},p(a,f){a[5]?r?(r.p(a,f),f[0]&32&&e.transition_in(r,1)):(r=Ht(a),r.c(),e.transition_in(r,1),r.m(n,null)):r&&(e.group_outros(),e.transition_out(r,1,1,()=>{r=null}),e.check_outros())},i(a){o||(e.transition_in(r),o=!0)},o(a){e.transition_out(r),o=!1},d(a){a&&e.detach(n),r&&r.d(),i[26](null)}}}const kn=90;function Nn(i,n,o){let r,a;e.component_subscribe(i,Re.xPaymentSessionToken,l=>o(21,r=l)),e.component_subscribe(i,e.$format,l=>o(8,a=l));let{$$slots:f={},$$scope:g}=n;Re.dayjs.extend(Re.utc);let{clientstyling:b=""}=n,{clientstylingurl:T=""}=n,{width:E}=n,{height:X}=n,{duration:Q=200}=n,{assetsurl:he=""}=n,{lang:H="en"}=n,{translationurl:z=""}=n,{endpoint:pe}=n,{currency:ne}=n,{customerid:F}=n,{selectedpaymentmethodname:ae}=n,{mbsource:Z=""}=n,h,A=!1,$=!1,ie,le,B,ee,L;var G;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(G||(G={}));const oe=l=>{l.data.type==="StartSessionCountdown"&&(ee=l.data.paymentMethodName)},me=l=>{try{return JSON.parse(atob(l.split(".")[1]))}catch(d){return null}},q=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:L},window.location.href)},k=l=>{o(5,A=!1);const d=me(l);d&&(le=d==null?void 0:d.exp,o(7,ie=le),B&&clearInterval(B),B=setInterval(()=>{const W=Math.floor(new Date().getTime()/1e3);o(7,ie=le-W),ie<=kn&&o(5,A=!0),W>=le&&(R(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},R=()=>{o(7,ie=0),o(5,A=!1),clearInterval(B)},de=()=>{if($)return;const l=new URL(`${pe}/v1/player/${F}/payment/GetPaymentMethod`),d=new Headers;o(6,$=!0),d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-Client-Request-Timestamp",Re.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const W={method:"POST",mode:"cors",headers:d,body:JSON.stringify({PaymentMethodName:ee||ae,Currency:ne,XPaymentSessionToken:r})};fetch(l,W).then(v=>v.json()).then(v=>{if(v.error){window.postMessage({type:"ShowSessionError",error:v.error},window.location.href),R();return}if(v.ResponseCode===G.PlayerSessionIsNotValid||v.ResponseCode===G.JwtTokenError){L=v.ResponseCode,R(),q();return}if(v.ResponseCode!==G.Success){L=v.ResponseCode,R();return}v.XPaymentSessionToken&&Re.xPaymentSessionToken.set(v.XPaymentSessionToken)}).finally(()=>o(6,$=!1))},J=l=>{const d=l.currentTarget;l.target===d&&de()},C=()=>{fetch(z).then(d=>d.json()).then(d=>{Object.keys(d).forEach(W=>{St(W,d[W])})}).catch(d=>{console.log(d)})},w=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),o(5,A=!1)};Object.keys(At).forEach(l=>{St(l,At[l])});const ge=()=>{en(H)};e.onMount(()=>(window.addEventListener("message",oe,!1),()=>{window.removeEventListener("message",oe)})),e.onDestroy(()=>{clearInterval(B)});function S(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,o(4,h)})}function ce(){E=this.clientWidth,X=this.clientHeight,o(0,E),o(1,X)}function m(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,o(4,h)})}return i.$$set=l=>{"clientstyling"in l&&o(12,b=l.clientstyling),"clientstylingurl"in l&&o(13,T=l.clientstylingurl),"width"in l&&o(0,E=l.width),"height"in l&&o(1,X=l.height),"duration"in l&&o(2,Q=l.duration),"assetsurl"in l&&o(3,he=l.assetsurl),"lang"in l&&o(14,H=l.lang),"translationurl"in l&&o(15,z=l.translationurl),"endpoint"in l&&o(16,pe=l.endpoint),"currency"in l&&o(17,ne=l.currency),"customerid"in l&&o(18,F=l.customerid),"selectedpaymentmethodname"in l&&o(19,ae=l.selectedpaymentmethodname),"mbsource"in l&&o(20,Z=l.mbsource),"$$scope"in l&&o(22,g=l.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2097152&&k(r),i.$$.dirty[0]&16384&&H&&ge(),i.$$.dirty[0]&4112&&b&&h&&e.setClientStyling(h,b),i.$$.dirty[0]&8208&&T&&h&&e.setClientStylingURL(h,T),i.$$.dirty[0]&1048592&&Z&&h&&e.setStreamStyling(h,`${Z}.Style`),i.$$.dirty[0]&32768&&z&&C()},[E,X,Q,he,h,A,$,ie,a,de,J,w,b,T,H,z,pe,ne,F,ae,Z,r,g,f,S,ce,m]}class jt extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,Nn,On,e.safe_not_equal,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},bn,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get width(){return this.$$.ctx[0]}set width(n){this.$$set({width:n}),e.flush()}get height(){return this.$$.ctx[1]}set height(n){this.$$set({height:n}),e.flush()}get duration(){return this.$$.ctx[2]}set duration(n){this.$$set({duration:n}),e.flush()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(n){this.$$set({assetsurl:n}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get endpoint(){return this.$$.ctx[16]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get currency(){return this.$$.ctx[17]}set currency(n){this.$$set({currency:n}),e.flush()}get customerid(){return this.$$.ctx[18]}set customerid(n){this.$$set({customerid:n}),e.flush()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(n){this.$$set({selectedpaymentmethodname:n}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}}e.create_custom_element(jt,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=jt;