@everymatrix/casino-wagering-bonus-slider-controller 1.99.77 → 1.99.80

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.
@@ -4746,7 +4746,7 @@ if (typeof window < "u") {
4746
4746
  }
4747
4747
  };
4748
4748
  };
4749
- customElements.define = e(customElements.define), import("./GeneralIconProgressBar-CcZOS3Tq.js").then(({ default: t }) => {
4749
+ customElements.define = e(customElements.define), import("./GeneralIconProgressBar-DK6ivRgd.js").then(({ default: t }) => {
4750
4750
  !customElements.get("general-icon-progress-bar") && customElements.define("general-icon-progress-bar", t.element);
4751
4751
  });
4752
4752
  }
@@ -4783,7 +4783,7 @@ if (typeof window != "undefined") {
4783
4783
  }
4784
4784
  };
4785
4785
  };
4786
- customElements.define = e(customElements.define), import("./GeneralIconProgressBar-Cl4KLj3h.js").then(({ default: t }) => {
4786
+ customElements.define = e(customElements.define), import("./GeneralIconProgressBar-i91Uk9qw.js").then(({ default: t }) => {
4787
4787
  !customElements.get("general-icon-progress-bar") && customElements.define("general-icon-progress-bar", t.element);
4788
4788
  });
4789
4789
  }
@@ -21,4 +21,4 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
21
21
  * https://github.com/Yaffle/EventSource/
22
22
  */(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,s=r.XDomainRequest,a=r.ActiveXObject,h=r.EventSource,u=r.document,f=r.Promise,p=r.fetch,m=r.Response,y=r.TextDecoder,H=r.TextEncoder,w=r.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(l){u.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(l){function v(){}return v.prototype=l,new v}),Date.now||(Date.now=function(){return new Date().getTime()}),w==null){var C=p;p=function(l,v){var b=v.signal;return C(l,{headers:v.headers,credentials:v.credentials,cache:v.cache}).then(function(g){var A=g.body.getReader();return b._reader=A,b._aborted&&b._reader.cancel(),{status:g.status,statusText:g.statusText,headers:g.headers,body:{getReader:function(){return A}}}})},w=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function P(){this.bitsNeeded=0,this.codePoint=0}P.prototype.decode=function(l){function v(x,D,_){if(_===1)return x>=128>>D&&x<<D<=2047;if(_===2)return x>=2048>>D&&x<<D<=55295||x>=57344>>D&&x<<D<=65535;if(_===3)return x>=65536>>D&&x<<D<=1114111;throw new Error}function b(x,D){if(x===6*1)return D>>6>15?3:D>31?2:1;if(x===6*2)return D>15?3:2;if(x===6*3)return 3;throw new Error}for(var g=65533,A="",S=this.bitsNeeded,O=this.codePoint,c=0;c<l.length;c+=1){var d=l[c];S!==0&&(d<128||d>191||!v(O<<6|d&63,S-6,b(S,O)))&&(S=0,O=g,A+=String.fromCharCode(O)),S===0?(d>=0&&d<=127?(S=0,O=d):d>=192&&d<=223?(S=6*1,O=d&31):d>=224&&d<=239?(S=6*2,O=d&15):d>=240&&d<=247?(S=6*3,O=d&7):(S=0,O=g),S!==0&&!v(O,S,b(S,O))&&(S=0,O=g)):(S-=6,O=O<<6|d&63),S===0&&(O<=65535?A+=String.fromCharCode(O):(A+=String.fromCharCode(55296+(O-65535-1>>10)),A+=String.fromCharCode(56320+(O-65535-1&1023))))}return this.bitsNeeded=S,this.codePoint=O,A};var I=function(){try{return new y().decode(new H().encode("test"),{stream:!0})==="test"}catch(l){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+l)}return!1};(y==null||H==null||!I())&&(y=P);var B=function(){};function L(l){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=B,this.onload=B,this.onerror=B,this.onreadystatechange=B,this._contentType="",this._xhr=l,this._sendTimeout=0,this._abort=B}L.prototype.open=function(l,v){this._abort(!0);var b=this,g=this._xhr,A=1,S=0;this._abort=function(_){b._sendTimeout!==0&&(i(b._sendTimeout),b._sendTimeout=0),(A===1||A===2||A===3)&&(A=4,g.onload=B,g.onerror=B,g.onabort=B,g.onprogress=B,g.onreadystatechange=B,g.abort(),S!==0&&(i(S),S=0),_||(b.readyState=4,b.onabort(null),b.onreadystatechange())),A=0};var O=function(){if(A===1){var _=0,F="",me=void 0;if("contentType"in g)_=200,F="OK",me=g.contentType;else try{_=g.status,F=g.statusText,me=g.getResponseHeader("Content-Type")}catch(Ke){_=0,F="",me=void 0}_!==0&&(A=2,b.readyState=2,b.status=_,b.statusText=F,b._contentType=me,b.onreadystatechange())}},c=function(){if(O(),A===2||A===3){A=3;var _="";try{_=g.responseText}catch(F){}b.readyState=3,b.responseText=_,b.onprogress()}},d=function(_,F){if((F==null||F.preventDefault==null)&&(F={preventDefault:B}),c(),A===1||A===2||A===3){if(A=4,S!==0&&(i(S),S=0),b.readyState=4,_==="load")b.onload(F);else if(_==="error")b.onerror(F);else if(_==="abort")b.onabort(F);else throw new TypeError;b.onreadystatechange()}},x=function(_){g!=null&&(g.readyState===4?(!("onload"in g)||!("onerror"in g)||!("onabort"in g))&&d(g.responseText===""?"error":"load",_):g.readyState===3?"onprogress"in g||c():g.readyState===2&&O())},D=function(){S=n(function(){D()},500),g.readyState===3&&c()};"onload"in g&&(g.onload=function(_){d("load",_)}),"onerror"in g&&(g.onerror=function(_){d("error",_)}),"onabort"in g&&(g.onabort=function(_){d("abort",_)}),"onprogress"in g&&(g.onprogress=c),"onreadystatechange"in g&&(g.onreadystatechange=function(_){x(_)}),("contentType"in g||!("ontimeout"in o.prototype))&&(v+=(v.indexOf("?")===-1?"?":"&")+"padding=true"),g.open(l,v,!0),"readyState"in g&&(S=n(function(){D()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(l){return this._contentType},L.prototype.setRequestHeader=function(l,v){var b=this._xhr;"setRequestHeader"in b&&b.setRequestHeader(l,v)},L.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var l=this;l._sendTimeout=n(function(){l._sendTimeout=0,l.send()},4);return}var v=this._xhr;"withCredentials"in v&&(v.withCredentials=this.withCredentials);try{v.send(void 0)}catch(b){throw b}};function T(l){return l.replace(/[A-Z]/g,function(v){return String.fromCharCode(v.charCodeAt(0)+32)})}function M(l){for(var v=Object.create(null),b=l.split(`\r
23
23
  `),g=0;g<b.length;g+=1){var A=b[g],S=A.split(": "),O=S.shift(),c=S.join(": ");v[T(O)]=c}this._map=v}M.prototype.get=function(l){return this._map[T(l)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function U(){}U.prototype.open=function(l,v,b,g,A,S,O){l.open("GET",A);var c=0;l.onprogress=function(){var x=l.responseText,D=x.slice(c);c+=D.length,b(D)},l.onerror=function(x){x.preventDefault(),g(new Error("NetworkError"))},l.onload=function(){g(null)},l.onabort=function(){g(null)},l.onreadystatechange=function(){if(l.readyState===o.HEADERS_RECEIVED){var x=l.status,D=l.statusText,_=l.getResponseHeader("Content-Type"),F=l.getAllResponseHeaders();v(x,D,_,new M(F))}},l.withCredentials=S;for(var d in O)Object.prototype.hasOwnProperty.call(O,d)&&l.setRequestHeader(d,O[d]);return l.send(),l};function le(l){this._headers=l}le.prototype.get=function(l){return this._headers.get(l)};function Oe(){}Oe.prototype.open=function(l,v,b,g,A,S,O){var c=null,d=new w,x=d.signal,D=new y;return p(A,{headers:O,credentials:S?"include":"same-origin",signal:x,cache:"no-store"}).then(function(_){return c=_.body.getReader(),v(_.status,_.statusText,_.headers.get("Content-Type"),new le(_.headers)),new f(function(F,me){var Ke=function(){c.read().then(function(K){if(K.done)F(void 0);else{var Z=D.decode(K.value,{stream:!0});b(Z),Ke()}}).catch(function(K){me(K)})};Ke()})}).catch(function(_){if(_.name!=="AbortError")return _}).then(function(_){g(_)}),{abort:function(){c!=null&&c.cancel(),d.abort()}}};function ce(){this._listeners=Object.create(null)}function Ve(l){n(function(){throw l},0)}ce.prototype.dispatchEvent=function(l){l.target=this;var v=this._listeners[l.type];if(v!=null)for(var b=v.length,g=0;g<b;g+=1){var A=v[g];try{typeof A.handleEvent=="function"?A.handleEvent(l):A.call(this,l)}catch(S){Ve(S)}}},ce.prototype.addEventListener=function(l,v){l=String(l);var b=this._listeners,g=b[l];g==null&&(g=[],b[l]=g);for(var A=!1,S=0;S<g.length;S+=1)g[S]===v&&(A=!0);A||g.push(v)},ce.prototype.removeEventListener=function(l,v){l=String(l);var b=this._listeners,g=b[l];if(g!=null){for(var A=[],S=0;S<g.length;S+=1)g[S]!==v&&A.push(g[S]);A.length===0?delete b[l]:b[l]=A}};function we(l){this.type=l,this.target=void 0}function ut(l,v){we.call(this,l),this.data=v.data,this.lastEventId=v.lastEventId}ut.prototype=Object.create(we.prototype);function ze(l,v){we.call(this,l),this.status=v.status,this.statusText=v.statusText,this.headers=v.headers}ze.prototype=Object.create(we.prototype);function lt(l,v){we.call(this,l),this.error=v.error}lt.prototype=Object.create(we.prototype);var Se=-1,z=0,de=1,pe=2,Ze=-1,se=0,qe=1,Ye=2,ht=3,Pt=/^text\/event\-stream(;.*)?$/i,ft=1e3,Qe=18e6,Je=function(l,v){var b=l==null?v:parseInt(l,10);return b!==b&&(b=v),Ce(b)},Ce=function(l){return Math.min(Math.max(l,ft),Qe)},ge=function(l,v,b){try{typeof v=="function"&&v.call(l,b)}catch(g){Ve(g)}};function J(l,v){ce.call(this),v=v||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Mt(this,l,v)}function ct(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var Nt=p!=null&&m!=null&&"body"in m.prototype;function Mt(l,v,b){v=String(v);var g=!!b.withCredentials,A=b.lastEventIdQueryParameterName||"lastEventId",S=Ce(1e3),O=Je(b.heartbeatTimeout,45e3),c="",d=S,x=!1,D=0,_=b.headers||{},F=b.Transport,me=Nt&&F==null?void 0:new L(F!=null?new F:ct()),Ke=F!=null&&typeof F!="string"?new F:me==null?new Oe:new U,K=void 0,Z=0,ae=Se,Pe="",pt="",ve="",gt="",q=se,Rt=0,He=0,Mn=function(X,k,ee,te){if(ae===z)if(X===200&&ee!=null&&Pt.test(ee)){ae=de,x=Date.now(),d=S,l.readyState=de;var Y=new ze("open",{status:X,statusText:k,headers:te});l.dispatchEvent(Y),ge(l,l.onopen,Y)}else{var V="";X!==200?(k&&(k=k.replace(/\s+/g," ")),V="EventSource's response has a status "+X+" "+k+" that is not 200. Aborting the connection."):V="EventSource's response has a Content-Type specifying an unsupported type: "+(ee==null?"-":ee.replace(/\s+/g," "))+". Aborting the connection.",Dt();var Y=new ze("error",{status:X,statusText:k,headers:te});l.dispatchEvent(Y),ge(l,l.onerror,Y),console.error(V)}},Rn=function(X){if(ae===de){for(var k=-1,ee=0;ee<X.length;ee+=1){var te=X.charCodeAt(ee);(te===10||te===13)&&(k=ee)}var Y=(k!==-1?gt:"")+X.slice(0,k+1);gt=(k===-1?gt:"")+X.slice(k+1),X!==""&&(x=Date.now(),D+=X.length);for(var V=0;V<Y.length;V+=1){var te=Y.charCodeAt(V);if(q===Ze&&te===10)q=se;else if(q===Ze&&(q=se),te===13||te===10){if(q!==se){q===qe&&(He=V+1);var be=Y.slice(Rt,He-1),ye=Y.slice(He+(He<V&&Y.charCodeAt(He)===32?1:0),V);be==="data"?(Pe+=`
24
- `,Pe+=ye):be==="id"?pt=ye:be==="event"?ve=ye:be==="retry"?(S=Je(ye,S),d=S):be==="heartbeatTimeout"&&(O=Je(ye,O),Z!==0&&(i(Z),Z=n(function(){et()},O)))}if(q===se){if(Pe!==""){c=pt,ve===""&&(ve="message");var Ne=new ut(ve,{data:Pe.slice(1),lastEventId:pt});if(l.dispatchEvent(Ne),ve==="open"?ge(l,l.onopen,Ne):ve==="message"?ge(l,l.onmessage,Ne):ve==="error"&&ge(l,l.onerror,Ne),ae===pe)return}Pe="",ve=""}q=te===13?Ze:se}else q===se&&(Rt=V,q=qe),q===qe?te===58&&(He=V+1,q=Ye):q===Ye&&(q=ht)}}},mr=function(X){if(ae===de||ae===z){ae=Se,Z!==0&&(i(Z),Z=0),Z=n(function(){et()},d),d=Ce(Math.min(S*16,d*2)),l.readyState=z;var k=new lt("error",{error:X});l.dispatchEvent(k),ge(l,l.onerror,k),X!=null&&console.error(X)}},Dt=function(){ae=pe,K!=null&&(K.abort(),K=void 0),Z!==0&&(i(Z),Z=0),l.readyState=pe},et=function(){if(Z=0,ae!==Se){if(!x&&K!=null)mr(new Error("No activity within "+O+" milliseconds. "+(ae===z?"No response received.":D+" chars received.")+" Reconnecting.")),K!=null&&(K.abort(),K=void 0);else{var X=Math.max((x||Date.now())+O-Date.now(),1);x=!1,Z=n(function(){et()},X)}return}x=!1,D=0,Z=n(function(){et()},O),ae=z,Pe="",ve="",pt=c,gt="",Rt=0,He=0,q=se;var k=v;if(v.slice(0,5)!=="data:"&&v.slice(0,5)!=="blob:"&&c!==""){var ee=v.indexOf("?");k=ee===-1?v:v.slice(0,ee+1)+v.slice(ee+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ye,Ne){return Ne===A?"":ye}),k+=(v.indexOf("?")===-1?"?":"&")+A+"="+encodeURIComponent(c)}var te=l.withCredentials,Y={};Y.Accept="text/event-stream";var V=l.headers;if(V!=null)for(var be in V)Object.prototype.hasOwnProperty.call(V,be)&&(Y[be]=V[be]);try{K=Ke.open(me,Mn,Rn,mr,k,te,Y)}catch(ye){throw Dt(),ye}};l.url=v,l.readyState=z,l.withCredentials=g,l.headers=_,l._close=Dt,et()}J.prototype=Object.create(ce.prototype),J.prototype.CONNECTING=z,J.prototype.OPEN=de,J.prototype.CLOSED=pe,J.prototype.close=function(){this._close()},J.CONNECTING=z,J.OPEN=de,J.CLOSED=pe,J.prototype.withCredentials=void 0;var dt=h;o!=null&&(h==null||!("withCredentials"in h.prototype))&&(dt=J),function(l){{var v=l(t);v!==void 0&&(e.exports=v)}}(function(l){l.EventSourcePolyfill=J,l.NativeEventSource=h,l.EventSource=dt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ei:globalThis)})(hr,hr.exports);var hs=hr.exports;function fs({withLocale:e,translations:t}){xe.subscribe(r=>{r==null&&(Ie.set(t),xe.set(e))})}function kr(e,t){pr(e,t)}function cs(e){xe.set(e)}const Xr={en:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},tr:{wageringSlider:{title:"- Bahis Bonusu -",noWageringMsg:"Herhangi bir bahis bonusunuz bulunmamaktadır."}},es:{wageringSlider:{title:"Bono de Apuesta",noWageringMsg:"You don't have any wagering bonus."}},el:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},ro:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},"en-us":{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}}},ds=e=>{const t=window.BigInt;if(!e||e==null||e.length===0)return;let r=t(e[0].id);return{maxIdObj:e.reduce((i,o)=>{const s=t(o.id);return s>r?(r=s,o):i},e[0]),maxId:r.toString()}},ps=(e,t)=>JSON.stringify(e.map(r=>({bonusWalletID:r.id,progressID:t[r.id]||0}))),gs=(e,t)=>{let r=document.createElement("style");r.innerHTML=t,e.appendChild(r)},ms=(e,t)=>{let r=new URL(t),n=document.createElement("style");fetch(r.href).then(i=>i.text()).then(i=>{n.innerHTML=i,setTimeout(()=>{e.appendChild(n)},1)})};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./GeneralIconProgressBar-DaqNP0o9.cjs")).then(({default:t})=>{!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",t.element)})}const Pn="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.67757%202.5647L3.72412%20-1.25356e-07L5.77067%202.5647L3.72412%205.12939L1.67757%202.5647Z'%20fill='%23FF8B03'/%3e%3crect%20x='0.468506'%20y='6.1134'%20width='6.55827'%20height='0.936896'%20fill='%23FF8B03'/%3e%3cpath%20d='M7.49512%201.42889L0.4684%205.64492H7.02667L7.49512%201.42889Z'%20fill='%23FFB82E'/%3e%3cpath%20d='M0%201.42889L7.02672%205.64492H0.468448L0%201.42889Z'%20fill='%23FFD700'/%3e%3c/svg%3e";function vs(e){Qr(e,"svelte-l28bzx","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364))}.LeftArrow.Disabled,.RightArrow.Disabled{background:var(--emw--color-gray-300, #A9A8A8)}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #FFD700));margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .BonusName{display:table;height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .BonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364));cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}")}function Vr(e,t,r){const n=e.slice();return n[60]=t[r],n[62]=r,n}function bs(e){let t,r=e[10]("wageringSlider.noWageringMsg")+"",n;return{c(){t=W("div"),n=st(r),E(t,"class","NoWageringMsg")},m(i,o){he(i,t,o),$(t,n)},p(i,o){o[0]&1024&&r!==(r=i[10]("wageringSlider.noWageringMsg")+"")&&Ht(n,r)},d(i){i&&ue(t)}}}function ys(e){let t,r,n,i,o,s,a,h=e[10]("wageringSlider.title")+"",u,f,p,m,y,H,w,C,P,I,B=wr(e[2]),L=[];for(let T=0;T<B.length;T+=1)L[T]=zr(Vr(e,B,T));return{c(){t=W("div"),r=mt("svg"),n=mt("path"),o=_e(),s=W("div"),a=W("div"),u=st(h),f=_e(),p=W("div");for(let T=0;T<L.length;T+=1)L[T].c();m=_e(),y=W("div"),H=mt("svg"),w=mt("path"),E(n,"d","M3 7L1 4L3 1"),E(n,"stroke","currentColor"),E(n,"stroke-linecap","round"),E(n,"stroke-linejoin","round"),E(r,"width","6"),E(r,"height","14"),E(r,"viewBox","0 0 4 8"),E(r,"fill","none"),E(r,"xmlns","http://www.w3.org/2000/svg"),E(t,"class",i="LeftArrow "+(e[5]?"Disabled":"")),E(t,"role","button"),E(t,"tabindex","0"),E(a,"class","Title Top"),E(p,"class","WagerList"),E(s,"class","SliderCenter"),E(w,"d","M1 1L3 4L1 7"),E(w,"stroke","currentColor"),E(w,"stroke-linecap","round"),E(w,"stroke-linejoin","round"),E(H,"width","6"),E(H,"height","14"),E(H,"viewBox","0 0 4 8"),E(H,"fill","none"),E(H,"xmlns","http://www.w3.org/2000/svg"),E(y,"class",C="RightArrow "+(e[6]?"Disabled":"")),E(y,"role","button"),E(y,"tabindex","0")},m(T,M){he(T,t,M),$(t,r),$(r,n),he(T,o,M),he(T,s,M),$(s,a),$(a,u),$(s,f),$(s,p);for(let U=0;U<L.length;U+=1)L[U]&&L[U].m(p,null);he(T,m,M),he(T,y,M),$(y,H),$(H,w),P||(I=[Ae(t,"click",e[25]),Ae(t,"mouseenter",e[26]),Ae(t,"mouseleave",e[27]),Ae(y,"click",e[29])],P=!0)},p(T,M){if(M[0]&32&&i!==(i="LeftArrow "+(T[5]?"Disabled":""))&&E(t,"class",i),M[0]&1024&&h!==(h=T[10]("wageringSlider.title")+"")&&Ht(u,h),M[0]&16909){B=wr(T[2]);let U;for(U=0;U<B.length;U+=1){const le=Vr(T,B,U);L[U]?L[U].p(le,M):(L[U]=zr(le),L[U].c(),L[U].m(p,null))}for(;U<L.length;U+=1)L[U].d(1);L.length=B.length}M[0]&64&&C!==(C="RightArrow "+(T[6]?"Disabled":""))&&E(y,"class",C)},d(T){T&&(ue(t),ue(o),ue(s),ue(m),ue(y)),Xn(L,T),P=!1,Be(I)}}}function zr(e){let t,r,n,i,o,s=e[60].title+"",a,h,u,f,p,m,y,H,w,C,P,I,B;function L(){return e[28](e[60])}return{c(){t=W("div"),r=W("div"),n=W("div"),n.innerHTML=`<img alt="crown" class="MiniIcon" src="${Pn}"/>`,i=_e(),o=W("div"),a=st(s),h=_e(),u=W("div"),f=W("general-icon-progress-bar"),C=_e(),E(n,"class","trophy"),E(o,"class","gameInfo"),E(o,"role","button"),E(o,"tabindex","0"),E(r,"class","BonusName"),re(f,"currentstep",p=e[60].currentStep),re(f,"status",m=e[60].status),re(f,"triggerreset",y=e[60].triggerreset),re(f,"total",H=e[60].levelIncrement),re(f,"progressfractiondigit",e[0]),re(f,"showaspercent",w=e[60].type=="money"),re(f,"lang",""),E(u,"class","ProgressBar bottom"),E(t,"class",P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))},m(T,M){he(T,t,M),$(t,r),$(r,n),$(r,i),$(r,o),$(o,a),$(t,h),$(t,u),$(u,f),$(t,C),I||(B=Ae(o,"click",L),I=!0)},p(T,M){e=T,M[0]&4&&s!==(s=e[60].title+"")&&Ht(a,s),M[0]&4&&p!==(p=e[60].currentStep)&&re(f,"currentstep",p),M[0]&4&&m!==(m=e[60].status)&&re(f,"status",m),M[0]&4&&y!==(y=e[60].triggerreset)&&re(f,"triggerreset",y),M[0]&4&&H!==(H=e[60].levelIncrement)&&re(f,"total",H),M[0]&1&&re(f,"progressfractiondigit",e[0]),M[0]&4&&w!==(w=e[60].type=="money")&&re(f,"showaspercent",w),M[0]&520&&P!==(P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))&&E(t,"class",P)},d(T){T&&ue(t),I=!1,B()}}}function _s(e){let t,r,n,i,o,s,a,h,u,f,p,m,y;function H(P,I){if(P[2]&&P[2].length>0)return ys;if(P[2]&&P[2].length==0)return bs}let w=H(e),C=w&&w(e);return{c(){t=W("div"),r=W("div"),n=W("div"),n.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',i=_e(),C&&C.c(),s=_e(),a=W("section"),h=W("div"),h.innerHTML=`<img alt="crown" part="Icon" class="MiniIcon" src="${Pn}"/>`,u=_e(),f=W("div"),f.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',E(n,"class","hideButton"),E(n,"role","button"),E(n,"tabindex","0"),E(r,"class",o="SliderWrapper "+(e[8]?"HiddenWidget":"ShowWidget")),E(h,"class","svg"),E(h,"part","AnimatorIconWrapper"),E(f,"class","restoreButton"),E(f,"part","RestoreButton"),E(a,"id","animator"),E(a,"class",p="SliderIcon "+(e[8]?"ShowWidget":"HiddenWidget")),E(a,"role","button"),E(a,"tabindex","0"),E(t,"class","WageringBonusWrapper")},m(P,I){he(P,t,I),$(t,r),$(r,n),$(r,i),C&&C.m(r,null),e[30](r),$(t,s),$(t,a),$(a,h),$(a,u),$(a,f),e[31](a),e[33](t),m||(y=[Ae(n,"click",e[24]),Ae(a,"click",e[32])],m=!0)},p(P,I){w===(w=H(P))&&C?C.p(P,I):(C&&C.d(1),C=w&&w(P),C&&(C.c(),C.m(r,null))),I[0]&256&&o!==(o="SliderWrapper "+(P[8]?"HiddenWidget":"ShowWidget"))&&E(r,"class",o),I[0]&256&&p!==(p="SliderIcon "+(P[8]?"ShowWidget":"HiddenWidget"))&&E(a,"class",p)},i:oe,o:oe,d(P){P&&ue(t),C&&C.d(),e[30](null),e[31](null),e[33](null),m=!1,Be(y)}}}function Es(e,t,r){let n;Yr(e,Cn,c=>r(10,n=c));let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{numberofrecords:a="5"}=t,{looptime:h="5"}=t,{translationurl:u=""}=t,{progressfractiondigit:f="1"}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,y,H=window.navigator.userAgent,w=!0,C=!1,P,I,B=0,L,T,M,U=null,le=null,Oe=!1,ce="Hidden",Ve={};fs({withLocale:"en",translations:{}});const we=()=>{fetch(u).then(d=>d.json()).then(d=>{Object.keys(d).forEach(x=>{kr(x,d[x])})}).catch(d=>{console.error(d)})};Object.keys(Xr).forEach(c=>{kr(c,Xr[c])});const ut=()=>{cs(s)},ze=c=>{let d=0;for(let _ of c.levels||[]){let F=_.maxRepeats||1;d+=F}let x=c.wageringProgress;return{maxLevel:d,id:c.id,bonusWalletID:c.bonusWalletID,levelIncrement:x.currentLevelIncrement,gap:x.gap,currentStep:x.currentLevelIncrement-x.gap,title:c.name,description:c.description,type:c.wageringType,status:c.status,triggerreset:c.bonusWalletID}},lt=c=>{let d=[];for(let x of c.items)d.push(ze(x));r(3,B=0),r(2,I=d)},Se=()=>{h!="0"&&(clearInterval(P),P=setInterval(()=>{if(I){r(9,ce="hiddenDiv");let c=B+1;if(c>=I.length){pe();return}r(3,B=c),z(B)}},Number(h)*1e3))},z=c=>{if(r(9,ce="hiddenDiv"),c>0&&C||c<0&&w)return;Se(),T.style.setProperty("--transformFromValue",c>0?"100%":"-100%"),T.style.setProperty("--transformToValue",c>0?"-100%":"100%");let d=B+c;d=d<0?0:d,d=d==I.length?I.length-1:d,r(3,B=d)},de=()=>{r(8,Oe=!1),r(3,B=0),Se()},pe=()=>{r(8,Oe=!0),clearInterval(P),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},Ze=c=>{I.forEach(d=>{let x=c[d.bonusWalletID];if(!x)return;const{maxIdObj:D,maxId:_}=ds(x);Ve[d.id]=_;let F=D;d.status=F.status,F.levelIncrement==0&&(F.levelIncrement=1,F.gap==0),d.gap=F.gap,d.levelIncrement=F.levelIncrement,d.currentStep=d.levelIncrement-d.gap,d.triggerreset+=1}),r(2,I)},se=c=>{if(!c.data)return;let d=c.data;try{let x=JSON.parse(d);if(!x||!x.items)return;x.messageType==="WageringProgressUpdate"&&Ze(x.items)}catch(x){console.log(x)}},qe=c=>{if(!c||c=="false"||c=="undefined")return!0},Ye=()=>{L&&(L.removeEventListener("message",se),L.close())},ht=()=>{if(qe(o))return;Ye();let c=`${i}/v1/bonus/wagering/updates?walletFilter=${ps(I,Ve)}&XSessionId=${o}`;L=new hs.EventSourcePolyfill(c,{headers:{accept:"text/event-stream"}}),typeof L!="undefined"&&L.addEventListener("message",se),L.onerror=()=>ht()},Pt=c=>{if(!i||!o)return;let d=new URL(`${c}/v1/bonus/granted`),x=new Headers;d.searchParams.append("language",s),d.searchParams.append("platform",ls(H)),d.searchParams.append("status","active"),d.searchParams.append("type","wagering"),d.searchParams.append("pagination",`limit=${a},offset=0`),o&&x.append("X-SessionID",o),fetch(d,{method:"GET",headers:x}).then(_=>_.json()).then(_=>{if(d.searchParams.toString(),r(2,I=[]),_.items&&lt(_),_.errorMessage&&console.error(_.errorMessage),!I||I.length==0){r(2,I=[...I]),Ye();return}ht()})},ft=c=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:c},window.location.href)},Qe=c=>{parseInt(h)>0&&(c?clearInterval(P):Se())},Je=c=>c.touches||c.originalEvent.touches,Ce=c=>{const d=Je(c)[0];U=d.clientX,le=d.clientY},ge=c=>{if(!U||!le)return;let d=c.touches[0].clientX,x=c.touches[0].clientY,D=U-d,_=le-x;Math.abs(D)>Math.abs(_)&&(D>0?z(1):z(-1)),U=null,le=null},J=()=>{T.addEventListener("touchstart",Ce,{passive:!0}),T.addEventListener("touchmove",ge,{passive:!0})},ct=c=>{c.data&&c.data.type};qn(()=>(Se(),window.addEventListener("message",ct,!1),()=>{window.removeEventListener("message",ct,!1),T.removeEventListener("touchstart",Ce),T.removeEventListener("touchmove",ge)}));const Nt=()=>{pe()},Mt=()=>z(-1),dt=()=>{Qe(!0)},l=()=>{Qe(!1)},v=c=>ft(c.bonusWalletID),b=()=>z(1);function g(c){Fe[c?"unshift":"push"](()=>{T=c,r(4,T)})}function A(c){Fe[c?"unshift":"push"](()=>{M=c,r(7,M)})}const S=()=>de();function O(c){Fe[c?"unshift":"push"](()=>{y=c,r(1,y)})}return e.$$set=c=>{"endpoint"in c&&r(16,i=c.endpoint),"session"in c&&r(17,o=c.session),"lang"in c&&r(18,s=c.lang),"numberofrecords"in c&&r(19,a=c.numberofrecords),"looptime"in c&&r(20,h=c.looptime),"translationurl"in c&&r(21,u=c.translationurl),"progressfractiondigit"in c&&r(0,f=c.progressfractiondigit),"clientstyling"in c&&r(22,p=c.clientstyling),"clientstylingurl"in c&&r(23,m=c.clientstylingurl)},e.$$.update=()=>{e.$$.dirty[0]&4194306&&y&&p&&gs(y,p),e.$$.dirty[0]&8388610&&y&&m&&ms(y,m),e.$$.dirty[0]&458752&&s&&i&&o&&Pt(i),e.$$.dirty[0]&262144&&s&&ut(),e.$$.dirty[0]&16&&T&&J(),e.$$.dirty[0]&2097152&&u&&we(),e.$$.dirty[0]&8&&r(5,w=B==0),e.$$.dirty[0]&12&&r(6,C=I?B==I.length-1:!0)},[f,y,I,B,T,w,C,M,Oe,ce,n,z,de,pe,ft,Qe,i,o,s,a,h,u,p,m,Nt,Mt,dt,l,v,b,g,A,S,O]}class Nn extends tn{constructor(t){super(),Jr(this,t,Es,_s,cr,{endpoint:16,session:17,lang:18,numberofrecords:19,looptime:20,translationurl:21,progressfractiondigit:0,clientstyling:22,clientstylingurl:23},vs,[-1,-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),ie()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),ie()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),ie()}get numberofrecords(){return this.$$.ctx[19]}set numberofrecords(t){this.$$set({numberofrecords:t}),ie()}get looptime(){return this.$$.ctx[20]}set looptime(t){this.$$set({looptime:t}),ie()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),ie()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),ie()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),ie()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),ie()}}en(Nn,{endpoint:{},session:{},lang:{},numberofrecords:{},looptime:{},translationurl:{},progressfractiondigit:{},clientstyling:{},clientstylingurl:{}},[],[],!0);const xs=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Ie;exports.$format=Cn;exports.$locale=xe;exports.CasinoWageringBonusSliderController_ce=xs;exports.SvelteComponent=tn;exports.addMessages=pr;exports.append=$;exports.append_styles=Qr;exports.attr=E;exports.binding_callbacks=Fe;exports.component_subscribe=Yr;exports.create_custom_element=en;exports.detach=ue;exports.element=W;exports.flush=ie;exports.init=Jr;exports.insert=he;exports.noop=oe;exports.safe_not_equal=cr;exports.set_data=Ht;exports.text=st;
24
+ `,Pe+=ye):be==="id"?pt=ye:be==="event"?ve=ye:be==="retry"?(S=Je(ye,S),d=S):be==="heartbeatTimeout"&&(O=Je(ye,O),Z!==0&&(i(Z),Z=n(function(){et()},O)))}if(q===se){if(Pe!==""){c=pt,ve===""&&(ve="message");var Ne=new ut(ve,{data:Pe.slice(1),lastEventId:pt});if(l.dispatchEvent(Ne),ve==="open"?ge(l,l.onopen,Ne):ve==="message"?ge(l,l.onmessage,Ne):ve==="error"&&ge(l,l.onerror,Ne),ae===pe)return}Pe="",ve=""}q=te===13?Ze:se}else q===se&&(Rt=V,q=qe),q===qe?te===58&&(He=V+1,q=Ye):q===Ye&&(q=ht)}}},mr=function(X){if(ae===de||ae===z){ae=Se,Z!==0&&(i(Z),Z=0),Z=n(function(){et()},d),d=Ce(Math.min(S*16,d*2)),l.readyState=z;var k=new lt("error",{error:X});l.dispatchEvent(k),ge(l,l.onerror,k),X!=null&&console.error(X)}},Dt=function(){ae=pe,K!=null&&(K.abort(),K=void 0),Z!==0&&(i(Z),Z=0),l.readyState=pe},et=function(){if(Z=0,ae!==Se){if(!x&&K!=null)mr(new Error("No activity within "+O+" milliseconds. "+(ae===z?"No response received.":D+" chars received.")+" Reconnecting.")),K!=null&&(K.abort(),K=void 0);else{var X=Math.max((x||Date.now())+O-Date.now(),1);x=!1,Z=n(function(){et()},X)}return}x=!1,D=0,Z=n(function(){et()},O),ae=z,Pe="",ve="",pt=c,gt="",Rt=0,He=0,q=se;var k=v;if(v.slice(0,5)!=="data:"&&v.slice(0,5)!=="blob:"&&c!==""){var ee=v.indexOf("?");k=ee===-1?v:v.slice(0,ee+1)+v.slice(ee+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ye,Ne){return Ne===A?"":ye}),k+=(v.indexOf("?")===-1?"?":"&")+A+"="+encodeURIComponent(c)}var te=l.withCredentials,Y={};Y.Accept="text/event-stream";var V=l.headers;if(V!=null)for(var be in V)Object.prototype.hasOwnProperty.call(V,be)&&(Y[be]=V[be]);try{K=Ke.open(me,Mn,Rn,mr,k,te,Y)}catch(ye){throw Dt(),ye}};l.url=v,l.readyState=z,l.withCredentials=g,l.headers=_,l._close=Dt,et()}J.prototype=Object.create(ce.prototype),J.prototype.CONNECTING=z,J.prototype.OPEN=de,J.prototype.CLOSED=pe,J.prototype.close=function(){this._close()},J.CONNECTING=z,J.OPEN=de,J.CLOSED=pe,J.prototype.withCredentials=void 0;var dt=h;o!=null&&(h==null||!("withCredentials"in h.prototype))&&(dt=J),function(l){{var v=l(t);v!==void 0&&(e.exports=v)}}(function(l){l.EventSourcePolyfill=J,l.NativeEventSource=h,l.EventSource=dt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ei:globalThis)})(hr,hr.exports);var hs=hr.exports;function fs({withLocale:e,translations:t}){xe.subscribe(r=>{r==null&&(Ie.set(t),xe.set(e))})}function kr(e,t){pr(e,t)}function cs(e){xe.set(e)}const Xr={en:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},tr:{wageringSlider:{title:"- Bahis Bonusu -",noWageringMsg:"Herhangi bir bahis bonusunuz bulunmamaktadır."}},es:{wageringSlider:{title:"Bono de Apuesta",noWageringMsg:"You don't have any wagering bonus."}},el:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},ro:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},"en-us":{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}}},ds=e=>{const t=window.BigInt;if(!e||e==null||e.length===0)return;let r=t(e[0].id);return{maxIdObj:e.reduce((i,o)=>{const s=t(o.id);return s>r?(r=s,o):i},e[0]),maxId:r.toString()}},ps=(e,t)=>JSON.stringify(e.map(r=>({bonusWalletID:r.id,progressID:t[r.id]||0}))),gs=(e,t)=>{let r=document.createElement("style");r.innerHTML=t,e.appendChild(r)},ms=(e,t)=>{let r=new URL(t),n=document.createElement("style");fetch(r.href).then(i=>i.text()).then(i=>{n.innerHTML=i,setTimeout(()=>{e.appendChild(n)},1)})};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./GeneralIconProgressBar-BTZPpGAF.cjs")).then(({default:t})=>{!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",t.element)})}const Pn="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.67757%202.5647L3.72412%20-1.25356e-07L5.77067%202.5647L3.72412%205.12939L1.67757%202.5647Z'%20fill='%23FF8B03'/%3e%3crect%20x='0.468506'%20y='6.1134'%20width='6.55827'%20height='0.936896'%20fill='%23FF8B03'/%3e%3cpath%20d='M7.49512%201.42889L0.4684%205.64492H7.02667L7.49512%201.42889Z'%20fill='%23FFB82E'/%3e%3cpath%20d='M0%201.42889L7.02672%205.64492H0.468448L0%201.42889Z'%20fill='%23FFD700'/%3e%3c/svg%3e";function vs(e){Qr(e,"svelte-l28bzx","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364))}.LeftArrow.Disabled,.RightArrow.Disabled{background:var(--emw--color-gray-300, #A9A8A8)}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #FFD700));margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .BonusName{display:table;height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .BonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364));cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}")}function Vr(e,t,r){const n=e.slice();return n[60]=t[r],n[62]=r,n}function bs(e){let t,r=e[10]("wageringSlider.noWageringMsg")+"",n;return{c(){t=W("div"),n=st(r),E(t,"class","NoWageringMsg")},m(i,o){he(i,t,o),$(t,n)},p(i,o){o[0]&1024&&r!==(r=i[10]("wageringSlider.noWageringMsg")+"")&&Ht(n,r)},d(i){i&&ue(t)}}}function ys(e){let t,r,n,i,o,s,a,h=e[10]("wageringSlider.title")+"",u,f,p,m,y,H,w,C,P,I,B=wr(e[2]),L=[];for(let T=0;T<B.length;T+=1)L[T]=zr(Vr(e,B,T));return{c(){t=W("div"),r=mt("svg"),n=mt("path"),o=_e(),s=W("div"),a=W("div"),u=st(h),f=_e(),p=W("div");for(let T=0;T<L.length;T+=1)L[T].c();m=_e(),y=W("div"),H=mt("svg"),w=mt("path"),E(n,"d","M3 7L1 4L3 1"),E(n,"stroke","currentColor"),E(n,"stroke-linecap","round"),E(n,"stroke-linejoin","round"),E(r,"width","6"),E(r,"height","14"),E(r,"viewBox","0 0 4 8"),E(r,"fill","none"),E(r,"xmlns","http://www.w3.org/2000/svg"),E(t,"class",i="LeftArrow "+(e[5]?"Disabled":"")),E(t,"role","button"),E(t,"tabindex","0"),E(a,"class","Title Top"),E(p,"class","WagerList"),E(s,"class","SliderCenter"),E(w,"d","M1 1L3 4L1 7"),E(w,"stroke","currentColor"),E(w,"stroke-linecap","round"),E(w,"stroke-linejoin","round"),E(H,"width","6"),E(H,"height","14"),E(H,"viewBox","0 0 4 8"),E(H,"fill","none"),E(H,"xmlns","http://www.w3.org/2000/svg"),E(y,"class",C="RightArrow "+(e[6]?"Disabled":"")),E(y,"role","button"),E(y,"tabindex","0")},m(T,M){he(T,t,M),$(t,r),$(r,n),he(T,o,M),he(T,s,M),$(s,a),$(a,u),$(s,f),$(s,p);for(let U=0;U<L.length;U+=1)L[U]&&L[U].m(p,null);he(T,m,M),he(T,y,M),$(y,H),$(H,w),P||(I=[Ae(t,"click",e[25]),Ae(t,"mouseenter",e[26]),Ae(t,"mouseleave",e[27]),Ae(y,"click",e[29])],P=!0)},p(T,M){if(M[0]&32&&i!==(i="LeftArrow "+(T[5]?"Disabled":""))&&E(t,"class",i),M[0]&1024&&h!==(h=T[10]("wageringSlider.title")+"")&&Ht(u,h),M[0]&16909){B=wr(T[2]);let U;for(U=0;U<B.length;U+=1){const le=Vr(T,B,U);L[U]?L[U].p(le,M):(L[U]=zr(le),L[U].c(),L[U].m(p,null))}for(;U<L.length;U+=1)L[U].d(1);L.length=B.length}M[0]&64&&C!==(C="RightArrow "+(T[6]?"Disabled":""))&&E(y,"class",C)},d(T){T&&(ue(t),ue(o),ue(s),ue(m),ue(y)),Xn(L,T),P=!1,Be(I)}}}function zr(e){let t,r,n,i,o,s=e[60].title+"",a,h,u,f,p,m,y,H,w,C,P,I,B;function L(){return e[28](e[60])}return{c(){t=W("div"),r=W("div"),n=W("div"),n.innerHTML=`<img alt="crown" class="MiniIcon" src="${Pn}"/>`,i=_e(),o=W("div"),a=st(s),h=_e(),u=W("div"),f=W("general-icon-progress-bar"),C=_e(),E(n,"class","trophy"),E(o,"class","gameInfo"),E(o,"role","button"),E(o,"tabindex","0"),E(r,"class","BonusName"),re(f,"currentstep",p=e[60].currentStep),re(f,"status",m=e[60].status),re(f,"triggerreset",y=e[60].triggerreset),re(f,"total",H=e[60].levelIncrement),re(f,"progressfractiondigit",e[0]),re(f,"showaspercent",w=e[60].type=="money"),re(f,"lang",""),E(u,"class","ProgressBar bottom"),E(t,"class",P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))},m(T,M){he(T,t,M),$(t,r),$(r,n),$(r,i),$(r,o),$(o,a),$(t,h),$(t,u),$(u,f),$(t,C),I||(B=Ae(o,"click",L),I=!0)},p(T,M){e=T,M[0]&4&&s!==(s=e[60].title+"")&&Ht(a,s),M[0]&4&&p!==(p=e[60].currentStep)&&re(f,"currentstep",p),M[0]&4&&m!==(m=e[60].status)&&re(f,"status",m),M[0]&4&&y!==(y=e[60].triggerreset)&&re(f,"triggerreset",y),M[0]&4&&H!==(H=e[60].levelIncrement)&&re(f,"total",H),M[0]&1&&re(f,"progressfractiondigit",e[0]),M[0]&4&&w!==(w=e[60].type=="money")&&re(f,"showaspercent",w),M[0]&520&&P!==(P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))&&E(t,"class",P)},d(T){T&&ue(t),I=!1,B()}}}function _s(e){let t,r,n,i,o,s,a,h,u,f,p,m,y;function H(P,I){if(P[2]&&P[2].length>0)return ys;if(P[2]&&P[2].length==0)return bs}let w=H(e),C=w&&w(e);return{c(){t=W("div"),r=W("div"),n=W("div"),n.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',i=_e(),C&&C.c(),s=_e(),a=W("section"),h=W("div"),h.innerHTML=`<img alt="crown" part="Icon" class="MiniIcon" src="${Pn}"/>`,u=_e(),f=W("div"),f.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',E(n,"class","hideButton"),E(n,"role","button"),E(n,"tabindex","0"),E(r,"class",o="SliderWrapper "+(e[8]?"HiddenWidget":"ShowWidget")),E(h,"class","svg"),E(h,"part","AnimatorIconWrapper"),E(f,"class","restoreButton"),E(f,"part","RestoreButton"),E(a,"id","animator"),E(a,"class",p="SliderIcon "+(e[8]?"ShowWidget":"HiddenWidget")),E(a,"role","button"),E(a,"tabindex","0"),E(t,"class","WageringBonusWrapper")},m(P,I){he(P,t,I),$(t,r),$(r,n),$(r,i),C&&C.m(r,null),e[30](r),$(t,s),$(t,a),$(a,h),$(a,u),$(a,f),e[31](a),e[33](t),m||(y=[Ae(n,"click",e[24]),Ae(a,"click",e[32])],m=!0)},p(P,I){w===(w=H(P))&&C?C.p(P,I):(C&&C.d(1),C=w&&w(P),C&&(C.c(),C.m(r,null))),I[0]&256&&o!==(o="SliderWrapper "+(P[8]?"HiddenWidget":"ShowWidget"))&&E(r,"class",o),I[0]&256&&p!==(p="SliderIcon "+(P[8]?"ShowWidget":"HiddenWidget"))&&E(a,"class",p)},i:oe,o:oe,d(P){P&&ue(t),C&&C.d(),e[30](null),e[31](null),e[33](null),m=!1,Be(y)}}}function Es(e,t,r){let n;Yr(e,Cn,c=>r(10,n=c));let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{numberofrecords:a="5"}=t,{looptime:h="5"}=t,{translationurl:u=""}=t,{progressfractiondigit:f="1"}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,y,H=window.navigator.userAgent,w=!0,C=!1,P,I,B=0,L,T,M,U=null,le=null,Oe=!1,ce="Hidden",Ve={};fs({withLocale:"en",translations:{}});const we=()=>{fetch(u).then(d=>d.json()).then(d=>{Object.keys(d).forEach(x=>{kr(x,d[x])})}).catch(d=>{console.error(d)})};Object.keys(Xr).forEach(c=>{kr(c,Xr[c])});const ut=()=>{cs(s)},ze=c=>{let d=0;for(let _ of c.levels||[]){let F=_.maxRepeats||1;d+=F}let x=c.wageringProgress;return{maxLevel:d,id:c.id,bonusWalletID:c.bonusWalletID,levelIncrement:x.currentLevelIncrement,gap:x.gap,currentStep:x.currentLevelIncrement-x.gap,title:c.name,description:c.description,type:c.wageringType,status:c.status,triggerreset:c.bonusWalletID}},lt=c=>{let d=[];for(let x of c.items)d.push(ze(x));r(3,B=0),r(2,I=d)},Se=()=>{h!="0"&&(clearInterval(P),P=setInterval(()=>{if(I){r(9,ce="hiddenDiv");let c=B+1;if(c>=I.length){pe();return}r(3,B=c),z(B)}},Number(h)*1e3))},z=c=>{if(r(9,ce="hiddenDiv"),c>0&&C||c<0&&w)return;Se(),T.style.setProperty("--transformFromValue",c>0?"100%":"-100%"),T.style.setProperty("--transformToValue",c>0?"-100%":"100%");let d=B+c;d=d<0?0:d,d=d==I.length?I.length-1:d,r(3,B=d)},de=()=>{r(8,Oe=!1),r(3,B=0),Se()},pe=()=>{r(8,Oe=!0),clearInterval(P),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},Ze=c=>{I.forEach(d=>{let x=c[d.bonusWalletID];if(!x)return;const{maxIdObj:D,maxId:_}=ds(x);Ve[d.id]=_;let F=D;d.status=F.status,F.levelIncrement==0&&(F.levelIncrement=1,F.gap==0),d.gap=F.gap,d.levelIncrement=F.levelIncrement,d.currentStep=d.levelIncrement-d.gap,d.triggerreset+=1}),r(2,I)},se=c=>{if(!c.data)return;let d=c.data;try{let x=JSON.parse(d);if(!x||!x.items)return;x.messageType==="WageringProgressUpdate"&&Ze(x.items)}catch(x){console.log(x)}},qe=c=>{if(!c||c=="false"||c=="undefined")return!0},Ye=()=>{L&&(L.removeEventListener("message",se),L.close())},ht=()=>{if(qe(o))return;Ye();let c=`${i}/v1/bonus/wagering/updates?walletFilter=${ps(I,Ve)}&XSessionId=${o}`;L=new hs.EventSourcePolyfill(c,{headers:{accept:"text/event-stream"}}),typeof L!="undefined"&&L.addEventListener("message",se),L.onerror=()=>ht()},Pt=c=>{if(!i||!o)return;let d=new URL(`${c}/v1/bonus/granted`),x=new Headers;d.searchParams.append("language",s),d.searchParams.append("platform",ls(H)),d.searchParams.append("status","active"),d.searchParams.append("type","wagering"),d.searchParams.append("pagination",`limit=${a},offset=0`),o&&x.append("X-SessionID",o),fetch(d,{method:"GET",headers:x}).then(_=>_.json()).then(_=>{if(d.searchParams.toString(),r(2,I=[]),_.items&&lt(_),_.errorMessage&&console.error(_.errorMessage),!I||I.length==0){r(2,I=[...I]),Ye();return}ht()})},ft=c=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:c},window.location.href)},Qe=c=>{parseInt(h)>0&&(c?clearInterval(P):Se())},Je=c=>c.touches||c.originalEvent.touches,Ce=c=>{const d=Je(c)[0];U=d.clientX,le=d.clientY},ge=c=>{if(!U||!le)return;let d=c.touches[0].clientX,x=c.touches[0].clientY,D=U-d,_=le-x;Math.abs(D)>Math.abs(_)&&(D>0?z(1):z(-1)),U=null,le=null},J=()=>{T.addEventListener("touchstart",Ce,{passive:!0}),T.addEventListener("touchmove",ge,{passive:!0})},ct=c=>{c.data&&c.data.type};qn(()=>(Se(),window.addEventListener("message",ct,!1),()=>{window.removeEventListener("message",ct,!1),T.removeEventListener("touchstart",Ce),T.removeEventListener("touchmove",ge)}));const Nt=()=>{pe()},Mt=()=>z(-1),dt=()=>{Qe(!0)},l=()=>{Qe(!1)},v=c=>ft(c.bonusWalletID),b=()=>z(1);function g(c){Fe[c?"unshift":"push"](()=>{T=c,r(4,T)})}function A(c){Fe[c?"unshift":"push"](()=>{M=c,r(7,M)})}const S=()=>de();function O(c){Fe[c?"unshift":"push"](()=>{y=c,r(1,y)})}return e.$$set=c=>{"endpoint"in c&&r(16,i=c.endpoint),"session"in c&&r(17,o=c.session),"lang"in c&&r(18,s=c.lang),"numberofrecords"in c&&r(19,a=c.numberofrecords),"looptime"in c&&r(20,h=c.looptime),"translationurl"in c&&r(21,u=c.translationurl),"progressfractiondigit"in c&&r(0,f=c.progressfractiondigit),"clientstyling"in c&&r(22,p=c.clientstyling),"clientstylingurl"in c&&r(23,m=c.clientstylingurl)},e.$$.update=()=>{e.$$.dirty[0]&4194306&&y&&p&&gs(y,p),e.$$.dirty[0]&8388610&&y&&m&&ms(y,m),e.$$.dirty[0]&458752&&s&&i&&o&&Pt(i),e.$$.dirty[0]&262144&&s&&ut(),e.$$.dirty[0]&16&&T&&J(),e.$$.dirty[0]&2097152&&u&&we(),e.$$.dirty[0]&8&&r(5,w=B==0),e.$$.dirty[0]&12&&r(6,C=I?B==I.length-1:!0)},[f,y,I,B,T,w,C,M,Oe,ce,n,z,de,pe,ft,Qe,i,o,s,a,h,u,p,m,Nt,Mt,dt,l,v,b,g,A,S,O]}class Nn extends tn{constructor(t){super(),Jr(this,t,Es,_s,cr,{endpoint:16,session:17,lang:18,numberofrecords:19,looptime:20,translationurl:21,progressfractiondigit:0,clientstyling:22,clientstylingurl:23},vs,[-1,-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),ie()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),ie()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),ie()}get numberofrecords(){return this.$$.ctx[19]}set numberofrecords(t){this.$$set({numberofrecords:t}),ie()}get looptime(){return this.$$.ctx[20]}set looptime(t){this.$$set({looptime:t}),ie()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),ie()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),ie()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),ie()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),ie()}}en(Nn,{endpoint:{},session:{},lang:{},numberofrecords:{},looptime:{},translationurl:{},progressfractiondigit:{},clientstyling:{},clientstylingurl:{}},[],[],!0);const xs=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Ie;exports.$format=Cn;exports.$locale=xe;exports.CasinoWageringBonusSliderController_ce=xs;exports.SvelteComponent=tn;exports.addMessages=pr;exports.append=$;exports.append_styles=Qr;exports.attr=E;exports.binding_callbacks=Fe;exports.component_subscribe=Yr;exports.create_custom_element=en;exports.detach=ue;exports.element=W;exports.flush=ie;exports.init=Jr;exports.insert=he;exports.noop=oe;exports.safe_not_equal=cr;exports.set_data=Ht;exports.text=st;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoWageringBonusSliderController-J-U_5syu.cjs");function L({withLocale:s,translations:e}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(e),t.$locale.set(s))})}function H(s,e){t.addMessages(s,e)}function R(s){t.$locale.set(s)}const k={en:{bets:"bets"},tr:{bets:"bahisler"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"},"en-us":{bets:"bets"}};function j(s){t.append_styles(s,"svelte-6dosur",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}')}function I(s){let e,n,l,g,i;return{c(){e=t.element("div"),n=t.element("div"),l=t.element("span"),g=t.text(s[3]),t.attr(l,"part","progressText"),t.attr(n,"class",i="stepBar "+s[4]),t.attr(n,"part","stepBar"),t.attr(e,"class","general-icon-progress-bar"),t.attr(e,"part","totalBar")},m(a,o){t.insert(a,e,o),t.append(e,n),t.append(n,l),t.append(l,g),s[13](l),s[14](n),s[15](e)},p(a,[o]){o&8&&t.set_data(g,a[3]),o&16&&i!==(i="stepBar "+a[4])&&t.attr(n,"class",i)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s[13](null),s[14](null),s[15](null)}}}function M(s,e,n){let l;t.component_subscribe(s,t.$format,r=>n(20,l=r));let{currentstep:g=0}=e,{total:i=1}=e,{showaspercent:a}=e,{lang:o="en"}=e,{status:d}=e,{translationurl:p=""}=e,{progressfractiondigit:m=1}=e,{triggerreset:y}=e,h,f,c,b,_,x,w,B="0px",T="active";L({withLocale:"en",translations:{}});const F=()=>{fetch(p).then(u=>u.json()).then(u=>{Object.keys(u).forEach(v=>{H(v,u[v])})}).catch(u=>{console.log(u)})};Object.keys(k).forEach(r=>{H(r,k[r])});const E=()=>{R(o)},O=()=>{let r=(g/i*100).toFixed(m);setTimeout(()=>{a||a==="true"?n(3,b=`${r}%`):n(3,b=`${g}/${i} ${l("bets")}`)},b?573:0),r==0||r==100?(x="0px",w="0px",B=r==100?"3px":"0px"):(x=`${h.offsetHeight}px`,_=x,w=`${h.offsetHeight/3}px`,B="0px"),f.style.setProperty("--parentElementHeight",_),c.style.setProperty("--currentStep",r+"%"),c.style.setProperty("--triangleHeight",x),c.style.setProperty("--halfOfTriangleHeight",w),c.style.setProperty("--stepBarBorderRadius",B)},P=()=>{n(4,T=d=="active"?"":"inactive")};function C(r){t.binding_callbacks[r?"unshift":"push"](()=>{f=r,n(1,f)})}function z(r){t.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(2,c)})}function A(r){t.binding_callbacks[r?"unshift":"push"](()=>{h=r,n(0,h)})}return s.$$set=r=>{"currentstep"in r&&n(5,g=r.currentstep),"total"in r&&n(6,i=r.total),"showaspercent"in r&&n(7,a=r.showaspercent),"lang"in r&&n(8,o=r.lang),"status"in r&&n(9,d=r.status),"translationurl"in r&&n(10,p=r.translationurl),"progressfractiondigit"in r&&n(11,m=r.progressfractiondigit),"triggerreset"in r&&n(12,y=r.triggerreset)},s.$$.update=()=>{s.$$.dirty&4160&&y&&i&&setTimeout(()=>{O()}),s.$$.dirty&256&&o&&E(),s.$$.dirty&512&&d&&P(),s.$$.dirty&1024&&p&&F()},[h,f,c,b,T,g,i,a,o,d,p,m,y,C,z,A]}class S extends t.SvelteComponent{constructor(e){super(),t.init(this,e,M,I,t.safe_not_equal,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},j)}get currentstep(){return this.$$.ctx[5]}set currentstep(e){this.$$set({currentstep:e}),t.flush()}get total(){return this.$$.ctx[6]}set total(e){this.$$set({total:e}),t.flush()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(e){this.$$set({showaspercent:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get status(){return this.$$.ctx[9]}set status(e){this.$$set({status:e}),t.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(e){this.$$set({progressfractiondigit:e}),t.flush()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(e){this.$$set({triggerreset:e}),t.flush()}}t.create_custom_element(S,{currentstep:{},total:{},showaspercent:{},lang:{},status:{},translationurl:{},progressfractiondigit:{},triggerreset:{}},[],[],!0);exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoWageringBonusSliderController-Dy77Nmmx.cjs");function L({withLocale:s,translations:e}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(e),t.$locale.set(s))})}function H(s,e){t.addMessages(s,e)}function R(s){t.$locale.set(s)}const k={en:{bets:"bets"},tr:{bets:"bahisler"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"},"en-us":{bets:"bets"}};function j(s){t.append_styles(s,"svelte-6dosur",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}')}function I(s){let e,n,l,g,i;return{c(){e=t.element("div"),n=t.element("div"),l=t.element("span"),g=t.text(s[3]),t.attr(l,"part","progressText"),t.attr(n,"class",i="stepBar "+s[4]),t.attr(n,"part","stepBar"),t.attr(e,"class","general-icon-progress-bar"),t.attr(e,"part","totalBar")},m(a,o){t.insert(a,e,o),t.append(e,n),t.append(n,l),t.append(l,g),s[13](l),s[14](n),s[15](e)},p(a,[o]){o&8&&t.set_data(g,a[3]),o&16&&i!==(i="stepBar "+a[4])&&t.attr(n,"class",i)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s[13](null),s[14](null),s[15](null)}}}function M(s,e,n){let l;t.component_subscribe(s,t.$format,r=>n(20,l=r));let{currentstep:g=0}=e,{total:i=1}=e,{showaspercent:a}=e,{lang:o="en"}=e,{status:d}=e,{translationurl:p=""}=e,{progressfractiondigit:m=1}=e,{triggerreset:y}=e,h,f,c,b,_,x,w,B="0px",T="active";L({withLocale:"en",translations:{}});const F=()=>{fetch(p).then(u=>u.json()).then(u=>{Object.keys(u).forEach(v=>{H(v,u[v])})}).catch(u=>{console.log(u)})};Object.keys(k).forEach(r=>{H(r,k[r])});const E=()=>{R(o)},O=()=>{let r=(g/i*100).toFixed(m);setTimeout(()=>{a||a==="true"?n(3,b=`${r}%`):n(3,b=`${g}/${i} ${l("bets")}`)},b?573:0),r==0||r==100?(x="0px",w="0px",B=r==100?"3px":"0px"):(x=`${h.offsetHeight}px`,_=x,w=`${h.offsetHeight/3}px`,B="0px"),f.style.setProperty("--parentElementHeight",_),c.style.setProperty("--currentStep",r+"%"),c.style.setProperty("--triangleHeight",x),c.style.setProperty("--halfOfTriangleHeight",w),c.style.setProperty("--stepBarBorderRadius",B)},P=()=>{n(4,T=d=="active"?"":"inactive")};function C(r){t.binding_callbacks[r?"unshift":"push"](()=>{f=r,n(1,f)})}function z(r){t.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(2,c)})}function A(r){t.binding_callbacks[r?"unshift":"push"](()=>{h=r,n(0,h)})}return s.$$set=r=>{"currentstep"in r&&n(5,g=r.currentstep),"total"in r&&n(6,i=r.total),"showaspercent"in r&&n(7,a=r.showaspercent),"lang"in r&&n(8,o=r.lang),"status"in r&&n(9,d=r.status),"translationurl"in r&&n(10,p=r.translationurl),"progressfractiondigit"in r&&n(11,m=r.progressfractiondigit),"triggerreset"in r&&n(12,y=r.triggerreset)},s.$$.update=()=>{s.$$.dirty&4160&&y&&i&&setTimeout(()=>{O()}),s.$$.dirty&256&&o&&E(),s.$$.dirty&512&&d&&P(),s.$$.dirty&1024&&p&&F()},[h,f,c,b,T,g,i,a,o,d,p,m,y,C,z,A]}class S extends t.SvelteComponent{constructor(e){super(),t.init(this,e,M,I,t.safe_not_equal,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},j)}get currentstep(){return this.$$.ctx[5]}set currentstep(e){this.$$set({currentstep:e}),t.flush()}get total(){return this.$$.ctx[6]}set total(e){this.$$set({total:e}),t.flush()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(e){this.$$set({showaspercent:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get status(){return this.$$.ctx[9]}set status(e){this.$$set({status:e}),t.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(e){this.$$set({progressfractiondigit:e}),t.flush()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(e){this.$$set({triggerreset:e}),t.flush()}}t.create_custom_element(S,{currentstep:{},total:{},showaspercent:{},lang:{},status:{},translationurl:{},progressfractiondigit:{},triggerreset:{}},[],[],!0);exports.default=S;
@@ -1,4 +1,4 @@
1
- import { $ as k, a as M, b as V, S as q, i as G, f as g, s as U, c as D, d as J, n as O, e as K, g as Q, h, j as W, k as H, l as T, t as X, m as Y, o as v, p as Z } from "./CasinoWageringBonusSliderController-BLzMbBgc.js";
1
+ import { $ as k, a as M, b as V, S as q, i as G, f as g, s as U, c as D, d as J, n as O, e as K, g as Q, h, j as W, k as H, l as T, t as X, m as Y, o as v, p as Z } from "./CasinoWageringBonusSliderController-CEcjYbCT.js";
2
2
  function $({ withLocale: r, translations: t }) {
3
3
  k.subscribe((s) => {
4
4
  s == null && (M.set(t), k.set(r));
@@ -1,4 +1,4 @@
1
- import { $ as k, a as M, b as V, S as q, i as G, s as U, f as g, c as D, n as O, d as J, e as K, g as h, h as Q, j as H, k as T, t as W, l as X, m as v, o as Y, p as Z } from "./CasinoWageringBonusSliderController-vhWln9bk.js";
1
+ import { $ as k, a as M, b as V, S as q, i as G, s as U, f as g, c as D, n as O, d as J, e as K, g as h, h as Q, j as H, k as T, t as W, l as X, m as v, o as Y, p as Z } from "./CasinoWageringBonusSliderController-DLlDHZ87.js";
2
2
  function $({ withLocale: r, translations: t }) {
3
3
  k.subscribe((s) => {
4
4
  s == null && (M.set(t), k.set(r));
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let t=function(e){return function(...s){try{return e.apply(this,s)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusSliderController-J-U_5syu.cjs")).then(e=>e.CasinoWageringBonusSliderController_ce).then(({default:e})=>{!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let t=function(e){return function(...s){try{return e.apply(this,s)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusSliderController-Dy77Nmmx.cjs")).then(e=>e.CasinoWageringBonusSliderController_ce).then(({default:e})=>{!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoWageringBonusSliderController-vhWln9bk.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoWageringBonusSliderController-DLlDHZ87.js").then((e) => e.C).then(({ default: e }) => {
14
14
  !customElements.get("casino-wagering-bonus-slider-controller") && customElements.define(
15
15
  "casino-wagering-bonus-slider-controller",
16
16
  e.element
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoWageringBonusSliderController-BLzMbBgc.js";
1
+ import { C as s } from "../components/CasinoWageringBonusSliderController-CEcjYbCT.js";
2
2
  function r(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-wagering-bonus-slider-controller",
3
- "version": "1.99.77",
3
+ "version": "1.99.80",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-wagering-bonus-slider-controller.cjs",
6
6
  "module": "esnext/casino-wagering-bonus-slider-controller.js",