@everymatrix/player-account-modal 1.0.16 → 1.0.70

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,bt=Object.defineProperties;var wt=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)=>bt(e,wt(t));var _=(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 vt(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 k(e){e.forEach(at)}function Q(e){return typeof e=="function"}function Ct(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Mt(e){return Object.keys(e).length===0}function kt(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?vt(n.ctx.slice(),e[1](i(t))):n.ctx}function St(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],c=Math.max(t.dirty.length,r.length);for(let o=0;o<c;o+=1)s[o]=t.dirty[o]|r[o];return s}return t.dirty|r}return t.dirty}function jt(e,t,n,i,r,s){if(r){const c=dt(t,n,i,s);e.p(c,r)}}function Ot(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=C("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 zt(e){const t=C("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 P(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function Pt(e){return document.createTextNode(e)}function Rt(){return Pt("")}function j(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Bt(e){return Array.from(e.childNodes)}function Tt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Dt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const D=new Map;let H=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:zt(t),rules:{}};return D.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 f=0;f<=1;f+=l){const m=t+(n-t)*s(f);u+=f*100+`%{${c(m,1-m)}}
3
+ `}const h=u+`100% {${c(n,1-n)}}
4
+ }`,d=`__svelte_${Ht(h)}_${o}`,y=Y(e),{stylesheet:g,rules:a}=D.get(y)||Ft(y,e);a[d]||(a[d]=!0,g.insertRule(`@keyframes ${d} ${h}`,g.cssRules.length));const $=e.style.animation||"";return e.style.animation=`${$?`${$}, `:""}${d} ${i}ms linear ${r}ms 1 both`,H+=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(", "),H-=r,H||Ut())}function Ut(){X(()=>{H||(D.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&P(t)}),D.clear())})}let N;function O(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 x=[],F=[];let M=[];const ot=[],Wt=Promise.resolve();let G=!1;function qt(){G||(G=!0,Wt.then(E))}function z(e){M.push(e)}const V=new Set;let w=0;function E(){if(w!==0)return;const e=N;do{try{for(;w<x.length;){const t=x[w];w++,O(t),Gt(t.$$)}}catch(t){throw x.length=0,w=0,t}for(O(null),x.length=0,w=0;F.length;)F.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(x.length);for(;ot.length;)ot.pop()();G=!1,V.clear(),O(e)}function Gt(e){if(e.fragment!==null){e.update(),k(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(z)}}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 S;function Qt(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function W(e,t,n){e.dispatchEvent(Tt(`${t?"intro":"outro"}${n}`))}const B=new Set;let p;function Xt(){p={r:0,c:[],p}}function Yt(){p.r||k(p.c),p=p.p}function L(e,t){e&&e.i&&(B.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(B.has(e))return;B.add(e),p.c.push(()=>{B.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 y(a,$){const f=a.b-c;return $*=Math.abs(f),{a:c,b:a.b,d:f,duration:$,start:a.start,end:a.start+$,group:a.group}}function g(a){const{delay:$=0,duration:f=300,easing:m=ft,tick:b=A,css:I}=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:(I&&(d(),u=rt(e,c,a,f,$,m,I)),a&&b(0,1),o=y(U,f),z(()=>W(e,a,"start")),At(R=>{if(l&&R>l.start&&(o=y(l,f),l=null,W(e,o.b,"start"),I&&(d(),u=rt(e,c,o.b,o.duration,0,m,s.css))),o){if(R>=o.end)b(c=o.b,1-c),W(e,o.b,"end"),l||(o.b?d():--o.group.r||k(o.group.c)),o=null;else if(R>=o.start){const mt=R-o.start;c=o.a+o.d*m(mt/o.duration),b(c,1-c)}}return!!(o||l)}))}return{run(a){Q(s)?Qt().then(()=>{s=s({direction:a?"in":"out"}),g(a)}):g(a)},end(){d(),o=l=null}}}function te(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),z(()=>{const s=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...s):k(s),e.$$.on_mount=[]}),r.forEach(z)}function ee(e,t){const n=e.$$;n.fragment!==null&&(Kt(n.after_update),k(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&&(x.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;O(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?n(e,t.props||{},(d,y,...g)=>{const a=g.length?g[0]:y;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)),y}):[],u.update(),h=!0,k(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const d=Bt(t.target);u.fragment&&u.fragment.l(d),d.forEach(P)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),te(e,t.target,t.anchor),E()}O(l)}let yt;typeof HTMLElement=="function"&&(yt=class extends HTMLElement{constructor(t,n,i){super();_(this,"$$ctor");_(this,"$$s");_(this,"$$c");_(this,"$$cn",!1);_(this,"$$d",{});_(this,"$$r",!1);_(this,"$$p_d",{});_(this,"$$l",{});_(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=C("slot"),s!=="default"&&j(c,"name",s)},m:function(u,h){Z(u,c,h)},d:function(u){u&&P(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Dt(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]=T(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=T(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]=T(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 T(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 yt{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=T(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(){_(this,"$$");_(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&&!Mt(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-eulycz",".svelte-eulycz,.svelte-eulycz::before,.svelte-eulycz::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-eulycz{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}")}function ut(e){let t,n,i,r,s;const c=e[7].default,o=kt(c,e,e[6],null);return{c(){t=C("div"),n=C("div"),i=C("div"),o&&o.c(),j(i,"class","ModalContainer svelte-eulycz"),j(n,"class","ModalWindow svelte-eulycz"),j(n,"id","Modal"),j(t,"class","svelte-eulycz")},m(l,u){Z(l,t,u),q(t,n),q(n,i),o&&o.m(i,null),e[8](n),e[9](t),s=!0},p(l,u){e=l,o&&o.p&&(!s||u&64)&&jt(o,c,e,e[6],s?St(c,e[6],u,null):Ot(e[6]),null)},i(l){s||(L(o,l),l&&z(()=>{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&&P(t),o&&o.d(l),e[8](null),l&&r&&r.end(),e[9](null)}}}function ce(e){let t,n,i=e[0]&&ut(e);return{c(){i&&i.c(),t=Rt()},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&&P(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,u,h;const d=f=>{f.data.type=="ModalClosed"&&n(0,s=!1),f.data.type==="ShowLimitsConfirmationModal"&&(n(0,s=!0),window.postMessage({type:"DisableScroll"},window.location.href))},y=()=>{let f=document.createElement("style");f.innerHTML=o,u.appendChild(f)},g=()=>{let f=new URL(l),m=document.createElement("style");fetch(f.href).then(b=>b.text()).then(b=>{m.innerHTML=b,setTimeout(()=>{u.appendChild(m)},1)})};Vt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function a(f){F[f?"unshift":"push"](()=>{h=f,n(3,h)})}function $(f){F[f?"unshift":"push"](()=>{u=f,n(2,u)})}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),"$$scope"in f&&n(6,r=f.$$scope)},e.$$.update=()=>{e.$$.dirty&36&&l&&u&&g(),e.$$.dirty&20&&o&&u&&y()},[s,c,u,h,o,l,r,i,a,$]}class gt extends re{constructor(t){super(),ie(this,t,ue,ce,Ct,{show:0,duration:1,clientstyling:4,clientstylingurl:5},le)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),E()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),E()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}}se(gt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);exports.default=gt;