@everymatrix/cashier-spinner 1.88.6 → 1.88.7

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.
@@ -81,7 +81,7 @@ function V() {
81
81
  function K(t) {
82
82
  V().$$.on_mount.push(t);
83
83
  }
84
- const h = [], S = [];
84
+ const a = [], S = [];
85
85
  let _ = [];
86
86
  const M = [], W = /* @__PURE__ */ Promise.resolve();
87
87
  let x = !1;
@@ -92,28 +92,28 @@ function k(t) {
92
92
  _.push(t);
93
93
  }
94
94
  const w = /* @__PURE__ */ new Set();
95
- let a = 0;
95
+ let h = 0;
96
96
  function y() {
97
- if (a !== 0)
97
+ if (h !== 0)
98
98
  return;
99
99
  const t = m;
100
100
  do {
101
101
  try {
102
- for (; a < h.length; ) {
103
- const e = h[a];
104
- a++, p(e), q(e.$$);
102
+ for (; h < a.length; ) {
103
+ const e = a[h];
104
+ h++, p(e), q(e.$$);
105
105
  }
106
106
  } catch (e) {
107
- throw h.length = 0, a = 0, e;
107
+ throw a.length = 0, h = 0, e;
108
108
  }
109
- for (p(null), h.length = 0, a = 0; S.length; )
109
+ for (p(null), a.length = 0, h = 0; S.length; )
110
110
  S.pop()();
111
111
  for (let e = 0; e < _.length; e += 1) {
112
112
  const n = _[e];
113
113
  w.has(n) || (w.add(n), n());
114
114
  }
115
115
  _.length = 0;
116
- } while (h.length);
116
+ } while (a.length);
117
117
  for (; M.length; )
118
118
  M.pop()();
119
119
  x = !1, w.clear(), p(t);
@@ -145,7 +145,7 @@ function et(t, e) {
145
145
  n.fragment !== null && (Q(n.after_update), b(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
146
146
  }
147
147
  function nt(t, e) {
148
- t.$$.dirty[0] === -1 && (h.push(t), Y(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
148
+ t.$$.dirty[0] === -1 && (a.push(t), Y(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
149
149
  }
150
150
  function st(t, e, n, r, s, i, c = null, u = [-1]) {
151
151
  const l = m;
@@ -431,7 +431,7 @@ function lt(t, e, n, r = !1) {
431
431
  return;
432
432
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
433
433
  return n = ft(t, e), n;
434
- window[$] || (window[$] = {}), n = at(t, e);
434
+ window[$] || (window[$] = {}), n = ht(t, e);
435
435
  const i = n.unsubscribe.bind(n), c = () => {
436
436
  if (window[$][e]) {
437
437
  const u = window[$][e];
@@ -447,12 +447,12 @@ function ft(t, e) {
447
447
  t && (n.innerHTML = r, t.appendChild(n));
448
448
  });
449
449
  }
450
- function at(t, e) {
450
+ function ht(t, e) {
451
451
  return window.emMessageBus.subscribe(e, (n) => {
452
452
  if (!t)
453
453
  return;
454
454
  const r = t.getRootNode(), s = window[$];
455
- let i = s[e]?.sheet;
455
+ let i = s[e] && s[e].sheet;
456
456
  i ? s[e].refCount = s[e].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), s[e] = {
457
457
  sheet: i,
458
458
  refCount: 1
@@ -461,7 +461,7 @@ function at(t, e) {
461
461
  c.includes(i) || (r.adoptedStyleSheets = [...c, i]);
462
462
  });
463
463
  }
464
- function ht(t) {
464
+ function at(t) {
465
465
  D(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}}");
466
466
  }
467
467
  function $t(t) {
@@ -512,7 +512,7 @@ class _t extends it {
512
512
  clientstylingurl: 2,
513
513
  mbsource: 3
514
514
  },
515
- ht
515
+ at
516
516
  );
517
517
  }
518
518
  get clientstyling() {
@@ -1 +1 @@
1
- "use strict";var J=Object.defineProperty,V=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Y=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,B=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&k(e,n,t[n]);if(N)for(var n of N(t))Y.call(t,n)&&k(e,n,t[n]);return e},T=(e,t)=>V(e,K(t));var f=(e,t,n)=>(k(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,i)=>{var r=l=>{try{u(n.next(l))}catch(c){i(c)}},o=l=>{try{u(n.throw(l))}catch(c){i(c)}},u=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,o);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function U(e){return e()}function R(){return Object.create(null)}function S(e){e.forEach(U)}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 Q(e){return Object.keys(e).length===0}function X(e,t){e.appendChild(t)}function Z(e,t,n){const s=tt(e);if(!s.getElementById(t)){const i=O("style");i.id=t,i.textContent=n,et(s,i)}}function tt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function et(e,t){return X(e.head||e,t),t.sheet}function D(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function O(e){return document.createElement(e)}function I(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function nt(e){return Array.from(e.childNodes)}function st(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let g;function y(e){g=e}function rt(){if(!g)throw new Error("Function called outside component initialization");return g}function it(e){rt().$$.on_mount.push(e)}const d=[],C=[];let p=[];const H=[],ot=Promise.resolve();let E=!1;function ct(){E||(E=!0,ot.then(m))}function L(e){p.push(e)}const x=new Set;let h=0;function m(){if(h!==0)return;const e=g;do{try{for(;h<d.length;){const t=d[h];h++,y(t),ut(t.$$)}}catch(t){throw d.length=0,h=0,t}for(y(null),d.length=0,h=0;C.length;)C.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];x.has(n)||(x.add(n),n())}p.length=0}while(d.length);for(;H.length;)H.pop()();E=!1,x.clear(),y(e)}function ut(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(L)}}function lt(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t}const ft=new Set;function at(e,t){e&&e.i&&(ft.delete(e),e.i(t))}function ht(e,t,n){const{fragment:s,after_update:i}=e.$$;s&&s.m(t,n),L(()=>{const r=e.$$.on_mount.map(U).filter(z);e.$$.on_destroy?e.$$.on_destroy.push(...r):S(r),e.$$.on_mount=[]}),i.forEach(L)}function dt(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function $t(e,t){e.$$.dirty[0]===-1&&(d.push(e),ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function _t(e,t,n,s,i,r,o=null,u=[-1]){const l=g;y(e);const c=e.$$={fragment:null,ctx:[],props:r,update:_,not_equal:i,bound:R(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:R(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};o&&o(c.root);let b=!1;if(c.ctx=n?n(e,t.props||{},(a,A,...v)=>{const M=v.length?v[0]:A;return c.ctx&&i(c.ctx[a],c.ctx[a]=M)&&(!c.skip_bound&&c.bound[a]&&c.bound[a](M),b&&$t(e,a)),A}):[],c.update(),b=!0,S(c.before_update),c.fragment=s?s(c.ctx):!1,t.target){if(t.hydrate){const a=nt(t.target);c.fragment&&c.fragment.l(a),a.forEach(j)}else c.fragment&&c.fragment.c();t.intro&&at(e.$$.fragment),ht(e,t.target,t.anchor),m()}y(l)}let F;typeof HTMLElement=="function"&&(F=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 i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let o;return{c:function(){o=O("slot"),r!=="default"&&I(o,"name",r)},m:function(c,b){D(c,o,b)},d:function(c){c&&j(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=st(this);for(const r of this.$$s)r in s&&(n[r]=[t(r)]);for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=w(o,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:T(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const o=w(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const r in this.$$l)for(const o of this.$$l[r]){const u=this.$$c.$on(r,o);this.$$l_u.set(o,u)}this.$$l={}}})}attributeChangedCallback(t,n,s){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=w(t,s,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$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 w(e,t,n,s){var r;const i=(r=n[e])==null?void 0:r.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pt(e,t,n,s,i,r){let o=class extends F{constructor(){super(e,n,i),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(l){var c;l=w(u,l,t),this.$$d[u]=l,(c=this.$$c)==null||c.$set({[u]:l})}})}),s.forEach(u=>{Object.defineProperty(o.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=o,o}class yt{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){dt(this,1),this.$destroy=_}$on(t,n){if(!z(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const mt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mt);const $="__WIDGET_GLOBAL_STYLE_CACHE__";function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function bt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const i=document.createElement("style");i.innerHTML=s,e&&e.appendChild(i)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function wt(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=St(e,t),n;window[$]||(window[$]={}),n=kt(e,t);const r=n.unsubscribe.bind(n),o=()=>{if(window[$][t]){const u=window[$][t];u.refCount>1?u.refCount=u.refCount-1:delete window[$][t]}r()};return n.unsubscribe=o,n}function St(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n))})}function kt(e,t){return window.emMessageBus.subscribe(t,n=>{var u;if(!e)return;const s=e.getRootNode(),i=window[$];let r=(u=i[t])==null?void 0:u.sheet;r?i[t].refCount=i[t].refCount+1:(r=new CSSStyleSheet,r.replaceSync(n),i[t]={sheet:r,refCount:1});const o=s.adoptedStyleSheets||[];o.includes(r)||(s.adoptedStyleSheets=[...o,r])})}function xt(e){Z(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 Ct(e){let t;return{c(){t=O("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){D(n,t,s),e[4](t)},p:_,i:_,o:_,d(n){n&&j(t),e[4](null)}}}function Et(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:i=""}=t,{mbsource:r=""}=t,o,u;it(()=>()=>{});function l(c){C[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,i=c.clientstylingurl),"mbsource"in c&&n(3,r=c.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&s&&o&&gt(o,s),e.$$.dirty&5&&i&&o&&bt(o,i),e.$$.dirty&9&&r&&o&&wt(o,`${r}.Style`,u)},[o,s,i,r,l]}class G extends yt{constructor(t){super(),_t(this,t,Et,Ct,q,{clientstyling:1,clientstylingurl:2,mbsource:3},xt)}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()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),m()}}pt(G,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=G;
1
+ "use strict";var J=Object.defineProperty,V=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Y=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,B=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&k(e,n,t[n]);if(N)for(var n of N(t))Y.call(t,n)&&k(e,n,t[n]);return e},T=(e,t)=>V(e,K(t));var f=(e,t,n)=>(k(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,i)=>{var r=l=>{try{u(n.next(l))}catch(c){i(c)}},o=l=>{try{u(n.throw(l))}catch(c){i(c)}},u=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,o);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function U(e){return e()}function R(){return Object.create(null)}function S(e){e.forEach(U)}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 Q(e){return Object.keys(e).length===0}function X(e,t){e.appendChild(t)}function Z(e,t,n){const s=tt(e);if(!s.getElementById(t)){const i=O("style");i.id=t,i.textContent=n,et(s,i)}}function tt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function et(e,t){return X(e.head||e,t),t.sheet}function D(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function O(e){return document.createElement(e)}function I(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function nt(e){return Array.from(e.childNodes)}function st(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let m;function y(e){m=e}function rt(){if(!m)throw new Error("Function called outside component initialization");return m}function it(e){rt().$$.on_mount.push(e)}const d=[],C=[];let p=[];const H=[],ot=Promise.resolve();let E=!1;function ct(){E||(E=!0,ot.then(g))}function L(e){p.push(e)}const x=new Set;let h=0;function g(){if(h!==0)return;const e=m;do{try{for(;h<d.length;){const t=d[h];h++,y(t),ut(t.$$)}}catch(t){throw d.length=0,h=0,t}for(y(null),d.length=0,h=0;C.length;)C.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];x.has(n)||(x.add(n),n())}p.length=0}while(d.length);for(;H.length;)H.pop()();E=!1,x.clear(),y(e)}function ut(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(L)}}function lt(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t}const ft=new Set;function at(e,t){e&&e.i&&(ft.delete(e),e.i(t))}function ht(e,t,n){const{fragment:s,after_update:i}=e.$$;s&&s.m(t,n),L(()=>{const r=e.$$.on_mount.map(U).filter(z);e.$$.on_destroy?e.$$.on_destroy.push(...r):S(r),e.$$.on_mount=[]}),i.forEach(L)}function dt(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function $t(e,t){e.$$.dirty[0]===-1&&(d.push(e),ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function _t(e,t,n,s,i,r,o=null,u=[-1]){const l=m;y(e);const c=e.$$={fragment:null,ctx:[],props:r,update:_,not_equal:i,bound:R(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:R(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};o&&o(c.root);let b=!1;if(c.ctx=n?n(e,t.props||{},(a,A,...v)=>{const M=v.length?v[0]:A;return c.ctx&&i(c.ctx[a],c.ctx[a]=M)&&(!c.skip_bound&&c.bound[a]&&c.bound[a](M),b&&$t(e,a)),A}):[],c.update(),b=!0,S(c.before_update),c.fragment=s?s(c.ctx):!1,t.target){if(t.hydrate){const a=nt(t.target);c.fragment&&c.fragment.l(a),a.forEach(j)}else c.fragment&&c.fragment.c();t.intro&&at(e.$$.fragment),ht(e,t.target,t.anchor),g()}y(l)}let F;typeof HTMLElement=="function"&&(F=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 i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let o;return{c:function(){o=O("slot"),r!=="default"&&I(o,"name",r)},m:function(c,b){D(c,o,b)},d:function(c){c&&j(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=st(this);for(const r of this.$$s)r in s&&(n[r]=[t(r)]);for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=w(o,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:T(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const o=w(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const r in this.$$l)for(const o of this.$$l[r]){const u=this.$$c.$on(r,o);this.$$l_u.set(o,u)}this.$$l={}}})}attributeChangedCallback(t,n,s){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=w(t,s,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$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 w(e,t,n,s){var r;const i=(r=n[e])==null?void 0:r.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pt(e,t,n,s,i,r){let o=class extends F{constructor(){super(e,n,i),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(l){var c;l=w(u,l,t),this.$$d[u]=l,(c=this.$$c)==null||c.$set({[u]:l})}})}),s.forEach(u=>{Object.defineProperty(o.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=o,o}class yt{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){dt(this,1),this.$destroy=_}$on(t,n){if(!z(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(t){this.$$set&&!Q(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);const $="__WIDGET_GLOBAL_STYLE_CACHE__";function mt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function bt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const i=document.createElement("style");i.innerHTML=s,e&&e.appendChild(i)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function wt(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=St(e,t),n;window[$]||(window[$]={}),n=kt(e,t);const r=n.unsubscribe.bind(n),o=()=>{if(window[$][t]){const u=window[$][t];u.refCount>1?u.refCount=u.refCount-1:delete window[$][t]}r()};return n.unsubscribe=o,n}function St(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n))})}function kt(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const s=e.getRootNode(),i=window[$];let r=i[t]&&i[t].sheet;r?i[t].refCount=i[t].refCount+1:(r=new CSSStyleSheet,r.replaceSync(n),i[t]={sheet:r,refCount:1});const o=s.adoptedStyleSheets||[];o.includes(r)||(s.adoptedStyleSheets=[...o,r])})}function xt(e){Z(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 Ct(e){let t;return{c(){t=O("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){D(n,t,s),e[4](t)},p:_,i:_,o:_,d(n){n&&j(t),e[4](null)}}}function Et(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:i=""}=t,{mbsource:r=""}=t,o,u;it(()=>()=>{});function l(c){C[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,i=c.clientstylingurl),"mbsource"in c&&n(3,r=c.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&s&&o&&mt(o,s),e.$$.dirty&5&&i&&o&&bt(o,i),e.$$.dirty&9&&r&&o&&wt(o,`${r}.Style`,u)},[o,s,i,r,l]}class G extends yt{constructor(t){super(),_t(this,t,Et,Ct,q,{clientstyling:1,clientstylingurl:2,mbsource:3},xt)}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()}}pt(G,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=G;
@@ -110,7 +110,7 @@ function st() {
110
110
  function rt(e) {
111
111
  st().$$.on_mount.push(e);
112
112
  }
113
- const d = [], C = [];
113
+ const $ = [], C = [];
114
114
  let p = [];
115
115
  const H = [], it = /* @__PURE__ */ Promise.resolve();
116
116
  let E = !1;
@@ -128,21 +128,21 @@ function m() {
128
128
  const e = g;
129
129
  do {
130
130
  try {
131
- for (; h < d.length; ) {
132
- const t = d[h];
131
+ for (; h < $.length; ) {
132
+ const t = $[h];
133
133
  h++, y(t), ct(t.$$);
134
134
  }
135
135
  } catch (t) {
136
- throw d.length = 0, h = 0, t;
136
+ throw $.length = 0, h = 0, t;
137
137
  }
138
- for (y(null), d.length = 0, h = 0; C.length; )
138
+ for (y(null), $.length = 0, h = 0; C.length; )
139
139
  C.pop()();
140
140
  for (let t = 0; t < p.length; t += 1) {
141
141
  const n = p[t];
142
142
  k.has(n) || (k.add(n), n());
143
143
  }
144
144
  p.length = 0;
145
- } while (d.length);
145
+ } while ($.length);
146
146
  for (; H.length; )
147
147
  H.pop()();
148
148
  E = !1, k.clear(), y(e);
@@ -173,10 +173,10 @@ function ht(e, t) {
173
173
  const n = e.$$;
174
174
  n.fragment !== null && (ut(n.after_update), S(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
175
175
  }
176
- function dt(e, t) {
177
- e.$$.dirty[0] === -1 && (d.push(e), ot(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
176
+ function $t(e, t) {
177
+ e.$$.dirty[0] === -1 && ($.push(e), ot(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
178
178
  }
179
- function $t(e, t, n, s, i, r, o = null, u = [-1]) {
179
+ function dt(e, t, n, s, i, r, o = null, u = [-1]) {
180
180
  const l = g;
181
181
  y(e);
182
182
  const c = e.$$ = {
@@ -204,7 +204,7 @@ function $t(e, t, n, s, i, r, o = null, u = [-1]) {
204
204
  let b = !1;
205
205
  if (c.ctx = n ? n(e, t.props || {}, (a, A, ...v) => {
206
206
  const M = v.length ? v[0] : A;
207
- return c.ctx && i(c.ctx[a], c.ctx[a] = M) && (!c.skip_bound && c.bound[a] && c.bound[a](M), b && dt(e, a)), A;
207
+ return c.ctx && i(c.ctx[a], c.ctx[a] = M) && (!c.skip_bound && c.bound[a] && c.bound[a](M), b && $t(e, a)), A;
208
208
  }) : [], c.update(), b = !0, S(c.before_update), c.fragment = s ? s(c.ctx) : !1, t.target) {
209
209
  if (t.hydrate) {
210
210
  const a = et(t.target);
@@ -445,7 +445,7 @@ class pt {
445
445
  }
446
446
  const yt = "4";
447
447
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yt);
448
- const $ = "__WIDGET_GLOBAL_STYLE_CACHE__";
448
+ const d = "__WIDGET_GLOBAL_STYLE_CACHE__";
449
449
  function mt(e, t) {
450
450
  if (e) {
451
451
  const n = document.createElement("style");
@@ -468,11 +468,11 @@ function bt(e, t, n, s = !1) {
468
468
  return;
469
469
  if (!("adoptedStyleSheets" in Document.prototype) || !s)
470
470
  return n = wt(e, t), n;
471
- window[$] || (window[$] = {}), n = St(e, t);
471
+ window[d] || (window[d] = {}), n = St(e, t);
472
472
  const r = n.unsubscribe.bind(n), o = () => {
473
- if (window[$][t]) {
474
- const u = window[$][t];
475
- u.refCount > 1 ? u.refCount = u.refCount - 1 : delete window[$][t];
473
+ if (window[d][t]) {
474
+ const u = window[d][t];
475
+ u.refCount > 1 ? u.refCount = u.refCount - 1 : delete window[d][t];
476
476
  }
477
477
  r();
478
478
  };
@@ -486,11 +486,10 @@ function wt(e, t) {
486
486
  }
487
487
  function St(e, t) {
488
488
  return window.emMessageBus.subscribe(t, (n) => {
489
- var u;
490
489
  if (!e)
491
490
  return;
492
- const s = e.getRootNode(), i = window[$];
493
- let r = (u = i[t]) == null ? void 0 : u.sheet;
491
+ const s = e.getRootNode(), i = window[d];
492
+ let r = i[t] && i[t].sheet;
494
493
  r ? i[t].refCount = i[t].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(n), i[t] = {
495
494
  sheet: r,
496
495
  refCount: 1
@@ -539,7 +538,7 @@ function Ct(e, t, n) {
539
538
  }
540
539
  class Et extends pt {
541
540
  constructor(t) {
542
- super(), $t(
541
+ super(), dt(
543
542
  this,
544
543
  t,
545
544
  Ct,
@@ -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-CYInQ4ui.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}
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-C44vfRDK.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-Dds8Ddi0.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierSpinner-CejJxCUe.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-spinner") && customElements.define("cashier-spinner", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CashierSpinner-CyU-Hpql.js";
1
+ import { C as s } from "../components/CashierSpinner-BQAIqLDt.js";
2
2
  function i(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-spinner",
3
- "version": "1.88.6",
3
+ "version": "1.88.7",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-spinner.cjs",
6
6
  "module": "esnext/cashier-spinner.js",