@everymatrix/casino-wagering-bonuses-controller 1.56.0 → 1.56.2
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.
- package/components/{CasinoWageringBonusProgress-DLNAzcaH.js → CasinoWageringBonusProgress-CMEfrdSP.js} +21 -17
- package/components/{CasinoWageringBonusProgress-Do7NSL_h.js → CasinoWageringBonusProgress-D0dCeXp2.js} +22 -18
- package/components/CasinoWageringBonusProgress-DbQfzojd.cjs +1 -0
- package/components/{CasinoWageringBonusesController-DkPne7Pi.js → CasinoWageringBonusesController-C11mRlVY.js} +606 -574
- package/components/{CasinoWageringBonusesController-Czv5CFQn.js → CasinoWageringBonusesController-Cutjnfg7.js} +597 -565
- package/components/CasinoWageringBonusesController-GXFEQ8ru.cjs +23 -0
- package/components/{GeneralAnimationLoading-B3uYggXO.js → GeneralAnimationLoading-BrUofBqW.js} +9 -9
- package/components/{GeneralAnimationLoading-BAzUyyrN.cjs → GeneralAnimationLoading-Cfg5j6wN.cjs} +1 -1
- package/components/{GeneralAnimationLoading-kbpKGbCJ.js → GeneralAnimationLoading-DIp20cAk.js} +9 -9
- package/es2015/casino-wagering-bonuses-controller.cjs +1 -1
- package/es2015/casino-wagering-bonuses-controller.js +1 -1
- package/esnext/casino-wagering-bonuses-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoWageringBonusProgress-DRtlhC-y.cjs +0 -1
- package/components/CasinoWageringBonusesController-rYCoEJeJ.cjs +0 -10
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
function P() {
|
|
2
2
|
}
|
|
3
3
|
function v(t, e) {
|
|
4
|
-
for (const n in e)
|
|
4
|
+
for (const n in e)
|
|
5
|
+
t[n] = e[n];
|
|
5
6
|
return (
|
|
6
7
|
/** @type {T & S} */
|
|
7
8
|
t
|
|
@@ -53,7 +54,8 @@ function rt(t, e, n) {
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
function it(t) {
|
|
56
|
-
if (!t)
|
|
57
|
+
if (!t)
|
|
58
|
+
return document;
|
|
57
59
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
58
60
|
return e && /** @type {ShadowRoot} */
|
|
59
61
|
e.host ? (
|
|
@@ -178,7 +180,8 @@ function A(t) {
|
|
|
178
180
|
F = t;
|
|
179
181
|
}
|
|
180
182
|
function ht() {
|
|
181
|
-
if (!F)
|
|
183
|
+
if (!F)
|
|
184
|
+
throw new Error("Function called outside component initialization");
|
|
182
185
|
return F;
|
|
183
186
|
}
|
|
184
187
|
function xt(t) {
|
|
@@ -209,7 +212,8 @@ function I() {
|
|
|
209
212
|
} catch (e) {
|
|
210
213
|
throw E.length = 0, k = 0, e;
|
|
211
214
|
}
|
|
212
|
-
for (A(null), E.length = 0, k = 0; G.length; )
|
|
215
|
+
for (A(null), E.length = 0, k = 0; G.length; )
|
|
216
|
+
G.pop()();
|
|
213
217
|
for (let e = 0; e < C.length; e += 1) {
|
|
214
218
|
const n = C[e];
|
|
215
219
|
R.has(n) || (R.add(n), n());
|
|
@@ -841,8 +845,8 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
841
845
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
842
846
|
export {
|
|
843
847
|
St as A,
|
|
844
|
-
|
|
845
|
-
|
|
848
|
+
x as B,
|
|
849
|
+
ut as C,
|
|
846
850
|
It as D,
|
|
847
851
|
Tt as E,
|
|
848
852
|
Wt as F,
|
|
@@ -855,21 +859,21 @@ export {
|
|
|
855
859
|
v as d,
|
|
856
860
|
Dt as e,
|
|
857
861
|
I as f,
|
|
858
|
-
|
|
859
|
-
|
|
862
|
+
V as g,
|
|
863
|
+
Bt as h,
|
|
860
864
|
Ct as i,
|
|
861
|
-
|
|
865
|
+
X as j,
|
|
862
866
|
j as k,
|
|
863
|
-
|
|
864
|
-
|
|
867
|
+
q as l,
|
|
868
|
+
W as m,
|
|
865
869
|
P as n,
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
+
zt as o,
|
|
871
|
+
Lt as p,
|
|
872
|
+
y as q,
|
|
873
|
+
Nt as r,
|
|
870
874
|
tt as s,
|
|
871
|
-
|
|
872
|
-
|
|
875
|
+
M as t,
|
|
876
|
+
at as u,
|
|
873
877
|
xt as v,
|
|
874
878
|
nt as w,
|
|
875
879
|
T as x,
|
|
@@ -10,7 +10,7 @@ var q = (t, e, n) => e in t ? ot(t, e, { enumerable: !0, configurable: !0, writa
|
|
|
10
10
|
ft.call(e, n) && q(t, n, e[n]);
|
|
11
11
|
return t;
|
|
12
12
|
}, Q = (t, e) => ct(t, ut(e));
|
|
13
|
-
var h = (t, e, n) => q(t, typeof e != "symbol" ? e + "" : e, n);
|
|
13
|
+
var h = (t, e, n) => (q(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
14
14
|
var X = (t, e, n) => new Promise((s, o) => {
|
|
15
15
|
var r = (u) => {
|
|
16
16
|
try {
|
|
@@ -30,7 +30,8 @@ var X = (t, e, n) => new Promise((s, o) => {
|
|
|
30
30
|
function v() {
|
|
31
31
|
}
|
|
32
32
|
function O(t, e) {
|
|
33
|
-
for (const n in e)
|
|
33
|
+
for (const n in e)
|
|
34
|
+
t[n] = e[n];
|
|
34
35
|
return (
|
|
35
36
|
/** @type {T & S} */
|
|
36
37
|
t
|
|
@@ -82,7 +83,8 @@ function _t(t, e, n) {
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
function gt(t) {
|
|
85
|
-
if (!t)
|
|
86
|
+
if (!t)
|
|
87
|
+
return document;
|
|
86
88
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
87
89
|
return e && /** @type {ShadowRoot} */
|
|
88
90
|
e.host ? (
|
|
@@ -207,7 +209,8 @@ function F(t) {
|
|
|
207
209
|
N = t;
|
|
208
210
|
}
|
|
209
211
|
function Pt() {
|
|
210
|
-
if (!N)
|
|
212
|
+
if (!N)
|
|
213
|
+
throw new Error("Function called outside component initialization");
|
|
211
214
|
return N;
|
|
212
215
|
}
|
|
213
216
|
function Yt(t) {
|
|
@@ -238,7 +241,8 @@ function T() {
|
|
|
238
241
|
} catch (e) {
|
|
239
242
|
throw C.length = 0, E = 0, e;
|
|
240
243
|
}
|
|
241
|
-
for (F(null), C.length = 0, E = 0; Z.length; )
|
|
244
|
+
for (F(null), C.length = 0, E = 0; Z.length; )
|
|
245
|
+
Z.pop()();
|
|
242
246
|
for (let e = 0; e < P.length; e += 1) {
|
|
243
247
|
const n = P[e];
|
|
244
248
|
H.has(n) || (H.add(n), n());
|
|
@@ -878,8 +882,8 @@ const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
878
882
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
879
883
|
export {
|
|
880
884
|
Ht as A,
|
|
881
|
-
|
|
882
|
-
|
|
885
|
+
D as B,
|
|
886
|
+
yt as C,
|
|
883
887
|
Kt as D,
|
|
884
888
|
Qt as E,
|
|
885
889
|
Xt as F,
|
|
@@ -892,21 +896,21 @@ export {
|
|
|
892
896
|
O as d,
|
|
893
897
|
Zt as e,
|
|
894
898
|
T as f,
|
|
895
|
-
|
|
896
|
-
|
|
899
|
+
G as g,
|
|
900
|
+
Ut as h,
|
|
897
901
|
Mt as i,
|
|
898
|
-
|
|
902
|
+
st as j,
|
|
899
903
|
A as k,
|
|
900
|
-
|
|
901
|
-
|
|
904
|
+
V as l,
|
|
905
|
+
x as m,
|
|
902
906
|
v as n,
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
+
Vt as o,
|
|
908
|
+
Jt as p,
|
|
909
|
+
w as q,
|
|
910
|
+
qt as r,
|
|
907
911
|
at as s,
|
|
908
|
-
|
|
909
|
-
|
|
912
|
+
B as t,
|
|
913
|
+
kt as u,
|
|
910
914
|
Yt as v,
|
|
911
915
|
$t as w,
|
|
912
916
|
W as x,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var he=Object.defineProperty,_e=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var H=(e,t,n)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t)=>{for(var n in t||(t={}))pe.call(t,n)&&H(e,n,t[n]);if(X)for(var n of X(t))be.call(t,n)&&H(e,n,t[n]);return e},Z=(e,t)=>_e(e,ge(t));var h=(e,t,n)=>(H(e,typeof t!="symbol"?t+"":t,n),n);var ee=(e,t,n)=>new Promise((s,o)=>{var r=l=>{try{u(n.next(l))}catch(f){o(f)}},c=l=>{try{u(n.throw(l))}catch(f){o(f)}},u=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,c);u((n=n.apply(e,t)).next())});function k(){}function P(e,t){for(const n in t)e[n]=t[n];return e}function se(e){return e()}function te(){return Object.create(null)}function L(e){e.forEach(se)}function K(e){return typeof e=="function"}function re(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let T;function me(e,t){return e===t?!0:(T||(T=document.createElement("a")),T.href=t,e===T.href)}function ye(e){return Object.keys(e).length===0}function ie(e,...t){if(e==null){for(const s of t)s(void 0);return k}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function we(e,t,n){e.$$.on_destroy.push(ie(t,n))}const ke=["",!0,1,"true","contenteditable"];function y(e,t){e.appendChild(t)}function oe(e,t,n){const s=Ee(e);if(!s.getElementById(t)){const o=D("style");o.id=t,o.textContent=n,Ce(s,o)}}function Ee(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ce(e,t){return y(e.head||e,t),t.sheet}function Q(e,t,n){e.insertBefore(t,n||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function Pe(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function D(e){return document.createElement(e)}function A(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function F(e){return document.createTextNode(e)}function ve(){return F(" ")}function Oe(){return F("")}function R(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function B(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const je=["width","height"];function Ae(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const s in t)t[s]==null?e.removeAttribute(s):s==="style"?e.style.cssText=t[s]:s==="__value"?e.value=e[s]=t[s]:n[s]&&n[s].set&&je.indexOf(s)===-1?e[s]=t[s]:B(e,s,t[s])}function p(e,t){for(const n in t)B(e,n,t[n])}function Ne(e,t,n){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:B(e,t,n)}function Fe(e){return Array.from(e.childNodes)}function ce(e,t){t=""+t,e.data!==t&&(e.data=t)}function Me(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function le(e,t,n){~ke.indexOf(n)?Me(e,t):ce(e,t)}let q;function Se(){if(q===void 0){q=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){q=!0}}return q}function ze(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const s=D("iframe");s.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),s.setAttribute("aria-hidden","true"),s.tabIndex=-1;const o=Se();let r;return o?(s.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=R(window,"message",c=>{c.source===s.contentWindow&&t()})):(s.src="about:blank",s.onload=()=>{r=R(s.contentWindow,"resize",t),t()}),y(e,s),()=>{(o||r&&s.contentWindow)&&r(),W(s)}}function Le(e,t,n){e.classList.toggle(t,!!n)}function We(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let M;function N(e){M=e}function Be(){if(!M)throw new Error("Function called outside component initialization");return M}function Ie(e){Be().$$.on_mount.push(e)}const v=[],U=[];let j=[];const ne=[],Te=Promise.resolve();let G=!1;function qe(){G||(G=!0,Te.then(z))}function S(e){j.push(e)}const J=new Set;let C=0;function z(){if(C!==0)return;const e=M;do{try{for(;C<v.length;){const t=v[C];C++,N(t),xe(t.$$)}}catch(t){throw v.length=0,C=0,t}for(N(null),v.length=0,C=0;U.length;)U.pop()();for(let t=0;t<j.length;t+=1){const n=j[t];J.has(n)||(J.add(n),n())}j.length=0}while(v.length);for(;ne.length;)ne.pop()();G=!1,J.clear(),N(e)}function xe(e){if(e.fragment!==null){e.update(),L(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(S)}}function Re(e){const t=[],n=[];j.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),j=t}const De=new Set;function Ve(e,t){e&&e.i&&(De.delete(e),e.i(t))}function He(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function O(e,t){const n={},s={},o={$$scope:1};let r=e.length;for(;r--;){const c=e[r],u=t[r];if(u){for(const l in c)l in u||(s[l]=1);for(const l in u)o[l]||(n[l]=u[l],o[l]=1);e[r]=u}else for(const l in c)o[l]=1}for(const c in s)c in n||(n[c]=void 0);return n}function Je(e,t,n){const{fragment:s,after_update:o}=e.$$;s&&s.m(t,n),S(()=>{const r=e.$$.on_mount.map(se).filter(K);e.$$.on_destroy?e.$$.on_destroy.push(...r):L(r),e.$$.on_mount=[]}),o.forEach(S)}function Ue(e,t){const n=e.$$;n.fragment!==null&&(Re(n.after_update),L(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ge(e,t){e.$$.dirty[0]===-1&&(v.push(e),qe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ue(e,t,n,s,o,r,c=null,u=[-1]){const l=M;N(e);const f=e.$$={fragment:null,ctx:[],props:r,update:k,not_equal:o,bound:te(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:te(),dirty:u,skip_bound:!1,root:t.target||l.$$.root};c&&c(f.root);let _=!1;if(f.ctx=n?n(e,t.props||{},(d,g,...$)=>{const w=$.length?$[0]:g;return f.ctx&&o(f.ctx[d],f.ctx[d]=w)&&(!f.skip_bound&&f.bound[d]&&f.bound[d](w),_&&Ge(e,d)),g}):[],f.update(),_=!0,L(f.before_update),f.fragment=s?s(f.ctx):!1,t.target){if(t.hydrate){const d=Fe(t.target);f.fragment&&f.fragment.l(d),d.forEach(W)}else f.fragment&&f.fragment.c();t.intro&&Ve(e.$$.fragment),Je(e,t.target,t.anchor),z()}N(l)}let fe;typeof HTMLElement=="function"&&(fe=class extends HTMLElement{constructor(t,n,s){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=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return ee(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let c;return{c:function(){c=D("slot"),r!=="default"&&B(c,"name",r)},m:function(f,_){Q(f,c,_)},d:function(f){f&&W(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=We(this);for(const r of this.$$s)r in s&&(n[r]=[t(r)]);for(const r of this.attributes){const c=this.$$g_p(r.name);c in this.$$d||(this.$$d[c]=x(c,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Z(Y({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const c=x(r,this.$$d[r],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,c)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const r in this.$$l)for(const c of this.$$l[r]){const u=this.$$c.$on(r,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,s){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=x(t,s,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function x(e,t,n,s){var r;const o=(r=n[e])==null?void 0:r.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(o){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(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ae(e,t,n,s,o,r){let c=class extends fe{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var f;l=x(u,l,t),this.$$d[u]=l,(f=this.$$c)==null||f.$set({[u]:l})}})}),s.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=c,c}class de{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ue(this,1),this.$destroy=k}$on(t,n){if(!K(n))return k;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const o=s.indexOf(n);o!==-1&&s.splice(o,1)}}$set(t){this.$$set&&!ye(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ke="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ke);function Qe(e){oe(e,"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 Xe(e){let t,n,s,o,r,c,u,l,f;S(e[11]);let _=[{class:"ring",r:e[3],cx:e[9],cy:e[9],"stroke-width":`${e[5]}px`}],d={};for(let i=0;i<_.length;i+=1)d=P(d,_[i]);let g=[{class:`ring ring-progress ${e[1]===e[6].InProgress?"active":""}`,r:e[3],cx:e[9],cy:e[9],"stroke-width":`${e[5]}px`,"stroke-dasharray":`${e[8]} ${e[8]}`,"stroke-dashoffset":e[8]-Number(e[0])/100*e[8]}],$={};for(let i=0;i<g.length;i+=1)$=P($,g[i]);let w=[{class:`center ${e[1]===e[6].InProgress?"active":""}`,r:e[3]-e[5]/2-3,cx:e[9],cy:e[9]}],E={};for(let i=0;i<w.length;i+=1)E=P(E,w[i]);let a=[{x:e[9],y:e[9]},e[7]("ProgressText")],b={};for(let i=0;i<a.length;i+=1)b=P(b,a[i]);let V=[{width:e[4],height:e[4]}],I={};for(let i=0;i<V.length;i+=1)I=P(I,V[i]);return{c(){t=A("svg"),n=A("circle"),s=A("circle"),o=A("circle"),r=A("text"),c=F(e[0]),u=F("%"),p(n,d),p(s,$),p(o,E),p(r,b),p(t,I)},m(i,m){Q(i,t,m),y(t,n),y(t,s),y(t,o),y(t,r),y(r,c),y(r,u),l||(f=R(window,"resize",e[11]),l=!0)},p(i,[m]){p(n,d=O(_,[m&552&&{class:"ring",r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`}])),p(s,$=O(g,[m&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]}])),p(o,E=O(w,[m&618&&{class:`center ${i[1]===i[6].InProgress?"active":""}`,r:i[3]-i[5]/2-3,cx:i[9],cy:i[9]}])),m&1&&le(c,i[0],b.contenteditable),p(r,b=O(a,[m&512&&{x:i[9],y:i[9]},m&128&&i[7]("ProgressText")])),p(t,I=O(V,[m&16&&{width:i[4],height:i[4]}]))},i:k,o:k,d(i){i&&W(t),l=!1,f()}}}function Ye(e,t,n){let s,o,r,c,u,l,f,{percent:_=""}=t,{status:d=""}=t;var g;(function(a){a.BeforeClaimed="BeforeClaimed",a.InProgress="active",a.ForfeitedOrCompleted="ForfeitedOrCompleted"})(g||(g={}));let $=200;const w=(a,b="")=>({part:a,class:[a,b].join(" ")});function E(){n(2,$=window.innerWidth)}return e.$$set=a=>{"percent"in a&&n(0,_=a.percent),"status"in a&&n(1,d=a.status)},e.$$.update=()=>{e.$$.dirty&4&&n(10,s=$<=576),e.$$.dirty&1028&&n(4,o=s?$/4:100),e.$$.dirty&16&&n(5,r=o/7.5),e.$$.dirty&48&&n(3,c=o/2-r/2),e.$$.dirty&16&&n(9,u=o/2),e.$$.dirty&8&&n(8,l=c*2*Math.PI),e.$$.dirty&1024&&n(7,f=(a,b="")=>w(`${a}${s?` ${a}Mobile`:""}`,b))},[_,d,$,c,o,r,g,f,l,u,s,E]}class $e extends de{constructor(t){super(),ue(this,t,Ye,Xe,re,{percent:0,status:1},Qe)}get percent(){return this.$$.ctx[0]}set percent(t){this.$$set({percent:t}),z()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),z()}}ae($e,{percent:{},status:{}},[],[],!0);const Ze=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"}));exports.CasinoWageringBonusProgress_ce=Ze;exports.SvelteComponent=de;exports.add_iframe_resize_listener=ze;exports.add_render_callback=S;exports.append=y;exports.append_styles=oe;exports.assign=P;exports.attr=B;exports.binding_callbacks=U;exports.component_subscribe=we;exports.create_custom_element=ae;exports.destroy_each=Pe;exports.detach=W;exports.element=D;exports.empty=Oe;exports.ensure_array_like=He;exports.flush=z;exports.get_spread_update=O;exports.init=ue;exports.insert=Q;exports.is_function=K;exports.listen=R;exports.noop=k;exports.onMount=Ie;exports.run_all=L;exports.safe_not_equal=re;exports.set_attributes=Ae;exports.set_custom_element_data=Ne;exports.set_data=ce;exports.set_data_maybe_contenteditable=le;exports.space=ve;exports.src_url_equal=me;exports.subscribe=ie;exports.text=F;exports.toggle_class=Le;
|