@everymatrix/cashier-page 1.77.3 → 1.77.5

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 (59) hide show
  1. package/components/{CashierError-BuW5dJfP.js → CashierError-BfI-dhBA.js} +470 -488
  2. package/components/{CashierError-BL7OTzSK.js → CashierError-BpHmWAV4.js} +622 -640
  3. package/components/{CashierError-BEEnpeVH.cjs → CashierError-Cwc-x7-n.cjs} +4 -4
  4. package/components/CashierHeader-BmFnfiuo.cjs +1 -0
  5. package/components/{CashierHeader-FDYsDrpF.js → CashierHeader-Dg0BUudB.js} +73 -73
  6. package/components/{CashierHeader-CkyrZZ8s.js → CashierHeader-gXrzXYdb.js} +74 -74
  7. package/components/{CashierIframeRedirect-wlE_YN39.js → CashierIframeRedirect-B2qLdGXs.js} +3 -3
  8. package/components/{CashierIframeRedirect-CmdPA_aZ.js → CashierIframeRedirect-CK8r-ttq.js} +3 -3
  9. package/components/{CashierIframeRedirect-Db-zgjwP.cjs → CashierIframeRedirect-yYx9jiwQ.cjs} +1 -1
  10. package/components/{CashierMethodDetails-B7K0CIlB.cjs → CashierMethodDetails-C8Aujapw.cjs} +5 -5
  11. package/components/{CashierMethodDetails-C7dG4t8m.js → CashierMethodDetails-CMJ3AZ1w.js} +126 -126
  12. package/components/{CashierMethodDetails-BSBqkHNa.js → CashierMethodDetails-DUoeeyvh.js} +126 -126
  13. package/components/{CashierMethodsList-gPmctW-Q.js → CashierMethodsList-CGzThcle.js} +256 -256
  14. package/components/CashierMethodsList-CPkX_Quy.cjs +1 -0
  15. package/components/{CashierMethodsList-FNgy0d7U.js → CashierMethodsList-Dg2r9AfY.js} +239 -239
  16. package/components/{CashierModal-CIWk9EpH.js → CashierModal-BH_3F3zD.js} +36 -36
  17. package/components/{CashierModal-vCh-dC6Q.cjs → CashierModal-ChQ4v8zb.cjs} +1 -1
  18. package/components/{CashierModal-BAzO-8NU.js → CashierModal-DPu1DYOz.js} +32 -32
  19. package/components/{CashierNotifications-Bgf97-ym.cjs → CashierNotifications-CvyXyy3e.cjs} +1 -1
  20. package/components/{CashierNotifications-BhA-DfA9.js → CashierNotifications-DJkU9Qld.js} +1 -1
  21. package/components/{CashierNotifications-CfzNxd6q.js → CashierNotifications-DalsZ-_b.js} +1 -1
  22. package/components/CashierPage-BE-30dWS.cjs +1 -0
  23. package/components/{CashierPage-D8YY3wAI.js → CashierPage-BPE6GQlI.js} +576 -594
  24. package/components/{CashierPage-DbHvX6nI.js → CashierPage-VLpP-BiO.js} +585 -603
  25. package/components/{CashierReceiptPage-A1MYfWGW.js → CashierReceiptPage-BBA-8TRN.js} +3 -3
  26. package/components/{CashierReceiptPage-CQyluI1J.cjs → CashierReceiptPage-CO3ZVCdS.cjs} +1 -1
  27. package/components/{CashierReceiptPage-BzjCwk2b.js → CashierReceiptPage-DFrIxtqP.js} +3 -3
  28. package/components/{CashierSessionExpirationModal-CtakjuI_.js → CashierSessionExpirationModal-BD8QkE1D.js} +444 -462
  29. package/components/{CashierSessionExpirationModal-YWIpKzje.js → CashierSessionExpirationModal-DXyum0E9.js} +402 -420
  30. package/components/CashierSessionExpirationModal-IPLl_Pgb.cjs +2 -0
  31. package/components/{CashierSpinner-DXrTfpLq.js → CashierSpinner-ApTRgAwC.js} +1 -1
  32. package/components/{CashierSpinner-CAqB2_pw.js → CashierSpinner-BtqGjC-Z.js} +1 -1
  33. package/components/{CashierSpinner-DTztqXMW.cjs → CashierSpinner-DLi9367a.cjs} +1 -1
  34. package/components/CashierTransactionHistory-B6b6N-V8.js +1305 -0
  35. package/components/CashierTransactionHistory-DUK3EI4M.cjs +1 -0
  36. package/components/CashierTransactionHistory-iszMiNkq.js +1305 -0
  37. package/components/CashierVerifications-BeUxv_g0.js +612 -0
  38. package/components/CashierVerifications-C2--15rP.js +608 -0
  39. package/components/CashierVerifications-D71jldwG.cjs +1 -0
  40. package/components/{TxnStatusIcon-DPmmaKoK.js → TxnStatusIcon-B464k5IP.js} +1 -1
  41. package/components/{TxnStatusIcon-ClddwA7r.js → TxnStatusIcon-DLRJaQNz.js} +1 -1
  42. package/components/{TxnStatusIcon-Dapc6xhT.cjs → TxnStatusIcon-Q02UYwzX.cjs} +1 -1
  43. package/components/{TxnTypeIcons-w8LBVBiN.cjs → TxnTypeIcons-BfcVtJl5.cjs} +1 -1
  44. package/components/{TxnTypeIcons-CEcfPpqm.js → TxnTypeIcons-Ct2XFW1C.js} +1 -1
  45. package/components/{TxnTypeIcons-CWojIltL.js → TxnTypeIcons-DROxy56q.js} +1 -1
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/components/CashierHeader-D5eAmyvG.cjs +0 -1
  51. package/components/CashierMethodsList-pakwpTY2.cjs +0 -1
  52. package/components/CashierPage-DcwM8mwG.cjs +0 -1
  53. package/components/CashierSessionExpirationModal-Bh3jmXl_.cjs +0 -2
  54. package/components/CashierTransactionHistory-U9Il8eZb.js +0 -1305
  55. package/components/CashierTransactionHistory-Y1g5hagc.js +0 -1305
  56. package/components/CashierTransactionHistory-c_0mTjNo.cjs +0 -1
  57. package/components/CashierVerifications-BA7PsePr.js +0 -608
  58. package/components/CashierVerifications-BTvFySIg.js +0 -604
  59. package/components/CashierVerifications-BlWTY2gh.cjs +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-BEEnpeVH.cjs"),At=require("./CashierModal-vCh-dC6Q.cjs"),be=require("./CashierMethodDetails-B7K0CIlB.cjs");function yt(i,n){t.addMessages(i,n)}function $t(i){t.init({fallbackLocale:"en"}),t.$locale.set(i)}const wt={en:{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..."},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:Ht,setPrototypeOf:Ct,isFrozen:en,getPrototypeOf:tn,getOwnPropertyDescriptor:nn}=Object;let{freeze:U,seal:V,create:zt}=Object,{apply:Ze,construct:Qe}=typeof Reflect!="undefined"&&Reflect;U||(U=function(n){return n});V||(V=function(n){return n});Ze||(Ze=function(n,o,s){return n.apply(o,s)});Qe||(Qe=function(n,o){return new n(...o)});const De=W(Array.prototype.forEach),xt=W(Array.prototype.pop),Ae=W(Array.prototype.push),Pe=W(String.prototype.toLowerCase),Xe=W(String.prototype.toString),Rt=W(String.prototype.match),ye=W(String.prototype.replace),on=W(String.prototype.indexOf),sn=W(String.prototype.trim),Q=W(Object.prototype.hasOwnProperty),P=W(RegExp.prototype.test),we=rn(TypeError);function W(i){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return Ze(i,n,s)}}function rn(i){return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return Qe(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe;Ct&&Ct(i,null);let s=n.length;for(;s--;){let a=n[s];if(typeof a=="string"){const c=o(a);c!==a&&(en(n)||(n[s]=c),a=c)}i[a]=!0}return i}function an(i){for(let n=0;n<i.length;n++)Q(i,n)||(i[n]=null);return i}function ue(i){const n=zt(null);for(const[o,s]of Ht(i))Q(i,o)&&(Array.isArray(s)?n[o]=an(s):s&&typeof s=="object"&&s.constructor===Object?n[o]=ue(s):n[o]=s);return n}function Ce(i,n){for(;i!==null;){const s=nn(i,n);if(s){if(s.get)return W(s.get);if(typeof s.value=="function")return W(s.value)}i=tn(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"]),qe=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"]),Ve=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"]),ln=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"]),Je=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"]),cn=U(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Mt=U(["#text"]),Ot=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"]),Ke=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"]),Nt=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"]),Ie=U(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),un=V(/\{\{[\w\W]*|[\w\W]*\}\}/gm),fn=V(/<%[\w\W]*|[\w\W]*%>/gm),mn=V(/\${[\w\W]*}/gm),pn=V(/^data-[\-\w.\u00B7-\uFFFF]/),dn=V(/^aria-[\-\w]+$/),Bt=V(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=V(/^(?:\w+script|data):/i),hn=V(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=V(/^html$/i),gn=V(/^[a-z][.\w]*(-[.\w]+)+$/i);var kt=Object.freeze({__proto__:null,MUSTACHE_EXPR:un,ERB_EXPR:fn,TMPLIT_EXPR:mn,DATA_ATTR:pn,ARIA_ATTR:dn,IS_ALLOWED_URI:Bt,IS_SCRIPT_OR_DATA:_n,ATTR_WHITESPACE:hn,DOCTYPE_NAME:Gt,CUSTOM_ELEMENT:gn});const xe={element:1,text:3,progressingInstruction:7,comment:8,document:9},En=function(){return typeof window=="undefined"?null:window},Tn=function(n,o){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let s=null;const a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(s=o.getAttribute(a));const c="dompurify"+(s?"#"+s:"");try{return n.createPolicy(c,{createHTML(p){return p},createScriptURL(p){return p}})}catch(p){return console.warn("TrustedTypes policy "+c+" could not be created."),null}};function Wt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:En();const n=f=>Wt(f);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==xe.document)return n.isSupported=!1,n;let{document:o}=i;const s=o,a=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:p,Node:k,Element:v,NodeFilter:w,NamedNodeMap:C=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:ae,DOMParser:le,trustedTypes:Y}=i,b=v.prototype,x=Ce(b,"cloneNode"),M=Ce(b,"remove"),se=Ce(b,"nextSibling"),F=Ce(b,"childNodes"),_=Ce(b,"parentNode");if(typeof p=="function"){const f=o.createElement("template");f.content&&f.content.ownerDocument&&(o=f.content.ownerDocument)}let d,B="";const{implementation:j,createNodeIterator:X,createDocumentFragment:R,getElementsByTagName:J}=o,{importNode:te}=s;let g={};n.isSupported=typeof Ht=="function"&&typeof _=="function"&&j&&j.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:G,ERB_EXPR:K,TMPLIT_EXPR:O,DATA_ATTR:fe,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:h,CUSTOM_ELEMENT:S}=kt;let{IS_ALLOWED_URI:re}=kt,A=null;const Re=m({},[...Lt,...qe,...Ve,...Je,...Mt]);let y=null;const Le=m({},[...Ot,...Ke,...Nt,...Ie]);let l=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}})),T=null,Z=null,H=!0,Ue=!0,$e=!1,et=!0,me=!1,Fe=!0,ce=!1,He=!1,ze=!1,pe=!1,Me=!1,Oe=!1,tt=!0,nt=!1;const jt="user-content-";let Be=!0,Ee=!1,de={},_e=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 st=m({},["audio","video","img","source","image","track"]);let Ge=null;const rt=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let he=ie,We=!1,Ye=null;const Xt=m({},[Ne,ke,ie],Xe);let Te=null;const qt=["application/xhtml+xml","text/html"],Vt="text/html";let L=null,ge=null;const Jt=o.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},je=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ge&&ge===e)){if((!e||typeof e!="object")&&(e={}),e=ue(e),Te=qt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Vt:e.PARSER_MEDIA_TYPE,L=Te==="application/xhtml+xml"?Xe:Pe,A=Q(e,"ALLOWED_TAGS")?m({},e.ALLOWED_TAGS,L):Re,y=Q(e,"ALLOWED_ATTR")?m({},e.ALLOWED_ATTR,L):Le,Ye=Q(e,"ALLOWED_NAMESPACES")?m({},e.ALLOWED_NAMESPACES,Xe):Xt,Ge=Q(e,"ADD_URI_SAFE_ATTR")?m(ue(rt),e.ADD_URI_SAFE_ATTR,L):rt,ot=Q(e,"ADD_DATA_URI_TAGS")?m(ue(st),e.ADD_DATA_URI_TAGS,L):st,_e=Q(e,"FORBID_CONTENTS")?m({},e.FORBID_CONTENTS,L):it,T=Q(e,"FORBID_TAGS")?m({},e.FORBID_TAGS,L):{},Z=Q(e,"FORBID_ATTR")?m({},e.FORBID_ATTR,L):{},de=Q(e,"USE_PROFILES")?e.USE_PROFILES:!1,H=e.ALLOW_ARIA_ATTR!==!1,Ue=e.ALLOW_DATA_ATTR!==!1,$e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,et=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=e.SAFE_FOR_TEMPLATES||!1,Fe=e.SAFE_FOR_XML!==!1,ce=e.WHOLE_DOCUMENT||!1,pe=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,tt=e.SANITIZE_DOM!==!1,nt=e.SANITIZE_NAMED_PROPS||!1,Be=e.KEEP_CONTENT!==!1,Ee=e.IN_PLACE||!1,re=e.ALLOWED_URI_REGEXP||Bt,he=e.NAMESPACE||ie,l=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(l.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(l.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(l.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ue=!1),Me&&(pe=!0),de&&(A=m({},Mt),y=[],de.html===!0&&(m(A,Lt),m(y,Ot)),de.svg===!0&&(m(A,qe),m(y,Ke),m(y,Ie)),de.svgFilters===!0&&(m(A,Ve),m(y,Ke),m(y,Ie)),de.mathMl===!0&&(m(A,Je),m(y,Nt),m(y,Ie))),e.ADD_TAGS&&(A===Re&&(A=ue(A)),m(A,e.ADD_TAGS,L)),e.ADD_ATTR&&(y===Le&&(y=ue(y)),m(y,e.ADD_ATTR,L)),e.ADD_URI_SAFE_ATTR&&m(Ge,e.ADD_URI_SAFE_ATTR,L),e.FORBID_CONTENTS&&(_e===it&&(_e=ue(_e)),m(_e,e.FORBID_CONTENTS,L)),Be&&(A["#text"]=!0),ce&&m(A,["html","head","body"]),A.table&&(m(A,["tbody"]),delete T.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');d=e.TRUSTED_TYPES_POLICY,B=d.createHTML("")}else d===void 0&&(d=Tn(Y,a)),d!==null&&typeof B=="string"&&(B=d.createHTML(""));U&&U(e),ge=e}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Kt=m({},["title","style","font","a","script"]),ut=m({},[...qe,...Ve,...ln]),ft=m({},[...Je,...cn]),Zt=function(e){let r=_(e);(!r||!r.tagName)&&(r={namespaceURI:he,tagName:"template"});const u=Pe(e.tagName),E=Pe(r.tagName);return Ye[e.namespaceURI]?e.namespaceURI===ke?r.namespaceURI===ie?u==="svg":r.namespaceURI===Ne?u==="svg"&&(E==="annotation-xml"||lt[E]):!!ut[u]:e.namespaceURI===Ne?r.namespaceURI===ie?u==="math":r.namespaceURI===ke?u==="math"&&ct[E]:!!ft[u]:e.namespaceURI===ie?r.namespaceURI===ke&&!ct[E]||r.namespaceURI===Ne&&!lt[E]?!1:!ft[u]&&(Kt[u]||!ut[u]):!!(Te==="application/xhtml+xml"&&Ye[e.namespaceURI]):!1},$=function(e){Ae(n.removed,{element:e});try{_(e).removeChild(e)}catch(r){M(e)}},ve=function(e,r){try{Ae(n.removed,{attribute:r.getAttributeNode(e),from:r})}catch(u){Ae(n.removed,{attribute:null,from:r})}if(r.removeAttribute(e),e==="is"&&!y[e])if(pe||Me)try{$(r)}catch(u){}else try{r.setAttribute(e,"")}catch(u){}},mt=function(e){let r=null,u=null;if(ze)e="<remove></remove>"+e;else{const N=Rt(e,/^[\r\n\t ]+/);u=N&&N[0]}Te==="application/xhtml+xml"&&he===ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const E=d?d.createHTML(e):e;if(he===ie)try{r=new le().parseFromString(E,Te)}catch(N){}if(!r||!r.documentElement){r=j.createDocument(he,"template",null);try{r.documentElement.innerHTML=We?B:E}catch(N){}}const D=r.body||r.documentElement;return e&&u&&D.insertBefore(o.createTextNode(u),D.childNodes[0]||null),he===ie?J.call(r,ce?"html":"body")[0]:ce?r.documentElement:D},pt=function(e){return X.call(e.ownerDocument||e,e,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},dt=function(e){return e instanceof ae&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof C)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},_t=function(e){return typeof k=="function"&&e instanceof k},oe=function(e,r,u){g[e]&&De(g[e],E=>{E.call(n,r,u,ge)})},ht=function(e){let r=null;if(oe("beforeSanitizeElements",e,null),dt(e))return $(e),!0;const u=L(e.nodeName);if(oe("uponSanitizeElement",e,{tagName:u,allowedTags:A}),e.hasChildNodes()&&!_t(e.firstElementChild)&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent)||e.nodeType===xe.progressingInstruction||Fe&&e.nodeType===xe.comment&&P(/<[/\w]/g,e.data))return $(e),!0;if(!A[u]||T[u]){if(!T[u]&&Et(u)&&(l.tagNameCheck instanceof RegExp&&P(l.tagNameCheck,u)||l.tagNameCheck instanceof Function&&l.tagNameCheck(u)))return!1;if(Be&&!_e[u]){const E=_(e)||e.parentNode,D=F(e)||e.childNodes;if(D&&E){const N=D.length;for(let z=N-1;z>=0;--z){const ee=x(D[z],!0);ee.__removalCount=(e.__removalCount||0)+1,E.insertBefore(ee,se(e))}}}return $(e),!0}return e instanceof v&&!Zt(e)||(u==="noscript"||u==="noembed"||u==="noframes")&&P(/<\/no(script|embed|frames)/i,e.innerHTML)?($(e),!0):(me&&e.nodeType===xe.text&&(r=e.textContent,De([G,K,O],E=>{r=ye(r,E," ")}),e.textContent!==r&&(Ae(n.removed,{element:e.cloneNode()}),e.textContent=r)),oe("afterSanitizeElements",e,null),!1)},gt=function(e,r,u){if(tt&&(r==="id"||r==="name")&&(u in o||u in Jt))return!1;if(!(Ue&&!Z[r]&&P(fe,r))){if(!(H&&P(q,r))){if(!y[r]||Z[r]){if(!(Et(e)&&(l.tagNameCheck instanceof RegExp&&P(l.tagNameCheck,e)||l.tagNameCheck instanceof Function&&l.tagNameCheck(e))&&(l.attributeNameCheck instanceof RegExp&&P(l.attributeNameCheck,r)||l.attributeNameCheck instanceof Function&&l.attributeNameCheck(r))||r==="is"&&l.allowCustomizedBuiltInElements&&(l.tagNameCheck instanceof RegExp&&P(l.tagNameCheck,u)||l.tagNameCheck instanceof Function&&l.tagNameCheck(u))))return!1}else if(!Ge[r]){if(!P(re,ye(u,h,""))){if(!((r==="src"||r==="xlink:href"||r==="href")&&e!=="script"&&on(u,"data:")===0&&ot[e])){if(!($e&&!P(ne,ye(u,h,"")))){if(u)return!1}}}}}}return!0},Et=function(e){return e!=="annotation-xml"&&Rt(e,S)},Tt=function(e){oe("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:y};let E=r.length;for(;E--;){const D=r[E],{name:N,namespaceURI:z,value:ee}=D,Se=L(N);let I=N==="value"?ee:sn(ee);if(u.attrName=Se,u.attrValue=I,u.keepAttr=!0,u.forceKeepAttr=void 0,oe("uponSanitizeAttribute",e,u),I=u.attrValue,Fe&&P(/((--!?|])>)|<\/(style|title)/i,I)){ve(N,e);continue}if(u.forceKeepAttr||(ve(N,e),!u.keepAttr))continue;if(!et&&P(/\/>/i,I)){ve(N,e);continue}me&&De([G,K,O],bt=>{I=ye(I,bt," ")});const St=L(e.nodeName);if(gt(St,Se,I)){if(nt&&(Se==="id"||Se==="name")&&(ve(N,e),I=jt+I),d&&typeof Y=="object"&&typeof Y.getAttributeType=="function"&&!z)switch(Y.getAttributeType(St,Se)){case"TrustedHTML":{I=d.createHTML(I);break}case"TrustedScriptURL":{I=d.createScriptURL(I);break}}try{z?e.setAttributeNS(z,N,I):e.setAttribute(N,I),dt(e)?$(e):xt(n.removed)}catch(bt){}}}oe("afterSanitizeAttributes",e,null)},Qt=function f(e){let r=null;const u=pt(e);for(oe("beforeSanitizeShadowDOM",e,null);r=u.nextNode();)oe("uponSanitizeShadowNode",r,null),!ht(r)&&(r.content instanceof c&&f(r.content),Tt(r));oe("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(f){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null,u=null,E=null,D=null;if(We=!f,We&&(f="<!-->"),typeof f!="string"&&!_t(f))if(typeof f.toString=="function"){if(f=f.toString(),typeof f!="string")throw we("dirty is not a string, aborting")}else throw we("toString is not a function");if(!n.isSupported)return f;if(He||je(e),n.removed=[],typeof f=="string"&&(Ee=!1),Ee){if(f.nodeName){const ee=L(f.nodeName);if(!A[ee]||T[ee])throw we("root node is forbidden and cannot be sanitized in-place")}}else if(f instanceof k)r=mt("<!---->"),u=r.ownerDocument.importNode(f,!0),u.nodeType===xe.element&&u.nodeName==="BODY"||u.nodeName==="HTML"?r=u:r.appendChild(u);else{if(!pe&&!me&&!ce&&f.indexOf("<")===-1)return d&&Oe?d.createHTML(f):f;if(r=mt(f),!r)return pe?null:Oe?B:""}r&&ze&&$(r.firstChild);const N=pt(Ee?f:r);for(;E=N.nextNode();)ht(E)||(E.content instanceof c&&Qt(E.content),Tt(E));if(Ee)return f;if(pe){if(Me)for(D=R.call(r.ownerDocument);r.firstChild;)D.appendChild(r.firstChild);else D=r;return(y.shadowroot||y.shadowrootmode)&&(D=te.call(s,D,!0)),D}let z=ce?r.outerHTML:r.innerHTML;return ce&&A["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(Gt,r.ownerDocument.doctype.name)&&(z="<!DOCTYPE "+r.ownerDocument.doctype.name+`>
