@everymatrix/cashier-spinner 1.76.3 → 1.76.4
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-C-EE7HPN.js → CashierSpinner-7qe_wr9T.js} +25 -25
- package/components/CashierSpinner-B9EZ5JkP.cjs +1 -0
- package/components/{CashierSpinner-tzRgsdba.js → CashierSpinner-DkUtfknD.js} +38 -38
- 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-Bler-G86.cjs +0 -1
|
@@ -147,10 +147,10 @@ function tt(t, e) {
|
|
|
147
147
|
function et(t, e) {
|
|
148
148
|
t.$$.dirty[0] === -1 && ($.push(t), K(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
149
149
|
}
|
|
150
|
-
function nt(t, e, n, i, s, r, c = null,
|
|
150
|
+
function nt(t, e, n, i, s, r, c = null, l = [-1]) {
|
|
151
151
|
const o = p;
|
|
152
152
|
_(t);
|
|
153
|
-
const
|
|
153
|
+
const u = t.$$ = {
|
|
154
154
|
fragment: null,
|
|
155
155
|
ctx: [],
|
|
156
156
|
// state
|
|
@@ -167,21 +167,21 @@ function nt(t, e, n, i, s, r, c = null, u = [-1]) {
|
|
|
167
167
|
context: new Map(e.context || (o ? o.$$.context : [])),
|
|
168
168
|
// everything else
|
|
169
169
|
callbacks: v(),
|
|
170
|
-
dirty:
|
|
170
|
+
dirty: l,
|
|
171
171
|
skip_bound: !1,
|
|
172
172
|
root: e.target || o.$$.root
|
|
173
173
|
};
|
|
174
|
-
c && c(
|
|
174
|
+
c && c(u.root);
|
|
175
175
|
let S = !1;
|
|
176
|
-
if (
|
|
176
|
+
if (u.ctx = n ? n(t, e.props || {}, (f, L, ...j) => {
|
|
177
177
|
const O = j.length ? j[0] : L;
|
|
178
|
-
return
|
|
179
|
-
}),
|
|
178
|
+
return u.ctx && s(u.ctx[f], u.ctx[f] = O) && (!u.skip_bound && u.bound[f] && u.bound[f](O), S && et(t, f)), L;
|
|
179
|
+
}) : [], u.update(), S = !0, y(u.before_update), u.fragment = i ? i(u.ctx) : !1, e.target) {
|
|
180
180
|
if (e.hydrate) {
|
|
181
181
|
const f = F(e.target);
|
|
182
|
-
|
|
182
|
+
u.fragment && u.fragment.l(f), f.forEach(E);
|
|
183
183
|
} else
|
|
184
|
-
|
|
184
|
+
u.fragment && u.fragment.c();
|
|
185
185
|
e.intro && Y(t.$$.fragment), Z(t, e.target, e.anchor), m();
|
|
186
186
|
}
|
|
187
187
|
_(o);
|
|
@@ -235,8 +235,8 @@ typeof HTMLElement == "function" && (R = class extends HTMLElement {
|
|
|
235
235
|
* @param {HTMLElement} target
|
|
236
236
|
* @param {HTMLElement} [anchor]
|
|
237
237
|
*/
|
|
238
|
-
m: function(o,
|
|
239
|
-
B(o, r,
|
|
238
|
+
m: function(o, u) {
|
|
239
|
+
B(o, r, u);
|
|
240
240
|
},
|
|
241
241
|
d: function(o) {
|
|
242
242
|
o && E(r);
|
|
@@ -340,23 +340,23 @@ function st(t, e, n, i, s, r) {
|
|
|
340
340
|
}
|
|
341
341
|
static get observedAttributes() {
|
|
342
342
|
return Object.keys(e).map(
|
|
343
|
-
(
|
|
343
|
+
(l) => (e[l].attribute || l).toLowerCase()
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
|
-
return Object.keys(e).forEach((
|
|
348
|
-
Object.defineProperty(c.prototype,
|
|
347
|
+
return Object.keys(e).forEach((l) => {
|
|
348
|
+
Object.defineProperty(c.prototype, l, {
|
|
349
349
|
get() {
|
|
350
|
-
return this.$$c &&
|
|
350
|
+
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
351
351
|
},
|
|
352
352
|
set(o) {
|
|
353
|
-
o = g(
|
|
353
|
+
o = g(l, o, e), this.$$d[l] = o, this.$$c?.$set({ [l]: o });
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
}), i.forEach((
|
|
357
|
-
Object.defineProperty(c.prototype,
|
|
356
|
+
}), i.forEach((l) => {
|
|
357
|
+
Object.defineProperty(c.prototype, l, {
|
|
358
358
|
get() {
|
|
359
|
-
return this.$$c?.[
|
|
359
|
+
return this.$$c?.[l];
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
}), t.element = /** @type {any} */
|
|
@@ -423,7 +423,7 @@ function ct(t, e) {
|
|
|
423
423
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function lt(t, e, n) {
|
|
427
427
|
if (window.emMessageBus) {
|
|
428
428
|
const i = document.createElement("style");
|
|
429
429
|
window.emMessageBus.subscribe(e, (s) => {
|
|
@@ -431,7 +431,7 @@ function ut(t, e, n) {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function ut(t) {
|
|
435
435
|
U(t, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 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-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@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}}");
|
|
436
436
|
}
|
|
437
437
|
function ft(t) {
|
|
@@ -455,7 +455,7 @@ function at(t, e, n) {
|
|
|
455
455
|
let { clientstyling: i = "" } = e, { clientstylingurl: s = "" } = e, { mbsource: r = "" } = e, c;
|
|
456
456
|
q(() => () => {
|
|
457
457
|
});
|
|
458
|
-
function
|
|
458
|
+
function l(o) {
|
|
459
459
|
w[o ? "unshift" : "push"](() => {
|
|
460
460
|
c = o, n(0, c);
|
|
461
461
|
});
|
|
@@ -466,8 +466,8 @@ function at(t, e, n) {
|
|
|
466
466
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
467
467
|
3 && i && c && ot(c, i), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
468
468
|
5 && s && c && ct(c, s), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
469
|
-
9 && r && c &&
|
|
470
|
-
}, [c, i, s, r,
|
|
469
|
+
9 && r && c && lt(c, `${r}.Style`);
|
|
470
|
+
}, [c, i, s, r, l];
|
|
471
471
|
}
|
|
472
472
|
class $t extends it {
|
|
473
473
|
constructor(e) {
|
|
@@ -482,7 +482,7 @@ class $t extends it {
|
|
|
482
482
|
clientstylingurl: 2,
|
|
483
483
|
mbsource: 3
|
|
484
484
|
},
|
|
485
|
-
|
|
485
|
+
ut
|
|
486
486
|
);
|
|
487
487
|
}
|
|
488
488
|
get clientstyling() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var J=Object.defineProperty,V=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var k=(e,t,n)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&k(e,n,t[n]);if(A)for(var n of A(t))K.call(t,n)&&k(e,n,t[n]);return e},B=(e,t)=>V(e,q(t));var f=(e,t,n)=>(k(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,r)=>{var i=c=>{try{u(n.next(c))}catch(l){r(l)}},o=c=>{try{u(n.throw(c))}catch(l){r(l)}},u=c=>c.done?s(c.value):Promise.resolve(c.value).then(i,o);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(){}function H(e){return e()}function T(){return Object.create(null)}function w(e){e.forEach(H)}function z(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 s=Z(e);if(!s.getElementById(t)){const r=L("style");r.id=t,r.textContent=n,tt(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 tt(e,t){return X(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function L(e){return document.createElement(e)}function I(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 p;function m(e){p=e}function st(){if(!p)throw new Error("Function called outside component initialization");return p}function it(e){st().$$.on_mount.push(e)}const h=[],E=[];let _=[];const R=[],rt=Promise.resolve();let S=!1;function ot(){S||(S=!0,rt.then(g))}function C(e){_.push(e)}const x=new Set;let $=0;function g(){if($!==0)return;const e=p;do{try{for(;$<h.length;){const t=h[$];$++,m(t),ct(t.$$)}}catch(t){throw h.length=0,$=0,t}for(m(null),h.length=0,$=0;E.length;)E.pop()();for(let t=0;t<_.length;t+=1){const n=_[t];x.has(n)||(x.add(n),n())}_.length=0}while(h.length);for(;R.length;)R.pop()();S=!1,x.clear(),m(e)}function ct(e){if(e.fragment!==null){e.update(),w(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}function lt(e){const t=[],n=[];_.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),_=t}const ut=new Set;function ft(e,t){e&&e.i&&(ut.delete(e),e.i(t))}function at(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),C(()=>{const i=e.$$.on_mount.map(H).filter(z);e.$$.on_destroy?e.$$.on_destroy.push(...i):w(i),e.$$.on_mount=[]}),r.forEach(C)}function $t(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(e,t){e.$$.dirty[0]===-1&&(h.push(e),ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function dt(e,t,n,s,r,i,o=null,u=[-1]){const c=p;m(e);const l=e.$$={fragment:null,ctx:[],props:i,update:d,not_equal:r,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||c.$$.root};o&&o(l.root);let y=!1;if(l.ctx=n?n(e,t.props||{},(a,O,...v)=>{const M=v.length?v[0]:O;return l.ctx&&r(l.ctx[a],l.ctx[a]=M)&&(!l.skip_bound&&l.bound[a]&&l.bound[a](M),y&&ht(e,a)),O}):[],l.update(),y=!0,w(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const a=et(t.target);l.fragment&&l.fragment.l(a),a.forEach(j)}else l.fragment&&l.fragment.c();t.intro&&ft(e.$$.fragment),at(e,t.target,t.anchor),g()}m(c)}let D;typeof HTMLElement=="function"&&(D=class extends HTMLElement{constructor(t,n,s){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,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 P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=L("slot"),i!=="default"&&I(o,"name",i)},m:function(l,y){U(l,o,y)},d:function(l){l&&j(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=nt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=b(o,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:B(N({},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 o=b(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const o of this.$$l[i]){const u=this.$$c.$on(i,o);this.$$l_u.set(o,u)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=b(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 b(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 _t(e,t,n,s,r,i){let o=class extends D{constructor(){super(e,n,r),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(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var l;c=b(u,c,t),this.$$d[u]=c,(l=this.$$c)==null||l.$set({[u]:c})}})}),s.forEach(u=>{Object.defineProperty(o.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),e.element=o,o}class mt{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){$t(this,1),this.$destroy=d}$on(t,n){if(!z(n))return d;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&&!W(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gt);function pt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function yt(e,t){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 bt(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,r=>{s.innerHTML=r,e&&e.appendChild(s)})}}function wt(e){Y(e,"svelte-sjjtuo",".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 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-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@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 kt(e){let t;return{c(){t=L("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>',I(t,"class","CashierSpinner")},m(n,s){U(n,t,s),e[4](t)},p:d,i:d,o:d,d(n){n&&j(t),e[4](null)}}}function xt(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:r=""}=t,{mbsource:i=""}=t,o;it(()=>()=>{});function u(c){E[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"clientstyling"in c&&n(1,s=c.clientstyling),"clientstylingurl"in c&&n(2,r=c.clientstylingurl),"mbsource"in c&&n(3,i=c.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&s&&o&&pt(o,s),e.$$.dirty&5&&r&&o&&yt(o,r),e.$$.dirty&9&&i&&o&&bt(o,`${i}.Style`)},[o,s,r,i,u]}class F extends mt{constructor(t){super(),dt(this,t,xt,kt,Q,{clientstyling:1,clientstylingurl:2,mbsource:3},wt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),g()}}_t(F,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=F;
|
|
@@ -14,18 +14,18 @@ var f = (e, t, n) => (x(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
|
14
14
|
var P = (e, t, n) => new Promise((s, r) => {
|
|
15
15
|
var i = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
r(
|
|
17
|
+
u(n.next(c));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
r(l);
|
|
20
20
|
}
|
|
21
21
|
}, o = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
r(
|
|
23
|
+
u(n.throw(c));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
r(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(i, o);
|
|
28
|
+
u((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function d() {
|
|
31
31
|
}
|
|
@@ -158,9 +158,9 @@ function ct(e) {
|
|
|
158
158
|
const t = [], n = [];
|
|
159
159
|
_.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), _ = t;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
function
|
|
163
|
-
e && e.i && (
|
|
161
|
+
const lt = /* @__PURE__ */ new Set();
|
|
162
|
+
function ut(e, t) {
|
|
163
|
+
e && e.i && (lt.delete(e), e.i(t));
|
|
164
164
|
}
|
|
165
165
|
function ft(e, t, n) {
|
|
166
166
|
const { fragment: s, after_update: r } = e.$$;
|
|
@@ -176,10 +176,10 @@ function at(e, t) {
|
|
|
176
176
|
function $t(e, t) {
|
|
177
177
|
e.$$.dirty[0] === -1 && (h.push(e), rt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
178
178
|
}
|
|
179
|
-
function ht(e, t, n, s, r, i, o = null,
|
|
179
|
+
function ht(e, t, n, s, r, i, o = null, u = [-1]) {
|
|
180
180
|
const c = g;
|
|
181
181
|
m(e);
|
|
182
|
-
const
|
|
182
|
+
const l = e.$$ = {
|
|
183
183
|
fragment: null,
|
|
184
184
|
ctx: [],
|
|
185
185
|
// state
|
|
@@ -196,22 +196,22 @@ function ht(e, t, n, s, r, i, o = null, l = [-1]) {
|
|
|
196
196
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
197
197
|
// everything else
|
|
198
198
|
callbacks: R(),
|
|
199
|
-
dirty:
|
|
199
|
+
dirty: u,
|
|
200
200
|
skip_bound: !1,
|
|
201
201
|
root: t.target || c.$$.root
|
|
202
202
|
};
|
|
203
|
-
o && o(
|
|
203
|
+
o && o(l.root);
|
|
204
204
|
let y = !1;
|
|
205
|
-
if (
|
|
205
|
+
if (l.ctx = n ? n(e, t.props || {}, (a, O, ...v) => {
|
|
206
206
|
const A = v.length ? v[0] : O;
|
|
207
|
-
return
|
|
208
|
-
}),
|
|
207
|
+
return l.ctx && r(l.ctx[a], l.ctx[a] = A) && (!l.skip_bound && l.bound[a] && l.bound[a](A), y && $t(e, a)), O;
|
|
208
|
+
}) : [], l.update(), y = !0, w(l.before_update), l.fragment = s ? s(l.ctx) : !1, t.target) {
|
|
209
209
|
if (t.hydrate) {
|
|
210
210
|
const a = tt(t.target);
|
|
211
|
-
|
|
211
|
+
l.fragment && l.fragment.l(a), a.forEach(L);
|
|
212
212
|
} else
|
|
213
|
-
|
|
214
|
-
t.intro &&
|
|
213
|
+
l.fragment && l.fragment.c();
|
|
214
|
+
t.intro && ut(e.$$.fragment), ft(e, t.target, t.anchor), p();
|
|
215
215
|
}
|
|
216
216
|
m(c);
|
|
217
217
|
}
|
|
@@ -266,11 +266,11 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
|
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
|
-
m: function(
|
|
270
|
-
U(
|
|
269
|
+
m: function(l, y) {
|
|
270
|
+
U(l, o, y);
|
|
271
271
|
},
|
|
272
|
-
d: function(
|
|
273
|
-
|
|
272
|
+
d: function(l) {
|
|
273
|
+
l && L(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
@@ -312,8 +312,8 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
|
|
|
312
312
|
this.$$c.$$.after_update.push(r), r();
|
|
313
313
|
for (const i in this.$$l)
|
|
314
314
|
for (const o of this.$$l[i]) {
|
|
315
|
-
const
|
|
316
|
-
this.$$l_u.set(o,
|
|
315
|
+
const u = this.$$c.$on(i, o);
|
|
316
|
+
this.$$l_u.set(o, u);
|
|
317
317
|
}
|
|
318
318
|
this.$$l = {};
|
|
319
319
|
}
|
|
@@ -373,25 +373,25 @@ function dt(e, t, n, s, r, i) {
|
|
|
373
373
|
}
|
|
374
374
|
static get observedAttributes() {
|
|
375
375
|
return Object.keys(t).map(
|
|
376
|
-
(
|
|
376
|
+
(u) => (t[u].attribute || u).toLowerCase()
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
return Object.keys(t).forEach((
|
|
381
|
-
Object.defineProperty(o.prototype,
|
|
380
|
+
return Object.keys(t).forEach((u) => {
|
|
381
|
+
Object.defineProperty(o.prototype, u, {
|
|
382
382
|
get() {
|
|
383
|
-
return this.$$c &&
|
|
383
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
384
384
|
},
|
|
385
385
|
set(c) {
|
|
386
|
-
var
|
|
387
|
-
c = b(
|
|
386
|
+
var l;
|
|
387
|
+
c = b(u, c, t), this.$$d[u] = c, (l = this.$$c) == null || l.$set({ [u]: c });
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
|
-
}), s.forEach((
|
|
391
|
-
Object.defineProperty(o.prototype,
|
|
390
|
+
}), s.forEach((u) => {
|
|
391
|
+
Object.defineProperty(o.prototype, u, {
|
|
392
392
|
get() {
|
|
393
393
|
var c;
|
|
394
|
-
return (c = this.$$c) == null ? void 0 : c[
|
|
394
|
+
return (c = this.$$c) == null ? void 0 : c[u];
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), e.element = /** @type {any} */
|
|
@@ -492,7 +492,7 @@ function xt(e, t, n) {
|
|
|
492
492
|
let { clientstyling: s = "" } = t, { clientstylingurl: r = "" } = t, { mbsource: i = "" } = t, o;
|
|
493
493
|
st(() => () => {
|
|
494
494
|
});
|
|
495
|
-
function
|
|
495
|
+
function u(c) {
|
|
496
496
|
E[c ? "unshift" : "push"](() => {
|
|
497
497
|
o = c, n(0, o);
|
|
498
498
|
});
|
|
@@ -504,7 +504,7 @@ function xt(e, t, n) {
|
|
|
504
504
|
3 && s && o && pt(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
505
505
|
5 && r && o && gt(o, r), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
506
506
|
9 && i && o && yt(o, `${i}.Style`);
|
|
507
|
-
}, [o, s, r, i,
|
|
507
|
+
}, [o, s, r, i, u];
|
|
508
508
|
}
|
|
509
509
|
class kt extends _t {
|
|
510
510
|
constructor(t) {
|
|
@@ -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-B9EZ5JkP.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-DkUtfknD.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 J=Object.defineProperty,V=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var k=(e,t,n)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&k(e,n,t[n]);if(A)for(var n of A(t))K.call(t,n)&&k(e,n,t[n]);return e},B=(e,t)=>V(e,q(t));var f=(e,t,n)=>(k(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,r)=>{var i=c=>{try{l(n.next(c))}catch(u){r(u)}},o=c=>{try{l(n.throw(c))}catch(u){r(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(i,o);l((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(){}function H(e){return e()}function T(){return Object.create(null)}function w(e){e.forEach(H)}function z(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 s=Z(e);if(!s.getElementById(t)){const r=L("style");r.id=t,r.textContent=n,tt(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 tt(e,t){return X(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function L(e){return document.createElement(e)}function I(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 p;function m(e){p=e}function st(){if(!p)throw new Error("Function called outside component initialization");return p}function it(e){st().$$.on_mount.push(e)}const h=[],E=[];let _=[];const R=[],rt=Promise.resolve();let S=!1;function ot(){S||(S=!0,rt.then(g))}function C(e){_.push(e)}const x=new Set;let $=0;function g(){if($!==0)return;const e=p;do{try{for(;$<h.length;){const t=h[$];$++,m(t),ct(t.$$)}}catch(t){throw h.length=0,$=0,t}for(m(null),h.length=0,$=0;E.length;)E.pop()();for(let t=0;t<_.length;t+=1){const n=_[t];x.has(n)||(x.add(n),n())}_.length=0}while(h.length);for(;R.length;)R.pop()();S=!1,x.clear(),m(e)}function ct(e){if(e.fragment!==null){e.update(),w(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}function ut(e){const t=[],n=[];_.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),_=t}const lt=new Set;function ft(e,t){e&&e.i&&(lt.delete(e),e.i(t))}function at(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),C(()=>{const i=e.$$.on_mount.map(H).filter(z);e.$$.on_destroy?e.$$.on_destroy.push(...i):w(i),e.$$.on_mount=[]}),r.forEach(C)}function $t(e,t){const n=e.$$;n.fragment!==null&&(ut(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(e,t){e.$$.dirty[0]===-1&&(h.push(e),ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function dt(e,t,n,s,r,i,o=null,l=[-1]){const c=p;m(e);const u=e.$$={fragment:null,ctx:[],props:i,update:d,not_equal:r,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:T(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};o&&o(u.root);let y=!1;if(u.ctx=n(e,t.props||{},(a,O,...v)=>{const M=v.length?v[0]:O;return u.ctx&&r(u.ctx[a],u.ctx[a]=M)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](M),y&&ht(e,a)),O}),u.update(),y=!0,w(u.before_update),u.fragment=s(u.ctx),t.target){if(t.hydrate){const a=et(t.target);u.fragment&&u.fragment.l(a),a.forEach(j)}else u.fragment&&u.fragment.c();t.intro&&ft(e.$$.fragment),at(e,t.target,t.anchor),g()}m(c)}let D;typeof HTMLElement=="function"&&(D=class extends HTMLElement{constructor(t,n,s){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,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 P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=L("slot"),i!=="default"&&I(o,"name",i)},m:function(u,y){U(u,o,y)},d:function(u){u&&j(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=nt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=b(o,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:B(N({},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 o=b(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const o of this.$$l[i]){const l=this.$$c.$on(i,o);this.$$l_u.set(o,l)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=b(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 b(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 _t(e,t,n,s,r,i){let o=class extends D{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){var u;c=b(l,c,t),this.$$d[l]=c,(u=this.$$c)==null||u.$set({[l]:c})}})}),s.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var c;return(c=this.$$c)==null?void 0:c[l]}})}),e.element=o,o}class mt{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){$t(this,1),this.$destroy=d}$on(t,n){if(!z(n))return d;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&&!W(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gt);function pt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function yt(e,t){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 bt(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,r=>{s.innerHTML=r,e&&e.appendChild(s)})}}function wt(e){Y(e,"svelte-sjjtuo",".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 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-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@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 kt(e){let t;return{c(){t=L("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>',I(t,"class","CashierSpinner")},m(n,s){U(n,t,s),e[4](t)},p:d,i:d,o:d,d(n){n&&j(t),e[4](null)}}}function xt(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:r=""}=t,{mbsource:i=""}=t,o;it(()=>()=>{});function l(c){E[c?"unshift":"push"](()=>{o=c,n(0,o)})}return e.$$set=c=>{"clientstyling"in c&&n(1,s=c.clientstyling),"clientstylingurl"in c&&n(2,r=c.clientstylingurl),"mbsource"in c&&n(3,i=c.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&s&&o&&pt(o,s),e.$$.dirty&5&&r&&o&&yt(o,r),e.$$.dirty&9&&i&&o&&bt(o,`${i}.Style`)},[o,s,r,i,l]}class F extends mt{constructor(t){super(),dt(this,t,xt,kt,Q,{clientstyling:1,clientstylingurl:2,mbsource:3},wt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),g()}}_t(F,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=F;
|