@everymatrix/player-account-modal 1.53.11 → 1.54.0

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.
@@ -0,0 +1,4 @@
1
+ "use strict";var pt=Object.defineProperty,wt=Object.defineProperties;var bt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var J=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))xt.call(t,n)&&J(e,n,t[n]);if(tt)for(var n of tt(t))Et.call(t,n)&&J(e,n,t[n]);return e},nt=(e,t)=>wt(e,bt(t));var m=(e,t,n)=>J(e,typeof t!="symbol"?t+"":t,n);var it=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{o(n.next(l))}catch(u){r(u)}},c=l=>{try{o(n.throw(l))}catch(u){r(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function A(){}const ft=e=>e;function Ct(e,t){for(const n in t)e[n]=t[n];return e}function at(e){return e()}function st(){return Object.create(null)}function S(e){e.forEach(at)}function Q(e){return typeof e=="function"}function vt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function kt(e){return Object.keys(e).length===0}function Mt(e,t,n,i){if(e){const r=dt(e,t,n,i);return e[0](r)}}function dt(e,t,n,i){return e[1]&&i?Ct(n.ctx.slice(),e[1](i(t))):n.ctx}function St(e,t,n,i){return e[2],t.dirty}function Ot(e,t,n,i,r,s){if(r){const c=dt(t,n,i,s);e.p(c,r)}}function jt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const ht=typeof window!="undefined";let Lt=ht?()=>window.performance.now():()=>Date.now(),X=ht?e=>requestAnimationFrame(e):A;const v=new Set;function $t(e){v.forEach(t=>{t.c(e)||(v.delete(t),t.f())}),v.size!==0&&X($t)}function At(e){let t;return v.size===0&&X($t),{promise:new Promise(n=>{v.add(t={c:e,f:n})}),abort(){v.delete(t)}}}function q(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=k("style");r.id=t,r.textContent=n,_t(i,r)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pt(e){const t=k("style");return t.textContent="/* empty */",_t(Y(e),t),t.sheet}function _t(e,t){return q(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function R(e){e.parentNode&&e.parentNode.removeChild(e)}function k(e){return document.createElement(e)}function Rt(e){return document.createTextNode(e)}function Bt(){return Rt("")}function T(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}function Dt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function zt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const H=new Map;let F=0;function Ht(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ft(e,t){const n={stylesheet:Pt(t),rules:{}};return H.set(e,n),n}function rt(e,t,n,i,r,s,c,o=0){const l=16.666/i;let u=`{
2
+ `;for(let $=0;$<=1;$+=l){const f=t+(n-t)*s($);u+=$*100+`%{${c(f,1-f)}}
3
+ `}const h=u+`100% {${c(n,1-n)}}
4
+ }`,d=`__svelte_${Ht(h)}_${o}`,g=Y(e),{stylesheet:y,rules:a}=H.get(g)||Ft(g,e);a[d]||(a[d]=!0,y.insertRule(`@keyframes ${d} ${h}`,y.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${d} ${i}ms linear ${r}ms 1 both`,F+=1,d}function It(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(e.style.animation=i.join(", "),F-=r,F||Ut())}function Ut(){X(()=>{F||(H.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&R(t)}),H.clear())})}let N;function j(e){N=e}function Jt(){if(!N)throw new Error("Function called outside component initialization");return N}function Vt(e){Jt().$$.on_mount.push(e)}const C=[],I=[];let M=[];const ot=[],Wt=Promise.resolve();let G=!1;function qt(){G||(G=!0,Wt.then(b))}function P(e){M.push(e)}const V=new Set;let E=0;function b(){if(E!==0)return;const e=N;do{try{for(;E<C.length;){const t=C[E];E++,j(t),Gt(t.$$)}}catch(t){throw C.length=0,E=0,t}for(j(null),C.length=0,E=0;I.length;)I.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];V.has(n)||(V.add(n),n())}M.length=0}while(C.length);for(;ot.length;)ot.pop()();G=!1,V.clear(),j(e)}function Gt(e){if(e.fragment!==null){e.update(),S(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}function Kt(e){const t=[],n=[];M.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),M=t}let O;function Qt(){return O||(O=Promise.resolve(),O.then(()=>{O=null})),O}function W(e,t,n){e.dispatchEvent(Dt(`${t?"intro":"outro"}${n}`))}const D=new Set;let p;function Xt(){p={r:0,c:[],p}}function Yt(){p.r||S(p.c),p=p.p}function L(e,t){e&&e.i&&(D.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(D.has(e))return;D.add(e),p.c.push(()=>{D.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const Zt={duration:0};function lt(e,t,n,i){let s=t(e,n,{direction:"both"}),c=i?0:1,o=null,l=null,u=null,h;function d(){u&&It(e,u)}function g(a,_){const $=a.b-c;return _*=Math.abs($),{a:c,b:a.b,d:$,duration:_,start:a.start,end:a.start+_,group:a.group}}function y(a){const{delay:_=0,duration:$=300,easing:f=ft,tick:x=A,css:w}=s||Zt,U={start:Lt()+_,b:a};a||(U.group=p,p.r+=1),"inert"in e&&(a?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||l?l=U:(w&&(d(),u=rt(e,c,a,$,_,f,w)),a&&x(0,1),o=g(U,$),P(()=>W(e,a,"start")),At(B=>{if(l&&B>l.start&&(o=g(l,$),l=null,W(e,o.b,"start"),w&&(d(),u=rt(e,c,o.b,o.duration,0,f,s.css))),o){if(B>=o.end)x(c=o.b,1-c),W(e,o.b,"end"),l||(o.b?d():--o.group.r||S(o.group.c)),o=null;else if(B>=o.start){const yt=B-o.start;c=o.a+o.d*f(yt/o.duration),x(c,1-c)}}return!!(o||l)}))}return{run(a){Q(s)?Qt().then(()=>{s=s({direction:a?"in":"out"}),y(a)}):y(a)},end(){d(),o=l=null}}}function te(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),P(()=>{const s=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...s):S(s),e.$$.on_mount=[]}),r.forEach(P)}function ee(e,t){const n=e.$$;n.fragment!==null&&(Kt(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ne(e,t){e.$$.dirty[0]===-1&&(C.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,r,s,c=null,o=[-1]){const l=N;j(e);const u=e.$$={fragment:null,ctx:[],props:s,update:A,not_equal:r,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:st(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};c&&c(u.root);let h=!1;if(u.ctx=n(e,t.props||{},(d,g,...y)=>{const a=y.length?y[0]:g;return u.ctx&&r(u.ctx[d],u.ctx[d]=a)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](a),h&&ne(e,d)),g}),u.update(),h=!0,S(u.before_update),u.fragment=i(u.ctx),t.target){if(t.hydrate){const d=Tt(t.target);u.fragment&&u.fragment.l(d),d.forEach(R)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),te(e,t.target,t.anchor),b()}j(l)}let mt;typeof HTMLElement=="function"&&(mt=class extends HTMLElement{constructor(t,n,i){super();m(this,"$$ctor");m(this,"$$s");m(this,"$$c");m(this,"$$cn",!1);m(this,"$$d",{});m(this,"$$r",!1);m(this,"$$p_d",{});m(this,"$$l",{});m(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){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,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),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(s){return()=>{let c;return{c:function(){c=k("slot"),s!=="default"&&T(c,"name",s)},m:function(u,h){Z(u,c,h)},d:function(u){u&&R(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=zt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=z(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=z(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const o=this.$$c.$on(s,c);this.$$l_u.set(c,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=z(t,i,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 z(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="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 se(e,t,n,i,r,s){let c=class extends mt{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(c.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=z(o,l,t),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),i.forEach(o=>{Object.defineProperty(c.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=c,c}class re{constructor(){m(this,"$$");m(this,"$$set")}$destroy(){ee(this,1),this.$destroy=A}$on(t,n){if(!Q(n))return A;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const oe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oe);function ct(e,{delay:t=0,duration:n=400,easing:i=ft}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:s=>`opacity: ${s*r}`}}function le(e){Nt(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 ut(e){let t,n,i,r,s;const c=e[8].default,o=Mt(c,e,e[7],null);return{c(){t=k("div"),n=k("div"),i=k("div"),o&&o.c(),T(i,"class","ModalContainer"),T(n,"class","ModalWindow"),T(n,"id","Modal")},m(l,u){Z(l,t,u),q(t,n),q(n,i),o&&o.m(i,null),e[9](n),e[10](t),s=!0},p(l,u){e=l,o&&o.p&&(!s||u&128)&&Ot(o,c,e,e[7],s?St(c,e[7],u,null):jt(e[7]),null)},i(l){s||(L(o,l),l&&P(()=>{s&&(r||(r=lt(n,ct,{transitionDuration:e[1]},!0)),r.run(1))}),s=!0)},o(l){K(o,l),l&&(r||(r=lt(n,ct,{transitionDuration:e[1]},!1)),r.run(0)),s=!1},d(l){l&&R(t),o&&o.d(l),e[9](null),l&&r&&r.end(),e[10](null)}}}function ce(e){let t,n,i=e[0]&&ut(e);return{c(){i&&i.c(),t=Bt()},m(r,s){i&&i.m(r,s),Z(r,t,s),n=!0},p(r,[s]){r[0]?i?(i.p(r,s),s&1&&L(i,1)):(i=ut(r),i.c(),L(i,1),i.m(t.parentNode,t)):i&&(Xt(),K(i,1,1,()=>{i=null}),Yt())},i(r){n||(L(i),n=!0)},o(r){K(i),n=!1},d(r){r&&R(t),i&&i.d(r)}}}function ue(e,t,n){let{$$slots:i={},$$scope:r}=t,{show:s=!1}=t,{duration:c=350}=t,{clientstyling:o=""}=t,{clientstylingurl:l=""}=t,{showmodaleventname:u="ShowLimitsConfirmationModal"}=t,h,d;const g=f=>{switch(f.data.type){case"ModalClosed":n(0,s=!1);break;case u:n(0,s=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}},y=()=>{let f=document.createElement("style");f.innerHTML=o,h.appendChild(f)},a=()=>{let f=new URL(l),x=document.createElement("style");fetch(f.href).then(w=>w.text()).then(w=>{x.innerHTML=w,setTimeout(()=>{h.appendChild(x)},1)})};Vt(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function _(f){I[f?"unshift":"push"](()=>{d=f,n(3,d)})}function $(f){I[f?"unshift":"push"](()=>{h=f,n(2,h)})}return e.$$set=f=>{"show"in f&&n(0,s=f.show),"duration"in f&&n(1,c=f.duration),"clientstyling"in f&&n(4,o=f.clientstyling),"clientstylingurl"in f&&n(5,l=f.clientstylingurl),"showmodaleventname"in f&&n(6,u=f.showmodaleventname),"$$scope"in f&&n(7,r=f.$$scope)},e.$$.update=()=>{e.$$.dirty&36&&l&&h&&a(),e.$$.dirty&20&&o&&h&&y()},[s,c,h,d,o,l,u,r,i,_,$]}class gt extends re{constructor(t){super(),ie(this,t,ue,ce,vt,{show:0,duration:1,clientstyling:4,clientstylingurl:5,showmodaleventname:6},le)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),b()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),b()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),b()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),b()}get showmodaleventname(){return this.$$.ctx[6]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),b()}}se(gt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},showmodaleventname:{}},["default"],[],!0);exports.default=gt;