@everymatrix/player-account-controller 1.64.1 → 1.64.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/components/{PlayerAccountController-CNadLBkX.js → PlayerAccountController-BUrcFu9n.js} +3 -3
  2. package/components/{PlayerAccountController-C4sz4Dx3.js → PlayerAccountController-DeZ4tBNI.js} +3 -3
  3. package/components/{PlayerAccountController-BfTHwFus.cjs → PlayerAccountController-DoD4S-nh.cjs} +1 -1
  4. package/components/{PlayerAccountTransactionsHistory-D2lWBV-A.js → PlayerAccountTransactionsHistory-Dba-1fZy.js} +61 -61
  5. package/components/{PlayerAccountTransactionsHistory-DOyK1gIl.cjs → PlayerAccountTransactionsHistory-P3vGWL_D.cjs} +4 -4
  6. package/components/{PlayerAccountTransactionsHistory-BRz2bw7T.js → PlayerAccountTransactionsHistory-zmSP1ZKW.js} +61 -61
  7. package/es2015/player-account-controller.cjs +1 -1
  8. package/es2015/player-account-controller.js +1 -1
  9. package/esnext/player-account-controller.js +1 -1
  10. package/package.json +1 -1
  11. package/stencil/{checkbox-group-input_9-fb5AYRav.js → checkbox-group-input_9-BDLC0NPq.js} +56 -55
  12. package/stencil/{checkbox-group-input_9-D2BF8AME.cjs → checkbox-group-input_9-CprubYZ6.cjs} +2 -2
  13. package/stencil/{checkbox-group-input_9-Ccn1x-YQ.js → checkbox-group-input_9-CvL73d-G.js} +56 -55
  14. package/stencil/{general-input-BRStwjLe.cjs → general-input-BGhFzqtE.cjs} +1 -1
  15. package/stencil/{general-input-VrsbUFid.js → general-input-D6sqV34A.js} +1 -1
  16. package/stencil/{general-input-Bi859Arx.js → general-input-rAz3BI0W.js} +1 -1
  17. package/stencil/{index-1ef3a64c-40UJl6ZR.cjs → index-1ef3a64c-B_ZYYq05.cjs} +1 -1
  18. package/stencil/{index-1ef3a64c-D_hRnRRS.js → index-1ef3a64c-Brn0Uk6U.js} +1 -1
  19. package/stencil/{index-1ef3a64c-DlkA_w16.js → index-1ef3a64c-HrNLjYby.js} +1 -1
  20. package/stencil/{index-9cd44522-DxFae1MG.js → index-9cd44522-BicusHxm.js} +4 -4
  21. package/stencil/{index-9cd44522-JnusBvN9.js → index-9cd44522-CmU71Sj9.js} +4 -4
  22. package/stencil/{index-9cd44522-CrgsoiAp.cjs → index-9cd44522-DoGQFmJb.cjs} +1 -1
  23. package/stencil/{password-input_2-BCOtY9sM.js → password-input_2-CgqvAj-_.js} +2 -2
  24. package/stencil/{password-input_2-BXzfMc8X.cjs → password-input_2-D-c-s1Y6.cjs} +1 -1
  25. package/stencil/{password-input_2-DHVTL4Uw.js → password-input_2-DRVfO_oq.js} +2 -2
  26. package/stencil/{player-change-password-gm2-5cb5c6c1-BKCmd_cs.js → player-change-password-gm2-5cb5c6c1-B-k1s7vM.js} +1 -1
  27. package/stencil/{player-change-password-gm2-5cb5c6c1-BUgDtida.cjs → player-change-password-gm2-5cb5c6c1-B10TDWX3.cjs} +1 -1
  28. package/stencil/{player-change-password-gm2-5cb5c6c1-6TVYOtMo.js → player-change-password-gm2-5cb5c6c1-BXXs93I9.js} +1 -1
  29. package/stencil/{player-change-password-gm2-BrSLdHlU.cjs → player-change-password-gm2-BYVZydPd.cjs} +1 -1
  30. package/stencil/{player-change-password-gm2-BKBYgPz8.js → player-change-password-gm2-Ch6ZOQxn.js} +1 -1
  31. package/stencil/{player-change-password-gm2-gjVdo1GO.js → player-change-password-gm2-D8Z5iyOU.js} +1 -1
  32. package/stencil/{toggle-checkbox-input-CrxkMky_.js → toggle-checkbox-input-DqMPlaYm.js} +1 -1
  33. package/stencil/{toggle-checkbox-input-HnF1aSM9.js → toggle-checkbox-input-F32UBqIG.js} +1 -1
  34. package/stencil/{toggle-checkbox-input-BC2iIvnY.cjs → toggle-checkbox-input-Vi6Sls8a.cjs} +1 -1
  35. package/stencil/{user-deposit-withdrawal-cnDUxzhZ.js → user-deposit-withdrawal-C7ATBpL9.js} +3 -3
  36. package/stencil/user-deposit-withdrawal-D3ICpdvp.cjs +68 -0
  37. package/stencil/{user-deposit-withdrawal-C3ngwq1c.js → user-deposit-withdrawal-G1yW00bt.js} +3 -3
  38. package/stencil/user-deposit-withdrawal-CJihIeJ7.cjs +0 -68
