@everymatrix/casino-wagering-bonus-progress 1.53.11 → 1.54.0

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);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;