@everymatrix/cashier-page 1.77.18 → 1.77.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierCarousel-C-jIotRi.js → CashierCarousel-BZzZj6TH.js} +947 -990
- package/components/CashierCarousel-Cl1xonA7.cjs +23 -0
- package/components/{CashierCarousel-D9RhCULN.js → CashierCarousel-CqyFcV3a.js} +934 -977
- package/components/{CashierError-DFUpmwPW.js → CashierError-BmJ9hxWa.js} +2 -2
- package/components/{CashierError-gMoSUhpw.js → CashierError-CEU7qVFX.js} +2 -2
- package/components/{CashierError-am916cR_.cjs → CashierError-CUkWJWvf.cjs} +1 -1
- package/components/{CashierHeader-B3IckLiD.cjs → CashierHeader-B3nKMN4g.cjs} +1 -1
- package/components/{CashierHeader-CK_NVBvX.js → CashierHeader-DnKmGtm4.js} +1 -1
- package/components/{CashierHeader-Z4vR_fbH.js → CashierHeader-DprF60MK.js} +1 -1
- package/components/{CashierIframeRedirect-Cs3dAZqE.js → CashierIframeRedirect-BfhcdJkt.js} +3 -3
- package/components/{CashierIframeRedirect-Cae_sEXq.js → CashierIframeRedirect-Di43zJXO.js} +3 -3
- package/components/{CashierIframeRedirect-CdQkuIPa.cjs → CashierIframeRedirect-PgHTQAWC.cjs} +1 -1
- package/components/{CashierMethodDetails-f2nVnAEu.cjs → CashierMethodDetails-D8xv6F1d.cjs} +2 -2
- package/components/{CashierMethodDetails-DWh8sNEJ.js → CashierMethodDetails-DDFsqzQA.js} +6 -6
- package/components/{CashierMethodDetails-khwdIxvu.js → CashierMethodDetails-sVbEdNZ7.js} +6 -6
- package/components/{CashierMethodsList-DeCIPW3N.cjs → CashierMethodsList-B4FwxS7g.cjs} +1 -1
- package/components/{CashierMethodsList-CZkxXZST.js → CashierMethodsList-BZmz1WJv.js} +2 -2
- package/components/{CashierMethodsList-DXkNlgio.js → CashierMethodsList-DWoDX_nh.js} +2 -2
- package/components/{CashierModal-By3PyyVz.js → CashierModal-C0BiLUR3.js} +1 -1
- package/components/{CashierModal-D2cxw8Kv.cjs → CashierModal-CjkjMD7N.cjs} +1 -1
- package/components/{CashierModal-pKGYmx2d.js → CashierModal-DvqHQn9_.js} +1 -1
- package/components/{CashierNotifications-64xrf21d.js → CashierNotifications-1kq9OhV3.js} +1 -1
- package/components/{CashierNotifications-o1UTpxCw.cjs → CashierNotifications-CcXZ5DtE.cjs} +1 -1
- package/components/{CashierNotifications-Cot8tKyV.js → CashierNotifications-Z6pSN6qk.js} +1 -1
- package/components/{CashierPage-CDVatUXZ.js → CashierPage-57L5Yu3a.js} +11 -11
- package/components/{CashierPage-D537sTlX.js → CashierPage-BAad1lqn.js} +11 -11
- package/components/{CashierPage-CJxWyfnl.cjs → CashierPage-Ce28Aop2.cjs} +1 -1
- package/components/{CashierReceiptPage-ZjlpnjxZ.js → CashierReceiptPage-BD3XAWuB.js} +2 -2
- package/components/{CashierReceiptPage-vffilP0r.cjs → CashierReceiptPage-BQmzi38M.cjs} +1 -1
- package/components/{CashierReceiptPage-DJVOcSy_.js → CashierReceiptPage-D4nENrik.js} +2 -2
- package/components/{CashierSessionExpirationModal-BfRG-VY2.js → CashierSessionExpirationModal-BbJoUdDa.js} +3 -3
- package/components/{CashierSessionExpirationModal-BCfqE6Qk.js → CashierSessionExpirationModal-DHcJLSop.js} +3 -3
- package/components/{CashierSessionExpirationModal-BgZuMP6W.cjs → CashierSessionExpirationModal-DdIEPvu4.cjs} +1 -1
- package/components/{CashierSpinner-fUvoz21a.js → CashierSpinner-DbDsVLME.js} +1 -1
- package/components/{CashierSpinner-CIpXwm9I.js → CashierSpinner-EBB6ssZG.js} +1 -1
- package/components/{CashierSpinner-DOCzNsD8.cjs → CashierSpinner-yts_wpaP.cjs} +1 -1
- package/components/{CashierTransactionHistory-C_77nNRF.cjs → CashierTransactionHistory-Be5Xdd5K.cjs} +1 -1
- package/components/{CashierTransactionHistory-CHPwXvGA.js → CashierTransactionHistory-C-Xi_6tR.js} +6 -6
- package/components/{CashierTransactionHistory-DLBclLcC.js → CashierTransactionHistory-CkmB8XtT.js} +6 -6
- package/components/{CashierVerifications-D1I7kgbX.cjs → CashierVerifications-BzrvzA1c.cjs} +1 -1
- package/components/{CashierVerifications-B-e9bu7a.js → CashierVerifications-CPz6xjw1.js} +2 -2
- package/components/{CashierVerifications-DAfJTpBE.js → CashierVerifications-zaIEXC0O.js} +2 -2
- package/components/{TxnStatusIcon-Dx4SpBKR.cjs → TxnStatusIcon-5KrCODA2.cjs} +1 -1
- package/components/{TxnStatusIcon-C5YEVJGC.js → TxnStatusIcon-BhCjKEzv.js} +1 -1
- package/components/{TxnStatusIcon-Cdbn57Qc.js → TxnStatusIcon-Z6Bw6KLa.js} +1 -1
- package/components/{TxnTypeIcons-D-p9WLvQ.cjs → TxnTypeIcons-Bh0Anevx.cjs} +1 -1
- package/components/{TxnTypeIcons-DaYTcY0u.js → TxnTypeIcons-DTrSvliH.js} +1 -1
- package/components/{TxnTypeIcons-Dl8aWDV4.js → TxnTypeIcons-HXKTaH8v.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-B0NIExnR.js} +2 -2
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-D6HPqRtr.js} +2 -2
- package/stencil/index-97d17652-DNpK20ur.cjs +1 -0
- package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-BNDhSb9-.cjs} +1 -1
- package/stencil/{ui-image-DIEeZy5u.js → ui-image-DivxSsH2.js} +1 -1
- package/stencil/{ui-image-BWJXFWH1.js → ui-image-DrpynttK.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Cdo33umq.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-DbQ7SENq.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-L-CYescb.js} +2 -2
- package/components/CashierCarousel-DXPbv83E.cjs +0 -23
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-DXPbv83E.cjs"),At=require("./CashierModal-D2cxw8Kv.cjs"),be=require("./CashierMethodDetails-f2nVnAEu.cjs");function yt(i,n){t.addMessages(i,n)}function en(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:zt,setPrototypeOf:Ct,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:U,seal:V,create:Bt}=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,r){return n.apply(o,r)});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),rn=W(String.prototype.indexOf),sn=W(String.prototype.trim),Q=W(Object.prototype.hasOwnProperty),P=W(RegExp.prototype.test),we=an(TypeError);function W(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 Ze(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 Qe(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe;Ct&&Ct(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++)Q(i,n)||(i[n]=null);return i}function ue(i){const n=Bt(null);for(const[o,r]of zt(i))Q(i,o)&&(Array.isArray(r)?n[o]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=ue(r):n[o]=r);return n}function Ce(i,n){for(;i!==null;){const r=on(i,n);if(r){if(r.get)return W(r.get);if(typeof r.value=="function")return W(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"]),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"]),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"]),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"]),un=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"]),fn=V(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mn=V(/<%[\w\W]*|[\w\W]*%>/gm),pn=V(/\${[\w\W]*}/gm),dn=V(/^data-[\-\w.\u00B7-\uFFFF]/),hn=V(/^aria-[\-\w]+$/),Gt=V(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=V(/^(?:\w+script|data):/i),gn=V(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=V(/^html$/i),En=V(/^[a-z][.\w]*(-[.\w]+)+$/i);var vt=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:mn,TMPLIT_EXPR:pn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Gt,IS_SCRIPT_OR_DATA:_n,ATTR_WHITESPACE:gn,DOCTYPE_NAME:Wt,CUSTOM_ELEMENT:En});const xe={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},Sn=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(_){return _},createScriptURL(_){return _}})}catch(_){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==xe.document)return n.isSupported=!1,n;let{document:o}=i;const r=o,l=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:_,Node:v,Element:k,NodeFilter:w,NamedNodeMap:C=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:ae,DOMParser:le,trustedTypes:Y}=i,b=k.prototype,x=Ce(b,"cloneNode"),M=Ce(b,"remove"),re=Ce(b,"nextSibling"),F=Ce(b,"childNodes"),d=Ce(b,"parentNode");if(typeof _=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let p,B="";const{implementation:j,createNodeIterator:X,createDocumentFragment:R,getElementsByTagName:J}=o,{importNode:te}=r;let g={};n.isSupported=typeof zt=="function"&&typeof d=="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}=vt;let{IS_ALLOWED_URI:se}=vt,A=null;const Re=m({},[...Lt,...qe,...Ve,...Je,...Mt]);let y=null;const Le=m({},[...Ot,...Ke,...Nt,...Ie]);let a=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}})),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 Xt="user-content-";let Be=!0,Ee=!1,de={},he=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 Ge=null;const st=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",ve="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let _e=ie,We=!1,Ye=null;const qt=m({},[Ne,ve,ie],Xe);let Te=null;const Vt=["application/xhtml+xml","text/html"],Jt="text/html";let L=null,ge=null;const Kt=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=Vt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Jt: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):qt,Ge=Q(e,"ADD_URI_SAFE_ATTR")?m(ue(st),e.ADD_URI_SAFE_ATTR,L):st,ot=Q(e,"ADD_DATA_URI_TAGS")?m(ue(rt),e.ADD_DATA_URI_TAGS,L):rt,he=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,se=e.ALLOWED_URI_REGEXP||Gt,_e=e.NAMESPACE||ie,a=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(a.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(a.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(a.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&&(he===it&&(he=ue(he)),m(he,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.');p=e.TRUSTED_TYPES_POLICY,B=p.createHTML("")}else p===void 0&&(p=Sn(Y,l)),p!==null&&typeof B=="string"&&(B=p.createHTML(""));U&&U(e),ge=e}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Zt=m({},["title","style","font","a","script"]),ut=m({},[...qe,...Ve,...cn]),ft=m({},[...Je,...un]),Qt=function(e){let s=d(e);(!s||!s.tagName)&&(s={namespaceURI:_e,tagName:"template"});const c=Pe(e.tagName),E=Pe(s.tagName);return Ye[e.namespaceURI]?e.namespaceURI===ve?s.namespaceURI===ie?c==="svg":s.namespaceURI===Ne?c==="svg"&&(E==="annotation-xml"||lt[E]):!!ut[c]:e.namespaceURI===Ne?s.namespaceURI===ie?c==="math":s.namespaceURI===ve?c==="math"&&ct[E]:!!ft[c]:e.namespaceURI===ie?s.namespaceURI===ve&&!ct[E]||s.namespaceURI===Ne&&!lt[E]?!1:!ft[c]&&(Zt[c]||!ut[c]):!!(Te==="application/xhtml+xml"&&Ye[e.namespaceURI]):!1},$=function(e){Ae(n.removed,{element:e});try{d(e).removeChild(e)}catch(s){M(e)}},ke=function(e,s){try{Ae(n.removed,{attribute:s.getAttributeNode(e),from:s})}catch(c){Ae(n.removed,{attribute:null,from:s})}if(s.removeAttribute(e),e==="is"&&!y[e])if(pe||Me)try{$(s)}catch(c){}else try{s.setAttribute(e,"")}catch(c){}},mt=function(e){let s=null,c=null;if(ze)e="<remove></remove>"+e;else{const N=Rt(e,/^[\r\n\t ]+/);c=N&&N[0]}Te==="application/xhtml+xml"&&_e===ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const E=p?p.createHTML(e):e;if(_e===ie)try{s=new le().parseFromString(E,Te)}catch(N){}if(!s||!s.documentElement){s=j.createDocument(_e,"template",null);try{s.documentElement.innerHTML=We?B:E}catch(N){}}const D=s.body||s.documentElement;return e&&c&&D.insertBefore(o.createTextNode(c),D.childNodes[0]||null),_e===ie?J.call(s,ce?"html":"body")[0]:ce?s.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")},ht=function(e){return typeof v=="function"&&e instanceof v},oe=function(e,s,c){g[e]&&De(g[e],E=>{E.call(n,s,c,ge)})},_t=function(e){let s=null;if(oe("beforeSanitizeElements",e,null),dt(e))return $(e),!0;const c=L(e.nodeName);if(oe("uponSanitizeElement",e,{tagName:c,allowedTags:A}),e.hasChildNodes()&&!ht(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[c]||T[c]){if(!T[c]&&Et(c)&&(a.tagNameCheck instanceof RegExp&&P(a.tagNameCheck,c)||a.tagNameCheck instanceof Function&&a.tagNameCheck(c)))return!1;if(Be&&!he[c]){const E=d(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,re(e))}}}return $(e),!0}return e instanceof k&&!Qt(e)||(c==="noscript"||c==="noembed"||c==="noframes")&&P(/<\/no(script|embed|frames)/i,e.innerHTML)?($(e),!0):(me&&e.nodeType===xe.text&&(s=e.textContent,De([G,K,O],E=>{s=ye(s,E," ")}),e.textContent!==s&&(Ae(n.removed,{element:e.cloneNode()}),e.textContent=s)),oe("afterSanitizeElements",e,null),!1)},gt=function(e,s,c){if(tt&&(s==="id"||s==="name")&&(c in o||c in Kt))return!1;if(!(Ue&&!Z[s]&&P(fe,s))){if(!(H&&P(q,s))){if(!y[s]||Z[s]){if(!(Et(e)&&(a.tagNameCheck instanceof RegExp&&P(a.tagNameCheck,e)||a.tagNameCheck instanceof Function&&a.tagNameCheck(e))&&(a.attributeNameCheck instanceof RegExp&&P(a.attributeNameCheck,s)||a.attributeNameCheck instanceof Function&&a.attributeNameCheck(s))||s==="is"&&a.allowCustomizedBuiltInElements&&(a.tagNameCheck instanceof RegExp&&P(a.tagNameCheck,c)||a.tagNameCheck instanceof Function&&a.tagNameCheck(c))))return!1}else if(!Ge[s]){if(!P(se,ye(c,h,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&e!=="script"&&rn(c,"data:")===0&&ot[e])){if(!($e&&!P(ne,ye(c,h,"")))){if(c)return!1}}}}}}return!0},Et=function(e){return e!=="annotation-xml"&&Rt(e,S)},Tt=function(e){oe("beforeSanitizeAttributes",e,null);const{attributes:s}=e;if(!s)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:y};let E=s.length;for(;E--;){const D=s[E],{name:N,namespaceURI:z,value:ee}=D,Se=L(N);let I=N==="value"?ee:sn(ee);if(c.attrName=Se,c.attrValue=I,c.keepAttr=!0,c.forceKeepAttr=void 0,oe("uponSanitizeAttribute",e,c),I=c.attrValue,Fe&&P(/((--!?|])>)|<\/(style|title)/i,I)){ke(N,e);continue}if(c.forceKeepAttr||(ke(N,e),!c.keepAttr))continue;if(!et&&P(/\/>/i,I)){ke(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")&&(ke(N,e),I=Xt+I),p&&typeof Y=="object"&&typeof Y.getAttributeType=="function"&&!z)switch(Y.getAttributeType(St,Se)){case"TrustedHTML":{I=p.createHTML(I);break}case"TrustedScriptURL":{I=p.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)},$t=function u(e){let s=null;const c=pt(e);for(oe("beforeSanitizeShadowDOM",e,null);s=c.nextNode();)oe("uponSanitizeShadowNode",s,null),!_t(s)&&(s.content instanceof f&&u(s.content),Tt(s));oe("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(u){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=null,c=null,E=null,D=null;if(We=!u,We&&(u="<!-->"),typeof u!="string"&&!ht(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw we("dirty is not a string, aborting")}else throw we("toString is not a function");if(!n.isSupported)return u;if(He||je(e),n.removed=[],typeof u=="string"&&(Ee=!1),Ee){if(u.nodeName){const ee=L(u.nodeName);if(!A[ee]||T[ee])throw we("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof v)s=mt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===xe.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!pe&&!me&&!ce&&u.indexOf("<")===-1)return p&&Oe?p.createHTML(u):u;if(s=mt(u),!s)return pe?null:Oe?B:""}s&&ze&&$(s.firstChild);const N=pt(Ee?u:s);for(;E=N.nextNode();)_t(E)||(E.content instanceof f&&$t(E.content),Tt(E));if(Ee)return u;if(pe){if(Me)for(D=R.call(s.ownerDocument);s.firstChild;)D.appendChild(s.firstChild);else D=s;return(y.shadowroot||y.shadowrootmode)&&(D=te.call(r,D,!0)),D}let z=ce?s.outerHTML:s.innerHTML;return ce&&A["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&P(Wt,s.ownerDocument.doctype.name)&&(z="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-Cl1xonA7.cjs"),At=require("./CashierModal-CjkjMD7N.cjs"),be=require("./CashierMethodDetails-D8xv6F1d.cjs");function yt(i,n){t.addMessages(i,n)}function en(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:zt,setPrototypeOf:Ct,isFrozen:tn,getPrototypeOf:nn,getOwnPropertyDescriptor:on}=Object;let{freeze:U,seal:V,create:Bt}=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,r){return n.apply(o,r)});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),rn=W(String.prototype.indexOf),sn=W(String.prototype.trim),Q=W(Object.prototype.hasOwnProperty),P=W(RegExp.prototype.test),we=an(TypeError);function W(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 Ze(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 Qe(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe;Ct&&Ct(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++)Q(i,n)||(i[n]=null);return i}function ue(i){const n=Bt(null);for(const[o,r]of zt(i))Q(i,o)&&(Array.isArray(r)?n[o]=ln(r):r&&typeof r=="object"&&r.constructor===Object?n[o]=ue(r):n[o]=r);return n}function Ce(i,n){for(;i!==null;){const r=on(i,n);if(r){if(r.get)return W(r.get);if(typeof r.value=="function")return W(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"]),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"]),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"]),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"]),un=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"]),fn=V(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mn=V(/<%[\w\W]*|[\w\W]*%>/gm),pn=V(/\${[\w\W]*}/gm),dn=V(/^data-[\-\w.\u00B7-\uFFFF]/),hn=V(/^aria-[\-\w]+$/),Gt=V(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=V(/^(?:\w+script|data):/i),gn=V(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=V(/^html$/i),En=V(/^[a-z][.\w]*(-[.\w]+)+$/i);var vt=Object.freeze({__proto__:null,MUSTACHE_EXPR:fn,ERB_EXPR:mn,TMPLIT_EXPR:pn,DATA_ATTR:dn,ARIA_ATTR:hn,IS_ALLOWED_URI:Gt,IS_SCRIPT_OR_DATA:_n,ATTR_WHITESPACE:gn,DOCTYPE_NAME:Wt,CUSTOM_ELEMENT:En});const xe={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window=="undefined"?null:window},Sn=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(_){return _},createScriptURL(_){return _}})}catch(_){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Yt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=u=>Yt(u);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==xe.document)return n.isSupported=!1,n;let{document:o}=i;const r=o,l=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:_,Node:v,Element:k,NodeFilter:w,NamedNodeMap:C=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:ae,DOMParser:le,trustedTypes:Y}=i,b=k.prototype,x=Ce(b,"cloneNode"),M=Ce(b,"remove"),re=Ce(b,"nextSibling"),F=Ce(b,"childNodes"),d=Ce(b,"parentNode");if(typeof _=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let p,B="";const{implementation:j,createNodeIterator:X,createDocumentFragment:R,getElementsByTagName:J}=o,{importNode:te}=r;let g={};n.isSupported=typeof zt=="function"&&typeof d=="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}=vt;let{IS_ALLOWED_URI:se}=vt,A=null;const Re=m({},[...Lt,...qe,...Ve,...Je,...Mt]);let y=null;const Le=m({},[...Ot,...Ke,...Nt,...Ie]);let a=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}})),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 Xt="user-content-";let Be=!0,Ee=!1,de={},he=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 Ge=null;const st=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",ve="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let _e=ie,We=!1,Ye=null;const qt=m({},[Ne,ve,ie],Xe);let Te=null;const Vt=["application/xhtml+xml","text/html"],Jt="text/html";let L=null,ge=null;const Kt=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=Vt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Jt: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):qt,Ge=Q(e,"ADD_URI_SAFE_ATTR")?m(ue(st),e.ADD_URI_SAFE_ATTR,L):st,ot=Q(e,"ADD_DATA_URI_TAGS")?m(ue(rt),e.ADD_DATA_URI_TAGS,L):rt,he=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,se=e.ALLOWED_URI_REGEXP||Gt,_e=e.NAMESPACE||ie,a=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(a.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(a.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(a.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&&(he===it&&(he=ue(he)),m(he,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.');p=e.TRUSTED_TYPES_POLICY,B=p.createHTML("")}else p===void 0&&(p=Sn(Y,l)),p!==null&&typeof B=="string"&&(B=p.createHTML(""));U&&U(e),ge=e}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Zt=m({},["title","style","font","a","script"]),ut=m({},[...qe,...Ve,...cn]),ft=m({},[...Je,...un]),Qt=function(e){let s=d(e);(!s||!s.tagName)&&(s={namespaceURI:_e,tagName:"template"});const c=Pe(e.tagName),E=Pe(s.tagName);return Ye[e.namespaceURI]?e.namespaceURI===ve?s.namespaceURI===ie?c==="svg":s.namespaceURI===Ne?c==="svg"&&(E==="annotation-xml"||lt[E]):!!ut[c]:e.namespaceURI===Ne?s.namespaceURI===ie?c==="math":s.namespaceURI===ve?c==="math"&&ct[E]:!!ft[c]:e.namespaceURI===ie?s.namespaceURI===ve&&!ct[E]||s.namespaceURI===Ne&&!lt[E]?!1:!ft[c]&&(Zt[c]||!ut[c]):!!(Te==="application/xhtml+xml"&&Ye[e.namespaceURI]):!1},$=function(e){Ae(n.removed,{element:e});try{d(e).removeChild(e)}catch(s){M(e)}},ke=function(e,s){try{Ae(n.removed,{attribute:s.getAttributeNode(e),from:s})}catch(c){Ae(n.removed,{attribute:null,from:s})}if(s.removeAttribute(e),e==="is"&&!y[e])if(pe||Me)try{$(s)}catch(c){}else try{s.setAttribute(e,"")}catch(c){}},mt=function(e){let s=null,c=null;if(ze)e="<remove></remove>"+e;else{const N=Rt(e,/^[\r\n\t ]+/);c=N&&N[0]}Te==="application/xhtml+xml"&&_e===ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const E=p?p.createHTML(e):e;if(_e===ie)try{s=new le().parseFromString(E,Te)}catch(N){}if(!s||!s.documentElement){s=j.createDocument(_e,"template",null);try{s.documentElement.innerHTML=We?B:E}catch(N){}}const D=s.body||s.documentElement;return e&&c&&D.insertBefore(o.createTextNode(c),D.childNodes[0]||null),_e===ie?J.call(s,ce?"html":"body")[0]:ce?s.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")},ht=function(e){return typeof v=="function"&&e instanceof v},oe=function(e,s,c){g[e]&&De(g[e],E=>{E.call(n,s,c,ge)})},_t=function(e){let s=null;if(oe("beforeSanitizeElements",e,null),dt(e))return $(e),!0;const c=L(e.nodeName);if(oe("uponSanitizeElement",e,{tagName:c,allowedTags:A}),e.hasChildNodes()&&!ht(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[c]||T[c]){if(!T[c]&&Et(c)&&(a.tagNameCheck instanceof RegExp&&P(a.tagNameCheck,c)||a.tagNameCheck instanceof Function&&a.tagNameCheck(c)))return!1;if(Be&&!he[c]){const E=d(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,re(e))}}}return $(e),!0}return e instanceof k&&!Qt(e)||(c==="noscript"||c==="noembed"||c==="noframes")&&P(/<\/no(script|embed|frames)/i,e.innerHTML)?($(e),!0):(me&&e.nodeType===xe.text&&(s=e.textContent,De([G,K,O],E=>{s=ye(s,E," ")}),e.textContent!==s&&(Ae(n.removed,{element:e.cloneNode()}),e.textContent=s)),oe("afterSanitizeElements",e,null),!1)},gt=function(e,s,c){if(tt&&(s==="id"||s==="name")&&(c in o||c in Kt))return!1;if(!(Ue&&!Z[s]&&P(fe,s))){if(!(H&&P(q,s))){if(!y[s]||Z[s]){if(!(Et(e)&&(a.tagNameCheck instanceof RegExp&&P(a.tagNameCheck,e)||a.tagNameCheck instanceof Function&&a.tagNameCheck(e))&&(a.attributeNameCheck instanceof RegExp&&P(a.attributeNameCheck,s)||a.attributeNameCheck instanceof Function&&a.attributeNameCheck(s))||s==="is"&&a.allowCustomizedBuiltInElements&&(a.tagNameCheck instanceof RegExp&&P(a.tagNameCheck,c)||a.tagNameCheck instanceof Function&&a.tagNameCheck(c))))return!1}else if(!Ge[s]){if(!P(se,ye(c,h,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&e!=="script"&&rn(c,"data:")===0&&ot[e])){if(!($e&&!P(ne,ye(c,h,"")))){if(c)return!1}}}}}}return!0},Et=function(e){return e!=="annotation-xml"&&Rt(e,S)},Tt=function(e){oe("beforeSanitizeAttributes",e,null);const{attributes:s}=e;if(!s)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:y};let E=s.length;for(;E--;){const D=s[E],{name:N,namespaceURI:z,value:ee}=D,Se=L(N);let I=N==="value"?ee:sn(ee);if(c.attrName=Se,c.attrValue=I,c.keepAttr=!0,c.forceKeepAttr=void 0,oe("uponSanitizeAttribute",e,c),I=c.attrValue,Fe&&P(/((--!?|])>)|<\/(style|title)/i,I)){ke(N,e);continue}if(c.forceKeepAttr||(ke(N,e),!c.keepAttr))continue;if(!et&&P(/\/>/i,I)){ke(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")&&(ke(N,e),I=Xt+I),p&&typeof Y=="object"&&typeof Y.getAttributeType=="function"&&!z)switch(Y.getAttributeType(St,Se)){case"TrustedHTML":{I=p.createHTML(I);break}case"TrustedScriptURL":{I=p.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)},$t=function u(e){let s=null;const c=pt(e);for(oe("beforeSanitizeShadowDOM",e,null);s=c.nextNode();)oe("uponSanitizeShadowNode",s,null),!_t(s)&&(s.content instanceof f&&u(s.content),Tt(s));oe("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(u){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=null,c=null,E=null,D=null;if(We=!u,We&&(u="<!-->"),typeof u!="string"&&!ht(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw we("dirty is not a string, aborting")}else throw we("toString is not a function");if(!n.isSupported)return u;if(He||je(e),n.removed=[],typeof u=="string"&&(Ee=!1),Ee){if(u.nodeName){const ee=L(u.nodeName);if(!A[ee]||T[ee])throw we("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof v)s=mt("<!---->"),c=s.ownerDocument.importNode(u,!0),c.nodeType===xe.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?s=c:s.appendChild(c);else{if(!pe&&!me&&!ce&&u.indexOf("<")===-1)return p&&Oe?p.createHTML(u):u;if(s=mt(u),!s)return pe?null:Oe?B:""}s&&ze&&$(s.firstChild);const N=pt(Ee?u:s);for(;E=N.nextNode();)_t(E)||(E.content instanceof f&&$t(E.content),Tt(E));if(Ee)return u;if(pe){if(Me)for(D=R.call(s.ownerDocument);s.firstChild;)D.appendChild(s.firstChild);else D=s;return(y.shadowroot||y.shadowrootmode)&&(D=te.call(r,D,!0)),D}let z=ce?s.outerHTML:s.innerHTML;return ce&&A["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&P(Wt,s.ownerDocument.doctype.name)&&(z="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
2
2
|
`+z),me&&De([G,K,O],ee=>{z=ye(z,ee," ")}),p&&Oe?p.createHTML(z):z},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};je(u),He=!0},n.clearConfig=function(){ge=null,He=!1},n.isValidAttribute=function(u,e,s){ge||je({});const c=L(u),E=L(e);return gt(c,E,s)},n.addHook=function(u,e){typeof e=="function"&&(g[u]=g[u]||[],Ae(g[u],e))},n.removeHook=function(u){if(g[u])return xt(g[u])},n.removeHooks=function(u){g[u]&&(g[u]=[])},n.removeAllHooks=function(){g={}},n}var kt=Yt();function bn(i){t.append_styles(i,"svelte-878602","*,*::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)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);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, #3854FF)}.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}.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, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);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}}")}const An=i=>({}),Dt=i=>({}),yn=i=>({}),It=i=>({}),wn=i=>({}),Pt=i=>({}),Cn=i=>({}),Ut=i=>({class:"CashierSessionExpirationIcon"});function Ft(i){let n,o,r,l,f,_=i[8]("sessionExpirationHeader")+"",v,k,w,C,ae,le,Y,b,x,M,re,F,d,p,B;const j=i[22].icon,X=t.create_slot(j,i,i[21],Ut),R=X||xn(i),J=i[22].title,te=t.create_slot(J,i,i[21],Pt),g=te||Rn(i),G=i[22].text,K=t.create_slot(G,i,i[21],It),O=K||Ln(i),fe=[On,Mn],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"),r=t.element("div"),l=t.element("div"),f=t.element("div"),v=t.text(_),k=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(f,"class","CashierSessionExpirationModalHeaderTitle"),t.attr(l,"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(r,"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,r),t.append(r,l),t.append(l,f),t.append(f,v),t.append(r,k),t.append(r,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),re=t.add_iframe_resize_listener(o,i[24].bind(o)),i[25](n),d=!0,p||(B=[t.listen(b,"click",i[9]),t.listen(o,"click",i[10])],p=!0)},p(h,S){i=h,(!d||S[0]&256)&&_!==(_=i[8]("sessionExpirationHeader")+"")&&t.set_data(v,_),X?X.p&&(!d||S[0]&2097152)&&t.update_slot_base(X,j,i,i[21],d?t.get_slot_changes(j,i[21],S,Cn):t.get_all_dirty_from_scope(i[21]),Ut):R&&R.p&&(!d||S[0]&8)&&R.p(i,d?S:[-1,-1]),te?te.p&&(!d||S[0]&2097152)&&t.update_slot_base(te,J,i,i[21],d?t.get_slot_changes(J,i[21],S,wn):t.get_all_dirty_from_scope(i[21]),Pt):g&&g.p&&(!d||S[0]&256)&&g.p(i,d?S:[-1,-1]),K?K.p&&(!d||S[0]&2097152)&&t.update_slot_base(K,G,i,i[21],d?t.get_slot_changes(G,i[21],S,yn):t.get_all_dirty_from_scope(i[21]),It):O&&O.p&&(!d||S[0]&384)&&O.p(i,d?S:[-1,-1]);let se=x;x=ne(i),x===se?q[x].p(i,S):(t.group_outros(),t.transition_out(q[se],1,1,()=>{q[se]=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)),(!d||S[0]&64)&&(b.disabled=i[6])},i(h){d||(t.transition_in(R,h),t.transition_in(g,h),t.transition_in(O,h),t.transition_in(M),h&&t.add_render_callback(()=>{d&&(F||(F=t.create_bidirectional_transition(o,At.fade,{duration:i[2]},!0)),F.run(1))}),d=!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)),d=!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),re(),h&&F&&F.end(),i[25](null),p=!1,t.run_all(B)}}}function Ht(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(r,l){t.insert(r,n,l)},p(r,l){l[0]&8&&!t.src_url_equal(n.src,o=`${r[3]}/set-timeout-icon.png`)&&t.attr(n,"src",o)},d(r){r&&t.detach(n)}}}function xn(i){let n,o=i[3]&&Ht(i);return{c(){o&&o.c(),n=t.empty()},m(r,l){o&&o.m(r,l),t.insert(r,n,l)},p(r,l){r[3]?o?o.p(r,l):(o=Ht(r),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(r){r&&t.detach(n),o&&o.d(r)}}}function Rn(i){let n,o=i[8]("sessionExpirationTitle")+"",r;return{c(){n=t.element("span"),r=t.text(o),t.attr(n,"class","CashierSessionExpirationTitle")},m(l,f){t.insert(l,n,f),t.append(n,r)},p(l,f){f[0]&256&&o!==(o=l[8]("sessionExpirationTitle")+"")&&t.set_data(r,o)},d(l){l&&t.detach(n)}}}function Ln(i){let n,o=kt.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=t.element("span"),t.attr(n,"class","CashierSessionExpirationText")},m(r,l){t.insert(r,n,l),n.innerHTML=o},p(r,l){l[0]&384&&o!==(o=kt.sanitize(r[8]("sessionExpirationGeneralText",{values:{second:r[7]}}))+"")&&(n.innerHTML=o)},d(r){r&&t.detach(n)}}}function Mn(i){let n;const o=i[22].button,r=t.create_slot(o,i,i[21],Dt),l=r||Nn(i);return{c(){l&&l.c()},m(f,_){l&&l.m(f,_),n=!0},p(f,_){r?r.p&&(!n||_[0]&2097152)&&t.update_slot_base(r,o,f,f[21],n?t.get_slot_changes(o,f[21],_,An):t.get_all_dirty_from_scope(f[21]),Dt):l&&l.p&&(!n||_[0]&256)&&l.p(f,n?_:[-1,-1])},i(f){n||(t.transition_in(l,f),n=!0)},o(f){t.transition_out(l,f),n=!1},d(f){l&&l.d(f)}}}function On(i){let n,o,r,l,f,_=i[8]("sessionExpirationLoadingButton")+"",v;return{c(){n=t.element("div"),o=t.svg_element("svg"),r=t.svg_element("path"),l=t.space(),f=t.element("span"),v=t.text(_),t.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"),t.attr(r,"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(f,"class","CashierSessionExpirationButtonText")},m(k,w){t.insert(k,n,w),t.append(n,o),t.append(o,r),t.append(n,l),t.append(n,f),t.append(f,v)},p(k,w){w[0]&256&&_!==(_=k[8]("sessionExpirationLoadingButton")+"")&&t.set_data(v,_)},i:t.noop,o:t.noop,d(k){k&&t.detach(n)}}}function Nn(i){let n,o=i[8]("sessionExpirationGeneralButton")+"",r;return{c(){n=t.element("span"),r=t.text(o),t.attr(n,"class","CashierSessionExpirationButtonText")},m(l,f){t.insert(l,n,f),t.append(n,r)},p(l,f){f[0]&256&&o!==(o=l[8]("sessionExpirationGeneralButton")+"")&&t.set_data(r,o)},d(l){l&&t.detach(n)}}}function vn(i){let n,o,r=i[5]&&Ft(i);return{c(){r&&r.c(),n=t.empty()},m(l,f){r&&r.m(l,f),t.insert(l,n,f),o=!0},p(l,f){l[5]?r?(r.p(l,f),f[0]&32&&t.transition_in(r,1)):(r=Ft(l),r.c(),t.transition_in(r,1),r.m(n.parentNode,n)):r&&(t.group_outros(),t.transition_out(r,1,1,()=>{r=null}),t.check_outros())},i(l){o||(t.transition_in(r),o=!0)},o(l){t.transition_out(r),o=!1},d(l){l&&t.detach(n),r&&r.d(l)}}}const kn=90;function Dn(i,n,o){let r,l;t.component_subscribe(i,be.xPaymentSessionToken,a=>o(20,r=a)),t.component_subscribe(i,t.$format,a=>o(8,l=a));let{$$slots:f={},$$scope:_}=n;be.dayjs.extend(be.utc);let{clientstyling:v=""}=n,{clientstylingurl:k=""}=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:re}=n,{selectedpaymentmethodname:F}=n,{mbsource:d=""}=n,p,B=!1,j=!1,X,R,J,te,g;var G;(function(a){a.PlayerSessionIsNotValid="PlayerSessionIsNotValid",a.Success="Success",a.JwtTokenError="JwtTokenError"})(G||(G={}));const K=a=>{a.data.type==="StartSessionCountdown"&&(te=a.data.paymentMethodName)},O=a=>{try{return JSON.parse(atob(a.split(".")[1]))}catch(T){return null}},fe=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:g},window.location.href)},q=a=>{o(5,B=!1);const T=O(a);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<=kn&&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 a=new URL(`${x}/v1/player/${re}/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:r})};fetch(a,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=a=>{const T=a.currentTarget;a.target===T&&h()},se=()=>{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(a=>{yt(a,wt[a])});const A=()=>{en(Y)};t.onMount(()=>(window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),t.onDestroy(()=>{clearInterval(J)});function Re(a){t.binding_callbacks[a?"unshift":"push"](()=>{p=a,o(4,p)})}function y(){w=this.clientWidth,C=this.clientHeight,o(0,w),o(1,C)}function Le(a){t.binding_callbacks[a?"unshift":"push"](()=>{p=a,o(4,p)})}return i.$$set=a=>{"clientstyling"in a&&o(11,v=a.clientstyling),"clientstylingurl"in a&&o(12,k=a.clientstylingurl),"width"in a&&o(0,w=a.width),"height"in a&&o(1,C=a.height),"duration"in a&&o(2,ae=a.duration),"assetsurl"in a&&o(3,le=a.assetsurl),"lang"in a&&o(13,Y=a.lang),"translationurl"in a&&o(14,b=a.translationurl),"endpoint"in a&&o(15,x=a.endpoint),"currency"in a&&o(16,M=a.currency),"customerid"in a&&o(17,re=a.customerid),"selectedpaymentmethodname"in a&&o(18,F=a.selectedpaymentmethodname),"mbsource"in a&&o(19,d=a.mbsource),"$$scope"in a&&o(21,_=a.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&1048576&&q(r),i.$$.dirty[0]&8192&&Y&&A(),i.$$.dirty[0]&2064&&v&&p&&t.setClientStyling(p,v),i.$$.dirty[0]&4112&&k&&p&&t.setClientStylingURL(p,k),i.$$.dirty[0]&524304&&d&&p&&t.setStreamStyling(p,`${d}.Style`),i.$$.dirty[0]&16384&&b&&se()},[w,C,ae,le,p,B,j,X,l,h,S,v,k,Y,b,x,M,re,F,d,r,_,f,Re,y,Le]}class jt extends t.SvelteComponent{constructor(n){super(),t.init$1(this,n,Dn,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},bn,[-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(jt,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=jt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as h, b as f, s as m, f as o, c as y, I as c, e as d, l as g, n as p, p as k, r as b, y as S, D as x, E as v, F as w, G as _ } from "./CashierCarousel-
|
|
1
|
+
import { S as h, b as f, s as m, f as o, c as y, I as c, e as d, l as g, n as p, p as k, r as b, y as S, D as x, E as v, F as w, G as _ } from "./CashierCarousel-CqyFcV3a.js";
|
|
2
2
|
function C(e) {
|
|
3
3
|
y(e, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as h, b as m, s as f, f as o, c as d, I as c, e as y, m as g, o as p, q as k, v as b, z as S, D as x, E as v, F as w, G as _ } from "./CashierCarousel-
|
|
1
|
+
import { S as h, b as m, s as f, f as o, c as d, I as c, e as y, m as g, o as p, q as k, v as b, z as S, D as x, E as v, F as w, G as _ } from "./CashierCarousel-BZzZj6TH.js";
|
|
2
2
|
function C(e) {
|
|
3
3
|
d(e, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-Cl1xonA7.cjs");function h(n){t.append_styles(n,"svelte-sjjtuo",".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function d(n){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner")},m(r,l){t.insert(r,e,l),n[4](e)},p:t.noop,i:t.noop,o:t.noop,d(r){r&&t.detach(e),n[4](null)}}}function f(n,e,r){let{clientstyling:l=""}=e,{clientstylingurl:o=""}=e,{mbsource:a=""}=e,i;t.onMount(()=>()=>{});function u(s){t.binding_callbacks[s?"unshift":"push"](()=>{i=s,r(0,i)})}return n.$$set=s=>{"clientstyling"in s&&r(1,l=s.clientstyling),"clientstylingurl"in s&&r(2,o=s.clientstylingurl),"mbsource"in s&&r(3,a=s.mbsource)},n.$$.update=()=>{n.$$.dirty&3&&l&&i&&t.setClientStyling(i,l),n.$$.dirty&5&&o&&i&&t.setClientStylingURL(i,o),n.$$.dirty&9&&a&&i&&t.setStreamStyling(i,`${a}.Style`)},[i,l,o,a,u]}class c extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,f,d,t.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(c,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=c;
|
package/components/{CashierTransactionHistory-C_77nNRF.cjs → CashierTransactionHistory-Be5Xdd5K.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-DXPbv83E.cjs"),me=require("./CashierModal-D2cxw8Kv.cjs"),U=require("./CashierMethodDetails-f2nVnAEu.cjs");require("../stencil/ui-image-ByEXiBzx.cjs");const Fe=require("./TxnTypeIcons-D-p9WLvQ.cjs"),Ie=require("./TxnStatusIcon-Dx4SpBKR.cjs");e.init({fallbackLocale:"en"});function ye(n,t){e.addMessages(n,t)}function Ae(n){e.$locale.set(n)}const he={en:{transactionHistoryTitle:"Transaction History",transactionCodeTitle:"ID",transactionDateTitle:"Date",transactionDateTimeTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",transactionStatusIconTitle:"Status",transactionTypeIconTitle:"Type",copyTransactionId:"Transaction Id copied to clipboard",transactionAmountTitle:"Amount",transactionPaymentMethodTitle:"Payment Method",transactionRejectionNoteTitle:"Rejection Note",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionDateTimeTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",transactionStatusIconTitle:"Durum",transactionTypeIconTitle:"Tip",transactionAmountTitle:"Tutar",transactionRejectionNoteTitle:"Reddetme Notu",transactionPaymentMethodTitle:"Ödeme Yöntemi",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function Pe(n){e.append_styles(n,"svelte-ywswwa",'.svelte-ywswwa.svelte-ywswwa,.svelte-ywswwa.svelte-ywswwa::before,.svelte-ywswwa.svelte-ywswwa::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-ywswwa.svelte-ywswwa{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistoryContainer.svelte-ywswwa.svelte-ywswwa{position:relative}.CashierTransactionHistory.svelte-ywswwa.svelte-ywswwa{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-ywswwa table.svelte-ywswwa{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-ywswwa table.svelte-ywswwa:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-ywswwa thead tr.svelte-ywswwa{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-ywswwa tbody tr.svelte-ywswwa{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-ywswwa tbody tr.svelte-ywswwa:not(:last-child):not(.Expanded){border-bottom:1px solid #E8E9EB}.CashierTransactionHistory.svelte-ywswwa .TypeIcon.svelte-ywswwa{display:flex}.CashierTransactionHistory.svelte-ywswwa .StatusIcon svg.svelte-ywswwa{flex:0 0 auto;width:18px;height:18px}.CashierTransactionHistory.svelte-ywswwa .StatusIcon span.svelte-ywswwa{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;width:80px}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa{max-width:250px;vertical-align:middle;height:40px;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-ywswwa td:last-child .CashierTransactionHistoryStatusText.svelte-ywswwa{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa:first-child{text-align:left}.CashierTransactionHistory.svelte-ywswwa td .ExpandedContent.svelte-ywswwa{line-height:100%}.CashierTransactionHistory.svelte-ywswwa tr.svelte-ywswwa{position:relative}.CashierTransactionHistory.svelte-ywswwa tr.svelte-ywswwa:not(.ExpandedRow):not(.CashierTransactionHistoryHeader):not(.AllowExpand):hover{background:var(--emw--color-gray-50, #F7F8FA)}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-ywswwa .CopyTooltip.svelte-ywswwa{width:100%}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa:has(.Code){max-width:135px}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-ywswwa .CashierTransactionHistoryWrapper.svelte-ywswwa{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-ywswwa td.column-TypeIcon.svelte-ywswwa:first-child{width:40px;text-align:left}.CashierTransactionHistory.svelte-ywswwa td.column-Code.svelte-ywswwa:first-child{max-width:60px;text-align:left}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-ywswwa table.svelte-ywswwa{table-layout:fixed}.CashierTransactionHistory.svelte-ywswwa table td.svelte-ywswwa{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-ywswwa.svelte-ywswwa{background:var(--emw--color-background, #fff);border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-ywswwa.svelte-ywswwa{display:none;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 500);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.Code.svelte-ywswwa.svelte-ywswwa{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;line-height:inherit;display:inline}.StatusIcon.svelte-ywswwa.svelte-ywswwa{display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-x-small, 6px)}.StatusIcon.svelte-ywswwa .StatusIconText.svelte-ywswwa{width:100px}.CashierTransactionHistoryStatus.svelte-ywswwa.svelte-ywswwa{display:flex;gap:5px}.Amount.Withdraw.svelte-ywswwa.svelte-ywswwa:before{content:"-"}.Amount.Deposit.svelte-ywswwa.svelte-ywswwa:before{content:"+"}.Amount.Deposit.Success.svelte-ywswwa.svelte-ywswwa{color:var(--emw--color-primary-dark, #4b975d)}.CashierTransactionHistoryStatusText.svelte-ywswwa.svelte-ywswwa{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-ywswwa.svelte-ywswwa{width:100%;overflow:auto}.CashierTransactionHistoryIcon.svelte-ywswwa.svelte-ywswwa{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}.TransactionHistoryRow.svelte-ywswwa.svelte-ywswwa{cursor:pointer}.ShortHistory.svelte-ywswwa .CashierTransactionHistoryTitle.svelte-ywswwa{display:inline-block;margin:10px;font-weight:500}.ShortHistory.svelte-ywswwa .TransactionHistoryRow.svelte-ywswwa{cursor:auto}.ShortHistory.svelte-ywswwa .TransactionHistoryRow.svelte-ywswwa:hover{background:unset}.ExpandedContent.svelte-ywswwa.svelte-ywswwa{padding:var(--emw--spacing-large, 30px) var(--emw--spacing-small, 12px);position:relative;display:flex;flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.ExpandedContent.svelte-ywswwa .DetailsLogo.svelte-ywswwa{width:65px;position:absolute;top:var(--emw--spacing-large, 30px);right:var(--emw--spacing-small, 12px)}.StaticDetails.svelte-ywswwa.svelte-ywswwa,.DynamicDetails.svelte-ywswwa.svelte-ywswwa{display:flex;flex-direction:column;gap:var(--emw--spacing-small, 12px);width:100%}.StaticDetails.svelte-ywswwa .DetailsTitle.svelte-ywswwa,.DynamicDetails.svelte-ywswwa .DetailsTitle.svelte-ywswwa{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);padding-right:6px}.StaticDetails.svelte-ywswwa .DetailsValue.svelte-ywswwa,.DynamicDetails.svelte-ywswwa .DetailsValue.svelte-ywswwa{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-medium, 16px);white-space:normal;overflow-wrap:break-word;max-width:100%;word-break:normal}.DetailsRow.svelte-ywswwa.svelte-ywswwa{display:flex;align-items:center;flex-wrap:wrap;word-break:normal;overflow-wrap:break-word;white-space:normal}td.svelte-ywswwa.svelte-ywswwa:has(.Code){max-width:250px}td.svelte-ywswwa.svelte-ywswwa:has(.Code):hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-ywswwa.svelte-ywswwa{display:inline-flex;gap:6px;align-items:center;cursor:pointer;border-radius:var(--mmw--border-radius-medium-plus, 6px);padding:4px 6px;max-width:60%}.CopyCode.svelte-ywswwa.svelte-ywswwa:hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-ywswwa span.svelte-ywswwa{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.CopyCode.svelte-ywswwa svg.svelte-ywswwa{flex-shrink:0}')}function _e(n,t,s){const a=n.slice();return a[42]=t[s],a[44]=s,a}function ve(n,t,s){const a=n.slice();return a[45]=t[s][0],a[46]=t[s][1],a}function ge(n,t,s){const a=n.slice();return a[49]=t[s],a[44]=s,a}function Te(n,t,s){const a=n.slice();return a[49]=t[s],a[44]=s,a}function ze(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0]),e.set_custom_element_data(t,"class","svelte-ywswwa")},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&2&&e.set_custom_element_data(t,"clientstylingurl",s[1]),a[0]&1&&e.set_custom_element_data(t,"clientstyling",s[0])},i:e.noop,o:e.noop,d(s){s&&e.detach(t)}}}function Ee(n){let t,s,a,l,w=n[12]("transactionHistoryTitle")+"",c,r,i,m,_,p,d,y,h,g=n[8]&&be(n),H=e.ensure_array_like(n[10]),C=[];for(let u=0;u<H.length;u+=1)C[u]=Ce(Te(n,H,u));let j=e.ensure_array_like(n[7]),T=[];for(let u=0;u<j.length;u+=1)T[u]=je(_e(n,j,u));const Y=u=>e.transition_out(T[u],1,1,()=>{T[u]=null});return{c(){t=e.element("div"),g&&g.c(),s=e.space(),a=e.element("div"),l=e.element("h3"),c=e.text(w),r=e.space(),i=e.element("div"),m=e.element("table"),_=e.element("thead"),p=e.element("tr");for(let u=0;u<C.length;u+=1)C[u].c();d=e.space(),y=e.element("tbody");for(let u=0;u<T.length;u+=1)T[u].c();e.attr(l,"class","CashierTransactionHistoryTitle svelte-ywswwa"),e.attr(p,"class","CashierTransactionHistoryHeader svelte-ywswwa"),e.attr(_,"class","svelte-ywswwa"),e.attr(y,"class","svelte-ywswwa"),e.attr(m,"class","svelte-ywswwa"),e.attr(i,"class","CashierTransactionHistoryContent svelte-ywswwa"),e.attr(a,"class","CashierTransactionHistoryWrapper svelte-ywswwa"),e.attr(t,"class","CashierTransactionHistory svelte-ywswwa"),e.toggle_class(t,"ShortHistory",n[3]==="true")},m(u,b){e.insert(u,t,b),g&&g.m(t,null),e.append(t,s),e.append(t,a),e.append(a,l),e.append(l,c),e.append(a,r),e.append(a,i),e.append(i,m),e.append(m,_),e.append(_,p);for(let f=0;f<C.length;f+=1)C[f]&&C[f].m(p,null);e.append(m,d),e.append(m,y);for(let f=0;f<T.length;f+=1)T[f]&&T[f].m(y,null);n[31](t),h=!0},p(u,b){if(u[8]?g?(g.p(u,b),b[0]&256&&e.transition_in(g,1)):(g=be(u),g.c(),e.transition_in(g,1),g.m(t,s)):g&&(e.group_outros(),e.transition_out(g,1,1,()=>{g=null}),e.check_outros()),(!h||b[0]&4096)&&w!==(w=u[12]("transactionHistoryTitle")+"")&&e.set_data(c,w),b[0]&5120){H=e.ensure_array_like(u[10]);let f;for(f=0;f<H.length;f+=1){const S=Te(u,H,f);C[f]?C[f].p(S,b):(C[f]=Ce(S),C[f].c(),C[f].m(p,null))}for(;f<C.length;f+=1)C[f].d(1);C.length=H.length}if(b[0]&32184){j=e.ensure_array_like(u[7]);let f;for(f=0;f<j.length;f+=1){const S=_e(u,j,f);T[f]?(T[f].p(S,b),e.transition_in(T[f],1)):(T[f]=je(S),T[f].c(),e.transition_in(T[f],1),T[f].m(y,null))}for(e.group_outros(),f=j.length;f<T.length;f+=1)Y(f);e.check_outros()}(!h||b[0]&8)&&e.toggle_class(t,"ShortHistory",u[3]==="true")},i(u){if(!h){e.transition_in(g);for(let b=0;b<j.length;b+=1)e.transition_in(T[b]);h=!0}},o(u){e.transition_out(g),T=T.filter(Boolean);for(let b=0;b<T.length;b+=1)e.transition_out(T[b]);h=!1},d(u){u&&e.detach(t),g&&g.d(),e.destroy_each(C,u),e.destroy_each(T,u),n[31](null)}}}function be(n){let t,s=n[12]("copyTransactionId")+"",a,l,w,c;return{c(){t=e.element("div"),a=e.text(s),e.attr(t,"class","CopyTooltip svelte-ywswwa")},m(r,i){e.insert(r,t,i),e.append(t,a),c=!0},p(r,i){n=r,(!c||i[0]&4096)&&s!==(s=n[12]("copyTransactionId")+"")&&e.set_data(a,s)},i(r){c||(r&&e.add_render_callback(()=>{c&&(w&&w.end(1),l=e.create_in_transition(t,me.fade,{duration:100}),l.start())}),c=!0)},o(r){l&&l.invalidate(),r&&(w=e.create_out_transition(t,me.fade,{duration:n[2]})),c=!1},d(r){r&&e.detach(t),r&&w&&w.end()}}}function Ce(n){let t,s=n[12](`transaction${n[49]}Title`)+"",a;return{c(){t=e.element("td"),a=e.text(s),e.attr(t,"class","svelte-ywswwa")},m(l,w){e.insert(l,t,w),e.append(t,a)},p(l,w){w[0]&5120&&s!==(s=l[12](`transaction${l[49]}Title`)+"")&&e.set_data(a,s)},d(l){l&&e.detach(t)}}}function Me(n){let t,s=n[42][n[49]]+"",a;return{c(){t=e.element("span"),a=e.text(s),e.attr(t,"class","svelte-ywswwa")},m(l,w){e.insert(l,t,w),e.append(t,a)},p(l,w){w[0]&1152&&s!==(s=l[42][l[49]]+"")&&e.set_data(a,s)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Ne(n){let t=U.dayjs(n[42].DateTime).format(n[5])+"",s;return{c(){s=e.text(t)},m(a,l){e.insert(a,s,l)},p(a,l){l[0]&160&&t!==(t=U.dayjs(a[42].DateTime).format(a[5])+"")&&e.set_data(s,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(s)}}}function Le(n){let t=U.dayjs(n[42].Date).format(n[4])+"",s;return{c(){s=e.text(t)},m(a,l){e.insert(a,s,l)},p(a,l){l[0]&144&&t!==(t=U.dayjs(a[42].Date).format(a[4])+"")&&e.set_data(s,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(s)}}}function Oe(n){let t=n[12](`transactionStatus.${n[42].Status}`)+"",s;return{c(){s=e.text(t)},m(a,l){e.insert(a,s,l)},p(a,l){l[0]&4224&&t!==(t=a[12](`transactionStatus.${a[42].Status}`)+"")&&e.set_data(s,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(s)}}}function Ve(n){let t,s,a,l=n[12](`transactionStatus.${n[42].Status}`)+"",w,c;return t=new Ie.TxnStatusIcon({props:{status:n[42].Status}}),{c(){e.create_component(t.$$.fragment),s=e.space(),a=e.element("span"),w=e.text(l),e.attr(a,"class","StatusIconText svelte-ywswwa")},m(r,i){e.mount_component(t,r,i),e.insert(r,s,i),e.insert(r,a,i),e.append(a,w),c=!0},p(r,i){const m={};i[0]&128&&(m.status=r[42].Status),t.$set(m),(!c||i[0]&4224)&&l!==(l=r[12](`transactionStatus.${r[42].Status}`)+"")&&e.set_data(w,l)},i(r){c||(e.transition_in(t.$$.fragment,r),c=!0)},o(r){e.transition_out(t.$$.fragment,r),c=!1},d(r){r&&(e.detach(s),e.detach(a)),e.destroy_component(t,r)}}}function Ue(n){let t,s=n[42].Amount+"",a,l,w=n[42].Currency+"",c,r;return{c(){t=e.element("span"),a=e.text(s),l=e.space(),c=e.text(w),e.attr(t,"class",r="Amount "+n[42].Type+" "+n[42].Status+" svelte-ywswwa")},m(i,m){e.insert(i,t,m),e.append(t,a),e.append(t,l),e.append(t,c)},p(i,m){m[0]&128&&s!==(s=i[42].Amount+"")&&e.set_data(a,s),m[0]&128&&w!==(w=i[42].Currency+"")&&e.set_data(c,w),m[0]&128&&r!==(r="Amount "+i[42].Type+" "+i[42].Status+" svelte-ywswwa")&&e.attr(t,"class",r)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Ye(n){let t,s=n[42].Code+"",a,l,w,c;return{c(){t=e.element("span"),a=e.text(s),e.attr(t,"data-copy",l=n[42].Code),e.attr(t,"class","svelte-ywswwa"),e.toggle_class(t,"copied",n[8])},m(r,i){e.insert(r,t,i),e.append(t,a),w||(c=e.listen(t,"click",n[28]),w=!0)},p(r,i){i[0]&128&&s!==(s=r[42].Code+"")&&e.set_data(a,s),i[0]&128&&l!==(l=r[42].Code)&&e.attr(t,"data-copy",l),i[0]&256&&e.toggle_class(t,"copied",r[8])},i:e.noop,o:e.noop,d(r){r&&e.detach(t),w=!1,c()}}}function qe(n){let t,s;return t=new Fe.TxnTypeIcons({props:{type:n[42].Type}}),{c(){e.create_component(t.$$.fragment)},m(a,l){e.mount_component(t,a,l),s=!0},p(a,l){const w={};l[0]&128&&(w.type=a[42].Type),t.$set(w)},i(a){s||(e.transition_in(t.$$.fragment,a),s=!0)},o(a){e.transition_out(t.$$.fragment,a),s=!1},d(a){e.destroy_component(t,a)}}}function We(n){let t,s=n[12](`transactionType.${n[42].Type}`)+"",a;return{c(){t=e.element("span"),a=e.text(s),e.attr(t,"class","svelte-ywswwa")},m(l,w){e.insert(l,t,w),e.append(t,a)},p(l,w){w[0]&4224&&s!==(s=l[12](`transactionType.${l[42].Type}`)+"")&&e.set_data(a,s)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function ke(n){let t,s,a,l,w,c,r,i;const m=[We,qe,Ye,Ue,Ve,Oe,Le,Ne,Me],_=[];function p(d,y){return d[49]==="Type"?0:d[49]==="TypeIcon"?1:d[49]==="Code"?2:d[49]==="Amount"?3:d[49]==="StatusIcon"?4:d[49]==="Status"?5:d[49]==="Date"?6:d[49]==="DateTime"?7:8}return a=p(n),l=_[a]=m[a](n),{c(){t=e.element("td"),s=e.element("span"),l.c(),c=e.space(),e.attr(s,"class",w=e.null_to_empty(n[49])+" svelte-ywswwa"),e.attr(t,"class",r=e.null_to_empty(`column-${n[49]}`)+" svelte-ywswwa")},m(d,y){e.insert(d,t,y),e.append(t,s),_[a].m(s,null),e.append(t,c),i=!0},p(d,y){let h=a;a=p(d),a===h?_[a].p(d,y):(e.group_outros(),e.transition_out(_[h],1,1,()=>{_[h]=null}),e.check_outros(),l=_[a],l?l.p(d,y):(l=_[a]=m[a](d),l.c()),e.transition_in(l,1),l.m(s,null)),(!i||y[0]&1024&&w!==(w=e.null_to_empty(d[49])+" svelte-ywswwa"))&&e.attr(s,"class",w),(!i||y[0]&1024&&r!==(r=e.null_to_empty(`column-${d[49]}`)+" svelte-ywswwa"))&&e.attr(t,"class",r)},i(d){i||(e.transition_in(l),i=!0)},o(d){e.transition_out(l),i=!1},d(d){d&&e.detach(t),_[a].d()}}}function xe(n){let t,s,a,l,w,c,r=n[12]("transactionTypeTitle")+"",i,m,_,p,d=n[12](`transactionType.${n[42].Type}`)+"",y,h,g,H,C=n[12]("transactionDateTitle")+"",j,T,Y,u,b=U.dayjs(n[42].DateTime).format(n[5])+"",f,S,E,M,q=n[12]("transactionPaymentMethodTitle")+"",N,z,Q,L,G=n[42].PaymentMethod+"",$,te,O,W,V=n[12]("transactionCodeTitle")+"",J,ae,se,P,Z,K=n[42].Code+"",o,v,x,D,A,B,ne,we,de,ee,pe,le,X,ie,re,oe,ue,ce,fe,F=n[42].RejectionNote&&De(n),I=n[42].PaymentFields&&He(n);return{c(){t=e.element("tr"),s=e.element("td"),a=e.element("div"),l=e.element("div"),w=e.element("div"),c=e.element("span"),i=e.text(r),m=e.text(" :"),_=e.space(),p=e.element("span"),y=e.text(d),h=e.space(),g=e.element("div"),H=e.element("span"),j=e.text(C),T=e.text(" :"),Y=e.space(),u=e.element("span"),f=e.text(b),S=e.space(),E=e.element("div"),M=e.element("span"),N=e.text(q),z=e.text(" :"),Q=e.space(),L=e.element("span"),$=e.text(G),te=e.space(),O=e.element("div"),W=e.element("span"),J=e.text(V),ae=e.text(" :"),se=e.space(),P=e.element("span"),Z=e.element("span"),o=e.text(K),v=e.space(),x=e.svg_element("svg"),D=e.svg_element("g"),A=e.svg_element("path"),B=e.svg_element("path"),we=e.space(),F&&F.c(),de=e.space(),ee=e.element("div"),I&&I.c(),pe=e.space(),le=e.element("div"),X=e.element("ui-image"),ue=e.space(),e.attr(c,"class","DetailsTitle svelte-ywswwa"),e.attr(p,"class","DetailsValue svelte-ywswwa"),e.attr(w,"class","DetailsRow svelte-ywswwa"),e.attr(H,"class","DetailsTitle svelte-ywswwa"),e.attr(u,"class","DetailsValue svelte-ywswwa"),e.attr(g,"class","DetailsRow svelte-ywswwa"),e.attr(M,"class","DetailsTitle svelte-ywswwa"),e.attr(L,"class","DetailsValue svelte-ywswwa"),e.attr(E,"class","DetailsRow svelte-ywswwa"),e.attr(W,"class","DetailsTitle svelte-ywswwa"),e.attr(Z,"class","svelte-ywswwa"),e.attr(A,"d","M12.6663 4.375H5.54134C4.66689 4.375 3.95801 5.1585 3.95801 6.125V14C3.95801 14.9665 4.66689 15.75 5.54134 15.75H12.6663C13.5408 15.75 14.2497 14.9665 14.2497 14V6.125C14.2497 5.1585 13.5408 4.375 12.6663 4.375Z"),e.attr(A,"stroke","#666666"),e.attr(A,"stroke-linecap","round"),e.attr(A,"stroke-linejoin","round"),e.attr(A,"class","svelte-ywswwa"),e.attr(B,"d","M3.95801 13.125H3.16634C2.74642 13.125 2.34369 12.9406 2.04676 12.6124C1.74982 12.2842 1.58301 11.8391 1.58301 11.375V3.5C1.58301 3.03587 1.74982 2.59075 2.04676 2.26256C2.34369 1.93437 2.74642 1.75 3.16634 1.75H10.2913C10.7113 1.75 11.114 1.93437 11.4109 2.26256C11.7079 2.59075 11.8747 3.03587 11.8747 3.5V4.375"),e.attr(B,"stroke","#666666"),e.attr(B,"stroke-linecap","round"),e.attr(B,"stroke-linejoin","round"),e.attr(B,"class","svelte-ywswwa"),e.attr(D,"opacity","0.5"),e.attr(D,"class","svelte-ywswwa"),e.attr(x,"xmlns","http://www.w3.org/2000/svg"),e.attr(x,"width","19"),e.attr(x,"height","19"),e.attr(x,"viewBox","0 0 19 19"),e.attr(x,"fill","none"),e.attr(x,"class","svelte-ywswwa"),e.attr(P,"data-copy",ne=n[42].Code),e.attr(P,"class","DetailsValue CopyCode svelte-ywswwa"),e.attr(O,"class","DetailsRow svelte-ywswwa"),e.attr(l,"class","StaticDetails svelte-ywswwa"),e.attr(ee,"class","DynamicDetails svelte-ywswwa"),e.src_url_equal(X.src,ie=n[42].Logo)||e.set_custom_element_data(X,"src",ie),e.set_custom_element_data(X,"class","svelte-ywswwa"),e.attr(le,"class","DetailsLogo svelte-ywswwa"),e.attr(a,"class","ExpandedContent svelte-ywswwa"),e.attr(s,"colspan",oe=n[10].length),e.attr(s,"class","no-padding svelte-ywswwa"),e.attr(t,"class","ExpandedRow svelte-ywswwa")},m(k,R){e.insert(k,t,R),e.append(t,s),e.append(s,a),e.append(a,l),e.append(l,w),e.append(w,c),e.append(c,i),e.append(c,m),e.append(w,_),e.append(w,p),e.append(p,y),e.append(l,h),e.append(l,g),e.append(g,H),e.append(H,j),e.append(H,T),e.append(g,Y),e.append(g,u),e.append(u,f),e.append(l,S),e.append(l,E),e.append(E,M),e.append(M,N),e.append(M,z),e.append(E,Q),e.append(E,L),e.append(L,$),e.append(l,te),e.append(l,O),e.append(O,W),e.append(W,J),e.append(W,ae),e.append(O,se),e.append(O,P),e.append(P,Z),e.append(Z,o),e.append(P,v),e.append(P,x),e.append(x,D),e.append(D,A),e.append(D,B),e.append(l,we),F&&F.m(l,null),e.append(a,de),e.append(a,ee),I&&I.m(ee,null),e.append(a,pe),e.append(a,le),e.append(le,X),e.append(t,ue),ce||(fe=e.listen(P,"mousedown",n[30]),ce=!0)},p(k,R){R[0]&4096&&r!==(r=k[12]("transactionTypeTitle")+"")&&e.set_data(i,r),R[0]&4224&&d!==(d=k[12](`transactionType.${k[42].Type}`)+"")&&e.set_data(y,d),R[0]&4096&&C!==(C=k[12]("transactionDateTitle")+"")&&e.set_data(j,C),R[0]&160&&b!==(b=U.dayjs(k[42].DateTime).format(k[5])+"")&&e.set_data(f,b),R[0]&4096&&q!==(q=k[12]("transactionPaymentMethodTitle")+"")&&e.set_data(N,q),R[0]&128&&G!==(G=k[42].PaymentMethod+"")&&e.set_data($,G),R[0]&4096&&V!==(V=k[12]("transactionCodeTitle")+"")&&e.set_data(J,V),R[0]&128&&K!==(K=k[42].Code+"")&&e.set_data(o,K),R[0]&128&&ne!==(ne=k[42].Code)&&e.attr(P,"data-copy",ne),k[42].RejectionNote?F?F.p(k,R):(F=De(k),F.c(),F.m(l,null)):F&&(F.d(1),F=null),k[42].PaymentFields?I?I.p(k,R):(I=He(k),I.c(),I.m(ee,null)):I&&(I.d(1),I=null),R[0]&128&&!e.src_url_equal(X.src,ie=k[42].Logo)&&e.set_custom_element_data(X,"src",ie),R[0]&1024&&oe!==(oe=k[10].length)&&e.attr(s,"colspan",oe)},i(k){k&&(re||e.add_render_callback(()=>{re=e.create_in_transition(a,n[15],{}),re.start()}))},o:e.noop,d(k){k&&e.detach(t),F&&F.d(),I&&I.d(),ce=!1,fe()}}}function De(n){let t,s,a=n[12]("transactionRejectionNoteTitle")+"",l,w,c,r,i=n[42].RejectionNote+"",m;return{c(){t=e.element("div"),s=e.element("span"),l=e.text(a),w=e.text(" :"),c=e.space(),r=e.element("span"),m=e.text(i),e.attr(s,"class","DetailsTitle svelte-ywswwa"),e.attr(r,"class","DetailsValue svelte-ywswwa"),e.attr(t,"class","DetailsRow svelte-ywswwa")},m(_,p){e.insert(_,t,p),e.append(t,s),e.append(s,l),e.append(s,w),e.append(t,c),e.append(t,r),e.append(r,m)},p(_,p){p[0]&4096&&a!==(a=_[12]("transactionRejectionNoteTitle")+"")&&e.set_data(l,a),p[0]&128&&i!==(i=_[42].RejectionNote+"")&&e.set_data(m,i)},d(_){_&&e.detach(t)}}}function He(n){let t,s=e.ensure_array_like(Object.entries(n[42].PaymentFields)),a=[];for(let l=0;l<s.length;l+=1)a[l]=Se(ve(n,s,l));return{c(){for(let l=0;l<a.length;l+=1)a[l].c();t=e.empty()},m(l,w){for(let c=0;c<a.length;c+=1)a[c]&&a[c].m(l,w);e.insert(l,t,w)},p(l,w){if(w[0]&4224){s=e.ensure_array_like(Object.entries(l[42].PaymentFields));let c;for(c=0;c<s.length;c+=1){const r=ve(l,s,c);a[c]?a[c].p(r,w):(a[c]=Se(r),a[c].c(),a[c].m(t.parentNode,t))}for(;c<a.length;c+=1)a[c].d(1);a.length=s.length}},d(l){l&&e.detach(t),e.destroy_each(a,l)}}}function Se(n){let t,s,a=n[12](`transaction${n[45]}Detail`,{default:n[45]})+"",l,w,c,r,i=n[46]+"",m,_;return{c(){t=e.element("div"),s=e.element("span"),l=e.text(a),w=e.text(" :"),c=e.space(),r=e.element("span"),m=e.text(i),_=e.space(),e.attr(s,"class","DetailsTitle svelte-ywswwa"),e.attr(r,"class","DetailsValue svelte-ywswwa"),e.attr(t,"class","DetailsRow svelte-ywswwa")},m(p,d){e.insert(p,t,d),e.append(t,s),e.append(s,l),e.append(s,w),e.append(t,c),e.append(t,r),e.append(r,m),e.append(t,_)},p(p,d){d[0]&4224&&a!==(a=p[12](`transaction${p[45]}Detail`,{default:p[45]})+"")&&e.set_data(l,a),d[0]&128&&i!==(i=p[46]+"")&&e.set_data(m,i)},d(p){p&&e.detach(t)}}}function je(n){let t,s,a,l,w,c,r=e.ensure_array_like(n[10]),i=[];for(let d=0;d<r.length;d+=1)i[d]=ke(ge(n,r,d));const m=d=>e.transition_out(i[d],1,1,()=>{i[d]=null});function _(){return n[29](n[44])}let p=n[11]===n[44]&&xe(n);return{c(){t=e.element("tr");for(let d=0;d<i.length;d+=1)i[d].c();s=e.space(),p&&p.c(),a=e.empty(),e.attr(t,"class","TransactionHistoryRow svelte-ywswwa"),e.toggle_class(t,"AllowExpand",n[3]==="true"),e.toggle_class(t,"Expanded",n[11]===n[44])},m(d,y){e.insert(d,t,y);for(let h=0;h<i.length;h+=1)i[h]&&i[h].m(t,null);e.insert(d,s,y),p&&p.m(d,y),e.insert(d,a,y),l=!0,w||(c=e.listen(t,"click",_),w=!0)},p(d,y){if(n=d,y[0]&13744){r=e.ensure_array_like(n[10]);let h;for(h=0;h<r.length;h+=1){const g=ge(n,r,h);i[h]?(i[h].p(g,y),e.transition_in(i[h],1)):(i[h]=ke(g),i[h].c(),e.transition_in(i[h],1),i[h].m(t,null))}for(e.group_outros(),h=r.length;h<i.length;h+=1)m(h);e.check_outros()}(!l||y[0]&8)&&e.toggle_class(t,"AllowExpand",n[3]==="true"),(!l||y[0]&2048)&&e.toggle_class(t,"Expanded",n[11]===n[44]),n[11]===n[44]?p?(p.p(n,y),y[0]&2048&&e.transition_in(p,1)):(p=xe(n),p.c(),e.transition_in(p,1),p.m(a.parentNode,a)):p&&(p.d(1),p=null)},i(d){if(!l){for(let y=0;y<r.length;y+=1)e.transition_in(i[y]);e.transition_in(p),l=!0}},o(d){i=i.filter(Boolean);for(let y=0;y<i.length;y+=1)e.transition_out(i[y]);l=!1},d(d){d&&(e.detach(t),e.detach(s),e.detach(a)),e.destroy_each(i,d),p&&p.d(d),w=!1,c()}}}function Be(n){let t,s,a,l;const w=[Ee,ze],c=[];function r(i,m){return i[7].length?0:i[9]?1:-1}return~(s=r(n))&&(a=c[s]=w[s](n)),{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierTransactionHistoryContainer svelte-ywswwa")},m(i,m){e.insert(i,t,m),~s&&c[s].m(t,null),l=!0},p(i,m){let _=s;s=r(i),s===_?~s&&c[s].p(i,m):(a&&(e.group_outros(),e.transition_out(c[_],1,1,()=>{c[_]=null}),e.check_outros()),~s?(a=c[s],a?a.p(i,m):(a=c[s]=w[s](i),a.c()),e.transition_in(a,1),a.m(t,null)):a=null)},i(i){l||(e.transition_in(a),l=!0)},o(i){e.transition_out(a),l=!1},d(i){i&&e.detach(t),~s&&c[s].d()}}}function Xe(n,t,s){let a;e.component_subscribe(n,e.$format,o=>s(12,a=o));let{endpoint:l}=t,{session:w}=t,{lang:c="en"}=t,{customerid:r}=t,{clientstyling:i=""}=t,{clientstylingurl:m=""}=t,{translationurl:_}=t,{tooltipduration:p=1e3}=t,{txncount:d}=t,{mbsource:y=""}=t,{columns:h}=t,{page:g="0"}=t,{calculateprofit:H="false"}=t,{fromdate:C=U.dayjs().subtract(3,"month")}=t,{todate:j=U.dayjs()}=t,{isshorttransactionhistory:T="false"}=t,{dateformat:Y="DD.MM.YYYY"}=t,{datetimeformat:u="DD.MM.YYYY HH:mm:ss"}=t,b=[],f=!1,S,E,M=!1,q=[],N;var z;(function(o){o.Deposit="deposit",o.Withdraw="withdraw",o.Refund="refund",o.Unknown="unknown",o.TaxDeduction="taxDeduction"})(z||(z={}));const Q=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var L;(function(o){o.Authorized="Authorized",o.Success="Success",o.Failed="Failed",o.Rejected="Rejected",o.Pending="Pending"})(L||(L={})),e.onMount(()=>()=>{});const G=()=>{let o=_;if(o)return fetch(o).then(v=>v.json()).then(v=>{Object.keys(v).forEach(x=>{ye(x,v[x])})}).catch(v=>{console.log(v)})};Object.keys(he).forEach(o=>{ye(o,he[o])});const $=()=>{Ae(c)},te=()=>{const o=new URL(`${l}/api/v1/mm/payment/gettransactionshistory`),v=new Headers;v.append("accept","application/json"),v.append("Content-Type","application/json"),v.append("X-SessionId",`${w}`);const x={method:"POST",mode:"cors",headers:v,body:JSON.stringify({language:c,customerId:r,count:+d,page:+g,fromDate:C,toDate:j,statuses:{[z.Deposit]:Q,[z.Withdraw]:Q,[z.Refund]:["Unknown"],[z.TaxDeduction]:["Unknown"],[z.Unknown]:["Unknown"]},calculateProfit:H==="true"})};s(9,M=!0),fetch(o,x).then(D=>D.json()).then(D=>{s(7,b=O((D==null?void 0:D.items)||[]));const A={type:"TransactionsLoaded",total:D.total};H==="true"&&(A.statistic=D.statistic),window.postMessage(A,window.location.href)}).catch(D=>console.log(D)).finally(()=>s(9,M=!1))},O=o=>(s(10,q=h.split(",")),s(11,N=null),o.map(v=>{let x=v.generalFields.status;return v.generalFields.status.toLowerCase().includes("pending")&&(x=L.Pending),{Code:v.generalFields.code,Date:v.generalFields.created,DateTime:v.generalFields.created,Status:x,Type:v.generalFields.type,Amount:v.generalFields.amount,Currency:v.generalFields.currency,PaymentMethod:v.generalFields.paymentMethod,RejectionNote:v.generalFields.rejectionNote,PaymentFields:v.paymentFields&&Object.keys(v.paymentFields).length>0?v.paymentFields:null,Logo:W(v.logos)}})||[]),W=o=>{if(o&&o.length){const v=o.find(D=>D.logoType==="Mobile"),x=o.find(D=>D.logoType==="Desktop");return v&&v.logoUrl||x&&x.logoUrl}},V=(o,v=!0)=>{const D=o.currentTarget.dataset.copy;D&&navigator.clipboard.writeText(D).then(()=>{v&&(s(8,f=!0),clearTimeout(E),E=setTimeout(()=>{s(8,f=!1)},2e3))}).catch(A=>{console.error("Could not copy text: ",A)})},J=o=>{T!=="true"&&s(11,N=N===o?null:o)},ae=(o,v)=>({delay:0,duration:250,css:x=>`overflow: hidden; transform: translateY(${(1-x)*20}px); opacity: ${x}`}),se=o=>V(o),P=o=>J(o),Z=o=>V(o,!1);function K(o){e.binding_callbacks[o?"unshift":"push"](()=>{S=o,s(6,S)})}return n.$$set=o=>{"endpoint"in o&&s(16,l=o.endpoint),"session"in o&&s(17,w=o.session),"lang"in o&&s(18,c=o.lang),"customerid"in o&&s(19,r=o.customerid),"clientstyling"in o&&s(0,i=o.clientstyling),"clientstylingurl"in o&&s(1,m=o.clientstylingurl),"translationurl"in o&&s(20,_=o.translationurl),"tooltipduration"in o&&s(2,p=o.tooltipduration),"txncount"in o&&s(21,d=o.txncount),"mbsource"in o&&s(22,y=o.mbsource),"columns"in o&&s(23,h=o.columns),"page"in o&&s(24,g=o.page),"calculateprofit"in o&&s(25,H=o.calculateprofit),"fromdate"in o&&s(26,C=o.fromdate),"todate"in o&&s(27,j=o.todate),"isshorttransactionhistory"in o&&s(3,T=o.isshorttransactionhistory),"dateformat"in o&&s(4,Y=o.dateformat),"datetimeformat"in o&&s(5,u=o.datetimeformat)},n.$$.update=()=>{n.$$.dirty[0]&262144&&c&&$(),n.$$.dirty[0]&65&&i&&S&&e.setClientStyling(S,i),n.$$.dirty[0]&66&&m&&S&&e.setClientStylingURL(S,m),n.$$.dirty[0]&252641280&&l&&w&&r&&c&&C&&j&&g&&H&&te(),n.$$.dirty[0]&1048576&&_&&G(),n.$$.dirty[0]&4194368&&y&&S&&e.setStreamStyling(S,`${y}.Style`)},[i,m,p,T,Y,u,S,b,f,M,q,N,a,V,J,ae,l,w,c,r,_,d,y,h,g,H,C,j,se,P,Z,K]}class Re extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Xe,Be,e.safe_not_equal,{endpoint:16,session:17,lang:18,customerid:19,clientstyling:0,clientstylingurl:1,translationurl:20,tooltipduration:2,txncount:21,mbsource:22,columns:23,page:24,calculateprofit:25,fromdate:26,todate:27,isshorttransactionhistory:3,dateformat:4,datetimeformat:5},Pe,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get customerid(){return this.$$.ctx[19]}set customerid(t){this.$$set({customerid:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(t){this.$$set({tooltipduration:t}),e.flush()}get txncount(){return this.$$.ctx[21]}set txncount(t){this.$$set({txncount:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get columns(){return this.$$.ctx[23]}set columns(t){this.$$set({columns:t}),e.flush()}get page(){return this.$$.ctx[24]}set page(t){this.$$set({page:t}),e.flush()}get calculateprofit(){return this.$$.ctx[25]}set calculateprofit(t){this.$$set({calculateprofit:t}),e.flush()}get fromdate(){return this.$$.ctx[26]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[27]}set todate(t){this.$$set({todate:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[3]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get dateformat(){return this.$$.ctx[4]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[5]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}}e.create_custom_element(Re,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{},columns:{},page:{},calculateprofit:{},fromdate:{},todate:{},isshorttransactionhistory:{},dateformat:{},datetimeformat:{}},[],[],!0);exports.default=Re;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-Cl1xonA7.cjs"),me=require("./CashierModal-CjkjMD7N.cjs"),U=require("./CashierMethodDetails-D8xv6F1d.cjs");require("../stencil/ui-image-BNDhSb9-.cjs");const Fe=require("./TxnTypeIcons-Bh0Anevx.cjs"),Ie=require("./TxnStatusIcon-5KrCODA2.cjs");e.init({fallbackLocale:"en"});function ye(n,t){e.addMessages(n,t)}function Ae(n){e.$locale.set(n)}const he={en:{transactionHistoryTitle:"Transaction History",transactionCodeTitle:"ID",transactionDateTitle:"Date",transactionDateTimeTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",transactionStatusIconTitle:"Status",transactionTypeIconTitle:"Type",copyTransactionId:"Transaction Id copied to clipboard",transactionAmountTitle:"Amount",transactionPaymentMethodTitle:"Payment Method",transactionRejectionNoteTitle:"Rejection Note",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionDateTimeTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",transactionStatusIconTitle:"Durum",transactionTypeIconTitle:"Tip",transactionAmountTitle:"Tutar",transactionRejectionNoteTitle:"Reddetme Notu",transactionPaymentMethodTitle:"Ödeme Yöntemi",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function Pe(n){e.append_styles(n,"svelte-ywswwa",'.svelte-ywswwa.svelte-ywswwa,.svelte-ywswwa.svelte-ywswwa::before,.svelte-ywswwa.svelte-ywswwa::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-ywswwa.svelte-ywswwa{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistoryContainer.svelte-ywswwa.svelte-ywswwa{position:relative}.CashierTransactionHistory.svelte-ywswwa.svelte-ywswwa{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-ywswwa table.svelte-ywswwa{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-ywswwa table.svelte-ywswwa:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-ywswwa thead tr.svelte-ywswwa{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-ywswwa tbody tr.svelte-ywswwa{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-ywswwa tbody tr.svelte-ywswwa:not(:last-child):not(.Expanded){border-bottom:1px solid #E8E9EB}.CashierTransactionHistory.svelte-ywswwa .TypeIcon.svelte-ywswwa{display:flex}.CashierTransactionHistory.svelte-ywswwa .StatusIcon svg.svelte-ywswwa{flex:0 0 auto;width:18px;height:18px}.CashierTransactionHistory.svelte-ywswwa .StatusIcon span.svelte-ywswwa{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;width:80px}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa{max-width:250px;vertical-align:middle;height:40px;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-ywswwa td:last-child .CashierTransactionHistoryStatusText.svelte-ywswwa{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa:first-child{text-align:left}.CashierTransactionHistory.svelte-ywswwa td .ExpandedContent.svelte-ywswwa{line-height:100%}.CashierTransactionHistory.svelte-ywswwa tr.svelte-ywswwa{position:relative}.CashierTransactionHistory.svelte-ywswwa tr.svelte-ywswwa:not(.ExpandedRow):not(.CashierTransactionHistoryHeader):not(.AllowExpand):hover{background:var(--emw--color-gray-50, #F7F8FA)}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-ywswwa .CopyTooltip.svelte-ywswwa{width:100%}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa:has(.Code){max-width:135px}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-ywswwa .CashierTransactionHistoryWrapper.svelte-ywswwa{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-ywswwa td.svelte-ywswwa{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-ywswwa td.column-TypeIcon.svelte-ywswwa:first-child{width:40px;text-align:left}.CashierTransactionHistory.svelte-ywswwa td.column-Code.svelte-ywswwa:first-child{max-width:60px;text-align:left}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-ywswwa table.svelte-ywswwa{table-layout:fixed}.CashierTransactionHistory.svelte-ywswwa table td.svelte-ywswwa{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-ywswwa.svelte-ywswwa{background:var(--emw--color-background, #fff);border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-ywswwa.svelte-ywswwa{display:none;color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 500);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.Code.svelte-ywswwa.svelte-ywswwa{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;line-height:inherit;display:inline}.StatusIcon.svelte-ywswwa.svelte-ywswwa{display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-x-small, 6px)}.StatusIcon.svelte-ywswwa .StatusIconText.svelte-ywswwa{width:100px}.CashierTransactionHistoryStatus.svelte-ywswwa.svelte-ywswwa{display:flex;gap:5px}.Amount.Withdraw.svelte-ywswwa.svelte-ywswwa:before{content:"-"}.Amount.Deposit.svelte-ywswwa.svelte-ywswwa:before{content:"+"}.Amount.Deposit.Success.svelte-ywswwa.svelte-ywswwa{color:var(--emw--color-primary-dark, #4b975d)}.CashierTransactionHistoryStatusText.svelte-ywswwa.svelte-ywswwa{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-ywswwa.svelte-ywswwa{width:100%;overflow:auto}.CashierTransactionHistoryIcon.svelte-ywswwa.svelte-ywswwa{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}.TransactionHistoryRow.svelte-ywswwa.svelte-ywswwa{cursor:pointer}.ShortHistory.svelte-ywswwa .CashierTransactionHistoryTitle.svelte-ywswwa{display:inline-block;margin:10px;font-weight:500}.ShortHistory.svelte-ywswwa .TransactionHistoryRow.svelte-ywswwa{cursor:auto}.ShortHistory.svelte-ywswwa .TransactionHistoryRow.svelte-ywswwa:hover{background:unset}.ExpandedContent.svelte-ywswwa.svelte-ywswwa{padding:var(--emw--spacing-large, 30px) var(--emw--spacing-small, 12px);position:relative;display:flex;flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.ExpandedContent.svelte-ywswwa .DetailsLogo.svelte-ywswwa{width:65px;position:absolute;top:var(--emw--spacing-large, 30px);right:var(--emw--spacing-small, 12px)}.StaticDetails.svelte-ywswwa.svelte-ywswwa,.DynamicDetails.svelte-ywswwa.svelte-ywswwa{display:flex;flex-direction:column;gap:var(--emw--spacing-small, 12px);width:100%}.StaticDetails.svelte-ywswwa .DetailsTitle.svelte-ywswwa,.DynamicDetails.svelte-ywswwa .DetailsTitle.svelte-ywswwa{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);padding-right:6px}.StaticDetails.svelte-ywswwa .DetailsValue.svelte-ywswwa,.DynamicDetails.svelte-ywswwa .DetailsValue.svelte-ywswwa{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-medium, 16px);white-space:normal;overflow-wrap:break-word;max-width:100%;word-break:normal}.DetailsRow.svelte-ywswwa.svelte-ywswwa{display:flex;align-items:center;flex-wrap:wrap;word-break:normal;overflow-wrap:break-word;white-space:normal}td.svelte-ywswwa.svelte-ywswwa:has(.Code){max-width:250px}td.svelte-ywswwa.svelte-ywswwa:has(.Code):hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-ywswwa.svelte-ywswwa{display:inline-flex;gap:6px;align-items:center;cursor:pointer;border-radius:var(--mmw--border-radius-medium-plus, 6px);padding:4px 6px;max-width:60%}.CopyCode.svelte-ywswwa.svelte-ywswwa:hover{background:var(--emw--color-gray-50, #F7F8FA)}.CopyCode.svelte-ywswwa span.svelte-ywswwa{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.CopyCode.svelte-ywswwa svg.svelte-ywswwa{flex-shrink:0}')}function _e(n,t,s){const a=n.slice();return a[42]=t[s],a[44]=s,a}function ve(n,t,s){const a=n.slice();return a[45]=t[s][0],a[46]=t[s][1],a}function ge(n,t,s){const a=n.slice();return a[49]=t[s],a[44]=s,a}function Te(n,t,s){const a=n.slice();return a[49]=t[s],a[44]=s,a}function ze(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0]),e.set_custom_element_data(t,"class","svelte-ywswwa")},m(s,a){e.insert(s,t,a)},p(s,a){a[0]&2&&e.set_custom_element_data(t,"clientstylingurl",s[1]),a[0]&1&&e.set_custom_element_data(t,"clientstyling",s[0])},i:e.noop,o:e.noop,d(s){s&&e.detach(t)}}}function Ee(n){let t,s,a,l,w=n[12]("transactionHistoryTitle")+"",c,r,i,m,_,p,d,y,h,g=n[8]&&be(n),H=e.ensure_array_like(n[10]),C=[];for(let u=0;u<H.length;u+=1)C[u]=Ce(Te(n,H,u));let j=e.ensure_array_like(n[7]),T=[];for(let u=0;u<j.length;u+=1)T[u]=je(_e(n,j,u));const Y=u=>e.transition_out(T[u],1,1,()=>{T[u]=null});return{c(){t=e.element("div"),g&&g.c(),s=e.space(),a=e.element("div"),l=e.element("h3"),c=e.text(w),r=e.space(),i=e.element("div"),m=e.element("table"),_=e.element("thead"),p=e.element("tr");for(let u=0;u<C.length;u+=1)C[u].c();d=e.space(),y=e.element("tbody");for(let u=0;u<T.length;u+=1)T[u].c();e.attr(l,"class","CashierTransactionHistoryTitle svelte-ywswwa"),e.attr(p,"class","CashierTransactionHistoryHeader svelte-ywswwa"),e.attr(_,"class","svelte-ywswwa"),e.attr(y,"class","svelte-ywswwa"),e.attr(m,"class","svelte-ywswwa"),e.attr(i,"class","CashierTransactionHistoryContent svelte-ywswwa"),e.attr(a,"class","CashierTransactionHistoryWrapper svelte-ywswwa"),e.attr(t,"class","CashierTransactionHistory svelte-ywswwa"),e.toggle_class(t,"ShortHistory",n[3]==="true")},m(u,b){e.insert(u,t,b),g&&g.m(t,null),e.append(t,s),e.append(t,a),e.append(a,l),e.append(l,c),e.append(a,r),e.append(a,i),e.append(i,m),e.append(m,_),e.append(_,p);for(let f=0;f<C.length;f+=1)C[f]&&C[f].m(p,null);e.append(m,d),e.append(m,y);for(let f=0;f<T.length;f+=1)T[f]&&T[f].m(y,null);n[31](t),h=!0},p(u,b){if(u[8]?g?(g.p(u,b),b[0]&256&&e.transition_in(g,1)):(g=be(u),g.c(),e.transition_in(g,1),g.m(t,s)):g&&(e.group_outros(),e.transition_out(g,1,1,()=>{g=null}),e.check_outros()),(!h||b[0]&4096)&&w!==(w=u[12]("transactionHistoryTitle")+"")&&e.set_data(c,w),b[0]&5120){H=e.ensure_array_like(u[10]);let f;for(f=0;f<H.length;f+=1){const S=Te(u,H,f);C[f]?C[f].p(S,b):(C[f]=Ce(S),C[f].c(),C[f].m(p,null))}for(;f<C.length;f+=1)C[f].d(1);C.length=H.length}if(b[0]&32184){j=e.ensure_array_like(u[7]);let f;for(f=0;f<j.length;f+=1){const S=_e(u,j,f);T[f]?(T[f].p(S,b),e.transition_in(T[f],1)):(T[f]=je(S),T[f].c(),e.transition_in(T[f],1),T[f].m(y,null))}for(e.group_outros(),f=j.length;f<T.length;f+=1)Y(f);e.check_outros()}(!h||b[0]&8)&&e.toggle_class(t,"ShortHistory",u[3]==="true")},i(u){if(!h){e.transition_in(g);for(let b=0;b<j.length;b+=1)e.transition_in(T[b]);h=!0}},o(u){e.transition_out(g),T=T.filter(Boolean);for(let b=0;b<T.length;b+=1)e.transition_out(T[b]);h=!1},d(u){u&&e.detach(t),g&&g.d(),e.destroy_each(C,u),e.destroy_each(T,u),n[31](null)}}}function be(n){let t,s=n[12]("copyTransactionId")+"",a,l,w,c;return{c(){t=e.element("div"),a=e.text(s),e.attr(t,"class","CopyTooltip svelte-ywswwa")},m(r,i){e.insert(r,t,i),e.append(t,a),c=!0},p(r,i){n=r,(!c||i[0]&4096)&&s!==(s=n[12]("copyTransactionId")+"")&&e.set_data(a,s)},i(r){c||(r&&e.add_render_callback(()=>{c&&(w&&w.end(1),l=e.create_in_transition(t,me.fade,{duration:100}),l.start())}),c=!0)},o(r){l&&l.invalidate(),r&&(w=e.create_out_transition(t,me.fade,{duration:n[2]})),c=!1},d(r){r&&e.detach(t),r&&w&&w.end()}}}function Ce(n){let t,s=n[12](`transaction${n[49]}Title`)+"",a;return{c(){t=e.element("td"),a=e.text(s),e.attr(t,"class","svelte-ywswwa")},m(l,w){e.insert(l,t,w),e.append(t,a)},p(l,w){w[0]&5120&&s!==(s=l[12](`transaction${l[49]}Title`)+"")&&e.set_data(a,s)},d(l){l&&e.detach(t)}}}function Me(n){let t,s=n[42][n[49]]+"",a;return{c(){t=e.element("span"),a=e.text(s),e.attr(t,"class","svelte-ywswwa")},m(l,w){e.insert(l,t,w),e.append(t,a)},p(l,w){w[0]&1152&&s!==(s=l[42][l[49]]+"")&&e.set_data(a,s)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Ne(n){let t=U.dayjs(n[42].DateTime).format(n[5])+"",s;return{c(){s=e.text(t)},m(a,l){e.insert(a,s,l)},p(a,l){l[0]&160&&t!==(t=U.dayjs(a[42].DateTime).format(a[5])+"")&&e.set_data(s,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(s)}}}function Le(n){let t=U.dayjs(n[42].Date).format(n[4])+"",s;return{c(){s=e.text(t)},m(a,l){e.insert(a,s,l)},p(a,l){l[0]&144&&t!==(t=U.dayjs(a[42].Date).format(a[4])+"")&&e.set_data(s,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(s)}}}function Oe(n){let t=n[12](`transactionStatus.${n[42].Status}`)+"",s;return{c(){s=e.text(t)},m(a,l){e.insert(a,s,l)},p(a,l){l[0]&4224&&t!==(t=a[12](`transactionStatus.${a[42].Status}`)+"")&&e.set_data(s,t)},i:e.noop,o:e.noop,d(a){a&&e.detach(s)}}}function Ve(n){let t,s,a,l=n[12](`transactionStatus.${n[42].Status}`)+"",w,c;return t=new Ie.TxnStatusIcon({props:{status:n[42].Status}}),{c(){e.create_component(t.$$.fragment),s=e.space(),a=e.element("span"),w=e.text(l),e.attr(a,"class","StatusIconText svelte-ywswwa")},m(r,i){e.mount_component(t,r,i),e.insert(r,s,i),e.insert(r,a,i),e.append(a,w),c=!0},p(r,i){const m={};i[0]&128&&(m.status=r[42].Status),t.$set(m),(!c||i[0]&4224)&&l!==(l=r[12](`transactionStatus.${r[42].Status}`)+"")&&e.set_data(w,l)},i(r){c||(e.transition_in(t.$$.fragment,r),c=!0)},o(r){e.transition_out(t.$$.fragment,r),c=!1},d(r){r&&(e.detach(s),e.detach(a)),e.destroy_component(t,r)}}}function Ue(n){let t,s=n[42].Amount+"",a,l,w=n[42].Currency+"",c,r;return{c(){t=e.element("span"),a=e.text(s),l=e.space(),c=e.text(w),e.attr(t,"class",r="Amount "+n[42].Type+" "+n[42].Status+" svelte-ywswwa")},m(i,m){e.insert(i,t,m),e.append(t,a),e.append(t,l),e.append(t,c)},p(i,m){m[0]&128&&s!==(s=i[42].Amount+"")&&e.set_data(a,s),m[0]&128&&w!==(w=i[42].Currency+"")&&e.set_data(c,w),m[0]&128&&r!==(r="Amount "+i[42].Type+" "+i[42].Status+" svelte-ywswwa")&&e.attr(t,"class",r)},i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function Ye(n){let t,s=n[42].Code+"",a,l,w,c;return{c(){t=e.element("span"),a=e.text(s),e.attr(t,"data-copy",l=n[42].Code),e.attr(t,"class","svelte-ywswwa"),e.toggle_class(t,"copied",n[8])},m(r,i){e.insert(r,t,i),e.append(t,a),w||(c=e.listen(t,"click",n[28]),w=!0)},p(r,i){i[0]&128&&s!==(s=r[42].Code+"")&&e.set_data(a,s),i[0]&128&&l!==(l=r[42].Code)&&e.attr(t,"data-copy",l),i[0]&256&&e.toggle_class(t,"copied",r[8])},i:e.noop,o:e.noop,d(r){r&&e.detach(t),w=!1,c()}}}function qe(n){let t,s;return t=new Fe.TxnTypeIcons({props:{type:n[42].Type}}),{c(){e.create_component(t.$$.fragment)},m(a,l){e.mount_component(t,a,l),s=!0},p(a,l){const w={};l[0]&128&&(w.type=a[42].Type),t.$set(w)},i(a){s||(e.transition_in(t.$$.fragment,a),s=!0)},o(a){e.transition_out(t.$$.fragment,a),s=!1},d(a){e.destroy_component(t,a)}}}function We(n){let t,s=n[12](`transactionType.${n[42].Type}`)+"",a;return{c(){t=e.element("span"),a=e.text(s),e.attr(t,"class","svelte-ywswwa")},m(l,w){e.insert(l,t,w),e.append(t,a)},p(l,w){w[0]&4224&&s!==(s=l[12](`transactionType.${l[42].Type}`)+"")&&e.set_data(a,s)},i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function ke(n){let t,s,a,l,w,c,r,i;const m=[We,qe,Ye,Ue,Ve,Oe,Le,Ne,Me],_=[];function p(d,y){return d[49]==="Type"?0:d[49]==="TypeIcon"?1:d[49]==="Code"?2:d[49]==="Amount"?3:d[49]==="StatusIcon"?4:d[49]==="Status"?5:d[49]==="Date"?6:d[49]==="DateTime"?7:8}return a=p(n),l=_[a]=m[a](n),{c(){t=e.element("td"),s=e.element("span"),l.c(),c=e.space(),e.attr(s,"class",w=e.null_to_empty(n[49])+" svelte-ywswwa"),e.attr(t,"class",r=e.null_to_empty(`column-${n[49]}`)+" svelte-ywswwa")},m(d,y){e.insert(d,t,y),e.append(t,s),_[a].m(s,null),e.append(t,c),i=!0},p(d,y){let h=a;a=p(d),a===h?_[a].p(d,y):(e.group_outros(),e.transition_out(_[h],1,1,()=>{_[h]=null}),e.check_outros(),l=_[a],l?l.p(d,y):(l=_[a]=m[a](d),l.c()),e.transition_in(l,1),l.m(s,null)),(!i||y[0]&1024&&w!==(w=e.null_to_empty(d[49])+" svelte-ywswwa"))&&e.attr(s,"class",w),(!i||y[0]&1024&&r!==(r=e.null_to_empty(`column-${d[49]}`)+" svelte-ywswwa"))&&e.attr(t,"class",r)},i(d){i||(e.transition_in(l),i=!0)},o(d){e.transition_out(l),i=!1},d(d){d&&e.detach(t),_[a].d()}}}function xe(n){let t,s,a,l,w,c,r=n[12]("transactionTypeTitle")+"",i,m,_,p,d=n[12](`transactionType.${n[42].Type}`)+"",y,h,g,H,C=n[12]("transactionDateTitle")+"",j,T,Y,u,b=U.dayjs(n[42].DateTime).format(n[5])+"",f,S,E,M,q=n[12]("transactionPaymentMethodTitle")+"",N,z,Q,L,G=n[42].PaymentMethod+"",$,te,O,W,V=n[12]("transactionCodeTitle")+"",J,ae,se,P,Z,K=n[42].Code+"",o,v,x,D,A,B,ne,we,de,ee,pe,le,X,ie,re,oe,ue,ce,fe,F=n[42].RejectionNote&&De(n),I=n[42].PaymentFields&&He(n);return{c(){t=e.element("tr"),s=e.element("td"),a=e.element("div"),l=e.element("div"),w=e.element("div"),c=e.element("span"),i=e.text(r),m=e.text(" :"),_=e.space(),p=e.element("span"),y=e.text(d),h=e.space(),g=e.element("div"),H=e.element("span"),j=e.text(C),T=e.text(" :"),Y=e.space(),u=e.element("span"),f=e.text(b),S=e.space(),E=e.element("div"),M=e.element("span"),N=e.text(q),z=e.text(" :"),Q=e.space(),L=e.element("span"),$=e.text(G),te=e.space(),O=e.element("div"),W=e.element("span"),J=e.text(V),ae=e.text(" :"),se=e.space(),P=e.element("span"),Z=e.element("span"),o=e.text(K),v=e.space(),x=e.svg_element("svg"),D=e.svg_element("g"),A=e.svg_element("path"),B=e.svg_element("path"),we=e.space(),F&&F.c(),de=e.space(),ee=e.element("div"),I&&I.c(),pe=e.space(),le=e.element("div"),X=e.element("ui-image"),ue=e.space(),e.attr(c,"class","DetailsTitle svelte-ywswwa"),e.attr(p,"class","DetailsValue svelte-ywswwa"),e.attr(w,"class","DetailsRow svelte-ywswwa"),e.attr(H,"class","DetailsTitle svelte-ywswwa"),e.attr(u,"class","DetailsValue svelte-ywswwa"),e.attr(g,"class","DetailsRow svelte-ywswwa"),e.attr(M,"class","DetailsTitle svelte-ywswwa"),e.attr(L,"class","DetailsValue svelte-ywswwa"),e.attr(E,"class","DetailsRow svelte-ywswwa"),e.attr(W,"class","DetailsTitle svelte-ywswwa"),e.attr(Z,"class","svelte-ywswwa"),e.attr(A,"d","M12.6663 4.375H5.54134C4.66689 4.375 3.95801 5.1585 3.95801 6.125V14C3.95801 14.9665 4.66689 15.75 5.54134 15.75H12.6663C13.5408 15.75 14.2497 14.9665 14.2497 14V6.125C14.2497 5.1585 13.5408 4.375 12.6663 4.375Z"),e.attr(A,"stroke","#666666"),e.attr(A,"stroke-linecap","round"),e.attr(A,"stroke-linejoin","round"),e.attr(A,"class","svelte-ywswwa"),e.attr(B,"d","M3.95801 13.125H3.16634C2.74642 13.125 2.34369 12.9406 2.04676 12.6124C1.74982 12.2842 1.58301 11.8391 1.58301 11.375V3.5C1.58301 3.03587 1.74982 2.59075 2.04676 2.26256C2.34369 1.93437 2.74642 1.75 3.16634 1.75H10.2913C10.7113 1.75 11.114 1.93437 11.4109 2.26256C11.7079 2.59075 11.8747 3.03587 11.8747 3.5V4.375"),e.attr(B,"stroke","#666666"),e.attr(B,"stroke-linecap","round"),e.attr(B,"stroke-linejoin","round"),e.attr(B,"class","svelte-ywswwa"),e.attr(D,"opacity","0.5"),e.attr(D,"class","svelte-ywswwa"),e.attr(x,"xmlns","http://www.w3.org/2000/svg"),e.attr(x,"width","19"),e.attr(x,"height","19"),e.attr(x,"viewBox","0 0 19 19"),e.attr(x,"fill","none"),e.attr(x,"class","svelte-ywswwa"),e.attr(P,"data-copy",ne=n[42].Code),e.attr(P,"class","DetailsValue CopyCode svelte-ywswwa"),e.attr(O,"class","DetailsRow svelte-ywswwa"),e.attr(l,"class","StaticDetails svelte-ywswwa"),e.attr(ee,"class","DynamicDetails svelte-ywswwa"),e.src_url_equal(X.src,ie=n[42].Logo)||e.set_custom_element_data(X,"src",ie),e.set_custom_element_data(X,"class","svelte-ywswwa"),e.attr(le,"class","DetailsLogo svelte-ywswwa"),e.attr(a,"class","ExpandedContent svelte-ywswwa"),e.attr(s,"colspan",oe=n[10].length),e.attr(s,"class","no-padding svelte-ywswwa"),e.attr(t,"class","ExpandedRow svelte-ywswwa")},m(k,R){e.insert(k,t,R),e.append(t,s),e.append(s,a),e.append(a,l),e.append(l,w),e.append(w,c),e.append(c,i),e.append(c,m),e.append(w,_),e.append(w,p),e.append(p,y),e.append(l,h),e.append(l,g),e.append(g,H),e.append(H,j),e.append(H,T),e.append(g,Y),e.append(g,u),e.append(u,f),e.append(l,S),e.append(l,E),e.append(E,M),e.append(M,N),e.append(M,z),e.append(E,Q),e.append(E,L),e.append(L,$),e.append(l,te),e.append(l,O),e.append(O,W),e.append(W,J),e.append(W,ae),e.append(O,se),e.append(O,P),e.append(P,Z),e.append(Z,o),e.append(P,v),e.append(P,x),e.append(x,D),e.append(D,A),e.append(D,B),e.append(l,we),F&&F.m(l,null),e.append(a,de),e.append(a,ee),I&&I.m(ee,null),e.append(a,pe),e.append(a,le),e.append(le,X),e.append(t,ue),ce||(fe=e.listen(P,"mousedown",n[30]),ce=!0)},p(k,R){R[0]&4096&&r!==(r=k[12]("transactionTypeTitle")+"")&&e.set_data(i,r),R[0]&4224&&d!==(d=k[12](`transactionType.${k[42].Type}`)+"")&&e.set_data(y,d),R[0]&4096&&C!==(C=k[12]("transactionDateTitle")+"")&&e.set_data(j,C),R[0]&160&&b!==(b=U.dayjs(k[42].DateTime).format(k[5])+"")&&e.set_data(f,b),R[0]&4096&&q!==(q=k[12]("transactionPaymentMethodTitle")+"")&&e.set_data(N,q),R[0]&128&&G!==(G=k[42].PaymentMethod+"")&&e.set_data($,G),R[0]&4096&&V!==(V=k[12]("transactionCodeTitle")+"")&&e.set_data(J,V),R[0]&128&&K!==(K=k[42].Code+"")&&e.set_data(o,K),R[0]&128&&ne!==(ne=k[42].Code)&&e.attr(P,"data-copy",ne),k[42].RejectionNote?F?F.p(k,R):(F=De(k),F.c(),F.m(l,null)):F&&(F.d(1),F=null),k[42].PaymentFields?I?I.p(k,R):(I=He(k),I.c(),I.m(ee,null)):I&&(I.d(1),I=null),R[0]&128&&!e.src_url_equal(X.src,ie=k[42].Logo)&&e.set_custom_element_data(X,"src",ie),R[0]&1024&&oe!==(oe=k[10].length)&&e.attr(s,"colspan",oe)},i(k){k&&(re||e.add_render_callback(()=>{re=e.create_in_transition(a,n[15],{}),re.start()}))},o:e.noop,d(k){k&&e.detach(t),F&&F.d(),I&&I.d(),ce=!1,fe()}}}function De(n){let t,s,a=n[12]("transactionRejectionNoteTitle")+"",l,w,c,r,i=n[42].RejectionNote+"",m;return{c(){t=e.element("div"),s=e.element("span"),l=e.text(a),w=e.text(" :"),c=e.space(),r=e.element("span"),m=e.text(i),e.attr(s,"class","DetailsTitle svelte-ywswwa"),e.attr(r,"class","DetailsValue svelte-ywswwa"),e.attr(t,"class","DetailsRow svelte-ywswwa")},m(_,p){e.insert(_,t,p),e.append(t,s),e.append(s,l),e.append(s,w),e.append(t,c),e.append(t,r),e.append(r,m)},p(_,p){p[0]&4096&&a!==(a=_[12]("transactionRejectionNoteTitle")+"")&&e.set_data(l,a),p[0]&128&&i!==(i=_[42].RejectionNote+"")&&e.set_data(m,i)},d(_){_&&e.detach(t)}}}function He(n){let t,s=e.ensure_array_like(Object.entries(n[42].PaymentFields)),a=[];for(let l=0;l<s.length;l+=1)a[l]=Se(ve(n,s,l));return{c(){for(let l=0;l<a.length;l+=1)a[l].c();t=e.empty()},m(l,w){for(let c=0;c<a.length;c+=1)a[c]&&a[c].m(l,w);e.insert(l,t,w)},p(l,w){if(w[0]&4224){s=e.ensure_array_like(Object.entries(l[42].PaymentFields));let c;for(c=0;c<s.length;c+=1){const r=ve(l,s,c);a[c]?a[c].p(r,w):(a[c]=Se(r),a[c].c(),a[c].m(t.parentNode,t))}for(;c<a.length;c+=1)a[c].d(1);a.length=s.length}},d(l){l&&e.detach(t),e.destroy_each(a,l)}}}function Se(n){let t,s,a=n[12](`transaction${n[45]}Detail`,{default:n[45]})+"",l,w,c,r,i=n[46]+"",m,_;return{c(){t=e.element("div"),s=e.element("span"),l=e.text(a),w=e.text(" :"),c=e.space(),r=e.element("span"),m=e.text(i),_=e.space(),e.attr(s,"class","DetailsTitle svelte-ywswwa"),e.attr(r,"class","DetailsValue svelte-ywswwa"),e.attr(t,"class","DetailsRow svelte-ywswwa")},m(p,d){e.insert(p,t,d),e.append(t,s),e.append(s,l),e.append(s,w),e.append(t,c),e.append(t,r),e.append(r,m),e.append(t,_)},p(p,d){d[0]&4224&&a!==(a=p[12](`transaction${p[45]}Detail`,{default:p[45]})+"")&&e.set_data(l,a),d[0]&128&&i!==(i=p[46]+"")&&e.set_data(m,i)},d(p){p&&e.detach(t)}}}function je(n){let t,s,a,l,w,c,r=e.ensure_array_like(n[10]),i=[];for(let d=0;d<r.length;d+=1)i[d]=ke(ge(n,r,d));const m=d=>e.transition_out(i[d],1,1,()=>{i[d]=null});function _(){return n[29](n[44])}let p=n[11]===n[44]&&xe(n);return{c(){t=e.element("tr");for(let d=0;d<i.length;d+=1)i[d].c();s=e.space(),p&&p.c(),a=e.empty(),e.attr(t,"class","TransactionHistoryRow svelte-ywswwa"),e.toggle_class(t,"AllowExpand",n[3]==="true"),e.toggle_class(t,"Expanded",n[11]===n[44])},m(d,y){e.insert(d,t,y);for(let h=0;h<i.length;h+=1)i[h]&&i[h].m(t,null);e.insert(d,s,y),p&&p.m(d,y),e.insert(d,a,y),l=!0,w||(c=e.listen(t,"click",_),w=!0)},p(d,y){if(n=d,y[0]&13744){r=e.ensure_array_like(n[10]);let h;for(h=0;h<r.length;h+=1){const g=ge(n,r,h);i[h]?(i[h].p(g,y),e.transition_in(i[h],1)):(i[h]=ke(g),i[h].c(),e.transition_in(i[h],1),i[h].m(t,null))}for(e.group_outros(),h=r.length;h<i.length;h+=1)m(h);e.check_outros()}(!l||y[0]&8)&&e.toggle_class(t,"AllowExpand",n[3]==="true"),(!l||y[0]&2048)&&e.toggle_class(t,"Expanded",n[11]===n[44]),n[11]===n[44]?p?(p.p(n,y),y[0]&2048&&e.transition_in(p,1)):(p=xe(n),p.c(),e.transition_in(p,1),p.m(a.parentNode,a)):p&&(p.d(1),p=null)},i(d){if(!l){for(let y=0;y<r.length;y+=1)e.transition_in(i[y]);e.transition_in(p),l=!0}},o(d){i=i.filter(Boolean);for(let y=0;y<i.length;y+=1)e.transition_out(i[y]);l=!1},d(d){d&&(e.detach(t),e.detach(s),e.detach(a)),e.destroy_each(i,d),p&&p.d(d),w=!1,c()}}}function Be(n){let t,s,a,l;const w=[Ee,ze],c=[];function r(i,m){return i[7].length?0:i[9]?1:-1}return~(s=r(n))&&(a=c[s]=w[s](n)),{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierTransactionHistoryContainer svelte-ywswwa")},m(i,m){e.insert(i,t,m),~s&&c[s].m(t,null),l=!0},p(i,m){let _=s;s=r(i),s===_?~s&&c[s].p(i,m):(a&&(e.group_outros(),e.transition_out(c[_],1,1,()=>{c[_]=null}),e.check_outros()),~s?(a=c[s],a?a.p(i,m):(a=c[s]=w[s](i),a.c()),e.transition_in(a,1),a.m(t,null)):a=null)},i(i){l||(e.transition_in(a),l=!0)},o(i){e.transition_out(a),l=!1},d(i){i&&e.detach(t),~s&&c[s].d()}}}function Xe(n,t,s){let a;e.component_subscribe(n,e.$format,o=>s(12,a=o));let{endpoint:l}=t,{session:w}=t,{lang:c="en"}=t,{customerid:r}=t,{clientstyling:i=""}=t,{clientstylingurl:m=""}=t,{translationurl:_}=t,{tooltipduration:p=1e3}=t,{txncount:d}=t,{mbsource:y=""}=t,{columns:h}=t,{page:g="0"}=t,{calculateprofit:H="false"}=t,{fromdate:C=U.dayjs().subtract(3,"month")}=t,{todate:j=U.dayjs()}=t,{isshorttransactionhistory:T="false"}=t,{dateformat:Y="DD.MM.YYYY"}=t,{datetimeformat:u="DD.MM.YYYY HH:mm:ss"}=t,b=[],f=!1,S,E,M=!1,q=[],N;var z;(function(o){o.Deposit="deposit",o.Withdraw="withdraw",o.Refund="refund",o.Unknown="unknown",o.TaxDeduction="taxDeduction"})(z||(z={}));const Q=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var L;(function(o){o.Authorized="Authorized",o.Success="Success",o.Failed="Failed",o.Rejected="Rejected",o.Pending="Pending"})(L||(L={})),e.onMount(()=>()=>{});const G=()=>{let o=_;if(o)return fetch(o).then(v=>v.json()).then(v=>{Object.keys(v).forEach(x=>{ye(x,v[x])})}).catch(v=>{console.log(v)})};Object.keys(he).forEach(o=>{ye(o,he[o])});const $=()=>{Ae(c)},te=()=>{const o=new URL(`${l}/api/v1/mm/payment/gettransactionshistory`),v=new Headers;v.append("accept","application/json"),v.append("Content-Type","application/json"),v.append("X-SessionId",`${w}`);const x={method:"POST",mode:"cors",headers:v,body:JSON.stringify({language:c,customerId:r,count:+d,page:+g,fromDate:C,toDate:j,statuses:{[z.Deposit]:Q,[z.Withdraw]:Q,[z.Refund]:["Unknown"],[z.TaxDeduction]:["Unknown"],[z.Unknown]:["Unknown"]},calculateProfit:H==="true"})};s(9,M=!0),fetch(o,x).then(D=>D.json()).then(D=>{s(7,b=O((D==null?void 0:D.items)||[]));const A={type:"TransactionsLoaded",total:D.total};H==="true"&&(A.statistic=D.statistic),window.postMessage(A,window.location.href)}).catch(D=>console.log(D)).finally(()=>s(9,M=!1))},O=o=>(s(10,q=h.split(",")),s(11,N=null),o.map(v=>{let x=v.generalFields.status;return v.generalFields.status.toLowerCase().includes("pending")&&(x=L.Pending),{Code:v.generalFields.code,Date:v.generalFields.created,DateTime:v.generalFields.created,Status:x,Type:v.generalFields.type,Amount:v.generalFields.amount,Currency:v.generalFields.currency,PaymentMethod:v.generalFields.paymentMethod,RejectionNote:v.generalFields.rejectionNote,PaymentFields:v.paymentFields&&Object.keys(v.paymentFields).length>0?v.paymentFields:null,Logo:W(v.logos)}})||[]),W=o=>{if(o&&o.length){const v=o.find(D=>D.logoType==="Mobile"),x=o.find(D=>D.logoType==="Desktop");return v&&v.logoUrl||x&&x.logoUrl}},V=(o,v=!0)=>{const D=o.currentTarget.dataset.copy;D&&navigator.clipboard.writeText(D).then(()=>{v&&(s(8,f=!0),clearTimeout(E),E=setTimeout(()=>{s(8,f=!1)},2e3))}).catch(A=>{console.error("Could not copy text: ",A)})},J=o=>{T!=="true"&&s(11,N=N===o?null:o)},ae=(o,v)=>({delay:0,duration:250,css:x=>`overflow: hidden; transform: translateY(${(1-x)*20}px); opacity: ${x}`}),se=o=>V(o),P=o=>J(o),Z=o=>V(o,!1);function K(o){e.binding_callbacks[o?"unshift":"push"](()=>{S=o,s(6,S)})}return n.$$set=o=>{"endpoint"in o&&s(16,l=o.endpoint),"session"in o&&s(17,w=o.session),"lang"in o&&s(18,c=o.lang),"customerid"in o&&s(19,r=o.customerid),"clientstyling"in o&&s(0,i=o.clientstyling),"clientstylingurl"in o&&s(1,m=o.clientstylingurl),"translationurl"in o&&s(20,_=o.translationurl),"tooltipduration"in o&&s(2,p=o.tooltipduration),"txncount"in o&&s(21,d=o.txncount),"mbsource"in o&&s(22,y=o.mbsource),"columns"in o&&s(23,h=o.columns),"page"in o&&s(24,g=o.page),"calculateprofit"in o&&s(25,H=o.calculateprofit),"fromdate"in o&&s(26,C=o.fromdate),"todate"in o&&s(27,j=o.todate),"isshorttransactionhistory"in o&&s(3,T=o.isshorttransactionhistory),"dateformat"in o&&s(4,Y=o.dateformat),"datetimeformat"in o&&s(5,u=o.datetimeformat)},n.$$.update=()=>{n.$$.dirty[0]&262144&&c&&$(),n.$$.dirty[0]&65&&i&&S&&e.setClientStyling(S,i),n.$$.dirty[0]&66&&m&&S&&e.setClientStylingURL(S,m),n.$$.dirty[0]&252641280&&l&&w&&r&&c&&C&&j&&g&&H&&te(),n.$$.dirty[0]&1048576&&_&&G(),n.$$.dirty[0]&4194368&&y&&S&&e.setStreamStyling(S,`${y}.Style`)},[i,m,p,T,Y,u,S,b,f,M,q,N,a,V,J,ae,l,w,c,r,_,d,y,h,g,H,C,j,se,P,Z,K]}class Re extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Xe,Be,e.safe_not_equal,{endpoint:16,session:17,lang:18,customerid:19,clientstyling:0,clientstylingurl:1,translationurl:20,tooltipduration:2,txncount:21,mbsource:22,columns:23,page:24,calculateprofit:25,fromdate:26,todate:27,isshorttransactionhistory:3,dateformat:4,datetimeformat:5},Pe,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get customerid(){return this.$$.ctx[19]}set customerid(t){this.$$set({customerid:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(t){this.$$set({tooltipduration:t}),e.flush()}get txncount(){return this.$$.ctx[21]}set txncount(t){this.$$set({txncount:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get columns(){return this.$$.ctx[23]}set columns(t){this.$$set({columns:t}),e.flush()}get page(){return this.$$.ctx[24]}set page(t){this.$$set({page:t}),e.flush()}get calculateprofit(){return this.$$.ctx[25]}set calculateprofit(t){this.$$set({calculateprofit:t}),e.flush()}get fromdate(){return this.$$.ctx[26]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[27]}set todate(t){this.$$set({todate:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[3]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get dateformat(){return this.$$.ctx[4]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[5]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}}e.create_custom_element(Re,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{},columns:{},page:{},calculateprofit:{},fromdate:{},todate:{},isshorttransactionhistory:{},dateformat:{},datetimeformat:{}},[],[],!0);exports.default=Re;
|
package/components/{CashierTransactionHistory-CHPwXvGA.js → CashierTransactionHistory-C-Xi_6tR.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as at, $ as lt, i as it, S as nt, b as ot, s as rt, f as E, c as wt, e as A, t as B, g as N, C as me, k as pe, l as j, n as p, p as u, q as ct, r as ut, U as ee, V as He, w as R, R as te, m as o, o as F, x as C, I as M, A as $, y as dt, a4 as ft, M as Ke, a5 as Qe, B as Re, v as $e, a6 as ke, z as ze, Z as De, a7 as et, a8 as tt, a9 as st, D as yt, E as mt, F as pt, G as vt, H as ht } from "./CashierCarousel-
|
|
2
|
-
import { f as Ee } from "./CashierModal-
|
|
3
|
-
import { d as se } from "./CashierMethodDetails-
|
|
4
|
-
import "../stencil/ui-image-
|
|
5
|
-
import { T as gt } from "./TxnTypeIcons-
|
|
6
|
-
import { T as _t } from "./TxnStatusIcon-
|
|
1
|
+
import { a as at, $ as lt, i as it, S as nt, b as ot, s as rt, f as E, c as wt, e as A, t as B, g as N, C as me, k as pe, l as j, n as p, p as u, q as ct, r as ut, U as ee, V as He, w as R, R as te, m as o, o as F, x as C, I as M, A as $, y as dt, a4 as ft, M as Ke, a5 as Qe, B as Re, v as $e, a6 as ke, z as ze, Z as De, a7 as et, a8 as tt, a9 as st, D as yt, E as mt, F as pt, G as vt, H as ht } from "./CashierCarousel-CqyFcV3a.js";
|
|
2
|
+
import { f as Ee } from "./CashierModal-C0BiLUR3.js";
|
|
3
|
+
import { d as se } from "./CashierMethodDetails-sVbEdNZ7.js";
|
|
4
|
+
import "../stencil/ui-image-DivxSsH2.js";
|
|
5
|
+
import { T as gt } from "./TxnTypeIcons-DTrSvliH.js";
|
|
6
|
+
import { T as _t } from "./TxnStatusIcon-Z6Bw6KLa.js";
|
|
7
7
|
it({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
9
|
});
|
package/components/{CashierTransactionHistory-DLBclLcC.js → CashierTransactionHistory-CkmB8XtT.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as at, $ as lt, i as it, S as nt, b as ot, s as rt, f as E, c as wt, e as j, t as B, g as N, k as me, l as pe, m as I, o as p, q as u, r as ct, v as ut, U as ee, V as He, x as R, R as te, n as o, p as A, y as C, I as M, B as $, z as dt, a4 as ft, M as Ke, a5 as Qe, C as Re, w as $e, a6 as ke, A as ze, Z as De, a7 as et, a8 as tt, a9 as st, D as yt, E as mt, F as pt, G as vt, H as ht } from "./CashierCarousel-
|
|
2
|
-
import { f as Ee } from "./CashierModal-
|
|
3
|
-
import { d as se } from "./CashierMethodDetails-
|
|
4
|
-
import "../stencil/ui-image-
|
|
5
|
-
import { T as gt } from "./TxnTypeIcons-
|
|
6
|
-
import { T as _t } from "./TxnStatusIcon-
|
|
1
|
+
import { a as at, $ as lt, i as it, S as nt, b as ot, s as rt, f as E, c as wt, e as j, t as B, g as N, k as me, l as pe, m as I, o as p, q as u, r as ct, v as ut, U as ee, V as He, x as R, R as te, n as o, p as A, y as C, I as M, B as $, z as dt, a4 as ft, M as Ke, a5 as Qe, C as Re, w as $e, a6 as ke, A as ze, Z as De, a7 as et, a8 as tt, a9 as st, D as yt, E as mt, F as pt, G as vt, H as ht } from "./CashierCarousel-BZzZj6TH.js";
|
|
2
|
+
import { f as Ee } from "./CashierModal-DvqHQn9_.js";
|
|
3
|
+
import { d as se } from "./CashierMethodDetails-DDFsqzQA.js";
|
|
4
|
+
import "../stencil/ui-image-DrpynttK.js";
|
|
5
|
+
import { T as gt } from "./TxnTypeIcons-HXKTaH8v.js";
|
|
6
|
+
import { T as _t } from "./TxnStatusIcon-BhCjKEzv.js";
|
|
7
7
|
it({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-DXPbv83E.cjs"),q=require("./CashierMethodDetails-f2nVnAEu.cjs");function H(n,t){e.addMessages(n,t)}function ge(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const j={en:{verificationsRequired:"Verifications Required","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{verificationsRequired:"Doğrulamalar Gerekli","verification.video.how-to":"Kimlik doğrulama nasıl yapılır?","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{verificationsRequired:"Potrebne su provjere","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};function ve(n){e.append_styles(n,"svelte-16iaxkf","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%;background-color:var(--emw--color-white, #ffffff);border-radius:10px}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--emw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.text a{color:var(--emw--color-primary, #3854FF);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--emw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--emw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #3854FF)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #3854FF);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function U(n,t,r){const s=n.slice();return s[53]=t[r],s}function we(n){let t,r=n[3].length>0&&N(n);return{c(){t=e.element("div"),r&&r.c(),e.attr(t,"class","CashierVerificationsWrapper")},m(s,a){e.insert(s,t,a),r&&r.m(t,null)},p(s,a){s[3].length>0?r?r.p(s,a):(r=N(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ye(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0])},m(r,s){e.insert(r,t,s)},p(r,s){s[0]&2&&e.set_custom_element_data(t,"clientstylingurl",r[1]),s[0]&1&&e.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&e.detach(t)}}}function N(n){let t,r,s,a,l,d,g,P=n[8]("verificationsRequired")+"",w,k,C,D,v,_,T,x,b=e.ensure_array_like(n[3]),h=[];for(let f=0;f<b.length;f+=1)h[f]=W(U(n,b,f));let m=n[6]&&Y(n);return{c(){t=e.element("div"),r=e.svg_element("svg"),s=e.svg_element("path"),a=e.svg_element("path"),l=e.svg_element("path"),d=e.space(),g=e.element("p"),w=e.text(P),k=e.space(),C=e.element("span"),C.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',D=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();_=e.space(),m&&m.c(),e.attr(s,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),e.attr(s,"stroke","#6E738F"),e.attr(s,"stroke-width","2"),e.attr(s,"stroke-linecap","round"),e.attr(s,"stroke-linejoin","round"),e.attr(a,"d","M12 8V12"),e.attr(a,"stroke","#6E738F"),e.attr(a,"stroke-width","2"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(l,"d","M12 16H12.01"),e.attr(l,"stroke","#6E738F"),e.attr(l,"stroke-width","2"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(r,"width","24"),e.attr(r,"height","24"),e.attr(r,"viewBox","0 0 24 24"),e.attr(r,"fill","none"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"class","CashierVerificationChevron"),e.toggle_class(C,"ShowVerifications",n[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",n[4])},m(f,V){e.insert(f,t,V),e.append(t,r),e.append(r,s),e.append(r,a),e.append(r,l),e.append(t,d),e.append(t,g),e.append(g,w),e.append(t,k),e.append(t,C),e.insert(f,D,V),e.insert(f,v,V);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,_),m&&m.m(v,null),T||(x=e.listen(t,"click",n[9]),T=!0)},p(f,V){if(V[0]&256&&P!==(P=f[8]("verificationsRequired")+"")&&e.set_data(w,P),V[0]&16&&e.toggle_class(C,"ShowVerifications",f[4]),V[0]&8){b=e.ensure_array_like(f[3]);let u;for(u=0;u<b.length;u+=1){const F=U(f,b,u);h[u]?h[u].p(F,V):(h[u]=W(F),h[u].c(),h[u].m(v,_))}for(;u<h.length;u+=1)h[u].d(1);h.length=b.length}f[6]?m?m.p(f,V):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),V[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(D),e.detach(v)),e.destroy_each(h,f),m&&m.d(),T=!1,x()}}}function W(n){let t,r,s,a,l=n[53]+"";return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',s=e.space(),a=e.element("p"),e.attr(r,"class","IconVerification"),e.attr(a,"class","text"),e.attr(t,"class","CashierVerificationMessage Test")},m(d,g){e.insert(d,t,g),e.append(t,r),e.append(t,s),e.append(t,a),a.innerHTML=l},p(d,g){g[0]&8&&l!==(l=d[53]+"")&&(a.innerHTML=l)},d(d){d&&e.detach(t)}}}function Y(n){let t,r,s,a,l=n[8]("verification.video.how-to")+"",d,g,P;return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=e.space(),a=e.element("div"),d=e.text(l),e.attr(r,"class","IconVideo"),e.attr(a,"class","CashierVerificationVideoLink"),e.toggle_class(a,"CashierVerificationVideoLinkDesktop",n[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,k){e.insert(w,t,k),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(P=e.listen(t,"click",n[10]),g=!0)},p(w,k){k[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),k[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,P()}}}function ke(n){let t;function r(l,d){if(l[7])return ye;if(l[3])return we}let s=r(n),a=s&&s(n);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",n[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),n[19](t)},p(l,d){s===(s=r(l))&&a?a.p(l,d):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(t,null))),d[0]&32&&e.toggle_class(t,"CashierVerificationsDesktop",l[5])},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a&&a.d(),n[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function Pe(n,t,r){let s,a;e.component_subscribe(n,e.$format,i=>r(8,s=i)),e.component_subscribe(n,q.xPaymentSessionToken,i=>r(27,a=i)),q.dayjs.extend(q.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:P=""}=t,{clientstylingurl:w=""}=t,{session:k=""}=t,{customerid:C=""}=t,{playersession:D=""}=t,{mbsource:v=""}=t,_,T=new Set,x=new Set,b,h,m,f=!1,V=!0,u=!1,F="",L=!1,Z=window.navigator.userAgent;var M;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(M||(M={}));var E;(function(i){i.Requested="Requested"})(E||(E={}));var y;(function(i){i.Unknown="Unknown",i.Unverified="Unverified",i.InProgress="InProgress",i.Failed="Failed",i.Verified="Verified",i.Referred="Referred",i.True="True",i.False="False",i.AwaitingForResponse="AwaitingForResponse"})(y||(y={}));var O;(function(i){i.Unknown="Unknown",i.Documents="Documents",i.Age="Age",i.Pep="Pep",i.Sanction="Sanction",i.Aml="Aml",i.ProofOfAddress="ProofOfAddress",i.SourceOfWealth="SourceOfWealth",i.SocialMedia="SocialMedia",i.Biometric="Biometric"})(O||(O={}));const z=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",z),ue(),()=>{window.removeEventListener("message",z)}));const G=[y.InProgress,y.Referred,y.AwaitingForResponse],J=()=>{let i=g;if(i)return fetch(i).then(o=>o.json()).then(o=>{Object.keys(o).forEach(c=>{H(c,o[c])})}).catch(o=>{console.log(o)})};Object.keys(j).forEach(i=>{H(i,j[i])});const X=()=>{ge(d)},I=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${C}/verification/GetKYCCustomerStatus?language=${d}`),o=new Headers;o.append("accept","application/json"),o.append("Content-Type","application/json"),o.append("x-sessionid",`${D}`),o.append("X-Client-Request-Timestamp",q.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:o,body:JSON.stringify({})};r(7,L=!0),fetch(i,c).then(p=>p.json()).then(p=>{const S=Q(p==null?void 0:p.Verifications);b=ie(S),b.VerificationStatuses.forEach(B=>{B.VerificationUrlType!=="Widget"&&T.add(B.Vendor)}),r(3,m=se())}).finally(()=>r(7,L=!1))},Q=i=>i?i.sort((o,c)=>new Date(c.Created).getTime()-new Date(o.Created).getTime()):[],$=()=>{a&&I()},ee=()=>{let i=(k||a).split(".")[1];if(i){let o=JSON.parse(atob(i));return o.cdn+"/cashier/operator-assets/"+(o==null?void 0:o.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:y.Unverified,VerificationStatuses:[]};const o=re(i);if(o&&o.length){const p=te(o);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(o,p.Status)}}else return{VerificationSummaryStatus:i.some(S=>S.Status===y.Failed)?y.Failed:y.Verified,VerificationStatuses:R(i,[y.Failed])}},te=i=>i.reduce((o,c)=>o?new Date(o)<new Date(c)?c:o:c,0),R=(i,o)=>i.filter(c=>o.includes(c.Status)).map(c=>{var p,S;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(S=c.FlowInfo)==null?void 0:S.Url}}),re=i=>i.filter(o=>G.includes(o.Status)?o.FlowInfo&&o.FlowInfo.Url||oe(o)||ne(o):!1),oe=i=>{const o=i.Documents&&i.VendorName===M.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===E.Requested);return o&&c},ne=i=>i.VendorName===M.ShuftiPro&&i.Status===y.Referred,se=()=>{switch(b.VerificationSummaryStatus){case y.InProgress:const i=[];return T.forEach(o=>{i.push(ae(o))}),i;case y.Referred:return[s("verification.idenfy.referred-awaiting")];case y.Failed:return[s("verification.message.failed")]}},ae=i=>{const o=b.VerificationStatuses.filter(c=>c.Vendor===i);if(i===M.ShuftiPro)return le(o);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const o=[],c={},p=[O.Biometric,O.Documents,O.ProofOfAddress];i.forEach(A=>{p.includes(A.Type)&&(o.push(A.Type),c[A.Type]=ce(A,fe(A.Type)))});let S=o.every(A=>x.has(A)),B=`verification.shuftipro.in-progress.${o.sort().join(".")}`;return S?s("verification.shuftipro.validations-started"):s(B,{values:c})},ce=(i,o)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${o}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,V=!e.isMobile(Z))},he=()=>{F=h+"/"+d+"/"+Ve;try{fetch(F,{method:"HEAD"}).then(i=>{r(6,u=i.ok)})}catch(i){r(6,u=!1)}},pe=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:F}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{_=i,r(2,_)})}return n.$$set=i=>{"endpoint"in i&&r(11,l=i.endpoint),"lang"in i&&r(12,d=i.lang),"translationurl"in i&&r(13,g=i.translationurl),"clientstyling"in i&&r(0,P=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,k=i.session),"customerid"in i&&r(15,C=i.customerid),"playersession"in i&&r(16,D=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&4096&&d&&X(),n.$$.dirty[0]&83968&&l&&k&&D&&I(),n.$$.dirty[0]&83968&&l&&!k&&D&&$(),n.$$.dirty[0]&8192&&g&&J(),n.$$.dirty[0]&5&&P&&_&&e.setClientStyling(),n.$$.dirty[0]&6&&w&&_&&e.setClientStylingURL(),n.$$.dirty[0]&262144&&h&&he(),n.$$.dirty[0]&131076&&v&&_&&e.setStreamStyling(_,`${v}.Style`)},[P,w,_,m,f,V,u,L,s,de,pe,l,d,g,k,C,D,v,h,me]}class K extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Pe,ke,e.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},ve,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),e.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),e.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-Cl1xonA7.cjs"),q=require("./CashierMethodDetails-D8xv6F1d.cjs");function H(n,t){e.addMessages(n,t)}function ge(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const j={en:{verificationsRequired:"Verifications Required","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{verificationsRequired:"Doğrulamalar Gerekli","verification.video.how-to":"Kimlik doğrulama nasıl yapılır?","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{verificationsRequired:"Potrebne su provjere","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};function ve(n){e.append_styles(n,"svelte-16iaxkf","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%;background-color:var(--emw--color-white, #ffffff);border-radius:10px}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--emw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.text a{color:var(--emw--color-primary, #3854FF);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--emw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--emw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #3854FF)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #3854FF);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function U(n,t,r){const s=n.slice();return s[53]=t[r],s}function we(n){let t,r=n[3].length>0&&N(n);return{c(){t=e.element("div"),r&&r.c(),e.attr(t,"class","CashierVerificationsWrapper")},m(s,a){e.insert(s,t,a),r&&r.m(t,null)},p(s,a){s[3].length>0?r?r.p(s,a):(r=N(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ye(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0])},m(r,s){e.insert(r,t,s)},p(r,s){s[0]&2&&e.set_custom_element_data(t,"clientstylingurl",r[1]),s[0]&1&&e.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&e.detach(t)}}}function N(n){let t,r,s,a,l,d,g,P=n[8]("verificationsRequired")+"",w,k,C,D,v,_,T,x,b=e.ensure_array_like(n[3]),h=[];for(let f=0;f<b.length;f+=1)h[f]=W(U(n,b,f));let m=n[6]&&Y(n);return{c(){t=e.element("div"),r=e.svg_element("svg"),s=e.svg_element("path"),a=e.svg_element("path"),l=e.svg_element("path"),d=e.space(),g=e.element("p"),w=e.text(P),k=e.space(),C=e.element("span"),C.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',D=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();_=e.space(),m&&m.c(),e.attr(s,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),e.attr(s,"stroke","#6E738F"),e.attr(s,"stroke-width","2"),e.attr(s,"stroke-linecap","round"),e.attr(s,"stroke-linejoin","round"),e.attr(a,"d","M12 8V12"),e.attr(a,"stroke","#6E738F"),e.attr(a,"stroke-width","2"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(l,"d","M12 16H12.01"),e.attr(l,"stroke","#6E738F"),e.attr(l,"stroke-width","2"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(r,"width","24"),e.attr(r,"height","24"),e.attr(r,"viewBox","0 0 24 24"),e.attr(r,"fill","none"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"class","CashierVerificationChevron"),e.toggle_class(C,"ShowVerifications",n[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",n[4])},m(f,V){e.insert(f,t,V),e.append(t,r),e.append(r,s),e.append(r,a),e.append(r,l),e.append(t,d),e.append(t,g),e.append(g,w),e.append(t,k),e.append(t,C),e.insert(f,D,V),e.insert(f,v,V);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,_),m&&m.m(v,null),T||(x=e.listen(t,"click",n[9]),T=!0)},p(f,V){if(V[0]&256&&P!==(P=f[8]("verificationsRequired")+"")&&e.set_data(w,P),V[0]&16&&e.toggle_class(C,"ShowVerifications",f[4]),V[0]&8){b=e.ensure_array_like(f[3]);let u;for(u=0;u<b.length;u+=1){const F=U(f,b,u);h[u]?h[u].p(F,V):(h[u]=W(F),h[u].c(),h[u].m(v,_))}for(;u<h.length;u+=1)h[u].d(1);h.length=b.length}f[6]?m?m.p(f,V):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),V[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(D),e.detach(v)),e.destroy_each(h,f),m&&m.d(),T=!1,x()}}}function W(n){let t,r,s,a,l=n[53]+"";return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',s=e.space(),a=e.element("p"),e.attr(r,"class","IconVerification"),e.attr(a,"class","text"),e.attr(t,"class","CashierVerificationMessage Test")},m(d,g){e.insert(d,t,g),e.append(t,r),e.append(t,s),e.append(t,a),a.innerHTML=l},p(d,g){g[0]&8&&l!==(l=d[53]+"")&&(a.innerHTML=l)},d(d){d&&e.detach(t)}}}function Y(n){let t,r,s,a,l=n[8]("verification.video.how-to")+"",d,g,P;return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=e.space(),a=e.element("div"),d=e.text(l),e.attr(r,"class","IconVideo"),e.attr(a,"class","CashierVerificationVideoLink"),e.toggle_class(a,"CashierVerificationVideoLinkDesktop",n[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,k){e.insert(w,t,k),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(P=e.listen(t,"click",n[10]),g=!0)},p(w,k){k[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),k[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,P()}}}function ke(n){let t;function r(l,d){if(l[7])return ye;if(l[3])return we}let s=r(n),a=s&&s(n);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",n[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),n[19](t)},p(l,d){s===(s=r(l))&&a?a.p(l,d):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(t,null))),d[0]&32&&e.toggle_class(t,"CashierVerificationsDesktop",l[5])},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a&&a.d(),n[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function Pe(n,t,r){let s,a;e.component_subscribe(n,e.$format,i=>r(8,s=i)),e.component_subscribe(n,q.xPaymentSessionToken,i=>r(27,a=i)),q.dayjs.extend(q.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:P=""}=t,{clientstylingurl:w=""}=t,{session:k=""}=t,{customerid:C=""}=t,{playersession:D=""}=t,{mbsource:v=""}=t,_,T=new Set,x=new Set,b,h,m,f=!1,V=!0,u=!1,F="",L=!1,Z=window.navigator.userAgent;var M;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(M||(M={}));var E;(function(i){i.Requested="Requested"})(E||(E={}));var y;(function(i){i.Unknown="Unknown",i.Unverified="Unverified",i.InProgress="InProgress",i.Failed="Failed",i.Verified="Verified",i.Referred="Referred",i.True="True",i.False="False",i.AwaitingForResponse="AwaitingForResponse"})(y||(y={}));var O;(function(i){i.Unknown="Unknown",i.Documents="Documents",i.Age="Age",i.Pep="Pep",i.Sanction="Sanction",i.Aml="Aml",i.ProofOfAddress="ProofOfAddress",i.SourceOfWealth="SourceOfWealth",i.SocialMedia="SocialMedia",i.Biometric="Biometric"})(O||(O={}));const z=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",z),ue(),()=>{window.removeEventListener("message",z)}));const G=[y.InProgress,y.Referred,y.AwaitingForResponse],J=()=>{let i=g;if(i)return fetch(i).then(o=>o.json()).then(o=>{Object.keys(o).forEach(c=>{H(c,o[c])})}).catch(o=>{console.log(o)})};Object.keys(j).forEach(i=>{H(i,j[i])});const X=()=>{ge(d)},I=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${C}/verification/GetKYCCustomerStatus?language=${d}`),o=new Headers;o.append("accept","application/json"),o.append("Content-Type","application/json"),o.append("x-sessionid",`${D}`),o.append("X-Client-Request-Timestamp",q.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:o,body:JSON.stringify({})};r(7,L=!0),fetch(i,c).then(p=>p.json()).then(p=>{const S=Q(p==null?void 0:p.Verifications);b=ie(S),b.VerificationStatuses.forEach(B=>{B.VerificationUrlType!=="Widget"&&T.add(B.Vendor)}),r(3,m=se())}).finally(()=>r(7,L=!1))},Q=i=>i?i.sort((o,c)=>new Date(c.Created).getTime()-new Date(o.Created).getTime()):[],$=()=>{a&&I()},ee=()=>{let i=(k||a).split(".")[1];if(i){let o=JSON.parse(atob(i));return o.cdn+"/cashier/operator-assets/"+(o==null?void 0:o.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:y.Unverified,VerificationStatuses:[]};const o=re(i);if(o&&o.length){const p=te(o);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(o,p.Status)}}else return{VerificationSummaryStatus:i.some(S=>S.Status===y.Failed)?y.Failed:y.Verified,VerificationStatuses:R(i,[y.Failed])}},te=i=>i.reduce((o,c)=>o?new Date(o)<new Date(c)?c:o:c,0),R=(i,o)=>i.filter(c=>o.includes(c.Status)).map(c=>{var p,S;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(S=c.FlowInfo)==null?void 0:S.Url}}),re=i=>i.filter(o=>G.includes(o.Status)?o.FlowInfo&&o.FlowInfo.Url||oe(o)||ne(o):!1),oe=i=>{const o=i.Documents&&i.VendorName===M.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===E.Requested);return o&&c},ne=i=>i.VendorName===M.ShuftiPro&&i.Status===y.Referred,se=()=>{switch(b.VerificationSummaryStatus){case y.InProgress:const i=[];return T.forEach(o=>{i.push(ae(o))}),i;case y.Referred:return[s("verification.idenfy.referred-awaiting")];case y.Failed:return[s("verification.message.failed")]}},ae=i=>{const o=b.VerificationStatuses.filter(c=>c.Vendor===i);if(i===M.ShuftiPro)return le(o);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const o=[],c={},p=[O.Biometric,O.Documents,O.ProofOfAddress];i.forEach(A=>{p.includes(A.Type)&&(o.push(A.Type),c[A.Type]=ce(A,fe(A.Type)))});let S=o.every(A=>x.has(A)),B=`verification.shuftipro.in-progress.${o.sort().join(".")}`;return S?s("verification.shuftipro.validations-started"):s(B,{values:c})},ce=(i,o)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${o}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,V=!e.isMobile(Z))},he=()=>{F=h+"/"+d+"/"+Ve;try{fetch(F,{method:"HEAD"}).then(i=>{r(6,u=i.ok)})}catch(i){r(6,u=!1)}},pe=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:F}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{_=i,r(2,_)})}return n.$$set=i=>{"endpoint"in i&&r(11,l=i.endpoint),"lang"in i&&r(12,d=i.lang),"translationurl"in i&&r(13,g=i.translationurl),"clientstyling"in i&&r(0,P=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,k=i.session),"customerid"in i&&r(15,C=i.customerid),"playersession"in i&&r(16,D=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&4096&&d&&X(),n.$$.dirty[0]&83968&&l&&k&&D&&I(),n.$$.dirty[0]&83968&&l&&!k&&D&&$(),n.$$.dirty[0]&8192&&g&&J(),n.$$.dirty[0]&5&&P&&_&&e.setClientStyling(),n.$$.dirty[0]&6&&w&&_&&e.setClientStylingURL(),n.$$.dirty[0]&262144&&h&&he(),n.$$.dirty[0]&131076&&v&&_&&e.setStreamStyling(_,`${v}.Style`)},[P,w,_,m,f,V,u,L,s,de,pe,l,d,g,k,C,D,v,h,me]}class K extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Pe,ke,e.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},ve,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),e.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),e.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=K;
|