@@ -1 +1 @@
1
- "use strict";var x=(e,t,r)=>new Promise((s,n)=>{var l=$=>{try{i(r.next($))}catch(o){n(o)}},a=$=>{try{i(r.throw($))}catch(o){n(o)}},i=$=>$.done?s($.value):Promise.resolve($.value).then(l,a);i((r=r.apply(e,t)).next())});const be="player-change-password-gm2",ke={hydratedSelectorName:"hydrated"};var we=Object.defineProperty,Le=(e,t)=>{for(var r in t)we(e,r,{get:t[r],enumerable:!0})},M=new WeakMap,w=e=>M.get(e),Pe=(e,t)=>M.set(t.$lazyInstance$=e,t),Te=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],M.set(e,r)},Y=(e,t)=>t in e,S=(e,t)=>(0,console.error)(e,t),z=new Map,xe=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const l=z.get(n);if(l)return l[s];{const a=i=>(z.set(n,i),i[s]);switch(n){case"password-input_2":return Promise.resolve().then(()=>require("./password-input_2-BXzfMc8X.cjs")).then(a,S);case"checkbox-group-input_9":return Promise.resolve().then(()=>require("./checkbox-group-input_9-D2BF8AME.cjs")).then(a,S);case"general-input":return Promise.resolve().then(()=>require("./general-input-BRStwjLe.cjs")).then(a,S);case"toggle-checkbox-input":return Promise.resolve().then(()=>require("./toggle-checkbox-input-BC2iIvnY.cjs")).then(a,S)}}return import(`./${n}.entry.js`).then(a=>(z.set(n,a),a[s]),S)},A=new Map,_e="{visibility:hidden}.hydrated{visibility:inherit}",te="slot-fb{display:contents}slot-fb[hidden]{display:none}",q=typeof window!="undefined"?window:{},m=q.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},Oe=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),se=e=>Promise.resolve(e),je=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),H=!1,J=[],ne=[],Ae=(e,t)=>r=>{e.push(r),H||(H=!0,g.$flags$&4?W(U):g.raf(U))},K=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){S(r)}e.length=0},U=()=>{K(J),K(ne),(H=J.length>0)&&g.raf(U)},W=e=>se().then(e),Ie=Ae(ne),Q={},qe="http://www.w3.org/2000/svg",ze="http://www.w3.org/1999/xhtml",He=e=>e!=null,F=e=>(e=typeof e,e==="object"||e==="function");function re(e){var t,r,s;return(s=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?s:void 0}var Ue={};Le(Ue,{err:()=>ae,map:()=>Ce,ok:()=>C,unwrap:()=>Be,unwrapErr:()=>De});var C=e=>({isOk:!0,isErr:!1,value:e}),ae=e=>({isOk:!1,isErr:!0,value:e});function Ce(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(s=>C(s)):C(r)}if(e.isErr){const r=e.value;return ae(r)}throw"should never get here"}var Be=e=>{if(e.isOk)return e.value;throw e.value},De=e=>{if(e.isErr)return e.value;throw e.value},k=(e,t="")=>()=>{},Me=(e,t)=>()=>{},le=(e,t,...r)=>{let s=null,n=null,l=!1,a=!1;const i=[],$=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?$(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!F(s))&&(s=String(s)),l&&a?i[i.length-1].$text$+=s:i.push(l?B(null,s):s),a=l)};if($(r),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const o=B(e,null);return o.$attrs$=t,i.length>0&&(o.$children$=i),o.$key$=n,o},B=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},ie={},We=e=>e&&e.$tag$===ie,Fe=(e,t)=>e!=null&&!F(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,$e=e=>w(e).$hostElement$,Ge=(e,t,r)=>{const s=$e(e);return{emit:n=>oe(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},oe=(e,t,r)=>{const s=g.ce(t,r);return e.dispatchEvent(s),s},R=new WeakMap,Xe=(e,t,r)=>{let s=A.get(e);je&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,A.set(e,s)},Ye=(e,t,r)=>{var s;const n=ce(t),l=A.get(n);if(e=e.nodeType===11?e:m,l)if(typeof l=="string"){e=e.head||e;let a=R.get(e),i;if(a||R.set(e,a=new Set),!a.has(n)){{i=m.createElement("style"),i.innerHTML=l;const $=(s=g.$nonce$)!=null?s:re(m);$!=null&&i.setAttribute("nonce",$),e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=te),a&&a.add(n)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n},Je=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,n=k("attachStyles",t.$tagName$),l=Ye(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=l,r.classList.add(l+"-h")),n()},ce=(e,t)=>"sc-"+e.$tagName$,Z=(e,t,r,s,n,l)=>{if(r!==s){let a=Y(e,t),i=t.toLowerCase();if(t==="class"){const $=e.classList,o=N(r),c=N(s);$.remove(...o.filter(f=>f&&!c.includes(f))),$.add(...c.filter(f=>f&&!o.includes(f)))}else if(t!=="key")if(t==="ref")s&&s(e);else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):Y(q,i)?t=i.slice(2):t=i[2]+t.slice(3),r||s){const $=t.endsWith(fe);t=t.replace(Qe,""),r&&g.rel(e,t,r,$),s&&g.ael(e,t,s,$)}}else{const $=F(s);if((a||$&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=s;else{const o=s==null?"":s;t==="list"?a=!1:(r==null||e[t]!=o)&&(e[t]=o)}}catch(o){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!a||l&4||n)&&!$&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Ke=/\s/,N=e=>e?e.split(Ke):[],fe="Capture",Qe=new RegExp(fe+"$"),ue=(e,t,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||Q,l=t.$attrs$||Q;for(const a of V(Object.keys(n)))a in l||Z(s,a,n[a],void 0,r,t.$flags$);for(const a of V(Object.keys(l)))Z(s,a,n[a],l[a],r,t.$flags$)};function V(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var O,G,y=!1,I=(e,t,r,s)=>{const n=t.$children$[r];let l=0,a,i;if(n.$text$!==null)a=n.$elm$=m.createTextNode(n.$text$);else{if(y||(y=n.$tag$==="svg"),a=n.$elm$=m.createElementNS(y?qe:ze,n.$tag$),y&&n.$tag$==="foreignObject"&&(y=!1),ue(null,n,y),He(O)&&a["s-si"]!==O&&a.classList.add(a["s-si"]=O),n.$children$)for(l=0;l<n.$children$.length;++l)i=I(e,n,l),i&&a.appendChild(i);n.$tag$==="svg"?y=!1:a.tagName==="foreignObject"&&(y=!0)}return a["s-hn"]=G,a},de=(e,t,r,s,n,l)=>{let a=e,i;for(a.shadowRoot&&a.tagName===G&&(a=a.shadowRoot);n<=l;++n)s[n]&&(i=I(null,r,n),i&&(s[n].$elm$=i,j(a,i,t)))},ve=(e,t,r)=>{for(let s=t;s<=r;++s){const n=e[s];if(n){const l=n.$elm$;ge(n),l&&l.remove()}}},Re=(e,t,r,s,n=!1)=>{let l=0,a=0,i=0,$=0,o=t.length-1,c=t[0],f=t[o],u=s.length-1,d=s[0],v=s[u],p,E;for(;l<=o&&a<=u;)if(c==null)c=t[++l];else if(f==null)f=t[--o];else if(d==null)d=s[++a];else if(v==null)v=s[--u];else if(_(c,d,n))L(c,d,n),c=t[++l],d=s[++a];else if(_(f,v,n))L(f,v,n),f=t[--o],v=s[--u];else if(_(c,v,n))L(c,v,n),j(e,c.$elm$,f.$elm$.nextSibling),c=t[++l],v=s[--u];else if(_(f,d,n))L(f,d,n),j(e,f.$elm$,c.$elm$),f=t[--o],d=s[++a];else{for(i=-1,$=l;$<=o;++$)if(t[$]&&t[$].$key$!==null&&t[$].$key$===d.$key$){i=$;break}i>=0?(E=t[i],E.$tag$!==d.$tag$?p=I(t&&t[a],r,i):(L(E,d,n),t[i]=void 0,p=E.$elm$),d=s[++a]):(p=I(t&&t[a],r,a),d=s[++a]),p&&j(c.$elm$.parentNode,p,c.$elm$)}l>o?de(e,s[u+1]==null?null:s[u+1].$elm$,r,s,a,u):a>u&&ve(t,l,o)},_=(e,t,r=!1)=>e.$tag$===t.$tag$?r?!0:e.$key$===t.$key$:!1,L=(e,t,r=!1)=>{const s=t.$elm$=e.$elm$,n=e.$children$,l=t.$children$,a=t.$tag$,i=t.$text$;i===null?(y=a==="svg"?!0:a==="foreignObject"?!1:y,ue(e,t,y),n!==null&&l!==null?Re(s,n,t,l,r):l!==null?(e.$text$!==null&&(s.textContent=""),de(s,null,t,l,0,l.length-1)):n!==null&&ve(n,0,n.length-1),y&&a==="svg"&&(y=!1)):e.$text$!==i&&(s.data=i)},ge=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ge)},j=(e,t,r)=>e==null?void 0:e.insertBefore(t,r),Ze=(e,t,r=!1)=>{const s=e.$hostElement$,n=e.$cmpMeta$,l=e.$vnode$||B(null,null),a=We(t)?t:le(null,null,t);if(G=s.tagName,n.$attrsToReflect$&&(a.$attrs$=a.$attrs$||{},n.$attrsToReflect$.map(([i,$])=>a.$attrs$[$]=s[i])),r&&a.$attrs$)for(const i of Object.keys(a.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(a.$attrs$[i]=s[i]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=l.$elm$=s.shadowRoot||s,O=s["s-sc"],n.$flags$&1,L(l,a,r)},pe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},X=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return pe(e,e.$ancestorComponent$),Ie(()=>Ne(e,t))},Ne=(e,t)=>{const r=e.$hostElement$,s=k("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${r.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 l;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([a,i])=>P(n,a,i)),e.$queuedListeners$=void 0),l=P(n,"componentWillLoad")),s(),Ve(l,()=>tt(e,n,t))},Ve=(e,t)=>et(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),et=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",tt=(e,t,r)=>x(exports,null,function*(){var s;const n=e.$hostElement$,l=k("update",e.$cmpMeta$.$tagName$),a=n["s-rc"];r&&Je(e);const i=k("render",e.$cmpMeta$.$tagName$);st(e,t,n,r),a&&(a.map($=>$()),n["s-rc"]=void 0),i(),l();{const $=(s=n["s-p"])!=null?s:[],o=()=>nt(e);$.length===0?o():(Promise.all($).then(o),e.$flags$|=4,$.length=0)}}),st=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ze(e,t,s)}catch(n){S(n,e.$hostElement$)}return null},nt=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=k("postUpdate",t),n=e.$lazyInstance$,l=e.$ancestorComponent$;P(n,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,ye(r),P(n,"componentDidLoad"),s(),e.$onReadyResolve$(r),l||he()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&W(()=>X(e,!1)),e.$flags$&=-517},he=e=>{ye(m.documentElement),W(()=>oe(q,"appload",{detail:{namespace:be}}))},P=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){S(s)}},ye=e=>{var t;return e.classList.add((t=ke.hydratedSelectorName)!=null?t:"hydrated")},rt=(e,t)=>w(e).$instanceValues$.get(t),at=(e,t,r,s)=>{const n=w(e);if(!n)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 l=n.$hostElement$,a=n.$instanceValues$.get(t),i=n.$flags$,$=n.$lazyInstance$;r=Fe(r,s.$members$[t][0]);const o=Number.isNaN(a)&&Number.isNaN(r),c=r!==a&&!o;if((!(i&8)||a===void 0)&&c&&(n.$instanceValues$.set(t,r),$)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(u=>{try{$[u](r,a,t)}catch(d){S(d,l)}})}(i&18)===2&&X(n,!1)}},me=(e,t,r)=>{var s,n;const l=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const a=Object.entries((s=t.$members$)!=null?s:{});if(a.map(([i,[$]])=>{($&31||r&2&&$&32)&&Object.defineProperty(l,i,{get(){return rt(this,i)},set(o){at(this,i,o,t)},configurable:!0,enumerable:!0})}),r&1){const i=new Map;l.attributeChangedCallback=function($,o,c){g.jmp(()=>{var f;const u=i.get($);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(l.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=w(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==o){const p=d.$lazyInstance$,E=(f=t.$watchers$)==null?void 0:f[$];E==null||E.forEach(h=>{p[h]!=null&&p[h].call(p,c,o,$)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...a.filter(([$,o])=>o[0]&15).map(([$,o])=>{var c;const f=o[1]||$;return i.set(f,$),o[0]&512&&((c=t.$attrsToReflect$)==null||c.push([$,f])),f})]))}}return e},lt=(e,t,r,s)=>x(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,r.$lazyBundleId$){const $=xe(r);if($&&"then"in $){const c=Me();n=yield $,c()}else n=$;if(!n)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(r.$watchers$=n.watchers,me(n,r,2),n.isProxied=!0);const o=k("createInstance",r.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){S(c)}t.$flags$&=-9,t.$flags$|=128,o(),D(t.$lazyInstance$)}else{n=e.constructor;const $=e.localName;customElements.whenDefined($).then(()=>t.$flags$|=128)}if(n&&n.style){let $;typeof n.style=="string"&&($=n.style);const o=ce(r);if(!A.has(o)){const c=k("registerStyles",r.$tagName$);Xe(o,$,!!(r.$flags$&1)),c()}}}const l=t.$ancestorComponent$,a=()=>X(t,!0);l&&l["s-rc"]?l["s-rc"].push(a):a()}),D=e=>{P(e,"connectedCallback")},it=e=>{if(!(g.$flags$&1)){const t=w(e),r=t.$cmpMeta$,s=k("connectedCallback",r.$tagName$);if(t.$flags$&1)Se(e,t,r.$listeners$),t!=null&&t.$lazyInstance$?D(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>D(t.$lazyInstance$));else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){pe(t,t.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([n,[l]])=>{if(l&31&&e.hasOwnProperty(n)){const a=e[n];delete e[n],e[n]=a}}),lt(e,t,r)}s()}},ee=e=>{P(e,"disconnectedCallback")},$t=e=>x(exports,null,function*(){if(!(g.$flags$&1)){const t=w(e);t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?ee(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>ee(t.$lazyInstance$))}}),ot=(e,t={})=>{var r;const s=k(),n=[],l=t.exclude||[],a=q.customElements,i=m.head,$=i.querySelector("meta[charset]"),o=m.createElement("style"),c=[];let f,u=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(p=>{var E;const h={$flags$:p[0],$tagName$:p[1],$members$:p[2],$listeners$:p[3]};h.$flags$&4&&(d=!0),h.$members$=p[2],h.$listeners$=p[3],h.$attrsToReflect$=[],h.$watchers$=(E=p[4])!=null?E:{};const T=h.$tagName$,Ee=class extends HTMLElement{constructor(b){if(super(b),this.hasRegisteredEventListeners=!1,b=this,Te(b,h),h.$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 ${h.$tagName$}! Mode is set to ${b.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const b=w(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Se(this,b,h.$listeners$)),f&&(clearTimeout(f),f=null),u?c.push(this):g.jmp(()=>it(this))}disconnectedCallback(){g.jmp(()=>$t(this))}componentOnReady(){return w(this).$onReadyPromise$}};h.$lazyBundleId$=v[0],!l.includes(T)&&!a.get(T)&&(n.push(T),a.define(T,me(Ee,h,1)))})}),n.length>0&&(d&&(o.textContent+=te),o.textContent+=n.sort()+_e,o.innerHTML.length)){o.setAttribute("data-styles","");const v=(r=g.$nonce$)!=null?r:re(m);v!=null&&o.setAttribute("nonce",v),i.insertBefore(o,$?$.nextSibling:i.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>f=setTimeout(he,30)),s()},Se=(e,t,r,s)=>{r&&r.map(([n,l,a])=>{const i=ft(e,n),$=ct(t,a),o=ut(n);g.ael(i,l,$,o),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>g.rel(i,l,$,o))})},ct=(e,t)=>r=>{var s;try{e.$flags$&256?(s=e.$lazyInstance$)==null||s[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(n){S(n)}},ft=(e,t)=>t&4?m:t&16?m.body:e,ut=e=>Oe?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;exports.Host=ie;exports.bootstrapLazy=ot;exports.createEvent=Ge;exports.getElement=$e;exports.h=le;exports.promiseResolve=se;exports.registerInstance=Pe;
1
+ "use strict";var x=(e,t,r)=>new Promise((s,n)=>{var l=$=>{try{i(r.next($))}catch(o){n(o)}},a=$=>{try{i(r.throw($))}catch(o){n(o)}},i=$=>$.done?s($.value):Promise.resolve($.value).then(l,a);i((r=r.apply(e,t)).next())});const be="player-change-password-gm2",ke={hydratedSelectorName:"hydrated"};var we=Object.defineProperty,Le=(e,t)=>{for(var r in t)we(e,r,{get:t[r],enumerable:!0})},M=new WeakMap,w=e=>M.get(e),Pe=(e,t)=>M.set(t.$lazyInstance$=e,t),Te=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],M.set(e,r)},Y=(e,t)=>t in e,S=(e,t)=>(0,console.error)(e,t),z=new Map,xe=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const l=z.get(n);if(l)return l[s];{const a=i=>(z.set(n,i),i[s]);switch(n){case"password-input_2":return Promise.resolve().then(()=>require("./password-input_2-D-c-s1Y6.cjs")).then(a,S);case"checkbox-group-input_9":return Promise.resolve().then(()=>require("./checkbox-group-input_9-CprubYZ6.cjs")).then(a,S);case"general-input":return Promise.resolve().then(()=>require("./general-input-BGhFzqtE.cjs")).then(a,S);case"toggle-checkbox-input":return Promise.resolve().then(()=>require("./toggle-checkbox-input-Vi6Sls8a.cjs")).then(a,S)}}return import(`./${n}.entry.js`).then(a=>(z.set(n,a),a[s]),S)},A=new Map,_e="{visibility:hidden}.hydrated{visibility:inherit}",te="slot-fb{display:contents}slot-fb[hidden]{display:none}",q=typeof window!="undefined"?window:{},m=q.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},Oe=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),se=e=>Promise.resolve(e),je=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),H=!1,J=[],ne=[],Ae=(e,t)=>r=>{e.push(r),H||(H=!0,g.$flags$&4?W(U):g.raf(U))},K=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){S(r)}e.length=0},U=()=>{K(J),K(ne),(H=J.length>0)&&g.raf(U)},W=e=>se().then(e),Ie=Ae(ne),Q={},qe="http://www.w3.org/2000/svg",ze="http://www.w3.org/1999/xhtml",He=e=>e!=null,F=e=>(e=typeof e,e==="object"||e==="function");function re(e){var t,r,s;return(s=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?s:void 0}var Ue={};Le(Ue,{err:()=>ae,map:()=>Ce,ok:()=>C,unwrap:()=>Be,unwrapErr:()=>De});var C=e=>({isOk:!0,isErr:!1,value:e}),ae=e=>({isOk:!1,isErr:!0,value:e});function Ce(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(s=>C(s)):C(r)}if(e.isErr){const r=e.value;return ae(r)}throw"should never get here"}var Be=e=>{if(e.isOk)return e.value;throw e.value},De=e=>{if(e.isErr)return e.value;throw e.value},k=(e,t="")=>()=>{},Me=(e,t)=>()=>{},le=(e,t,...r)=>{let s=null,n=null,l=!1,a=!1;const i=[],$=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?$(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!F(s))&&(s=String(s)),l&&a?i[i.length-1].$text$+=s:i.push(l?B(null,s):s),a=l)};if($(r),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const o=B(e,null);return o.$attrs$=t,i.length>0&&(o.$children$=i),o.$key$=n,o},B=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},ie={},We=e=>e&&e.$tag$===ie,Fe=(e,t)=>e!=null&&!F(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,$e=e=>w(e).$hostElement$,Ge=(e,t,r)=>{const s=$e(e);return{emit:n=>oe(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},oe=(e,t,r)=>{const s=g.ce(t,r);return e.dispatchEvent(s),s},R=new WeakMap,Xe=(e,t,r)=>{let s=A.get(e);je&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,A.set(e,s)},Ye=(e,t,r)=>{var s;const n=ce(t),l=A.get(n);if(e=e.nodeType===11?e:m,l)if(typeof l=="string"){e=e.head||e;let a=R.get(e),i;if(a||R.set(e,a=new Set),!a.has(n)){{i=m.createElement("style"),i.innerHTML=l;const $=(s=g.$nonce$)!=null?s:re(m);$!=null&&i.setAttribute("nonce",$),e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=te),a&&a.add(n)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n},Je=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,n=k("attachStyles",t.$tagName$),l=Ye(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=l,r.classList.add(l+"-h")),n()},ce=(e,t)=>"sc-"+e.$tagName$,Z=(e,t,r,s,n,l)=>{if(r!==s){let a=Y(e,t),i=t.toLowerCase();if(t==="class"){const $=e.classList,o=N(r),c=N(s);$.remove(...o.filter(f=>f&&!c.includes(f))),$.add(...c.filter(f=>f&&!o.includes(f)))}else if(t!=="key")if(t==="ref")s&&s(e);else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):Y(q,i)?t=i.slice(2):t=i[2]+t.slice(3),r||s){const $=t.endsWith(fe);t=t.replace(Qe,""),r&&g.rel(e,t,r,$),s&&g.ael(e,t,s,$)}}else{const $=F(s);if((a||$&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=s;else{const o=s==null?"":s;t==="list"?a=!1:(r==null||e[t]!=o)&&(e[t]=o)}}catch(o){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!a||l&4||n)&&!$&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Ke=/\s/,N=e=>e?e.split(Ke):[],fe="Capture",Qe=new RegExp(fe+"$"),ue=(e,t,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||Q,l=t.$attrs$||Q;for(const a of V(Object.keys(n)))a in l||Z(s,a,n[a],void 0,r,t.$flags$);for(const a of V(Object.keys(l)))Z(s,a,n[a],l[a],r,t.$flags$)};function V(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var O,G,y=!1,I=(e,t,r,s)=>{const n=t.$children$[r];let l=0,a,i;if(n.$text$!==null)a=n.$elm$=m.createTextNode(n.$text$);else{if(y||(y=n.$tag$==="svg"),a=n.$elm$=m.createElementNS(y?qe:ze,n.$tag$),y&&n.$tag$==="foreignObject"&&(y=!1),ue(null,n,y),He(O)&&a["s-si"]!==O&&a.classList.add(a["s-si"]=O),n.$children$)for(l=0;l<n.$children$.length;++l)i=I(e,n,l),i&&a.appendChild(i);n.$tag$==="svg"?y=!1:a.tagName==="foreignObject"&&(y=!0)}return a["s-hn"]=G,a},de=(e,t,r,s,n,l)=>{let a=e,i;for(a.shadowRoot&&a.tagName===G&&(a=a.shadowRoot);n<=l;++n)s[n]&&(i=I(null,r,n),i&&(s[n].$elm$=i,j(a,i,t)))},ve=(e,t,r)=>{for(let s=t;s<=r;++s){const n=e[s];if(n){const l=n.$elm$;ge(n),l&&l.remove()}}},Re=(e,t,r,s,n=!1)=>{let l=0,a=0,i=0,$=0,o=t.length-1,c=t[0],f=t[o],u=s.length-1,d=s[0],v=s[u],p,E;for(;l<=o&&a<=u;)if(c==null)c=t[++l];else if(f==null)f=t[--o];else if(d==null)d=s[++a];else if(v==null)v=s[--u];else if(_(c,d,n))L(c,d,n),c=t[++l],d=s[++a];else if(_(f,v,n))L(f,v,n),f=t[--o],v=s[--u];else if(_(c,v,n))L(c,v,n),j(e,c.$elm$,f.$elm$.nextSibling),c=t[++l],v=s[--u];else if(_(f,d,n))L(f,d,n),j(e,f.$elm$,c.$elm$),f=t[--o],d=s[++a];else{for(i=-1,$=l;$<=o;++$)if(t[$]&&t[$].$key$!==null&&t[$].$key$===d.$key$){i=$;break}i>=0?(E=t[i],E.$tag$!==d.$tag$?p=I(t&&t[a],r,i):(L(E,d,n),t[i]=void 0,p=E.$elm$),d=s[++a]):(p=I(t&&t[a],r,a),d=s[++a]),p&&j(c.$elm$.parentNode,p,c.$elm$)}l>o?de(e,s[u+1]==null?null:s[u+1].$elm$,r,s,a,u):a>u&&ve(t,l,o)},_=(e,t,r=!1)=>e.$tag$===t.$tag$?r?!0:e.$key$===t.$key$:!1,L=(e,t,r=!1)=>{const s=t.$elm$=e.$elm$,n=e.$children$,l=t.$children$,a=t.$tag$,i=t.$text$;i===null?(y=a==="svg"?!0:a==="foreignObject"?!1:y,ue(e,t,y),n!==null&&l!==null?Re(s,n,t,l,r):l!==null?(e.$text$!==null&&(s.textContent=""),de(s,null,t,l,0,l.length-1)):n!==null&&ve(n,0,n.length-1),y&&a==="svg"&&(y=!1)):e.$text$!==i&&(s.data=i)},ge=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ge)},j=(e,t,r)=>e==null?void 0:e.insertBefore(t,r),Ze=(e,t,r=!1)=>{const s=e.$hostElement$,n=e.$cmpMeta$,l=e.$vnode$||B(null,null),a=We(t)?t:le(null,null,t);if(G=s.tagName,n.$attrsToReflect$&&(a.$attrs$=a.$attrs$||{},n.$attrsToReflect$.map(([i,$])=>a.$attrs$[$]=s[i])),r&&a.$attrs$)for(const i of Object.keys(a.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(a.$attrs$[i]=s[i]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=l.$elm$=s.shadowRoot||s,O=s["s-sc"],n.$flags$&1,L(l,a,r)},pe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},X=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return pe(e,e.$ancestorComponent$),Ie(()=>Ne(e,t))},Ne=(e,t)=>{const r=e.$hostElement$,s=k("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${r.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 l;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([a,i])=>P(n,a,i)),e.$queuedListeners$=void 0),l=P(n,"componentWillLoad")),s(),Ve(l,()=>tt(e,n,t))},Ve=(e,t)=>et(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),et=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",tt=(e,t,r)=>x(exports,null,function*(){var s;const n=e.$hostElement$,l=k("update",e.$cmpMeta$.$tagName$),a=n["s-rc"];r&&Je(e);const i=k("render",e.$cmpMeta$.$tagName$);st(e,t,n,r),a&&(a.map($=>$()),n["s-rc"]=void 0),i(),l();{const $=(s=n["s-p"])!=null?s:[],o=()=>nt(e);$.length===0?o():(Promise.all($).then(o),e.$flags$|=4,$.length=0)}}),st=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ze(e,t,s)}catch(n){S(n,e.$hostElement$)}return null},nt=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=k("postUpdate",t),n=e.$lazyInstance$,l=e.$ancestorComponent$;P(n,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,ye(r),P(n,"componentDidLoad"),s(),e.$onReadyResolve$(r),l||he()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&W(()=>X(e,!1)),e.$flags$&=-517},he=e=>{ye(m.documentElement),W(()=>oe(q,"appload",{detail:{namespace:be}}))},P=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){S(s)}},ye=e=>{var t;return e.classList.add((t=ke.hydratedSelectorName)!=null?t:"hydrated")},rt=(e,t)=>w(e).$instanceValues$.get(t),at=(e,t,r,s)=>{const n=w(e);if(!n)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 l=n.$hostElement$,a=n.$instanceValues$.get(t),i=n.$flags$,$=n.$lazyInstance$;r=Fe(r,s.$members$[t][0]);const o=Number.isNaN(a)&&Number.isNaN(r),c=r!==a&&!o;if((!(i&8)||a===void 0)&&c&&(n.$instanceValues$.set(t,r),$)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(u=>{try{$[u](r,a,t)}catch(d){S(d,l)}})}(i&18)===2&&X(n,!1)}},me=(e,t,r)=>{var s,n;const l=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const a=Object.entries((s=t.$members$)!=null?s:{});if(a.map(([i,[$]])=>{($&31||r&2&&$&32)&&Object.defineProperty(l,i,{get(){return rt(this,i)},set(o){at(this,i,o,t)},configurable:!0,enumerable:!0})}),r&1){const i=new Map;l.attributeChangedCallback=function($,o,c){g.jmp(()=>{var f;const u=i.get($);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(l.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=w(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==o){const p=d.$lazyInstance$,E=(f=t.$watchers$)==null?void 0:f[$];E==null||E.forEach(h=>{p[h]!=null&&p[h].call(p,c,o,$)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...a.filter(([$,o])=>o[0]&15).map(([$,o])=>{var c;const f=o[1]||$;return i.set(f,$),o[0]&512&&((c=t.$attrsToReflect$)==null||c.push([$,f])),f})]))}}return e},lt=(e,t,r,s)=>x(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,r.$lazyBundleId$){const $=xe(r);if($&&"then"in $){const c=Me();n=yield $,c()}else n=$;if(!n)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(r.$watchers$=n.watchers,me(n,r,2),n.isProxied=!0);const o=k("createInstance",r.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){S(c)}t.$flags$&=-9,t.$flags$|=128,o(),D(t.$lazyInstance$)}else{n=e.constructor;const $=e.localName;customElements.whenDefined($).then(()=>t.$flags$|=128)}if(n&&n.style){let $;typeof n.style=="string"&&($=n.style);const o=ce(r);if(!A.has(o)){const c=k("registerStyles",r.$tagName$);Xe(o,$,!!(r.$flags$&1)),c()}}}const l=t.$ancestorComponent$,a=()=>X(t,!0);l&&l["s-rc"]?l["s-rc"].push(a):a()}),D=e=>{P(e,"connectedCallback")},it=e=>{if(!(g.$flags$&1)){const t=w(e),r=t.$cmpMeta$,s=k("connectedCallback",r.$tagName$);if(t.$flags$&1)Se(e,t,r.$listeners$),t!=null&&t.$lazyInstance$?D(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>D(t.$lazyInstance$));else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){pe(t,t.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([n,[l]])=>{if(l&31&&e.hasOwnProperty(n)){const a=e[n];delete e[n],e[n]=a}}),lt(e,t,r)}s()}},ee=e=>{P(e,"disconnectedCallback")},$t=e=>x(exports,null,function*(){if(!(g.$flags$&1)){const t=w(e);t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?ee(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>ee(t.$lazyInstance$))}}),ot=(e,t={})=>{var r;const s=k(),n=[],l=t.exclude||[],a=q.customElements,i=m.head,$=i.querySelector("meta[charset]"),o=m.createElement("style"),c=[];let f,u=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(p=>{var E;const h={$flags$:p[0],$tagName$:p[1],$members$:p[2],$listeners$:p[3]};h.$flags$&4&&(d=!0),h.$members$=p[2],h.$listeners$=p[3],h.$attrsToReflect$=[],h.$watchers$=(E=p[4])!=null?E:{};const T=h.$tagName$,Ee=class extends HTMLElement{constructor(b){if(super(b),this.hasRegisteredEventListeners=!1,b=this,Te(b,h),h.$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 ${h.$tagName$}! Mode is set to ${b.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const b=w(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Se(this,b,h.$listeners$)),f&&(clearTimeout(f),f=null),u?c.push(this):g.jmp(()=>it(this))}disconnectedCallback(){g.jmp(()=>$t(this))}componentOnReady(){return w(this).$onReadyPromise$}};h.$lazyBundleId$=v[0],!l.includes(T)&&!a.get(T)&&(n.push(T),a.define(T,me(Ee,h,1)))})}),n.length>0&&(d&&(o.textContent+=te),o.textContent+=n.sort()+_e,o.innerHTML.length)){o.setAttribute("data-styles","");const v=(r=g.$nonce$)!=null?r:re(m);v!=null&&o.setAttribute("nonce",v),i.insertBefore(o,$?$.nextSibling:i.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>f=setTimeout(he,30)),s()},Se=(e,t,r,s)=>{r&&r.map(([n,l,a])=>{const i=ft(e,n),$=ct(t,a),o=ut(n);g.ael(i,l,$,o),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>g.rel(i,l,$,o))})},ct=(e,t)=>r=>{var s;try{e.$flags$&256?(s=e.$lazyInstance$)==null||s[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(n){S(n)}},ft=(e,t)=>t&4?m:t&16?m.body:e,ut=e=>Oe?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;exports.Host=ie;exports.bootstrapLazy=ot;exports.createEvent=Ge;exports.getElement=$e;exports.h=le;exports.promiseResolve=se;exports.registerInstance=Pe;
@@ -1,7 +1,7 @@
1
- import { r as p, c as d, h as i, g as h } from "./index-9cd44522-JnusBvN9.js";
1
+ import { r as p, c as d, h as i, g as h } from "./index-9cd44522-CmU71Sj9.js";
2
2
  import { t as n } from "./locale-ioQf6ZrW.js";
3
3
  import { t as u } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
- import { P as x } from "./player-change-password-gm2-5cb5c6c1-BKCmd_cs.js";
4
+ import { P as x } from "./player-change-password-gm2-5cb5c6c1-B-k1s7vM.js";
5
5
  const c = `*,
6
6
  *::before,
7
7
  *::after {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-9cd44522-CrgsoiAp.cjs"),n=require("./locale-BB2iZ4t0.cjs"),p=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),h=require("./player-change-password-gm2-5cb5c6c1-BUgDtida.cjs"),u=`*,
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-9cd44522-DoGQFmJb.cjs"),n=require("./locale-BB2iZ4t0.cjs"),p=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),h=require("./player-change-password-gm2-5cb5c6c1-B10TDWX3.cjs"),u=`*,
2
2
  *::before,
3
3
  *::after {
4
4
  padding: 0;
@@ -1,7 +1,7 @@
1
- import { r as p, c as d, h as i, g as h } from "./index-9cd44522-DxFae1MG.js";
1
+ import { r as p, c as d, h as i, g as h } from "./index-9cd44522-BicusHxm.js";
2
2
  import { t as n } from "./locale-ioQf6ZrW.js";
3
3
  import { t as u } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
- import { P as x } from "./player-change-password-gm2-5cb5c6c1-6TVYOtMo.js";
4
+ import { P as x } from "./player-change-password-gm2-5cb5c6c1-BXXs93I9.js";
5
5
  const c = `*,
6
6
  *::before,
7
7
  *::after {
@@ -1,4 +1,4 @@
1
- import { r as w, h as i } from "./index-9cd44522-JnusBvN9.js";
1
+ import { r as w, h as i } from "./index-9cd44522-CmU71Sj9.js";
2
2
  const p = "en", h = {
3
3
  en: {
4
4
  title: "Change Password",
@@ -1 +1 @@
1
- "use strict";const i=require("./index-9cd44522-CrgsoiAp.cjs"),p="en",h={en:{title:"Change Password",btnSubmit:"Change Password",passwordPlaceholderText:"Please enter your password",newPasswordPlaceholderText:"Please enter your new password",confirmPasswordPlaceholderText:"Please confirm your new password",passwordDisplayText:"Current Password",newPasswordDisplayText:"New Password",confirmPasswordDisplayText:"Confirm Password",successMsg:"Password changed successfully",errorMsgGeneric:"There was an error when attempting to change your password","gm.pms.password_not_verified_unauthorized":"The current password you have entered is incorrect","gm.pms.password_policy_failed":"Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change."},fr:{title:"Changer le mot de passe",btnSubmit:"Changer le mot de passe",passwordPlaceholderText:"Veuillez entrer votre mot de passe",newPasswordPlaceholderText:"Veuillez entrer votre nouveau mot de passe",confirmPasswordPlaceholderText:"Veuillez confirmer votre nouveau mot de passe",passwordDisplayText:"Mot de passe actuel",newPasswordDisplayText:"Nouveau mot de passe",confirmPasswordDisplayText:"Confirmer le mot de passe",successMsg:"Mot de passe changé avec succès",errorMsgGeneric:"Une erreur est survenue lors de la tentative de changement de mot de passe","gm.pms.password_not_verified_unauthorized":"Le mot de passe actuel que vous avez entré est incorrect","gm.pms.password_policy_failed":"Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement."},ro:{title:"Schimbă Parola",btnSubmit:"Schimbă Parola",passwordPlaceholderText:"Vă rugăm să introduceți parola",newPasswordPlaceholderText:"Vă rugăm să introduceți noua parolă",confirmPasswordPlaceholderText:"Vă rugăm să confirmați noua parolă",passwordDisplayText:"Parolă Curentă",newPasswordDisplayText:"Parolă Nouă",confirmPasswordDisplayText:"Confirmă Parola",successMsg:"Parola a fost schimbată cu succes",errorMsgGeneric:"A apărut o eroare la încercarea de schimbare a parolei","gm.pms.password_not_verified_unauthorized":"Parola curentă introdusă este incorectă","gm.pms.password_policy_failed":"Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare."},es:{title:"Cambiar Contraseña",btnSubmit:"Cambiar Contraseña",passwordPlaceholderText:"Por favor, introduce tu contraseña",newPasswordPlaceholderText:"Por favor, introduce tu nueva contraseña",confirmPasswordPlaceholderText:"Por favor, confirma tu nueva contraseña",passwordDisplayText:"Contraseña Actual",newPasswordDisplayText:"Nueva Contraseña",confirmPasswordDisplayText:"Confirmar Contraseña",successMsg:"Contraseña cambiada con éxito",errorMsgGeneric:"Hubo un error al intentar cambiar tu contraseña","gm.pms.password_not_verified_unauthorized":"La contraseña actual que has introducido es incorrecta","gm.pms.password_policy_failed":"La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio."},pt:{title:"Alterar Senha",btnSubmit:"Alterar Senha",passwordPlaceholderText:"Por favor, insira sua senha",newPasswordPlaceholderText:"Por favor, insira sua nova senha",confirmPasswordPlaceholderText:"Por favor, confirme sua nova senha",passwordDisplayText:"Senha Atual",newPasswordDisplayText:"Nova Senha",confirmPasswordDisplayText:"Confirmar Senha",successMsg:"Senha alterada com sucesso",errorMsgGeneric:"Ocorreu um erro ao tentar alterar sua senha","gm.pms.password_not_verified_unauthorized":"A senha atual que você inseriu está incorreta","gm.pms.password_policy_failed":"A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração."},hr:{title:"Promijeni lozinku",btnSubmit:"Promijeni lozinku",passwordPlaceholderText:"Unesite svoju lozinku",newPasswordPlaceholderText:"Unesite novu lozinku",confirmPasswordPlaceholderText:"Potvrdite novu lozinku",passwordDisplayText:"Trenutna lozinka",newPasswordDisplayText:"Nova lozinka",confirmPasswordDisplayText:"Potvrdite lozinku",successMsg:"Lozinka je uspješno promijenjena",errorMsgGeneric:"Došlo je do pogreške prilikom pokušaja promjene lozinke","gm.pms.password_not_verified_unauthorized":"Unesena trenutna lozinka nije ispravna","gm.pms.password_policy_failed":"Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene."},tr:{title:"Şifreyi Değiştir",btnSubmit:"Şifreyi Değiştir",passwordPlaceholderText:"Lütfen şifrenizi girin",newPasswordPlaceholderText:"Lütfen yeni şifrenizi girin",confirmPasswordPlaceholderText:"Lütfen yeni şifrenizi onaylayın",passwordDisplayText:"Mevcut Şifre",newPasswordDisplayText:"Yeni Şifre",confirmPasswordDisplayText:"Şifreyi Onaylayın",successMsg:"Şifre başarıyla değiştirildi",errorMsgGeneric:"Şifrenizi değiştirirken bir hata oluştu","gm.pms.password_not_verified_unauthorized":"Girdiğiniz mevcut şifre yanlış","gm.pms.password_policy_failed":"Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez."},hu:{title:"Jelszó megváltoztatása",btnSubmit:"Jelszó megváltoztatása",passwordPlaceholderText:"Kérjük, adja meg a jelszavát",newPasswordPlaceholderText:"Kérjük, adja meg az új jelszavát",confirmPasswordPlaceholderText:"Kérjük, erősítse meg az új jelszavát",passwordDisplayText:"Jelenlegi jelszó",newPasswordDisplayText:"Új jelszó",confirmPasswordDisplayText:"Jelszó megerősítése",successMsg:"A jelszó sikeresen megváltozott",errorMsgGeneric:"Hiba történt a jelszó megváltoztatásakor","gm.pms.password_not_verified_unauthorized":"A megadott jelenlegi jelszó helytelen","gm.pms.password_policy_failed":"A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta."}},g=e=>new Promise(s=>{fetch(e).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{for(let r in a[t])h[t][r]=a[t][r]}),s(!0)})}),o=(e,s,a)=>{const t=s;let r=h[t!==void 0?t:p][e];if(a!==void 0)for(const[l,n]of Object.entries(a.values)){const w=new RegExp(`{${l}}`,"g");r=r.replace(w,n)}return r};function d(){const e=navigator.userAgent.toLowerCase(),s=screen.availWidth,a=screen.availHeight;if(e.includes("iphone"))return"mobile";if(e.includes("android")){if(a>s&&s<800)return"mobile";if(s>a&&a<800)return"tablet"}return"desktop"}function c(e,s){if(e){const a=document.createElement("style");a.innerHTML=s,e.appendChild(a)}}function u(e,s){const a=new URL(s);fetch(a.href).then(t=>t.text()).then(t=>{const r=document.createElement("style");r.innerHTML=t,e&&e.appendChild(r)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function f(e,s,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(s,r=>{t.innerHTML=r,e&&e.appendChild(t)})}}const P=":host{display:block}.PlayerChangePassword{font-family:inherit;width:100%;height:100%;container-type:inline-size}.PlayerChangePassword .Wrapper{display:flex;justify-content:center;align-items:center}.PlayerChangePassword .Title{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--color-primary, #22B04E);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerChangePassword .TitleMobile{font-size:var(--emw--font-size-x-large, 20px);color:var(--emw--color-primary, #22B04E)}.PlayerChangePassword svg{fill:var(--emw--color-primary, #22B04E)}.PlayerChangePassword .ButtonReturn{font-family:inherit;display:inline-flex;align-items:center;gap:10px}.PlayerChangePassword .Form{display:grid;grid-template-columns:repeat(1, 1fr);gap:40px;justify-items:stretch;align-content:flex-start;overflow:auto;width:100%;height:100%}.PlayerChangePassword .Form .FieldsSection{display:flex;flex-direction:column;gap:30px}.PlayerChangePassword .Form .ButtonsSection{display:flex;flex-direction:column;justify-content:space-around;align-items:center;position:relative}.PlayerChangePassword .Button{font-family:inherit;border-radius:var(--emw--button-border-radius, var(--emw--border-radius-large, 50px));background:var(--emw--button-background-color, var(--emw--color-primary, #22B04E));border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #22B04E));color:var(--emw--button-text-color, var(--emw--color-white, #FFFFFF));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-normal, 400);height:50px;width:100%;text-transform:uppercase;cursor:pointer}.PlayerChangePassword .Button:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #828282));pointer-events:none;cursor:not-allowed}",y=P,m=class{constructor(e){i.registerInstance(this,e),this.currentPasswordValue="",this.newPasswordValue="",this.confirmPasswordValue="",this.isCurrentPasswordValid=!1,this.isNewPasswordValid=!1,this.isConfirmPasswordValid=!1,this.errorMsg="",this.currentPasswordValidationSchema={mandatory:!0,custom:[]},this.newPasswordValidationSchema={mandatory:!0,custom:[]},this.confirmPasswordValidationSchema={mandatory:!0,custom:[]},this.initValidationSchemas=()=>{this.policy&&(this.newPasswordValidationSchema.custom=this.policy.customValidationRules,this.newPasswordValidationSchema.maxLength=this.policy.maximumPasswordLength,this.newPasswordValidationSchema.minLength=this.policy.minimumPasswordLength)},this.setErrorMsg=s=>{switch(s){case"gm.pms.password_policy_failed":const a={forbiddenLastPasswordsCount:this.policy.forbiddenLastPasswordsCount,minimumPasswordAgeLimitHours:this.policy.minimumPasswordAgeLimitHours,hours:this.policy.minimumPasswordAgeLimitHours>1?"hours":"hour"};this.errorMsg=o(s,this.language,{values:a});break;case"gm.pms.password_not_verified_unauthorized":this.errorMsg=o(s,this.language);break;default:this.errorMsg=o("errorMsgGeneric",this.language)}},this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.getPolicy=()=>{const s=new URL("/api/v1/players/password-management/password",this.endpoint),a=new Headers;a.append("Accept","text/plain");const t={method:"GET",headers:a};fetch(s.href,t).then(r=>r.status===200&&r.json()).then(r=>this.policy=r).catch(r=>console.error(r))},this.submitNewPassword=s=>{if(s.preventDefault(),this.isBtnSubmitEnabled){const a=new URL("/api/v1/players/password-management/password",this.endpoint),t=new Headers;t.append("accept","text/plain"),t.append("Content-Type","application/json-patch+json");const r=JSON.stringify({token:this.forgotMode==="true"?this.token:this.session,oldPassword:this.currentPasswordValue,newPassword:this.confirmPasswordValue}),l={method:"PUT",headers:t,body:r};fetch(a.href,l).then(n=>n.json()).then(n=>{n.errorCode===null&&n.message==="pms.password.update.success"?(window.postMessage({type:"PasswordChangedSuccessfully"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("successMsg",this.language)}},window.location.href)):(this.setErrorMsg(n.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMsg}},window.location.href))}).catch(n=>console.error(n))}},this.language="en",this.endpoint="",this.session="",this.token="",this.forgotMode="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.isBtnSubmitEnabled=!1,this.isMobile=d()==="mobile"||d()==="tablet"}handleClientStylingChange(e,s){e!=s&&c(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,s){e!=s&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}sendValidityStateHandler(e){switch(this.isBtnSubmitEnabled=!1,e.detail.name){case"password":this.isCurrentPasswordValid=e.detail.valid;break;case"newPassword":this.isNewPasswordValid=e.detail.valid;break;case"newPasswordDuplicate":this.isConfirmPasswordValid=e.detail.valid;break}(this.forgotMode==="true"||this.isCurrentPasswordValid)&&this.isNewPasswordValid&&this.isConfirmPasswordValid&&(this.isBtnSubmitEnabled=!0)}sendInputValueHandler(e){switch(e.detail.name){case"password":this.currentPasswordValue=e.detail.value;break;case"newPassword":this.newPasswordValue=e.detail.value;break;case"newPasswordDuplicate":this.confirmPasswordValue=e.detail.value;break}}componentWillLoad(){if(this.getPolicy(),this.initValidationSchemas(),this.translationUrl)return g(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?f(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&c(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i.h("div",{key:"9a8f54fe541ef6409f7cc21bb8431c850d031830",class:"PlayerChangePassword",ref:e=>this.stylingContainer=e},i.h("form",{key:"8a3aaa6a96b16a26477657f0216a7a0a2e2e0869",class:"Form"},this.isMobile?i.h("div",{class:"ButtonReturn",onClick:this.toggleScreen},i.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},i.h("g",{transform:"translate(-20 -158)"},i.h("g",{transform:"translate(20 158)"},i.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)"})))),i.h("h2",{class:"TitleMobile"},o("title",this.language))):i.h("h2",{class:"Title"},o("title",this.language)),i.h("section",{key:"47a7214266e06ef9f8ded9f86f76e15ce4f6fc3a",class:"FieldsSection"},this.forgotMode==="false"&&i.h("password-input",{key:"41b721a65332283a3699ab8e838dadb8d73913fa",language:this.language,name:"password","display-name":o("passwordDisplayText",this.language),placeholder:o("passwordPlaceholderText",this.language),validation:this.currentPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"eb7c697eb1900ed580ff17a4cd56819993599924",language:this.language,name:"newPassword","display-name":o("newPasswordDisplayText",this.language),placeholder:o("newPasswordPlaceholderText",this.language),validation:this.newPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"4b12c17b882fe8117f9c49ad296c5918198e18f0",language:this.language,name:"newPasswordDuplicate","display-name":o("confirmPasswordDisplayText",this.language),placeholder:o("confirmPasswordPlaceholderText",this.language),validation:this.confirmPasswordValidationSchema,"is-duplicate-input":!0,clientStyling:this.clientStyling,"mb-source":this.mbSource})),i.h("section",{key:"a0cd6777b46ac8e4ba5eef6c42f77531a9c7ee0b",class:"ButtonsSection"},i.h("button",{key:"d21c481e07a7c7762bf0fa7acbb4f1d68ac92d4d",class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitNewPassword},o("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};m.style=y;exports.PlayerChangePasswordGm2=m;
1
+ "use strict";const i=require("./index-9cd44522-DoGQFmJb.cjs"),p="en",h={en:{title:"Change Password",btnSubmit:"Change Password",passwordPlaceholderText:"Please enter your password",newPasswordPlaceholderText:"Please enter your new password",confirmPasswordPlaceholderText:"Please confirm your new password",passwordDisplayText:"Current Password",newPasswordDisplayText:"New Password",confirmPasswordDisplayText:"Confirm Password",successMsg:"Password changed successfully",errorMsgGeneric:"There was an error when attempting to change your password","gm.pms.password_not_verified_unauthorized":"The current password you have entered is incorrect","gm.pms.password_policy_failed":"Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change."},fr:{title:"Changer le mot de passe",btnSubmit:"Changer le mot de passe",passwordPlaceholderText:"Veuillez entrer votre mot de passe",newPasswordPlaceholderText:"Veuillez entrer votre nouveau mot de passe",confirmPasswordPlaceholderText:"Veuillez confirmer votre nouveau mot de passe",passwordDisplayText:"Mot de passe actuel",newPasswordDisplayText:"Nouveau mot de passe",confirmPasswordDisplayText:"Confirmer le mot de passe",successMsg:"Mot de passe changé avec succès",errorMsgGeneric:"Une erreur est survenue lors de la tentative de changement de mot de passe","gm.pms.password_not_verified_unauthorized":"Le mot de passe actuel que vous avez entré est incorrect","gm.pms.password_policy_failed":"Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement."},ro:{title:"Schimbă Parola",btnSubmit:"Schimbă Parola",passwordPlaceholderText:"Vă rugăm să introduceți parola",newPasswordPlaceholderText:"Vă rugăm să introduceți noua parolă",confirmPasswordPlaceholderText:"Vă rugăm să confirmați noua parolă",passwordDisplayText:"Parolă Curentă",newPasswordDisplayText:"Parolă Nouă",confirmPasswordDisplayText:"Confirmă Parola",successMsg:"Parola a fost schimbată cu succes",errorMsgGeneric:"A apărut o eroare la încercarea de schimbare a parolei","gm.pms.password_not_verified_unauthorized":"Parola curentă introdusă este incorectă","gm.pms.password_policy_failed":"Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare."},es:{title:"Cambiar Contraseña",btnSubmit:"Cambiar Contraseña",passwordPlaceholderText:"Por favor, introduce tu contraseña",newPasswordPlaceholderText:"Por favor, introduce tu nueva contraseña",confirmPasswordPlaceholderText:"Por favor, confirma tu nueva contraseña",passwordDisplayText:"Contraseña Actual",newPasswordDisplayText:"Nueva Contraseña",confirmPasswordDisplayText:"Confirmar Contraseña",successMsg:"Contraseña cambiada con éxito",errorMsgGeneric:"Hubo un error al intentar cambiar tu contraseña","gm.pms.password_not_verified_unauthorized":"La contraseña actual que has introducido es incorrecta","gm.pms.password_policy_failed":"La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio."},pt:{title:"Alterar Senha",btnSubmit:"Alterar Senha",passwordPlaceholderText:"Por favor, insira sua senha",newPasswordPlaceholderText:"Por favor, insira sua nova senha",confirmPasswordPlaceholderText:"Por favor, confirme sua nova senha",passwordDisplayText:"Senha Atual",newPasswordDisplayText:"Nova Senha",confirmPasswordDisplayText:"Confirmar Senha",successMsg:"Senha alterada com sucesso",errorMsgGeneric:"Ocorreu um erro ao tentar alterar sua senha","gm.pms.password_not_verified_unauthorized":"A senha atual que você inseriu está incorreta","gm.pms.password_policy_failed":"A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração."},hr:{title:"Promijeni lozinku",btnSubmit:"Promijeni lozinku",passwordPlaceholderText:"Unesite svoju lozinku",newPasswordPlaceholderText:"Unesite novu lozinku",confirmPasswordPlaceholderText:"Potvrdite novu lozinku",passwordDisplayText:"Trenutna lozinka",newPasswordDisplayText:"Nova lozinka",confirmPasswordDisplayText:"Potvrdite lozinku",successMsg:"Lozinka je uspješno promijenjena",errorMsgGeneric:"Došlo je do pogreške prilikom pokušaja promjene lozinke","gm.pms.password_not_verified_unauthorized":"Unesena trenutna lozinka nije ispravna","gm.pms.password_policy_failed":"Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene."},tr:{title:"Şifreyi Değiştir",btnSubmit:"Şifreyi Değiştir",passwordPlaceholderText:"Lütfen şifrenizi girin",newPasswordPlaceholderText:"Lütfen yeni şifrenizi girin",confirmPasswordPlaceholderText:"Lütfen yeni şifrenizi onaylayın",passwordDisplayText:"Mevcut Şifre",newPasswordDisplayText:"Yeni Şifre",confirmPasswordDisplayText:"Şifreyi Onaylayın",successMsg:"Şifre başarıyla değiştirildi",errorMsgGeneric:"Şifrenizi değiştirirken bir hata oluştu","gm.pms.password_not_verified_unauthorized":"Girdiğiniz mevcut şifre yanlış","gm.pms.password_policy_failed":"Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez."},hu:{title:"Jelszó megváltoztatása",btnSubmit:"Jelszó megváltoztatása",passwordPlaceholderText:"Kérjük, adja meg a jelszavát",newPasswordPlaceholderText:"Kérjük, adja meg az új jelszavát",confirmPasswordPlaceholderText:"Kérjük, erősítse meg az új jelszavát",passwordDisplayText:"Jelenlegi jelszó",newPasswordDisplayText:"Új jelszó",confirmPasswordDisplayText:"Jelszó megerősítése",successMsg:"A jelszó sikeresen megváltozott",errorMsgGeneric:"Hiba történt a jelszó megváltoztatásakor","gm.pms.password_not_verified_unauthorized":"A megadott jelenlegi jelszó helytelen","gm.pms.password_policy_failed":"A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta."}},g=e=>new Promise(s=>{fetch(e).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{for(let r in a[t])h[t][r]=a[t][r]}),s(!0)})}),o=(e,s,a)=>{const t=s;let r=h[t!==void 0?t:p][e];if(a!==void 0)for(const[l,n]of Object.entries(a.values)){const w=new RegExp(`{${l}}`,"g");r=r.replace(w,n)}return r};function d(){const e=navigator.userAgent.toLowerCase(),s=screen.availWidth,a=screen.availHeight;if(e.includes("iphone"))return"mobile";if(e.includes("android")){if(a>s&&s<800)return"mobile";if(s>a&&a<800)return"tablet"}return"desktop"}function c(e,s){if(e){const a=document.createElement("style");a.innerHTML=s,e.appendChild(a)}}function u(e,s){const a=new URL(s);fetch(a.href).then(t=>t.text()).then(t=>{const r=document.createElement("style");r.innerHTML=t,e&&e.appendChild(r)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function f(e,s,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(s,r=>{t.innerHTML=r,e&&e.appendChild(t)})}}const P=":host{display:block}.PlayerChangePassword{font-family:inherit;width:100%;height:100%;container-type:inline-size}.PlayerChangePassword .Wrapper{display:flex;justify-content:center;align-items:center}.PlayerChangePassword .Title{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--color-primary, #22B04E);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerChangePassword .TitleMobile{font-size:var(--emw--font-size-x-large, 20px);color:var(--emw--color-primary, #22B04E)}.PlayerChangePassword svg{fill:var(--emw--color-primary, #22B04E)}.PlayerChangePassword .ButtonReturn{font-family:inherit;display:inline-flex;align-items:center;gap:10px}.PlayerChangePassword .Form{display:grid;grid-template-columns:repeat(1, 1fr);gap:40px;justify-items:stretch;align-content:flex-start;overflow:auto;width:100%;height:100%}.PlayerChangePassword .Form .FieldsSection{display:flex;flex-direction:column;gap:30px}.PlayerChangePassword .Form .ButtonsSection{display:flex;flex-direction:column;justify-content:space-around;align-items:center;position:relative}.PlayerChangePassword .Button{font-family:inherit;border-radius:var(--emw--button-border-radius, var(--emw--border-radius-large, 50px));background:var(--emw--button-background-color, var(--emw--color-primary, #22B04E));border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #22B04E));color:var(--emw--button-text-color, var(--emw--color-white, #FFFFFF));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-normal, 400);height:50px;width:100%;text-transform:uppercase;cursor:pointer}.PlayerChangePassword .Button:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:var(--emw--button-border, 1px solid var(--emw--button-border-color, #828282));pointer-events:none;cursor:not-allowed}",y=P,m=class{constructor(e){i.registerInstance(this,e),this.currentPasswordValue="",this.newPasswordValue="",this.confirmPasswordValue="",this.isCurrentPasswordValid=!1,this.isNewPasswordValid=!1,this.isConfirmPasswordValid=!1,this.errorMsg="",this.currentPasswordValidationSchema={mandatory:!0,custom:[]},this.newPasswordValidationSchema={mandatory:!0,custom:[]},this.confirmPasswordValidationSchema={mandatory:!0,custom:[]},this.initValidationSchemas=()=>{this.policy&&(this.newPasswordValidationSchema.custom=this.policy.customValidationRules,this.newPasswordValidationSchema.maxLength=this.policy.maximumPasswordLength,this.newPasswordValidationSchema.minLength=this.policy.minimumPasswordLength)},this.setErrorMsg=s=>{switch(s){case"gm.pms.password_policy_failed":const a={forbiddenLastPasswordsCount:this.policy.forbiddenLastPasswordsCount,minimumPasswordAgeLimitHours:this.policy.minimumPasswordAgeLimitHours,hours:this.policy.minimumPasswordAgeLimitHours>1?"hours":"hour"};this.errorMsg=o(s,this.language,{values:a});break;case"gm.pms.password_not_verified_unauthorized":this.errorMsg=o(s,this.language);break;default:this.errorMsg=o("errorMsgGeneric",this.language)}},this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.getPolicy=()=>{const s=new URL("/api/v1/players/password-management/password",this.endpoint),a=new Headers;a.append("Accept","text/plain");const t={method:"GET",headers:a};fetch(s.href,t).then(r=>r.status===200&&r.json()).then(r=>this.policy=r).catch(r=>console.error(r))},this.submitNewPassword=s=>{if(s.preventDefault(),this.isBtnSubmitEnabled){const a=new URL("/api/v1/players/password-management/password",this.endpoint),t=new Headers;t.append("accept","text/plain"),t.append("Content-Type","application/json-patch+json");const r=JSON.stringify({token:this.forgotMode==="true"?this.token:this.session,oldPassword:this.currentPasswordValue,newPassword:this.confirmPasswordValue}),l={method:"PUT",headers:t,body:r};fetch(a.href,l).then(n=>n.json()).then(n=>{n.errorCode===null&&n.message==="pms.password.update.success"?(window.postMessage({type:"PasswordChangedSuccessfully"}),window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("successMsg",this.language)}},window.location.href)):(this.setErrorMsg(n.message),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMsg}},window.location.href))}).catch(n=>console.error(n))}},this.language="en",this.endpoint="",this.session="",this.token="",this.forgotMode="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.isBtnSubmitEnabled=!1,this.isMobile=d()==="mobile"||d()==="tablet"}handleClientStylingChange(e,s){e!=s&&c(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,s){e!=s&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}sendValidityStateHandler(e){switch(this.isBtnSubmitEnabled=!1,e.detail.name){case"password":this.isCurrentPasswordValid=e.detail.valid;break;case"newPassword":this.isNewPasswordValid=e.detail.valid;break;case"newPasswordDuplicate":this.isConfirmPasswordValid=e.detail.valid;break}(this.forgotMode==="true"||this.isCurrentPasswordValid)&&this.isNewPasswordValid&&this.isConfirmPasswordValid&&(this.isBtnSubmitEnabled=!0)}sendInputValueHandler(e){switch(e.detail.name){case"password":this.currentPasswordValue=e.detail.value;break;case"newPassword":this.newPasswordValue=e.detail.value;break;case"newPasswordDuplicate":this.confirmPasswordValue=e.detail.value;break}}componentWillLoad(){if(this.getPolicy(),this.initValidationSchemas(),this.translationUrl)return g(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?f(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&c(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return i.h("div",{key:"9a8f54fe541ef6409f7cc21bb8431c850d031830",class:"PlayerChangePassword",ref:e=>this.stylingContainer=e},i.h("form",{key:"8a3aaa6a96b16a26477657f0216a7a0a2e2e0869",class:"Form"},this.isMobile?i.h("div",{class:"ButtonReturn",onClick:this.toggleScreen},i.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},i.h("g",{transform:"translate(-20 -158)"},i.h("g",{transform:"translate(20 158)"},i.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)"})))),i.h("h2",{class:"TitleMobile"},o("title",this.language))):i.h("h2",{class:"Title"},o("title",this.language)),i.h("section",{key:"47a7214266e06ef9f8ded9f86f76e15ce4f6fc3a",class:"FieldsSection"},this.forgotMode==="false"&&i.h("password-input",{key:"41b721a65332283a3699ab8e838dadb8d73913fa",language:this.language,name:"password","display-name":o("passwordDisplayText",this.language),placeholder:o("passwordPlaceholderText",this.language),validation:this.currentPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"eb7c697eb1900ed580ff17a4cd56819993599924",language:this.language,name:"newPassword","display-name":o("newPasswordDisplayText",this.language),placeholder:o("newPasswordPlaceholderText",this.language),validation:this.newPasswordValidationSchema,clientStyling:this.clientStyling,"mb-source":this.mbSource}),i.h("password-input",{key:"4b12c17b882fe8117f9c49ad296c5918198e18f0",language:this.language,name:"newPasswordDuplicate","display-name":o("confirmPasswordDisplayText",this.language),placeholder:o("confirmPasswordPlaceholderText",this.language),validation:this.confirmPasswordValidationSchema,"is-duplicate-input":!0,clientStyling:this.clientStyling,"mb-source":this.mbSource})),i.h("section",{key:"a0cd6777b46ac8e4ba5eef6c42f77531a9c7ee0b",class:"ButtonsSection"},i.h("button",{key:"d21c481e07a7c7762bf0fa7acbb4f1d68ac92d4d",class:"Button",disabled:!this.isBtnSubmitEnabled,onClick:this.submitNewPassword},o("btnSubmit",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};m.style=y;exports.PlayerChangePasswordGm2=m;
@@ -1,4 +1,4 @@
1
- import { r as w, h as i } from "./index-9cd44522-DxFae1MG.js";
1
+ import { r as w, h as i } from "./index-9cd44522-BicusHxm.js";
2
2
  const p = "en", h = {
3
3
  en: {
4
4
  title: "Change Password",
@@ -1 +1 @@
1
- "use strict";var s=(l,i,a)=>new Promise((g,u)=>{var p=e=>{try{t(a.next(e))}catch(n){u(n)}},c=e=>{try{t(a.throw(e))}catch(n){u(n)}},t=e=>e.done?g(e.value):Promise.resolve(e.value).then(p,c);t((a=a.apply(l,i)).next())});const o=require("./index-9cd44522-CrgsoiAp.cjs"),r=require("./app-globals-0f993ce5-DgYhdguE.cjs");var d=typeof document!="undefined"?document.currentScript:null,m=()=>{const l=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:d&&d.tagName.toUpperCase()==="SCRIPT"&&d.src||new URL("stencil/player-change-password-gm2-BrSLdHlU.cjs",document.baseURI).href,i={};return l!==""&&(i.resourcesUrl=new URL(".",l).href),o.promiseResolve(i)};m().then(l=>s(exports,null,function*(){return yield r.globalScripts(),o.bootstrapLazy([["password-input_2",[[1,"player-change-password-gm2",{language:[513],endpoint:[513],session:[513],token:[513],forgotMode:[513,"forgot-mode"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[513,"translation-url"],isBtnSubmitEnabled:[32],isMobile:[32]},[[0,"sendValidityState","sendValidityStateHandler"],[0,"sendInputValue","sendInputValueHandler"]],{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}]]],["checkbox-group-input_9",[[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]],["general-input",[[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}]]],["toggle-checkbox-input",[[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"]}]]]],l)}));
1
+ "use strict";var s=(l,i,a)=>new Promise((g,u)=>{var p=e=>{try{t(a.next(e))}catch(n){u(n)}},c=e=>{try{t(a.throw(e))}catch(n){u(n)}},t=e=>e.done?g(e.value):Promise.resolve(e.value).then(p,c);t((a=a.apply(l,i)).next())});const o=require("./index-9cd44522-DoGQFmJb.cjs"),r=require("./app-globals-0f993ce5-DgYhdguE.cjs");var d=typeof document!="undefined"?document.currentScript:null,m=()=>{const l=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:d&&d.tagName.toUpperCase()==="SCRIPT"&&d.src||new URL("stencil/player-change-password-gm2-BYVZydPd.cjs",document.baseURI).href,i={};return l!==""&&(i.resourcesUrl=new URL(".",l).href),o.promiseResolve(i)};m().then(l=>s(exports,null,function*(){return yield r.globalScripts(),o.bootstrapLazy([["password-input_2",[[1,"player-change-password-gm2",{language:[513],endpoint:[513],session:[513],token:[513],forgotMode:[513,"forgot-mode"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[513,"translation-url"],isBtnSubmitEnabled:[32],isMobile:[32]},[[0,"sendValidityState","sendValidityStateHandler"],[0,"sendInputValue","sendInputValueHandler"]],{clientStyling:["handleClientStylingChange","handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}]]],["checkbox-group-input_9",[[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]],["general-input",[[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}]]],["toggle-checkbox-input",[[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"]}]]]],l)}));
@@ -1,4 +1,4 @@
1
- import { b as i, p as a } from "./index-9cd44522-DxFae1MG.js";
1
+ import { b as i, p as a } from "./index-9cd44522-BicusHxm.js";
2
2
  import { g as t } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
3
  var n = () => {
4
4
  const l = import.meta.url, e = {};
@@ -14,7 +14,7 @@ var u = (e, i, a) => new Promise((s, d) => {
14
14
  }, t = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(o, g);
15
15
  t((a = a.apply(e, i)).next());
16
16
  });
17
- import { b as p, p as c } from "./index-9cd44522-JnusBvN9.js";
17
+ import { b as p, p as c } from "./index-9cd44522-CmU71Sj9.js";
18
18
  import { g as m } from "./app-globals-0f993ce5-DzSE6TtH.js";
19
19
  var r = () => {
20
20
  const e = import.meta.url, i = {};
@@ -1,4 +1,4 @@
1
- import { r as a, c as o, h as t } from "./index-9cd44522-DxFae1MG.js";
1
+ import { r as a, c as o, h as t } from "./index-9cd44522-BicusHxm.js";
2
2
  import { t as n } from "./locale-ioQf6ZrW.js";
3
3
  import { t as s } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
4
  const r = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', c = r, h = class {
@@ -1,4 +1,4 @@
1
- import { r as a, c as o, h as t } from "./index-9cd44522-JnusBvN9.js";
1
+ import { r as a, c as o, h as t } from "./index-9cd44522-CmU71Sj9.js";
2
2
  import { t as n } from "./locale-ioQf6ZrW.js";
3
3
  import { t as s } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
4
  const r = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', c = r, h = class {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-9cd44522-CrgsoiAp.cjs"),a=require("./locale-BB2iZ4t0.cjs"),n=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),s='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',c=s,o=class{constructor(e){t.registerInstance(this,e),this.sendValidityState=t.createEvent(this,"sendValidityState"),this.sendInputValue=t.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(i,l)=>{i.stopPropagation(),window.postMessage({type:`registration${l}Clicked`},window.location.href)},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleStylingChange(e,i){e!==i&&this.setClientStyling()}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.options.length!==0&&this.options.forEach(e=>{this.callBackObject[e.name]=i=>{this.handleRevealField(i,e.name)},this.subFieldsObject[e.name].addEventListener("click",this.callBackObject[e.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return a.translate("requiredError",this.language)}disconnectedCallback(){this.options.forEach(e=>{this.subFieldsObject[e.name].removeEventListener("click",this.callBackObject[e.name])})}renderLabel(){return t.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},t.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?t.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return t.h("div",{key:"d7084a7f82d45b3d1e7f8ae373b663b2aefdf5ec",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},t.h("div",{key:"f065f4611805dd8490234bcec1fecdbcfcaefab8",class:"togglecheckbox__wrapper--flex"},t.h("input",{key:"c5196d5a4cd2f114a610037285ee644fcabc37bd",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),t.h("small",{key:"06d5db0994272ec9dde1b5cd0d525bb53ff1a058",class:"togglecheckbox__error-message"},this.errorMessage),t.h("div",{key:"aff16ac9ed0adb896f2c1822014c5c8c4d6db2d4",class:"togglecheckbox__wrapper--relative"},this.tooltip&&t.h("img",{key:"6b049cecc095a2127eb566f50fd0f8feaa8cb3d5",class:"togglecheckbox__tooltip-icon",src:n.tooltipIconSvg,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),t.h("div",{key:"372c3eb72cffd482fe1c179047ec3900cef00d46",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(e=>t.h("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:e.placeholder==null?"":e.placeholder,ref:i=>this.subFieldsObject[e.name]=i}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};o.style=c;exports.toggle_checkbox_input=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-9cd44522-DoGQFmJb.cjs"),a=require("./locale-BB2iZ4t0.cjs"),n=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),s='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',c=s,o=class{constructor(e){t.registerInstance(this,e),this.sendValidityState=t.createEvent(this,"sendValidityState"),this.sendInputValue=t.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(i,l)=>{i.stopPropagation(),window.postMessage({type:`registration${l}Clicked`},window.location.href)},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleStylingChange(e,i){e!==i&&this.setClientStyling()}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.options.length!==0&&this.options.forEach(e=>{this.callBackObject[e.name]=i=>{this.handleRevealField(i,e.name)},this.subFieldsObject[e.name].addEventListener("click",this.callBackObject[e.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return a.translate("requiredError",this.language)}disconnectedCallback(){this.options.forEach(e=>{this.subFieldsObject[e.name].removeEventListener("click",this.callBackObject[e.name])})}renderLabel(){return t.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},t.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?t.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return t.h("div",{key:"d7084a7f82d45b3d1e7f8ae373b663b2aefdf5ec",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},t.h("div",{key:"f065f4611805dd8490234bcec1fecdbcfcaefab8",class:"togglecheckbox__wrapper--flex"},t.h("input",{key:"c5196d5a4cd2f114a610037285ee644fcabc37bd",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),t.h("small",{key:"06d5db0994272ec9dde1b5cd0d525bb53ff1a058",class:"togglecheckbox__error-message"},this.errorMessage),t.h("div",{key:"aff16ac9ed0adb896f2c1822014c5c8c4d6db2d4",class:"togglecheckbox__wrapper--relative"},this.tooltip&&t.h("img",{key:"6b049cecc095a2127eb566f50fd0f8feaa8cb3d5",class:"togglecheckbox__tooltip-icon",src:n.tooltipIconSvg,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),t.h("div",{key:"372c3eb72cffd482fe1c179047ec3900cef00d46",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(e=>t.h("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:e.placeholder==null?"":e.placeholder,ref:i=>this.subFieldsObject[e.name]=i}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};o.style=c;exports.toggle_checkbox_input=o;
@@ -1,4 +1,4 @@
1
- import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-D_hRnRRS.js";
1
+ import { b as ae, p as oe, r as se, h as b, H as de } from "./index-1ef3a64c-Brn0Uk6U.js";
2
2
  import { c as ue } from "./app-globals-0f993ce5-DzSE6TtH.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_ZYYq05.cjs"),de=require("./app-globals-0f993ce5-DgYhdguE.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-D3ICpdvp.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$3(),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;
@@ -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-DlkA_w16.js";
17
+ import { b as oe, p as se, r as de, h as D, H as ue } from "./index-1ef3a64c-HrNLjYby.js";
18
18
  import { c as le } from "./app-globals-0f993ce5-DzSE6TtH.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",