@everymatrix/player-account-modal 1.88.6 → 1.88.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountModal-DbPNk-oG.cjs → PlayerAccountModal-5OPOCZV0.cjs} +1 -1
- package/components/{PlayerAccountModal-DHxDgaZO.js → PlayerAccountModal-DLnS_odJ.js} +1 -1
- package/components/{PlayerAccountModal-CumyGEtx.js → PlayerAccountModal-iyapqBmS.js} +1 -2
- package/es2015/player-account-modal.cjs +1 -1
- package/es2015/player-account-modal.js +1 -1
- package/esnext/player-account-modal.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";var wt=Object.defineProperty,bt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var Et=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&G(e,n,t[n]);if(et)for(var n of et(t))xt.call(t,n)&&G(e,n,t[n]);return e},st=(e,t)=>bt(e,St(t));var g=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((s,r)=>{var i=c=>{try{o(n.next(c))}catch(l){r(l)}},u=c=>{try{o(n.throw(c))}catch(l){r(l)}},o=c=>c.done?s(c.value):Promise.resolve(c.value).then(i,u);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function A(){}const at=e=>e;function Ct(e,t){for(const n in t)e[n]=t[n];return e}function dt(e){return e()}function rt(){return Object.create(null)}function v(e){e.forEach(dt)}function Q(e){return typeof e=="function"}function Mt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function vt(e){return Object.keys(e).length===0}function Lt(e,t,n,s){if(e){const r=ht(e,t,n,s);return e[0](r)}}function ht(e,t,n,s){return e[1]&&s?Ct(n.ctx.slice(),e[1](s(t))):n.ctx}function kt(e,t,n,s){return e[2],t.dirty}function Ot(e,t,n,s,r,i){if(r){const u=ht(t,n,s,i);e.p(u,r)}}function At(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let s=0;s<n;s++)t[s]=-1;return t}return-1}const $t=typeof window!="undefined";let jt=$t?()=>window.performance.now():()=>Date.now(),X=$t?e=>requestAnimationFrame(e):A;const x=new Set;function _t(e){x.forEach(t=>{t.c(e)||(x.delete(t),t.f())}),x.size!==0&&X(_t)}function Nt(e){let t;return x.size===0&&X(_t),{promise:new Promise(n=>{x.add(t={c:e,f:n})}),abort(){x.delete(t)}}}function q(e,t){e.appendChild(t)}function Pt(e,t,n){const s=Z(e);if(!s.getElementById(t)){const r=C("style");r.id=t,r.textContent=n,mt(s,r)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bt(e){const t=C("style");return t.textContent="/* empty */",mt(Z(e),t),t.sheet}function mt(e,t){return q(e.head||e,t),t.sheet}function tt(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function Rt(e){return document.createTextNode(e)}function Tt(){return Rt("")}function R(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Dt(e){return Array.from(e.childNodes)}function Ht(e,t,{bubbles:n=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:s})}function zt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const H=new Map;let z=0;function Ut(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function It(e,t){const n={stylesheet:Bt(t),rules:{}};return H.set(e,n),n}function ot(e,t,n,s,r,i,u,o=0){const c=16.666/s;let l=`{
|
|
2
2
|
`;for(let $=0;$<=1;$+=c){const a=t+(n-t)*i($);l+=$*100+`%{${u(a,1-a)}}
|
|
3
3
|
`}const h=l+`100% {${u(n,1-n)}}
|
|
4
|
-
}`,f=`__svelte_${Ut(h)}_${o}`,y=Z(e),{stylesheet:_,rules:d}=H.get(y)||It(y,e);d[f]||(d[f]=!0,_.insertRule(`@keyframes ${f} ${h}`,_.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${f} ${s}ms linear ${r}ms 1 both`,z+=1,f}function Ft(e,t){const n=(e.style.animation||"").split(", "),s=n.filter(t?i=>i.indexOf(t)<0:i=>i.indexOf("__svelte")===-1),r=n.length-s.length;r&&(e.style.animation=s.join(", "),z-=r,z||Wt())}function Wt(){X(()=>{z||(H.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&P(t)}),H.clear())})}let j;function k(e){j=e}function Gt(){if(!j)throw new Error("Function called outside component initialization");return j}function Jt(e){Gt().$$.on_mount.push(e)}const S=[],U=[];let M=[];const ct=[],Vt=Promise.resolve();let K=!1;function qt(){K||(K=!0,Vt.then(w))}function N(e){M.push(e)}const J=new Set;let b=0;function w(){if(b!==0)return;const e=j;do{try{for(;b<S.length;){const t=S[b];b++,k(t),Kt(t.$$)}}catch(t){throw S.length=0,b=0,t}for(k(null),S.length=0,b=0;U.length;)U.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];J.has(n)||(J.add(n),n())}M.length=0}while(S.length);for(;ct.length;)ct.pop()();K=!1,J.clear(),k(e)}function Kt(e){if(e.fragment!==null){e.update(),v(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}function Yt(e){const t=[],n=[];M.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),M=t}let L;function Qt(){return L||(L=Promise.resolve(),L.then(()=>{L=null})),L}function V(e,t,n){e.dispatchEvent(Ht(`${t?"intro":"outro"}${n}`))}const T=new Set;let p;function Xt(){p={r:0,c:[],p}}function Zt(){p.r||v(p.c),p=p.p}function O(e,t){e&&e.i&&(T.delete(e),e.i(t))}function Y(e,t,n,s){if(e&&e.o){if(T.has(e))return;T.add(e),p.c.push(()=>{T.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}else s&&s()}const te={duration:0};function ut(e,t,n,s){let i=t(e,n,{direction:"both"}),u=s?0:1,o=null,c=null,l=null,h;function f(){l&&Ft(e,l)}function y(d,m){const $=d.b-u;return m*=Math.abs($),{a:u,b:d.b,d:$,duration:m,start:d.start,end:d.start+m,group:d.group}}function _(d){const{delay:m=0,duration:$=300,easing:a=at,tick:I=A,css:F}=i||te,W={start:jt()+m,b:d};d||(W.group=p,p.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||c?c=W:(F&&(f(),l=ot(e,u,d,$,m,a,F)),d&&I(0,1),o=y(W,$),N(()=>V(e,d,"start")),Nt(B=>{if(c&&B>c.start&&(o=y(c,$),c=null,V(e,o.b,"start"),F&&(f(),l=ot(e,u,o.b,o.duration,0,a,i.css))),o){if(B>=o.end)I(u=o.b,1-u),V(e,o.b,"end"),c||(o.b?f():--o.group.r||v(o.group.c)),o=null;else if(B>=o.start){const pt=B-o.start;u=o.a+o.d*a(pt/o.duration),I(u,1-u)}}return!!(o||c)}))}return{run(d){Q(i)?Qt().then(()=>{i=i({direction:d?"in":"out"}),_(d)}):_(d)},end(){f(),o=c=null}}}function ee(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),N(()=>{const i=e.$$.on_mount.map(dt).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...i):v(i),e.$$.on_mount=[]}),r.forEach(N)}function ne(e,t){const n=e.$$;n.fragment!==null&&(Yt(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function se(e,t){e.$$.dirty[0]===-1&&(S.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,s,r,i,u=null,o=[-1]){const c=j;k(e);const l=e.$$={fragment:null,ctx:[],props:i,update:A,not_equal:r,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:rt(),dirty:o,skip_bound:!1,root:t.target||c.$$.root};u&&u(l.root);let h=!1;if(l.ctx=n?n(e,t.props||{},(f,y,..._)=>{const d=_.length?_[0]:y;return l.ctx&&r(l.ctx[f],l.ctx[f]=d)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](d),h&&se(e,f)),y}):[],l.update(),h=!0,v(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const f=Dt(t.target);l.fragment&&l.fragment.l(f),f.forEach(P)}else l.fragment&&l.fragment.c();t.intro&&O(e.$$.fragment),ee(e,t.target,t.anchor),w()}k(c)}let gt;typeof HTMLElement=="function"&&(gt=class extends HTMLElement{constructor(t,n,s){super();g(this,"$$ctor");g(this,"$$s");g(this,"$$c");g(this,"$$cn",!1);g(this,"$$d",{});g(this,"$$r",!1);g(this,"$$p_d",{});g(this,"$$l",{});g(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let u;return{c:function(){u=C("slot"),i!=="default"&&R(u,"name",i)},m:function(l,h){tt(l,u,h)},d:function(l){l&&P(u)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=zt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const u=this.$$g_p(i.name);u in this.$$d||(this.$$d[u]=D(u,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(nt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const u=D(i,this.$$d[i],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,u)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const u of this.$$l[i]){const o=this.$$c.$on(i,u);this.$$l_u.set(u,o)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=D(t,s,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function D(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function re(e,t,n,s,r,i){let u=class extends gt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(u.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var l;c=D(o,c,t),this.$$d[o]=c,(l=this.$$c)==null||l.$set({[o]:c})}})}),s.forEach(o=>{Object.defineProperty(u.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=u,u}class oe{constructor(){g(this,"$$");g(this,"$$set")}$destroy(){ne(this,1),this.$destroy=A}$on(t,n){if(!Q(n))return A;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(t){this.$$set&&!vt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ce="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ce);function lt(e,{delay:t=0,duration:n=400,easing:s=at}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:s,css:i=>`opacity: ${i*r}`}}const E="__WIDGET_GLOBAL_STYLE_CACHE__";function ue(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function le(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const r=document.createElement("style");r.innerHTML=s,e&&e.appendChild(r)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function fe(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=ae(e,t),n;window[E]||(window[E]={}),n=de(e,t);const i=n.unsubscribe.bind(n),u=()=>{if(window[E][t]){const o=window[E][t];o.refCount>1?o.refCount=o.refCount-1:delete window[E][t]}i()};return n.unsubscribe=u,n}function ae(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n))})}function de(e,t){return window.emMessageBus.subscribe(t,n=>{var o;if(!e)return;const s=e.getRootNode(),r=window[E];let i=(o=r[t])==null?void 0:o.sheet;i?r[t].refCount=r[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),r[t]={sheet:i,refCount:1});const u=s.adoptedStyleSheets||[];u.includes(i)||(s.adoptedStyleSheets=[...u,i])})}function he(e){Pt(e,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function ft(e){let t,n,s,r,i;const u=e[9].default,o=Lt(u,e,e[8],null);return{c(){t=C("div"),n=C("div"),s=C("div"),o&&o.c(),R(s,"class","ModalContainer"),R(n,"class","ModalWindow"),R(n,"id","Modal")},m(c,l){tt(c,t,l),q(t,n),q(n,s),o&&o.m(s,null),e[10](n),e[11](t),i=!0},p(c,l){e=c,o&&o.p&&(!i||l&256)&&Ot(o,u,e,e[8],i?kt(u,e[8],l,null):At(e[8]),null)},i(c){i||(O(o,c),c&&N(()=>{i&&(r||(r=ut(n,lt,{transitionDuration:e[1]},!0)),r.run(1))}),i=!0)},o(c){Y(o,c),c&&(r||(r=ut(n,lt,{transitionDuration:e[1]},!1)),r.run(0)),i=!1},d(c){c&&P(t),o&&o.d(c),e[10](null),c&&r&&r.end(),e[11](null)}}}function $e(e){let t,n,s=e[0]&&ft(e);return{c(){s&&s.c(),t=Tt()},m(r,i){s&&s.m(r,i),tt(r,t,i),n=!0},p(r,[i]){r[0]?s?(s.p(r,i),i&1&&O(s,1)):(s=ft(r),s.c(),O(s,1),s.m(t.parentNode,t)):s&&(Xt(),Y(s,1,1,()=>{s=null}),Zt())},i(r){n||(O(s),n=!0)},o(r){Y(s),n=!1},d(r){r&&P(t),s&&s.d(r)}}}function _e(e,t,n){let{$$slots:s={},$$scope:r}=t,{show:i=!1}=t,{duration:u=350}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{mbsource:l}=t,{showmodaleventname:h="ShowLimitsConfirmationModal"}=t,f,y,_;const d=a=>{switch(a.data.type){case"ModalClosed":n(0,i=!1);break;case h:n(0,i=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};Jt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function m(a){U[a?"unshift":"push"](()=>{_=a,n(3,_)})}function $(a){U[a?"unshift":"push"](()=>{f=a,n(2,f)})}return e.$$set=a=>{"show"in a&&n(0,i=a.show),"duration"in a&&n(1,u=a.duration),"clientstyling"in a&&n(4,o=a.clientstyling),"clientstylingurl"in a&&n(5,c=a.clientstylingurl),"mbsource"in a&&n(6,l=a.mbsource),"showmodaleventname"in a&&n(7,h=a.showmodaleventname),"$$scope"in a&&n(8,r=a.$$scope)},e.$$.update=()=>{e.$$.dirty&20&&o&&f&&ue(f,o),e.$$.dirty&36&&c&&f&&le(f,c),e.$$.dirty&68&&l&&f&&fe(f,`${l}.Style`,y)},[i,u,f,_,o,c,l,h,r,s,m,$]}class yt extends oe{constructor(t){super(),ie(this,t,_e,$e,Mt,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},he)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),w()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),w()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),w()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),w()}}re(yt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=yt;
|
|
4
|
+
}`,f=`__svelte_${Ut(h)}_${o}`,y=Z(e),{stylesheet:_,rules:d}=H.get(y)||It(y,e);d[f]||(d[f]=!0,_.insertRule(`@keyframes ${f} ${h}`,_.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${f} ${s}ms linear ${r}ms 1 both`,z+=1,f}function Ft(e,t){const n=(e.style.animation||"").split(", "),s=n.filter(t?i=>i.indexOf(t)<0:i=>i.indexOf("__svelte")===-1),r=n.length-s.length;r&&(e.style.animation=s.join(", "),z-=r,z||Wt())}function Wt(){X(()=>{z||(H.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&P(t)}),H.clear())})}let j;function k(e){j=e}function Gt(){if(!j)throw new Error("Function called outside component initialization");return j}function Jt(e){Gt().$$.on_mount.push(e)}const S=[],U=[];let M=[];const ct=[],Vt=Promise.resolve();let K=!1;function qt(){K||(K=!0,Vt.then(w))}function N(e){M.push(e)}const J=new Set;let b=0;function w(){if(b!==0)return;const e=j;do{try{for(;b<S.length;){const t=S[b];b++,k(t),Kt(t.$$)}}catch(t){throw S.length=0,b=0,t}for(k(null),S.length=0,b=0;U.length;)U.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];J.has(n)||(J.add(n),n())}M.length=0}while(S.length);for(;ct.length;)ct.pop()();K=!1,J.clear(),k(e)}function Kt(e){if(e.fragment!==null){e.update(),v(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}function Yt(e){const t=[],n=[];M.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),M=t}let L;function Qt(){return L||(L=Promise.resolve(),L.then(()=>{L=null})),L}function V(e,t,n){e.dispatchEvent(Ht(`${t?"intro":"outro"}${n}`))}const T=new Set;let p;function Xt(){p={r:0,c:[],p}}function Zt(){p.r||v(p.c),p=p.p}function O(e,t){e&&e.i&&(T.delete(e),e.i(t))}function Y(e,t,n,s){if(e&&e.o){if(T.has(e))return;T.add(e),p.c.push(()=>{T.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}else s&&s()}const te={duration:0};function ut(e,t,n,s){let i=t(e,n,{direction:"both"}),u=s?0:1,o=null,c=null,l=null,h;function f(){l&&Ft(e,l)}function y(d,m){const $=d.b-u;return m*=Math.abs($),{a:u,b:d.b,d:$,duration:m,start:d.start,end:d.start+m,group:d.group}}function _(d){const{delay:m=0,duration:$=300,easing:a=at,tick:I=A,css:F}=i||te,W={start:jt()+m,b:d};d||(W.group=p,p.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||c?c=W:(F&&(f(),l=ot(e,u,d,$,m,a,F)),d&&I(0,1),o=y(W,$),N(()=>V(e,d,"start")),Nt(B=>{if(c&&B>c.start&&(o=y(c,$),c=null,V(e,o.b,"start"),F&&(f(),l=ot(e,u,o.b,o.duration,0,a,i.css))),o){if(B>=o.end)I(u=o.b,1-u),V(e,o.b,"end"),c||(o.b?f():--o.group.r||v(o.group.c)),o=null;else if(B>=o.start){const pt=B-o.start;u=o.a+o.d*a(pt/o.duration),I(u,1-u)}}return!!(o||c)}))}return{run(d){Q(i)?Qt().then(()=>{i=i({direction:d?"in":"out"}),_(d)}):_(d)},end(){f(),o=c=null}}}function ee(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),N(()=>{const i=e.$$.on_mount.map(dt).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...i):v(i),e.$$.on_mount=[]}),r.forEach(N)}function ne(e,t){const n=e.$$;n.fragment!==null&&(Yt(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function se(e,t){e.$$.dirty[0]===-1&&(S.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,s,r,i,u=null,o=[-1]){const c=j;k(e);const l=e.$$={fragment:null,ctx:[],props:i,update:A,not_equal:r,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:rt(),dirty:o,skip_bound:!1,root:t.target||c.$$.root};u&&u(l.root);let h=!1;if(l.ctx=n?n(e,t.props||{},(f,y,..._)=>{const d=_.length?_[0]:y;return l.ctx&&r(l.ctx[f],l.ctx[f]=d)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](d),h&&se(e,f)),y}):[],l.update(),h=!0,v(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const f=Dt(t.target);l.fragment&&l.fragment.l(f),f.forEach(P)}else l.fragment&&l.fragment.c();t.intro&&O(e.$$.fragment),ee(e,t.target,t.anchor),w()}k(c)}let gt;typeof HTMLElement=="function"&&(gt=class extends HTMLElement{constructor(t,n,s){super();g(this,"$$ctor");g(this,"$$s");g(this,"$$c");g(this,"$$cn",!1);g(this,"$$d",{});g(this,"$$r",!1);g(this,"$$p_d",{});g(this,"$$l",{});g(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let u;return{c:function(){u=C("slot"),i!=="default"&&R(u,"name",i)},m:function(l,h){tt(l,u,h)},d:function(l){l&&P(u)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=zt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const u=this.$$g_p(i.name);u in this.$$d||(this.$$d[u]=D(u,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(nt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const u=D(i,this.$$d[i],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,u)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const u of this.$$l[i]){const o=this.$$c.$on(i,u);this.$$l_u.set(u,o)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=D(t,s,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function D(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function re(e,t,n,s,r,i){let u=class extends gt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(u.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var l;c=D(o,c,t),this.$$d[o]=c,(l=this.$$c)==null||l.$set({[o]:c})}})}),s.forEach(o=>{Object.defineProperty(u.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=u,u}class oe{constructor(){g(this,"$$");g(this,"$$set")}$destroy(){ne(this,1),this.$destroy=A}$on(t,n){if(!Q(n))return A;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(t){this.$$set&&!vt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ce="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ce);function lt(e,{delay:t=0,duration:n=400,easing:s=at}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:s,css:i=>`opacity: ${i*r}`}}const E="__WIDGET_GLOBAL_STYLE_CACHE__";function ue(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function le(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const r=document.createElement("style");r.innerHTML=s,e&&e.appendChild(r)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function fe(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=ae(e,t),n;window[E]||(window[E]={}),n=de(e,t);const i=n.unsubscribe.bind(n),u=()=>{if(window[E][t]){const o=window[E][t];o.refCount>1?o.refCount=o.refCount-1:delete window[E][t]}i()};return n.unsubscribe=u,n}function ae(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n))})}function de(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const s=e.getRootNode(),r=window[E];let i=r[t]&&r[t].sheet;i?r[t].refCount=r[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),r[t]={sheet:i,refCount:1});const u=s.adoptedStyleSheets||[];u.includes(i)||(s.adoptedStyleSheets=[...u,i])})}function he(e){Pt(e,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function ft(e){let t,n,s,r,i;const u=e[9].default,o=Lt(u,e,e[8],null);return{c(){t=C("div"),n=C("div"),s=C("div"),o&&o.c(),R(s,"class","ModalContainer"),R(n,"class","ModalWindow"),R(n,"id","Modal")},m(c,l){tt(c,t,l),q(t,n),q(n,s),o&&o.m(s,null),e[10](n),e[11](t),i=!0},p(c,l){e=c,o&&o.p&&(!i||l&256)&&Ot(o,u,e,e[8],i?kt(u,e[8],l,null):At(e[8]),null)},i(c){i||(O(o,c),c&&N(()=>{i&&(r||(r=ut(n,lt,{transitionDuration:e[1]},!0)),r.run(1))}),i=!0)},o(c){Y(o,c),c&&(r||(r=ut(n,lt,{transitionDuration:e[1]},!1)),r.run(0)),i=!1},d(c){c&&P(t),o&&o.d(c),e[10](null),c&&r&&r.end(),e[11](null)}}}function $e(e){let t,n,s=e[0]&&ft(e);return{c(){s&&s.c(),t=Tt()},m(r,i){s&&s.m(r,i),tt(r,t,i),n=!0},p(r,[i]){r[0]?s?(s.p(r,i),i&1&&O(s,1)):(s=ft(r),s.c(),O(s,1),s.m(t.parentNode,t)):s&&(Xt(),Y(s,1,1,()=>{s=null}),Zt())},i(r){n||(O(s),n=!0)},o(r){Y(s),n=!1},d(r){r&&P(t),s&&s.d(r)}}}function _e(e,t,n){let{$$slots:s={},$$scope:r}=t,{show:i=!1}=t,{duration:u=350}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{mbsource:l}=t,{showmodaleventname:h="ShowLimitsConfirmationModal"}=t,f,y,_;const d=a=>{switch(a.data.type){case"ModalClosed":n(0,i=!1);break;case h:n(0,i=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};Jt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function m(a){U[a?"unshift":"push"](()=>{_=a,n(3,_)})}function $(a){U[a?"unshift":"push"](()=>{f=a,n(2,f)})}return e.$$set=a=>{"show"in a&&n(0,i=a.show),"duration"in a&&n(1,u=a.duration),"clientstyling"in a&&n(4,o=a.clientstyling),"clientstylingurl"in a&&n(5,c=a.clientstylingurl),"mbsource"in a&&n(6,l=a.mbsource),"showmodaleventname"in a&&n(7,h=a.showmodaleventname),"$$scope"in a&&n(8,r=a.$$scope)},e.$$.update=()=>{e.$$.dirty&20&&o&&f&&ue(f,o),e.$$.dirty&36&&c&&f&&le(f,c),e.$$.dirty&68&&l&&f&&fe(f,`${l}.Style`,y)},[i,u,f,_,o,c,l,h,r,s,m,$]}class yt extends oe{constructor(t){super(),ie(this,t,_e,$e,Mt,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},he)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),w()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),w()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),w()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),w()}}re(yt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=yt;
|
|
@@ -666,7 +666,7 @@ function te(t, e) {
|
|
|
666
666
|
if (!t)
|
|
667
667
|
return;
|
|
668
668
|
const s = t.getRootNode(), i = window[S];
|
|
669
|
-
let r = i[e]
|
|
669
|
+
let r = i[e] && i[e].sheet;
|
|
670
670
|
r ? i[e].refCount = i[e].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(n), i[e] = {
|
|
671
671
|
sheet: r,
|
|
672
672
|
refCount: 1
|
|
@@ -700,11 +700,10 @@ function fe(e, t) {
|
|
|
700
700
|
}
|
|
701
701
|
function ae(e, t) {
|
|
702
702
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
703
|
-
var o;
|
|
704
703
|
if (!e)
|
|
705
704
|
return;
|
|
706
705
|
const s = e.getRootNode(), r = window[x];
|
|
707
|
-
let i =
|
|
706
|
+
let i = r[t] && r[t].sheet;
|
|
708
707
|
i ? r[t].refCount = r[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), r[t] = {
|
|
709
708
|
sheet: i,
|
|
710
709
|
refCount: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountModal-5OPOCZV0.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountModal-iyapqBmS.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-modal") && customElements.define("player-account-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|