@everymatrix/cashier-spinner 1.87.26 → 1.87.27

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 +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-CSZG1tQw.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-CYInQ4ui.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-DMInk4J_.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierSpinner-Dds8Ddi0.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-CFVv9PKS.js";
1
+ import { C as s } from "../components/CashierSpinner-CyU-Hpql.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.87.26",
3
+ "version": "1.87.27",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-spinner.cjs",
6
6
  "module": "esnext/cashier-spinner.js",
@@ -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 I(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 U(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 g;function m(e){g=e}function st(){if(!g)throw new Error("Function called outside component initialization");return g}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(p))}function C(e){_.push(e)}const x=new Set;let $=0;function p(){if($!==0)return;const e=g;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=g;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?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?s(u.ctx):!1,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),p()}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"&&U(o,"name",i)},m:function(u,y){I(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 pt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pt);function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function yt(e,t){if(!e||!t)return;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>',U(t,"class","CashierSpinner")},m(n,s){I(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&&gt(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}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),p()}}_t(F,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=F;