@everymatrix/cashier-spinner 1.56.0 → 1.56.2
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/{CashierSpinner-CqC-ZElS.js → CashierSpinner-BjMVp151.js} +5 -3
- package/components/CashierSpinner-D6z7SWkW.cjs +1 -0
- package/components/{CashierSpinner-CLM51vIQ.js → CashierSpinner-IIQ4gs3G.js} +4 -2
- package/es2015/cashier-spinner.cjs +1 -1
- package/es2015/cashier-spinner.js +1 -1
- package/esnext/cashier-spinner.js +1 -1
- package/package.json +1 -1
- package/components/CashierSpinner-gwVhaE0o.cjs +0 -1
|
@@ -10,7 +10,7 @@ var k = (e, t, n) => t in e ? V(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
G.call(t, n) && k(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, B = (e, t) => z(e, F(t));
|
|
13
|
-
var f = (e, t, n) => k(e, typeof t != "symbol" ? t + "" : t, n);
|
|
13
|
+
var f = (e, t, n) => (k(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var M = (e, t, n) => new Promise((i, o) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -58,7 +58,8 @@ function X(e, t, n) {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function Y(e) {
|
|
61
|
-
if (!e)
|
|
61
|
+
if (!e)
|
|
62
|
+
return document;
|
|
62
63
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
63
64
|
return t && /** @type {ShadowRoot} */
|
|
64
65
|
t.host ? (
|
|
@@ -126,7 +127,8 @@ function m() {
|
|
|
126
127
|
} catch (t) {
|
|
127
128
|
throw d.length = 0, h = 0, t;
|
|
128
129
|
}
|
|
129
|
-
for (p(null), d.length = 0, h = 0; w.length; )
|
|
130
|
+
for (p(null), d.length = 0, h = 0; w.length; )
|
|
131
|
+
w.pop()();
|
|
130
132
|
for (let t = 0; t < g.length; t += 1) {
|
|
131
133
|
const n = g[t];
|
|
132
134
|
x.has(n) || (x.add(n), n());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var z=Object.defineProperty,F=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var k=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&k(e,n,t[n]);if(v)for(var n of v(t))K.call(t,n)&&k(e,n,t[n]);return e},M=(e,t)=>F(e,q(t));var f=(e,t,n)=>(k(e,typeof t!="symbol"?t+"":t,n),n);var B=(e,t,n)=>new Promise((i,o)=>{var s=l=>{try{u(n.next(l))}catch(r){o(r)}},c=l=>{try{u(n.throw(l))}catch(r){o(r)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function H(e){return e()}function T(){return Object.create(null)}function b(e){e.forEach(H)}function I(e){return typeof e=="function"}function Q(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function W(e){return Object.keys(e).length===0}function X(e,t){e.appendChild(t)}function Y(e,t,n){const i=Z(e);if(!i.getElementById(t)){const o=j("style");o.id=t,o.textContent=n,tt(i,o)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function tt(e,t){return X(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function j(e){return document.createElement(e)}function D(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let O;function y(e){O=e}const d=[],x=[];let g=[];const R=[],st=Promise.resolve();let E=!1;function it(){E||(E=!0,st.then(m))}function C(e){g.push(e)}const w=new Set;let h=0;function m(){if(h!==0)return;const e=O;do{try{for(;h<d.length;){const t=d[h];h++,y(t),rt(t.$$)}}catch(t){throw d.length=0,h=0,t}for(y(null),d.length=0,h=0;x.length;)x.pop()();for(let t=0;t<g.length;t+=1){const n=g[t];w.has(n)||(w.add(n),n())}g.length=0}while(d.length);for(;R.length;)R.pop()();E=!1,w.clear(),y(e)}function rt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}function ot(e){const t=[],n=[];g.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),g=t}const ct=new Set;function lt(e,t){e&&e.i&&(ct.delete(e),e.i(t))}function ut(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),C(()=>{const s=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...s):b(s),e.$$.on_mount=[]}),o.forEach(C)}function $t(e,t){const n=e.$$;n.fragment!==null&&(ot(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ft(e,t){e.$$.dirty[0]===-1&&(d.push(e),it(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function at(e,t,n,i,o,s,c=null,u=[-1]){const l=O;y(e);const r=e.$$={fragment:null,ctx:[],props:s,update:_,not_equal:o,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(r.root);let a=!1;if(r.ctx=n?n(e,t.props||{},($,L,...A)=>{const N=A.length?A[0]:L;return r.ctx&&o(r.ctx[$],r.ctx[$]=N)&&(!r.skip_bound&&r.bound[$]&&r.bound[$](N),a&&ft(e,$)),L}):[],r.update(),a=!0,b(r.before_update),r.fragment=i?i(r.ctx):!1,t.target){if(t.hydrate){const $=et(t.target);r.fragment&&r.fragment.l($),$.forEach(S)}else r.fragment&&r.fragment.c();t.intro&<(e.$$.fragment),ut(e,t.target,t.anchor),m()}y(l)}let J;typeof HTMLElement=="function"&&(J=class extends HTMLElement{constructor(t,n,i){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(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 o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return B(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=j("slot"),s!=="default"&&D(c,"name",s)},m:function(r,a){U(r,c,a)},d:function(r){r&&S(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nt(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]=p(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:M(P({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{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=p(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(o),o();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=p(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 p(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){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(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ht(e,t,n,i,o,s){let c=class extends J{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var r;l=p(u,l,t),this.$$d[u]=l,(r=this.$$c)==null||r.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class dt{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){$t(this,1),this.$destroy=_}$on(t,n){if(!I(n))return _;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!W(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _t="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);function gt(e){Y(e,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function yt(e){let t;return{c(){t=j("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',D(t,"class","CashierSpinner")},m(n,i){U(n,t,i),e[3](t)},p:_,i:_,o:_,d(n){n&&S(t),e[3](null)}}}function pt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:o=""}=t,s;const c=()=>{let r=document.createElement("style");r.innerHTML=i,s.appendChild(r)},u=()=>{let r=new URL(o),a=document.createElement("style");fetch(r.href).then($=>$.text()).then($=>{a.innerHTML=$,setTimeout(()=>{s.appendChild(a)},1)})};function l(r){x[r?"unshift":"push"](()=>{s=r,n(0,s)})}return e.$$set=r=>{"clientstyling"in r&&n(1,i=r.clientstyling),"clientstylingurl"in r&&n(2,o=r.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&3&&i&&s&&c(),e.$$.dirty&5&&o&&s&&u()},[s,i,o,l]}class V extends dt{constructor(t){super(),at(this,t,pt,yt,Q,{clientstyling:1,clientstylingurl:2},gt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),m()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),m()}}ht(V,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=V;
|
|
@@ -29,7 +29,8 @@ function U(t, e, n) {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
function D(t) {
|
|
32
|
-
if (!t)
|
|
32
|
+
if (!t)
|
|
33
|
+
return document;
|
|
33
34
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
34
35
|
return e && /** @type {ShadowRoot} */
|
|
35
36
|
e.host ? (
|
|
@@ -97,7 +98,8 @@ function y() {
|
|
|
97
98
|
} catch (e) {
|
|
98
99
|
throw a.length = 0, f = 0, e;
|
|
99
100
|
}
|
|
100
|
-
for (g(null), a.length = 0, f = 0; k.length; )
|
|
101
|
+
for (g(null), a.length = 0, f = 0; k.length; )
|
|
102
|
+
k.pop()();
|
|
101
103
|
for (let e = 0; e < d.length; e += 1) {
|
|
102
104
|
const n = d[e];
|
|
103
105
|
b.has(n) || (b.add(n), n());
|
|
@@ -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/CashierSpinner-
|
|
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/CashierSpinner-D6z7SWkW.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierSpinner-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierSpinner-BjMVp151.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-spinner") && customElements.define("cashier-spinner", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty,F=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var k=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&k(e,n,t[n]);if(v)for(var n of v(t))K.call(t,n)&&k(e,n,t[n]);return e},M=(e,t)=>F(e,q(t));var f=(e,t,n)=>k(e,typeof t!="symbol"?t+"":t,n);var B=(e,t,n)=>new Promise((i,o)=>{var s=l=>{try{u(n.next(l))}catch(r){o(r)}},c=l=>{try{u(n.throw(l))}catch(r){o(r)}},u=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function H(e){return e()}function T(){return Object.create(null)}function b(e){e.forEach(H)}function I(e){return typeof e=="function"}function Q(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function W(e){return Object.keys(e).length===0}function X(e,t){e.appendChild(t)}function Y(e,t,n){const i=Z(e);if(!i.getElementById(t)){const o=j("style");o.id=t,o.textContent=n,tt(i,o)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function tt(e,t){return X(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function j(e){return document.createElement(e)}function D(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let O;function y(e){O=e}const d=[],x=[];let g=[];const R=[],st=Promise.resolve();let E=!1;function it(){E||(E=!0,st.then(m))}function C(e){g.push(e)}const w=new Set;let h=0;function m(){if(h!==0)return;const e=O;do{try{for(;h<d.length;){const t=d[h];h++,y(t),rt(t.$$)}}catch(t){throw d.length=0,h=0,t}for(y(null),d.length=0,h=0;x.length;)x.pop()();for(let t=0;t<g.length;t+=1){const n=g[t];w.has(n)||(w.add(n),n())}g.length=0}while(d.length);for(;R.length;)R.pop()();E=!1,w.clear(),y(e)}function rt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}function ot(e){const t=[],n=[];g.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),g=t}const ct=new Set;function lt(e,t){e&&e.i&&(ct.delete(e),e.i(t))}function ut(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),C(()=>{const s=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...s):b(s),e.$$.on_mount=[]}),o.forEach(C)}function $t(e,t){const n=e.$$;n.fragment!==null&&(ot(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ft(e,t){e.$$.dirty[0]===-1&&(d.push(e),it(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function at(e,t,n,i,o,s,c=null,u=[-1]){const l=O;y(e);const r=e.$$={fragment:null,ctx:[],props:s,update:_,not_equal:o,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(r.root);let a=!1;if(r.ctx=n?n(e,t.props||{},($,L,...A)=>{const N=A.length?A[0]:L;return r.ctx&&o(r.ctx[$],r.ctx[$]=N)&&(!r.skip_bound&&r.bound[$]&&r.bound[$](N),a&&ft(e,$)),L}):[],r.update(),a=!0,b(r.before_update),r.fragment=i?i(r.ctx):!1,t.target){if(t.hydrate){const $=et(t.target);r.fragment&&r.fragment.l($),$.forEach(S)}else r.fragment&&r.fragment.c();t.intro&<(e.$$.fragment),ut(e,t.target,t.anchor),m()}y(l)}let J;typeof HTMLElement=="function"&&(J=class extends HTMLElement{constructor(t,n,i){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(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 o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return B(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=j("slot"),s!=="default"&&D(c,"name",s)},m:function(r,a){U(r,c,a)},d:function(r){r&&S(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nt(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]=p(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:M(P({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{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=p(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(o),o();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=p(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 p(e,t,n,i){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){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(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ht(e,t,n,i,o,s){let c=class extends J{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var r;l=p(u,l,t),this.$$d[u]=l,(r=this.$$c)==null||r.$set({[u]:l})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class dt{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){$t(this,1),this.$destroy=_}$on(t,n){if(!I(n))return _;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!W(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _t="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);function gt(e){Y(e,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function yt(e){let t;return{c(){t=j("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',D(t,"class","CashierSpinner")},m(n,i){U(n,t,i),e[3](t)},p:_,i:_,o:_,d(n){n&&S(t),e[3](null)}}}function pt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:o=""}=t,s;const c=()=>{let r=document.createElement("style");r.innerHTML=i,s.appendChild(r)},u=()=>{let r=new URL(o),a=document.createElement("style");fetch(r.href).then($=>$.text()).then($=>{a.innerHTML=$,setTimeout(()=>{s.appendChild(a)},1)})};function l(r){x[r?"unshift":"push"](()=>{s=r,n(0,s)})}return e.$$set=r=>{"clientstyling"in r&&n(1,i=r.clientstyling),"clientstylingurl"in r&&n(2,o=r.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&3&&i&&s&&c(),e.$$.dirty&5&&o&&s&&u()},[s,i,o,l]}class V extends dt{constructor(t){super(),at(this,t,pt,yt,Q,{clientstyling:1,clientstylingurl:2},gt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),m()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),m()}}ht(V,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=V;
|