@everymatrix/general-icon-progress-ring 1.45.0 → 1.45.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.
@@ -0,0 +1 @@
1
+ "use strict";var ct=Object.defineProperty,lt=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var G=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,U=(e,t)=>{for(var r in t||(t={}))dt.call(t,r)&&N(e,r,t[r]);if(G)for(var r of G(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(U({},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-wg1qy5",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-ring{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-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})},q=()=>{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&&q(),e.$$.dirty&16&&o&&q()},[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;
@@ -0,0 +1,572 @@
1
+ var ot = Object.defineProperty, ct = Object.defineProperties;
2
+ var lt = Object.getOwnPropertyDescriptors;
3
+ var G = Object.getOwnPropertySymbols;
4
+ var ut = Object.prototype.hasOwnProperty, dt = Object.prototype.propertyIsEnumerable;
5
+ var N = (e, t, r) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, U = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ ut.call(t, r) && N(e, r, t[r]);
8
+ if (G)
9
+ for (var r of G(t))
10
+ dt.call(t, r) && N(e, r, t[r]);
11
+ return e;
12
+ }, K = (e, t) => ct(e, lt(t));
13
+ var f = (e, t, r) => N(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var Q = (e, t, r) => new Promise((n, s) => {
15
+ var i = (u) => {
16
+ try {
17
+ l(r.next(u));
18
+ } catch (c) {
19
+ s(c);
20
+ }
21
+ }, o = (u) => {
22
+ try {
23
+ l(r.throw(u));
24
+ } catch (c) {
25
+ s(c);
26
+ }
27
+ }, l = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(i, o);
28
+ l((r = r.apply(e, t)).next());
29
+ });
30
+ function W() {
31
+ }
32
+ function tt(e) {
33
+ return e();
34
+ }
35
+ function X() {
36
+ return /* @__PURE__ */ Object.create(null);
37
+ }
38
+ function A(e) {
39
+ e.forEach(tt);
40
+ }
41
+ function et(e) {
42
+ return typeof e == "function";
43
+ }
44
+ function at(e, t) {
45
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
+ }
47
+ function ft(e) {
48
+ return Object.keys(e).length === 0;
49
+ }
50
+ function b(e, t) {
51
+ e.appendChild(t);
52
+ }
53
+ function ht(e, t, r) {
54
+ const n = $t(e);
55
+ if (!n.getElementById(t)) {
56
+ const s = _("style");
57
+ s.id = t, s.textContent = r, gt(n, s);
58
+ }
59
+ }
60
+ function $t(e) {
61
+ if (!e) return document;
62
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
63
+ return t && /** @type {ShadowRoot} */
64
+ t.host ? (
65
+ /** @type {ShadowRoot} */
66
+ t
67
+ ) : e.ownerDocument;
68
+ }
69
+ function gt(e, t) {
70
+ return b(
71
+ /** @type {Document} */
72
+ e.head || e,
73
+ t
74
+ ), t.sheet;
75
+ }
76
+ function rt(e, t, r) {
77
+ e.insertBefore(t, r || null);
78
+ }
79
+ function V(e) {
80
+ e.parentNode && e.parentNode.removeChild(e);
81
+ }
82
+ function _(e) {
83
+ return document.createElement(e);
84
+ }
85
+ function I(e) {
86
+ return document.createTextNode(e);
87
+ }
88
+ function pt() {
89
+ return I(" ");
90
+ }
91
+ function $(e, t, r) {
92
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
93
+ }
94
+ function bt(e) {
95
+ return Array.from(e.childNodes);
96
+ }
97
+ function _t(e, t) {
98
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
99
+ t);
100
+ }
101
+ function mt(e) {
102
+ const t = {};
103
+ return e.childNodes.forEach(
104
+ /** @param {Element} node */
105
+ (r) => {
106
+ t[r.slot || "default"] = !0;
107
+ }
108
+ ), t;
109
+ }
110
+ let E;
111
+ function P(e) {
112
+ E = e;
113
+ }
114
+ function yt() {
115
+ if (!E) throw new Error("Function called outside component initialization");
116
+ return E;
117
+ }
118
+ function xt(e) {
119
+ yt().$$.on_mount.push(e);
120
+ }
121
+ const y = [], B = [];
122
+ let v = [];
123
+ const Y = [], vt = /* @__PURE__ */ Promise.resolve();
124
+ let D = !1;
125
+ function wt() {
126
+ D || (D = !0, vt.then(x));
127
+ }
128
+ function M(e) {
129
+ v.push(e);
130
+ }
131
+ const F = /* @__PURE__ */ new Set();
132
+ let m = 0;
133
+ function x() {
134
+ if (m !== 0)
135
+ return;
136
+ const e = E;
137
+ do {
138
+ try {
139
+ for (; m < y.length; ) {
140
+ const t = y[m];
141
+ m++, P(t), Rt(t.$$);
142
+ }
143
+ } catch (t) {
144
+ throw y.length = 0, m = 0, t;
145
+ }
146
+ for (P(null), y.length = 0, m = 0; B.length; ) B.pop()();
147
+ for (let t = 0; t < v.length; t += 1) {
148
+ const r = v[t];
149
+ F.has(r) || (F.add(r), r());
150
+ }
151
+ v.length = 0;
152
+ } while (y.length);
153
+ for (; Y.length; )
154
+ Y.pop()();
155
+ D = !1, F.clear(), P(e);
156
+ }
157
+ function Rt(e) {
158
+ if (e.fragment !== null) {
159
+ e.update(), A(e.before_update);
160
+ const t = e.dirty;
161
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(M);
162
+ }
163
+ }
164
+ function St(e) {
165
+ const t = [], r = [];
166
+ v.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), v = t;
167
+ }
168
+ const kt = /* @__PURE__ */ new Set();
169
+ function Pt(e, t) {
170
+ e && e.i && (kt.delete(e), e.i(t));
171
+ }
172
+ function Wt(e, t, r) {
173
+ const { fragment: n, after_update: s } = e.$$;
174
+ n && n.m(t, r), M(() => {
175
+ const i = e.$$.on_mount.map(tt).filter(et);
176
+ e.$$.on_destroy ? e.$$.on_destroy.push(...i) : A(i), e.$$.on_mount = [];
177
+ }), s.forEach(M);
178
+ }
179
+ function Et(e, t) {
180
+ const r = e.$$;
181
+ r.fragment !== null && (St(r.after_update), A(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
182
+ }
183
+ function Lt(e, t) {
184
+ e.$$.dirty[0] === -1 && (y.push(e), wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ }
186
+ function Ct(e, t, r, n, s, i, o = null, l = [-1]) {
187
+ const u = E;
188
+ P(e);
189
+ const c = e.$$ = {
190
+ fragment: null,
191
+ ctx: [],
192
+ // state
193
+ props: i,
194
+ update: W,
195
+ not_equal: s,
196
+ bound: X(),
197
+ // lifecycle
198
+ on_mount: [],
199
+ on_destroy: [],
200
+ on_disconnect: [],
201
+ before_update: [],
202
+ after_update: [],
203
+ context: new Map(t.context || (u ? u.$$.context : [])),
204
+ // everything else
205
+ callbacks: X(),
206
+ dirty: l,
207
+ skip_bound: !1,
208
+ root: t.target || u.$$.root
209
+ };
210
+ o && o(c.root);
211
+ let a = !1;
212
+ if (c.ctx = r ? r(e, t.props || {}, (h, w, ...R) => {
213
+ const S = R.length ? R[0] : w;
214
+ return c.ctx && s(c.ctx[h], c.ctx[h] = S) && (!c.skip_bound && c.bound[h] && c.bound[h](S), a && Lt(e, h)), w;
215
+ }) : [], c.update(), a = !0, A(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
216
+ if (t.hydrate) {
217
+ const h = bt(t.target);
218
+ c.fragment && c.fragment.l(h), h.forEach(V);
219
+ } else
220
+ c.fragment && c.fragment.c();
221
+ t.intro && Pt(e.$$.fragment), Wt(e, t.target, t.anchor), x();
222
+ }
223
+ P(u);
224
+ }
225
+ let nt;
226
+ typeof HTMLElement == "function" && (nt = class extends HTMLElement {
227
+ constructor(t, r, n) {
228
+ super();
229
+ /** The Svelte component constructor */
230
+ f(this, "$$ctor");
231
+ /** Slots */
232
+ f(this, "$$s");
233
+ /** The Svelte component instance */
234
+ f(this, "$$c");
235
+ /** Whether or not the custom element is connected */
236
+ f(this, "$$cn", !1);
237
+ /** Component props data */
238
+ f(this, "$$d", {});
239
+ /** `true` if currently in the process of reflecting component props back to attributes */
240
+ f(this, "$$r", !1);
241
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
242
+ f(this, "$$p_d", {});
243
+ /** @type {Record<string, Function[]>} Event listeners */
244
+ f(this, "$$l", {});
245
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
246
+ f(this, "$$l_u", /* @__PURE__ */ new Map());
247
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
248
+ }
249
+ addEventListener(t, r, n) {
250
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
251
+ const s = this.$$c.$on(t, r);
252
+ this.$$l_u.set(r, s);
253
+ }
254
+ super.addEventListener(t, r, n);
255
+ }
256
+ removeEventListener(t, r, n) {
257
+ if (super.removeEventListener(t, r, n), this.$$c) {
258
+ const s = this.$$l_u.get(r);
259
+ s && (s(), this.$$l_u.delete(r));
260
+ }
261
+ }
262
+ connectedCallback() {
263
+ return Q(this, null, function* () {
264
+ if (this.$$cn = !0, !this.$$c) {
265
+ let t = function(i) {
266
+ return () => {
267
+ let o;
268
+ return {
269
+ c: function() {
270
+ o = _("slot"), i !== "default" && $(o, "name", i);
271
+ },
272
+ /**
273
+ * @param {HTMLElement} target
274
+ * @param {HTMLElement} [anchor]
275
+ */
276
+ m: function(c, a) {
277
+ rt(c, o, a);
278
+ },
279
+ d: function(c) {
280
+ c && V(o);
281
+ }
282
+ };
283
+ };
284
+ };
285
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
286
+ return;
287
+ const r = {}, n = mt(this);
288
+ for (const i of this.$$s)
289
+ i in n && (r[i] = [t(i)]);
290
+ for (const i of this.attributes) {
291
+ const o = this.$$g_p(i.name);
292
+ o in this.$$d || (this.$$d[o] = O(o, i.value, this.$$p_d, "toProp"));
293
+ }
294
+ for (const i in this.$$p_d)
295
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
296
+ this.$$c = new this.$$ctor({
297
+ target: this.shadowRoot || this,
298
+ props: K(U({}, this.$$d), {
299
+ $$slots: r,
300
+ $$scope: {
301
+ ctx: []
302
+ }
303
+ })
304
+ });
305
+ const s = () => {
306
+ this.$$r = !0;
307
+ for (const i in this.$$p_d)
308
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
309
+ const o = O(
310
+ i,
311
+ this.$$d[i],
312
+ this.$$p_d,
313
+ "toAttribute"
314
+ );
315
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
316
+ }
317
+ this.$$r = !1;
318
+ };
319
+ this.$$c.$$.after_update.push(s), s();
320
+ for (const i in this.$$l)
321
+ for (const o of this.$$l[i]) {
322
+ const l = this.$$c.$on(i, o);
323
+ this.$$l_u.set(o, l);
324
+ }
325
+ this.$$l = {};
326
+ }
327
+ });
328
+ }
329
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
330
+ // and setting attributes through setAttribute etc, this is helpful
331
+ attributeChangedCallback(t, r, n) {
332
+ var s;
333
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = O(t, n, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [t]: this.$$d[t] }));
334
+ }
335
+ disconnectedCallback() {
336
+ this.$$cn = !1, Promise.resolve().then(() => {
337
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
338
+ });
339
+ }
340
+ $$g_p(t) {
341
+ return Object.keys(this.$$p_d).find(
342
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
343
+ ) || t;
344
+ }
345
+ });
346
+ function O(e, t, r, n) {
347
+ var i;
348
+ const s = (i = r[e]) == null ? void 0 : i.type;
349
+ if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
350
+ return t;
351
+ if (n === "toAttribute")
352
+ switch (s) {
353
+ case "Object":
354
+ case "Array":
355
+ return t == null ? null : JSON.stringify(t);
356
+ case "Boolean":
357
+ return t ? "" : null;
358
+ case "Number":
359
+ return t == null ? null : t;
360
+ default:
361
+ return t;
362
+ }
363
+ else
364
+ switch (s) {
365
+ case "Object":
366
+ case "Array":
367
+ return t && JSON.parse(t);
368
+ case "Boolean":
369
+ return t;
370
+ case "Number":
371
+ return t != null ? +t : t;
372
+ default:
373
+ return t;
374
+ }
375
+ }
376
+ function Ot(e, t, r, n, s, i) {
377
+ let o = class extends nt {
378
+ constructor() {
379
+ super(e, r, s), this.$$p_d = t;
380
+ }
381
+ static get observedAttributes() {
382
+ return Object.keys(t).map(
383
+ (l) => (t[l].attribute || l).toLowerCase()
384
+ );
385
+ }
386
+ };
387
+ return Object.keys(t).forEach((l) => {
388
+ Object.defineProperty(o.prototype, l, {
389
+ get() {
390
+ return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
391
+ },
392
+ set(u) {
393
+ var c;
394
+ u = O(l, u, t), this.$$d[l] = u, (c = this.$$c) == null || c.$set({ [l]: u });
395
+ }
396
+ });
397
+ }), n.forEach((l) => {
398
+ Object.defineProperty(o.prototype, l, {
399
+ get() {
400
+ var u;
401
+ return (u = this.$$c) == null ? void 0 : u[l];
402
+ }
403
+ });
404
+ }), e.element = /** @type {any} */
405
+ o, o;
406
+ }
407
+ class At {
408
+ constructor() {
409
+ /**
410
+ * ### PRIVATE API
411
+ *
412
+ * Do not use, may change at any time
413
+ *
414
+ * @type {any}
415
+ */
416
+ f(this, "$$");
417
+ /**
418
+ * ### PRIVATE API
419
+ *
420
+ * Do not use, may change at any time
421
+ *
422
+ * @type {any}
423
+ */
424
+ f(this, "$$set");
425
+ }
426
+ /** @returns {void} */
427
+ $destroy() {
428
+ Et(this, 1), this.$destroy = W;
429
+ }
430
+ /**
431
+ * @template {Extract<keyof Events, string>} K
432
+ * @param {K} type
433
+ * @param {((e: Events[K]) => void) | null | undefined} callback
434
+ * @returns {() => void}
435
+ */
436
+ $on(t, r) {
437
+ if (!et(r))
438
+ return W;
439
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
440
+ return n.push(r), () => {
441
+ const s = n.indexOf(r);
442
+ s !== -1 && n.splice(s, 1);
443
+ };
444
+ }
445
+ /**
446
+ * @param {Partial<Props>} props
447
+ * @returns {void}
448
+ */
449
+ $set(t) {
450
+ this.$$set && !ft(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
451
+ }
452
+ }
453
+ const jt = "4";
454
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jt);
455
+ function Nt(e) {
456
+ ht(e, "svelte-wg1qy5", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-ring{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-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))}');
457
+ }
458
+ function Ft(e) {
459
+ let t, r, n, s, i, o, l, u;
460
+ return {
461
+ c() {
462
+ t = _("div"), r = _("div"), n = _("div"), s = pt(), i = _("div"), o = _("div"), l = I(
463
+ /*currentstep*/
464
+ e[0]
465
+ ), 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");
466
+ },
467
+ m(c, a) {
468
+ 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);
469
+ },
470
+ p(c, [a]) {
471
+ a & /*currentstep*/
472
+ 1 && _t(
473
+ l,
474
+ /*currentstep*/
475
+ c[0]
476
+ );
477
+ },
478
+ i: W,
479
+ o: W,
480
+ d(c) {
481
+ c && V(t), e[5](null);
482
+ }
483
+ };
484
+ }
485
+ function It(e, t, r) {
486
+ 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, z, H, T, k, L, g, j;
487
+ const J = (d, p) => {
488
+ for (const C in p)
489
+ d.style.setProperty(`--${C}`, p[C]);
490
+ }, Z = (d, p) => (J(d, p), {
491
+ update(C) {
492
+ J(d, C);
493
+ }
494
+ }), it = () => {
495
+ o == "true" ? j = s : j = i, u = l * 0.74, c = (l - u) / 2, a = l * 0.7, h = `${l}px`, w = `${u}px`, R = `${c}px`, S = `${a}px`, z = `${(u - a) / 2}px`, H = `${l / 2}px`, T = `${l / 2 + 1}px`, Z(g, {
496
+ progressRingWidth: h,
497
+ innerSectionWidth: w,
498
+ innerSectionLeft: R,
499
+ progresscolor: j,
500
+ percentSectionWidth: S,
501
+ percentSectionLeft: z,
502
+ leftRotateSectionWidth: H,
503
+ leftRotateSectionAfterWidth: T
504
+ });
505
+ }, q = () => {
506
+ g && (k = "0deg", L = "0deg", n > 100 ? (r(0, n = 100), k = "360deg") : n >= 50 ? (k = `${(n - 50) / 50 * 180 + 180}deg`, L = "0deg") : (k = "180deg", L = `${n / 50 * 180 - 180}deg`), Z(g, { rightRotateDeg: L, leftRotateDeg: k }));
507
+ };
508
+ xt(() => {
509
+ if (g.offsetWidth == 0)
510
+ return;
511
+ let d = g.offsetWidth, p = g.offsetHeight;
512
+ l = d > p && d * p > 0 ? p || 100 : d || 100, it();
513
+ });
514
+ function st(d) {
515
+ B[d ? "unshift" : "push"](() => {
516
+ g = d, r(1, g);
517
+ });
518
+ }
519
+ return e.$$set = (d) => {
520
+ "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);
521
+ }, e.$$.update = () => {
522
+ e.$$.dirty & /*currentstep*/
523
+ 1 && n && q(), e.$$.dirty & /*status*/
524
+ 16 && o && q();
525
+ }, [n, g, s, i, o, st];
526
+ }
527
+ class Bt extends At {
528
+ constructor(t) {
529
+ super(), Ct(
530
+ this,
531
+ t,
532
+ It,
533
+ Ft,
534
+ at,
535
+ {
536
+ currentstep: 0,
537
+ livecolor: 2,
538
+ expiredcolor: 3,
539
+ status: 4
540
+ },
541
+ Nt
542
+ );
543
+ }
544
+ get currentstep() {
545
+ return this.$$.ctx[0];
546
+ }
547
+ set currentstep(t) {
548
+ this.$$set({ currentstep: t }), x();
549
+ }
550
+ get livecolor() {
551
+ return this.$$.ctx[2];
552
+ }
553
+ set livecolor(t) {
554
+ this.$$set({ livecolor: t }), x();
555
+ }
556
+ get expiredcolor() {
557
+ return this.$$.ctx[3];
558
+ }
559
+ set expiredcolor(t) {
560
+ this.$$set({ expiredcolor: t }), x();
561
+ }
562
+ get status() {
563
+ return this.$$.ctx[4];
564
+ }
565
+ set status(t) {
566
+ this.$$set({ status: t }), x();
567
+ }
568
+ }
569
+ Ot(Bt, { currentstep: {}, livecolor: {}, expiredcolor: {}, status: {} }, [], [], !0);
570
+ export {
571
+ Bt as default
572
+ };
@@ -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-DXjKqhRI.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-D6pFESTC.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-CaQzJzkv.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralIconProgressRing-DP3cgLNZ.js").then(({ default: t }) => {
14
14
  !customElements.get("general-icon-progress-ring") && customElements.define("general-icon-progress-ring", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-icon-progress-ring",
3
- "version": "1.45.0",
3
+ "version": "1.45.3",
4
4
  "type": "module",
5
5
  "main": "es2015/general-icon-progress-ring.cjs",
6
6
  "module": "es2015/general-icon-progress-ring.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "./es2015/general-icon-progress-ring.cjs": "./es2015/general-icon-progress-ring.cjs"
13
13
  },
14
- "files": [
14
+ "files": [
15
15
  "es2015/",
16
16
  "components"
17
17
  ],
@@ -1,572 +0,0 @@
1
- var ot = Object.defineProperty, lt = Object.defineProperties;
2
- var ct = Object.getOwnPropertyDescriptors;
3
- var U = Object.getOwnPropertySymbols;
4
- var ut = Object.prototype.hasOwnProperty, dt = Object.prototype.propertyIsEnumerable;
5
- var A = (e, t, r) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, q = (e, t) => {
6
- for (var r in t || (t = {}))
7
- ut.call(t, r) && A(e, r, t[r]);
8
- if (U)
9
- for (var r of U(t))
10
- dt.call(t, r) && A(e, r, t[r]);
11
- return e;
12
- }, K = (e, t) => lt(e, ct(t));
13
- var f = (e, t, r) => A(e, typeof t != "symbol" ? t + "" : t, r);
14
- var Q = (e, t, r) => new Promise((n, i) => {
15
- var s = (u) => {
16
- try {
17
- c(r.next(u));
18
- } catch (l) {
19
- i(l);
20
- }
21
- }, o = (u) => {
22
- try {
23
- c(r.throw(u));
24
- } catch (l) {
25
- i(l);
26
- }
27
- }, c = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
28
- c((r = r.apply(e, t)).next());
29
- });
30
- function k() {
31
- }
32
- function tt(e) {
33
- return e();
34
- }
35
- function X() {
36
- return /* @__PURE__ */ Object.create(null);
37
- }
38
- function C(e) {
39
- e.forEach(tt);
40
- }
41
- function et(e) {
42
- return typeof e == "function";
43
- }
44
- function at(e, t) {
45
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
- }
47
- function ft(e) {
48
- return Object.keys(e).length === 0;
49
- }
50
- function p(e, t) {
51
- e.appendChild(t);
52
- }
53
- function ht(e, t, r) {
54
- const n = $t(e);
55
- if (!n.getElementById(t)) {
56
- const i = b("style");
57
- i.id = t, i.textContent = r, gt(n, i);
58
- }
59
- }
60
- function $t(e) {
61
- if (!e) return document;
62
- const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
63
- return t && /** @type {ShadowRoot} */
64
- t.host ? (
65
- /** @type {ShadowRoot} */
66
- t
67
- ) : e.ownerDocument;
68
- }
69
- function gt(e, t) {
70
- return p(
71
- /** @type {Document} */
72
- e.head || e,
73
- t
74
- ), t.sheet;
75
- }
76
- function rt(e, t, r) {
77
- e.insertBefore(t, r || null);
78
- }
79
- function M(e) {
80
- e.parentNode && e.parentNode.removeChild(e);
81
- }
82
- function b(e) {
83
- return document.createElement(e);
84
- }
85
- function F(e) {
86
- return document.createTextNode(e);
87
- }
88
- function mt() {
89
- return F(" ");
90
- }
91
- function $(e, t, r) {
92
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
93
- }
94
- function pt(e) {
95
- return Array.from(e.childNodes);
96
- }
97
- function bt(e, t) {
98
- t = "" + t, e.data !== t && (e.data = /** @type {string} */
99
- t);
100
- }
101
- function _t(e) {
102
- const t = {};
103
- return e.childNodes.forEach(
104
- /** @param {Element} node */
105
- (r) => {
106
- t[r.slot || "default"] = !0;
107
- }
108
- ), t;
109
- }
110
- let P;
111
- function S(e) {
112
- P = e;
113
- }
114
- function vt() {
115
- if (!P) throw new Error("Function called outside component initialization");
116
- return P;
117
- }
118
- function yt(e) {
119
- vt().$$.on_mount.push(e);
120
- }
121
- const v = [], I = [];
122
- let j = [];
123
- const Y = [], jt = /* @__PURE__ */ Promise.resolve();
124
- let B = !1;
125
- function xt() {
126
- B || (B = !0, jt.then(y));
127
- }
128
- function D(e) {
129
- j.push(e);
130
- }
131
- const N = /* @__PURE__ */ new Set();
132
- let _ = 0;
133
- function y() {
134
- if (_ !== 0)
135
- return;
136
- const e = P;
137
- do {
138
- try {
139
- for (; _ < v.length; ) {
140
- const t = v[_];
141
- _++, S(t), wt(t.$$);
142
- }
143
- } catch (t) {
144
- throw v.length = 0, _ = 0, t;
145
- }
146
- for (S(null), v.length = 0, _ = 0; I.length; ) I.pop()();
147
- for (let t = 0; t < j.length; t += 1) {
148
- const r = j[t];
149
- N.has(r) || (N.add(r), r());
150
- }
151
- j.length = 0;
152
- } while (v.length);
153
- for (; Y.length; )
154
- Y.pop()();
155
- B = !1, N.clear(), S(e);
156
- }
157
- function wt(e) {
158
- if (e.fragment !== null) {
159
- e.update(), C(e.before_update);
160
- const t = e.dirty;
161
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(D);
162
- }
163
- }
164
- function zt(e) {
165
- const t = [], r = [];
166
- j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
167
- }
168
- const Rt = /* @__PURE__ */ new Set();
169
- function St(e, t) {
170
- e && e.i && (Rt.delete(e), e.i(t));
171
- }
172
- function kt(e, t, r) {
173
- const { fragment: n, after_update: i } = e.$$;
174
- n && n.m(t, r), D(() => {
175
- const s = e.$$.on_mount.map(tt).filter(et);
176
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : C(s), e.$$.on_mount = [];
177
- }), i.forEach(D);
178
- }
179
- function Pt(e, t) {
180
- const r = e.$$;
181
- r.fragment !== null && (zt(r.after_update), C(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
182
- }
183
- function Wt(e, t) {
184
- e.$$.dirty[0] === -1 && (v.push(e), xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
- }
186
- function Et(e, t, r, n, i, s, o = null, c = [-1]) {
187
- const u = P;
188
- S(e);
189
- const l = e.$$ = {
190
- fragment: null,
191
- ctx: [],
192
- // state
193
- props: s,
194
- update: k,
195
- not_equal: i,
196
- bound: X(),
197
- // lifecycle
198
- on_mount: [],
199
- on_destroy: [],
200
- on_disconnect: [],
201
- before_update: [],
202
- after_update: [],
203
- context: new Map(t.context || (u ? u.$$.context : [])),
204
- // everything else
205
- callbacks: X(),
206
- dirty: c,
207
- skip_bound: !1,
208
- root: t.target || u.$$.root
209
- };
210
- o && o(l.root);
211
- let a = !1;
212
- if (l.ctx = r ? r(e, t.props || {}, (h, x, ...w) => {
213
- const z = w.length ? w[0] : x;
214
- return l.ctx && i(l.ctx[h], l.ctx[h] = z) && (!l.skip_bound && l.bound[h] && l.bound[h](z), a && Wt(e, h)), x;
215
- }) : [], l.update(), a = !0, C(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
216
- if (t.hydrate) {
217
- const h = pt(t.target);
218
- l.fragment && l.fragment.l(h), h.forEach(M);
219
- } else
220
- l.fragment && l.fragment.c();
221
- t.intro && St(e.$$.fragment), kt(e, t.target, t.anchor), y();
222
- }
223
- S(u);
224
- }
225
- let nt;
226
- typeof HTMLElement == "function" && (nt = class extends HTMLElement {
227
- constructor(t, r, n) {
228
- super();
229
- /** The Svelte component constructor */
230
- f(this, "$$ctor");
231
- /** Slots */
232
- f(this, "$$s");
233
- /** The Svelte component instance */
234
- f(this, "$$c");
235
- /** Whether or not the custom element is connected */
236
- f(this, "$$cn", !1);
237
- /** Component props data */
238
- f(this, "$$d", {});
239
- /** `true` if currently in the process of reflecting component props back to attributes */
240
- f(this, "$$r", !1);
241
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
242
- f(this, "$$p_d", {});
243
- /** @type {Record<string, Function[]>} Event listeners */
244
- f(this, "$$l", {});
245
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
246
- f(this, "$$l_u", /* @__PURE__ */ new Map());
247
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
248
- }
249
- addEventListener(t, r, n) {
250
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
251
- const i = this.$$c.$on(t, r);
252
- this.$$l_u.set(r, i);
253
- }
254
- super.addEventListener(t, r, n);
255
- }
256
- removeEventListener(t, r, n) {
257
- if (super.removeEventListener(t, r, n), this.$$c) {
258
- const i = this.$$l_u.get(r);
259
- i && (i(), this.$$l_u.delete(r));
260
- }
261
- }
262
- connectedCallback() {
263
- return Q(this, null, function* () {
264
- if (this.$$cn = !0, !this.$$c) {
265
- let t = function(s) {
266
- return () => {
267
- let o;
268
- return {
269
- c: function() {
270
- o = b("slot"), s !== "default" && $(o, "name", s);
271
- },
272
- /**
273
- * @param {HTMLElement} target
274
- * @param {HTMLElement} [anchor]
275
- */
276
- m: function(l, a) {
277
- rt(l, o, a);
278
- },
279
- d: function(l) {
280
- l && M(o);
281
- }
282
- };
283
- };
284
- };
285
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
286
- return;
287
- const r = {}, n = _t(this);
288
- for (const s of this.$$s)
289
- s in n && (r[s] = [t(s)]);
290
- for (const s of this.attributes) {
291
- const o = this.$$g_p(s.name);
292
- o in this.$$d || (this.$$d[o] = L(o, s.value, this.$$p_d, "toProp"));
293
- }
294
- for (const s in this.$$p_d)
295
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
296
- this.$$c = new this.$$ctor({
297
- target: this.shadowRoot || this,
298
- props: K(q({}, this.$$d), {
299
- $$slots: r,
300
- $$scope: {
301
- ctx: []
302
- }
303
- })
304
- });
305
- const i = () => {
306
- this.$$r = !0;
307
- for (const s in this.$$p_d)
308
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
309
- const o = L(
310
- s,
311
- this.$$d[s],
312
- this.$$p_d,
313
- "toAttribute"
314
- );
315
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
316
- }
317
- this.$$r = !1;
318
- };
319
- this.$$c.$$.after_update.push(i), i();
320
- for (const s in this.$$l)
321
- for (const o of this.$$l[s]) {
322
- const c = this.$$c.$on(s, o);
323
- this.$$l_u.set(o, c);
324
- }
325
- this.$$l = {};
326
- }
327
- });
328
- }
329
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
330
- // and setting attributes through setAttribute etc, this is helpful
331
- attributeChangedCallback(t, r, n) {
332
- var i;
333
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = L(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
334
- }
335
- disconnectedCallback() {
336
- this.$$cn = !1, Promise.resolve().then(() => {
337
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
338
- });
339
- }
340
- $$g_p(t) {
341
- return Object.keys(this.$$p_d).find(
342
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
343
- ) || t;
344
- }
345
- });
346
- function L(e, t, r, n) {
347
- var s;
348
- const i = (s = r[e]) == null ? void 0 : s.type;
349
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
350
- return t;
351
- if (n === "toAttribute")
352
- switch (i) {
353
- case "Object":
354
- case "Array":
355
- return t == null ? null : JSON.stringify(t);
356
- case "Boolean":
357
- return t ? "" : null;
358
- case "Number":
359
- return t == null ? null : t;
360
- default:
361
- return t;
362
- }
363
- else
364
- switch (i) {
365
- case "Object":
366
- case "Array":
367
- return t && JSON.parse(t);
368
- case "Boolean":
369
- return t;
370
- case "Number":
371
- return t != null ? +t : t;
372
- default:
373
- return t;
374
- }
375
- }
376
- function Lt(e, t, r, n, i, s) {
377
- let o = class extends nt {
378
- constructor() {
379
- super(e, r, i), this.$$p_d = t;
380
- }
381
- static get observedAttributes() {
382
- return Object.keys(t).map(
383
- (c) => (t[c].attribute || c).toLowerCase()
384
- );
385
- }
386
- };
387
- return Object.keys(t).forEach((c) => {
388
- Object.defineProperty(o.prototype, c, {
389
- get() {
390
- return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
391
- },
392
- set(u) {
393
- var l;
394
- u = L(c, u, t), this.$$d[c] = u, (l = this.$$c) == null || l.$set({ [c]: u });
395
- }
396
- });
397
- }), n.forEach((c) => {
398
- Object.defineProperty(o.prototype, c, {
399
- get() {
400
- var u;
401
- return (u = this.$$c) == null ? void 0 : u[c];
402
- }
403
- });
404
- }), e.element = /** @type {any} */
405
- o, o;
406
- }
407
- class Ct {
408
- constructor() {
409
- /**
410
- * ### PRIVATE API
411
- *
412
- * Do not use, may change at any time
413
- *
414
- * @type {any}
415
- */
416
- f(this, "$$");
417
- /**
418
- * ### PRIVATE API
419
- *
420
- * Do not use, may change at any time
421
- *
422
- * @type {any}
423
- */
424
- f(this, "$$set");
425
- }
426
- /** @returns {void} */
427
- $destroy() {
428
- Pt(this, 1), this.$destroy = k;
429
- }
430
- /**
431
- * @template {Extract<keyof Events, string>} K
432
- * @param {K} type
433
- * @param {((e: Events[K]) => void) | null | undefined} callback
434
- * @returns {() => void}
435
- */
436
- $on(t, r) {
437
- if (!et(r))
438
- return k;
439
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
440
- return n.push(r), () => {
441
- const i = n.indexOf(r);
442
- i !== -1 && n.splice(i, 1);
443
- };
444
- }
445
- /**
446
- * @param {Partial<Props>} props
447
- * @returns {void}
448
- */
449
- $set(t) {
450
- this.$$set && !ft(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
451
- }
452
- }
453
- const Ot = "4";
454
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ot);
455
- function At(e) {
456
- ht(e, "svelte-3jmzl1", '.svelte-3jmzl1.svelte-3jmzl1,.svelte-3jmzl1.svelte-3jmzl1::before,.svelte-3jmzl1.svelte-3jmzl1::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-ring.svelte-3jmzl1.svelte-3jmzl1{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF)}.Progress.svelte-3jmzl1.svelte-3jmzl1{margin:auto;width:var(--progressRingWidth);height:var(--progressRingWidth);position:relative}.Progress.svelte-3jmzl1 .InnerSection.svelte-3jmzl1{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.svelte-3jmzl1 .InnerSection .Percent.svelte-3jmzl1{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.svelte-3jmzl1.svelte-3jmzl1,.Right.svelte-3jmzl1.svelte-3jmzl1{width:var(--leftRotateSectionWidth);height:var(--progressRingWidth);overflow:hidden;position:relative;float:left;background-color:#F2F4F6}.Left.svelte-3jmzl1.svelte-3jmzl1{border-radius:0;border-top-left-radius:var(--progressRingWidth);border-bottom-left-radius:var(--progressRingWidth)}.Right.svelte-3jmzl1.svelte-3jmzl1{border-radius:0;border-top-right-radius:var(--progressRingWidth);border-bottom-right-radius:var(--progressRingWidth)}.Left.svelte-3jmzl1.svelte-3jmzl1:after,.Right.svelte-3jmzl1.svelte-3jmzl1: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.svelte-3jmzl1.svelte-3jmzl1:after{content:"";position:absolute;display:block;border-radius:0;border-top-right-radius:var(--widthInPx);border-bottom-right-radius:var(--widthInPx)}.Left.svelte-3jmzl1.svelte-3jmzl1:after{transform-origin:right center;transform:rotateZ(var(--leftRotateDeg, 180deg))}.Right.svelte-3jmzl1.svelte-3jmzl1:after{transform-origin:left center;transform:rotateZ(var(--rightRotateDeg, 0deg))}');
457
- }
458
- function Nt(e) {
459
- let t, r, n, i, s, o, c, u;
460
- return {
461
- c() {
462
- t = b("div"), r = b("div"), n = b("div"), i = mt(), s = b("div"), o = b("div"), c = F(
463
- /*currentstep*/
464
- e[0]
465
- ), u = F("%"), $(r, "class", "Left svelte-3jmzl1"), $(r, "part", "Progress Left"), $(n, "class", "Right svelte-3jmzl1"), $(n, "part", "Progress Right"), $(o, "class", "Percent svelte-3jmzl1"), $(o, "part", "Progress Percent"), $(s, "class", "InnerSection svelte-3jmzl1"), $(s, "part", "Progress InnerSection"), $(t, "class", "general-icon-progress-ring Progress svelte-3jmzl1"), $(t, "part", "ProgressRing");
466
- },
467
- m(l, a) {
468
- rt(l, t, a), p(t, r), p(t, n), p(t, i), p(t, s), p(s, o), p(o, c), p(o, u), e[5](t);
469
- },
470
- p(l, [a]) {
471
- a & /*currentstep*/
472
- 1 && bt(
473
- c,
474
- /*currentstep*/
475
- l[0]
476
- );
477
- },
478
- i: k,
479
- o: k,
480
- d(l) {
481
- l && M(t), e[5](null);
482
- }
483
- };
484
- }
485
- function Ft(e, t, r) {
486
- let { currentstep: n = 0 } = t, { livecolor: i = "#00AEEF" } = t, { expiredcolor: s = "#C4C4C4" } = t, { status: o = "true" } = t, c = 100, u, l, a, h, x, w, z, V, H, T, R, W, g, O;
487
- const J = (d, m) => {
488
- for (const E in m)
489
- d.style.setProperty(`--${E}`, m[E]);
490
- }, Z = (d, m) => (J(d, m), {
491
- update(E) {
492
- J(d, E);
493
- }
494
- }), st = () => {
495
- o == "true" ? O = i : O = s, u = c * 0.74, l = (c - u) / 2, a = c * 0.7, h = `${c}px`, x = `${u}px`, w = `${l}px`, z = `${a}px`, V = `${(u - a) / 2}px`, H = `${c / 2}px`, T = `${c / 2 + 1}px`, Z(g, {
496
- progressRingWidth: h,
497
- innerSectionWidth: x,
498
- innerSectionLeft: w,
499
- progresscolor: O,
500
- percentSectionWidth: z,
501
- percentSectionLeft: V,
502
- leftRotateSectionWidth: H,
503
- leftRotateSectionAfterWidth: T
504
- });
505
- }, G = () => {
506
- g && (R = "0deg", W = "0deg", n > 100 ? (r(0, n = 100), R = "360deg") : n >= 50 ? (R = `${(n - 50) / 50 * 180 + 180}deg`, W = "0deg") : (R = "180deg", W = `${n / 50 * 180 - 180}deg`), Z(g, { rightRotateDeg: W, leftRotateDeg: R }));
507
- };
508
- yt(() => {
509
- if (g.offsetWidth == 0)
510
- return;
511
- let d = g.offsetWidth, m = g.offsetHeight;
512
- c = d > m && d * m > 0 ? m || 100 : d || 100, st();
513
- });
514
- function it(d) {
515
- I[d ? "unshift" : "push"](() => {
516
- g = d, r(1, g);
517
- });
518
- }
519
- return e.$$set = (d) => {
520
- "currentstep" in d && r(0, n = d.currentstep), "livecolor" in d && r(2, i = d.livecolor), "expiredcolor" in d && r(3, s = d.expiredcolor), "status" in d && r(4, o = d.status);
521
- }, e.$$.update = () => {
522
- e.$$.dirty & /*currentstep*/
523
- 1 && n && G(), e.$$.dirty & /*status*/
524
- 16 && o && G();
525
- }, [n, g, i, s, o, it];
526
- }
527
- class It extends Ct {
528
- constructor(t) {
529
- super(), Et(
530
- this,
531
- t,
532
- Ft,
533
- Nt,
534
- at,
535
- {
536
- currentstep: 0,
537
- livecolor: 2,
538
- expiredcolor: 3,
539
- status: 4
540
- },
541
- At
542
- );
543
- }
544
- get currentstep() {
545
- return this.$$.ctx[0];
546
- }
547
- set currentstep(t) {
548
- this.$$set({ currentstep: t }), y();
549
- }
550
- get livecolor() {
551
- return this.$$.ctx[2];
552
- }
553
- set livecolor(t) {
554
- this.$$set({ livecolor: t }), y();
555
- }
556
- get expiredcolor() {
557
- return this.$$.ctx[3];
558
- }
559
- set expiredcolor(t) {
560
- this.$$set({ expiredcolor: t }), y();
561
- }
562
- get status() {
563
- return this.$$.ctx[4];
564
- }
565
- set status(t) {
566
- this.$$set({ status: t }), y();
567
- }
568
- }
569
- Lt(It, { currentstep: {}, livecolor: {}, expiredcolor: {}, status: {} }, [], [], !0);
570
- export {
571
- It as default
572
- };
@@ -1 +0,0 @@
1
- "use strict";var lt=Object.defineProperty,ct=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable;var A=(e,t,r)=>t in e?lt(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)&&A(e,r,t[r]);if(U)for(var r of U(t))at.call(t,r)&&A(e,r,t[r]);return e},K=(e,t)=>ct(e,ut(t));var f=(e,t,r)=>A(e,typeof t!="symbol"?t+"":t,r);var Q=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{c(r.next(u))}catch(l){i(l)}},o=u=>{try{c(r.throw(u))}catch(l){i(l)}},c=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);c((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function P(){}function tt(e){return e()}function X(){return Object.create(null)}function O(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 p(e,t){e.appendChild(t)}function $t(e,t,r){const n=gt(e);if(!n.getElementById(t)){const i=b("style");i.id=t,i.textContent=r,mt(n,i)}}function gt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function mt(e,t){return p(e.head||e,t),t.sheet}function rt(e,t,r){e.insertBefore(t,r||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function b(e){return document.createElement(e)}function F(e){return document.createTextNode(e)}function pt(){return F(" ")}function $(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function bt(e){return Array.from(e.childNodes)}function _t(e,t){t=""+t,e.data!==t&&(e.data=t)}function vt(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let k;function S(e){k=e}function yt(){if(!k)throw new Error("Function called outside component initialization");return k}function jt(e){yt().$$.on_mount.push(e)}const v=[],I=[];let j=[];const Y=[],xt=Promise.resolve();let B=!1;function wt(){B||(B=!0,xt.then(y))}function D(e){j.push(e)}const N=new Set;let _=0;function y(){if(_!==0)return;const e=k;do{try{for(;_<v.length;){const t=v[_];_++,S(t),zt(t.$$)}}catch(t){throw v.length=0,_=0,t}for(S(null),v.length=0,_=0;I.length;)I.pop()();for(let t=0;t<j.length;t+=1){const r=j[t];N.has(r)||(N.add(r),r())}j.length=0}while(v.length);for(;Y.length;)Y.pop()();B=!1,N.clear(),S(e)}function zt(e){if(e.fragment!==null){e.update(),O(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(D)}}function Rt(e){const t=[],r=[];j.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),j=t}const St=new Set;function Pt(e,t){e&&e.i&&(St.delete(e),e.i(t))}function kt(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),D(()=>{const s=e.$$.on_mount.map(tt).filter(et);e.$$.on_destroy?e.$$.on_destroy.push(...s):O(s),e.$$.on_mount=[]}),i.forEach(D)}function Wt(e,t){const r=e.$$;r.fragment!==null&&(Rt(r.after_update),O(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Et(e,t){e.$$.dirty[0]===-1&&(v.push(e),wt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Lt(e,t,r,n,i,s,o=null,c=[-1]){const u=k;S(e);const l=e.$$={fragment:null,ctx:[],props:s,update:P,not_equal:i,bound:X(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:X(),dirty:c,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let a=!1;if(l.ctx=r?r(e,t.props||{},(h,x,...w)=>{const z=w.length?w[0]:x;return l.ctx&&i(l.ctx[h],l.ctx[h]=z)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](z),a&&Et(e,h)),x}):[],l.update(),a=!0,O(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const h=bt(t.target);l.fragment&&l.fragment.l(h),h.forEach(M)}else l.fragment&&l.fragment.c();t.intro&&Pt(e.$$.fragment),kt(e,t.target,t.anchor),y()}S(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 i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=b("slot"),s!=="default"&&$(o,"name",s)},m:function(l,a){rt(l,o,a)},d:function(l){l&&M(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=vt(this);for(const s of this.$$s)s in n&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=L(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:K(q({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=L(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const o of this.$$l[s]){const c=this.$$c.$on(s,o);this.$$l_u.set(o,c)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=L(t,n,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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function L(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 Ot(e,t,r,n,i,s){let o=class extends nt{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(o.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(u){var l;u=L(c,u,t),this.$$d[c]=u,(l=this.$$c)==null||l.$set({[c]:u})}})}),n.forEach(c=>{Object.defineProperty(o.prototype,c,{get(){var u;return(u=this.$$c)==null?void 0:u[c]}})}),e.element=o,o}class Ct{constructor(){f(this,"$$");f(this,"$$set")}$destroy(){Wt(this,1),this.$destroy=P}$on(t,r){if(!et(r))return P;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!ht(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Nt(e){$t(e,"svelte-3jmzl1",'.svelte-3jmzl1.svelte-3jmzl1,.svelte-3jmzl1.svelte-3jmzl1::before,.svelte-3jmzl1.svelte-3jmzl1::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-ring.svelte-3jmzl1.svelte-3jmzl1{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF)}.Progress.svelte-3jmzl1.svelte-3jmzl1{margin:auto;width:var(--progressRingWidth);height:var(--progressRingWidth);position:relative}.Progress.svelte-3jmzl1 .InnerSection.svelte-3jmzl1{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.svelte-3jmzl1 .InnerSection .Percent.svelte-3jmzl1{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.svelte-3jmzl1.svelte-3jmzl1,.Right.svelte-3jmzl1.svelte-3jmzl1{width:var(--leftRotateSectionWidth);height:var(--progressRingWidth);overflow:hidden;position:relative;float:left;background-color:#F2F4F6}.Left.svelte-3jmzl1.svelte-3jmzl1{border-radius:0;border-top-left-radius:var(--progressRingWidth);border-bottom-left-radius:var(--progressRingWidth)}.Right.svelte-3jmzl1.svelte-3jmzl1{border-radius:0;border-top-right-radius:var(--progressRingWidth);border-bottom-right-radius:var(--progressRingWidth)}.Left.svelte-3jmzl1.svelte-3jmzl1:after,.Right.svelte-3jmzl1.svelte-3jmzl1: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.svelte-3jmzl1.svelte-3jmzl1:after{content:"";position:absolute;display:block;border-radius:0;border-top-right-radius:var(--widthInPx);border-bottom-right-radius:var(--widthInPx)}.Left.svelte-3jmzl1.svelte-3jmzl1:after{transform-origin:right center;transform:rotateZ(var(--leftRotateDeg, 180deg))}.Right.svelte-3jmzl1.svelte-3jmzl1:after{transform-origin:left center;transform:rotateZ(var(--rightRotateDeg, 0deg))}')}function Ft(e){let t,r,n,i,s,o,c,u;return{c(){t=b("div"),r=b("div"),n=b("div"),i=pt(),s=b("div"),o=b("div"),c=F(e[0]),u=F("%"),$(r,"class","Left svelte-3jmzl1"),$(r,"part","Progress Left"),$(n,"class","Right svelte-3jmzl1"),$(n,"part","Progress Right"),$(o,"class","Percent svelte-3jmzl1"),$(o,"part","Progress Percent"),$(s,"class","InnerSection svelte-3jmzl1"),$(s,"part","Progress InnerSection"),$(t,"class","general-icon-progress-ring Progress svelte-3jmzl1"),$(t,"part","ProgressRing")},m(l,a){rt(l,t,a),p(t,r),p(t,n),p(t,i),p(t,s),p(s,o),p(o,c),p(o,u),e[5](t)},p(l,[a]){a&1&&_t(c,l[0])},i:P,o:P,d(l){l&&M(t),e[5](null)}}}function It(e,t,r){let{currentstep:n=0}=t,{livecolor:i="#00AEEF"}=t,{expiredcolor:s="#C4C4C4"}=t,{status:o="true"}=t,c=100,u,l,a,h,x,w,z,V,T,H,R,W,g,C;const J=(d,m)=>{for(const E in m)d.style.setProperty(`--${E}`,m[E])},Z=(d,m)=>(J(d,m),{update(E){J(d,E)}}),it=()=>{o=="true"?C=i:C=s,u=c*.74,l=(c-u)/2,a=c*.7,h=`${c}px`,x=`${u}px`,w=`${l}px`,z=`${a}px`,V=`${(u-a)/2}px`,T=`${c/2}px`,H=`${c/2+1}px`,Z(g,{progressRingWidth:h,innerSectionWidth:x,innerSectionLeft:w,progresscolor:C,percentSectionWidth:z,percentSectionLeft:V,leftRotateSectionWidth:T,leftRotateSectionAfterWidth:H})},G=()=>{g&&(R="0deg",W="0deg",n>100?(r(0,n=100),R="360deg"):n>=50?(R=`${(n-50)/50*180+180}deg`,W="0deg"):(R="180deg",W=`${n/50*180-180}deg`),Z(g,{rightRotateDeg:W,leftRotateDeg:R}))};jt(()=>{if(g.offsetWidth==0)return;let d=g.offsetWidth,m=g.offsetHeight;c=d>m&&d*m>0?m||100:d||100,it()});function ot(d){I[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,i=d.livecolor),"expiredcolor"in d&&r(3,s=d.expiredcolor),"status"in d&&r(4,o=d.status)},e.$$.update=()=>{e.$$.dirty&1&&n&&G(),e.$$.dirty&16&&o&&G()},[n,g,i,s,o,ot]}class st extends Ct{constructor(t){super(),Lt(this,t,It,Ft,ft,{currentstep:0,livecolor:2,expiredcolor:3,status:4},Nt)}get currentstep(){return this.$$.ctx[0]}set currentstep(t){this.$$set({currentstep:t}),y()}get livecolor(){return this.$$.ctx[2]}set livecolor(t){this.$$set({livecolor:t}),y()}get expiredcolor(){return this.$$.ctx[3]}set expiredcolor(t){this.$$set({expiredcolor:t}),y()}get status(){return this.$$.ctx[4]}set status(t){this.$$set({status:t}),y()}}Ot(st,{currentstep:{},livecolor:{},expiredcolor:{},status:{}},[],[],!0);exports.default=st;