@everymatrix/general-icon-progress-ring 1.56.0 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,8 @@ function rt(e, t, r) {
29
29
  }
30
30
  }
31
31
  function nt(e) {
32
- if (!e) return document;
32
+ if (!e)
33
+ return document;
33
34
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
34
35
  return t && /** @type {ShadowRoot} */
35
36
  t.host ? (
@@ -83,7 +84,8 @@ function k(e) {
83
84
  W = e;
84
85
  }
85
86
  function ut() {
86
- if (!W) throw new Error("Function called outside component initialization");
87
+ if (!W)
88
+ throw new Error("Function called outside component initialization");
87
89
  return W;
88
90
  }
89
91
  function dt(e) {
@@ -114,7 +116,8 @@ function y() {
114
116
  } catch (t) {
115
117
  throw m.length = 0, _ = 0, t;
116
118
  }
117
- for (k(null), m.length = 0, _ = 0; F.length; ) F.pop()();
119
+ for (k(null), m.length = 0, _ = 0; F.length; )
120
+ F.pop()();
118
121
  for (let t = 0; t < x.length; t += 1) {
119
122
  const r = x[t];
120
123
  j.has(r) || (j.add(r), r());
@@ -0,0 +1 @@
1
+ "use strict";var ct=Object.defineProperty,lt=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable;var N=(e,t,r)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))dt.call(t,r)&&N(e,r,t[r]);if(U)for(var r of U(t))at.call(t,r)&&N(e,r,t[r]);return e},K=(e,t)=>lt(e,ut(t));var f=(e,t,r)=>(N(e,typeof t!="symbol"?t+"":t,r),r);var Q=(e,t,r)=>new Promise((n,s)=>{var i=u=>{try{l(r.next(u))}catch(c){s(c)}},o=u=>{try{l(r.throw(u))}catch(c){s(c)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,o);l((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function W(){}function tt(e){return e()}function X(){return Object.create(null)}function j(e){e.forEach(tt)}function et(e){return typeof e=="function"}function ft(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function ht(e){return Object.keys(e).length===0}function b(e,t){e.appendChild(t)}function $t(e,t,r){const n=gt(e);if(!n.getElementById(t)){const s=_("style");s.id=t,s.textContent=r,pt(n,s)}}function gt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function pt(e,t){return b(e.head||e,t),t.sheet}function rt(e,t,r){e.insertBefore(t,r||null)}function V(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e){return document.createElement(e)}function I(e){return document.createTextNode(e)}function bt(){return I(" ")}function $(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function _t(e){return Array.from(e.childNodes)}function mt(e,t){t=""+t,e.data!==t&&(e.data=t)}function yt(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let E;function k(e){E=e}function vt(){if(!E)throw new Error("Function called outside component initialization");return E}function xt(e){vt().$$.on_mount.push(e)}const y=[],B=[];let x=[];const Y=[],wt=Promise.resolve();let D=!1;function Rt(){D||(D=!0,wt.then(v))}function M(e){x.push(e)}const F=new Set;let m=0;function v(){if(m!==0)return;const e=E;do{try{for(;m<y.length;){const t=y[m];m++,k(t),St(t.$$)}}catch(t){throw y.length=0,m=0,t}for(k(null),y.length=0,m=0;B.length;)B.pop()();for(let t=0;t<x.length;t+=1){const r=x[t];F.has(r)||(F.add(r),r())}x.length=0}while(y.length);for(;Y.length;)Y.pop()();D=!1,F.clear(),k(e)}function St(e){if(e.fragment!==null){e.update(),j(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(M)}}function Pt(e){const t=[],r=[];x.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),x=t}const kt=new Set;function Wt(e,t){e&&e.i&&(kt.delete(e),e.i(t))}function Et(e,t,r){const{fragment:n,after_update:s}=e.$$;n&&n.m(t,r),M(()=>{const i=e.$$.on_mount.map(tt).filter(et);e.$$.on_destroy?e.$$.on_destroy.push(...i):j(i),e.$$.on_mount=[]}),s.forEach(M)}function Lt(e,t){const r=e.$$;r.fragment!==null&&(Pt(r.after_update),j(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Ot(e,t){e.$$.dirty[0]===-1&&(y.push(e),Rt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ct(e,t,r,n,s,i,o=null,l=[-1]){const u=E;k(e);const c=e.$$={fragment:null,ctx:[],props:i,update:W,not_equal:s,bound:X(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:X(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};o&&o(c.root);let a=!1;if(c.ctx=r?r(e,t.props||{},(h,w,...R)=>{const S=R.length?R[0]:w;return c.ctx&&s(c.ctx[h],c.ctx[h]=S)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](S),a&&Ot(e,h)),w}):[],c.update(),a=!0,j(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){const h=_t(t.target);c.fragment&&c.fragment.l(h),h.forEach(V)}else c.fragment&&c.fragment.c();t.intro&&Wt(e.$$.fragment),Et(e,t.target,t.anchor),v()}k(u)}let nt;typeof HTMLElement=="function"&&(nt=class extends HTMLElement{constructor(t,r,n){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=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const s=this.$$c.$on(t,r);this.$$l_u.set(r,s)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const s=this.$$l_u.get(r);s&&(s(),this.$$l_u.delete(r))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=_("slot"),i!=="default"&&$(o,"name",i)},m:function(c,a){rt(c,o,a)},d:function(c){c&&V(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=yt(this);for(const i of this.$$s)i in n&&(r[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=C(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:K(q({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const s=()=>{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=C(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(s),s();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,r,n){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=C(t,n,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function C(e,t,r,n){var i;const s=(i=r[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function jt(e,t,r,n,s,i){let o=class extends nt{constructor(){super(e,r,s),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(u){var c;u=C(l,u,t),this.$$d[l]=u,(c=this.$$c)==null||c.$set({[l]:u})}})}),n.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var u;return(u=this.$$c)==null?void 0:u[l]}})}),e.element=o,o}class At{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){Lt(this,1),this.$destroy=W}$on(t,r){if(!et(r))return W;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const s=n.indexOf(r);s!==-1&&n.splice(s,1)}}$set(t){this.$$set&&!ht(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Nt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Nt);function Ft(e){$t(e,"svelte-1s0yc9b",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-ring{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF)}.Progress{margin:auto;width:var(--progressRingWidth);height:var(--progressRingWidth);position:relative}.Progress .InnerSection{position:absolute;width:var(--innerSectionWidth);height:var(--innerSectionWidth);background-color:white;border-radius:50%;left:var(--innerSectionLeft, 1rem);top:var(--innerSectionLeft, 1rem);line-height:var(--innerSectionWidth);text-align:center}.Progress .InnerSection .Percent{background-color:var(--progresscolor);border-radius:50%;width:var(--percentSectionWidth);height:var(--percentSectionWidth);position:absolute;left:var(--percentSectionLeft, 0.1rem);top:var(--percentSectionLeft, 0.1rem)}.Left,.Right{width:var(--leftRotateSectionWidth);height:var(--progressRingWidth);overflow:hidden;position:relative;float:left;background-color:#F2F4F6}.Left{border-radius:0;border-top-left-radius:var(--progressRingWidth);border-bottom-left-radius:var(--progressRingWidth)}.Right{border-radius:0;border-top-right-radius:var(--progressRingWidth);border-bottom-right-radius:var(--progressRingWidth)}.Left:after,.Right:after{content:"";position:absolute;display:block;width:var(--leftRotateSectionAfterWidth);height:var(--progressRingWidth, 8em);background-color:white;border-radius:0;border-top-left-radius:var(--progressRingWidth);border-bottom-left-radius:var(--progressRingWidth);background-color:var(--progresscolor);transition-property:transform;transition-duration:1.1s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.5s}.Right:after{content:"";position:absolute;display:block;border-radius:0;border-top-right-radius:var(--widthInPx);border-bottom-right-radius:var(--widthInPx)}.Left:after{transform-origin:right center;transform:rotateZ(var(--leftRotateDeg, 180deg))}.Right:after{transform-origin:left center;transform:rotateZ(var(--rightRotateDeg, 0deg))}')}function It(e){let t,r,n,s,i,o,l,u;return{c(){t=_("div"),r=_("div"),n=_("div"),s=bt(),i=_("div"),o=_("div"),l=I(e[0]),u=I("%"),$(r,"class","Left"),$(r,"part","Progress Left"),$(n,"class","Right"),$(n,"part","Progress Right"),$(o,"class","Percent"),$(o,"part","Progress Percent"),$(i,"class","InnerSection"),$(i,"part","Progress InnerSection"),$(t,"class","general-icon-progress-ring Progress"),$(t,"part","ProgressRing")},m(c,a){rt(c,t,a),b(t,r),b(t,n),b(t,s),b(t,i),b(i,o),b(o,l),b(o,u),e[5](t)},p(c,[a]){a&1&&mt(l,c[0])},i:W,o:W,d(c){c&&V(t),e[5](null)}}}function Bt(e,t,r){let{currentstep:n=0}=t,{livecolor:s="#00AEEF"}=t,{expiredcolor:i="#C4C4C4"}=t,{status:o="true"}=t,l=100,u,c,a,h,w,R,S,T,z,H,P,L,g,A;const J=(d,p)=>{for(const O in p)d.style.setProperty(`--${O}`,p[O])},Z=(d,p)=>(J(d,p),{update(O){J(d,O)}}),st=()=>{o=="true"?A=s:A=i,u=l*.74,c=(l-u)/2,a=l*.7,h=`${l}px`,w=`${u}px`,R=`${c}px`,S=`${a}px`,T=`${(u-a)/2}px`,z=`${l/2}px`,H=`${l/2+1}px`,Z(g,{progressRingWidth:h,innerSectionWidth:w,innerSectionLeft:R,progresscolor:A,percentSectionWidth:S,percentSectionLeft:T,leftRotateSectionWidth:z,leftRotateSectionAfterWidth:H})},G=()=>{g&&(P="0deg",L="0deg",n>100?(r(0,n=100),P="360deg"):n>=50?(P=`${(n-50)/50*180+180}deg`,L="0deg"):(P="180deg",L=`${n/50*180-180}deg`),Z(g,{rightRotateDeg:L,leftRotateDeg:P}))};xt(()=>{if(g.offsetWidth==0)return;let d=g.offsetWidth,p=g.offsetHeight;l=d>p&&d*p>0?p||100:d||100,st()});function ot(d){B[d?"unshift":"push"](()=>{g=d,r(1,g)})}return e.$$set=d=>{"currentstep"in d&&r(0,n=d.currentstep),"livecolor"in d&&r(2,s=d.livecolor),"expiredcolor"in d&&r(3,i=d.expiredcolor),"status"in d&&r(4,o=d.status)},e.$$.update=()=>{e.$$.dirty&1&&n&&G(),e.$$.dirty&16&&o&&G()},[n,g,s,i,o,ot]}class it extends At{constructor(t){super(),Ct(this,t,Bt,It,ft,{currentstep:0,livecolor:2,expiredcolor:3,status:4},Ft)}get currentstep(){return this.$$.ctx[0]}set currentstep(t){this.$$set({currentstep:t}),v()}get livecolor(){return this.$$.ctx[2]}set livecolor(t){this.$$set({livecolor:t}),v()}get expiredcolor(){return this.$$.ctx[3]}set expiredcolor(t){this.$$set({expiredcolor:t}),v()}get status(){return this.$$.ctx[4]}set status(t){this.$$set({status:t}),v()}}jt(it,{currentstep:{},livecolor:{},expiredcolor:{},status:{}},[],[],!0);exports.default=it;
@@ -10,7 +10,7 @@ var N = (e, t, r) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writa
10
10
  dt.call(t, r) && N(e, r, t[r]);
11
11
  return e;
12
12
  }, K = (e, t) => ct(e, lt(t));
13
- var f = (e, t, r) => N(e, typeof t != "symbol" ? t + "" : t, r);
13
+ var f = (e, t, r) => (N(e, typeof t != "symbol" ? t + "" : t, r), r);
14
14
  var Q = (e, t, r) => new Promise((n, s) => {
15
15
  var i = (u) => {
16
16
  try {
@@ -58,7 +58,8 @@ function ht(e, t, r) {
58
58
  }
59
59
  }
60
60
  function $t(e) {
61
- if (!e) return document;
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 ? (
@@ -112,7 +113,8 @@ function P(e) {
112
113
  E = e;
113
114
  }
114
115
  function yt() {
115
- if (!E) throw new Error("Function called outside component initialization");
116
+ if (!E)
117
+ throw new Error("Function called outside component initialization");
116
118
  return E;
117
119
  }
118
120
  function xt(e) {
@@ -143,7 +145,8 @@ function x() {
143
145
  } catch (t) {
144
146
  throw y.length = 0, m = 0, t;
145
147
  }
146
- for (P(null), y.length = 0, m = 0; B.length; ) B.pop()();
148
+ for (P(null), y.length = 0, m = 0; B.length; )
149
+ B.pop()();
147
150
  for (let t = 0; t < v.length; t += 1) {
148
151
  const r = v[t];
149
152
  F.has(r) || (F.add(r), r());
@@ -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/GeneralIconProgressRing-CmdCIT_4.cjs")).then(({default:t})=>{!customElements.get("general-icon-progress-ring")&&customElements.define("general-icon-progress-ring",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/GeneralIconProgressRing-DBcIRAqq.cjs")).then(({default:t})=>{!customElements.get("general-icon-progress-ring")&&customElements.define("general-icon-progress-ring",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralIconProgressRing-BSfRrVUL.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralIconProgressRing-DT24LOVN.js").then(({ default: t }) => {
14
14
  !customElements.get("general-icon-progress-ring") && customElements.define("general-icon-progress-ring", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { G as s } from "../components/GeneralIconProgressRing-DspZKgUB.js";
1
+ import { G as s } from "../components/GeneralIconProgressRing-CjkHIIJ8.js";
2
2
  function r(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-icon-progress-ring",
3
- "version": "1.56.0",
3
+ "version": "1.56.3",
4
4
  "type": "module",
5
5
  "main": "esnext/general-icon-progress-ring.js",
6
6
  "module": "esnext/general-icon-progress-ring.js",
@@ -1 +0,0 @@
1
- "use strict";var ct=Object.defineProperty,lt=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable;var N=(e,t,r)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))dt.call(t,r)&&N(e,r,t[r]);if(U)for(var r of U(t))at.call(t,r)&&N(e,r,t[r]);return e},K=(e,t)=>lt(e,ut(t));var f=(e,t,r)=>N(e,typeof t!="symbol"?t+"":t,r);var Q=(e,t,r)=>new Promise((n,s)=>{var i=u=>{try{l(r.next(u))}catch(c){s(c)}},o=u=>{try{l(r.throw(u))}catch(c){s(c)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,o);l((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function W(){}function tt(e){return e()}function X(){return Object.create(null)}function j(e){e.forEach(tt)}function et(e){return typeof e=="function"}function ft(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function ht(e){return Object.keys(e).length===0}function b(e,t){e.appendChild(t)}function $t(e,t,r){const n=gt(e);if(!n.getElementById(t)){const s=_("style");s.id=t,s.textContent=r,pt(n,s)}}function gt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function pt(e,t){return b(e.head||e,t),t.sheet}function rt(e,t,r){e.insertBefore(t,r||null)}function V(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e){return document.createElement(e)}function I(e){return document.createTextNode(e)}function bt(){return I(" ")}function $(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function _t(e){return Array.from(e.childNodes)}function mt(e,t){t=""+t,e.data!==t&&(e.data=t)}function yt(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let E;function k(e){E=e}function vt(){if(!E)throw new Error("Function called outside component initialization");return E}function xt(e){vt().$$.on_mount.push(e)}const y=[],B=[];let x=[];const Y=[],wt=Promise.resolve();let D=!1;function Rt(){D||(D=!0,wt.then(v))}function M(e){x.push(e)}const F=new Set;let m=0;function v(){if(m!==0)return;const e=E;do{try{for(;m<y.length;){const t=y[m];m++,k(t),St(t.$$)}}catch(t){throw y.length=0,m=0,t}for(k(null),y.length=0,m=0;B.length;)B.pop()();for(let t=0;t<x.length;t+=1){const r=x[t];F.has(r)||(F.add(r),r())}x.length=0}while(y.length);for(;Y.length;)Y.pop()();D=!1,F.clear(),k(e)}function St(e){if(e.fragment!==null){e.update(),j(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(M)}}function Pt(e){const t=[],r=[];x.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),x=t}const kt=new Set;function Wt(e,t){e&&e.i&&(kt.delete(e),e.i(t))}function Et(e,t,r){const{fragment:n,after_update:s}=e.$$;n&&n.m(t,r),M(()=>{const i=e.$$.on_mount.map(tt).filter(et);e.$$.on_destroy?e.$$.on_destroy.push(...i):j(i),e.$$.on_mount=[]}),s.forEach(M)}function Lt(e,t){const r=e.$$;r.fragment!==null&&(Pt(r.after_update),j(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Ot(e,t){e.$$.dirty[0]===-1&&(y.push(e),Rt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ct(e,t,r,n,s,i,o=null,l=[-1]){const u=E;k(e);const c=e.$$={fragment:null,ctx:[],props:i,update:W,not_equal:s,bound:X(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:X(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};o&&o(c.root);let a=!1;if(c.ctx=r?r(e,t.props||{},(h,w,...R)=>{const S=R.length?R[0]:w;return c.ctx&&s(c.ctx[h],c.ctx[h]=S)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](S),a&&Ot(e,h)),w}):[],c.update(),a=!0,j(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){const h=_t(t.target);c.fragment&&c.fragment.l(h),h.forEach(V)}else c.fragment&&c.fragment.c();t.intro&&Wt(e.$$.fragment),Et(e,t.target,t.anchor),v()}k(u)}let nt;typeof HTMLElement=="function"&&(nt=class extends HTMLElement{constructor(t,r,n){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=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const s=this.$$c.$on(t,r);this.$$l_u.set(r,s)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const s=this.$$l_u.get(r);s&&(s(),this.$$l_u.delete(r))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let o;return{c:function(){o=_("slot"),i!=="default"&&$(o,"name",i)},m:function(c,a){rt(c,o,a)},d:function(c){c&&V(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=yt(this);for(const i of this.$$s)i in n&&(r[i]=[t(i)]);for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=C(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:K(q({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const s=()=>{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=C(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(s),s();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,r,n){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=C(t,n,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function C(e,t,r,n){var i;const s=(i=r[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function jt(e,t,r,n,s,i){let o=class extends nt{constructor(){super(e,r,s),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(u){var c;u=C(l,u,t),this.$$d[l]=u,(c=this.$$c)==null||c.$set({[l]:u})}})}),n.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var u;return(u=this.$$c)==null?void 0:u[l]}})}),e.element=o,o}class At{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){Lt(this,1),this.$destroy=W}$on(t,r){if(!et(r))return W;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const s=n.indexOf(r);s!==-1&&n.splice(s,1)}}$set(t){this.$$set&&!ht(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Nt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Nt);function Ft(e){$t(e,"svelte-1s0yc9b",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-ring{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF)}.Progress{margin:auto;width:var(--progressRingWidth);height:var(--progressRingWidth);position:relative}.Progress .InnerSection{position:absolute;width:var(--innerSectionWidth);height:var(--innerSectionWidth);background-color:white;border-radius:50%;left:var(--innerSectionLeft, 1rem);top:var(--innerSectionLeft, 1rem);line-height:var(--innerSectionWidth);text-align:center}.Progress .InnerSection .Percent{background-color:var(--progresscolor);border-radius:50%;width:var(--percentSectionWidth);height:var(--percentSectionWidth);position:absolute;left:var(--percentSectionLeft, 0.1rem);top:var(--percentSectionLeft, 0.1rem)}.Left,.Right{width:var(--leftRotateSectionWidth);height:var(--progressRingWidth);overflow:hidden;position:relative;float:left;background-color:#F2F4F6}.Left{border-radius:0;border-top-left-radius:var(--progressRingWidth);border-bottom-left-radius:var(--progressRingWidth)}.Right{border-radius:0;border-top-right-radius:var(--progressRingWidth);border-bottom-right-radius:var(--progressRingWidth)}.Left:after,.Right:after{content:"";position:absolute;display:block;width:var(--leftRotateSectionAfterWidth);height:var(--progressRingWidth, 8em);background-color:white;border-radius:0;border-top-left-radius:var(--progressRingWidth);border-bottom-left-radius:var(--progressRingWidth);background-color:var(--progresscolor);transition-property:transform;transition-duration:1.1s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.5s}.Right:after{content:"";position:absolute;display:block;border-radius:0;border-top-right-radius:var(--widthInPx);border-bottom-right-radius:var(--widthInPx)}.Left:after{transform-origin:right center;transform:rotateZ(var(--leftRotateDeg, 180deg))}.Right:after{transform-origin:left center;transform:rotateZ(var(--rightRotateDeg, 0deg))}')}function It(e){let t,r,n,s,i,o,l,u;return{c(){t=_("div"),r=_("div"),n=_("div"),s=bt(),i=_("div"),o=_("div"),l=I(e[0]),u=I("%"),$(r,"class","Left"),$(r,"part","Progress Left"),$(n,"class","Right"),$(n,"part","Progress Right"),$(o,"class","Percent"),$(o,"part","Progress Percent"),$(i,"class","InnerSection"),$(i,"part","Progress InnerSection"),$(t,"class","general-icon-progress-ring Progress"),$(t,"part","ProgressRing")},m(c,a){rt(c,t,a),b(t,r),b(t,n),b(t,s),b(t,i),b(i,o),b(o,l),b(o,u),e[5](t)},p(c,[a]){a&1&&mt(l,c[0])},i:W,o:W,d(c){c&&V(t),e[5](null)}}}function Bt(e,t,r){let{currentstep:n=0}=t,{livecolor:s="#00AEEF"}=t,{expiredcolor:i="#C4C4C4"}=t,{status:o="true"}=t,l=100,u,c,a,h,w,R,S,T,z,H,P,L,g,A;const J=(d,p)=>{for(const O in p)d.style.setProperty(`--${O}`,p[O])},Z=(d,p)=>(J(d,p),{update(O){J(d,O)}}),st=()=>{o=="true"?A=s:A=i,u=l*.74,c=(l-u)/2,a=l*.7,h=`${l}px`,w=`${u}px`,R=`${c}px`,S=`${a}px`,T=`${(u-a)/2}px`,z=`${l/2}px`,H=`${l/2+1}px`,Z(g,{progressRingWidth:h,innerSectionWidth:w,innerSectionLeft:R,progresscolor:A,percentSectionWidth:S,percentSectionLeft:T,leftRotateSectionWidth:z,leftRotateSectionAfterWidth:H})},G=()=>{g&&(P="0deg",L="0deg",n>100?(r(0,n=100),P="360deg"):n>=50?(P=`${(n-50)/50*180+180}deg`,L="0deg"):(P="180deg",L=`${n/50*180-180}deg`),Z(g,{rightRotateDeg:L,leftRotateDeg:P}))};xt(()=>{if(g.offsetWidth==0)return;let d=g.offsetWidth,p=g.offsetHeight;l=d>p&&d*p>0?p||100:d||100,st()});function ot(d){B[d?"unshift":"push"](()=>{g=d,r(1,g)})}return e.$$set=d=>{"currentstep"in d&&r(0,n=d.currentstep),"livecolor"in d&&r(2,s=d.livecolor),"expiredcolor"in d&&r(3,i=d.expiredcolor),"status"in d&&r(4,o=d.status)},e.$$.update=()=>{e.$$.dirty&1&&n&&G(),e.$$.dirty&16&&o&&G()},[n,g,s,i,o,ot]}class it extends At{constructor(t){super(),Ct(this,t,Bt,It,ft,{currentstep:0,livecolor:2,expiredcolor:3,status:4},Ft)}get currentstep(){return this.$$.ctx[0]}set currentstep(t){this.$$set({currentstep:t}),v()}get livecolor(){return this.$$.ctx[2]}set livecolor(t){this.$$set({livecolor:t}),v()}get expiredcolor(){return this.$$.ctx[3]}set expiredcolor(t){this.$$set({expiredcolor:t}),v()}get status(){return this.$$.ctx[4]}set status(t){this.$$set({status:t}),v()}}jt(it,{currentstep:{},livecolor:{},expiredcolor:{},status:{}},[],[],!0);exports.default=it;