@everymatrix/casino-wagering-bonus-progress 1.76.3 → 1.76.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";var st=Object.defineProperty,rt=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var B=(t,e,n)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))ot.call(e,n)&&B(t,n,e[n]);if(D)for(var n of D(e))ct.call(e,n)&&B(t,n,e[n]);return t},J=(t,e)=>rt(t,it(e));var h=(t,e,n)=>(B(t,typeof e!="symbol"?e+"":e,n),n);var U=(t,e,n)=>new Promise((r,o)=>{var s=c=>{try{u(n.next(c))}catch(f){o(f)}},l=c=>{try{u(n.throw(c))}catch(f){o(f)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,l);u((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}function v(t,e){for(const n in e)t[n]=e[n];return t}function X(t){return t()}function q(){return Object.create(null)}function I(t){t.forEach(X)}function Y(t){return typeof t=="function"}function lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ut(t){return Object.keys(t).length===0}const ft=["",!0,1,"true","contenteditable"];function w(t,e){t.appendChild(e)}function $t(t,e,n){const r=at(t);if(!r.getElementById(e)){const o=x("style");o.id=e,o.textContent=n,dt(r,o)}}function at(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function dt(t,e){return w(t.head||t,e),e.sheet}function Z(t,e,n){t.insertBefore(e,n||null)}function R(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t){return document.createTextNode(t)}function ht(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function tt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e){for(const n in e)tt(t,n,e[n])}function _t(t){return Array.from(t.childNodes)}function gt(t,e){e=""+e,t.data!==e&&(t.data=e)}function mt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function pt(t,e,n){~ft.indexOf(n)?mt(t,e):gt(t,e)}function bt(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let V;function N(t){V=t}const P=[],K=[];let C=[];const Q=[],yt=Promise.resolve();let W=!1;function wt(){W||(W=!0,yt.then(M))}function L(t){C.push(t)}const z=new Set;let E=0;function M(){if(E!==0)return;const t=V;do{try{for(;E<P.length;){const e=P[E];E++,N(e),kt(e.$$)}}catch(e){throw P.length=0,E=0,e}for(N(null),P.length=0,E=0;K.length;)K.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];z.has(n)||(z.add(n),n())}C.length=0}while(P.length);for(;Q.length;)Q.pop()();W=!1,z.clear(),N(t)}function kt(t){if(t.fragment!==null){t.update(),I(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(L)}}function Et(t){const e=[],n=[];C.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),C=e}const Pt=new Set;function Ct(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function j(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],u=e[s];if(u){for(const c in l)c in u||(r[c]=1);for(const c in u)o[c]||(n[c]=u[c],o[c]=1);t[s]=u}else for(const c in l)o[c]=1}for(const l in r)l in n||(n[l]=void 0);return n}function vt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),L(()=>{const s=t.$$.on_mount.map(X).filter(Y);t.$$.on_destroy?t.$$.on_destroy.push(...s):I(s),t.$$.on_mount=[]}),o.forEach(L)}function Ot(t,e){const n=t.$$;n.fragment!==null&&(Et(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function jt(t,e){t.$$.dirty[0]===-1&&(P.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Nt(t,e,n,r,o,s,l=null,u=[-1]){const c=V;N(t);const f=t.$$={fragment:null,ctx:[],props:s,update:F,not_equal:o,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:q(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};l&&l(f.root);let _=!1;if(f.ctx=n?n(t,e.props||{},(a,g,...d)=>{const y=d.length?d[0]:g;return f.ctx&&o(f.ctx[a],f.ctx[a]=y)&&(!f.skip_bound&&f.bound[a]&&f.bound[a](y),_&&jt(t,a)),g}):[],f.update(),_=!0,I(f.before_update),f.fragment=r?r(f.ctx):!1,e.target){if(e.hydrate){const a=_t(e.target);f.fragment&&f.fragment.l(a),a.forEach(R)}else f.fragment&&f.fragment.c();e.intro&&Ct(t.$$.fragment),vt(t,e.target,e.anchor),M()}N(c)}let et;typeof HTMLElement=="function"&&(et=class extends HTMLElement{constructor(e,n,r){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const o=this.$$c.$on(e,n);this.$$l_u.set(n,o)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=x("slot"),s!=="default"&&tt(l,"name",s)},m:function(f,_){Z(f,l,_)},d:function(f){f&&R(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=bt(this);for(const s of this.$$s)s in r&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=A(l,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:J(H({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{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 l=A(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const u=this.$$c.$on(s,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(e,n,r){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=A(e,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function A(t,e,n,r){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ft(t,e,n,r,o,s){let l=class extends et{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(u=>(e[u].attribute||u).toLowerCase())}};return Object.keys(e).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var f;c=A(u,c,e),this.$$d[u]=c,(f=this.$$c)==null||f.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),t.element=l,l}class St{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ot(this,1),this.$destroy=F}$on(e,n){if(!Y(n))return F;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!ut(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Lt(t){$t(t,"svelte-1xvg6od","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}")}function Mt(t){let e,n,r,o,s,l,u,c,f;L(t[11]);let _=[{class:"ring",r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`}],a={};for(let i=0;i<_.length;i+=1)a=v(a,_[i]);let g=[{class:`ring ring-progress ${t[1]===t[6].InProgress?"active":""}`,r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`,"stroke-dasharray":`${t[8]} ${t[8]}`,"stroke-dashoffset":t[8]-Number(t[0])/100*t[8]}],d={};for(let i=0;i<g.length;i+=1)d=v(d,g[i]);let y=[{class:`center ${t[1]===t[6].InProgress?"active":""}`,r:t[3]-t[5]/2-3,cx:t[9],cy:t[9]}],k={};for(let i=0;i<y.length;i+=1)k=v(k,y[i]);let $=[{x:t[9],y:t[9]},t[7]("ProgressText")],p={};for(let i=0;i<$.length;i+=1)p=v(p,$[i]);let T=[{width:t[4],height:t[4]}],S={};for(let i=0;i<T.length;i+=1)S=v(S,T[i]);return{c(){e=O("svg"),n=O("circle"),r=O("circle"),o=O("circle"),s=O("text"),l=G(t[0]),u=G("%"),m(n,a),m(r,d),m(o,k),m(s,p),m(e,S)},m(i,b){Z(i,e,b),w(e,n),w(e,r),w(e,o),w(e,s),w(s,l),w(s,u),c||(f=ht(window,"resize",t[11]),c=!0)},p(i,[b]){m(n,a=j(_,[b&552&&{class:"ring",r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`}])),m(r,d=j(g,[b&875&&{class:`ring ring-progress ${i[1]===i[6].InProgress?"active":""}`,r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`,"stroke-dasharray":`${i[8]} ${i[8]}`,"stroke-dashoffset":i[8]-Number(i[0])/100*i[8]}])),m(o,k=j(y,[b&618&&{class:`center ${i[1]===i[6].InProgress?"active":""}`,r:i[3]-i[5]/2-3,cx:i[9],cy:i[9]}])),b&1&&pt(l,i[0],p.contenteditable),m(s,p=j($,[b&512&&{x:i[9],y:i[9]},b&128&&i[7]("ProgressText")])),m(e,S=j(T,[b&16&&{width:i[4],height:i[4]}]))},i:F,o:F,d(i){i&&R(e),c=!1,f()}}}function It(t,e,n){let r,o,s,l,u,c,f,{percent:_=""}=e,{status:a=""}=e;var g;(function($){$.BeforeClaimed="BeforeClaimed",$.InProgress="active",$.ForfeitedOrCompleted="ForfeitedOrCompleted"})(g||(g={}));let d=200;const y=($,p="")=>({part:$,class:[$,p].join(" ")});function k(){n(2,d=window.innerWidth)}return t.$$set=$=>{"percent"in $&&n(0,_=$.percent),"status"in $&&n(1,a=$.status)},t.$$.update=()=>{t.$$.dirty&4&&n(10,r=d<=576),t.$$.dirty&1028&&n(4,o=r?d/4:100),t.$$.dirty&16&&n(5,s=o/7.5),t.$$.dirty&48&&n(3,l=o/2-s/2),t.$$.dirty&16&&n(9,u=o/2),t.$$.dirty&8&&n(8,c=l*2*Math.PI),t.$$.dirty&1024&&n(7,f=($,p="")=>y(`${$}${r?` ${$}Mobile`:""}`,p))},[_,a,d,l,o,s,g,f,c,u,r,k]}class nt extends St{constructor(e){super(),Nt(this,e,It,Mt,lt,{percent:0,status:1},Lt)}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),M()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),M()}}Ft(nt,{percent:{},status:{}},[],[],!0);exports.default=nt;
@@ -217,10 +217,10 @@ function mt(t, e, n, i, s, o, u = null, c = [-1]) {
217
217
  };
