@everymatrix/casino-header-controller 1.47.0 → 1.47.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.47.0",
3
+ "version": "1.47.1",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-header-controller.cjs",
6
6
  "module": "es2015/casino-header-controller.js",
@@ -13,7 +13,8 @@
13
13
  },
14
14
  "files": [
15
15
  "es2015/",
16
- "components"
16
+ "components",
17
+ "stencil"
17
18
  ],
18
19
  "publishConfig": {
19
20
  "access": "public"
@@ -0,0 +1,5 @@
1
+ const o = () => {
2
+ };
3
+ export {
4
+ o as g
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=()=>{};exports.globalScripts=s;
@@ -0,0 +1 @@
1
+ "use strict";var L=(e,t,n)=>new Promise((s,r)=>{var o=a=>{try{i(n.next(a))}catch(c){r(c)}},l=a=>{try{i(n.throw(a))}catch(c){r(c)}},i=a=>a.done?s(a.value):Promise.resolve(a.value).then(o,l);i((n=n.apply(e,t)).next())});const Se="user-deposit-withdrawal",O={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!1,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!0,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!1,propNumber:!1,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!1,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!1,watchCallback:!0};var Ee=Object.defineProperty,be=(e,t)=>{for(var n in t)Ee(e,n,{get:t[n],enumerable:!0})},F=new WeakMap,k=e=>F.get(e),ke=(e,t)=>F.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"]=[],F.set(e,n)},X=(e,t)=>t in e,w=(e,t)=>(0,console.error)(e,t),R=new Map,Te=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const o=R.get(r);if(o)return o[s];{const l=i=>(R.set(r,i),i[s]);switch(r){case"user-deposit-withdrawal":return Promise.resolve().then(()=>require("./user-deposit-withdrawal-CsuWz3w0.cjs")).then(l,w)}}return import(`./${r}.entry.js`).then(l=>(R.set(r,l),l[s]),w)},j=new Map,xe="{visibility:hidden}.hydrated{visibility:inherit}",te="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)},se=e=>Promise.resolve(e),Le=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),D=!1,N=[],re=[],Pe=(e,t)=>n=>{e.push(n),D||(D=!0,h.$flags$&4?q(z):h.raf(z))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){w(n)}e.length=0},z=()=>{Q(N),Q(re),(D=N.length>0)&&h.raf(z)},q=e=>se().then(e),Ae=Pe(re),Y={},_e="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml",je=e=>e!=null,W=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 Ce={};be(Ce,{err:()=>le,map:()=>Ue,ok:()=>H,unwrap:()=>Ie,unwrapErr:()=>Re});var H=e=>({isOk:!0,isErr:!1,value:e}),le=e=>({isOk:!1,isErr:!0,value:e});function Ue(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>H(s)):H(n)}if(e.isErr){const n=e.value;return le(n)}throw"should never get here"}var Ie=e=>{if(e.isOk)return e.value;throw e.value},Re=e=>{if(e.isErr)return e.value;throw e.value},E=(e,t="")=>()=>{},De=(e,t)=>()=>{},ae=(e,t,...n)=>{let s=null,r=null,o=!1,l=!1;const i=[],a=$=>{for(let f=0;f<$.length;f++)s=$[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((o=typeof e!="function"&&!W(s))&&(s=String(s)),o&&l?i[i.length-1].$text$+=s:i.push(o?B(null,s):s),l=o)};if(a(n),t){t.key&&(r=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(f=>$[f]).join(" "))}}const c=B(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=r,c},B=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},oe={},ze=e=>e&&e.$tag$===oe,He=(e,t)=>e!=null&&!W(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,Be=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},J=new WeakMap,Fe=(e,t,n)=>{let s=j.get(e);Le&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,j.set(e,s)},qe=(e,t,n)=>{var s;const r=ie(t),o=j.get(r);if(e=e.nodeType===11?e:S,o)if(typeof o=="string"){e=e.head||e;let l=J.get(e),i;if(l||J.set(e,l=new Set),!l.has(r)){{i=S.createElement("style"),i.innerHTML=o;const a=(s=h.$nonce$)!=null?s:ne(S);a!=null&&i.setAttribute("nonce",a),(!(t.$flags$&1)||t.$flags$&1&&e.nodeName!=="HEAD")&&e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=te),l&&l.add(r)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return r},We=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=E("attachStyles",t.$tagName$),o=qe(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&s&2&&(n["s-sc"]=o,n.classList.add(o+"-h")),r()},ie=(e,t)=>"sc-"+e.$tagName$,K=(e,t,n,s,r,o)=>{if(n!==s){let l=X(e,t),i=t.toLowerCase();if(t==="class"){const a=e.classList,c=Z(n),$=Z(s);a.remove(...c.filter(f=>f&&!$.includes(f))),a.add(...$.filter(f=>f&&!c.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):X(I,i)?t=i.slice(2):t=i[2]+t.slice(3),n||s){const a=t.endsWith(ce);t=t.replace(Ge,""),n&&h.rel(e,t,n,a),s&&h.ael(e,t,s,a)}}else{const a=W(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const c=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=c)&&(e[t]=c)}}catch(c){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||o&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Me=/\s/,Z=e=>e?e.split(Me):[],ce="Capture",Ge=new RegExp(ce+"$"),$e=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||Y,o=t.$attrs$||Y;for(const l of V(Object.keys(r)))l in o||K(s,l,r[l],void 0,n,t.$flags$);for(const l of V(Object.keys(o)))K(s,l,r[l],o[l],n,t.$flags$)};function V(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var A,M,fe=!1,y=!1,C=(e,t,n,s)=>{const r=t.$children$[n];let o=0,l,i;if(r.$text$!==null)l=r.$elm$=S.createTextNode(r.$text$);else{if(y||(y=r.$tag$==="svg"),l=r.$elm$=S.createElementNS(y?_e:Oe,!fe&&O.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),$e(null,r,y),!!l.getRootNode().querySelector("body")&&O.scoped&&je(A)&&l["s-si"]!==A&&l.classList.add(l["s-si"]=A),r.$children$)for(o=0;o<r.$children$.length;++o)i=C(e,r,o),i&&l.appendChild(i);r.$tag$==="svg"?y=!1:l.tagName==="foreignObject"&&(y=!0)}return l["s-hn"]=M,l},de=(e,t,n,s,r,o)=>{let l=e,i;for(l.shadowRoot&&l.tagName===M&&(l=l.shadowRoot);r<=o;++r)s[r]&&(i=C(null,n,r),i&&(s[r].$elm$=i,_(l,i,t)))},ue=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const o=r.$elm$;pe(r),o&&o.remove()}}},Xe=(e,t,n,s,r=!1)=>{let o=0,l=0,i=0,a=0,c=t.length-1,$=t[0],f=t[c],d=s.length-1,u=s[0],p=s[d],v,m;for(;o<=c&&l<=d;)if($==null)$=t[++o];else if(f==null)f=t[--c];else if(u==null)u=s[++l];else if(p==null)p=s[--d];else if(P($,u,r))T($,u,r),$=t[++o],u=s[++l];else if(P(f,p,r))T(f,p,r),f=t[--c],p=s[--d];else if(P($,p,r))T($,p,r),_(e,$.$elm$,f.$elm$.nextSibling),$=t[++o],p=s[--d];else if(P(f,u,r))T(f,u,r),_(e,f.$elm$,$.$elm$),f=t[--c],u=s[++l];else{for(i=-1,a=o;a<=c;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){i=a;break}i>=0?(m=t[i],m.$tag$!==u.$tag$?v=C(t&&t[l],n,i):(T(m,u,r),t[i]=void 0,v=m.$elm$),u=s[++l]):(v=C(t&&t[l],n,l),u=s[++l]),v&&_($.$elm$.parentNode,v,$.$elm$)}o>c?de(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&ue(t,o,c)},P=(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$,o=t.$children$,l=t.$tag$,i=t.$text$;i===null?(y=l==="svg"?!0:l==="foreignObject"?!1:y,$e(e,t,y),r!==null&&o!==null?Xe(s,r,t,o,n):o!==null?(e.$text$!==null&&(s.textContent=""),de(s,null,t,o,0,o.length-1)):!n&&O.updatable&&r!==null&&ue(r,0,r.length-1),y&&l==="svg"&&(y=!1)):e.$text$!==i&&(s.data=i)},pe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(pe)},_=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Ne=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,o=e.$vnode$||B(null,null),l=ze(t)?t:ae(null,null,t);if(M=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([i,a])=>l.$attrs$[a]=s[i])),n&&l.$attrs$)for(const i of Object.keys(l.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(l.$attrs$[i]=s[i]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=o.$elm$=s.shadowRoot||s,A=s["s-sc"],fe=(r.$flags$&1)!==0,T(o,l,n)},ve=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},G=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ve(e,e.$ancestorComponent$),Ae(()=>Qe(e,t))},Qe=(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 o;return t&&(o=U(r,"componentWillLoad")),s(),Ye(o,()=>Ke(e,r,t))},Ye=(e,t)=>Je(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Je=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ke=(e,t,n)=>L(exports,null,function*(){var s;const r=e.$hostElement$,o=E("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&We(e);const i=E("render",e.$cmpMeta$.$tagName$);Ze(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),i(),o();{const a=(s=r["s-p"])!=null?s:[],c=()=>Ve(e);a.length===0?c():(Promise.all(a).then(c),e.$flags$|=4,a.length=0)}}),Ze=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,s)}catch(r){w(r,e.$hostElement$)}return null},Ve=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=E("postUpdate",t),r=e.$lazyInstance$,o=e.$ancestorComponent$;U(r,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,ge(n),U(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),o||he()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&q(()=>G(e,!1)),e.$flags$&=-517},he=e=>{ge(S.documentElement),q(()=>Be(I,"appload",{detail:{namespace:Se}}))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){w(s)}},ge=e=>{var t;return e.classList.add((t=O.hydratedSelectorName)!=null?t:"hydrated")},et=(e,t)=>k(e).$instanceValues$.get(t),tt=(e,t,n,s)=>{const r=k(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 o=r.$hostElement$,l=r.$instanceValues$.get(t),i=r.$flags$,a=r.$lazyInstance$;n=He(n,s.$members$[t][0]);const c=Number.isNaN(l)&&Number.isNaN(n),$=n!==l&&!c;if((!(i&8)||l===void 0)&&$&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(d=>{try{a[d](n,l,t)}catch(u){w(u,o)}})}(i&18)===2&&G(r,!1)}},ye=(e,t,n)=>{var s,r;const o=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(([i,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(o,i,{get(){return et(this,i)},set(c){tt(this,i,c,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;o.attributeChangedCallback=function(a,c,$){h.jmp(()=>{var f;const d=i.get(a);if(this.hasOwnProperty(d))$=this[d],delete this[d];else{if(o.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==$)return;if(d==null){const u=k(this),p=u==null?void 0:u.$flags$;if(p&&!(p&8)&&p&128&&$!==c){const v=u.$lazyInstance$,m=(f=t.$watchers$)==null?void 0:f[a];m==null||m.forEach(g=>{v[g]!=null&&v[g].call(v,$,c,a)})}return}}this[d]=$===null&&typeof this[d]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,c])=>c[0]&15).map(([a,c])=>{var $;const f=c[1]||a;return i.set(f,a),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([a,f])),f})]))}}return e},st=(e,t,n,s)=>L(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=Te(n);if(a&&"then"in a){const $=De();r=yield a,$()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,ye(r,n,2),r.isProxied=!0);const c=E("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch($){w($)}t.$flags$&=-9,t.$flags$|=128,c()}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 c=ie(n);if(!j.has(c)){const $=E("registerStyles",n.$tagName$);Fe(c,a,!!(n.$flags$&1)),$()}}}const o=t.$ancestorComponent$,l=()=>G(t,!0);o&&o["s-rc"]?o["s-rc"].push(l):l()}),rt=e=>{},nt=e=>{if(!(h.$flags$&1)){const t=k(e),n=t.$cmpMeta$,s=E("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>rt());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ve(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[o]])=>{if(o&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),st(e,t,n)}s()}},ee=e=>{U(e,"disconnectedCallback")},lt=e=>L(exports,null,function*(){if(!(h.$flags$&1)){const t=k(e);t!=null&&t.$lazyInstance$?ee(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>ee(t.$lazyInstance$))}}),at=(e,t={})=>{var n;const s=E(),r=[],o=t.exclude||[],l=I.customElements,i=S.head,a=i.querySelector("meta[charset]"),c=S.createElement("style"),$=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",S.baseURI).href;let u=!1;if(e.map(p=>{p[1].map(v=>{var m;const g={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};g.$flags$&4&&(u=!0),g.$members$=v[2],g.$attrsToReflect$=[],g.$watchers$=(m=v[4])!=null?m:{};const x=g.$tagName$,me=class extends HTMLElement{constructor(b){if(super(b),this.hasRegisteredEventListeners=!1,b=this,we(b,g),g.$flags$&1){if(!b.shadowRoot)b.attachShadow({mode:"open"});else if(b.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${b.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){k(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?$.push(this):h.jmp(()=>nt(this))}disconnectedCallback(){h.jmp(()=>lt(this))}componentOnReady(){return k(this).$onReadyPromise$}};g.$lazyBundleId$=p[0],!o.includes(x)&&!l.get(x)&&(r.push(x),l.define(x,ye(me,g,1)))})}),r.length>0&&(u&&(c.textContent+=te),c.textContent+=r.sort()+xe,c.innerHTML.length)){c.setAttribute("data-styles","");const p=(n=h.$nonce$)!=null?n:ne(S);p!=null&&c.setAttribute("nonce",p),i.insertBefore(c,a?a.nextSibling:i.firstChild)}d=!1,$.length?$.map(p=>p.connectedCallback()):h.jmp(()=>f=setTimeout(he,30)),s()};exports.Host=oe;exports.bootstrapLazy=at;exports.h=ae;exports.promiseResolve=se;exports.registerInstance=ke;
@@ -0,0 +1,580 @@
1
+ var L = (e, t, n) => new Promise((s, r) => {
2
+ var o = (a) => {
3
+ try {
4
+ i(n.next(a));
5
+ } catch (c) {
6
+ r(c);
7
+ }
8
+ }, l = (a) => {
9
+ try {
10
+ i(n.throw(a));
11
+ } catch (c) {
12
+ r(c);
13
+ }
14
+ }, i = (a) => a.done ? s(a.value) : Promise.resolve(a.value).then(o, l);
15
+ i((n = n.apply(e, t)).next());
16
+ });
17
+ const ge = "user-deposit-withdrawal", O = (
18
+ /* user-deposit-withdrawal */
19
+ { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !0, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !1, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !1, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !1, propString: !0, reflect: !0, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !0, style: !0, svg: !0, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
20
+ );
21
+ var ye = Object.defineProperty, me = (e, t) => {
22
+ for (var n in t)
23
+ ye(e, n, { get: t[n], enumerable: !0 });
24
+ }, F = /* @__PURE__ */ new WeakMap(), k = (e) => F.get(e), at = (e, t) => F.set(t.$lazyInstance$ = e, t), Se = (e, t) => {
25
+ const n = {
26
+ $flags$: 0,
27
+ $hostElement$: e,
28
+ $cmpMeta$: t,
29
+ $instanceValues$: /* @__PURE__ */ new Map()
30
+ };
31
+ return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], F.set(e, n);
32
+ }, X = (e, t) => t in e, w = (e, t) => (0, console.error)(e, t), I = /* @__PURE__ */ new Map(), Ee = (e, t, n) => {
33
+ const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
34
+ if (!r)
35
+ return;
36
+ const o = I.get(r);
37
+ if (o)
38
+ return o[s];
39
+ {
40
+ const l = (i) => (I.set(r, i), i[s]);
41
+ switch (r) {
42
+ case "user-deposit-withdrawal":
43
+ return import(
44
+ /* webpackMode: "lazy" */
45
+ "./user-deposit-withdrawal-BiyOoXm8.js"
46
+ ).then(l, w);
47
+ }
48
+ }
49
+ return import(
50
+ /* @vite-ignore */
51
+ /* webpackInclude: /\.entry\.js$/ */
52
+ /* webpackExclude: /\.system\.entry\.js$/ */
53
+ /* webpackMode: "lazy" */
54
+ `./${r}.entry.js`
55
+ ).then((l) => (I.set(r, l), l[s]), w);
56
+ }, j = /* @__PURE__ */ new Map(), be = "{visibility:hidden}.hydrated{visibility:inherit}", te = "slot-fb{display:contents}slot-fb[hidden]{display:none}", D = typeof window != "undefined" ? window : {}, S = D.document || { head: {} }, h = {
57
+ $flags$: 0,
58
+ $resourcesUrl$: "",
59
+ jmp: (e) => e(),
60
+ raf: (e) => requestAnimationFrame(e),
61
+ ael: (e, t, n, s) => e.addEventListener(t, n, s),
62
+ rel: (e, t, n, s) => e.removeEventListener(t, n, s),
63
+ ce: (e, t) => new CustomEvent(e, t)
64
+ }, ke = (e) => Promise.resolve(e), we = /* @__PURE__ */ (() => {
65
+ try {
66
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
67
+ } catch (e) {
68
+ }
69
+ return !1;
70
+ })(), R = !1, N = [], se = [], xe = (e, t) => (n) => {
71
+ e.push(n), R || (R = !0, h.$flags$ & 4 ? W(H) : h.raf(H));
72
+ }, Q = (e) => {
73
+ for (let t = 0; t < e.length; t++)
74
+ try {
75
+ e[t](performance.now());
76
+ } catch (n) {
77
+ w(n);
78
+ }
79
+ e.length = 0;
80
+ }, H = () => {
81
+ Q(N), Q(se), (R = N.length > 0) && h.raf(H);
82
+ }, W = (e) => ke().then(e), Te = /* @__PURE__ */ xe(se), Y = {}, Le = "http://www.w3.org/2000/svg", Pe = "http://www.w3.org/1999/xhtml", Ae = (e) => e != null, q = (e) => (e = typeof e, e === "object" || e === "function");
83
+ function re(e) {
84
+ var t, n, s;
85
+ 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;
86
+ }
87
+ var _e = {};
88
+ me(_e, {
89
+ err: () => ne,
90
+ map: () => Oe,
91
+ ok: () => z,
92
+ unwrap: () => je,
93
+ unwrapErr: () => Ce
94
+ });
95
+ var z = (e) => ({
96
+ isOk: !0,
97
+ isErr: !1,
98
+ value: e
99
+ }), ne = (e) => ({
100
+ isOk: !1,
101
+ isErr: !0,
102
+ value: e
103
+ });
104
+ function Oe(e, t) {
105
+ if (e.isOk) {
106
+ const n = t(e.value);
107
+ return n instanceof Promise ? n.then((s) => z(s)) : z(n);
108
+ }
109
+ if (e.isErr) {
110
+ const n = e.value;
111
+ return ne(n);
112
+ }
113
+ throw "should never get here";
114
+ }
115
+ var je = (e) => {
116
+ if (e.isOk)
117
+ return e.value;
118
+ throw e.value;
119
+ }, Ce = (e) => {
120
+ if (e.isErr)
121
+ return e.value;
122
+ throw e.value;
123
+ }, E = (e, t = "") => () => {
124
+ }, Ue = (e, t) => () => {
125
+ }, De = (e, t, ...n) => {
126
+ let s = null, r = null, o = !1, l = !1;
127
+ const i = [], a = ($) => {
128
+ for (let f = 0; f < $.length; f++)
129
+ s = $[f], Array.isArray(s) ? a(s) : s != null && typeof s != "boolean" && ((o = typeof e != "function" && !q(s)) && (s = String(s)), o && l ? i[i.length - 1].$text$ += s : i.push(o ? B(null, s) : s), l = o);
130
+ };
131
+ if (a(n), t) {
132
+ t.key && (r = t.key);
133
+ {
134
+ const $ = t.className || t.class;
135
+ $ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
136
+ }
137
+ }
138
+ const c = B(e, null);
139
+ return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), c.$key$ = r, c;
140
+ }, B = (e, t) => {
141
+ const n = {
142
+ $flags$: 0,
143
+ $tag$: e,
144
+ $text$: t,
145
+ $elm$: null,
146
+ $children$: null
147
+ };
148
+ return n.$attrs$ = null, n.$key$ = null, n;
149
+ }, Ie = {}, Re = (e) => e && e.$tag$ === Ie, He = (e, t) => e != null && !q(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 1 ? String(e) : e : e, ze = (e, t, n) => {
150
+ const s = h.ce(t, n);
151
+ return e.dispatchEvent(s), s;
152
+ }, J = /* @__PURE__ */ new WeakMap(), Be = (e, t, n) => {
153
+ let s = j.get(e);
154
+ we && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, j.set(e, s);
155
+ }, Fe = (e, t, n) => {
156
+ var s;
157
+ const r = le(t), o = j.get(r);
158
+ if (e = e.nodeType === 11 ? e : S, o)
159
+ if (typeof o == "string") {
160
+ e = e.head || e;
161
+ let l = J.get(e), i;
162
+ if (l || J.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
163
+ {
164
+ i = S.createElement("style"), i.innerHTML = o;
165
+ const a = (s = h.$nonce$) != null ? s : re(S);
166
+ a != null && i.setAttribute("nonce", a), /**
167
+ * we render a scoped component
168
+ */
169
+ (!(t.$flags$ & 1) || /**
170
+ * we are using shadow dom and render the style tag within the shadowRoot
171
+ */
172
+ t.$flags$ & 1 && e.nodeName !== "HEAD") && e.insertBefore(i, e.querySelector("link"));
173
+ }
174
+ t.$flags$ & 4 && (i.innerHTML += te), l && l.add(r);
175
+ }
176
+ } else e.adoptedStyleSheets.includes(o) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, o]);
177
+ return r;
178
+ }, We = (e) => {
179
+ const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = E("attachStyles", t.$tagName$), o = Fe(
180
+ n.shadowRoot ? n.shadowRoot : n.getRootNode(),
181
+ t
182
+ );
183
+ s & 10 && s & 2 && (n["s-sc"] = o, n.classList.add(o + "-h")), r();
184
+ }, le = (e, t) => "sc-" + e.$tagName$, K = (e, t, n, s, r, o) => {
185
+ if (n !== s) {
186
+ let l = X(e, t), i = t.toLowerCase();
187
+ if (t === "class") {
188
+ const a = e.classList, c = Z(n), $ = Z(s);
189
+ a.remove(...c.filter((f) => f && !$.includes(f))), a.add(...$.filter((f) => f && !c.includes(f)));
190
+ } else if (t === "style") {
191
+ for (const a in n)
192
+ (!s || s[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
193
+ for (const a in s)
194
+ (!n || s[a] !== n[a]) && (a.includes("-") ? e.style.setProperty(a, s[a]) : e.style[a] = s[a]);
195
+ } else if (t !== "key") if (t === "ref")
196
+ s && s(e);
197
+ else if (!l && t[0] === "o" && t[1] === "n") {
198
+ if (t[2] === "-" ? t = t.slice(3) : X(D, i) ? t = i.slice(2) : t = i[2] + t.slice(3), n || s) {
199
+ const a = t.endsWith(ae);
200
+ t = t.replace(Me, ""), n && h.rel(e, t, n, a), s && h.ael(e, t, s, a);
201
+ }
202
+ } else {
203
+ const a = q(s);
204
+ if ((l || a && s !== null) && !r)
205
+ try {
206
+ if (e.tagName.includes("-"))
207
+ e[t] = s;
208
+ else {
209
+ const c = s == null ? "" : s;
210
+ t === "list" ? l = !1 : (n == null || e[t] != c) && (e[t] = c);
211
+ }
212
+ } catch (c) {
213
+ }
214
+ s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || o & 4 || r) && !a && (s = s === !0 ? "" : s, e.setAttribute(t, s));
215
+ }
216
+ }
217
+ }, qe = /\s/, Z = (e) => e ? e.split(qe) : [], ae = "Capture", Me = new RegExp(ae + "$"), oe = (e, t, n) => {
218
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || Y, o = t.$attrs$ || Y;
219
+ for (const l of V(Object.keys(r)))
220
+ l in o || K(s, l, r[l], void 0, n, t.$flags$);
221
+ for (const l of V(Object.keys(o)))
222
+ K(s, l, r[l], o[l], n, t.$flags$);
223
+ };
224
+ function V(e) {
225
+ return e.includes("ref") ? (
226
+ // we need to sort these to ensure that `'ref'` is the last attr
227
+ [...e.filter((t) => t !== "ref"), "ref"]
228
+ ) : (
229
+ // no need to sort, return the original array
230
+ e
231
+ );
232
+ }
233
+ var A, M, ie = !1, y = !1, C = (e, t, n, s) => {
234
+ const r = t.$children$[n];
235
+ let o = 0, l, i;
236
+ if (r.$text$ !== null)
237
+ l = r.$elm$ = S.createTextNode(r.$text$);
238
+ else {
239
+ if (y || (y = r.$tag$ === "svg"), l = r.$elm$ = S.createElementNS(
240
+ y ? Le : Pe,
241
+ !ie && O.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
242
+ ), y && r.$tag$ === "foreignObject" && (y = !1), oe(null, r, y), !!l.getRootNode().querySelector("body") && O.scoped && Ae(A) && l["s-si"] !== A && l.classList.add(l["s-si"] = A), r.$children$)
243
+ for (o = 0; o < r.$children$.length; ++o)
244
+ i = C(e, r, o), i && l.appendChild(i);
245
+ r.$tag$ === "svg" ? y = !1 : l.tagName === "foreignObject" && (y = !0);
246
+ }
247
+ return l["s-hn"] = M, l;
248
+ }, ce = (e, t, n, s, r, o) => {
249
+ let l = e, i;
250
+ for (l.shadowRoot && l.tagName === M && (l = l.shadowRoot); r <= o; ++r)
251
+ s[r] && (i = C(null, n, r), i && (s[r].$elm$ = i, _(l, i, t)));
252
+ }, $e = (e, t, n) => {
253
+ for (let s = t; s <= n; ++s) {
254
+ const r = e[s];
255
+ if (r) {
256
+ const o = r.$elm$;
257
+ fe(r), o && o.remove();
258
+ }
259
+ }
260
+ }, Ge = (e, t, n, s, r = !1) => {
261
+ let o = 0, l = 0, i = 0, a = 0, c = t.length - 1, $ = t[0], f = t[c], d = s.length - 1, u = s[0], p = s[d], v, m;
262
+ for (; o <= c && l <= d; )
263
+ if ($ == null)
264
+ $ = t[++o];
265
+ else if (f == null)
266
+ f = t[--c];
267
+ else if (u == null)
268
+ u = s[++l];
269
+ else if (p == null)
270
+ p = s[--d];
271
+ else if (P($, u, r))
272
+ x($, u, r), $ = t[++o], u = s[++l];
273
+ else if (P(f, p, r))
274
+ x(f, p, r), f = t[--c], p = s[--d];
275
+ else if (P($, p, r))
276
+ x($, p, r), _(e, $.$elm$, f.$elm$.nextSibling), $ = t[++o], p = s[--d];
277
+ else if (P(f, u, r))
278
+ x(f, u, r), _(e, f.$elm$, $.$elm$), f = t[--c], u = s[++l];
279
+ else {
280
+ for (i = -1, a = o; a <= c; ++a)
281
+ if (t[a] && t[a].$key$ !== null && t[a].$key$ === u.$key$) {
282
+ i = a;
283
+ break;
284
+ }
285
+ i >= 0 ? (m = t[i], m.$tag$ !== u.$tag$ ? v = C(t && t[l], n, i) : (x(m, u, r), t[i] = void 0, v = m.$elm$), u = s[++l]) : (v = C(t && t[l], n, l), u = s[++l]), v && _($.$elm$.parentNode, v, $.$elm$);
286
+ }
287
+ o > c ? ce(
288
+ e,
289
+ s[d + 1] == null ? null : s[d + 1].$elm$,
290
+ n,
291
+ s,
292
+ l,
293
+ d
294
+ ) : l > d && $e(t, o, c);
295
+ }, P = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, x = (e, t, n = !1) => {
296
+ const s = t.$elm$ = e.$elm$, r = e.$children$, o = t.$children$, l = t.$tag$, i = t.$text$;
297
+ i === null ? (y = l === "svg" ? !0 : l === "foreignObject" ? !1 : y, oe(e, t, y), r !== null && o !== null ? Ge(s, r, t, o, n) : o !== null ? (e.$text$ !== null && (s.textContent = ""), ce(s, null, t, o, 0, o.length - 1)) : (
298
+ // don't do this on initial render as it can cause non-hydrated content to be removed
299
+ !n && O.updatable && r !== null && $e(r, 0, r.length - 1)
300
+ ), y && l === "svg" && (y = !1)) : e.$text$ !== i && (s.data = i);
301
+ }, fe = (e) => {
302
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(fe);
303
+ }, _ = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Xe = (e, t, n = !1) => {
304
+ const s = e.$hostElement$, r = e.$cmpMeta$, o = e.$vnode$ || B(null, null), l = Re(t) ? t : De(null, null, t);
305
+ if (M = s.tagName, r.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, r.$attrsToReflect$.map(
306
+ ([i, a]) => l.$attrs$[a] = s[i]
307
+ )), n && l.$attrs$)
308
+ for (const i of Object.keys(l.$attrs$))
309
+ s.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (l.$attrs$[i] = s[i]);
310
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = o.$elm$ = s.shadowRoot || s, A = s["s-sc"], ie = (r.$flags$ & 1) !== 0, x(o, l, n);
311
+ }, de = (e, t) => {
312
+ t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
313
+ }, G = (e, t) => {
314
+ if (e.$flags$ |= 16, e.$flags$ & 4) {
315
+ e.$flags$ |= 512;
316
+ return;
317
+ }
318
+ return de(e, e.$ancestorComponent$), Te(() => Ne(e, t));
319
+ }, Ne = (e, t) => {
320
+ const n = e.$hostElement$, s = E("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
321
+ if (!r)
322
+ throw new Error(
323
+ `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`
324
+ );
325
+ let o;
326
+ return t && (o = U(r, "componentWillLoad")), s(), Qe(o, () => Je(e, r, t));
327
+ }, Qe = (e, t) => Ye(e) ? e.then(t).catch((n) => {
328
+ console.error(n), t();
329
+ }) : t(), Ye = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Je = (e, t, n) => L(void 0, null, function* () {
330
+ var s;
331
+ const r = e.$hostElement$, o = E("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
332
+ n && We(e);
333
+ const i = E("render", e.$cmpMeta$.$tagName$);
334
+ Ke(e, t, r, n), l && (l.map((a) => a()), r["s-rc"] = void 0), i(), o();
335
+ {
336
+ const a = (s = r["s-p"]) != null ? s : [], c = () => Ze(e);
337
+ a.length === 0 ? c() : (Promise.all(a).then(c), e.$flags$ |= 4, a.length = 0);
338
+ }
339
+ }), Ke = (e, t, n, s) => {
340
+ try {
341
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Xe(e, t, s);
342
+ } catch (r) {
343
+ w(r, e.$hostElement$);
344
+ }
345
+ return null;
346
+ }, Ze = (e) => {
347
+ const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = E("postUpdate", t), r = e.$lazyInstance$, o = e.$ancestorComponent$;
348
+ U(r, "componentDidRender"), e.$flags$ & 64 ? s() : (e.$flags$ |= 64, pe(n), U(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), o || ue()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && W(() => G(e, !1)), e.$flags$ &= -517;
349
+ }, ue = (e) => {
350
+ pe(S.documentElement), W(() => ze(D, "appload", { detail: { namespace: ge } }));
351
+ }, U = (e, t, n) => {
352
+ if (e && e[t])
353
+ try {
354
+ return e[t](n);
355
+ } catch (s) {
356
+ w(s);
357
+ }
358
+ }, pe = (e) => {
359
+ var t;
360
+ return e.classList.add((t = O.hydratedSelectorName) != null ? t : "hydrated");
361
+ }, Ve = (e, t) => k(e).$instanceValues$.get(t), et = (e, t, n, s) => {
362
+ const r = k(e);
363
+ if (!r)
364
+ throw new Error(
365
+ `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).`
366
+ );
367
+ const o = r.$hostElement$, l = r.$instanceValues$.get(t), i = r.$flags$, a = r.$lazyInstance$;
368
+ n = He(n, s.$members$[t][0]);
369
+ const c = Number.isNaN(l) && Number.isNaN(n), $ = n !== l && !c;
370
+ if ((!(i & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, n), a)) {
371
+ if (s.$watchers$ && i & 128) {
372
+ const f = s.$watchers$[t];
373
+ f && f.map((d) => {
374
+ try {
375
+ a[d](n, l, t);
376
+ } catch (u) {
377
+ w(u, o);
378
+ }
379
+ });
380
+ }
381
+ (i & 18) === 2 && G(r, !1);
382
+ }
383
+ }, ve = (e, t, n) => {
384
+ var s, r;
385
+ const o = e.prototype;
386
+ if (t.$members$ || t.$watchers$ || e.watchers) {
387
+ e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
388
+ const l = Object.entries((s = t.$members$) != null ? s : {});
389
+ if (l.map(([i, [a]]) => {
390
+ (a & 31 || n & 2 && a & 32) && Object.defineProperty(o, i, {
391
+ get() {
392
+ return Ve(this, i);
393
+ },
394
+ set(c) {
395
+ et(this, i, c, t);
396
+ },
397
+ configurable: !0,
398
+ enumerable: !0
399
+ });
400
+ }), n & 1) {
401
+ const i = /* @__PURE__ */ new Map();
402
+ o.attributeChangedCallback = function(a, c, $) {
403
+ h.jmp(() => {
404
+ var f;
405
+ const d = i.get(a);
406
+ if (this.hasOwnProperty(d))
407
+ $ = this[d], delete this[d];
408
+ else {
409
+ if (o.hasOwnProperty(d) && typeof this[d] == "number" && // cast type to number to avoid TS compiler issues
410
+ this[d] == $)
411
+ return;
412
+ if (d == null) {
413
+ const u = k(this), p = u == null ? void 0 : u.$flags$;
414
+ if (p && !(p & 8) && p & 128 && $ !== c) {
415
+ const v = u.$lazyInstance$, m = (f = t.$watchers$) == null ? void 0 : f[a];
416
+ m == null || m.forEach((g) => {
417
+ v[g] != null && v[g].call(v, $, c, a);
418
+ });
419
+ }
420
+ return;
421
+ }
422
+ }
423
+ this[d] = $ === null && typeof this[d] == "boolean" ? !1 : $;
424
+ });
425
+ }, e.observedAttributes = Array.from(
426
+ /* @__PURE__ */ new Set([
427
+ ...Object.keys((r = t.$watchers$) != null ? r : {}),
428
+ ...l.filter(
429
+ ([a, c]) => c[0] & 15
430
+ /* HasAttribute */
431
+ ).map(([a, c]) => {
432
+ var $;
433
+ const f = c[1] || a;
434
+ return i.set(f, a), c[0] & 512 && (($ = t.$attrsToReflect$) == null || $.push([a, f])), f;
435
+ })
436
+ ])
437
+ );
438
+ }
439
+ }
440
+ return e;
441
+ }, tt = (e, t, n, s) => L(void 0, null, function* () {
442
+ let r;
443
+ if (!(t.$flags$ & 32)) {
444
+ if (t.$flags$ |= 32, n.$lazyBundleId$) {
445
+ const a = Ee(n);
446
+ if (a && "then" in a) {
447
+ const $ = Ue();
448
+ r = yield a, $();
449
+ } else
450
+ r = a;
451
+ if (!r)
452
+ throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
453
+ r.isProxied || (n.$watchers$ = r.watchers, ve(
454
+ r,
455
+ n,
456
+ 2
457
+ /* proxyState */
458
+ ), r.isProxied = !0);
459
+ const c = E("createInstance", n.$tagName$);
460
+ t.$flags$ |= 8;
461
+ try {
462
+ new r(t);
463
+ } catch ($) {
464
+ w($);
465
+ }
466
+ t.$flags$ &= -9, t.$flags$ |= 128, c();
467
+ } else {
468
+ r = e.constructor;
469
+ const a = e.localName;
470
+ customElements.whenDefined(a).then(
471
+ () => t.$flags$ |= 128
472
+ /* isWatchReady */
473
+ );
474
+ }
475
+ if (r && r.style) {
476
+ let a;
477
+ typeof r.style == "string" && (a = r.style);
478
+ const c = le(n);
479
+ if (!j.has(c)) {
480
+ const $ = E("registerStyles", n.$tagName$);
481
+ Be(c, a, !!(n.$flags$ & 1)), $();
482
+ }
483
+ }
484
+ }
485
+ const o = t.$ancestorComponent$, l = () => G(t, !0);
486
+ o && o["s-rc"] ? o["s-rc"].push(l) : l();
487
+ }), st = (e) => {
488
+ }, rt = (e) => {
489
+ if (!(h.$flags$ & 1)) {
490
+ const t = k(e), n = t.$cmpMeta$, s = E("connectedCallback", n.$tagName$);
491
+ if (t.$flags$ & 1)
492
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => st());
493
+ else {
494
+ t.$flags$ |= 1;
495
+ {
496
+ let r = e;
497
+ for (; r = r.parentNode || r.host; )
498
+ if (r["s-p"]) {
499
+ de(t, t.$ancestorComponent$ = r);
500
+ break;
501
+ }
502
+ }
503
+ n.$members$ && Object.entries(n.$members$).map(([r, [o]]) => {
504
+ if (o & 31 && e.hasOwnProperty(r)) {
505
+ const l = e[r];
506
+ delete e[r], e[r] = l;
507
+ }
508
+ }), tt(e, t, n);
509
+ }
510
+ s();
511
+ }
512
+ }, ee = (e) => {
513
+ U(e, "disconnectedCallback");
514
+ }, nt = (e) => L(void 0, null, function* () {
515
+ if (!(h.$flags$ & 1)) {
516
+ const t = k(e);
517
+ t != null && t.$lazyInstance$ ? ee(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => ee(t.$lazyInstance$));
518
+ }
519
+ }), ot = (e, t = {}) => {
520
+ var n;
521
+ const s = E(), r = [], o = t.exclude || [], l = D.customElements, i = S.head, a = /* @__PURE__ */ i.querySelector("meta[charset]"), c = /* @__PURE__ */ S.createElement("style"), $ = [];
522
+ let f, d = !0;
523
+ Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", S.baseURI).href;
524
+ let u = !1;
525
+ if (e.map((p) => {
526
+ p[1].map((v) => {
527
+ var m;
528
+ const g = {
529
+ $flags$: v[0],
530
+ $tagName$: v[1],
531
+ $members$: v[2],
532
+ $listeners$: v[3]
533
+ };
534
+ g.$flags$ & 4 && (u = !0), g.$members$ = v[2], g.$attrsToReflect$ = [], g.$watchers$ = (m = v[4]) != null ? m : {};
535
+ const T = g.$tagName$, he = class extends HTMLElement {
536
+ // StencilLazyHost
537
+ constructor(b) {
538
+ if (super(b), this.hasRegisteredEventListeners = !1, b = this, Se(b, g), g.$flags$ & 1) {
539
+ if (!b.shadowRoot)
540
+ b.attachShadow({ mode: "open" });
541
+ else if (b.shadowRoot.mode !== "open")
542
+ throw new Error(
543
+ `Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${b.shadowRoot.mode} but Stencil only supports open shadow roots.`
544
+ );
545
+ }
546
+ }
547
+ connectedCallback() {
548
+ k(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? $.push(this) : h.jmp(() => rt(this));
549
+ }
550
+ disconnectedCallback() {
551
+ h.jmp(() => nt(this));
552
+ }
553
+ componentOnReady() {
554
+ return k(this).$onReadyPromise$;
555
+ }
556
+ };
557
+ g.$lazyBundleId$ = p[0], !o.includes(T) && !l.get(T) && (r.push(T), l.define(
558
+ T,
559
+ ve(
560
+ he,
561
+ g,
562
+ 1
563
+ /* isElementConstructor */
564
+ )
565
+ ));
566
+ });
567
+ }), r.length > 0 && (u && (c.textContent += te), c.textContent += r.sort() + be, c.innerHTML.length)) {
568
+ c.setAttribute("data-styles", "");
569
+ const p = (n = h.$nonce$) != null ? n : re(S);
570
+ p != null && c.setAttribute("nonce", p), i.insertBefore(c, a ? a.nextSibling : i.firstChild);
571
+ }
572
+ d = !1, $.length ? $.map((p) => p.connectedCallback()) : h.jmp(() => f = setTimeout(ue, 30)), s();
573
+ };
574
+ export {
575
+ Ie as H,
576
+ ot as b,
577
+ De as h,
578
+ ke as p,
579
+ at as r
580
+ };
@@ -0,0 +1,242 @@
1
+ var c = (e, i, t) => new Promise((r, n) => {
2
+ var h = (a) => {
3
+ try {
4
+ s(t.next(a));
5
+ } catch (p) {
6
+ n(p);
7
+ }
8
+ }, d = (a) => {
9
+ try {
10
+ s(t.throw(a));
11
+ } catch (p) {
12
+ n(p);
13
+ }
14
+ }, s = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(h, d);
15
+ s((t = t.apply(e, i)).next());
16
+ });
17
+ import { b as u, p as w, r as y, h as o, H as f } from "./index-04d3e726-Dp8kKTwx.js";
18
+ import { g } from "./app-globals-0f993ce5-D-kw1sls.js";
19
+ var m = () => {
20
+ const e = import.meta.url, i = {};
21
+ return e !== "" && (i.resourcesUrl = new URL(".", e).href), w(i);
22
+ };
23
+ m().then((e) => c(void 0, null, function* () {
24
+ return yield g(), u([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-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], limitStylingAppends: [32], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"] }]]]], e);
25
+ }));
26
+ const C = "en", v = ["ro", "en", "fr", "hr"], b = {
27
+ en: {
28
+ Deposit: "Deposit",
29
+ Withdraw: "Withdraw",
30
+ denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
31
+ denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
32
+ notFoundErrorCode: "Not found error code",
33
+ errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
34
+ errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
35
+ },
36
+ ro: {
37
+ Deposit: "Depozit",
38
+ Withdraw: "Retragere",
39
+ denyDeposit: "Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",
40
+ denyWithdrawal: "Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",
41
+ notFoundErrorCode: "Not found error code",
42
+ errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
43
+ errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
44
+ },
45
+ fr: {
46
+ Deposit: "Deposit",
47
+ Withdraw: "Withdraw",
48
+ denyDeposit: "Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de dépôt.",
49
+ denyWithdrawal: "Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de retrait.",
50
+ notFoundErrorCode: "Not found error code",
51
+ errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
52
+ errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
53
+ },
54
+ hr: {
55
+ Deposit: "Uplata",
56
+ Withdraw: "Isplata",
57
+ denyDeposit: "Obavještavamo Vas da trenutno nemate mogućnost uplata.",
58
+ denyWithdrawal: "Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",
59
+ notFoundErrorCode: "Not found error code",
60
+ errorCode21122: "Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",
61
+ errorCode21123: "Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"
62
+ }
63
+ }, l = (e, i) => {
64
+ const t = i;
65
+ return b[t !== void 0 && v.includes(t) ? t : C][e];
66
+ }, S = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), U = `:host {
67
+ font: inherit;
68
+ display: block;
69
+ height: 100%;
70
+ overflow: hidden;
71
+ }
72
+
73
+ .CategoryTitle {
74
+ font-size: var(--emw--font-size-x-large, 26px);
75
+ color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
76
+ }
77
+
78
+ .MenuReturnButton {
79
+ font: inherit;
80
+ color: var(--emfe-w-color-gray-300, #58586B);
81
+ display: inline-flex;
82
+ align-items: center;
83
+ column-gap: 10px;
84
+ margin-bottom: 10px;
85
+ }
86
+ .MenuReturnButton svg {
87
+ fill: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
88
+ }
89
+ .MenuReturnButton h2.CategoryTitleMobile {
90
+ font-size: 16px;
91
+ color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
92
+ }
93
+
94
+ .ErrorMessage {
95
+ color: var(--emfe-w-pam-color-typography, var(--emfe-w-color-typography, #FFFFFF));
96
+ }
97
+
98
+ .DepositWithdrawalWrapper {
99
+ width: 100%;
100
+ padding: 0;
101
+ margin: 0;
102
+ height: 100vh;
103
+ }
104
+
105
+ @container (max-width: 475px) {
106
+ .DepositWithdrawalWrapper {
107
+ height: 100vh;
108
+ }
109
+ }
110
+ .ShortCashier.DepositWithdrawalWrapper {
111
+ height: 500px;
112
+ }
113
+ .ShortCashier.CategoryTitle.CategoryTitle {
114
+ margin-right: 20px;
115
+ padding-top: 20px;
116
+ color: ar(--emfe-w-color-black, #000000);
117
+ }
118
+ .ShortCashier .ErrorMessage {
119
+ margin: auto;
120
+ width: 90%;
121
+ margin-top: 70px;
122
+ text-align: center;
123
+ color: var(--emfe-w-color-black, #000000);
124
+ }`, W = U, D = () => {
125
+ }, M = class {
126
+ constructor(e) {
127
+ y(this, e), this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = S(this.userAgent), this.errorCodes = ["21123", "21122"], this.setClientStyling = () => {
128
+ let i = document.createElement("style");
129
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
130
+ }, this.setClientStylingURL = () => {
131
+ let i = new URL(this.clientStylingUrl), t = document.createElement("style");
132
+ fetch(i.href).then((r) => r.text()).then((r) => {
133
+ t.innerHTML = r, setTimeout(() => {
134
+ this.stylingContainer.prepend(t);
135
+ }, 1);
136
+ }).catch((r) => {
137
+ console.log("error ", r);
138
+ });
139
+ }, this.clientStyling = "", this.clientStylingUrl = "", 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 = D, this.limitStylingAppends = !1, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
140
+ }
141
+ get typeParameter() {
142
+ if (this.type === "deposit")
143
+ return "Deposit";
144
+ if (this.type === "withdraw")
145
+ return "Withdraw";
146
+ }
147
+ watchLoadWidget() {
148
+ this.loadWidget();
149
+ }
150
+ componentWillLoad() {
151
+ return c(this, null, function* () {
152
+ yield this.loadWidget();
153
+ });
154
+ }
155
+ toggleScreen(e) {
156
+ window.postMessage({ type: "PlayerAccountMenuActive", isMobile: e }, window.location.href);
157
+ }
158
+ componentDidLoad() {
159
+ window.addEventListener("message", this.bindedHandler, !1);
160
+ }
161
+ disconnectedCallback() {
162
+ window.removeEventListener("message", this.bindedHandler, !1);
163
+ }
164
+ componentDidRender() {
165
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
166
+ }
167
+ render() {
168
+ return o(f, { key: "ccdd9243da65080f4ac854a4bc6ed4006f0c9f5e" }, o("div", { key: "e39b500a56740d0f7e23f92e2f73ea386a3bbb5c", ref: (e) => this.stylingContainer = e }, !(this.isMobile && !this.isShortCashier) && o("h2", { key: "3e2e8bf8a07a4249674f4dae7df7a76da6435fa3", class: "CategoryTitle" }, l(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), o("div", { key: "886bedf58fac20d2f620d4600b6588089d0e502c", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? "30px" : "0" } }, o("div", { key: "fa038bb3d599cbd894ba6a14ead4c03bbfa425fd" }, this.isMobile && !this.isShortCashier ? o("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, o("defs", null), o("g", { transform: "translate(-20 -158)" }, o("g", { transform: "translate(20 158)" }, o("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)" })))), o("h2", { class: "CategoryTitleMobile" }, l(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? o("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : o("h3", { class: "ErrorMessage" }, this.type === "deposit" ? l("denyDeposit", this.language) : l("denyWithdrawal", this.language)))));
169
+ }
170
+ loadWidget() {
171
+ return c(this, null, function* () {
172
+ const e = {
173
+ Channel: this.channel,
174
+ Type: this.typeParameter,
175
+ SuccessUrl: this.successUrl,
176
+ CancelUrl: this.cancelUrl,
177
+ FailUrl: this.failUrl,
178
+ Language: this.language,
179
+ productType: this.productType,
180
+ isShortCashier: this.isShortCashier,
181
+ currency: this.currency,
182
+ showBonusSelectionInput: this.showBonusSelectionInput
183
+ };
184
+ try {
185
+ const i = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, t = yield fetch(i, {
186
+ method: "POST",
187
+ headers: {
188
+ "X-Sessionid": this.session,
189
+ "Content-Type": "application/json"
190
+ },
191
+ body: JSON.stringify(e)
192
+ });
193
+ if (!t.ok) {
194
+ const n = yield t.text();
195
+ throw new Error(n);
196
+ }
197
+ const r = yield t.json();
198
+ if (r.CashierInfo)
199
+ this.cashierInfoUrl = r.CashierInfo.Url;
200
+ else {
201
+ let n;
202
+ if (r.ResponseMessage) {
203
+ let d = this.errorCodes.find((s) => r.ResponseMessage.includes(s)) || null;
204
+ d ? n = l(`errorCode${d}`, this.language) : n = l("notFoundErrorCode", this.language);
205
+ } else
206
+ n = this.type === "deposit" ? l("denyDeposit", this.language) : l("denyWithdrawal", this.language);
207
+ const h = { type: "error", message: n };
208
+ window.postMessage({ type: "DenyDepositOrWithdrawal", data: h }, window.location.href);
209
+ }
210
+ } catch (i) {
211
+ console.error(i);
212
+ }
213
+ });
214
+ }
215
+ handleMessage(e) {
216
+ var i, t, r, n, h, d, s, a;
217
+ e.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), e.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = e.data["MMFE:setQuickDepositHeight"].toString() + "px"), e.data["MMFE:setIFrameHeight"] && this.isShortCashier && (this.dynamicHeight = e.data["MMFE:setIFrameHeight"].toString() + "px"), ((i = e.data) === null || i === void 0 ? void 0 : i.type) === "mm-hcback-to-merchant" && this.doRedirect(e.data.type, this.homeUrl), ((t = e.data) === null || t === void 0 ? void 0 : t.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(e.data.redirect, this.homeUrl), ((r = e.data) === null || r === void 0 ? void 0 : r.redirect) === "mm-hc-sports" && this.doRedirect((n = e.data) === null || n === void 0 ? void 0 : n.redirect, this.sportsUrl), ((h = e.data) === null || h === void 0 ? void 0 : h.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((d = e.data) === null || d === void 0 ? void 0 : d.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((s = e.data) === null || s === void 0 ? void 0 : s.redirect) === "mm-wm-hc-init-deposit" || ((a = e.data) === null || a === void 0 ? void 0 : a.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
218
+ }
219
+ doRedirect(e, i) {
220
+ const t = { reason: e, url: i, cancel: !1 };
221
+ if (this.beforeRedirect(t), !t.cancel) {
222
+ if (!t.url) {
223
+ window.location.href = "/";
224
+ return;
225
+ }
226
+ window.location.href = t.url;
227
+ }
228
+ }
229
+ static get watchers() {
230
+ return {
231
+ session: ["watchLoadWidget"],
232
+ userId: ["watchLoadWidget"],
233
+ isShortCashier: ["watchLoadWidget"],
234
+ currency: ["watchLoadWidget"],
235
+ showBonusSelectionInput: ["watchLoadWidget"]
236
+ };
237
+ }
238
+ };
239
+ M.style = W;
240
+ export {
241
+ M as user_deposit_withdrawal
242
+ };
@@ -0,0 +1,59 @@
1
+ "use strict";var c=(e,i,t)=>new Promise((o,n)=>{var h=a=>{try{s(t.next(a))}catch(u){n(u)}},d=a=>{try{s(t.throw(a))}catch(u){n(u)}},s=a=>a.done?o(a.value):Promise.resolve(a.value).then(h,d);s((t=t.apply(e,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-04d3e726-Bk7opmvq.cjs"),y=require("./app-globals-0f993ce5-sCt45RkC.cjs");var p=typeof document!="undefined"?document.currentScript:null,f=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.src||new URL("stencil/user-deposit-withdrawal-CsuWz3w0.cjs",document.baseURI).href,i={};return e!==""&&(i.resourcesUrl=new URL(".",e).href),r.promiseResolve(i)};f().then(e=>c(exports,null,function*(){return yield y.globalScripts(),r.bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-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],limitStylingAppends:[32],dynamicHeight:[32],cashierInfoUrl:[32]},null,{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"]}]]]],e)}));const g="en",m=["ro","en","fr","hr"],C={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"},ro:{Deposit:"Depozit",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:"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"},fr:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de retrait.",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"},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"}},l=(e,i)=>{const t=i;return C[t!==void 0&&m.includes(t)?t:g][e]},v=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),b=`:host {
2
+ font: inherit;
3
+ display: block;
4
+ height: 100%;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .CategoryTitle {
9
+ font-size: var(--emw--font-size-x-large, 26px);
10
+ color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
11
+ }
12
+
13
+ .MenuReturnButton {
14
+ font: inherit;
15
+ color: var(--emfe-w-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(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
23
+ }
24
+ .MenuReturnButton h2.CategoryTitleMobile {
25
+ font-size: 16px;
26
+ color: var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));
27
+ }
28
+
29
+ .ErrorMessage {
30
+ color: var(--emfe-w-pam-color-typography, var(--emfe-w-color-typography, #FFFFFF));
31
+ }
32
+
33
+ .DepositWithdrawalWrapper {
34
+ width: 100%;
35
+ padding: 0;
36
+ margin: 0;
37
+ height: 100vh;
38
+ }
39
+
40
+ @container (max-width: 475px) {
41
+ .DepositWithdrawalWrapper {
42
+ height: 100vh;
43
+ }
44
+ }
45
+ .ShortCashier.DepositWithdrawalWrapper {
46
+ height: 500px;
47
+ }
48
+ .ShortCashier.CategoryTitle.CategoryTitle {
49
+ margin-right: 20px;
50
+ padding-top: 20px;
51
+ color: ar(--emfe-w-color-black, #000000);
52
+ }
53
+ .ShortCashier .ErrorMessage {
54
+ margin: auto;
55
+ width: 90%;
56
+ margin-top: 70px;
57
+ text-align: center;
58
+ color: var(--emfe-w-color-black, #000000);
59
+ }`,S=b,U=()=>{},w=class{constructor(e){r.registerInstance(this,e),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=v(this.userAgent),this.errorCodes=["21123","21122"],this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.setClientStylingURL=()=>{let i=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(i.href).then(o=>o.text()).then(o=>{t.innerHTML=o,setTimeout(()=>{this.stylingContainer.prepend(t)},1)}).catch(o=>{console.log("error ",o)})},this.clientStyling="",this.clientStylingUrl="",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=U,this.limitStylingAppends=!1,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()}componentWillLoad(){return c(this,null,function*(){yield this.loadWidget()})}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}componentDidLoad(){window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return r.h(r.Host,{key:"ccdd9243da65080f4ac854a4bc6ed4006f0c9f5e"},r.h("div",{key:"e39b500a56740d0f7e23f92e2f73ea386a3bbb5c",ref:e=>this.stylingContainer=e},!(this.isMobile&&!this.isShortCashier)&&r.h("h2",{key:"3e2e8bf8a07a4249674f4dae7df7a76da6435fa3",class:"CategoryTitle"},l(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),r.h("div",{key:"886bedf58fac20d2f620d4600b6588089d0e502c",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`,style:{height:this.dynamicHeight,marginTop:this.isShortCashier?"30px":"0"}},r.h("div",{key:"fa038bb3d599cbd894ba6a14ead4c03bbfa425fd"},this.isMobile&&!this.isShortCashier?r.h("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},r.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},r.h("defs",null),r.h("g",{transform:"translate(-20 -158)"},r.h("g",{transform:"translate(20 158)"},r.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)"})))),r.h("h2",{class:"CategoryTitleMobile"},l(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?r.h("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}):r.h("h3",{class:"ErrorMessage"},this.type==="deposit"?l("denyDeposit",this.language):l("denyWithdrawal",this.language)))))}loadWidget(){return c(this,null,function*(){const e={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 i=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,t=yield fetch(i,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=yield t.text();throw new Error(n)}const o=yield t.json();if(o.CashierInfo)this.cashierInfoUrl=o.CashierInfo.Url;else{let n;if(o.ResponseMessage){let d=this.errorCodes.find(s=>o.ResponseMessage.includes(s))||null;d?n=l(`errorCode${d}`,this.language):n=l("notFoundErrorCode",this.language)}else n=this.type==="deposit"?l("denyDeposit",this.language):l("denyWithdrawal",this.language);const h={type:"error",message:n};window.postMessage({type:"DenyDepositOrWithdrawal",data:h},window.location.href)}}catch(i){console.error(i)}})}handleMessage(e){var i,t,o,n,h,d,s,a;e.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e.data["MMFE:setQuickDepositHeight"]&&this.isShortCashier&&(this.dynamicHeight=e.data["MMFE:setQuickDepositHeight"].toString()+"px"),e.data["MMFE:setIFrameHeight"]&&this.isShortCashier&&(this.dynamicHeight=e.data["MMFE:setIFrameHeight"].toString()+"px"),((i=e.data)===null||i===void 0?void 0:i.type)==="mm-hcback-to-merchant"&&this.doRedirect(e.data.type,this.homeUrl),((t=e.data)===null||t===void 0?void 0:t.redirect)==="mm-hc-back-tomerchant"&&this.doRedirect(e.data.redirect,this.homeUrl),((o=e.data)===null||o===void 0?void 0:o.redirect)==="mm-hc-sports"&&this.doRedirect((n=e.data)===null||n===void 0?void 0:n.redirect,this.sportsUrl),((h=e.data)===null||h===void 0?void 0:h.redirect)==="mm-hc-casino"&&this.doRedirect(window.location.href,this.casinoUrl),((d=e.data)===null||d===void 0?void 0:d.redirect)==="mm-hc-contact"&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.contactUrl)),(((s=e.data)===null||s===void 0?void 0:s.redirect)==="mm-wm-hc-init-deposit"||((a=e.data)===null||a===void 0?void 0:a.redirect)==="mm-wm-hc-init-deposit-quick")&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(e,i){const t={reason:e,url:i,cancel:!1};if(this.beforeRedirect(t),!t.cancel){if(!t.url){window.location.href="/";return}window.location.href=t.url}}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"]}}};w.style=S;exports.user_deposit_withdrawal=w;