2
- `+z),me&&De([G,K,O],ee=>{z=ye(z,ee," ")}),d&&Oe?d.createHTML(z):z},n.setConfig=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};je(f),He=!0},n.clearConfig=function(){ge=null,He=!1},n.isValidAttribute=function(f,e,r){ge||je({});const u=L(f),E=L(e);return gt(u,E,r)},n.addHook=function(f,e){typeof e=="function"&&(g[f]=g[f]||[],Ae(g[f],e))},n.removeHook=function(f){if(g[f])return xt(g[f])},n.removeHooks=function(f){g[f]&&(g[f]=[])},n.removeAllHooks=function(){g={}},n}var vt=Wt();function Sn(i){t.append_styles(i,"svelte-122ajk5","*,*::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:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);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}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);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;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}")}const bn=i=>({}),Dt=i=>({}),An=i=>({}),It=i=>({}),yn=i=>({}),Pt=i=>({}),wn=i=>({}),Ut=i=>({class:"CashierSessionExpirationIcon"});function Ft(i){let n,o,s,a,c,p=i[8]("sessionExpirationHeader")+"",k,v,w,C,ae,le,Y,b,x,M,se,F,_,d,B;const j=i[22].icon,X=t.create_slot(j,i,i[21],Ut),R=X||Rn(i),J=i[22].title,te=t.create_slot(J,i,i[21],Pt),g=te||Ln(i),G=i[22].text,K=t.create_slot(G,i,i[21],It),O=K||Mn(i),fe=[Nn,On],q=[];function ne(h,S){return h[6]?0:1}return x=ne(i),M=q[x]=fe[x](i),{c(){n=t.element("div"),o=t.element("div"),s=t.element("div"),a=t.element("div"),c=t.element("div"),k=t.text(p),v=t.space(),w=t.element("div"),C=t.element("div"),R&&R.c(),ae=t.space(),g&&g.c(),le=t.space(),O&&O.c(),Y=t.space(),b=t.element("button"),M.c(),t.attr(c,"class","CashierSessionExpirationModalHeaderTitle"),t.attr(a,"class","CashierSessionExpirationModalHeader"),t.attr(b,"type","button"),b.disabled=i[6],t.attr(b,"class","CashierSessionExpirationButton"),t.attr(C,"class","CashierSessionExpiration"),t.attr(w,"class","CashierSessionExpirationModalContainer"),t.attr(s,"class","CashierSessionExpirationModalWrapper"),t.attr(o,"class","CashierSessionExpirationModalWindow"),t.attr(o,"id","CashierSessionExpirationModal"),t.add_render_callback(()=>i[24].call(o))},m(h,S){t.insert(h,n,S),t.append(n,o),t.append(o,s),t.append(s,a),t.append(a,c),t.append(c,k),t.append(s,v),t.append(s,w),t.append(w,C),R&&R.m(C,null),t.append(C,ae),g&&g.m(C,null),t.append(C,le),O&&O.m(C,null),t.append(C,Y),t.append(C,b),q[x].m(b,null),i[23](C),se=t.add_iframe_resize_listener(o,i[24].bind(o)),i[25](n),_=!0,d||(B=[t.listen(b,"click",i[9]),t.listen(o,"click",i[10])],d=!0)},p(h,S){i=h,(!_||S[0]&256)&&p!==(p=i[8]("sessionExpirationHeader")+"")&&t.set_data(k,p),X?X.p&&(!_||S[0]&2097152)&&t.update_slot_base(X,j,i,i[21],_?t.get_slot_changes(j,i[21],S,wn):t.get_all_dirty_from_scope(i[21]),Ut):R&&R.p&&(!_||S[0]&8)&&R.p(i,_?S:[-1,-1]),te?te.p&&(!_||S[0]&2097152)&&t.update_slot_base(te,J,i,i[21],_?t.get_slot_changes(J,i[21],S,yn):t.get_all_dirty_from_scope(i[21]),Pt):g&&g.p&&(!_||S[0]&256)&&g.p(i,_?S:[-1,-1]),K?K.p&&(!_||S[0]&2097152)&&t.update_slot_base(K,G,i,i[21],_?t.get_slot_changes(G,i[21],S,An):t.get_all_dirty_from_scope(i[21]),It):O&&O.p&&(!_||S[0]&384)&&O.p(i,_?S:[-1,-1]);let re=x;x=ne(i),x===re?q[x].p(i,S):(t.group_outros(),t.transition_out(q[re],1,1,()=>{q[re]=null}),t.check_outros(),M=q[x],M?M.p(i,S):(M=q[x]=fe[x](i),M.c()),t.transition_in(M,1),M.m(b,null)),(!_||S[0]&64)&&(b.disabled=i[6])},i(h){_||(t.transition_in(R,h),t.transition_in(g,h),t.transition_in(O,h),t.transition_in(M),h&&t.add_render_callback(()=>{_&&(F||(F=t.create_bidirectional_transition(o,At.fade,{duration:i[2]},!0)),F.run(1))}),_=!0)},o(h){t.transition_out(R,h),t.transition_out(g,h),t.transition_out(O,h),t.transition_out(M),h&&(F||(F=t.create_bidirectional_transition(o,At.fade,{duration:i[2]},!1)),F.run(0)),_=!1},d(h){h&&t.detach(n),R&&R.d(h),g&&g.d(h),O&&O.d(h),q[x].d(),i[23](null),se(),h&&F&&F.end(),i[25](null),d=!1,t.run_all(B)}}}function Cn(i){let n;return{c(){n=t.element("div"),t.attr(n,"class","ImagePlaceholder")},m(o,s){t.insert(o,n,s)},p:t.noop,d(o){o&&t.detach(n)}}}function xn(i){let n,o;return{c(){n=t.element("img"),t.src_url_equal(n.src,o=`${i[3]}/set-timeout-icon.png`)||t.attr(n,"src",o),t.attr(n,"width","300px"),t.attr(n,"alt","error")},m(s,a){t.insert(s,n,a)},p(s,a){a[0]&8&&!t.src_url_equal(n.src,o=`${s[3]}/set-timeout-icon.png`)&&t.attr(n,"src",o)},d(s){s&&t.detach(n)}}}function Rn(i){let n;function o(c,p){return c[3]?xn:Cn}let s=o(i),a=s(i);return{c(){a.c(),n=t.empty()},m(c,p){a.m(c,p),t.insert(c,n,p)},p(c,p){s===(s=o(c))&&a?a.p(c,p):(a.d(1),a=s(c),a&&(a.c(),a.m(n.parentNode,n)))},d(c){c&&t.detach(n),a.d(c)}}}function Ln(i){let n,o=i[8]("sessionExpirationTitle")+"",s;return{c(){n=t.element("span"),s=t.text(o),t.attr(n,"class","CashierSessionExpirationTitle")},m(a,c){t.insert(a,n,c),t.append(n,s)},p(a,c){c[0]&256&&o!==(o=a[8]("sessionExpirationTitle")+"")&&t.set_data(s,o)},d(a){a&&t.detach(n)}}}function Mn(i){let n,o=vt.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=t.element("span"),t.attr(n,"class","CashierSessionExpirationText")},m(s,a){t.insert(s,n,a),n.innerHTML=o},p(s,a){a[0]&384&&o!==(o=vt.sanitize(s[8]("sessionExpirationGeneralText",{values:{second:s[7]}}))+"")&&(n.innerHTML=o)},d(s){s&&t.detach(n)}}}function On(i){let n;const o=i[22].button,s=t.create_slot(o,i,i[21],Dt),a=s||kn(i);return{c(){a&&a.c()},m(c,p){a&&a.m(c,p),n=!0},p(c,p){s?s.p&&(!n||p[0]&2097152)&&t.update_slot_base(s,o,c,c[21],n?t.get_slot_changes(o,c[21],p,bn):t.get_all_dirty_from_scope(c[21]),Dt):a&&a.p&&(!n||p[0]&256)&&a.p(c,n?p:[-1,-1])},i(c){n||(t.transition_in(a,c),n=!0)},o(c){t.transition_out(a,c),n=!1},d(c){a&&a.d(c)}}}function Nn(i){let n,o,s,a,c,p=i[8]("sessionExpirationLoadingButton")+"",k;return{c(){n=t.element("div"),o=t.svg_element("svg"),s=t.svg_element("path"),a=t.space(),c=t.element("span"),k=t.text(p),t.attr(s,"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"),t.attr(s,"fill","white"),t.attr(o,"class","CashierSessionExpirationButtonSpinner"),t.attr(o,"xmlns","http://www.w3.org/2000/svg"),t.attr(o,"width","15"),t.attr(o,"height","14"),t.attr(o,"viewBox","0 0 15 14"),t.attr(o,"fill","none"),t.attr(c,"class","CashierSessionExpirationButtonText")},m(v,w){t.insert(v,n,w),t.append(n,o),t.append(o,s),t.append(n,a),t.append(n,c),t.append(c,k)},p(v,w){w[0]&256&&p!==(p=v[8]("sessionExpirationLoadingButton")+"")&&t.set_data(k,p)},i:t.noop,o:t.noop,d(v){v&&t.detach(n)}}}function kn(i){let n,o=i[8]("sessionExpirationGeneralButton")+"",s;return{c(){n=t.element("span"),s=t.text(o),t.attr(n,"class","CashierSessionExpirationButtonText")},m(a,c){t.insert(a,n,c),t.append(n,s)},p(a,c){c[0]&256&&o!==(o=a[8]("sessionExpirationGeneralButton")+"")&&t.set_data(s,o)},d(a){a&&t.detach(n)}}}function vn(i){let n,o,s=i[5]&&Ft(i);return{c(){s&&s.c(),n=t.empty()},m(a,c){s&&s.m(a,c),t.insert(a,n,c),o=!0},p(a,c){a[5]?s?(s.p(a,c),c[0]&32&&t.transition_in(s,1)):(s=Ft(a),s.c(),t.transition_in(s,1),s.m(n.parentNode,n)):s&&(t.group_outros(),t.transition_out(s,1,1,()=>{s=null}),t.check_outros())},i(a){o||(t.transition_in(s),o=!0)},o(a){t.transition_out(s),o=!1},d(a){a&&t.detach(n),s&&s.d(a)}}}const Dn=90;function In(i,n,o){let s,a;t.component_subscribe(i,be.xPaymentSessionToken,l=>o(20,s=l)),t.component_subscribe(i,t.$format,l=>o(8,a=l));let{$$slots:c={},$$scope:p}=n;be.dayjs.extend(be.utc);let{clientstyling:k=""}=n,{clientstylingurl:v=""}=n,{width:w}=n,{height:C}=n,{duration:ae=200}=n,{assetsurl:le=""}=n,{lang:Y="en"}=n,{translationurl:b=""}=n,{endpoint:x}=n,{currency:M}=n,{customerid:se}=n,{selectedpaymentmethodname:F}=n,{mbsource:_=""}=n,d,B=!1,j=!1,X,R,J,te,g;var G;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(G||(G={}));const K=l=>{l.data.type==="StartSessionCountdown"&&(te=l.data.paymentMethodName)},O=l=>{try{return JSON.parse(atob(l.split(".")[1]))}catch(T){return null}},fe=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:g},window.location.href)},q=l=>{o(5,B=!1);const T=O(l);T&&(R=T==null?void 0:T.exp,o(7,X=R),J&&clearInterval(J),J=setInterval(()=>{const Z=Math.floor(new Date().getTime()/1e3);o(7,X=R-Z),X<=Dn&&o(5,B=!0),Z>=R&&(ne(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},ne=()=>{o(7,X=0),o(5,B=!1),clearInterval(J)},h=()=>{if(j)return;const l=new URL(`${x}/v1/player/${se}/payment/GetPaymentMethod`),T=new Headers;o(6,j=!0),T.append("accept","application/json"),T.append("Content-Type","application/json"),T.append("X-Client-Request-Timestamp",be.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const Z={method:"POST",mode:"cors",headers:T,body:JSON.stringify({PaymentMethodName:te||F,Currency:M,XPaymentSessionToken:s})};fetch(l,Z).then(H=>H.json()).then(H=>{if(H.error){window.postMessage({type:"ShowSessionError",error:H.error},window.location.href),ne();return}if(H.ResponseCode===G.PlayerSessionIsNotValid||H.ResponseCode===G.JwtTokenError){g=H.ResponseCode,ne(),fe();return}if(H.ResponseCode!==G.Success){g=H.ResponseCode,ne();return}H.XPaymentSessionToken&&be.xPaymentSessionToken.set(H.XPaymentSessionToken)}).finally(()=>o(6,j=!1))},S=l=>{const T=l.currentTarget;l.target===T&&h()},re=()=>{fetch(b).then(T=>T.json()).then(T=>{Object.keys(T).forEach(Z=>{yt(Z,T[Z])})}).catch(T=>{console.log(T)})};Object.keys(wt).forEach(l=>{yt(l,wt[l])});const A=()=>{$t(Y)};t.onMount(()=>(window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),t.onDestroy(()=>{clearInterval(J)});function Re(l){t.binding_callbacks[l?"unshift":"push"](()=>{d=l,o(4,d)})}function y(){w=this.clientWidth,C=this.clientHeight,o(0,w),o(1,C)}function Le(l){t.binding_callbacks[l?"unshift":"push"](()=>{d=l,o(4,d)})}return i.$$set=l=>{"clientstyling"in l&&o(11,k=l.clientstyling),"clientstylingurl"in l&&o(12,v=l.clientstylingurl),"width"in l&&o(0,w=l.width),"height"in l&&o(1,C=l.height),"duration"in l&&o(2,ae=l.duration),"assetsurl"in l&&o(3,le=l.assetsurl),"lang"in l&&o(13,Y=l.lang),"translationurl"in l&&o(14,b=l.translationurl),"endpoint"in l&&o(15,x=l.endpoint),"currency"in l&&o(16,M=l.currency),"customerid"in l&&o(17,se=l.customerid),"selectedpaymentmethodname"in l&&o(18,F=l.selectedpaymentmethodname),"mbsource"in l&&o(19,_=l.mbsource),"$$scope"in l&&o(21,p=l.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&1048576&&q(s),i.$$.dirty[0]&8192&&Y&&A(),i.$$.dirty[0]&2064&&k&&d&&t.setClientStyling(d,k),i.$$.dirty[0]&4112&&v&&d&&t.setClientStylingURL(d,v),i.$$.dirty[0]&524304&&_&&d&&t.setStreamStyling(d,`${_}.Style`),i.$$.dirty[0]&16384&&b&&re()},[w,C,ae,le,d,B,j,X,a,h,S,k,v,Y,b,x,M,se,F,_,s,p,c,Re,y,Le]}class Yt extends t.SvelteComponent{constructor(n){super(),t.init$1(this,n,In,vn,t.safe_not_equal,{clientstyling:11,clientstylingurl:12,width:0,height:1,duration:2,assetsurl:3,lang:13,translationurl:14,endpoint:15,currency:16,customerid:17,selectedpaymentmethodname:18,mbsource:19},Sn,[-1,-1])}get clientstyling(){return this.$$.ctx[11]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get width(){return this.$$.ctx[0]}set width(n){this.$$set({width:n}),t.flush()}get height(){return this.$$.ctx[1]}set height(n){this.$$set({height:n}),t.flush()}get duration(){return this.$$.ctx[2]}set duration(n){this.$$set({duration:n}),t.flush()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(n){this.$$set({assetsurl:n}),t.flush()}get lang(){return this.$$.ctx[13]}set lang(n){this.$$set({lang:n}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get endpoint(){return this.$$.ctx[15]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get currency(){return this.$$.ctx[16]}set currency(n){this.$$set({currency:n}),t.flush()}get customerid(){return this.$$.ctx[17]}set customerid(n){this.$$set({customerid:n}),t.flush()}get selectedpaymentmethodname(){return this.$$.ctx[18]}set selectedpaymentmethodname(n){this.$$set({selectedpaymentmethodname:n}),t.flush()}get mbsource(){return this.$$.ctx[19]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}}t.create_custom_element(Yt,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Yt;