218
218
  u && u(f.root);
219
219
  let g = !1;
220
- if (f.ctx = n(t, e.props || {}, (a, h, ...d) => {
220
+ if (f.ctx = n ? n(t, e.props || {}, (a, h, ...d) => {
221
221
  const b = d.length ? d[0] : h;
222
222
  return f.ctx && s(f.ctx[a], f.ctx[a] = b) && (!f.skip_bound && f.bound[a] && f.bound[a](b), g && gt(t, a)), h;
223
- }), f.update(), g = !0, S(f.before_update), f.fragment = i(f.ctx), e.target) {
223
+ }) : [], f.update(), g = !0, S(f.before_update), f.fragment = i ? i(f.ctx) : !1, e.target) {
224
224
  if (e.hydrate) {
225
225
  const a = st(e.target);
226
226
  f.fragment && f.fragment.l(a), a.forEach(z);
@@ -11,7 +11,7 @@ var T = (t, e, n) => e in t ? nt(t, e, { enumerable: !0, configurable: !0, writa
11
11
  return t;
12
12
  }, J = (t, e) => st(t, rt(e));
13
13
  var h = (t, e, n) => (T(t, typeof e != "symbol" ? e + "" : e, n), n);
14
- var U = (t, e, n) => new Promise((i, o) => {
14
+ var U = (t, e, n) => new Promise((r, o) => {
15
15
  var s = (c) => {
16
16
  try {
17
17
  u(n.next(c));
@@ -24,7 +24,7 @@ var U = (t, e, n) => new Promise((i, o) => {
24
24
  } catch (f) {
25
25
  o(f);
26
26
  }
27
- }, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, l);
27
+ }, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(s, l);
28
28
  u((n = n.apply(t, e)).next());
29
29
  });
30
30
  function F() {
@@ -60,10 +60,10 @@ function w(t, e) {
60
60
  t.appendChild(e);
61
61
  }
62
62
  function ft(t, e, n) {
63
- const i = $t(t);
64
- if (!i.getElementById(e)) {
63
+ const r = $t(t);
64
+ if (!r.getElementById(e)) {
65
65
  const o = x("style");
66
- o.id = e, o.textContent = n, at(i, o);
66
+ o.id = e, o.textContent = n, at(r, o);
67
67
  }
68
68
  }
69
69
  function $t(t) {
@@ -98,8 +98,8 @@ function O(t) {
98
98
  function G(t) {
99
99
  return document.createTextNode(t);
100
100
  }
101
- function dt(t, e, n, i) {
102
- return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
101
+ function dt(t, e, n, r) {
102
+ return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
103
103
  }
104
104
  function tt(t, e, n) {
105
105
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
@@ -181,20 +181,20 @@ function wt(t) {
181
181
  }
182
182
  function kt(t) {
183
183
  const e = [], n = [];
184
- C.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), C = e;
184
+ C.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), C = e;
185
185
  }
186
186
  const Et = /* @__PURE__ */ new Set();
187
187
  function Pt(t, e) {
188
188
  t && t.i && (Et.delete(t), t.i(e));
189
189
  }
190
190
  function N(t, e) {
191
- const n = {}, i = {}, o = { $$scope: 1 };
191
+ const n = {}, r = {}, o = { $$scope: 1 };
192
192
  let s = t.length;
193
193
  for (; s--; ) {
194
194
  const l = t[s], u = e[s];
195
195
  if (u) {
196
196
  for (const c in l)
197
- c in u || (i[c] = 1);
197
+ c in u || (r[c] = 1);
198
198
  for (const c in u)
199
199
  o[c] || (n[c] = u[c], o[c] = 1);
200
200
  t[s] = u;
@@ -202,13 +202,13 @@ function N(t, e) {
202
202
  for (const c in l)
203
203
  o[c] = 1;
204
204
  }
205
- for (const l in i)
205
+ for (const l in r)
206
206
  l in n || (n[l] = void 0);
207
207
  return n;
208
208
  }
209
209
  function Ct(t, e, n) {
210
- const { fragment: i, after_update: o } = t.$$;
211
- i && i.m(e, n), M(() => {
210
+ const { fragment: r, after_update: o } = t.$$;
211
+ r && r.m(e, n), M(() => {
212
212
  const s = t.$$.on_mount.map(X).filter(Y);
213
213
  t.$$.on_destroy ? t.$$.on_destroy.push(...s) : I(s), t.$$.on_mount = [];
214
214
  }), o.forEach(M);
@@ -220,7 +220,7 @@ function vt(t, e) {
220
220
  function Ot(t, e) {
221
221
  t.$$.dirty[0] === -1 && (P.push(t), yt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
222
222
  }
223
- function Nt(t, e, n, i, o, s, l = null, u = [-1]) {
223
+ function Nt(t, e, n, r, o, s, l = null, u = [-1]) {
224
224
  const c = V;
225
225
  j(t);
226
226
  const f = t.$$ = {
@@ -246,10 +246,10 @@ function Nt(t, e, n, i, o, s, l = null, u = [-1]) {
246
246
  };
247
247
  l && l(f.root);
248
248
  let _ = !1;
249
- if (f.ctx = n(t, e.props || {}, (a, g, ...d) => {
249
+ if (f.ctx = n ? n(t, e.props || {}, (a, g, ...d) => {
250
250
  const y = d.length ? d[0] : g;
251
251
  return f.ctx && o(f.ctx[a], f.ctx[a] = y) && (!f.skip_bound && f.bound[a] && f.bound[a](y), _ && Ot(t, a)), g;
252
- }), f.update(), _ = !0, I(f.before_update), f.fragment = i(f.ctx), e.target) {
252
+ }) : [], f.update(), _ = !0, I(f.before_update), f.fragment = r ? r(f.ctx) : !1, e.target) {
253
253
  if (e.hydrate) {
254
254
  const a = ht(e.target);
255
255
  f.fragment && f.fragment.l(a), a.forEach(R);
@@ -261,7 +261,7 @@ function Nt(t, e, n, i, o, s, l = null, u = [-1]) {
261
261
  }
262
262
  let et;
263
263
  typeof HTMLElement == "function" && (et = class extends HTMLElement {
264
- constructor(e, n, i) {
264
+ constructor(e, n, r) {
265
265
  super();
266
266
  /** The Svelte component constructor */
267
267
  h(this, "$$ctor");
@@ -281,17 +281,17 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
281
281
  h(this, "$$l", {});
282
282
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
283
283
  h(this, "$$l_u", /* @__PURE__ */ new Map());
284
- this.$$ctor = e, this.$$s = n, i && this.attachShadow({ mode: "open" });
284
+ this.$$ctor = e, this.$$s = n, r && this.attachShadow({ mode: "open" });
285
285
  }
286
- addEventListener(e, n, i) {
286
+ addEventListener(e, n, r) {
287
287
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(n), this.$$c) {
288
288
  const o = this.$$c.$on(e, n);
289
289
  this.$$l_u.set(n, o);
290
290
  }
291
- super.addEventListener(e, n, i);
291
+ super.addEventListener(e, n, r);
292
292
  }
293
- removeEventListener(e, n, i) {
294
- if (super.removeEventListener(e, n, i), this.$$c) {
293
+ removeEventListener(e, n, r) {
294
+ if (super.removeEventListener(e, n, r), this.$$c) {
295
295
  const o = this.$$l_u.get(n);
296
296
  o && (o(), this.$$l_u.delete(n));
297
297
  }
@@ -321,9 +321,9 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
321
321
  };
322
322
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
323
323
  return;
324
- const n = {}, i = pt(this);
324
+ const n = {}, r = pt(this);
325
325
  for (const s of this.$$s)
326
- s in i && (n[s] = [e(s)]);
326
+ s in r && (n[s] = [e(s)]);
327
327
  for (const s of this.attributes) {
328
328
  const l = this.$$g_p(s.name);
329
329
  l in this.$$d || (this.$$d[l] = L(l, s.value, this.$$p_d, "toProp"));
@@ -365,9 +365,9 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
365
365
  }
366
366
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
367
367
  // and setting attributes through setAttribute etc, this is helpful
368
- attributeChangedCallback(e, n, i) {
368
+ attributeChangedCallback(e, n, r) {
369
369
  var o;
370
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = L(e, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [e]: this.$$d[e] }));
370
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = L(e, r, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [e]: this.$$d[e] }));
371
371
  }
372
372
  disconnectedCallback() {
373
373
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -380,12 +380,12 @@ typeof HTMLElement == "function" && (et = class extends HTMLElement {
380
380
  ) || e;
381
381
  }
382
382
  });
383
- function L(t, e, n, i) {
383
+ function L(t, e, n, r) {
384
384
  var s;
385
385
  const o = (s = n[t]) == null ? void 0 : s.type;
386
- if (e = o === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
386
+ if (e = o === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !n[t])
387
387
  return e;
388
- if (i === "toAttribute")
388
+ if (r === "toAttribute")
389
389
  switch (o) {
390
390
  case "Object":
391
391
  case "Array":
@@ -410,7 +410,7 @@ function L(t, e, n, i) {
410
410
  return e;
411
411
  }
412
412
  }
413
- function jt(t, e, n, i, o, s) {
413
+ function jt(t, e, n, r, o, s) {
414
414
  let l = class extends et {
415
415
  constructor() {
416
416
  super(t, n, o), this.$$p_d = e;
@@ -431,7 +431,7 @@ function jt(t, e, n, i, o, s) {
431
431
  c = L(u, c, e), this.$$d[u] = c, (f = this.$$c) == null || f.$set({ [u]: c });
432
432
  }
433
433
  });
434
- }), i.forEach((u) => {
434
+ }), r.forEach((u) => {
435
435
  Object.defineProperty(l.prototype, u, {
436
436
  get() {
437
437
  var c;
@@ -473,10 +473,10 @@ class Ft {
473
473
  $on(e, n) {
474
474
  if (!Y(n))
475
475
  return F;
476
- const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
477
- return i.push(n), () => {
478
- const o = i.indexOf(n);
479
- o !== -1 && i.splice(o, 1);
476
+ const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
477
+ return r.push(n), () => {
478
+ const o = r.indexOf(n);
479
+ o !== -1 && r.splice(o, 1);
480
480
  };
481
481
  }
482
482
  /**
@@ -493,7 +493,7 @@ function Lt(t) {
493
493
  ft(t, "svelte-1xvg6od", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}");
494
494
  }
495
495
  function Mt(t) {
496
- let e, n, i, o, s, l, u, c, f;
496
+ let e, n, r, o, s, l, u, c, f;
497
497
  M(
498
498
  /*onwindowresize*/
499
499
  t[11]
@@ -517,8 +517,8 @@ function Mt(t) {
517
517
  t[5]}px`
518
518
  }
519
519
  ], a = {};
520
- for (let r = 0; r < _.length; r += 1)
521
- a = v(a, _[r]);
520
+ for (let i = 0; i < _.length; i += 1)
521
+ a = v(a, _[i]);
522
522
  let g = [
523
523
  {
524
524
  class: `ring ring-progress ${/*status*/
@@ -551,8 +551,8 @@ function Mt(t) {
551
551
  )
552
552
  }
553
553
  ], d = {};
554
- for (let r = 0; r < g.length; r += 1)
555
- d = v(d, g[r]);
554
+ for (let i = 0; i < g.length; i += 1)
555
+ d = v(d, g[i]);
556
556
  let y = [
557
557
  {
558
558
  class: `center ${/*status*/
@@ -573,8 +573,8 @@ function Mt(t) {
573
573
  )
574
574
  }
575
575
  ], k = {};
576
- for (let r = 0; r < y.length; r += 1)
577
- k = v(k, y[r]);
576
+ for (let i = 0; i < y.length; i += 1)
577
+ k = v(k, y[i]);
578
578
  let $ = [
579
579
  {
580
580
  x: (
@@ -589,8 +589,8 @@ function Mt(t) {
589
589
  /*classWithPartMatchMobile*/
590
590
  t[7]("ProgressText")
591
591
  ], p = {};
592
- for (let r = 0; r < $.length; r += 1)
593
- p = v(p, $[r]);
592
+ for (let i = 0; i < $.length; i += 1)
593
+ p = v(p, $[i]);
594
594
  let B = [
595
595
  {
596
596
  width: (
@@ -603,139 +603,139 @@ function Mt(t) {
603
603
  )
604
604
  }
605
605
  ], A = {};
606
- for (let r = 0; r < B.length; r += 1)
607
- A = v(A, B[r]);
606
+ for (let i = 0; i < B.length; i += 1)
607
+ A = v(A, B[i]);
608
608
  return {
609
609
  c() {
610
- e = O("svg"), n = O("circle"), i = O("circle"), o = O("circle"), s = O("text"), l = G(
610
+ e = O("svg"), n = O("circle"), r = O("circle"), o = O("circle"), s = O("text"), l = G(
611
611
  /*percent*/
612
612
  t[0]
613
- ), u = G("%"), m(n, a), m(i, d), m(o, k), m(s, p), m(e, A);
613
+ ), u = G("%"), m(n, a), m(r, d), m(o, k), m(s, p), m(e, A);
614
614
  },
615
- m(r, b) {
616
- Z(r, e, b), w(e, n), w(e, i), w(e, o), w(e, s), w(s, l), w(s, u), c || (f = dt(
615
+ m(i, b) {
616
+ Z(i, e, b), w(e, n), w(e, r), w(e, o), w(e, s), w(s, l), w(s, u), c || (f = dt(
617
617
  window,
618
618
  "resize",
619
619
  /*onwindowresize*/
620
620
  t[11]
621
621
  ), c = !0);
622
622
  },
623
- p(r, [b]) {
623
+ p(i, [b]) {
624
624
  m(n, a = N(_, [
625
625
  b & /*radius, center, ringStrokeWidth*/
626
626
  552 && {
627
627
  class: "ring",
628
628
  r: (
629
629
  /*radius*/
630
- r[3]
630
+ i[3]
631
631
  ),
632
632
  cx: (
633
633
  /*center*/
634
- r[9]
634
+ i[9]
635
635
  ),
636
636
  cy: (
637
637
  /*center*/
638
- r[9]
638
+ i[9]
639
639
  ),
640
640
  "stroke-width": `${/*ringStrokeWidth*/
641
- r[5]}px`
641
+ i[5]}px`
642
642
  }
643
- ])), m(i, d = N(g, [
643
+ ])), m(r, d = N(g, [
644
644
  b & /*status, BonusStatus, radius, center, ringStrokeWidth, circumference, percent*/
645
645
  875 && {
646
646
  class: `ring ring-progress ${/*status*/
647
- r[1] === /*BonusStatus*/
648
- r[6].InProgress ? "active" : ""}`,
647
+ i[1] === /*BonusStatus*/
648
+ i[6].InProgress ? "active" : ""}`,
649
649
  r: (
650
650
  /*radius*/
651
- r[3]
651
+ i[3]
652
652
  ),
653
653
  cx: (
654
654
  /*center*/
655
- r[9]
655
+ i[9]
656
656
  ),
657
657
  cy: (
658
658
  /*center*/
659
- r[9]
659
+ i[9]
660
660
  ),
661
661
  "stroke-width": `${/*ringStrokeWidth*/
662
- r[5]}px`,
662
+ i[5]}px`,
663
663
  "stroke-dasharray": `${/*circumference*/
664
- r[8]} ${/*circumference*/
665
- r[8]}`,
664
+ i[8]} ${/*circumference*/
665
+ i[8]}`,
666
666
  "stroke-dashoffset": (
667
667
  /*circumference*/
668
- r[8] - Number(
668
+ i[8] - Number(
669
669
  /*percent*/
670
- r[0]
670
+ i[0]
671
671
  ) / 100 * /*circumference*/
672
- r[8]
672
+ i[8]
673
673
  )
674
674
  }
675
675
  ])), m(o, k = N(y, [
676
676
  b & /*status, BonusStatus, radius, ringStrokeWidth, center*/
677
677
  618 && {
678
678
  class: `center ${/*status*/
679
- r[1] === /*BonusStatus*/
680
- r[6].InProgress ? "active" : ""}`,
679
+ i[1] === /*BonusStatus*/
680
+ i[6].InProgress ? "active" : ""}`,
681
681
  r: (
682
682
  /*radius*/
683
- r[3] - /*ringStrokeWidth*/
684
- r[5] / 2 - 3
683
+ i[3] - /*ringStrokeWidth*/
684
+ i[5] / 2 - 3
685
685
  ),
686
686
  cx: (
687
687
  /*center*/
688
- r[9]
688
+ i[9]
689
689
  ),
690
690
  cy: (
691
691
  /*center*/
692
- r[9]
692
+ i[9]
693
693
  )
694
694
  }
695
695
  ])), b & /*percent*/
696
696
  1 && mt(
697
697
  l,
698
698
  /*percent*/
699
- r[0],
699
+ i[0],
700
700
  p.contenteditable
701
701
  ), m(s, p = N($, [
702
702
  b & /*center*/
703
703
  512 && {
704
704
  x: (
705
705
  /*center*/
706
- r[9]
706
+ i[9]
707
707
  ),
708
708
  y: (
709
709
  /*center*/
710
- r[9]
710
+ i[9]
711
711
  )
712
712
  },
713
713
  b & /*classWithPartMatchMobile*/
714
714
  128 && /*classWithPartMatchMobile*/
715
- r[7]("ProgressText")
715
+ i[7]("ProgressText")
716
716
  ])), m(e, A = N(B, [
717
717
  b & /*size*/
718
718
  16 && {
719
719
  width: (
720
720
  /*size*/
721
- r[4]
721
+ i[4]
722
722
  ),
723
723
  height: (
724
724
  /*size*/
725
- r[4]
725
+ i[4]
726
726
  )
727
727
  }
728
728
  ]));
729
729
  },
730
730
  i: F,
731
731
  o: F,
732
- d(r) {
733
- r && R(e), c = !1, f();
732
+ d(i) {
733
+ i && R(e), c = !1, f();
734
734
  }
735
735
  };
736
736
  }
737
737
  function St(t, e, n) {
738
- let i, o, s, l, u, c, f, { percent: _ = "" } = e, { status: a = "" } = e;
738
+ let r, o, s, l, u, c, f, { percent: _ = "" } = e, { status: a = "" } = e;
739
739
  var g;
740
740
  (function($) {
741
741
  $.BeforeClaimed = "BeforeClaimed", $.InProgress = "active", $.ForfeitedOrCompleted = "ForfeitedOrCompleted";
@@ -752,13 +752,13 @@ function St(t, e, n) {
752
752
  "percent" in $ && n(0, _ = $.percent), "status" in $ && n(1, a = $.status);
753
753
  }, t.$$.update = () => {
754
754
  t.$$.dirty & /*innerWidth*/
755
- 4 && n(10, i = d <= 576), t.$$.dirty & /*isMobileView, innerWidth*/
756
- 1028 && n(4, o = i ? d / 4 : 100), t.$$.dirty & /*size*/
755
+ 4 && n(10, r = d <= 576), t.$$.dirty & /*isMobileView, innerWidth*/
756
+ 1028 && n(4, o = r ? d / 4 : 100), t.$$.dirty & /*size*/
757
757
  16 && n(5, s = o / 7.5), t.$$.dirty & /*size, ringStrokeWidth*/
758
758
  48 && n(3, l = o / 2 - s / 2), t.$$.dirty & /*size*/
759
759
  16 && n(9, u = o / 2), t.$$.dirty & /*radius*/
760
760
  8 && n(8, c = l * 2 * Math.PI), t.$$.dirty & /*isMobileView*/
761
- 1024 && n(7, f = ($, p = "") => y(`${$}${i ? ` ${$}Mobile` : ""}`, p));
761
+ 1024 && n(7, f = ($, p = "") => y(`${$}${r ? ` ${$}Mobile` : ""}`, p));
762
762
  }, [
763
763
  _,
764
764
  a,
@@ -770,7 +770,7 @@ function St(t, e, n) {
770
770
  f,
771
771
  c,
772
772
  u,
773
- i,
773
+ r,
774
774
  k
775
775
  ];
776
776
  }
@@ -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/CasinoWageringBonusProgress-C4B-rh-n.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",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/CasinoWageringBonusProgress-6XtWKsAS.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoWageringBonusProgress-Zq2i7cRU.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoWageringBonusProgress-LCiteHbW.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-wagering-bonus-progress") && customElements.define("casino-wagering-bonus-progress", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as t } from "../components/CasinoWageringBonusProgress-CH-1b2d4.js";
1
+ import { C as t } from "../components/CasinoWageringBonusProgress-DmWbuAbi.js";
2
2
  function r(s) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-wagering-bonus-progress",
3
- "version": "1.76.3",
3
+ "version": "1.76.4",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-wagering-bonus-progress.cjs",
6
6
  "module": "esnext/casino-wagering-bonus-progress.js",
@@ -1 +0,0 @@
1
- "use strict";var st=Object.defineProperty,rt=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var B=(t,e,n)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))ot.call(e,n)&&B(t,n,e[n]);if(D)for(var n of D(e))ct.call(e,n)&&B(t,n,e[n]);return t},J=(t,e)=>rt(t,it(e));var h=(t,e,n)=>(B(t,typeof e!="symbol"?e+"":e,n),n);var U=(t,e,n)=>new Promise((i,o)=>{var s=c=>{try{u(n.next(c))}catch(f){o(f)}},l=c=>{try{u(n.throw(c))}catch(f){o(f)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,l);u((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}function v(t,e){for(const n in e)t[n]=e[n];return t}function X(t){return t()}function q(){return Object.create(null)}function I(t){t.forEach(X)}function Y(t){return typeof t=="function"}function lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ut(t){return Object.keys(t).length===0}const ft=["",!0,1,"true","contenteditable"];function w(t,e){t.appendChild(e)}function $t(t,e,n){const i=at(t);if(!i.getElementById(e)){const o=x("style");o.id=e,o.textContent=n,dt(i,o)}}function at(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function dt(t,e){return w(t.head||t,e),e.sheet}function Z(t,e,n){t.insertBefore(e,n||null)}function R(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t){return document.createTextNode(t)}function ht(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function tt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e){for(const n in e)tt(t,n,e[n])}function _t(t){return Array.from(t.childNodes)}function gt(t,e){e=""+e,t.data!==e&&(t.data=e)}function mt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function pt(t,e,n){~ft.indexOf(n)?mt(t,e):gt(t,e)}function bt(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let V;function N(t){V=t}const P=[],K=[];let C=[];const Q=[],yt=Promise.resolve();let W=!1;function wt(){W||(W=!0,yt.then(M))}function L(t){C.push(t)}const z=new Set;let E=0;function M(){if(E!==0)return;const t=V;do{try{for(;E<P.length;){const e=P[E];E++,N(e),kt(e.$$)}}catch(e){throw P.length=0,E=0,e}for(N(null),P.length=0,E=0;K.length;)K.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];z.has(n)||(z.add(n),n())}C.length=0}while(P.length);for(;Q.length;)Q.pop()();W=!1,z.clear(),N(t)}function kt(t){if(t.fragment!==null){t.update(),I(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(L)}}function Et(t){const e=[],n=[];C.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),C=e}const Pt=new Set;function Ct(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function j(t,e){const n={},i={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],u=e[s];if(u){for(const c in l)c in u||(i[c]=1);for(const c in u)o[c]||(n[c]=u[c],o[c]=1);t[s]=u}else for(const c in l)o[c]=1}for(const l in i)l in n||(n[l]=void 0);return n}function vt(t,e,n){const{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),L(()=>{const s=t.$$.on_mount.map(X).filter(Y);t.$$.on_destroy?t.$$.on_destroy.push(...s):I(s),t.$$.on_mount=[]}),o.forEach(L)}function Ot(t,e){const n=t.$$;n.fragment!==null&&(Et(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function jt(t,e){t.$$.dirty[0]===-1&&(P.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Nt(t,e,n,i,o,s,l=null,u=[-1]){const c=V;N(t);const f=t.$$={fragment:null,ctx:[],props:s,update:F,not_equal:o,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:q(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};l&&l(f.root);let _=!1;if(f.ctx=n(t,e.props||{},(a,g,...d)=>{const y=d.length?d[0]:g;return f.ctx&&o(f.ctx[a],f.ctx[a]=y)&&(!f.skip_bound&&f.bound[a]&&f.bound[a](y),_&&jt(t,a)),g}),f.update(),_=!0,I(f.before_update),f.fragment=i(f.ctx),e.target){if(e.hydrate){const a=_t(e.target);f.fragment&&f.fragment.l(a),a.forEach(R)}else f.fragment&&f.fragment.c();e.intro&&Ct(t.$$.fragment),vt(t,e.target,e.anchor),M()}N(c)}let et;typeof HTMLElement=="function"&&(et=class extends HTMLElement{constructor(e,n,i){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const o=this.$$c.$on(e,n);this.$$l_u.set(n,o)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=x("slot"),s!=="default"&&tt(l,"name",s)},m:function(f,_){Z(f,l,_)},d:function(f){f&&R(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=bt(this);for(const s of this.$$s)s in i&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=A(l,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:J(H({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{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 l=A(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const u=this.$$c.$on(s,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(e,n,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=A(e,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function A(t,e,n,i){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ft(t,e,n,i,o,s){let l=class extends et{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(u=>(e[u].attribute||u).toLowerCase())}};return Object.keys(e).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var f;c=A(u,c,e),this.$$d[u]=c,(f=this.$$c)==null||f.$set({[u]:c})}})}),i.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),t.element=l,l}class St{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ot(this,1),this.$destroy=F}$on(e,n){if(!Y(n))return F;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!ut(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Lt(t){$t(t,"svelte-1xvg6od","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}")}function Mt(t){let e,n,i,o,s,l,u,c,f;L(t[11]);let _=[{class:"ring",r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`}],a={};for(let r=0;r<_.length;r+=1)a=v(a,_[r]);let g=[{class:`ring ring-progress ${t[1]===t[6].InProgress?"active":""}`,r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`,"stroke-dasharray":`${t[8]} ${t[8]}`,"stroke-dashoffset":t[8]-Number(t[0])/100*t[8]}],d={};for(let r=0;r<g.length;r+=1)d=v(d,g[r]);let y=[{class:`center ${t[1]===t[6].InProgress?"active":""}`,r:t[3]-t[5]/2-3,cx:t[9],cy:t[9]}],k={};for(let r=0;r<y.length;r+=1)k=v(k,y[r]);let $=[{x:t[9],y:t[9]},t[7]("ProgressText")],p={};for(let r=0;r<$.length;r+=1)p=v(p,$[r]);let T=[{width:t[4],height:t[4]}],S={};for(let r=0;r<T.length;r+=1)S=v(S,T[r]);return{c(){e=O("svg"),n=O("circle"),i=O("circle"),o=O("circle"),s=O("text"),l=G(t[0]),u=G("%"),m(n,a),m(i,d),m(o,k),m(s,p),m(e,S)},m(r,b){Z(r,e,b),w(e,n),w(e,i),w(e,o),w(e,s),w(s,l),w(s,u),c||(f=ht(window,"resize",t[11]),c=!0)},p(r,[b]){m(n,a=j(_,[b&552&&{class:"ring",r:r[3],cx:r[9],cy:r[9],"stroke-width":`${r[5]}px`}])),m(i,d=j(g,[b&875&&{class:`ring ring-progress ${r[1]===r[6].InProgress?"active":""}`,r:r[3],cx:r[9],cy:r[9],"stroke-width":`${r[5]}px`,"stroke-dasharray":`${r[8]} ${r[8]}`,"stroke-dashoffset":r[8]-Number(r[0])/100*r[8]}])),m(o,k=j(y,[b&618&&{class:`center ${r[1]===r[6].InProgress?"active":""}`,r:r[3]-r[5]/2-3,cx:r[9],cy:r[9]}])),b&1&&pt(l,r[0],p.contenteditable),m(s,p=j($,[b&512&&{x:r[9],y:r[9]},b&128&&r[7]("ProgressText")])),m(e,S=j(T,[b&16&&{width:r[4],height:r[4]}]))},i:F,o:F,d(r){r&&R(e),c=!1,f()}}}function It(t,e,n){let i,o,s,l,u,c,f,{percent:_=""}=e,{status:a=""}=e;var g;(function($){$.BeforeClaimed="BeforeClaimed",$.InProgress="active",$.ForfeitedOrCompleted="ForfeitedOrCompleted"})(g||(g={}));let d=200;const y=($,p="")=>({part:$,class:[$,p].join(" ")});function k(){n(2,d=window.innerWidth)}return t.$$set=$=>{"percent"in $&&n(0,_=$.percent),"status"in $&&n(1,a=$.status)},t.$$.update=()=>{t.$$.dirty&4&&n(10,i=d<=576),t.$$.dirty&1028&&n(4,o=i?d/4:100),t.$$.dirty&16&&n(5,s=o/7.5),t.$$.dirty&48&&n(3,l=o/2-s/2),t.$$.dirty&16&&n(9,u=o/2),t.$$.dirty&8&&n(8,c=l*2*Math.PI),t.$$.dirty&1024&&n(7,f=($,p="")=>y(`${$}${i?` ${$}Mobile`:""}`,p))},[_,a,d,l,o,s,g,f,c,u,i,k]}class nt extends St{constructor(e){super(),Nt(this,e,It,Mt,lt,{percent:0,status:1},Lt)}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),M()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),M()}}Ft(nt,{percent:{},status:{}},[],[],!0);exports.default=nt;