@everymatrix/player-account-modal 1.7.2 → 1.7.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function g(){}const $=t=>t;function y(t){return t()}function b(){return Object.create(null)}function w(t){t.forEach(y)}function v(t){return"function"==typeof t}function e(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}var t="undefined"!=typeof window;let q=t?()=>window.performance.now():()=>Date.now(),x=t?t=>requestAnimationFrame(t):g;const _=new Set;function E(e){_.forEach(t=>{t.c(e)||(_.delete(t),t.f())}),0!==_.size&&x(E)}function C(t,e){t.appendChild(e)}function M(t){if(!t)return document;var e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function s(t,e,n){t.insertBefore(e,n||null)}function k(t){t.parentNode.removeChild(t)}function L(t){return document.createElement(t)}function l(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const R=new Map;let T,A=0;function S(t,e,n,o,i,r,s,l=0){var a,u=16.666/o;let c="{\n";for(let t=0;t<=1;t+=u){const o=e+(n-e)*r(t);c+=100*t+`%{${s(o,1-o)}}
|
|
2
2
|
`}const d=c+`100% {${s(n,1-n)}}
|
|
3
|
-
}`,f=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(d)}_`+l,h=M(t),{stylesheet:p,rules:m}=R.get(h)||(l=h,a={stylesheet:(a=t,g=L("style"),C((a=M(a)).head||a,g),g.sheet),rules:{}},R.set(l,a),a);m[f]||(m[f]=!0,p.insertRule(`@keyframes ${f} `+d,p.cssRules.length));var g=t.style.animation||"";return t.style.animation=(g?g+", ":"")+f+` ${o}ms linear ${i}ms 1 both`,A+=1,f}function j(t){T=t}const H=[],c=[],i=[],r=[],F=Promise.resolve();let D=!1;function N(t){i.push(t)}const a=new Set;let z,u=0;function O(){const t=T;do{for(;u<H.length;){const t=H[u];u++,j(t),e=n=void 0;var e,n=t.$$;null!==n.fragment&&(n.update(),w(n.before_update),e=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(N))}for(j(null),H.length=0,u=0;c.length;)c.pop()();for(let t=0;t<i.length;t+=1){const o=i[t];a.has(o)||(a.add(o),o())}}while(i.length=0,H.length);for(;r.length;)r.pop()();D=!1,a.clear(),j(t)}function P(t,e,n){t.dispatchEvent(function(t,{bubbles:e=!1,cancelable:n=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,e,n,void 0),o}((e?"intro":"outro")+n))}const d=new Set;let U;function W(t,e){t&&t.i&&(d.delete(t),t.i(e))}function f(t,e,n,o){t&&t.o&&(d.has(t)||(d.add(t),U.c.push(()=>{d.delete(t),o&&(n&&t.d(1),o())}),t.o(e)))}const I={duration:0};function h(a,t,e,n){let u=t(a,e),c=n?0:1,d=null,f=null,h=null;function p(){if(h){var t=a,e=h;const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-o.length;i&&(t.style.animation=o.join(", "),(A-=i)||x(()=>{A||(R.forEach(t=>{const e=t["stylesheet"];let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}}),R.clear())}))}}function m(t,e){var n=t.b-c;return e*=Math.abs(n),{a:c,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function o(t){const{delay:e=0,duration:n=300,easing:o=$,tick:i=g,css:r}=u||I,s={start:q()+e,b:t};if(t||((s.group=U).r+=1),!d&&!f){r&&(p(),h=S(a,c,t,n,e,o,r)),t&&i(0,1),d=m(s,n),N(()=>P(a,t,"start"));{var l=t=>{return f&&t>f.start&&(d=m(f,n),f=null,P(a,d.b,"start"),r&&(p(),h=S(a,c,d.b,d.duration,0,o,u.css))),d&&(t>=d.end?(i(c=d.b,1-c),P(a,d.b,"end"),f||(d.b?p():--d.group.r||w(d.group.c)),d=null):t>=d.start&&(t=t-d.start,c=d.a+d.d*o(t/d.duration),i(c,1-c))),!(!d&&!f)};let e;return 0===_.size&&x(E),void new Promise(t=>{_.add(e={c:l,f:t})})}}f=s}return{run(t){v(u)?(z||(z=Promise.resolve()).then(()=>{z=null}),z.then(()=>{u=u(),o(t)})):o(t)},end(){p(),d=f=null}}}function n(o,t,e,n,i,r,s,l=[-1]){var a=T;j(o);const u=o.$$={fragment:null,ctx:null,props:r,update:g,not_equal:i,bound:b(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:b(),dirty:l,skip_bound:!1,root:t.target||a.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(o,t.props||{},(t,e,...n)=>{var n=n.length?n[0]:e;return u.ctx&&i(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),c&&(n=t,-1===(t=o).$$.dirty[0]&&(H.push(t),D||(D=!0,F.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),c=!0,w(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){r=t.target;const g=Array.from(r.childNodes);u.fragment&&u.fragment.l(g),g.forEach(k)}else u.fragment&&u.fragment.c();t.intro&&W(o.$$.fragment);{var d=o;l=t.target;s=t.anchor;e=t.customElement;const{fragment:f,on_mount:h,on_destroy:p,after_update:m}=d.$$;f&&f.m(l,s),e||N(()=>{var t=h.map(y).filter(v);p?p.push(...t):w(t),d.$$.on_mount=[]}),m.forEach(N)}O()}j(a)}let o;function p(t,{delay:e=0,duration:n=400,easing:o=$}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:o,css:t=>"opacity: "+t*i}}function m(n){let o,i,e,r;return{c(){o=L("div"),(i=L("div")).innerHTML='<div class="ModalContainer" part="ModalContainer"><slot></slot></div>',l(i,"class","ModalWindow"),l(i,"part","ModalWindow"),l(i,"id","Modal")},m(t,e){s(t,o,e),C(o,i),n[6](i),n[7](o),r=!0},p(t,e){n=t},i(t){r||(N(()=>{(e=e||h(i,p,{transitionDuration:n[1]},!0)).run(1)}),r=!0)},o(t){(e=e||h(i,p,{transitionDuration:n[1]},!1)).run(0),r=!1},d(t){t&&k(o),n[6](null),t&&e&&e.end(),n[7](null)}}}function B(t){let n,o,i=t[0]&&m(t);return{c(){i&&i.c(),n=document.createTextNode(""),this.c=g},m(t,e){i&&i.m(t,e),s(t,n,e),o=!0},p(t,[e]){t[0]?i?(i.p(t,e),1&e&&W(i,1)):((i=m(t)).c(),W(i,1),i.m(n.parentNode,n)):i&&(U={r:0,c:[],p:U},f(i,1,1,()=>{i=null}),U.r||w(U.c),U=U.p)},i(t){o||(W(i),o=!0)},o(t){f(i),o=!1},d(t){i&&i.d(t),t&&k(n)}}}function G(t,e,n){let o,i,{show:r=!1}=e,{duration:s=350}=e,{clientstyling:l=""}=e,{clientstylingurl:a=""}=e;const u=t=>{"ModalClosed"==t.data.type&&n(0,r=!1),"ShowLimitsConfirmationModal"===t.data.type&&(n(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return e=()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)}),function(){if(T)return T;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e),t.$$set=t=>{"show"in t&&n(0,r=t.show),"duration"in t&&n(1,s=t.duration),"clientstyling"in t&&n(4,l=t.clientstyling),"clientstylingurl"in t&&n(5,a=t.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&a&&o){let t=new URL(a),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{o.appendChild(e)},1)})}if(20&t.$$.dirty&&l&&o){let t=document.createElement("style");t.innerHTML=l,o.appendChild(t)}},[r,s,o,void 0,l,a,function(t){c[t?"unshift":"push"](()=>{i=t,n(3,i)})},function(t){c[t?"unshift":"push"](()=>{o=t,n(2,o)})}]}class J extends(o="function"==typeof HTMLElement?class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(y).filter(v);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){w(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(w(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=g}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}:o){constructor(t){super(),this.shadowRoot.innerHTML=
|
|
3
|
+
}`,f=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(d)}_`+l,h=M(t),{stylesheet:p,rules:m}=R.get(h)||(l=h,a={stylesheet:(a=t,g=L("style"),C((a=M(a)).head||a,g),g.sheet),rules:{}},R.set(l,a),a);m[f]||(m[f]=!0,p.insertRule(`@keyframes ${f} `+d,p.cssRules.length));var g=t.style.animation||"";return t.style.animation=(g?g+", ":"")+f+` ${o}ms linear ${i}ms 1 both`,A+=1,f}function j(t){T=t}const H=[],c=[],i=[],r=[],F=Promise.resolve();let D=!1;function N(t){i.push(t)}const a=new Set;let z,u=0;function O(){const t=T;do{for(;u<H.length;){const t=H[u];u++,j(t),e=n=void 0;var e,n=t.$$;null!==n.fragment&&(n.update(),w(n.before_update),e=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(N))}for(j(null),H.length=0,u=0;c.length;)c.pop()();for(let t=0;t<i.length;t+=1){const o=i[t];a.has(o)||(a.add(o),o())}}while(i.length=0,H.length);for(;r.length;)r.pop()();D=!1,a.clear(),j(t)}function P(t,e,n){t.dispatchEvent(function(t,{bubbles:e=!1,cancelable:n=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,e,n,void 0),o}((e?"intro":"outro")+n))}const d=new Set;let U;function W(t,e){t&&t.i&&(d.delete(t),t.i(e))}function f(t,e,n,o){t&&t.o&&(d.has(t)||(d.add(t),U.c.push(()=>{d.delete(t),o&&(n&&t.d(1),o())}),t.o(e)))}const I={duration:0};function h(a,t,e,n){let u=t(a,e),c=n?0:1,d=null,f=null,h=null;function p(){if(h){var t=a,e=h;const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-o.length;i&&(t.style.animation=o.join(", "),(A-=i)||x(()=>{A||(R.forEach(t=>{const e=t["stylesheet"];let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}}),R.clear())}))}}function m(t,e){var n=t.b-c;return e*=Math.abs(n),{a:c,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function o(t){const{delay:e=0,duration:n=300,easing:o=$,tick:i=g,css:r}=u||I,s={start:q()+e,b:t};if(t||((s.group=U).r+=1),!d&&!f){r&&(p(),h=S(a,c,t,n,e,o,r)),t&&i(0,1),d=m(s,n),N(()=>P(a,t,"start"));{var l=t=>{return f&&t>f.start&&(d=m(f,n),f=null,P(a,d.b,"start"),r&&(p(),h=S(a,c,d.b,d.duration,0,o,u.css))),d&&(t>=d.end?(i(c=d.b,1-c),P(a,d.b,"end"),f||(d.b?p():--d.group.r||w(d.group.c)),d=null):t>=d.start&&(t=t-d.start,c=d.a+d.d*o(t/d.duration),i(c,1-c))),!(!d&&!f)};let e;return 0===_.size&&x(E),void new Promise(t=>{_.add(e={c:l,f:t})})}}f=s}return{run(t){v(u)?(z||(z=Promise.resolve()).then(()=>{z=null}),z.then(()=>{u=u(),o(t)})):o(t)},end(){p(),d=f=null}}}function n(o,t,e,n,i,r,s,l=[-1]){var a=T;j(o);const u=o.$$={fragment:null,ctx:null,props:r,update:g,not_equal:i,bound:b(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:b(),dirty:l,skip_bound:!1,root:t.target||a.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(o,t.props||{},(t,e,...n)=>{var n=n.length?n[0]:e;return u.ctx&&i(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),c&&(n=t,-1===(t=o).$$.dirty[0]&&(H.push(t),D||(D=!0,F.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),c=!0,w(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){r=t.target;const g=Array.from(r.childNodes);u.fragment&&u.fragment.l(g),g.forEach(k)}else u.fragment&&u.fragment.c();t.intro&&W(o.$$.fragment);{var d=o;l=t.target;s=t.anchor;e=t.customElement;const{fragment:f,on_mount:h,on_destroy:p,after_update:m}=d.$$;f&&f.m(l,s),e||N(()=>{var t=h.map(y).filter(v);p?p.push(...t):w(t),d.$$.on_mount=[]}),m.forEach(N)}O()}j(a)}let o;function p(t,{delay:e=0,duration:n=400,easing:o=$}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:o,css:t=>"opacity: "+t*i}}function m(n){let o,i,e,r;return{c(){o=L("div"),(i=L("div")).innerHTML='<div class="ModalContainer" part="ModalContainer"><slot></slot></div>',l(i,"class","ModalWindow"),l(i,"part","ModalWindow"),l(i,"id","Modal")},m(t,e){s(t,o,e),C(o,i),n[6](i),n[7](o),r=!0},p(t,e){n=t},i(t){r||(N(()=>{(e=e||h(i,p,{transitionDuration:n[1]},!0)).run(1)}),r=!0)},o(t){(e=e||h(i,p,{transitionDuration:n[1]},!1)).run(0),r=!1},d(t){t&&k(o),n[6](null),t&&e&&e.end(),n[7](null)}}}function B(t){let n,o,i=t[0]&&m(t);return{c(){i&&i.c(),n=document.createTextNode(""),this.c=g},m(t,e){i&&i.m(t,e),s(t,n,e),o=!0},p(t,[e]){t[0]?i?(i.p(t,e),1&e&&W(i,1)):((i=m(t)).c(),W(i,1),i.m(n.parentNode,n)):i&&(U={r:0,c:[],p:U},f(i,1,1,()=>{i=null}),U.r||w(U.c),U=U.p)},i(t){o||(W(i),o=!0)},o(t){f(i),o=!1},d(t){i&&i.d(t),t&&k(n)}}}function G(t,e,n){let o,i,{show:r=!1}=e,{duration:s=350}=e,{clientstyling:l=""}=e,{clientstylingurl:a=""}=e;const u=t=>{"ModalClosed"==t.data.type&&n(0,r=!1),"ShowLimitsConfirmationModal"===t.data.type&&(n(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return e=()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)}),function(){if(T)return T;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e),t.$$set=t=>{"show"in t&&n(0,r=t.show),"duration"in t&&n(1,s=t.duration),"clientstyling"in t&&n(4,l=t.clientstyling),"clientstylingurl"in t&&n(5,a=t.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&a&&o){let t=new URL(a),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{o.appendChild(e)},1)})}if(20&t.$$.dirty&&l&&o){let t=document.createElement("style");t.innerHTML=l,o.appendChild(t)}},[r,s,o,void 0,l,a,function(t){c[t?"unshift":"push"](()=>{i=t,n(3,i)})},function(t){c[t?"unshift":"push"](()=>{o=t,n(2,o)})}]}class J extends(o="function"==typeof HTMLElement?class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(y).filter(v);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){w(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(w(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=g}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}:o){constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}</style>",n(this,{target:this.shadowRoot,props:function(t){const e={};for(const n of t)e[n.name]=n.value;return e}(this.attributes),customElement:!0},G,B,e,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),O()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),O()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}}return customElements.get("player-account-modal")||customElements.define("player-account-modal",J),J});
|
|
4
4
|
//# sourceMappingURL=player-account-modal.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-modal",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"main": "dist/player-account-modal.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "af607736d2fefc2fcb0fc155b2023fcd62806a5c"
|
|
40
40
|
}
|