@everymatrix/casino-header-controller 1.64.0 → 1.64.2

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.
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-LZPnL7e5.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-D6EynWWO.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoHeaderController-MXrohZuy.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoHeaderController-CgDMbsFp.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-header-controller") && customElements.define("casino-header-controller", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoHeaderController-B3lVN1Kg.js";
1
+ import { C as s } from "../components/CasinoHeaderController-ChY7hw5O.js";
2
2
  function r(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.64.0",
3
+ "version": "1.64.2",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-header-controller.cjs",
6
6
  "module": "esnext/casino-header-controller.js",
@@ -1 +1 @@
1
- "use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{o(n.next(a))}catch($){r($)}},l=a=>{try{o(n.throw(a))}catch($){r($)}},o=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);o((n=n.apply(e,t)).next())});const ye="user-deposit-withdrawal",me={hydratedSelectorName:"hydrated"};var Se=Object.defineProperty,Ee=(e,t)=>{for(var n in t)Se(e,n,{get:t[n],enumerable:!0})},q=new WeakMap,w=e=>q.get(e),ke=(e,t)=>q.set(t.$lazyInstance$=e,t),we=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],q.set(e,n)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),U=new Map,be=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=U.get(r);if(i)return i[s];{const l=o=>(U.set(r,o),o[s]);switch(r){case"user-deposit-withdrawal":return Promise.resolve().then(()=>require("./user-deposit-withdrawal-CbFsqTCy.cjs")).then(l,b)}}return import(`./${r}.entry.js`).then(l=>(U.set(r,l),l[s]),b)},j=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",I=typeof window!="undefined"?window:{},S=I.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),Pe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),H=!1,X=[],se=[],xe=(e,t)=>n=>{e.push(n),H||(H=!0,h.$flags$&4?R(z):h.raf(z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){b(n)}e.length=0},z=()=>{Y(X),Y(se),(H=X.length>0)&&h.raf(z)},R=e=>te().then(e),_e=xe(se),J={},Le="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml",je=e=>e!=null,M=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Oe={};Ee(Oe,{err:()=>re,map:()=>Ie,ok:()=>B,unwrap:()=>Ue,unwrapErr:()=>He});var B=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Ie(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>B(s)):B(n)}if(e.isErr){const n=e.value;return re(n)}throw"should never get here"}var Ue=e=>{if(e.isOk)return e.value;throw e.value},He=e=>{if(e.isErr)return e.value;throw e.value},E=(e,t="")=>()=>{},ze=(e,t)=>()=>{},le=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const o=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!M(s))&&(s=String(s)),i&&l?o[o.length-1].$text$+=s:o.push(i?C(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=C(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=r,$},C=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},ae={},Be=e=>e&&e.$tag$===ae,Ce=(e,t)=>e!=null&&!M(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,qe=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},K=new WeakMap,Re=(e,t,n)=>{let s=j.get(e);Pe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,j.set(e,s)},Me=(e,t,n)=>{var s;const r=ie(t),i=j.get(r);if(e=e.nodeType===11?e:S,i)if(typeof i=="string"){e=e.head||e;let l=K.get(e),o;if(l||K.set(e,l=new Set),!l.has(r)){{o=S.createElement("style"),o.innerHTML=i;const a=(s=h.$nonce$)!=null?s:ne(S);a!=null&&o.setAttribute("nonce",a),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ee),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},De=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=E("attachStyles",t.$tagName$),i=Me(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&(n["s-sc"]=i,n.classList.add(i+"-h")),r()},ie=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,i)=>{if(n!==s){let l=G(e,t),o=t.toLowerCase();if(t==="class"){const a=e.classList,$=Z(n),c=Z(s);a.remove(...$.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!$.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(I,o)?t=o.slice(2):t=o[2]+t.slice(3),n||s){const a=t.endsWith(oe);t=t.replace(Fe,""),n&&h.rel(e,t,n,a),s&&h.ael(e,t,s,a)}}else{const a=M(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],oe="Capture",Fe=new RegExp(oe+"$"),$e=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||J,i=t.$attrs$||J;for(const l of N(Object.keys(r)))l in i||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of N(Object.keys(i)))Q(s,l,r[l],i[l],n,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var L,D,y=!1,O=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,o;if(r.$text$!==null)l=r.$elm$=S.createTextNode(r.$text$);else{if(y||(y=r.$tag$==="svg"),l=r.$elm$=S.createElementNS(y?Le:Ae,r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),$e(null,r,y),je(L)&&l["s-si"]!==L&&l.classList.add(l["s-si"]=L),r.$children$)for(i=0;i<r.$children$.length;++i)o=O(e,r,i),o&&l.appendChild(o);r.$tag$==="svg"?y=!1:l.tagName==="foreignObject"&&(y=!0)}return l["s-hn"]=D,l},ce=(e,t,n,s,r,i)=>{let l=e,o;for(l.shadowRoot&&l.tagName===D&&(l=l.shadowRoot);r<=i;++r)s[r]&&(o=O(null,n,r),o&&(s[r].$elm$=o,A(l,o,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;de(r),i&&i.remove()}}},Ge=(e,t,n,s,r=!1)=>{let i=0,l=0,o=0,a=0,$=t.length-1,c=t[0],f=t[$],d=s.length-1,u=s[0],v=s[d],g,m;for(;i<=$&&l<=d;)if(c==null)c=t[++i];else if(f==null)f=t[--$];else if(u==null)u=s[++l];else if(v==null)v=s[--d];else if(_(c,u,r))T(c,u,r),c=t[++i],u=s[++l];else if(_(f,v,r))T(f,v,r),f=t[--$],v=s[--d];else if(_(c,v,r))T(c,v,r),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--d];else if(_(f,u,r))T(f,u,r),A(e,f.$elm$,c.$elm$),f=t[--$],u=s[++l];else{for(o=-1,a=i;a<=$;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){o=a;break}o>=0?(m=t[o],m.$tag$!==u.$tag$?g=O(t&&t[l],n,o):(T(m,u,r),t[o]=void 0,g=m.$elm$),u=s[++l]):(g=O(t&&t[l],n,l),u=s[++l]),g&&A(c.$elm$.parentNode,g,c.$elm$)}i>$?ce(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,i,$)},_=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,T=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$tag$,o=t.$text$;o===null?(y=l==="svg"?!0:l==="foreignObject"?!1:y,$e(e,t,y),r!==null&&i!==null?Ge(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),ce(s,null,t,i,0,i.length-1)):r!==null&&fe(r,0,r.length-1),y&&l==="svg"&&(y=!1)):e.$text$!==o&&(s.data=o)},de=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(de)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Xe=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||C(null,null),l=Be(t)?t:le(null,null,t);if(D=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([o,a])=>l.$attrs$[a]=s[o])),n&&l.$attrs$)for(const o of Object.keys(l.$attrs$))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(l.$attrs$[o]=s[o]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=i.$elm$=s.shadowRoot||s,L=s["s-sc"],r.$flags$&1,T(i,l,n)},ue=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},W=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ue(e,e.$ancestorComponent$),_e(()=>Ye(e,t))},Ye=(e,t)=>{const n=e.$hostElement$,s=E("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return t&&(i=F(r,"componentWillLoad")),s(),Je(i,()=>Qe(e,r,t))},Je=(e,t)=>Ke(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=E("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&De(e);const o=E("render",e.$cmpMeta$.$tagName$);Ze(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),o(),i();{const a=(s=r["s-p"])!=null?s:[],$=()=>Ne(e);a.length===0?$():(Promise.all(a).then($),e.$flags$|=4,a.length=0)}}),Ze=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Xe(e,t,s)}catch(r){b(r,e.$hostElement$)}return null},Ne=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=E("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ge(n),F(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||ve()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&R(()=>W(e,!1)),e.$flags$&=-517},ve=e=>{ge(S.documentElement),R(()=>qe(I,"appload",{detail:{namespace:ye}}))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){b(s)}},ge=e=>{var t;return e.classList.add((t=me.hydratedSelectorName)!=null?t:"hydrated")},Ve=(e,t)=>w(e).$instanceValues$.get(t),et=(e,t,n,s)=>{const r=w(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,l=r.$instanceValues$.get(t),o=r.$flags$,a=r.$lazyInstance$;n=Ce(n,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!$;if((!(o&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&o&128){const f=s.$watchers$[t];f&&f.map(d=>{try{a[d](n,l,t)}catch(u){b(u,i)}})}(o&18)===2&&W(r,!1)}},he=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([o,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,o,{get(){return Ve(this,o)},set($){et(this,o,$,t)},configurable:!0,enumerable:!0})}),n&1){const o=new Map;i.attributeChangedCallback=function(a,$,c){h.jmp(()=>{var f;const d=o.get(a);if(this.hasOwnProperty(d))c=this[d],delete this[d];else{if(i.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const u=w(this),v=u==null?void 0:u.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const g=u.$lazyInstance$,m=(f=t.$watchers$)==null?void 0:f[a];m==null||m.forEach(p=>{g[p]!=null&&g[p].call(g,c,$,a)})}return}}this[d]=c===null&&typeof this[d]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,$])=>$[0]&15).map(([a,$])=>{var c;const f=$[1]||a;return o.set(f,a),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([a,f])),f})]))}}return e},tt=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=be(n);if(a&&"then"in a){const c=ze();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,he(r,n,2),r.isProxied=!0);const $=E("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const $=ie(n);if(!j.has($)){const c=E("registerStyles",n.$tagName$);Re($,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>W(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),st=e=>{},nt=e=>{if(!(h.$flags$&1)){const t=w(e),n=t.$cmpMeta$,s=E("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ue(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),tt(e,t,n)}s()}},V=e=>{F(e,"disconnectedCallback")},rt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=w(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var n;const s=E(),r=[],i=t.exclude||[],l=I.customElements,o=S.head,a=o.querySelector("meta[charset]"),$=S.createElement("style"),c=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",S.baseURI).href;let u=!1;if(e.map(v=>{v[1].map(g=>{var m;const p={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};p.$flags$&4&&(u=!0),p.$members$=g[2],p.$attrsToReflect$=[],p.$watchers$=(m=g[4])!=null?m:{};const P=p.$tagName$,pe=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,we(k,p),p.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){w(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?c.push(this):h.jmp(()=>nt(this))}disconnectedCallback(){h.jmp(()=>rt(this))}componentOnReady(){return w(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,he(pe,p,1)))})}),r.length>0&&(u&&($.textContent+=ee),$.textContent+=r.sort()+Te,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:ne(S);v!=null&&$.setAttribute("nonce",v),o.insertBefore($,a?a.nextSibling:o.firstChild)}d=!1,c.length?c.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(ve,30)),s()};exports.Host=ae;exports.bootstrapLazy=lt;exports.h=le;exports.promiseResolve=te;exports.registerInstance=ke;
1
+ "use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{o(n.next(a))}catch($){r($)}},l=a=>{try{o(n.throw(a))}catch($){r($)}},o=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);o((n=n.apply(e,t)).next())});const ye="user-deposit-withdrawal",me={hydratedSelectorName:"hydrated"};var Se=Object.defineProperty,Ee=(e,t)=>{for(var n in t)Se(e,n,{get:t[n],enumerable:!0})},q=new WeakMap,w=e=>q.get(e),ke=(e,t)=>q.set(t.$lazyInstance$=e,t),we=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],q.set(e,n)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),U=new Map,be=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=U.get(r);if(i)return i[s];{const l=o=>(U.set(r,o),o[s]);switch(r){case"user-deposit-withdrawal":return Promise.resolve().then(()=>require("./user-deposit-withdrawal-DtuD21KN.cjs")).then(l,b)}}return import(`./${r}.entry.js`).then(l=>(U.set(r,l),l[s]),b)},j=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",I=typeof window!="undefined"?window:{},S=I.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),Pe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),H=!1,X=[],se=[],xe=(e,t)=>n=>{e.push(n),H||(H=!0,h.$flags$&4?R(z):h.raf(z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){b(n)}e.length=0},z=()=>{Y(X),Y(se),(H=X.length>0)&&h.raf(z)},R=e=>te().then(e),_e=xe(se),J={},Le="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml",je=e=>e!=null,M=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Oe={};Ee(Oe,{err:()=>re,map:()=>Ie,ok:()=>B,unwrap:()=>Ue,unwrapErr:()=>He});var B=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Ie(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>B(s)):B(n)}if(e.isErr){const n=e.value;return re(n)}throw"should never get here"}var Ue=e=>{if(e.isOk)return e.value;throw e.value},He=e=>{if(e.isErr)return e.value;throw e.value},E=(e,t="")=>()=>{},ze=(e,t)=>()=>{},le=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const o=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!M(s))&&(s=String(s)),i&&l?o[o.length-1].$text$+=s:o.push(i?C(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=C(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=r,$},C=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},ae={},Be=e=>e&&e.$tag$===ae,Ce=(e,t)=>e!=null&&!M(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,qe=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},K=new WeakMap,Re=(e,t,n)=>{let s=j.get(e);Pe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,j.set(e,s)},Me=(e,t,n)=>{var s;const r=ie(t),i=j.get(r);if(e=e.nodeType===11?e:S,i)if(typeof i=="string"){e=e.head||e;let l=K.get(e),o;if(l||K.set(e,l=new Set),!l.has(r)){{o=S.createElement("style"),o.innerHTML=i;const a=(s=h.$nonce$)!=null?s:ne(S);a!=null&&o.setAttribute("nonce",a),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ee),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},De=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=E("attachStyles",t.$tagName$),i=Me(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&(n["s-sc"]=i,n.classList.add(i+"-h")),r()},ie=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,i)=>{if(n!==s){let l=G(e,t),o=t.toLowerCase();if(t==="class"){const a=e.classList,$=Z(n),c=Z(s);a.remove(...$.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!$.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(I,o)?t=o.slice(2):t=o[2]+t.slice(3),n||s){const a=t.endsWith(oe);t=t.replace(Fe,""),n&&h.rel(e,t,n,a),s&&h.ael(e,t,s,a)}}else{const a=M(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],oe="Capture",Fe=new RegExp(oe+"$"),$e=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||J,i=t.$attrs$||J;for(const l of N(Object.keys(r)))l in i||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of N(Object.keys(i)))Q(s,l,r[l],i[l],n,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var L,D,y=!1,O=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,o;if(r.$text$!==null)l=r.$elm$=S.createTextNode(r.$text$);else{if(y||(y=r.$tag$==="svg"),l=r.$elm$=S.createElementNS(y?Le:Ae,r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),$e(null,r,y),je(L)&&l["s-si"]!==L&&l.classList.add(l["s-si"]=L),r.$children$)for(i=0;i<r.$children$.length;++i)o=O(e,r,i),o&&l.appendChild(o);r.$tag$==="svg"?y=!1:l.tagName==="foreignObject"&&(y=!0)}return l["s-hn"]=D,l},ce=(e,t,n,s,r,i)=>{let l=e,o;for(l.shadowRoot&&l.tagName===D&&(l=l.shadowRoot);r<=i;++r)s[r]&&(o=O(null,n,r),o&&(s[r].$elm$=o,A(l,o,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;de(r),i&&i.remove()}}},Ge=(e,t,n,s,r=!1)=>{let i=0,l=0,o=0,a=0,$=t.length-1,c=t[0],f=t[$],d=s.length-1,u=s[0],v=s[d],g,m;for(;i<=$&&l<=d;)if(c==null)c=t[++i];else if(f==null)f=t[--$];else if(u==null)u=s[++l];else if(v==null)v=s[--d];else if(_(c,u,r))T(c,u,r),c=t[++i],u=s[++l];else if(_(f,v,r))T(f,v,r),f=t[--$],v=s[--d];else if(_(c,v,r))T(c,v,r),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--d];else if(_(f,u,r))T(f,u,r),A(e,f.$elm$,c.$elm$),f=t[--$],u=s[++l];else{for(o=-1,a=i;a<=$;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){o=a;break}o>=0?(m=t[o],m.$tag$!==u.$tag$?g=O(t&&t[l],n,o):(T(m,u,r),t[o]=void 0,g=m.$elm$),u=s[++l]):(g=O(t&&t[l],n,l),u=s[++l]),g&&A(c.$elm$.parentNode,g,c.$elm$)}i>$?ce(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,i,$)},_=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,T=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$tag$,o=t.$text$;o===null?(y=l==="svg"?!0:l==="foreignObject"?!1:y,$e(e,t,y),r!==null&&i!==null?Ge(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),ce(s,null,t,i,0,i.length-1)):r!==null&&fe(r,0,r.length-1),y&&l==="svg"&&(y=!1)):e.$text$!==o&&(s.data=o)},de=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(de)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Xe=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||C(null,null),l=Be(t)?t:le(null,null,t);if(D=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([o,a])=>l.$attrs$[a]=s[o])),n&&l.$attrs$)for(const o of Object.keys(l.$attrs$))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(l.$attrs$[o]=s[o]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=i.$elm$=s.shadowRoot||s,L=s["s-sc"],r.$flags$&1,T(i,l,n)},ue=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},W=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ue(e,e.$ancestorComponent$),_e(()=>Ye(e,t))},Ye=(e,t)=>{const n=e.$hostElement$,s=E("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return t&&(i=F(r,"componentWillLoad")),s(),Je(i,()=>Qe(e,r,t))},Je=(e,t)=>Ke(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=E("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&De(e);const o=E("render",e.$cmpMeta$.$tagName$);Ze(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),o(),i();{const a=(s=r["s-p"])!=null?s:[],$=()=>Ne(e);a.length===0?$():(Promise.all(a).then($),e.$flags$|=4,a.length=0)}}),Ze=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Xe(e,t,s)}catch(r){b(r,e.$hostElement$)}return null},Ne=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=E("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ge(n),F(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||ve()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&R(()=>W(e,!1)),e.$flags$&=-517},ve=e=>{ge(S.documentElement),R(()=>qe(I,"appload",{detail:{namespace:ye}}))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){b(s)}},ge=e=>{var t;return e.classList.add((t=me.hydratedSelectorName)!=null?t:"hydrated")},Ve=(e,t)=>w(e).$instanceValues$.get(t),et=(e,t,n,s)=>{const r=w(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,l=r.$instanceValues$.get(t),o=r.$flags$,a=r.$lazyInstance$;n=Ce(n,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!$;if((!(o&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&o&128){const f=s.$watchers$[t];f&&f.map(d=>{try{a[d](n,l,t)}catch(u){b(u,i)}})}(o&18)===2&&W(r,!1)}},he=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([o,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,o,{get(){return Ve(this,o)},set($){et(this,o,$,t)},configurable:!0,enumerable:!0})}),n&1){const o=new Map;i.attributeChangedCallback=function(a,$,c){h.jmp(()=>{var f;const d=o.get(a);if(this.hasOwnProperty(d))c=this[d],delete this[d];else{if(i.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const u=w(this),v=u==null?void 0:u.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const g=u.$lazyInstance$,m=(f=t.$watchers$)==null?void 0:f[a];m==null||m.forEach(p=>{g[p]!=null&&g[p].call(g,c,$,a)})}return}}this[d]=c===null&&typeof this[d]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,$])=>$[0]&15).map(([a,$])=>{var c;const f=$[1]||a;return o.set(f,a),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([a,f])),f})]))}}return e},tt=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=be(n);if(a&&"then"in a){const c=ze();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,he(r,n,2),r.isProxied=!0);const $=E("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const $=ie(n);if(!j.has($)){const c=E("registerStyles",n.$tagName$);Re($,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>W(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),st=e=>{},nt=e=>{if(!(h.$flags$&1)){const t=w(e),n=t.$cmpMeta$,s=E("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ue(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),tt(e,t,n)}s()}},V=e=>{F(e,"disconnectedCallback")},rt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=w(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var n;const s=E(),r=[],i=t.exclude||[],l=I.customElements,o=S.head,a=o.querySelector("meta[charset]"),$=S.createElement("style"),c=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",S.baseURI).href;let u=!1;if(e.map(v=>{v[1].map(g=>{var m;const p={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};p.$flags$&4&&(u=!0),p.$members$=g[2],p.$attrsToReflect$=[],p.$watchers$=(m=g[4])!=null?m:{};const P=p.$tagName$,pe=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,we(k,p),p.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){w(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?c.push(this):h.jmp(()=>nt(this))}disconnectedCallback(){h.jmp(()=>rt(this))}componentOnReady(){return w(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,he(pe,p,1)))})}),r.length>0&&(u&&($.textContent+=ee),$.textContent+=r.sort()+Te,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:ne(S);v!=null&&$.setAttribute("nonce",v),o.insertBefore($,a?a.nextSibling:o.firstChild)}d=!1,c.length?c.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(ve,30)),s()};exports.Host=ae;exports.bootstrapLazy=lt;exports.h=le;exports.promiseResolve=te;exports.registerInstance=ke;
@@ -26,7 +26,7 @@ var pe = Object.defineProperty, he = (e, t) => {
26
26
  case "user-deposit-withdrawal":
27
27
  return import(
28
28
  /* webpackMode: "lazy" */
29
- "./user-deposit-withdrawal-BDHSNbOd.js"
29
+ "./user-deposit-withdrawal-CBRmqyn0.js"
30
30
  ).then(l, b);
31
31
  }
32
32
  }
@@ -42,7 +42,7 @@ var he = Object.defineProperty, ye = (e, t) => {
42
42
  case "user-deposit-withdrawal":
43
43
  return import(
44
44
  /* webpackMode: "lazy" */
45
- "./user-deposit-withdrawal-DRl7BqKZ.js"
45
+ "./user-deposit-withdrawal-B7YSkiLj.js"
46
46
  ).then(l, b);
47
47
  }
48
48
  }
@@ -14,7 +14,7 @@ var Q = (n, h, s) => new Promise((c, p) => {
14
14
  }, g = (l) => l.done ? c(l.value) : Promise.resolve(l.value).then(L, w);
15
15
  g((s = s.apply(n, h)).next());
16
16
  });
17
- import { b as oe, p as se, r as de, h as D, H as ue } from "./index-1ef3a64c-CrkQPVNf.js";
17
+ import { b as oe, p as se, r as de, h as D, H as ue } from "./index-1ef3a64c-DvzVxuPn.js";
18
18
  import { g as le } from "./app-globals-0f993ce5-D-kw1sls.js";
19
19
  var ce = () => {
20
20
  const n = import.meta.url, h = {};
@@ -27,7 +27,7 @@ const he = "en", fe = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
27
27
  en: {
28
28
  Deposit: "Deposit",
29
29
  Withdraw: "Withdraw",
30
- denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
30
+ denyDeposit: "Please be informed that currently you are not allowed to initiate deposit transactions.",
31
31
  denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
32
32
  notFoundErrorCode: "Not found error code",
33
33
  errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
@@ -36,7 +36,7 @@ const he = "en", fe = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
36
36
  "en-us": {
37
37
  Deposit: "Deposit",
38
38
  Withdraw: "Withdraw",
39
- denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
39
+ denyDeposit: "Please be informed that currently you are not allowed to initiate deposit transactions.",
40
40
  denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
41
41
  notFoundErrorCode: "Not found error code",
42
42
  errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
@@ -1,4 +1,4 @@
1
- import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-CqOM_4kh.js";
1
+ import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-BtxU2Hq_.js";
2
2
  import { g as ue } from "./app-globals-0f993ce5-D-kw1sls.js";
3
3
  var le = () => {
4
4
  const n = import.meta.url, h = {};
@@ -9,7 +9,7 @@ const ce = "en", he = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
9
9
  en: {
10
10
  Deposit: "Deposit",
11
11
  Withdraw: "Withdraw",
12
- denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
12
+ denyDeposit: "Please be informed that currently you are not allowed to initiate deposit transactions.",
13
13
  denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
14
14
  notFoundErrorCode: "Not found error code",
15
15
  errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
@@ -18,7 +18,7 @@ const ce = "en", he = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
18
18
  "en-us": {
19
19
  Deposit: "Deposit",
20
20
  Withdraw: "Withdraw",
21
- denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
21
+ denyDeposit: "Please be informed that currently you are not allowed to initiate deposit transactions.",
22
22
  denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
23
23
  notFoundErrorCode: "Not found error code",
24
24
  errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
@@ -0,0 +1,68 @@
1
+ "use strict";var Q=(n,h,s)=>new Promise((c,p)=>{var L=l=>{try{g(s.next(l))}catch(b){p(b)}},w=l=>{try{g(s.throw(l))}catch(b){p(b)}},g=l=>l.done?c(l.value):Promise.resolve(l.value).then(L,w);g((s=s.apply(n,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index-1ef3a64c-B-4bouZJ.cjs"),de=require("./app-globals-0f993ce5-sCt45RkC.cjs");var K=typeof document!="undefined"?document.currentScript:null,ue=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:K&&K.tagName.toUpperCase()==="SCRIPT"&&K.src||new URL("stencil/user-deposit-withdrawal-DtuD21KN.cjs",document.baseURI).href,h={};return n!==""&&(h.resourcesUrl=new URL(".",n).href),S.promiseResolve(h)};ue().then(n=>Q(exports,null,function*(){return yield de.globalScripts(),S.bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],depositUrl:[513,"deposit-url"],currency:[513],showBonusSelectionInput:[513,"show-bonus-selection-input"],isShortCashier:[516,"is-short-cashier"],homeUrl:[513,"home-url"],beforeRedirect:[16],dynamicHeight:[32],cashierInfoUrl:[32]},null,{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],n)}));const le="en",ce=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],re={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},"en-us":{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},he=n=>new Promise(h=>{fetch(n).then(s=>s.json()).then(s=>{Object.keys(s).forEach(c=>{for(let p in s[c])re[c][p]=s[c][p]}),h(!0)})}),I=(n,h)=>{const s=h;return re[s!==void 0&&ce.includes(s)?s:le][n]};function ee(n,h){if(n){const s=document.createElement("style");s.innerHTML=h,n.appendChild(s)}}function te(n,h){const s=new URL(h);fetch(s.href).then(c=>c.text()).then(c=>{const p=document.createElement("style");p.innerHTML=c,n&&n.appendChild(p)}).catch(c=>{console.error("There was an error while trying to load client styling from URL",c)})}function fe(n,h,s){if(window.emMessageBus){const c=document.createElement("style");window.emMessageBus.subscribe(h,p=>{c.innerHTML=p,n&&n.appendChild(c)})}}const pe=n=>!!(n.toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));var ne=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ie={exports:{}};(function(n,h){(function(s,c){n.exports=c()})(ne,function(){var s=1e3,c=6e4,p=36e5,L="millisecond",w="second",g="minute",l="hour",b="day",q="week",M="month",N="quarter",z="year",E="date",o="Invalid Date",U=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(a){var r=["th","st","nd","rd"],e=a%100;return"["+a+(r[(e-20)%10]||r[e]||r[0])+"]"}},W=function(a,r,e){var i=String(a);return!i||i.length>=r?a:""+Array(r+1-i.length).join(e)+a},G={s:W,z:function(a){var r=-a.utcOffset(),e=Math.abs(r),i=Math.floor(e/60),t=e%60;return(r<=0?"+":"-")+W(i,2,"0")+":"+W(t,2,"0")},m:function a(r,e){if(r.date()<e.date())return-a(e,r);var i=12*(e.year()-r.year())+(e.month()-r.month()),t=r.clone().add(i,M),d=e-t<0,u=r.clone().add(i+(d?-1:1),M);return+(-(i+(e-t)/(d?t-u:u-t))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return{M,y:z,w:q,d:b,D:E,h:l,m:g,s:w,ms:L,Q:N}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},x="en",k={};k[x]=F;var P="$isDayjsObject",B=function(a){return a instanceof Z||!(!a||!a[P])},O=function a(r,e,i){var t;if(!r)return x;if(typeof r=="string"){var d=r.toLowerCase();k[d]&&(t=d),e&&(k[d]=e,t=d);var u=r.split("-");if(!t&&u.length>1)return a(u[0])}else{var m=r.name;k[m]=r,t=m}return!i&&t&&(x=t),t||!i&&x},C=function(a,r){if(B(a))return a.clone();var e=typeof r=="object"?r:{};return e.date=a,e.args=arguments,new Z(e)},f=G;f.l=O,f.i=B,f.w=function(a,r){return C(a,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var Z=function(){function a(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[P]=!0}var r=a.prototype;return r.parse=function(e){this.$d=function(i){var t=i.date,d=i.utc;if(t===null)return new Date(NaN);if(f.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var u=t.match(U);if(u){var m=u[2]-1||0,y=(u[7]||"0").substring(0,3);return d?new Date(Date.UTC(u[1],m,u[3]||1,u[4]||0,u[5]||0,u[6]||0,y)):new Date(u[1],m,u[3]||1,u[4]||0,u[5]||0,u[6]||0,y)}}return new Date(t)}(e),this.init()},r.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},r.$utils=function(){return f},r.isValid=function(){return this.$d.toString()!==o},r.isSame=function(e,i){var t=C(e);return this.startOf(i)<=t&&t<=this.endOf(i)},r.isAfter=function(e,i){return C(e)<this.startOf(i)},r.isBefore=function(e,i){return this.endOf(i)<C(e)},r.$g=function(e,i,t){return f.u(e)?this[i]:this.set(t,e)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(e,i){var t=this,d=!!f.u(i)||i,u=f.p(e),m=function(R,D){var j=f.w(t.$u?Date.UTC(t.$y,D,R):new Date(t.$y,D,R),t);return d?j:j.endOf(b)},y=function(R,D){return f.w(t.toDate()[R].apply(t.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(D)),t)},v=this.$W,$=this.$M,T=this.$D,Y="set"+(this.$u?"UTC":"");switch(u){case z:return d?m(1,0):m(31,11);case M:return d?m(1,$):m(0,$+1);case q:var _=this.$locale().weekStart||0,A=(v<_?v+7:v)-_;return m(d?T-A:T+(6-A),$);case b:case E:return y(Y+"Hours",0);case l:return y(Y+"Minutes",1);case g:return y(Y+"Seconds",2);case w:return y(Y+"Milliseconds",3);default:return this.clone()}},r.endOf=function(e){return this.startOf(e,!1)},r.$set=function(e,i){var t,d=f.p(e),u="set"+(this.$u?"UTC":""),m=(t={},t[b]=u+"Date",t[E]=u+"Date",t[M]=u+"Month",t[z]=u+"FullYear",t[l]=u+"Hours",t[g]=u+"Minutes",t[w]=u+"Seconds",t[L]=u+"Milliseconds",t)[d],y=d===b?this.$D+(i-this.$W):i;if(d===M||d===z){var v=this.clone().set(E,1);v.$d[m](y),v.init(),this.$d=v.set(E,Math.min(this.$D,v.daysInMonth())).$d}else m&&this.$d[m](y);return this.init(),this},r.set=function(e,i){return this.clone().$set(e,i)},r.get=function(e){return this[f.p(e)]()},r.add=function(e,i){var t,d=this;e=Number(e);var u=f.p(i),m=function($){var T=C(d);return f.w(T.date(T.date()+Math.round($*e)),d)};if(u===M)return this.set(M,this.$M+e);if(u===z)return this.set(z,this.$y+e);if(u===b)return m(1);if(u===q)return m(7);var y=(t={},t[g]=c,t[l]=p,t[w]=s,t)[u]||1,v=this.$d.getTime()+e*y;return f.w(v,this)},r.subtract=function(e,i){return this.add(-1*e,i)},r.format=function(e){var i=this,t=this.$locale();if(!this.isValid())return t.invalidDate||o;var d=e||"YYYY-MM-DDTHH:mm:ssZ",u=f.z(this),m=this.$H,y=this.$m,v=this.$M,$=t.weekdays,T=t.months,Y=t.meridiem,_=function(D,j,V,J){return D&&(D[j]||D(i,d))||V[j].slice(0,J)},A=function(D){return f.s(m%12||12,D,"0")},R=Y||function(D,j,V){var J=D<12?"AM":"PM";return V?J.toLowerCase():J};return d.replace(H,function(D,j){return j||function(V){switch(V){case"YY":return String(i.$y).slice(-2);case"YYYY":return f.s(i.$y,4,"0");case"M":return v+1;case"MM":return f.s(v+1,2,"0");case"MMM":return _(t.monthsShort,v,T,3);case"MMMM":return _(T,v);case"D":return i.$D;case"DD":return f.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return _(t.weekdaysMin,i.$W,$,2);case"ddd":return _(t.weekdaysShort,i.$W,$,3);case"dddd":return $[i.$W];case"H":return String(m);case"HH":return f.s(m,2,"0");case"h":return A(1);case"hh":return A(2);case"a":return R(m,y,!0);case"A":return R(m,y,!1);case"m":return String(y);case"mm":return f.s(y,2,"0");case"s":return String(i.$s);case"ss":return f.s(i.$s,2,"0");case"SSS":return f.s(i.$ms,3,"0");case"Z":return u}return null}(D)||u.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(e,i,t){var d,u=this,m=f.p(i),y=C(e),v=(y.utcOffset()-this.utcOffset())*c,$=this-y,T=function(){return f.m(u,y)};switch(m){case z:d=T()/12;break;case M:d=T();break;case N:d=T()/3;break;case q:d=($-v)/6048e5;break;case b:d=($-v)/864e5;break;case l:d=$/p;break;case g:d=$/c;break;case w:d=$/s;break;default:d=$}return t?d:f.a(d)},r.daysInMonth=function(){return this.endOf(M).$D},r.$locale=function(){return k[this.$L]},r.locale=function(e,i){if(!e)return this.$L;var t=this.clone(),d=O(e,i,!0);return d&&(t.$L=d),t},r.clone=function(){return f.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},a}(),X=Z.prototype;return C.prototype=X,[["$ms",L],["$s",w],["$m",g],["$H",l],["$W",b],["$M",M],["$y",z],["$D",E]].forEach(function(a){X[a[1]]=function(r){return this.$g(r,a[0],a[1])}}),C.extend=function(a,r){return a.$i||(a(r,Z,C),a.$i=!0),C},C.locale=O,C.isDayjs=B,C.unix=function(a){return C(1e3*a)},C.en=k[x],C.Ls=k,C.p={},C})})(ie);const ae=ie.exports;var oe={exports:{}};(function(n,h){(function(s,c){n.exports=c()})(ne,function(){var s="minute",c=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(L,w,g){var l=w.prototype;g.utc=function(o){var U={date:o,utc:!0,args:arguments};return new w(U)},l.utc=function(o){var U=g(this.toDate(),{locale:this.$L,utc:!0});return o?U.add(this.utcOffset(),s):U},l.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var b=l.parse;l.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),b.call(this,o)};var q=l.init;l.init=function(){if(this.$u){var o=this.$d;this.$y=o.getUTCFullYear(),this.$M=o.getUTCMonth(),this.$D=o.getUTCDate(),this.$W=o.getUTCDay(),this.$H=o.getUTCHours(),this.$m=o.getUTCMinutes(),this.$s=o.getUTCSeconds(),this.$ms=o.getUTCMilliseconds()}else q.call(this)};var M=l.utcOffset;l.utcOffset=function(o,U){var H=this.$utils().u;if(H(o))return this.$u?0:H(this.$offset)?M.call(this):this.$offset;if(typeof o=="string"&&(o=function(x){x===void 0&&(x="");var k=x.match(c);if(!k)return null;var P=(""+k[0]).match(p)||["-",0,0],B=P[0],O=60*+P[1]+ +P[2];return O===0?0:B==="+"?O:-O}(o),o===null))return this;var F=Math.abs(o)<=16?60*o:o,W=this;if(U)return W.$offset=F,W.$u=o===0,W;if(o!==0){var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(W=this.local().add(F+G,s)).$offset=F,W.$x.$localOffset=G}else W=this.utc();return W};var N=l.format;l.format=function(o){var U=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return N.call(this,U)},l.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var z=l.toDate;l.toDate=function(o){return o==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():z.call(this)};var E=l.diff;l.diff=function(o,U,H){if(o&&this.$u===o.$u)return E.call(this,o,U,H);var F=this.local(),W=g(o).local();return E.call(F,W,U,H)}}})})(oe);const me=oe.exports,ge=`:host {
2
+ font: inherit;
3
+ display: block;
4
+ height: 100%;
5
+ container-type: inline-size;
6
+ }
7
+
8
+ .CategoryTitle {
9
+ font-size: var(--emw--font-size-x-large, 26px);
10
+ color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
11
+ }
12
+
13
+ .MenuReturnButton {
14
+ font: inherit;
15
+ color: var(--emw--color-gray-300, #58586B);
16
+ display: inline-flex;
17
+ align-items: center;
18
+ column-gap: 10px;
19
+ margin-bottom: 10px;
20
+ }
21
+ .MenuReturnButton svg {
22
+ fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
23
+ }
24
+ .MenuReturnButton h2.CategoryTitleMobile {
25
+ font-size: 16px;
26
+ color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
27
+ }
28
+
29
+ .ErrorMessage {
30
+ color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
31
+ }
32
+
33
+ .DepositWithdrawalWrapper {
34
+ width: 100%;
35
+ padding: 0;
36
+ margin: 0;
37
+ padding: 50px;
38
+ box-sizing: border-box;
39
+ overflow-y: scroll;
40
+ }
41
+ .DepositWithdrawalWrapper iframe {
42
+ border-width: 0;
43
+ }
44
+
45
+ .ShortCashier.DepositWithdrawalWrapper {
46
+ height: 500px;
47
+ }
48
+ .ShortCashier.CategoryTitle.CategoryTitle {
49
+ margin-right: 20px;
50
+ padding-top: 20px;
51
+ color: var(--emw--color-black, #000000);
52
+ }
53
+ .ShortCashier .ErrorMessage {
54
+ margin: auto;
55
+ width: 90%;
56
+ margin-top: 70px;
57
+ text-align: center;
58
+ color: var(--emw--color-black, #000000);
59
+ }
60
+
61
+ @container (max-width: 768px) {
62
+ .DepositWithdrawalWrapper {
63
+ padding: 20px 15px;
64
+ }
65
+ .DepositWithdrawalWrapper:not(.ShortCashier) {
66
+ overflow: visible;
67
+ }
68
+ }`,ye=ge;ae.extend(me);const we=()=>{},se=class{constructor(n){S.registerInstance(this,n),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=pe(this.userAgent),this.errorCodes=["21123","21122"],this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType=void 0,this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=we,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}watchLoadWidget(){this.loadWidget()}handleClientStylingChange(n,h){n!=h&&ee(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,h){n!=h&&this.clientStylingUrl&&te(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Q(this,null,function*(){if(yield this.loadWidget(),this.translationUrl)return he(this.translationUrl)})}toggleScreen(n){window.postMessage({type:"PlayerAccountMenuActive",isMobile:n},window.location.href)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?fe(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&ee(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&te(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return S.h(S.Host,{key:"4963fd9b7ce608f13fd464996c085c29045fcd59"},S.h("div",{key:"1fe503816ddb4f18d50545f0f627dd917e6f62ec",ref:n=>this.stylingContainer=n},!(this.isMobile&&!this.isShortCashier)&&S.h("h2",{key:"5bf653f70da5f95173a7dc2c7067d0968876b50a",class:"CategoryTitle"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),S.h("div",{key:"a0e2ce3c944e0fd3bdf2635ae0a5739125e55a33",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`,style:{marginTop:this.isShortCashier?"30px":"0"}},S.h("div",{key:"18b39cea4230ce3745a1859590be32835bb4538f"},this.isMobile&&!this.isShortCashier?S.h("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},S.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},S.h("defs",null),S.h("g",{transform:"translate(-20 -158)"},S.h("g",{transform:"translate(20 158)"},S.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),S.h("h2",{class:"CategoryTitleMobile"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?S.h("iframe",{width:"100%",height:this.dynamicHeight,src:this.cashierInfoUrl}):S.h("h3",{class:"ErrorMessage"},this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language)))))}loadWidget(){return Q(this,null,function*(){const n={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};try{const h=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,s=yield fetch(h,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":ae.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(n)});if(!s.ok){const p=yield s.text();throw new Error(p)}const c=yield s.json();if(c.CashierInfo)this.cashierInfoUrl=c.CashierInfo.Url;else{let p;if(c.ResponseMessage){let w=this.errorCodes.find(g=>c.ResponseMessage.includes(g))||null;w?p=I(`errorCode${w}`,this.language):p=I("notFoundErrorCode",this.language)}else p=this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language);const L={type:"error",message:p};window.postMessage({type:"DenyDepositOrWithdrawal",data:L},window.location.href)}}catch(h){console.error(h)}})}handleMessage(n){var h,s,c,p,L,w,g,l;n.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),n.data["MMFE:setQuickDepositHeight"]&&this.isShortCashier&&(this.dynamicHeight=n.data["MMFE:setQuickDepositHeight"].toString()+"px"),n.data["MMFE:setIFrameHeight"]&&(this.dynamicHeight=n.data["MMFE:setIFrameHeight"].toString()+"px"),((h=n.data)===null||h===void 0?void 0:h.type)==="mm-hcback-to-merchant"&&this.doRedirect(n.data.type,this.homeUrl),((s=n.data)===null||s===void 0?void 0:s.redirect)==="mm-hc-back-tomerchant"&&this.doRedirect(n.data.redirect,this.homeUrl),((c=n.data)===null||c===void 0?void 0:c.redirect)==="mm-hc-sports"&&this.doRedirect((p=n.data)===null||p===void 0?void 0:p.redirect,this.sportsUrl),((L=n.data)===null||L===void 0?void 0:L.redirect)==="mm-hc-casino"&&this.doRedirect(window.location.href,this.casinoUrl),((w=n.data)===null||w===void 0?void 0:w.redirect)==="mm-hc-contact"&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.contactUrl)),(((g=n.data)===null||g===void 0?void 0:g.redirect)==="mm-wm-hc-init-deposit"||((l=n.data)===null||l===void 0?void 0:l.redirect)==="mm-wm-hc-init-deposit-quick")&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(n,h){const s={reason:n,url:h,cancel:!1};if(this.beforeRedirect(s),!s.cancel){if(!s.url){window.location.href="/";return}window.location.href=s.url}}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};se.style=ye;exports.user_deposit_withdrawal=se;
@@ -1,13 +0,0 @@
1
- "use strict";var at=Object.defineProperty,rt=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var ze=(o,e,a)=>e in o?at(o,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[e]=a,Ue=(o,e)=>{for(var a in e||(e={}))it.call(e,a)&&ze(o,a,e[a]);if(He)for(var a of He(e))st.call(e,a)&&ze(o,a,e[a]);return o},Pe=(o,e)=>rt(o,ot(e));var Ge=(o,e,a)=>new Promise((s,l)=>{var c=g=>{try{f(a.next(g))}catch(v){l(v)}},y=g=>{try{f(a.throw(g))}catch(v){l(v)}},f=g=>g.done?s(g.value):Promise.resolve(g.value).then(c,y);f((a=a.apply(o,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-CrZ5l9tM.cjs");function Xe(o,e){t.addMessages(o,e)}function lt(o){t.$locale.set(o)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Ie={exports:{}};/** @license
2
- * eventsource.js
3
- * Available under MIT License (MIT)
4
- * https://github.com/Yaffle/EventSource/
5
- */(function(o,e){(function(a){var s=a.setTimeout,l=a.clearTimeout,c=a.XMLHttpRequest,y=a.XDomainRequest,f=a.ActiveXObject,g=a.EventSource,v=a.document,D=a.Promise,k=a.fetch,B=a.Response,C=a.TextDecoder,A=a.TextEncoder,z=a.AbortController;if(typeof window!="undefined"&&typeof v!="undefined"&&!("readyState"in v)&&v.body==null&&(v.readyState="loading",window.addEventListener("load",function(n){v.readyState="complete"},!1)),c==null&&f!=null&&(c=function(){return new f("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(n){function i(){}return i.prototype=n,new i}),Date.now||(Date.now=function(){return new Date().getTime()}),z==null){var F=k;k=function(n,i){var d=i.signal;return F(n,{headers:i.headers,credentials:i.credentials,cache:i.cache}).then(function(r){var m=r.body.getReader();return d._reader=m,d._aborted&&d._reader.cancel(),{status:r.status,statusText:r.statusText,headers:r.headers,body:{getReader:function(){return m}}}})},z=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function j(){this.bitsNeeded=0,this.codePoint=0}j.prototype.decode=function(n){function i(x,M,w){if(w===1)return x>=128>>M&&x<<M<=2047;if(w===2)return x>=2048>>M&&x<<M<=55295||x>=57344>>M&&x<<M<=65535;if(w===3)return x>=65536>>M&&x<<M<=1114111;throw new Error}function d(x,M){if(x===6*1)return M>>6>15?3:M>31?2:1;if(x===6*2)return M>15?3:2;if(x===6*3)return 3;throw new Error}for(var r=65533,m="",h=this.bitsNeeded,b=this.codePoint,O=0;O<n.length;O+=1){var _=n[O];h!==0&&(_<128||_>191||!i(b<<6|_&63,h-6,d(h,b)))&&(h=0,b=r,m+=String.fromCharCode(b)),h===0?(_>=0&&_<=127?(h=0,b=_):_>=192&&_<=223?(h=6*1,b=_&31):_>=224&&_<=239?(h=6*2,b=_&15):_>=240&&_<=247?(h=6*3,b=_&7):(h=0,b=r),h!==0&&!i(b,h,d(h,b))&&(h=0,b=r)):(h-=6,b=b<<6|_&63),h===0&&(b<=65535?m+=String.fromCharCode(b):(m+=String.fromCharCode(55296+(b-65535-1>>10)),m+=String.fromCharCode(56320+(b-65535-1&1023))))}return this.bitsNeeded=h,this.codePoint=b,m};var J=function(){try{return new C().decode(new A().encode("test"),{stream:!0})==="test"}catch(n){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+n)}return!1};(C==null||A==null||!J())&&(C=j);var S=function(){};function T(n){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=S}T.prototype.open=function(n,i){this._abort(!0);var d=this,r=this._xhr,m=1,h=0;this._abort=function(w){d._sendTimeout!==0&&(l(d._sendTimeout),d._sendTimeout=0),(m===1||m===2||m===3)&&(m=4,r.onload=S,r.onerror=S,r.onabort=S,r.onprogress=S,r.onreadystatechange=S,r.abort(),h!==0&&(l(h),h=0),w||(d.readyState=4,d.onabort(null),d.onreadystatechange())),m=0};var b=function(){if(m===1){var w=0,N="",ie=void 0;if("contentType"in r)w=200,N="OK",ie=r.contentType;else try{w=r.status,N=r.statusText,ie=r.getResponseHeader("Content-Type")}catch(Ce){w=0,N="",ie=void 0}w!==0&&(m=2,d.readyState=2,d.status=w,d.statusText=N,d._contentType=ie,d.onreadystatechange())}},O=function(){if(b(),m===2||m===3){m=3;var w="";try{w=r.responseText}catch(N){}d.readyState=3,d.responseText=w,d.onprogress()}},_=function(w,N){if((N==null||N.preventDefault==null)&&(N={preventDefault:S}),O(),m===1||m===2||m===3){if(m=4,h!==0&&(l(h),h=0),d.readyState=4,w==="load")d.onload(N);else if(w==="error")d.onerror(N);else if(w==="abort")d.onabort(N);else throw new TypeError;d.onreadystatechange()}},x=function(w){r!=null&&(r.readyState===4?(!("onload"in r)||!("onerror"in r)||!("onabort"in r))&&_(r.responseText===""?"error":"load",w):r.readyState===3?"onprogress"in r||O():r.readyState===2&&b())},M=function(){h=s(function(){M()},500),r.readyState===3&&O()};"onload"in r&&(r.onload=function(w){_("load",w)}),"onerror"in r&&(r.onerror=function(w){_("error",w)}),"onabort"in r&&(r.onabort=function(w){_("abort",w)}),"onprogress"in r&&(r.onprogress=O),"onreadystatechange"in r&&(r.onreadystatechange=function(w){x(w)}),("contentType"in r||!("ontimeout"in c.prototype))&&(i+=(i.indexOf("?")===-1?"?":"&")+"padding=true"),r.open(n,i,!0),"readyState"in r&&(h=s(function(){M()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(n){return this._contentType},T.prototype.setRequestHeader=function(n,i){var d=this._xhr;"setRequestHeader"in d&&d.setRequestHeader(n,i)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.prototype.send=function(){if((!("ontimeout"in c.prototype)||!("sendAsBinary"in c.prototype)&&!("mozAnon"in c.prototype))&&v!=null&&v.readyState!=null&&v.readyState!=="complete"){var n=this;n._sendTimeout=s(function(){n._sendTimeout=0,n.send()},4);return}var i=this._xhr;"withCredentials"in i&&(i.withCredentials=this.withCredentials);try{i.send(void 0)}catch(d){throw d}};function U(n){return n.replace(/[A-Z]/g,function(i){return String.fromCharCode(i.charCodeAt(0)+32)})}function L(n){for(var i=Object.create(null),d=n.split(`\r
6
- `),r=0;r<d.length;r+=1){var m=d[r],h=m.split(": "),b=h.shift(),O=h.join(": ");i[U(b)]=O}this._map=i}L.prototype.get=function(n){return this._map[U(n)]},c!=null&&c.HEADERS_RECEIVED==null&&(c.HEADERS_RECEIVED=2);function $(){}$.prototype.open=function(n,i,d,r,m,h,b){n.open("GET",m);var O=0;n.onprogress=function(){var x=n.responseText,M=x.slice(O);O+=M.length,d(M)},n.onerror=function(x){x.preventDefault(),r(new Error("NetworkError"))},n.onload=function(){r(null)},n.onabort=function(){r(null)},n.onreadystatechange=function(){if(n.readyState===c.HEADERS_RECEIVED){var x=n.status,M=n.statusText,w=n.getResponseHeader("Content-Type"),N=n.getAllResponseHeaders();i(x,M,w,new L(N))}},n.withCredentials=h;for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&n.setRequestHeader(_,b[_]);return n.send(),n};function ee(n){this._headers=n}ee.prototype.get=function(n){return this._headers.get(n)};function de(){}de.prototype.open=function(n,i,d,r,m,h,b){var O=null,_=new z,x=_.signal,M=new C;return k(m,{headers:b,credentials:h?"include":"same-origin",signal:x,cache:"no-store"}).then(function(w){return O=w.body.getReader(),i(w.status,w.statusText,w.headers.get("Content-Type"),new ee(w.headers)),new D(function(N,ie){var Ce=function(){O.read().then(function(K){if(K.done)N(void 0);else{var P=M.decode(K.value,{stream:!0});d(P),Ce()}}).catch(function(K){ie(K)})};Ce()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){r(w)}),{abort:function(){O!=null&&O.cancel(),_.abort()}}};function te(){this._listeners=Object.create(null)}function p(n){s(function(){throw n},0)}te.prototype.dispatchEvent=function(n){n.target=this;var i=this._listeners[n.type];if(i!=null)for(var d=i.length,r=0;r<d;r+=1){var m=i[r];try{typeof m.handleEvent=="function"?m.handleEvent(n):m.call(this,n)}catch(h){p(h)}}},te.prototype.addEventListener=function(n,i){n=String(n);var d=this._listeners,r=d[n];r==null&&(r=[],d[n]=r);for(var m=!1,h=0;h<r.length;h+=1)r[h]===i&&(m=!0);m||r.push(i)},te.prototype.removeEventListener=function(n,i){n=String(n);var d=this._listeners,r=d[n];if(r!=null){for(var m=[],h=0;h<r.length;h+=1)r[h]!==i&&m.push(r[h]);m.length===0?delete d[n]:d[n]=m}};function Q(n){this.type=n,this.target=void 0}function Se(n,i){Q.call(this,n),this.data=i.data,this.lastEventId=i.lastEventId}Se.prototype=Object.create(Q.prototype);function he(n,i){Q.call(this,n),this.status=i.status,this.statusText=i.statusText,this.headers=i.headers}he.prototype=Object.create(Q.prototype);function _e(n,i){Q.call(this,n),this.error=i.error}_e.prototype=Object.create(Q.prototype);var ve=-1,re=0,oe=1,ue=2,we=-1,Z=0,me=1,Ae=2,Re=3,Me=/^text\/event\-stream(;.*)?$/i,Fe=1e3,Ee=18e6,be=function(n,i){var d=n==null?i:parseInt(n,10);return d!==d&&(d=i),Be(d)},Be=function(n){return Math.min(Math.max(n,Fe),Ee)},fe=function(n,i,d){try{typeof i=="function"&&i.call(n,d)}catch(r){p(r)}};function q(n,i){te.call(this),i=i||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,R(this,n,i)}function ke(){return c!=null&&"withCredentials"in c.prototype||y==null?new c:new y}var u=k!=null&&B!=null&&"body"in B.prototype;function R(n,i,d){i=String(i);var r=!!d.withCredentials,m=d.lastEventIdQueryParameterName||"lastEventId",h=Be(1e3),b=be(d.heartbeatTimeout,45e3),O="",_=h,x=!1,M=0,w=d.headers||{},N=d.Transport,ie=u&&N==null?void 0:new T(N!=null?new N:ke()),Ce=N!=null&&typeof N!="string"?new N:ie==null?new de:new $,K=void 0,P=0,ne=ve,ge="",xe="",se="",De="",G=Z,Oe=0,pe=0,tt=function(V,I,W,Y){if(ne===re)if(V===200&&W!=null&&Me.test(W)){ne=oe,x=Date.now(),_=h,n.readyState=oe;var X=new he("open",{status:V,statusText:I,headers:Y});n.dispatchEvent(X),fe(n,n.onopen,X)}else{var H="";V!==200?(I&&(I=I.replace(/\s+/g," ")),H="EventSource's response has a status "+V+" "+I+" that is not 200. Aborting the connection."):H="EventSource's response has a Content-Type specifying an unsupported type: "+(W==null?"-":W.replace(/\s+/g," "))+". Aborting the connection.",Ne();var X=new he("error",{status:V,statusText:I,headers:Y});n.dispatchEvent(X),fe(n,n.onerror,X),console.error(H)}},nt=function(V){if(ne===oe){for(var I=-1,W=0;W<V.length;W+=1){var Y=V.charCodeAt(W);(Y===10||Y===13)&&(I=W)}var X=(I!==-1?De:"")+V.slice(0,I+1);De=(I===-1?De:"")+V.slice(I+1),V!==""&&(x=Date.now(),M+=V.length);for(var H=0;H<X.length;H+=1){var Y=X.charCodeAt(H);if(G===we&&Y===10)G=Z;else if(G===we&&(G=Z),Y===13||Y===10){if(G!==Z){G===me&&(pe=H+1);var le=X.slice(Oe,pe-1),ce=X.slice(pe+(pe<H&&X.charCodeAt(pe)===32?1:0),H);le==="data"?(ge+=`
7
- `,ge+=ce):le==="id"?xe=ce:le==="event"?se=ce:le==="retry"?(h=be(ce,h),_=h):le==="heartbeatTimeout"&&(b=be(ce,b),P!==0&&(l(P),P=s(function(){Te()},b)))}if(G===Z){if(ge!==""){O=xe,se===""&&(se="message");var ye=new Se(se,{data:ge.slice(1),lastEventId:xe});if(n.dispatchEvent(ye),se==="open"?fe(n,n.onopen,ye):se==="message"?fe(n,n.onmessage,ye):se==="error"&&fe(n,n.onerror,ye),ne===ue)return}ge="",se=""}G=Y===13?we:Z}else G===Z&&(Oe=H,G=me),G===me?Y===58&&(pe=H+1,G=Ae):G===Ae&&(G=Re)}}},je=function(V){if(ne===oe||ne===re){ne=ve,P!==0&&(l(P),P=0),P=s(function(){Te()},_),_=Be(Math.min(h*16,_*2)),n.readyState=re;var I=new _e("error",{error:V});n.dispatchEvent(I),fe(n,n.onerror,I),V!=null&&console.error(V)}},Ne=function(){ne=ue,K!=null&&(K.abort(),K=void 0),P!==0&&(l(P),P=0),n.readyState=ue},Te=function(){if(P=0,ne!==ve){if(!x&&K!=null)je(new Error("No activity within "+b+" milliseconds. "+(ne===re?"No response received.":M+" chars received.")+" Reconnecting.")),K!=null&&(K.abort(),K=void 0);else{var V=Math.max((x||Date.now())+b-Date.now(),1);x=!1,P=s(function(){Te()},V)}return}x=!1,M=0,P=s(function(){Te()},b),ne=re,ge="",se="",xe=O,De="",Oe=0,pe=0,G=Z;var I=i;if(i.slice(0,5)!=="data:"&&i.slice(0,5)!=="blob:"&&O!==""){var W=i.indexOf("?");I=W===-1?i:i.slice(0,W+1)+i.slice(W+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ce,ye){return ye===m?"":ce}),I+=(i.indexOf("?")===-1?"?":"&")+m+"="+encodeURIComponent(O)}var Y=n.withCredentials,X={};X.Accept="text/event-stream";var H=n.headers;if(H!=null)for(var le in H)Object.prototype.hasOwnProperty.call(H,le)&&(X[le]=H[le]);try{K=Ce.open(ie,tt,nt,je,I,Y,X)}catch(ce){throw Ne(),ce}};n.url=i,n.readyState=re,n.withCredentials=r,n.headers=w,n._close=Ne,Te()}q.prototype=Object.create(te.prototype),q.prototype.CONNECTING=re,q.prototype.OPEN=oe,q.prototype.CLOSED=ue,q.prototype.close=function(){this._close()},q.CONNECTING=re,q.OPEN=oe,q.CLOSED=ue,q.prototype.withCredentials=void 0;var E=g;c!=null&&(g==null||!("withCredentials"in g.prototype))&&(E=q),function(n){{var i=n(e);i!==void 0&&(o.exports=i)}}(function(n){n.EventSourcePolyfill=q,n.NativeEventSource=g,n.EventSource=E})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.commonjsGlobal:globalThis)})(Ie,Ie.exports);var ct=Ie.exports;/*!
8
- * currency.js - v2.0.4
9
- * http://scurker.github.io/currency.js
10
- *
11
- * Copyright (c) 2021 Jason Wilson
12
- * Released under MIT license
13
- */var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(e){return Math.round(e)},Ve=function(e){return Math.pow(10,e)},ut=function(e,a){return $e(e/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ae(o,e){var a=this;if(!(a instanceof ae))return new ae(o,e);var s=Object.assign({},dt,e),l=Ve(s.precision),c=Le(o,s);a.intValue=c,a.value=c/l,s.increment=s.increment||1/l,s.useVedic?s.groups=pt:s.groups=ft,this.s=s,this.p=l}function Le(o,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=0,l=e.decimal,c=e.errorOnInvalid,y=e.precision,f=e.fromCents,g=Ve(y),v=typeof o=="number",D=o instanceof ae;if(D&&f)return o.intValue;if(v||D)s=D?o.value:o;else if(typeof o=="string"){var k=new RegExp("[^-\\d"+l+"]","g"),B=new RegExp("\\"+l,"g");s=o.replace(/\((.*)\)/,"-$1").replace(k,"").replace(B,"."),s=s||0}else{if(c)throw Error("Invalid Input");s=0}return f||(s*=g,s=s.toFixed(4)),a?$e(s):s}function ht(o,e){var a=e.pattern,s=e.negativePattern,l=e.symbol,c=e.separator,y=e.decimal,f=e.groups,g=(""+o).replace(/^-/,"").split("."),v=g[0],D=g[1];return(o.value>=0?a:s).replace("!",l).replace("#",v.replace(f,"$1"+c)+(D?y+D:""))}ae.prototype={add:function(e){var a=this.intValue,s=this.s,l=this.p;return ae((a+=Le(e,s))/(s.fromCents?1:l),s)},subtract:function(e){var a=this.intValue,s=this.s,l=this.p;return ae((a-=Le(e,s))/(s.fromCents?1:l),s)},multiply:function(e){var a=this.intValue,s=this.s;return ae((a*=e)/(s.fromCents?1:Ve(s.precision)),s)},divide:function(e){var a=this.intValue,s=this.s;return ae(a/=Le(e,s,!1),s)},distribute:function(e){for(var a=this.intValue,s=this.p,l=this.s,c=[],y=Math[a>=0?"floor":"ceil"](a/e),f=Math.abs(a-y*e),g=l.fromCents?1:s;e!==0;e--){var v=ae(y/g,l);f-- >0&&(v=v[a>=0?"add":"subtract"](1/g)),c.push(v)}return c},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,a=this.p;return~~(e%a)},format:function(e){var a=this.s;return typeof e=="function"?e(this,a):a.format(this,Object.assign({},a,e))},toString:function(){var e=this.intValue,a=this.p,s=this.s;return ut(e/a,s.increment).toFixed(s.precision)},toJSON:function(){return this.value}};function mt(o){t.append_styles(o,"svelte-4pkr1",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function Ke(o,e,a){const s=o.slice();return s[47]=e[a],s}function We(o,e,a){const s=o.slice();return s[50]=e[a],s}function gt(o){let e,a=(o[4].Total?o[6](o[4].Total[0].amount):"0")+"",s,l,c,y,f,g,v,D,k,B=o[2]&&Ye(o);return{c(){e=t.element("p"),s=t.text(a),l=t.space(),c=t.text(o[3]),y=t.space(),f=t.element("span"),f.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',g=t.space(),B&&B.c(),v=t.empty(),t.attr(e,"class","BalanceValue")},m(C,A){t.insert(C,e,A),t.append(e,s),t.append(e,l),t.append(e,c),t.append(e,y),t.append(e,f),t.insert(C,g,A),B&&B.m(C,A),t.insert(C,v,A),D||(k=t.listen(e,"click",o[23]),D=!0)},p(C,A){A[0]&16&&a!==(a=(C[4].Total?C[6](C[4].Total[0].amount):"0")+"")&&t.set_data(s,a),A[0]&8&&t.set_data(c,C[3]),C[2]?B?B.p(C,A):(B=Ye(C),B.c(),B.m(v.parentNode,v)):B&&(B.d(1),B=null)},d(C){C&&(t.detach(e),t.detach(g),t.detach(v)),B&&B.d(C),D=!1,k()}}}function yt(o){let e,a=o[5]("Loading")+"",s;return{c(){e=t.element("p"),s=t.text(a)},m(l,c){t.insert(l,e,c),t.append(e,s)},p(l,c){c[0]&32&&a!==(a=l[5]("Loading")+"")&&t.set_data(s,a)},d(l){l&&t.detach(e)}}}function Ye(o){let e,a,s,l,c,y,f=o[5]("Title")+"",g,v,D,k,B,C,A=o[5]("DepositButton")+"",z,F,j,J=t.ensure_array_like(Object.keys(o[4])),S=[];for(let T=0;T<J.length;T+=1)S[T]=Qe(Ke(o,J,T));return{c(){e=t.element("div"),a=t.element("div"),s=t.space(),l=t.element("div"),c=t.element("div"),y=t.element("p"),g=t.text(f),v=t.space(),D=t.element("div");for(let T=0;T<S.length;T+=1)S[T].c();k=t.space(),B=t.element("div"),C=t.element("button"),z=t.text(A),t.attr(a,"class","BalanceModalClose"),t.attr(y,"class","BalanceModalTitle"),t.attr(c,"class","BalanceModalHeader"),t.attr(D,"class","BalanceModalBody"),t.attr(C,"class","BalanceModalAction"),t.attr(B,"class","BalanceModalFooter"),t.attr(l,"class","BalanceModal"),t.attr(e,"class","BalanceModalWrapper")},m(T,U){t.insert(T,e,U),t.append(e,a),t.append(e,s),t.append(e,l),t.append(l,c),t.append(c,y),t.append(y,g),t.append(l,v),t.append(l,D);for(let L=0;L<S.length;L+=1)S[L]&&S[L].m(D,null);t.append(l,k),t.append(l,B),t.append(B,C),t.append(C,z),F||(j=[t.listen(a,"click",o[24]),t.listen(C,"click",o[25])],F=!0)},p(T,U){if(U[0]&32&&f!==(f=T[5]("Title")+"")&&t.set_data(g,f),U[0]&120){J=t.ensure_array_like(Object.keys(T[4]));let L;for(L=0;L<J.length;L+=1){const $=Ke(T,J,L);S[L]?S[L].p($,U):(S[L]=Qe($),S[L].c(),S[L].m(D,null))}for(;L<S.length;L+=1)S[L].d(1);S.length=J.length}U[0]&32&&A!==(A=T[5]("DepositButton")+"")&&t.set_data(z,A)},d(T){T&&t.detach(e),t.destroy_each(S,T),F=!1,t.run_all(j)}}}function Je(o){let e,a,s=o[5](o[47])+"",l,c,y=(o[50].productType?o[5](o[50].productType):"")+"",f,g,v,D,k=(o[50].amount?o[6](o[50].amount):"0")+"",B,C,A,z;return{c(){e=t.element("div"),a=t.element("p"),l=t.text(s),c=t.space(),f=t.text(y),g=t.space(),v=t.element("p"),D=t.element("span"),B=t.text(k),C=t.space(),A=t.element("span"),z=t.text(o[3]),t.attr(a,"class","BalanceModalText"),t.attr(D,"class","BalanceModalAmount"),t.attr(A,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(e,"class","BalanceModalRowLine")},m(F,j){t.insert(F,e,j),t.append(e,a),t.append(a,l),t.append(a,c),t.append(a,f),t.append(e,g),t.append(e,v),t.append(v,D),t.append(D,B),t.append(v,C),t.append(v,A),t.append(A,z)},p(F,j){j[0]&48&&s!==(s=F[5](F[47])+"")&&t.set_data(l,s),j[0]&48&&y!==(y=(F[50].productType?F[5](F[50].productType):"")+"")&&t.set_data(f,y),j[0]&16&&k!==(k=(F[50].amount?F[6](F[50].amount):"0")+"")&&t.set_data(B,k),j[0]&8&&t.set_data(z,F[3])},d(F){F&&t.detach(e)}}}function Qe(o){let e,a,s=t.ensure_array_like(o[4][o[47]]),l=[];for(let c=0;c<s.length;c+=1)l[c]=Je(We(o,s,c));return{c(){e=t.element("div");for(let c=0;c<l.length;c+=1)l[c].c();a=t.space(),t.attr(e,"class","BalanceModalRowBoth")},m(c,y){t.insert(c,e,y);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(e,null);t.append(e,a)},p(c,y){if(y[0]&120){s=t.ensure_array_like(c[4][c[47]]);let f;for(f=0;f<s.length;f+=1){const g=We(c,s,f);l[f]?l[f].p(g,y):(l[f]=Je(g),l[f].c(),l[f].m(e,a))}for(;f<l.length;f+=1)l[f].d(1);l.length=s.length}},d(c){c&&t.detach(e),t.destroy_each(l,c)}}}function Ze(o){let e,a,s;return{c(){e=t.element("div"),t.attr(e,"class","ShowBalanceModalOverlay")},m(l,c){t.insert(l,e,c),a||(s=t.listen(e,"click",o[26]),a=!0)},p:t.noop,d(l){l&&t.detach(e),a=!1,s()}}}function vt(o){let e,a,s;function l(g,v){return g[1]?yt:gt}let c=l(o),y=c(o),f=o[2]&&Ze(o);return{c(){e=t.element("div"),a=t.element("div"),y.c(),s=t.space(),f&&f.c(),t.attr(a,"class","ShowBalance")},m(g,v){t.insert(g,e,v),t.append(e,a),y.m(a,null),t.append(e,s),f&&f.m(e,null),o[27](e)},p(g,v){c===(c=l(g))&&y?y.p(g,v):(y.d(1),y=c(g),y&&(y.c(),y.m(a,null))),g[2]?f?f.p(g,v):(f=Ze(g),f.c(),f.m(e,null)):f&&(f.d(1),f=null)},i:t.noop,o:t.noop,d(g){g&&t.detach(e),y.d(),f&&f.d(),o[27](null)}}}function wt(o,e,a){let s;t.component_subscribe(o,t.$format,u=>a(5,s=u));let{userid:l=""}=e,{session:c=""}=e,{endpoint:y=""}=e,{lang:f="en"}=e,{clientstyling:g=""}=e,{clientstylingurl:v=""}=e,{translationurl:D=""}=e,{customlocaleidentifier:k=""}=e,{gmversion:B="gm16"}=e,{displaybalanceoption:C="All"}=e,{totalcalculationmode:A="totalCashAmount"}=e,{currencyseparator:z=""}=e,{currencydecimal:F=""}=e,{currencyprecision:j=""}=e,{mbsource:J}=e,S,T,U,L=!1,$="",ee=[],de,te=!1;const p={},Q=["totalCashAmount","totalRealAmount"],Se=()=>{fetch(D).then(u=>u.json()).then(u=>Object.keys(u).forEach(R=>Xe(R,u[R]))).catch(u=>console.log(u))};Object.keys(qe).forEach(u=>Xe(u,qe[u]));const he=()=>{if(k.includes(f))return k},_e=u=>k?new Intl.NumberFormat(he(),{useGrouping:!0}).format(u):z&&F?ae(u,{separator:z,decimal:F,symbol:"",precision:parseInt(j||"2",10)}).format():ae(u,{separator:".",decimal:",",symbol:"",precision:parseInt(j||"2",10)}).format(),ve=()=>Ge(this,null,function*(){var R,E,n;a(1,S=!0);const u=new URL(`${y}/v1/player/${l}/account`);try{const i=yield fetch(u,{method:"GET",headers:{"X-SessionID":c}}),d=yield i.json();if(i.ok)ee=d.items,a(3,$=(R=ee.find(r=>r.displayName==="Casino"))==null?void 0:R.currency),a(4,p.Total=[{amount:d.totalAmount[$]}],p),a(4,p.Real=[{amount:(E=ee.find(r=>r.displayName==="Casino"))==null?void 0:E.balanceAmount}],p),a(4,p.Bonus=[{amount:(n=ee.find(r=>r.displayName==="UBS"))==null?void 0:n.balanceAmount}],p);else throw new Error("Failed to fetch balance data !")}catch(i){console.log("Balance error: ",i)}finally{a(1,S=!1)}}),re=()=>{a(1,S=!0);const u=new URL(`${y}/v2/player/${l}/balance`),R=new Headers;R.append("X-SessionID",c),fetch(u,{method:"GET",headers:R}).then(n=>n.json()).then(n=>{n[A]||a(8,A=Q[0]);const i=n.items.find(r=>r.type==="Real"&&r.walletAccountType==="Ordinary");if(a(3,$=i.currency),te=!!i.productType,a(4,p.Total=[{amount:0}],p),a(4,p.Real=[],p),a(4,p.Bonus=[],p),a(4,p.Credit=[],p),!te){de={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(4,p.Total[0].amount=n[A][$],p);for(const r of n.items)switch(r.type){case"Bonus":p.Bonus.length===0?p.Bonus.push({amount:r.amount}):a(4,p.Bonus[0].amount+=r.amount,p);break;case"Real":if(r.creditLine&&p.Credit.length===0&&p.Credit.push({amount:r.creditLine}),A==="totalRealAmount")continue;p.Real.length===0?p.Real.push({amount:r.amount}):a(4,p.Real[0].amount+=r.amount,p);break}for(const[r,m]of Object.entries(p))m.length<1&&delete p[r];a(1,S=!1);return}de={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let d=n.items;C&&C!=="All"&&(d=n.items.filter(r=>r.productType===C));for(const r of d){let m;switch(r.type){case"Bonus":m=p.Bonus.findIndex(h=>h.productType===r.productType),m>0?a(4,p.Bonus[m].amount+=r.amount,p):p.Bonus.push({amount:r.amount,productType:r.productType});break;case"Real":r.creditLine&&p.Credit.push({amount:r.creditLine,productType:r.productType}),m=p.Real.findIndex(h=>h.productType===r.productType),m>0?a(4,p.Real[m].amount+=r.amount,p):p.Real.push({amount:r.amount,productType:r.productType});break}}me();for(const[r,m]of Object.entries(p))m.length<1&&delete p[r];a(1,S=!1)}).catch(n=>{throw a(1,S=!1),new Error("Failed to fetch balance data !")})},oe=()=>{if(U&&U.close(),c.length<1)return;let u,R;switch(B){case"gm16":u=new URL(`${y}/v2/player/${l}/information/updates`),R=i=>Ae(i);break;case"gmcore":u=new URL(`${y}/v1/player/${l}/balance/updates`),R=i=>we(i);break}const E={accept:"text/event-stream","X-SessionId":c},n=new ct.EventSourcePolyfill(u,{headers:E});U=n,n.addEventListener("message",R)},ue=u=>{let R;try{R=JSON.parse(u)}catch(E){console.log("Balance stream failed: ",E);return}return R},we=u=>{var i,d;const R=ue(u.data);if(!R){oe();return}let E="0";const n=R.balanceChange;ee=ee.map(r=>(n&&n[r.id]&&(r=Pe(Ue({},r),{balanceAmount:n[r.id].afterAmount})),E=(parseFloat(r==null?void 0:r.balanceAmount)+parseFloat(E)).toString(),r)),a(4,p.Real=[{amount:(i=ee[0])==null?void 0:i.balanceAmount}],p),a(4,p.Bonus=[{amount:(d=ee[1])==null?void 0:d.balanceAmount}],p),a(4,p.Total=[{amount:Number(E)}],p)},Z=(u,R,E)=>{let n=null;switch(E.walletAccountType){case"Ordinary":E.afterAmount!==E.affectedAmount&&(R.lastOrdinaryAfterAmount=E.afterAmount,R.showCreditLineAfterAmount||(n=E.afterAmount));break;case"CreditLine":E.afterAmount!==0?(n=E.afterAmount,R.showCreditLineAfterAmount=!0):(n=R.lastOrdinaryAfterAmount,R.showCreditLineAfterAmount=!1);break;default:n=E.afterAmount}return n===null?u:n},me=()=>{switch(A){case"totalCashAmount":let u=0;for(const E of["Real","Bonus"])for(const n of p[E])u+=Math.max(n.amount,0);a(4,p.Total[0].amount=u,p);break;case"totalRealAmount":if(!te)return;let R=0;for(const E of p.Real)R+=E.amount;a(4,p.Total[0].amount=R,p)}},Ae=u=>{const R=ue(u.data);if(!R){oe();return}if(R.type!=="BALANCE_UPDATE_V2")return;const E=R.body.balanceChange;for(const[n,i]of Object.entries(E))if(A==="totalRealAmount"&&n==="Real"&&!te&&a(4,p.Total[0].amount=Z(p.Total[0].amount,de,i),p),!!p[n])for(const d of p[n]){if(!te){d.amount=n==="Real"?Z(d.amount,de,i):i.afterAmount;continue}i.productType===d.productType&&(d.amount=n==="Real"?Z(d.amount,de[d.productType],i):i.afterAmount)}me()},Re=()=>{a(2,L=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Me=()=>{Q.includes(A)||(console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${Q}. Using default value ('${Q[0]}').`),a(8,A=Q[0]))},Fe=()=>{switch(lt(f),Me(),B){case"gmcore":ve();break;case"gm16":re();break;default:throw Error(`Invalid apiversion attribute: ${B}`)}},Ee=u=>u.data&&u.data.type==="LogoutSuccessfull"&&U.close();t.onMount(()=>(window.addEventListener("message",Ee,!1),()=>{window.removeEventListener("message",Ee),U&&U.close()}));const be=()=>a(2,L=!0),Be=()=>a(2,L=!1),fe=()=>Re(),q=()=>a(2,L=!1);function ke(u){t.binding_callbacks[u?"unshift":"push"](()=>{T=u,a(0,T)})}return o.$$set=u=>{"userid"in u&&a(9,l=u.userid),"session"in u&&a(10,c=u.session),"endpoint"in u&&a(11,y=u.endpoint),"lang"in u&&a(12,f=u.lang),"clientstyling"in u&&a(13,g=u.clientstyling),"clientstylingurl"in u&&a(14,v=u.clientstylingurl),"translationurl"in u&&a(15,D=u.translationurl),"customlocaleidentifier"in u&&a(16,k=u.customlocaleidentifier),"gmversion"in u&&a(17,B=u.gmversion),"displaybalanceoption"in u&&a(18,C=u.displaybalanceoption),"totalcalculationmode"in u&&a(8,A=u.totalcalculationmode),"currencyseparator"in u&&a(19,z=u.currencyseparator),"currencydecimal"in u&&a(20,F=u.currencydecimal),"currencyprecision"in u&&a(21,j=u.currencyprecision),"mbsource"in u&&a(22,J=u.mbsource)},o.$$.update=()=>{o.$$.dirty[0]&4096&&f&&he(),o.$$.dirty[0]&400896&&y&&l&&c&&f&&B&&C&&Fe(),o.$$.dirty[0]&134656&&y&&l&&c&&B&&oe(),o.$$.dirty[0]&8193&&g&&T&&t.setClientStyling(T,g),o.$$.dirty[0]&16385&&v&&T&&t.setClientStylingURL(T,v),o.$$.dirty[0]&4194305&&T&&t.setStreamStyling(T,`${J}.Style`),o.$$.dirty[0]&32768&&D&&Se()},[T,S,L,$,p,s,_e,Re,A,l,c,y,f,g,v,D,k,B,C,z,F,j,J,be,Be,fe,q,ke]}class et extends t.SvelteComponent{constructor(e){super(),t.init(this,e,wt,vt,t.safe_not_equal,{userid:9,session:10,endpoint:11,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,customlocaleidentifier:16,gmversion:17,displaybalanceoption:18,totalcalculationmode:8,currencyseparator:19,currencydecimal:20,currencyprecision:21,mbsource:22},mt,[-1,-1])}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),t.flush()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[16]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),t.flush()}get gmversion(){return this.$$.ctx[17]}set gmversion(e){this.$$set({gmversion:e}),t.flush()}get displaybalanceoption(){return this.$$.ctx[18]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),t.flush()}get totalcalculationmode(){return this.$$.ctx[8]}set totalcalculationmode(e){this.$$set({totalcalculationmode:e}),t.flush()}get currencyseparator(){return this.$$.ctx[19]}set currencyseparator(e){this.$$set({currencyseparator:e}),t.flush()}get currencydecimal(){return this.$$.ctx[20]}set currencydecimal(e){this.$$set({currencydecimal:e}),t.flush()}get currencyprecision(){return this.$$.ctx[21]}set currencyprecision(e){this.$$set({currencyprecision:e}),t.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{},mbsource:{}},[],[],!0);exports.default=et;
@@ -1,68 +0,0 @@
1
- "use strict";var Q=(n,h,s)=>new Promise((c,p)=>{var L=l=>{try{g(s.next(l))}catch(b){p(b)}},w=l=>{try{g(s.throw(l))}catch(b){p(b)}},g=l=>l.done?c(l.value):Promise.resolve(l.value).then(L,w);g((s=s.apply(n,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index-1ef3a64c-BYQAUnU8.cjs"),de=require("./app-globals-0f993ce5-sCt45RkC.cjs");var K=typeof document!="undefined"?document.currentScript:null,ue=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:K&&K.tagName.toUpperCase()==="SCRIPT"&&K.src||new URL("stencil/user-deposit-withdrawal-CbFsqTCy.cjs",document.baseURI).href,h={};return n!==""&&(h.resourcesUrl=new URL(".",n).href),S.promiseResolve(h)};ue().then(n=>Q(exports,null,function*(){return yield de.globalScripts(),S.bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],depositUrl:[513,"deposit-url"],currency:[513],showBonusSelectionInput:[513,"show-bonus-selection-input"],isShortCashier:[516,"is-short-cashier"],homeUrl:[513,"home-url"],beforeRedirect:[16],dynamicHeight:[32],cashierInfoUrl:[32]},null,{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],n)}));const le="en",ce=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],re={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},"en-us":{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},he=n=>new Promise(h=>{fetch(n).then(s=>s.json()).then(s=>{Object.keys(s).forEach(c=>{for(let p in s[c])re[c][p]=s[c][p]}),h(!0)})}),I=(n,h)=>{const s=h;return re[s!==void 0&&ce.includes(s)?s:le][n]};function ee(n,h){if(n){const s=document.createElement("style");s.innerHTML=h,n.appendChild(s)}}function te(n,h){const s=new URL(h);fetch(s.href).then(c=>c.text()).then(c=>{const p=document.createElement("style");p.innerHTML=c,n&&n.appendChild(p)}).catch(c=>{console.error("There was an error while trying to load client styling from URL",c)})}function fe(n,h,s){if(window.emMessageBus){const c=document.createElement("style");window.emMessageBus.subscribe(h,p=>{c.innerHTML=p,n&&n.appendChild(c)})}}const pe=n=>!!(n.toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));var ne=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ie={exports:{}};(function(n,h){(function(s,c){n.exports=c()})(ne,function(){var s=1e3,c=6e4,p=36e5,L="millisecond",w="second",g="minute",l="hour",b="day",q="week",M="month",N="quarter",z="year",E="date",o="Invalid Date",U=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(a){var r=["th","st","nd","rd"],e=a%100;return"["+a+(r[(e-20)%10]||r[e]||r[0])+"]"}},W=function(a,r,e){var i=String(a);return!i||i.length>=r?a:""+Array(r+1-i.length).join(e)+a},G={s:W,z:function(a){var r=-a.utcOffset(),e=Math.abs(r),i=Math.floor(e/60),t=e%60;return(r<=0?"+":"-")+W(i,2,"0")+":"+W(t,2,"0")},m:function a(r,e){if(r.date()<e.date())return-a(e,r);var i=12*(e.year()-r.year())+(e.month()-r.month()),t=r.clone().add(i,M),d=e-t<0,u=r.clone().add(i+(d?-1:1),M);return+(-(i+(e-t)/(d?t-u:u-t))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return{M,y:z,w:q,d:b,D:E,h:l,m:g,s:w,ms:L,Q:N}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},x="en",k={};k[x]=F;var P="$isDayjsObject",B=function(a){return a instanceof Z||!(!a||!a[P])},O=function a(r,e,i){var t;if(!r)return x;if(typeof r=="string"){var d=r.toLowerCase();k[d]&&(t=d),e&&(k[d]=e,t=d);var u=r.split("-");if(!t&&u.length>1)return a(u[0])}else{var m=r.name;k[m]=r,t=m}return!i&&t&&(x=t),t||!i&&x},C=function(a,r){if(B(a))return a.clone();var e=typeof r=="object"?r:{};return e.date=a,e.args=arguments,new Z(e)},f=G;f.l=O,f.i=B,f.w=function(a,r){return C(a,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var Z=function(){function a(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[P]=!0}var r=a.prototype;return r.parse=function(e){this.$d=function(i){var t=i.date,d=i.utc;if(t===null)return new Date(NaN);if(f.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var u=t.match(U);if(u){var m=u[2]-1||0,y=(u[7]||"0").substring(0,3);return d?new Date(Date.UTC(u[1],m,u[3]||1,u[4]||0,u[5]||0,u[6]||0,y)):new Date(u[1],m,u[3]||1,u[4]||0,u[5]||0,u[6]||0,y)}}return new Date(t)}(e),this.init()},r.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},r.$utils=function(){return f},r.isValid=function(){return this.$d.toString()!==o},r.isSame=function(e,i){var t=C(e);return this.startOf(i)<=t&&t<=this.endOf(i)},r.isAfter=function(e,i){return C(e)<this.startOf(i)},r.isBefore=function(e,i){return this.endOf(i)<C(e)},r.$g=function(e,i,t){return f.u(e)?this[i]:this.set(t,e)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(e,i){var t=this,d=!!f.u(i)||i,u=f.p(e),m=function(R,D){var j=f.w(t.$u?Date.UTC(t.$y,D,R):new Date(t.$y,D,R),t);return d?j:j.endOf(b)},y=function(R,D){return f.w(t.toDate()[R].apply(t.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(D)),t)},v=this.$W,$=this.$M,T=this.$D,Y="set"+(this.$u?"UTC":"");switch(u){case z:return d?m(1,0):m(31,11);case M:return d?m(1,$):m(0,$+1);case q:var _=this.$locale().weekStart||0,A=(v<_?v+7:v)-_;return m(d?T-A:T+(6-A),$);case b:case E:return y(Y+"Hours",0);case l:return y(Y+"Minutes",1);case g:return y(Y+"Seconds",2);case w:return y(Y+"Milliseconds",3);default:return this.clone()}},r.endOf=function(e){return this.startOf(e,!1)},r.$set=function(e,i){var t,d=f.p(e),u="set"+(this.$u?"UTC":""),m=(t={},t[b]=u+"Date",t[E]=u+"Date",t[M]=u+"Month",t[z]=u+"FullYear",t[l]=u+"Hours",t[g]=u+"Minutes",t[w]=u+"Seconds",t[L]=u+"Milliseconds",t)[d],y=d===b?this.$D+(i-this.$W):i;if(d===M||d===z){var v=this.clone().set(E,1);v.$d[m](y),v.init(),this.$d=v.set(E,Math.min(this.$D,v.daysInMonth())).$d}else m&&this.$d[m](y);return this.init(),this},r.set=function(e,i){return this.clone().$set(e,i)},r.get=function(e){return this[f.p(e)]()},r.add=function(e,i){var t,d=this;e=Number(e);var u=f.p(i),m=function($){var T=C(d);return f.w(T.date(T.date()+Math.round($*e)),d)};if(u===M)return this.set(M,this.$M+e);if(u===z)return this.set(z,this.$y+e);if(u===b)return m(1);if(u===q)return m(7);var y=(t={},t[g]=c,t[l]=p,t[w]=s,t)[u]||1,v=this.$d.getTime()+e*y;return f.w(v,this)},r.subtract=function(e,i){return this.add(-1*e,i)},r.format=function(e){var i=this,t=this.$locale();if(!this.isValid())return t.invalidDate||o;var d=e||"YYYY-MM-DDTHH:mm:ssZ",u=f.z(this),m=this.$H,y=this.$m,v=this.$M,$=t.weekdays,T=t.months,Y=t.meridiem,_=function(D,j,V,J){return D&&(D[j]||D(i,d))||V[j].slice(0,J)},A=function(D){return f.s(m%12||12,D,"0")},R=Y||function(D,j,V){var J=D<12?"AM":"PM";return V?J.toLowerCase():J};return d.replace(H,function(D,j){return j||function(V){switch(V){case"YY":return String(i.$y).slice(-2);case"YYYY":return f.s(i.$y,4,"0");case"M":return v+1;case"MM":return f.s(v+1,2,"0");case"MMM":return _(t.monthsShort,v,T,3);case"MMMM":return _(T,v);case"D":return i.$D;case"DD":return f.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return _(t.weekdaysMin,i.$W,$,2);case"ddd":return _(t.weekdaysShort,i.$W,$,3);case"dddd":return $[i.$W];case"H":return String(m);case"HH":return f.s(m,2,"0");case"h":return A(1);case"hh":return A(2);case"a":return R(m,y,!0);case"A":return R(m,y,!1);case"m":return String(y);case"mm":return f.s(y,2,"0");case"s":return String(i.$s);case"ss":return f.s(i.$s,2,"0");case"SSS":return f.s(i.$ms,3,"0");case"Z":return u}return null}(D)||u.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(e,i,t){var d,u=this,m=f.p(i),y=C(e),v=(y.utcOffset()-this.utcOffset())*c,$=this-y,T=function(){return f.m(u,y)};switch(m){case z:d=T()/12;break;case M:d=T();break;case N:d=T()/3;break;case q:d=($-v)/6048e5;break;case b:d=($-v)/864e5;break;case l:d=$/p;break;case g:d=$/c;break;case w:d=$/s;break;default:d=$}return t?d:f.a(d)},r.daysInMonth=function(){return this.endOf(M).$D},r.$locale=function(){return k[this.$L]},r.locale=function(e,i){if(!e)return this.$L;var t=this.clone(),d=O(e,i,!0);return d&&(t.$L=d),t},r.clone=function(){return f.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},a}(),X=Z.prototype;return C.prototype=X,[["$ms",L],["$s",w],["$m",g],["$H",l],["$W",b],["$M",M],["$y",z],["$D",E]].forEach(function(a){X[a[1]]=function(r){return this.$g(r,a[0],a[1])}}),C.extend=function(a,r){return a.$i||(a(r,Z,C),a.$i=!0),C},C.locale=O,C.isDayjs=B,C.unix=function(a){return C(1e3*a)},C.en=k[x],C.Ls=k,C.p={},C})})(ie);const ae=ie.exports;var oe={exports:{}};(function(n,h){(function(s,c){n.exports=c()})(ne,function(){var s="minute",c=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(L,w,g){var l=w.prototype;g.utc=function(o){var U={date:o,utc:!0,args:arguments};return new w(U)},l.utc=function(o){var U=g(this.toDate(),{locale:this.$L,utc:!0});return o?U.add(this.utcOffset(),s):U},l.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var b=l.parse;l.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),b.call(this,o)};var q=l.init;l.init=function(){if(this.$u){var o=this.$d;this.$y=o.getUTCFullYear(),this.$M=o.getUTCMonth(),this.$D=o.getUTCDate(),this.$W=o.getUTCDay(),this.$H=o.getUTCHours(),this.$m=o.getUTCMinutes(),this.$s=o.getUTCSeconds(),this.$ms=o.getUTCMilliseconds()}else q.call(this)};var M=l.utcOffset;l.utcOffset=function(o,U){var H=this.$utils().u;if(H(o))return this.$u?0:H(this.$offset)?M.call(this):this.$offset;if(typeof o=="string"&&(o=function(x){x===void 0&&(x="");var k=x.match(c);if(!k)return null;var P=(""+k[0]).match(p)||["-",0,0],B=P[0],O=60*+P[1]+ +P[2];return O===0?0:B==="+"?O:-O}(o),o===null))return this;var F=Math.abs(o)<=16?60*o:o,W=this;if(U)return W.$offset=F,W.$u=o===0,W;if(o!==0){var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(W=this.local().add(F+G,s)).$offset=F,W.$x.$localOffset=G}else W=this.utc();return W};var N=l.format;l.format=function(o){var U=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return N.call(this,U)},l.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var z=l.toDate;l.toDate=function(o){return o==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():z.call(this)};var E=l.diff;l.diff=function(o,U,H){if(o&&this.$u===o.$u)return E.call(this,o,U,H);var F=this.local(),W=g(o).local();return E.call(F,W,U,H)}}})})(oe);const me=oe.exports,ge=`:host {
2
- font: inherit;
3
- display: block;
4
- height: 100%;
5
- container-type: inline-size;
6
- }
7
-
8
- .CategoryTitle {
9
- font-size: var(--emw--font-size-x-large, 26px);
10
- color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
11
- }
12
-
13
- .MenuReturnButton {
14
- font: inherit;
15
- color: var(--emw--color-gray-300, #58586B);
16
- display: inline-flex;
17
- align-items: center;
18
- column-gap: 10px;
19
- margin-bottom: 10px;
20
- }
21
- .MenuReturnButton svg {
22
- fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
23
- }
24
- .MenuReturnButton h2.CategoryTitleMobile {
25
- font-size: 16px;
26
- color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
27
- }
28
-
29
- .ErrorMessage {
30
- color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
31
- }
32
-
33
- .DepositWithdrawalWrapper {
34
- width: 100%;
35
- padding: 0;
36
- margin: 0;
37
- padding: 50px;
38
- box-sizing: border-box;
39
- overflow-y: scroll;
40
- }
41
- .DepositWithdrawalWrapper iframe {
42
- border-width: 0;
43
- }
44
-
45
- .ShortCashier.DepositWithdrawalWrapper {
46
- height: 500px;
47
- }
48
- .ShortCashier.CategoryTitle.CategoryTitle {
49
- margin-right: 20px;
50
- padding-top: 20px;
51
- color: var(--emw--color-black, #000000);
52
- }
53
- .ShortCashier .ErrorMessage {
54
- margin: auto;
55
- width: 90%;
56
- margin-top: 70px;
57
- text-align: center;
58
- color: var(--emw--color-black, #000000);
59
- }
60
-
61
- @container (max-width: 768px) {
62
- .DepositWithdrawalWrapper {
63
- padding: 20px 15px;
64
- }
65
- .DepositWithdrawalWrapper:not(.ShortCashier) {
66
- overflow: visible;
67
- }
68
- }`,ye=ge;ae.extend(me);const we=()=>{},se=class{constructor(n){S.registerInstance(this,n),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=pe(this.userAgent),this.errorCodes=["21123","21122"],this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType=void 0,this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=we,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}watchLoadWidget(){this.loadWidget()}handleClientStylingChange(n,h){n!=h&&ee(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,h){n!=h&&this.clientStylingUrl&&te(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Q(this,null,function*(){if(yield this.loadWidget(),this.translationUrl)return he(this.translationUrl)})}toggleScreen(n){window.postMessage({type:"PlayerAccountMenuActive",isMobile:n},window.location.href)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?fe(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&ee(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&te(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return S.h(S.Host,{key:"4963fd9b7ce608f13fd464996c085c29045fcd59"},S.h("div",{key:"1fe503816ddb4f18d50545f0f627dd917e6f62ec",ref:n=>this.stylingContainer=n},!(this.isMobile&&!this.isShortCashier)&&S.h("h2",{key:"5bf653f70da5f95173a7dc2c7067d0968876b50a",class:"CategoryTitle"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),S.h("div",{key:"a0e2ce3c944e0fd3bdf2635ae0a5739125e55a33",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`,style:{marginTop:this.isShortCashier?"30px":"0"}},S.h("div",{key:"18b39cea4230ce3745a1859590be32835bb4538f"},this.isMobile&&!this.isShortCashier?S.h("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},S.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},S.h("defs",null),S.h("g",{transform:"translate(-20 -158)"},S.h("g",{transform:"translate(20 158)"},S.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),S.h("h2",{class:"CategoryTitleMobile"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?S.h("iframe",{width:"100%",height:this.dynamicHeight,src:this.cashierInfoUrl}):S.h("h3",{class:"ErrorMessage"},this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language)))))}loadWidget(){return Q(this,null,function*(){const n={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};try{const h=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,s=yield fetch(h,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":ae.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(n)});if(!s.ok){const p=yield s.text();throw new Error(p)}const c=yield s.json();if(c.CashierInfo)this.cashierInfoUrl=c.CashierInfo.Url;else{let p;if(c.ResponseMessage){let w=this.errorCodes.find(g=>c.ResponseMessage.includes(g))||null;w?p=I(`errorCode${w}`,this.language):p=I("notFoundErrorCode",this.language)}else p=this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language);const L={type:"error",message:p};window.postMessage({type:"DenyDepositOrWithdrawal",data:L},window.location.href)}}catch(h){console.error(h)}})}handleMessage(n){var h,s,c,p,L,w,g,l;n.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),n.data["MMFE:setQuickDepositHeight"]&&this.isShortCashier&&(this.dynamicHeight=n.data["MMFE:setQuickDepositHeight"].toString()+"px"),n.data["MMFE:setIFrameHeight"]&&(this.dynamicHeight=n.data["MMFE:setIFrameHeight"].toString()+"px"),((h=n.data)===null||h===void 0?void 0:h.type)==="mm-hcback-to-merchant"&&this.doRedirect(n.data.type,this.homeUrl),((s=n.data)===null||s===void 0?void 0:s.redirect)==="mm-hc-back-tomerchant"&&this.doRedirect(n.data.redirect,this.homeUrl),((c=n.data)===null||c===void 0?void 0:c.redirect)==="mm-hc-sports"&&this.doRedirect((p=n.data)===null||p===void 0?void 0:p.redirect,this.sportsUrl),((L=n.data)===null||L===void 0?void 0:L.redirect)==="mm-hc-casino"&&this.doRedirect(window.location.href,this.casinoUrl),((w=n.data)===null||w===void 0?void 0:w.redirect)==="mm-hc-contact"&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.contactUrl)),(((g=n.data)===null||g===void 0?void 0:g.redirect)==="mm-wm-hc-init-deposit"||((l=n.data)===null||l===void 0?void 0:l.redirect)==="mm-wm-hc-init-deposit-quick")&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(n,h){const s={reason:n,url:h,cancel:!1};if(this.beforeRedirect(s),!s.cancel){if(!s.url){window.location.href="/";return}window.location.href=s.url}}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};se.style=ye;exports.user_deposit_withdrawal=se;