@everymatrix/casino-header-controller-nd 1.55.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.
Files changed (53) hide show
  1. package/components/CasinoHamburgerMenuNd-8seLiXmp.cjs +18 -0
  2. package/components/CasinoHamburgerMenuNd-BvmRFsu7.js +5542 -0
  3. package/components/CasinoHamburgerMenuNd-DGN7EsHe.js +5504 -0
  4. package/components/{CasinoHeaderControllerNd-bGnLcz2g.js → CasinoHeaderControllerNd-BFwMTQlj.js} +440 -388
  5. package/components/CasinoHeaderControllerNd-DxziYBrY.cjs +1 -0
  6. package/components/{CasinoHeaderControllerNd-B4Hgo5oq.js → CasinoHeaderControllerNd-R-kFatWM.js} +467 -415
  7. package/components/PlayerAccountBalanceModalNd-Ci4zwRQC.cjs +13 -0
  8. package/components/PlayerAccountBalanceModalNd-G0n55uX9.js +1556 -0
  9. package/components/PlayerAccountBalanceModalNd-fSik9FVK.js +1585 -0
  10. package/components/PlayerDeposit-CDEpMktB.cjs +1 -0
  11. package/components/{PlayerDeposit-B0r58Ypp.js → PlayerDeposit-CpAynRtY.js} +132 -155
  12. package/components/{PlayerDeposit-BkVMpjA9.js → PlayerDeposit-u2QzJGcf.js} +132 -155
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/package.json +1 -1
  17. package/stencil/gamification-dropdown-9a68cf16-7PS2vA4O.cjs +1 -0
  18. package/stencil/gamification-dropdown-9a68cf16-Bd8AEA_I.js +126 -0
  19. package/stencil/gamification-dropdown-9a68cf16-CDMvtG1f.js +144 -0
  20. package/stencil/gamification-dropdown-CojpbTti.js +7 -0
  21. package/stencil/gamification-dropdown-NgRvuRBE.cjs +1 -0
  22. package/stencil/gamification-dropdown-i5eJXGuY.js +25 -0
  23. package/stencil/{gamification-dropdown_4-Cg4EiNTS.js → gamification-dropdown_4-BRago1OR.js} +5 -5
  24. package/stencil/{gamification-dropdown_4-DNV5b4s7.cjs → gamification-dropdown_4-CiaqcflT.cjs} +2 -2
  25. package/stencil/{gamification-dropdown_4-BZffGACN.js → gamification-dropdown_4-DqaEtPzl.js} +5 -5
  26. package/stencil/{index-171550cf-CVTOm2AV.js → index-da41a34a-0vLzR_8F.js} +223 -243
  27. package/stencil/index-da41a34a-BnGk2l-N.cjs +1 -0
  28. package/stencil/index-da41a34a-C4WSJVDb.js +752 -0
  29. package/stencil/{player-elevate-card-Bo3fCMU8.js → player-elevate-card-B7TL-o1l.js} +2 -2
  30. package/stencil/{player-elevate-card-CW-95gEJ.cjs → player-elevate-card-Bm091yVi.cjs} +1 -1
  31. package/stencil/{player-elevate-card-CGn57laL.js → player-elevate-card-DmRrh482.js} +2 -2
  32. package/stencil/{player-elevate-card-items-2078bd83-DvW50KrW.js → player-elevate-card-items-6cc8ac45-BfmKEcUt.js} +5 -3
  33. package/stencil/{player-elevate-card-items-2078bd83-DSxFMBLz.cjs → player-elevate-card-items-6cc8ac45-GxnGOUPb.cjs} +1 -1
  34. package/stencil/{player-elevate-card-items-2078bd83-CUXuMGCR.js → player-elevate-card-items-6cc8ac45-mLBMGL3X.js} +5 -3
  35. package/stencil/{player-elevate-pointcard-jLOeOCx0.js → player-elevate-pointcard-CAfNwafS.js} +2 -2
  36. package/stencil/{player-elevate-pointcard-teAW1AOh.js → player-elevate-pointcard-DBDs-BP8.js} +2 -2
  37. package/stencil/{player-elevate-pointcard-DVgy3cq3.cjs → player-elevate-pointcard-DMCyU0XL.cjs} +1 -1
  38. package/components/CasinoHamburgerMenuNd-CAV9ARg-.js +0 -5485
  39. package/components/CasinoHamburgerMenuNd-CSCV-5CJ.cjs +0 -5
  40. package/components/CasinoHamburgerMenuNd-DNYzzmAB.js +0 -5447
  41. package/components/CasinoHeaderControllerNd-Cd6hH1wA.cjs +0 -1
  42. package/components/PlayerAccountBalanceModalNd-BJJzPbdP.js +0 -1586
  43. package/components/PlayerAccountBalanceModalNd-Ca8dF_9M.js +0 -1557
  44. package/components/PlayerAccountBalanceModalNd-P1iLuuUG.cjs +0 -13
  45. package/components/PlayerDeposit-CjEddUaf.cjs +0 -1
  46. package/stencil/gamification-dropdown-456bb56a-BJ9kAxaI.js +0 -103
  47. package/stencil/gamification-dropdown-456bb56a-CldmfDdk.js +0 -121
  48. package/stencil/gamification-dropdown-456bb56a-ClnsHPoT.cjs +0 -1
  49. package/stencil/gamification-dropdown-BdMkPvQc.js +0 -7
  50. package/stencil/gamification-dropdown-CnrQK1ei.cjs +0 -1
  51. package/stencil/gamification-dropdown-FVqK4we0.js +0 -25
  52. package/stencil/index-171550cf-BY--MwdX.cjs +0 -1
  53. package/stencil/index-171550cf-JwZ7TN-k.js +0 -772
@@ -1,13 +0,0 @@
1
- "use strict";var at=Object.defineProperty,ot=Object.defineProperties;var rt=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var ze=(r,t,n)=>t in r?at(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,Ue=(r,t)=>{for(var n in t||(t={}))it.call(t,n)&&ze(r,n,t[n]);if(He)for(var n of He(t))lt.call(t,n)&&ze(r,n,t[n]);return r},Pe=(r,t)=>ot(r,rt(t));var Xe=(r,t,n)=>new Promise((s,f)=>{var u=y=>{try{m(n.next(y))}catch(w){f(w)}},g=y=>{try{m(n.throw(y))}catch(w){f(w)}},m=y=>y.done?s(y.value):Promise.resolve(y.value).then(u,g);m((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-CSCV-5CJ.cjs");function Ge(r,t){e.addMessages(r,t)}function st(r){e.$locale.set(r)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Ie={exports:{}};/** @license
2
- * eventsource.js
3
- * Available under MIT License (MIT)
4
- * https://github.com/Yaffle/EventSource/
5
- */(function(r,t){(function(n){var s=n.setTimeout,f=n.clearTimeout,u=n.XMLHttpRequest,g=n.XDomainRequest,m=n.ActiveXObject,y=n.EventSource,w=n.document,A=n.Promise,D=n.fetch,E=n.Response,k=n.TextDecoder,R=n.TextEncoder,I=n.AbortController;if(typeof window!="undefined"&&typeof w!="undefined"&&!("readyState"in w)&&w.body==null&&(w.readyState="loading",window.addEventListener("load",function(o){w.readyState="complete"},!1)),u==null&&m!=null&&(u=function(){return new m("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(o){function a(){}return a.prototype=o,new a}),Date.now||(Date.now=function(){return new Date().getTime()}),I==null){var T=D;D=function(o,a){var l=a.signal;return T(o,{headers:a.headers,credentials:a.credentials,cache:a.cache}).then(function(i){var d=i.body.getReader();return l._reader=d,l._aborted&&l._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return d}}}})},I=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function C(){this.bitsNeeded=0,this.codePoint=0}C.prototype.decode=function(o){function a(S,M,B){if(B===1)return S>=128>>M&&S<<M<=2047;if(B===2)return S>=2048>>M&&S<<M<=55295||S>=57344>>M&&S<<M<=65535;if(B===3)return S>=65536>>M&&S<<M<=1114111;throw new Error}function l(S,M){if(S===6*1)return M>>6>15?3:M>31?2:1;if(S===6*2)return M>15?3:2;if(S===6*3)return 3;throw new Error}for(var i=65533,d="",p=this.bitsNeeded,v=this.codePoint,h=0;h<o.length;h+=1){var b=o[h];p!==0&&(b<128||b>191||!a(v<<6|b&63,p-6,l(p,v)))&&(p=0,v=i,d+=String.fromCharCode(v)),p===0?(b>=0&&b<=127?(p=0,v=b):b>=192&&b<=223?(p=6*1,v=b&31):b>=224&&b<=239?(p=6*2,v=b&15):b>=240&&b<=247?(p=6*3,v=b&7):(p=0,v=i),p!==0&&!a(v,p,l(p,v))&&(p=0,v=i)):(p-=6,v=v<<6|b&63),p===0&&(v<=65535?d+=String.fromCharCode(v):(d+=String.fromCharCode(55296+(v-65535-1>>10)),d+=String.fromCharCode(56320+(v-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=v,d};var L=function(){try{return new k().decode(new R().encode("test"),{stream:!0})==="test"}catch(o){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+o)}return!1};(k==null||R==null||!L())&&(k=C);var O=function(){};function z(o){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=o,this._sendTimeout=0,this._abort=O}z.prototype.open=function(o,a){this._abort(!0);var l=this,i=this._xhr,d=1,p=0;this._abort=function(B){l._sendTimeout!==0&&(f(l._sendTimeout),l._sendTimeout=0),(d===1||d===2||d===3)&&(d=4,i.onload=O,i.onerror=O,i.onabort=O,i.onprogress=O,i.onreadystatechange=O,i.abort(),p!==0&&(f(p),p=0),B||(l.readyState=4,l.onabort(null),l.onreadystatechange())),d=0};var v=function(){if(d===1){var B=0,F="",re=void 0;if("contentType"in i)B=200,F="OK",re=i.contentType;else try{B=i.status,F=i.statusText,re=i.getResponseHeader("Content-Type")}catch(Be){B=0,F="",re=void 0}B!==0&&(d=2,l.readyState=2,l.status=B,l.statusText=F,l._contentType=re,l.onreadystatechange())}},h=function(){if(v(),d===2||d===3){d=3;var B="";try{B=i.responseText}catch(F){}l.readyState=3,l.responseText=B,l.onprogress()}},b=function(B,F){if((F==null||F.preventDefault==null)&&(F={preventDefault:O}),h(),d===1||d===2||d===3){if(d=4,p!==0&&(f(p),p=0),l.readyState=4,B==="load")l.onload(F);else if(B==="error")l.onerror(F);else if(B==="abort")l.onabort(F);else throw new TypeError;l.onreadystatechange()}},S=function(B){i!=null&&(i.readyState===4?(!("onload"in i)||!("onerror"in i)||!("onabort"in i))&&b(i.responseText===""?"error":"load",B):i.readyState===3?"onprogress"in i||h():i.readyState===2&&v())},M=function(){p=s(function(){M()},500),i.readyState===3&&h()};"onload"in i&&(i.onload=function(B){b("load",B)}),"onerror"in i&&(i.onerror=function(B){b("error",B)}),"onabort"in i&&(i.onabort=function(B){b("abort",B)}),"onprogress"in i&&(i.onprogress=h),"onreadystatechange"in i&&(i.onreadystatechange=function(B){S(B)}),("contentType"in i||!("ontimeout"in u.prototype))&&(a+=(a.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(o,a,!0),"readyState"in i&&(p=s(function(){M()},0))},z.prototype.abort=function(){this._abort(!1)},z.prototype.getResponseHeader=function(o){return this._contentType},z.prototype.setRequestHeader=function(o,a){var l=this._xhr;"setRequestHeader"in l&&l.setRequestHeader(o,a)},z.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},z.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&w!=null&&w.readyState!=null&&w.readyState!=="complete"){var o=this;o._sendTimeout=s(function(){o._sendTimeout=0,o.send()},4);return}var a=this._xhr;"withCredentials"in a&&(a.withCredentials=this.withCredentials);try{a.send(void 0)}catch(l){throw l}};function K(o){return o.replace(/[A-Z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)+32)})}function ne(o){for(var a=Object.create(null),l=o.split(`\r
6
- `),i=0;i<l.length;i+=1){var d=l[i],p=d.split(": "),v=p.shift(),h=p.join(": ");a[K(v)]=h}this._map=a}ne.prototype.get=function(o){return this._map[K(o)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function U(){}U.prototype.open=function(o,a,l,i,d,p,v){o.open("GET",d);var h=0;o.onprogress=function(){var S=o.responseText,M=S.slice(h);h+=M.length,l(M)},o.onerror=function(S){S.preventDefault(),i(new Error("NetworkError"))},o.onload=function(){i(null)},o.onabort=function(){i(null)},o.onreadystatechange=function(){if(o.readyState===u.HEADERS_RECEIVED){var S=o.status,M=o.statusText,B=o.getResponseHeader("Content-Type"),F=o.getAllResponseHeaders();a(S,M,B,new ne(F))}},o.withCredentials=p;for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&o.setRequestHeader(b,v[b]);return o.send(),o};function x(o){this._headers=o}x.prototype.get=function(o){return this._headers.get(o)};function _(){}_.prototype.open=function(o,a,l,i,d,p,v){var h=null,b=new I,S=b.signal,M=new k;return D(d,{headers:v,credentials:p?"include":"same-origin",signal:S,cache:"no-store"}).then(function(B){return h=B.body.getReader(),a(B.status,B.statusText,B.headers.get("Content-Type"),new x(B.headers)),new A(function(F,re){var Be=function(){h.read().then(function(Y){if(Y.done)F(void 0);else{var X=M.decode(Y.value,{stream:!0});l(X),Be()}}).catch(function(Y){re(Y)})};Be()})}).catch(function(B){if(B.name!=="AbortError")return B}).then(function(B){i(B)}),{abort:function(){h!=null&&h.cancel(),b.abort()}}};function N(){this._listeners=Object.create(null)}function c(o){s(function(){throw o},0)}N.prototype.dispatchEvent=function(o){o.target=this;var a=this._listeners[o.type];if(a!=null)for(var l=a.length,i=0;i<l;i+=1){var d=a[i];try{typeof d.handleEvent=="function"?d.handleEvent(o):d.call(this,o)}catch(p){c(p)}}},N.prototype.addEventListener=function(o,a){o=String(o);var l=this._listeners,i=l[o];i==null&&(i=[],l[o]=i);for(var d=!1,p=0;p<i.length;p+=1)i[p]===a&&(d=!0);d||i.push(a)},N.prototype.removeEventListener=function(o,a){o=String(o);var l=this._listeners,i=l[o];if(i!=null){for(var d=[],p=0;p<i.length;p+=1)i[p]!==a&&d.push(i[p]);d.length===0?delete l[o]:l[o]=d}};function P(o){this.type=o,this.target=void 0}function Ce(o,a){P.call(this,o),this.data=a.data,this.lastEventId=a.lastEventId}Ce.prototype=Object.create(P.prototype);function ae(o,a){P.call(this,o),this.status=a.status,this.statusText=a.statusText,this.headers=a.headers}ae.prototype=Object.create(P.prototype);function ye(o,a){P.call(this,o),this.error=a.error}ye.prototype=Object.create(P.prototype);var ve=-1,ee=0,ce=1,oe=2,pe=-1,te=0,ue=1,we=2,Ee=3,Se=/^text\/event\-stream(;.*)?$/i,Me=1e3,De=18e6,he=function(o,a){var l=o==null?a:parseInt(o,10);return l!==l&&(l=a),be(l)},be=function(o){return Math.min(Math.max(o,Me),De)},de=function(o,a,l){try{typeof a=="function"&&a.call(o,l)}catch(i){c(i)}};function W(o,a){N.call(this),a=a||{},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,ke(this,o,a)}function Le(){return u!=null&&"withCredentials"in u.prototype||g==null?new u:new g}var Oe=D!=null&&E!=null&&"body"in E.prototype;function ke(o,a,l){a=String(a);var i=!!l.withCredentials,d=l.lastEventIdQueryParameterName||"lastEventId",p=be(1e3),v=he(l.heartbeatTimeout,45e3),h="",b=p,S=!1,M=0,B=l.headers||{},F=l.Transport,re=Oe&&F==null?void 0:new z(F!=null?new F:Le()),Be=F!=null&&typeof F!="string"?new F:re==null?new _:new U,Y=void 0,X=0,Z=ve,me="",Ae="",ie="",Re="",G=te,Fe=0,fe=0,tt=function(j,V,J,Q){if(Z===ee)if(j===200&&J!=null&&Se.test(J)){Z=ce,S=Date.now(),b=p,o.readyState=ce;var q=new ae("open",{status:j,statusText:V,headers:Q});o.dispatchEvent(q),de(o,o.onopen,q)}else{var H="";j!==200?(V&&(V=V.replace(/\s+/g," ")),H="EventSource's response has a status "+j+" "+V+" that is not 200. Aborting the connection."):H="EventSource's response has a Content-Type specifying an unsupported type: "+(J==null?"-":J.replace(/\s+/g," "))+". Aborting the connection.",Ne();var q=new ae("error",{status:j,statusText:V,headers:Q});o.dispatchEvent(q),de(o,o.onerror,q),console.error(H)}},nt=function(j){if(Z===ce){for(var V=-1,J=0;J<j.length;J+=1){var Q=j.charCodeAt(J);(Q===10||Q===13)&&(V=J)}var q=(V!==-1?Re:"")+j.slice(0,V+1);Re=(V===-1?Re:"")+j.slice(V+1),j!==""&&(S=Date.now(),M+=j.length);for(var H=0;H<q.length;H+=1){var Q=q.charCodeAt(H);if(G===pe&&Q===10)G=te;else if(G===pe&&(G=te),Q===13||Q===10){if(G!==te){G===ue&&(fe=H+1);var le=q.slice(Fe,fe-1),se=q.slice(fe+(fe<H&&q.charCodeAt(fe)===32?1:0),H);le==="data"?(me+=`
7
- `,me+=se):le==="id"?Ae=se:le==="event"?ie=se:le==="retry"?(p=he(se,p),b=p):le==="heartbeatTimeout"&&(v=he(se,v),X!==0&&(f(X),X=s(function(){Te()},v)))}if(G===te){if(me!==""){h=Ae,ie===""&&(ie="message");var ge=new Ce(ie,{data:me.slice(1),lastEventId:Ae});if(o.dispatchEvent(ge),ie==="open"?de(o,o.onopen,ge):ie==="message"?de(o,o.onmessage,ge):ie==="error"&&de(o,o.onerror,ge),Z===oe)return}me="",ie=""}G=Q===13?pe:te}else G===te&&(Fe=H,G=ue),G===ue?Q===58&&(fe=H+1,G=we):G===we&&(G=Ee)}}},je=function(j){if(Z===ce||Z===ee){Z=ve,X!==0&&(f(X),X=0),X=s(function(){Te()},b),b=be(Math.min(p*16,b*2)),o.readyState=ee;var V=new ye("error",{error:j});o.dispatchEvent(V),de(o,o.onerror,V),j!=null&&console.error(j)}},Ne=function(){Z=oe,Y!=null&&(Y.abort(),Y=void 0),X!==0&&(f(X),X=0),o.readyState=oe},Te=function(){if(X=0,Z!==ve){if(!S&&Y!=null)je(new Error("No activity within "+v+" milliseconds. "+(Z===ee?"No response received.":M+" chars received.")+" Reconnecting.")),Y!=null&&(Y.abort(),Y=void 0);else{var j=Math.max((S||Date.now())+v-Date.now(),1);S=!1,X=s(function(){Te()},j)}return}S=!1,M=0,X=s(function(){Te()},v),Z=ee,me="",ie="",Ae=h,Re="",Fe=0,fe=0,G=te;var V=a;if(a.slice(0,5)!=="data:"&&a.slice(0,5)!=="blob:"&&h!==""){var J=a.indexOf("?");V=J===-1?a:a.slice(0,J+1)+a.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(se,ge){return ge===d?"":se}),V+=(a.indexOf("?")===-1?"?":"&")+d+"="+encodeURIComponent(h)}var Q=o.withCredentials,q={};q.Accept="text/event-stream";var H=o.headers;if(H!=null)for(var le in H)Object.prototype.hasOwnProperty.call(H,le)&&(q[le]=H[le]);try{Y=Be.open(re,tt,nt,je,V,Q,q)}catch(se){throw Ne(),se}};o.url=a,o.readyState=ee,o.withCredentials=i,o.headers=B,o._close=Ne,Te()}W.prototype=Object.create(N.prototype),W.prototype.CONNECTING=ee,W.prototype.OPEN=ce,W.prototype.CLOSED=oe,W.prototype.close=function(){this._close()},W.CONNECTING=ee,W.OPEN=ce,W.CLOSED=oe,W.prototype.withCredentials=void 0;var _e=y;u!=null&&(y==null||!("withCredentials"in y.prototype))&&(_e=W),function(o){{var a=o(t);a!==void 0&&(r.exports=a)}}(function(o){o.EventSourcePolyfill=W,o.NativeEventSource=y,o.EventSource=_e})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Ie,Ie.exports);var ct=Ie.exports;/*!
8
- * currency.js - v2.0.4
9
- * http://scurker.github.io/currency.js
10
- *
11
- * Copyright (c) 2021 Jason Wilson
12
- * Released under MIT license
13
- */var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(t){return Math.round(t)},Ve=function(t){return Math.pow(10,t)},ut=function(t,n){return $e(t/n)*n},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function $(r,t){var n=this;if(!(n instanceof $))return new $(r,t);var s=Object.assign({},dt,t),f=Ve(s.precision),u=xe(r,s);n.intValue=u,n.value=u/f,s.increment=s.increment||1/f,s.useVedic?s.groups=pt:s.groups=ft,this.s=s,this.p=f}function xe(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=0,f=t.decimal,u=t.errorOnInvalid,g=t.precision,m=t.fromCents,y=Ve(g),w=typeof r=="number",A=r instanceof $;if(A&&m)return r.intValue;if(w||A)s=A?r.value:r;else if(typeof r=="string"){var D=new RegExp("[^-\\d"+f+"]","g"),E=new RegExp("\\"+f,"g");s=r.replace(/\((.*)\)/,"-$1").replace(D,"").replace(E,"."),s=s||0}else{if(u)throw Error("Invalid Input");s=0}return m||(s*=y,s=s.toFixed(4)),n?$e(s):s}function ht(r,t){var n=t.pattern,s=t.negativePattern,f=t.symbol,u=t.separator,g=t.decimal,m=t.groups,y=(""+r).replace(/^-/,"").split("."),w=y[0],A=y[1];return(r.value>=0?n:s).replace("!",f).replace("#",w.replace(m,"$1"+u)+(A?g+A:""))}$.prototype={add:function(t){var n=this.intValue,s=this.s,f=this.p;return $((n+=xe(t,s))/(s.fromCents?1:f),s)},subtract:function(t){var n=this.intValue,s=this.s,f=this.p;return $((n-=xe(t,s))/(s.fromCents?1:f),s)},multiply:function(t){var n=this.intValue,s=this.s;return $((n*=t)/(s.fromCents?1:Ve(s.precision)),s)},divide:function(t){var n=this.intValue,s=this.s;return $(n/=xe(t,s,!1),s)},distribute:function(t){for(var n=this.intValue,s=this.p,f=this.s,u=[],g=Math[n>=0?"floor":"ceil"](n/t),m=Math.abs(n-g*t),y=f.fromCents?1:s;t!==0;t--){var w=$(g/y,f);m-- >0&&(w=w[n>=0?"add":"subtract"](1/y)),u.push(w)}return u},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,n=this.p;return~~(t%n)},format:function(t){var n=this.s;return typeof t=="function"?t(this,n):n.format(this,Object.assign({},n,t))},toString:function(){var t=this.intValue,n=this.p,s=this.s;return ut(t/n,s.increment).toFixed(s.precision)},toJSON:function(){return this.value}};function mt(r){e.append_styles(r,"svelte-1tsugyl",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function Ke(r,t,n){const s=r.slice();return s[50]=t[n],s}function We(r,t,n){const s=r.slice();return s[53]=t[n],s}function gt(r){let t,n,s=(r[1].Total?r[8](r[1].Total[0].amount):"0")+"",f,u,g,m,y,w,A,D,E,k,R,I,T=r[4]&&Ye(r);return{c(){t=e.element("div"),n=e.element("p"),f=e.text(s),u=e.space(),g=e.text(r[5]),m=e.space(),y=e.element("span"),w=e.svg_element("svg"),A=e.svg_element("path"),E=e.space(),T&&T.c(),k=e.empty(),e.attr(A,"id","arrow"),e.attr(A,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(A,"transform","translate(-274.511 -441.088)"),e.attr(A,"fill","#d1d1d1"),e.attr(w,"xmlns","http://www.w3.org/2000/svg"),e.attr(w,"width","14"),e.attr(w,"height","6.835"),e.attr(w,"viewBox","0 0 14 6.835"),e.attr(y,"class",D=r[3]?"TriangleActive":"TriangleInactive"),e.attr(t,"class","BalanceValue")},m(C,L){e.insert(C,t,L),e.append(t,n),e.append(n,f),e.append(n,u),e.append(n,g),e.append(t,m),e.append(t,y),e.append(y,w),e.append(w,A),e.insert(C,E,L),T&&T.m(C,L),e.insert(C,k,L),R||(I=e.listen(t,"click",r[24]),R=!0)},p(C,L){L[0]&2&&s!==(s=(C[1].Total?C[8](C[1].Total[0].amount):"0")+"")&&e.set_data(f,s),L[0]&32&&e.set_data(g,C[5]),L[0]&8&&D!==(D=C[3]?"TriangleActive":"TriangleInactive")&&e.attr(y,"class",D),C[4]?T?T.p(C,L):(T=Ye(C),T.c(),T.m(k.parentNode,k)):T&&(T.d(1),T=null)},d(C){C&&(e.detach(t),e.detach(E),e.detach(k)),T&&T.d(C),R=!1,I()}}}function yt(r){let t,n=r[6]("Loading")+"",s;return{c(){t=e.element("p"),s=e.text(n),e.attr(t,"class","Loading")},m(f,u){e.insert(f,t,u),e.append(t,s)},p(f,u){u[0]&64&&n!==(n=f[6]("Loading")+"")&&e.set_data(s,n)},d(f){f&&e.detach(t)}}}function Ye(r){let t,n,s,f,u,g,m,y,w=r[6]("Title")+"",A,D,E,k,R,I,T=r[6]("DepositButton")+"",C,L,O,z,K,ne,U=e.ensure_array_like(Object.keys(r[1])),x=[];for(let _=0;_<U.length;_+=1)x[_]=Qe(Ke(r,U,_));return{c(){t=e.element("div"),n=e.element("div"),f=e.space(),u=e.element("div"),g=e.element("div"),m=e.element("div"),y=e.element("p"),A=e.text(w),D=e.space(),E=e.element("div");for(let _=0;_<x.length;_+=1)x[_].c();k=e.space(),R=e.element("div"),I=e.element("button"),C=e.text(T),e.attr(n,"class",s="BalanceModalClose "+(r[3]?"Open":"")),e.attr(y,"class","BalanceModalTitle"),e.attr(m,"class","BalanceModalHeader"),e.attr(E,"class","BalanceModalBody"),e.attr(I,"class","BalanceModalAction"),e.attr(R,"class","BalanceModalFooter"),e.attr(g,"class",L="ModalContent "+(r[3]?"Open":"")),e.attr(u,"class",O="BalanceModal "+(r[3]?"Open":"")),e.attr(t,"class",z="BalanceModalWrapper "+(r[3]?"Open":""))},m(_,N){e.insert(_,t,N),e.append(t,n),e.append(t,f),e.append(t,u),e.append(u,g),e.append(g,m),e.append(m,y),e.append(y,A),e.append(g,D),e.append(g,E);for(let c=0;c<x.length;c+=1)x[c]&&x[c].m(E,null);e.append(g,k),e.append(g,R),e.append(R,I),e.append(I,C),K||(ne=[e.listen(n,"click",r[25]),e.listen(I,"click",r[26])],K=!0)},p(_,N){if(N[0]&8&&s!==(s="BalanceModalClose "+(_[3]?"Open":""))&&e.attr(n,"class",s),N[0]&64&&w!==(w=_[6]("Title")+"")&&e.set_data(A,w),N[0]&354){U=e.ensure_array_like(Object.keys(_[1]));let c;for(c=0;c<U.length;c+=1){const P=Ke(_,U,c);x[c]?x[c].p(P,N):(x[c]=Qe(P),x[c].c(),x[c].m(E,null))}for(;c<x.length;c+=1)x[c].d(1);x.length=U.length}N[0]&64&&T!==(T=_[6]("DepositButton")+"")&&e.set_data(C,T),N[0]&8&&L!==(L="ModalContent "+(_[3]?"Open":""))&&e.attr(g,"class",L),N[0]&8&&O!==(O="BalanceModal "+(_[3]?"Open":""))&&e.attr(u,"class",O),N[0]&8&&z!==(z="BalanceModalWrapper "+(_[3]?"Open":""))&&e.attr(t,"class",z)},d(_){_&&e.detach(t),e.destroy_each(x,_),K=!1,e.run_all(ne)}}}function Je(r){let t,n,s=r[6](r[50])+"",f,u,g=(r[53].productType?r[6](r[53].productType):"")+"",m,y,w,A,D=(r[53].amount?r[8](r[53].amount):"0")+"",E,k,R,I;return{c(){t=e.element("div"),n=e.element("p"),f=e.text(s),u=e.space(),m=e.text(g),y=e.space(),w=e.element("p"),A=e.element("span"),E=e.text(D),k=e.space(),R=e.element("span"),I=e.text(r[5]),e.attr(n,"class","BalanceModalText"),e.attr(A,"class","BalanceModalAmount"),e.attr(R,"class","BalanceModalCurrency"),e.attr(w,"class","BalanceModalValue"),e.attr(t,"class","BalanceModalRowLine")},m(T,C){e.insert(T,t,C),e.append(t,n),e.append(n,f),e.append(n,u),e.append(n,m),e.append(t,y),e.append(t,w),e.append(w,A),e.append(A,E),e.append(w,k),e.append(w,R),e.append(R,I)},p(T,C){C[0]&66&&s!==(s=T[6](T[50])+"")&&e.set_data(f,s),C[0]&66&&g!==(g=(T[53].productType?T[6](T[53].productType):"")+"")&&e.set_data(m,g),C[0]&2&&D!==(D=(T[53].amount?T[8](T[53].amount):"0")+"")&&e.set_data(E,D),C[0]&32&&e.set_data(I,T[5])},d(T){T&&e.detach(t)}}}function Qe(r){let t,n,s=e.ensure_array_like(r[1][r[50]]),f=[];for(let u=0;u<s.length;u+=1)f[u]=Je(We(r,s,u));return{c(){t=e.element("div");for(let u=0;u<f.length;u+=1)f[u].c();n=e.space(),e.attr(t,"class","BalanceModalRowBoth")},m(u,g){e.insert(u,t,g);for(let m=0;m<f.length;m+=1)f[m]&&f[m].m(t,null);e.append(t,n)},p(u,g){if(g[0]&354){s=e.ensure_array_like(u[1][u[50]]);let m;for(m=0;m<s.length;m+=1){const y=We(u,s,m);f[m]?f[m].p(y,g):(f[m]=Je(y),f[m].c(),f[m].m(t,n))}for(;m<f.length;m+=1)f[m].d(1);f.length=s.length}},d(u){u&&e.detach(t),e.destroy_each(f,u)}}}function Ze(r){let t,n,s;return{c(){t=e.element("div"),e.attr(t,"class","ShowBalanceModalOverlay")},m(f,u){e.insert(f,t,u),n||(s=e.listen(t,"click",r[27]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function vt(r){let t,n,s;function f(y,w){return y[2]?yt:gt}let u=f(r),g=u(r),m=r[4]&&Ze(r);return{c(){t=e.element("div"),n=e.element("div"),g.c(),s=e.space(),m&&m.c(),e.attr(n,"class","ShowBalance")},m(y,w){e.insert(y,t,w),e.append(t,n),g.m(n,null),e.append(t,s),m&&m.m(t,null),r[28](t)},p(y,w){u===(u=f(y))&&g?g.p(y,w):(g.d(1),g=u(y),g&&(g.c(),g.m(n,null))),y[4]?m?m.p(y,w):(m=Ze(y),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i:e.noop,o:e.noop,d(y){y&&e.detach(t),g.d(),m&&m.d(),r[28](null)}}}function wt(r,t,n){let s;e.component_subscribe(r,e.$format,a=>n(6,s=a));let{userid:f=""}=t,{session:u=""}=t,{endpoint:g=""}=t,{lang:m="en"}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,{translationurl:A=""}=t,{customlocaleidentifier:D=""}=t,{gmversion:E="gm16"}=t,{displaybalanceoption:k="All"}=t,{totalcalculationmode:R="totalCashAmount"}=t,{currencyseparator:I=""}=t,{currencydecimal:T=""}=t,{currencyprecision:C=""}=t,L,O,z,K,ne=!1,U="",x=[],_,N=!1;const c={},P=["totalCashAmount","totalRealAmount"],Ce=()=>{fetch(A).then(a=>a.json()).then(a=>Object.keys(a).forEach(l=>Ge(l,a[l]))).catch(a=>console.log(a))};Object.keys(qe).forEach(a=>Ge(a,qe[a]));const ae=a=>{switch(a){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),n(4,ne=!0),setTimeout(()=>n(3,z=!0),150);break;case"closebalance":n(3,z=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{n(4,ne=!1)},150);break}},ye=()=>{if(D.includes(m))return D},ve=a=>D?new Intl.NumberFormat(ye(),{useGrouping:!0}).format(a):I&&T?$(a,{separator:I,decimal:T,symbol:"",precision:parseInt(C||"2",10)}).format():$(a,{separator:".",decimal:",",symbol:"",precision:parseInt(C||"2",10)}).format(),ee=()=>Xe(this,null,function*(){var l,i,d;n(2,L=!0);const a=new URL(`${g}/v1/player/${f}/account`);try{const p=yield fetch(a,{method:"GET",headers:{"X-SessionID":u}}),v=yield p.json();if(p.ok)window.postMessage({type:"BalancedFetched"},window.location.href),x=v.items,n(5,U=(l=x.find(h=>h.displayName==="Casino"))==null?void 0:l.currency),n(1,c.Total=[{amount:v.totalAmount[U]}],c),n(1,c.Real=[{amount:(i=x.find(h=>h.displayName==="Casino"))==null?void 0:i.balanceAmount}],c),n(1,c.Bonus=[{amount:(d=x.find(h=>h.displayName==="UBS"))==null?void 0:d.balanceAmount}],c);else throw new Error("Failed to fetch balance data !")}catch(p){console.log("Balance error: ",p)}finally{n(2,L=!1)}}),ce=()=>{n(2,L=!0);const a=new URL(`${g}/v2/player/${f}/balance`),l=new Headers;l.append("X-SessionID",u),fetch(a,{method:"GET",headers:l}).then(d=>d.json()).then(d=>{d[R]||n(10,R=P[0]);const p=d.items.find(h=>h.type==="Real"&&h.walletAccountType==="Ordinary");if(n(5,U=p.currency),N=!!p.productType,n(1,c.Total=[{amount:0}],c),n(1,c.Real=[],c),n(1,c.Bonus=[],c),n(1,c.Credit=[],c),!N){_={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(1,c.Total[0].amount=d[R][U],c);for(const h of d.items)switch(h.type){case"Bonus":c.Bonus.length===0?c.Bonus.push({amount:h.amount}):n(1,c.Bonus[0].amount+=h.amount,c);break;case"Real":if(h.creditLine&&c.Credit.length===0&&c.Credit.push({amount:h.creditLine}),R==="totalRealAmount")continue;c.Real.length===0?c.Real.push({amount:h.amount}):n(1,c.Real[0].amount+=h.amount,c);break}for(const[h,b]of Object.entries(c))b.length<1&&delete c[h];n(2,L=!1);return}_={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let v=d.items;k&&k!=="All"&&(v=d.items.filter(h=>h.productType===k));for(const h of v){let b;switch(h.type){case"Bonus":b=c.Bonus.findIndex(S=>S.productType===h.productType),b>0?n(1,c.Bonus[b].amount+=h.amount,c):c.Bonus.push({amount:h.amount,productType:h.productType});break;case"Real":h.creditLine&&c.Credit.push({amount:h.creditLine,productType:h.productType}),b=c.Real.findIndex(S=>S.productType===h.productType),b>0?n(1,c.Real[b].amount+=h.amount,c):c.Real.push({amount:h.amount,productType:h.productType});break}}we();for(const[h,b]of Object.entries(c))b.length<1&&delete c[h];n(2,L=!1)}).catch(d=>{throw n(2,L=!1),new Error("Failed to fetch balance data !")})},oe=()=>{if(K&&K.close(),u.length<1)return;let a,l;switch(E){case"gm16":a=new URL(`${g}/v2/player/${f}/information/updates`),l=p=>Ee(p);break;case"gmcore":a=new URL(`${g}/v1/player/${f}/balance/updates`),l=p=>te(p);break}const i={accept:"text/event-stream","X-SessionId":u},d=new ct.EventSourcePolyfill(a,{headers:i});K=d,d.addEventListener("message",l)},pe=a=>{let l;try{l=JSON.parse(a)}catch(i){console.log("Balance stream failed: ",i);return}return l},te=a=>{var p,v;const l=pe(a.data);if(!l){oe();return}let i="0";const d=l.balanceChange;x=x.map(h=>(d&&d[h.id]&&(h=Pe(Ue({},h),{balanceAmount:d[h.id].afterAmount})),i=(parseFloat(h==null?void 0:h.balanceAmount)+parseFloat(i)).toString(),h)),n(1,c.Real=[{amount:(p=x[0])==null?void 0:p.balanceAmount}],c),n(1,c.Bonus=[{amount:(v=x[1])==null?void 0:v.balanceAmount}],c),n(1,c.Total=[{amount:Number(i)}],c)},ue=(a,l,i)=>{let d=null;switch(i.walletAccountType){case"Ordinary":i.afterAmount!==i.affectedAmount&&(l.lastOrdinaryAfterAmount=i.afterAmount,l.showCreditLineAfterAmount||(d=i.afterAmount));break;case"CreditLine":i.afterAmount!==0?(d=i.afterAmount,l.showCreditLineAfterAmount=!0):(d=l.lastOrdinaryAfterAmount,l.showCreditLineAfterAmount=!1);break;default:d=i.afterAmount}return d===null?a:d},we=()=>{switch(R){case"totalCashAmount":let a=0;for(const i of["Real","Bonus"])for(const d of c[i])a+=Math.max(d.amount,0);n(1,c.Total[0].amount=a,c);break;case"totalRealAmount":if(!N)return;let l=0;for(const i of c.Real)l+=i.amount;n(1,c.Total[0].amount=l,c)}},Ee=a=>{const l=pe(a.data);if(!l){oe();return}if(l.type!=="BALANCE_UPDATE_V2")return;const i=l.body.balanceChange;for(const[d,p]of Object.entries(i))if(R==="totalRealAmount"&&d==="Real"&&!N&&n(1,c.Total[0].amount=ue(c.Total[0].amount,_,p),c),!!c[d])for(const v of c[d]){if(!N){v.amount=d==="Real"?ue(v.amount,_,p):p.afterAmount;continue}p.productType===v.productType&&(v.amount=d==="Real"?ue(v.amount,_[v.productType],p):p.afterAmount)}we()},Se=()=>{ae("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Me=()=>{P.includes(R)||(console.error(`Unsupported value ('${R}') for totalcalculationmode parameter. Only the following values are supported ${P}. Using default value ('${P[0]}').`),n(10,R=P[0]))},De=()=>{switch(st(m),Me(),E){case"gmcore":ee();break;case"gm16":ce();break;default:throw Error(`Invalid apiversion attribute: ${E}`)}},he=a=>a.data&&a.data.type==="LogoutSuccessfull"&&K.close(),be=()=>{const a=document.createElement("style");a.innerHTML=y,O.appendChild(a)},de=()=>{const a=new URL(w),l=document.createElement("style");fetch(a.href).then(i=>i.text()).then(i=>{l.innerHTML=i,setTimeout(()=>{O.appendChild(l)},1)})},W=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};e.onMount(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he),K&&K.close()}));const Le=()=>ae("balance"),Oe=()=>ae("closebalance"),ke=()=>Se(),_e=()=>ae("closeBalance");function o(a){e.binding_callbacks[a?"unshift":"push"](()=>{O=a,n(0,O)})}return r.$$set=a=>{"userid"in a&&n(11,f=a.userid),"session"in a&&n(12,u=a.session),"endpoint"in a&&n(13,g=a.endpoint),"lang"in a&&n(14,m=a.lang),"clientstyling"in a&&n(15,y=a.clientstyling),"clientstylingurl"in a&&n(16,w=a.clientstylingurl),"translationurl"in a&&n(17,A=a.translationurl),"customlocaleidentifier"in a&&n(18,D=a.customlocaleidentifier),"gmversion"in a&&n(19,E=a.gmversion),"displaybalanceoption"in a&&n(20,k=a.displaybalanceoption),"totalcalculationmode"in a&&n(10,R=a.totalcalculationmode),"currencyseparator"in a&&n(21,I=a.currencyseparator),"currencydecimal"in a&&n(22,T=a.currencydecimal),"currencyprecision"in a&&n(23,C=a.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&16384&&m&&ye(),r.$$.dirty[0]&1603584&&g&&f&&u&&m&&E&&k&&De(),r.$$.dirty[0]&538624&&g&&f&&u&&E&&oe(),r.$$.dirty[0]&32769&&y&&O&&be(),r.$$.dirty[0]&65537&&w&&O&&de(),r.$$.dirty[0]&131072&&A&&Ce(),r.$$.dirty[0]&2&&c.Total&&W()},[O,c,L,z,ne,U,s,ae,ve,Se,R,f,u,g,m,y,w,A,D,E,k,I,T,C,Le,Oe,ke,_e,o]}class et extends e.SvelteComponent{constructor(t){super(),e.init(this,t,wt,vt,e.safe_not_equal,{userid:11,session:12,endpoint:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17,customlocaleidentifier:18,gmversion:19,displaybalanceoption:20,totalcalculationmode:10,currencyseparator:21,currencydecimal:22,currencyprecision:23},mt,[-1,-1])}get userid(){return this.$$.ctx[11]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[12]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[18]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),e.flush()}get gmversion(){return this.$$.ctx[19]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[20]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[10]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),e.flush()}get currencyseparator(){return this.$$.ctx[21]}set currencyseparator(t){this.$$set({currencyseparator:t}),e.flush()}get currencydecimal(){return this.$$.ctx[22]}set currencydecimal(t){this.$$set({currencydecimal:t}),e.flush()}get currencyprecision(){return this.$$.ctx[23]}set currencyprecision(t){this.$$set({currencyprecision:t}),e.flush()}}e.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-CSCV-5CJ.cjs");function A(n,t){if(n){const i=document.createElement("style");i.innerHTML=t,n.appendChild(i)}}function W(n,t){const i=new URL(t);fetch(i.href).then(a=>a.text()).then(a=>{const r=document.createElement("style");r.innerHTML=a,n&&n.appendChild(r)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function j(n,t,i){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,r=>{a.innerHTML=r,n&&n.appendChild(a)})}}function L(n,t){e.addMessages(n,t)}function z(n){e.$locale.set(n)}const E={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function G(n){e.append_styles(n,"svelte-lvm6lo","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function N(n){let t,i,a,r,c,m,d,p,g,l,o=n[4]("titleDeposit")+"",u,y,D;return{c(){t=e.element("div"),i=e.svg_element("svg"),a=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),p=e.svg_element("path"),g=e.space(),l=e.element("h2"),u=e.text(o),e.attr(p,"class","aaa"),e.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(p,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","15"),e.attr(i,"height","15"),e.attr(i,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(f,h){e.insert(f,t,h),e.append(t,i),e.append(i,a),e.append(a,r),e.append(r,c),e.append(i,m),e.append(m,d),e.append(d,p),e.append(t,g),e.append(t,l),e.append(l,u),y||(D=e.listen(t,"click",n[18]),y=!0)},p(f,h){h&16&&o!==(o=f[4]("titleDeposit")+"")&&e.set_data(u,o)},d(f){f&&e.detach(t),y=!1,D()}}}function q(n){let t,i,a;return{c(){t=e.element("div"),i=e.element("iframe"),e.src_url_equal(i.src,a=n[3])||e.attr(i,"src",a),e.attr(i,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,i)},p(r,c){c&8&&!e.src_url_equal(i.src,a=r[3])&&e.attr(i,"src",a)},d(r){r&&e.detach(t)}}}function O(n){let t,i=n[4]("loading")+"",a;return{c(){t=e.element("p"),a=e.text(i)},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&16&&i!==(i=r[4]("loading")+"")&&e.set_data(a,i)},d(r){r&&e.detach(t)}}}function Q(n){let t,i,a,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&N(n);function p(o,u){return o[1]?O:q}let g=p(n),l=g(n);return{c(){t=e.element("div"),d&&d.c(),i=e.space(),a=e.element("h2"),c=e.text(r),m=e.space(),l.c(),e.attr(a,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(o,u){e.insert(o,t,u),d&&d.m(t,null),e.append(t,i),e.append(t,a),e.append(a,c),e.append(t,m),l.m(t,null),n[19](t)},p(o,[u]){o[5]&&d.p(o,u),u&16&&r!==(r=o[4]("titleDeposit")+"")&&e.set_data(c,r),g===(g=p(o))&&l?l.p(o,u):(l.d(1),l=g(o),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",o[2])},i:e.noop,o:e.noop,d(o){o&&e.detach(t),d&&d.d(),l.d(),n[19](null)}}}function Y(n,t,i){let a,r;e.component_subscribe(n,e.$format,s=>i(4,r=s));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:g=""}=t,{clientstyling:l=""}=t,{clientstylingurl:o=""}=t,{translationurl:u=""}=t,{playercurrency:y=""}=t,{mbsource:D}=t,{shortcashierenabled:f="false"}=t,h,B=window.navigator.userAgent,v=e.getDevice(B)!=="PC",M=!0,k,C,_=0,S="";const H=()=>{fetch(u).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{L(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(E).forEach(s=>{L(s,E[s])});const T=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},x=s=>{if(s.data){switch(s.data.type){case"ProfileDetailsData":i(7,y=s.data.profileDetails.currency);break}switch(s.data["MMFE:setQuickDepositHeight"]&&i(2,k=s.data["MMFE:setQuickDepositHeight"].toString()+"px"),s.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),s.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},U=()=>{let s=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(s.searchParams.append("language",p),a&&s.searchParams.append("isShortCashier",f),g)switch(y){case"USD":_=.4;break;case"CDF":_=1e3;break}let w={method:"POST",headers:{"X-SessionId":m,currency:y||"EUR",amount:_,cashierMode:"Default",IsShortCashier:f,accept:"application/json"}};fetch(s.href,w).then(b=>b.json()).then(b=>{i(1,M=!1),i(3,S=b.CashierUrl)},b=>{console.error(b)})},P=()=>{z(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.emMessageBus&&C&&C.unsubscribe(),window.removeEventListener("message",x)}));const F=()=>T();function I(s){e.binding_callbacks[s?"unshift":"push"](()=>{h=s,i(0,h)})}return n.$$set=s=>{"endpoint"in s&&i(8,c=s.endpoint),"session"in s&&i(9,m=s.session),"playerid"in s&&i(10,d=s.playerid),"lang"in s&&i(11,p=s.lang),"hasdefaultamount"in s&&i(12,g=s.hasdefaultamount),"clientstyling"in s&&i(13,l=s.clientstyling),"clientstylingurl"in s&&i(14,o=s.clientstylingurl),"translationurl"in s&&i(15,u=s.translationurl),"playercurrency"in s&&i(7,y=s.playercurrency),"mbsource"in s&&i(16,D=s.mbsource),"shortcashierenabled"in s&&i(17,f=s.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&p&&P(),n.$$.dirty&131072&&(a=f.toLocaleLowerCase()==="true"),n.$$.dirty&8193&&l&&h&&A(h,l),n.$$.dirty&16385&&o&&h&&W(h,o),n.$$.dirty&65537&&h&&j(h,`${D}.Style`),n.$$.dirty&32768&&u&&H(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&f&&U()},[h,M,k,S,r,v,T,y,c,m,d,p,g,l,o,u,D,f,F,I]}class R extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Y,Q,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,mbsource:16,shortcashierenabled:17},G)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(R,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=R;
@@ -1,103 +0,0 @@
1
- import { r as d, h as s, g as p } from "./index-171550cf-JwZ7TN-k.js";
2
- const g = "en";
3
- let a = {
4
- en: {
5
- gamificationNoPoints: "No points"
6
- },
7
- de: {
8
- gamificationNoPoints: "No points"
9
- },
10
- ro: {
11
- gamificationNoPoints: "No points"
12
- },
13
- fr: {
14
- gamificationNoPoints: "No points"
15
- },
16
- ar: {
17
- gamificationNoPoints: "No points"
18
- },
19
- hr: {
20
- gamificationNoPoints: "No points"
21
- }
22
- };
23
- const h = (e) => new Promise((t) => {
24
- fetch(e).then((i) => i.json()).then((i) => {
25
- Object.keys(i).forEach((n) => {
26
- a[n] || (a[n] = {});
27
- for (let l in i[n])
28
- a[n][l] = i[n][l];
29
- }), t(!0);
30
- });
31
- }), f = (e, t) => {
32
- const i = t;
33
- return a[i !== void 0 && i in a ? i : g][e];
34
- }, m = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}", y = m, u = class {
35
- constructor(e) {
36
- d(this, e), this.setClientStyling = () => {
37
- let t = document.createElement("style");
38
- t.innerHTML = this.clientStyling, this.stylingContainer.prepend(t);
39
- }, this.setClientStylingURL = () => {
40
- let t = new URL(this.clientStylingUrl), i = document.createElement("style");
41
- fetch(t.href).then((n) => n.text()).then((n) => {
42
- i.innerHTML = n, setTimeout(() => {
43
- this.stylingContainer.prepend(i);
44
- }, 1);
45
- }).catch((n) => {
46
- console.log("error ", n);
47
- });
48
- }, this.navigateToGamification = () => {
49
- window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
50
- }, this.handleOutsideClick = (t) => {
51
- t.composedPath().includes(this.el) || (this.isOpen = !1, document.removeEventListener("click", this.handleOutsideClick));
52
- }, this.handleDropdownClick = (t) => {
53
- t.stopPropagation(), this.isOpen = !this.isOpen, this.isOpen ? document.addEventListener("click", this.handleOutsideClick) : document.removeEventListener("click", this.handleOutsideClick);
54
- }, this.endpoint = void 0, this.language = "en", this.session = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isOpen = !1, this.isLoading = !1, this.stylingAppends = !1, this.loyaltyPoints = void 0;
55
- }
56
- handleNewTranslations() {
57
- this.isLoading = !0, h(this.translationUrl).then(() => {
58
- this.isLoading = !1;
59
- });
60
- }
61
- async componentWillLoad() {
62
- if (this.translationUrl.length > 2 && await h(this.translationUrl), this.endpoint && this.language)
63
- return this.fetchPointsData();
64
- }
65
- componentDidRender() {
66
- !this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
67
- }
68
- fetchPointsData() {
69
- let e = new URL(`${this.endpoint}/v1/elevate/playerInfo`);
70
- e.searchParams.append("language", this.language);
71
- const t = new Headers();
72
- t.append("X-SessionId", this.session);
73
- const i = {
74
- method: "GET",
75
- headers: t
76
- };
77
- return new Promise((n, l) => {
78
- this.isLoading = !0, fetch(e.href, i).then((o) => o.json()).then((o) => {
79
- var r, c;
80
- this.loyaltyPoints = (c = (r = o?.data) === null || r === void 0 ? void 0 : r.level) === null || c === void 0 ? void 0 : c.loyaltyPoints, n(!0);
81
- }).catch((o) => {
82
- console.error(o), l(o);
83
- }).finally(() => {
84
- this.isLoading = !1;
85
- });
86
- });
87
- }
88
- render() {
89
- return this.isLoading ? null : s("div", { ref: (e) => this.stylingContainer = e, class: "GamificationDropdownContainer" }, s("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : f("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", s("span", { class: this.isOpen ? "TriangleActive" : "TriangleInactive" }, s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, s("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && s("div", { class: "GamificationDropdown", onClick: this.navigateToGamification }, s("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })));
90
- }
91
- get el() {
92
- return p(this);
93
- }
94
- static get watchers() {
95
- return {
96
- translationUrl: ["handleNewTranslations"]
97
- };
98
- }
99
- };
100
- u.style = y;
101
- export {
102
- u as G
103
- };
@@ -1,121 +0,0 @@
1
- var p = (e, i, t) => new Promise((n, s) => {
2
- var o = (l) => {
3
- try {
4
- a(t.next(l));
5
- } catch (d) {
6
- s(d);
7
- }
8
- }, c = (l) => {
9
- try {
10
- a(t.throw(l));
11
- } catch (d) {
12
- s(d);
13
- }
14
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, c);
15
- a((t = t.apply(e, i)).next());
16
- });
17
- import { r as f, h as r, g as m } from "./index-171550cf-CVTOm2AV.js";
18
- const y = "en";
19
- let h = {
20
- en: {
21
- gamificationNoPoints: "No points"
22
- },
23
- de: {
24
- gamificationNoPoints: "No points"
25
- },
26
- ro: {
27
- gamificationNoPoints: "No points"
28
- },
29
- fr: {
30
- gamificationNoPoints: "No points"
31
- },
32
- ar: {
33
- gamificationNoPoints: "No points"
34
- },
35
- hr: {
36
- gamificationNoPoints: "No points"
37
- }
38
- };
39
- const g = (e) => new Promise((i) => {
40
- fetch(e).then((t) => t.json()).then((t) => {
41
- Object.keys(t).forEach((n) => {
42
- h[n] || (h[n] = {});
43
- for (let s in t[n])
44
- h[n][s] = t[n][s];
45
- }), i(!0);
46
- });
47
- }), u = (e, i) => {
48
- const t = i;
49
- return h[t !== void 0 && t in h ? t : y][e];
50
- }, w = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}", v = w, D = class {
51
- constructor(e) {
52
- f(this, e), this.setClientStyling = () => {
53
- let i = document.createElement("style");
54
- i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
55
- }, this.setClientStylingURL = () => {
56
- let i = new URL(this.clientStylingUrl), t = document.createElement("style");
57
- fetch(i.href).then((n) => n.text()).then((n) => {
58
- t.innerHTML = n, setTimeout(() => {
59
- this.stylingContainer.prepend(t);
60
- }, 1);
61
- }).catch((n) => {
62
- console.log("error ", n);
63
- });
64
- }, this.navigateToGamification = () => {
65
- window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
66
- }, this.handleOutsideClick = (i) => {
67
- i.composedPath().includes(this.el) || (this.isOpen = !1, document.removeEventListener("click", this.handleOutsideClick));
68
- }, this.handleDropdownClick = (i) => {
69
- i.stopPropagation(), this.isOpen = !this.isOpen, this.isOpen ? document.addEventListener("click", this.handleOutsideClick) : document.removeEventListener("click", this.handleOutsideClick);
70
- }, this.endpoint = void 0, this.language = "en", this.session = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isOpen = !1, this.isLoading = !1, this.stylingAppends = !1, this.loyaltyPoints = void 0;
71
- }
72
- handleNewTranslations() {
73
- this.isLoading = !0, g(this.translationUrl).then(() => {
74
- this.isLoading = !1;
75
- });
76
- }
77
- componentWillLoad() {
78
- return p(this, null, function* () {
79
- if (this.translationUrl.length > 2 && (yield g(this.translationUrl)), this.endpoint && this.language)
80
- return this.fetchPointsData();
81
- });
82
- }
83
- componentDidRender() {
84
- !this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
85
- }
86
- fetchPointsData() {
87
- let e = new URL(`${this.endpoint}/v1/elevate/playerInfo`);
88
- e.searchParams.append("language", this.language);
89
- const i = new Headers();
90
- i.append("X-SessionId", this.session);
91
- const t = {
92
- method: "GET",
93
- headers: i
94
- };
95
- return new Promise((n, s) => {
96
- this.isLoading = !0, fetch(e.href, t).then((o) => o.json()).then((o) => {
97
- var c, a;
98
- this.loyaltyPoints = (a = (c = o == null ? void 0 : o.data) === null || c === void 0 ? void 0 : c.level) === null || a === void 0 ? void 0 : a.loyaltyPoints, n(!0);
99
- }).catch((o) => {
100
- console.error(o), s(o);
101
- }).finally(() => {
102
- this.isLoading = !1;
103
- });
104
- });
105
- }
106
- render() {
107
- return this.isLoading ? null : r("div", { ref: (e) => this.stylingContainer = e, class: "GamificationDropdownContainer" }, r("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : u("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", r("span", { class: this.isOpen ? "TriangleActive" : "TriangleInactive" }, r("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, r("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && r("div", { class: "GamificationDropdown", onClick: this.navigateToGamification }, r("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })));
108
- }
109
- get el() {
110
- return m(this);
111
- }
112
- static get watchers() {
113
- return {
114
- translationUrl: ["handleNewTranslations"]
115
- };
116
- }
117
- };
118
- D.style = v;
119
- export {
120
- D as G
121
- };
@@ -1 +0,0 @@
1
- "use strict";var p=(e,t,i)=>new Promise((n,a)=>{var o=r=>{try{l(i.next(r))}catch(d){a(d)}},c=r=>{try{l(i.throw(r))}catch(d){a(d)}},l=r=>r.done?n(r.value):Promise.resolve(r.value).then(o,c);l((i=i.apply(e,t)).next())});const s=require("./index-171550cf-BY--MwdX.cjs"),m="en";let h={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const g=e=>new Promise(t=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(n=>{h[n]||(h[n]={});for(let a in i[n])h[n][a]=i[n][a]}),t(!0)})}),u=(e,t)=>{const i=t;return h[i!==void 0&&i in h?i:m][e]},y=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}",w=y,f=class{constructor(e){s.registerInstance(this,e),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),i=document.createElement("style");fetch(t.href).then(n=>n.text()).then(n=>{i.innerHTML=n,setTimeout(()=>{this.stylingContainer.prepend(i)},1)}).catch(n=>{console.log("error ",n)})},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)},this.endpoint=void 0,this.language="en",this.session="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.stylingAppends=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,g(this.translationUrl).then(()=>{this.isLoading=!1})}componentWillLoad(){return p(this,null,function*(){if(this.translationUrl.length>2&&(yield g(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}fetchPointsData(){let e=new URL(`${this.endpoint}/v1/elevate/playerInfo`);e.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const i={method:"GET",headers:t};return new Promise((n,a)=>{this.isLoading=!0,fetch(e.href,i).then(o=>o.json()).then(o=>{var c,l;this.loyaltyPoints=(l=(c=o==null?void 0:o.data)===null||c===void 0?void 0:c.level)===null||l===void 0?void 0:l.loyaltyPoints,n(!0)}).catch(o=>{console.error(o),a(o)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:s.h("div",{ref:e=>this.stylingContainer=e,class:"GamificationDropdownContainer"},s.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:e=>this.handleDropdownClick(e),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):u("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",s.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},s.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},s.h("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&s.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},s.h("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling})))}get el(){return s.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};f.style=w;exports.GamificationDropdown=f;
@@ -1,7 +0,0 @@
1
- import { b as n, p as t } from "./index-171550cf-JwZ7TN-k.js";
2
- import { g as l } from "./app-globals-0f993ce5-D-kw1sls.js";
3
- var r = () => {
4
- const e = import.meta.url, a = {};
5
- return e !== "" && (a.resourcesUrl = new URL(".", e).href), t(a);
6
- };
7
- r().then(async (e) => (await l(), n([["gamification-dropdown_4", [[1, "gamification-dropdown", { endpoint: [513], language: [513], session: [513], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], isOpen: [32], isLoading: [32], stylingAppends: [32], loyaltyPoints: [32] }, null, { translationUrl: ["handleNewTranslations"] }], [1, "player-elevate-loyaltycard", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerElevateLevel: [32], elevateWalletTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }], [4, "general-styling-wrapper", { clientStyling: [1, "client-styling"], clientStylingUrl: [1, "client-styling-url"], translationUrl: [1, "translation-url"], targetTranslations: [16] }], [0, "player-elevate-card-data", { params: [8], playerElevateLevel: [32], pointExpireString: [32] }, [[9, "resize", "handleWindowResizs"], [8, "redeemGiftButton", "redeemGiftButtonHandler"]], { params: ["onParamsChanged"] }]]], ["player-elevate-card", [[1, "player-elevate-card", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerLevelFlag: [32], playerElevateLevel: [32], elevateWalletTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]], ["player-elevate-pointcard", [[1, "player-elevate-pointcard", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], cardTitle: [513, "card-title"], buttonType: [513, "button-type"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerElevateLevel: [32], elevateWalletTotal: [32], elevateSPTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]]], e)));
@@ -1 +0,0 @@
1
- "use strict";var s=(n,a,t)=>new Promise((d,o)=>{var y=e=>{try{l(t.next(e))}catch(r){o(r)}},g=e=>{try{l(t.throw(e))}catch(r){o(r)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(y,g);l((t=t.apply(n,a)).next())});const p=require("./index-171550cf-BY--MwdX.cjs"),c=require("./app-globals-0f993ce5-sCt45RkC.cjs");var i=typeof document!="undefined"?document.currentScript:null,u=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:i&&i.tagName.toUpperCase()==="SCRIPT"&&i.src||new URL("stencil/gamification-dropdown-CnrQK1ei.cjs",document.baseURI).href,a={};return n!==""&&(a.resourcesUrl=new URL(".",n).href),p.promiseResolve(a)};u().then(n=>s(exports,null,function*(){return yield c.globalScripts(),p.bootstrapLazy([["gamification-dropdown_4",[[1,"gamification-dropdown",{endpoint:[513],language:[513],session:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],isOpen:[32],isLoading:[32],stylingAppends:[32],loyaltyPoints:[32]},null,{translationUrl:["handleNewTranslations"]}],[1,"player-elevate-loyaltycard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}],[0,"player-elevate-card-data",{params:[8],playerElevateLevel:[32],pointExpireString:[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{params:["onParamsChanged"]}]]],["player-elevate-card",[[1,"player-elevate-card",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerLevelFlag:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard",[[1,"player-elevate-pointcard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],cardTitle:[513,"card-title"],buttonType:[513,"button-type"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32],elevateSPTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]]],n)}));
@@ -1,25 +0,0 @@
1
- var o = (a, n, t) => new Promise((s, i) => {
2
- var p = (e) => {
3
- try {
4
- l(t.next(e));
5
- } catch (r) {
6
- i(r);
7
- }
8
- }, d = (e) => {
9
- try {
10
- l(t.throw(e));
11
- } catch (r) {
12
- i(r);
13
- }
14
- }, l = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(p, d);
15
- l((t = t.apply(a, n)).next());
16
- });
17
- import { b as y, p as g } from "./index-171550cf-CVTOm2AV.js";
18
- import { g as v } from "./app-globals-0f993ce5-D-kw1sls.js";
19
- var c = () => {
20
- const a = import.meta.url, n = {};
21
- return a !== "" && (n.resourcesUrl = new URL(".", a).href), g(n);
22
- };
23
- c().then((a) => o(void 0, null, function* () {
24
- return yield v(), y([["gamification-dropdown_4", [[1, "gamification-dropdown", { endpoint: [513], language: [513], session: [513], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], isOpen: [32], isLoading: [32], stylingAppends: [32], loyaltyPoints: [32] }, null, { translationUrl: ["handleNewTranslations"] }], [1, "player-elevate-loyaltycard", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerElevateLevel: [32], elevateWalletTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }], [4, "general-styling-wrapper", { clientStyling: [1, "client-styling"], clientStylingUrl: [1, "client-styling-url"], translationUrl: [1, "translation-url"], targetTranslations: [16] }], [0, "player-elevate-card-data", { params: [8], playerElevateLevel: [32], pointExpireString: [32] }, [[9, "resize", "handleWindowResizs"], [8, "redeemGiftButton", "redeemGiftButtonHandler"]], { params: ["onParamsChanged"] }]]], ["player-elevate-card", [[1, "player-elevate-card", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerLevelFlag: [32], playerElevateLevel: [32], elevateWalletTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]], ["player-elevate-pointcard", [[1, "player-elevate-pointcard", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], cardTitle: [513, "card-title"], buttonType: [513, "button-type"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerElevateLevel: [32], elevateWalletTotal: [32], elevateSPTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]]], a);
25
- }));
@@ -1 +0,0 @@
1
- "use strict";var Fe=Object.defineProperty;var ee=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var te=(e,t,s)=>t in e?Fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,se=(e,t)=>{for(var s in t||(t={}))He.call(t,s)&&te(e,s,t[s]);if(ee)for(var s of ee(t))Ne.call(t,s)&&te(e,s,t[s]);return e};var U=(e,t,s)=>new Promise((r,n)=>{var l=a=>{try{i(s.next(a))}catch($){n($)}},o=a=>{try{i(s.throw(a))}catch($){n($)}},i=a=>a.done?r(a.value):Promise.resolve(a.value).then(l,o);i((s=s.apply(e,t)).next())});const qe="gamification-dropdown",_={allRenderFn:!1,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!1,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!1,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!1,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!0,hostListenerTarget:!0,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!0,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!1,propMutable:!1,propNumber:!1,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!0,slotChildNodesFix:!1,slotRelocation:!0,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!1,watchCallback:!0};var De=Object.defineProperty,Ie=(e,t)=>{for(var s in t)De(e,s,{get:t[s],enumerable:!0})},X=new WeakMap,x=e=>X.get(e),Be=(e,t)=>X.set(t.$lazyInstance$=e,t),ze=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],X.set(e,s)},re=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),I=new Map,We=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const l=I.get(n);if(l)return l[r];{const o=i=>(I.set(n,i),i[r]);switch(n){case"gamification-dropdown_4":return Promise.resolve().then(()=>require("./gamification-dropdown_4-DNV5b4s7.cjs")).then(o,b);case"player-elevate-card":return Promise.resolve().then(()=>require("./player-elevate-card-CW-95gEJ.cjs")).then(o,b);case"player-elevate-pointcard":return Promise.resolve().then(()=>require("./player-elevate-pointcard-DVgy3cq3.cjs")).then(o,b)}}return import(`./${n}.entry.js`).then(o=>(I.set(n,o),o[r]),b)},F=new Map,Me="{visibility:hidden}.hydrated{visibility:inherit}",ue="slot-fb{display:contents}slot-fb[hidden]{display:none}",P=typeof window!="undefined"?window:{},m=P.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},Ge=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),pe=e=>Promise.resolve(e),ve=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),B=!1,ne=[],he=[],Xe=(e,t)=>s=>{e.push(s),B||(B=!0,g.$flags$&4?Q(z):g.raf(z))},le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){b(s)}e.length=0},z=()=>{le(ne),le(he),(B=ne.length>0)&&g.raf(z)},Q=e=>pe().then(e),Qe=Xe(he),Ye=e=>{const t=new URL(e,g.$resourcesUrl$);return t.origin!==P.location.origin?t.href:t.pathname},ae={},Je="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml",Ze=e=>e!=null,Y=e=>(e=typeof e,e==="object"||e==="function");function ge(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var Ve={};Ie(Ve,{err:()=>ye,map:()=>et,ok:()=>W,unwrap:()=>tt,unwrapErr:()=>st});var W=e=>({isOk:!0,isErr:!1,value:e}),ye=e=>({isOk:!1,isErr:!0,value:e});function et(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>W(r)):W(s)}if(e.isErr){const s=e.value;return ye(s)}throw"should never get here"}var tt=e=>{if(e.isOk)return e.value;throw e.value},st=e=>{if(e.isErr)return e.value;throw e.value},E=(e,t="")=>()=>{},rt=(e,t)=>()=>{},J=(e,t,...s)=>{let r=null,n=null,l=null,o=!1,i=!1;const a=[],$=d=>{for(let f=0;f<d.length;f++)r=d[f],Array.isArray(r)?$(r):r!=null&&typeof r!="boolean"&&((o=typeof e!="function"&&!Y(r))&&(r=String(r)),o&&i?a[a.length-1].$text$+=r:a.push(o?H(null,r):r),i=o)};if($(s),t){t.key&&(n=t.key),t.name&&(l=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter(f=>d[f]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,at);const c=H(e,null);return c.$attrs$=t,a.length>0&&(c.$children$=a),c.$key$=n,c.$name$=l,c},H=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},nt={},lt=e=>e&&e.$tag$===nt,at={forEach:(e,t)=>e.map(oe).forEach(t),map:(e,t)=>e.map(oe).map(t).map(ot)},oe=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),ot=e=>{if(typeof e.vtag=="function"){const s=se({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),J(e.vtag,s,...e.vchildren||[])}const t=H(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},it=(e,t)=>e!=null&&!Y(e)&&t&1?String(e):e,me=e=>x(e).$hostElement$,$t=(e,t,s)=>{const r=me(e);return{emit:n=>Se(r,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:n})}},Se=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},ie=new WeakMap,ct=(e,t,s)=>{let r=F.get(e);ve&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,F.set(e,r)},ft=(e,t,s)=>{var r;const n=be(t),l=F.get(n);if(e=e.nodeType===11?e:m,l)if(typeof l=="string"){e=e.head||e;let o=ie.get(e),i;if(o||ie.set(e,o=new Set),!o.has(n)){{i=m.createElement("style"),i.innerHTML=l;const a=(r=g.$nonce$)!=null?r:ge(m);if(a!=null&&i.setAttribute("nonce",a),!(t.$flags$&1))if(e.nodeName==="HEAD"){const $=e.querySelectorAll("link[rel=preconnect]"),c=$.length>0?$[$.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,c)}else if("host"in e)if(ve){const $=new CSSStyleSheet;$.replaceSync(l),e.adoptedStyleSheets=[$,...e.adoptedStyleSheets]}else{const $=e.querySelector("style");$?$.innerHTML=l+$.innerHTML:e.prepend(i)}else e.append(i);t.$flags$&1&&e.nodeName!=="HEAD"&&e.insertBefore(i,null)}t.$flags$&4&&(i.innerHTML+=ue),o&&o.add(n)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n},dt=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=t.$flags$,n=E("attachStyles",t.$tagName$),l=ft(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);r&10&&r&2&&(s["s-sc"]=l,s.classList.add(l+"-h")),n()},be=(e,t)=>"sc-"+e.$tagName$,$e=(e,t,s,r,n,l)=>{if(s!==r){let o=re(e,t),i=t.toLowerCase();if(t==="class"){const a=e.classList,$=ce(s),c=ce(r);a.remove(...$.filter(d=>d&&!c.includes(d))),a.add(...c.filter(d=>d&&!$.includes(d)))}else if(t==="style"){for(const a in s)(!r||r[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in r)(!s||r[a]!==s[a])&&(a.includes("-")?e.style.setProperty(a,r[a]):e.style[a]=r[a])}else if(t!=="key")if(t==="ref")r&&r(e);else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):re(P,i)?t=i.slice(2):t=i[2]+t.slice(3),s||r){const a=t.endsWith(ke);t=t.replace(pt,""),s&&g.rel(e,t,s,a),r&&g.ael(e,t,r,a)}}else{const a=Y(r);if((o||a&&r!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=r;else{const $=r==null?"":r;t==="list"?o=!1:(s==null||e[t]!=$)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=$:e.setAttribute(t,$))}}catch($){}r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!o||l&4||n)&&!a&&(r=r===!0?"":r,e.setAttribute(t,r))}}},ut=/\s/,ce=e=>e?e.split(ut):[],ke="Capture",pt=new RegExp(ke+"$"),Te=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||ae,l=t.$attrs$||ae;for(const o of fe(Object.keys(n)))o in l||$e(r,o,n[o],void 0,s,t.$flags$);for(const o of fe(Object.keys(l)))$e(r,o,n[o],l[o],s,t.$flags$)};function fe(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var w,M,R,N=!1,q=!1,K=!1,S=!1,D=(e,t,s,r)=>{var n;const l=t.$children$[s];let o=0,i,a,$;if(N||(K=!0,l.$tag$==="slot"&&(w&&r.classList.add(w+"-s"),l.$flags$|=l.$children$?2:1)),l.$text$!==null)i=l.$elm$=m.createTextNode(l.$text$);else if(l.$flags$&1)i=l.$elm$=m.createTextNode("");else{if(S||(S=l.$tag$==="svg"),i=l.$elm$=m.createElementNS(S?Je:Ke,!N&&_.slotRelocation&&l.$flags$&2?"slot-fb":l.$tag$),S&&l.$tag$==="foreignObject"&&(S=!1),Te(null,l,S),!!i.getRootNode().querySelector("body")&&_.scoped&&Ze(w)&&i["s-si"]!==w&&i.classList.add(i["s-si"]=w),l.$children$)for(o=0;o<l.$children$.length;++o)a=D(e,l,o,i),a&&i.appendChild(a);l.$tag$==="svg"?S=!1:i.tagName==="foreignObject"&&(S=!0)}return i["s-hn"]=R,l.$flags$&3&&(i["s-sr"]=!0,i["s-cr"]=M,i["s-sn"]=l.$name$||"",i["s-rf"]=(n=l.$attrs$)==null?void 0:n.ref,$=e&&e.$children$&&e.$children$[s],$&&$.$tag$===l.$tag$&&e.$elm$&&O(e.$elm$,!1)),i},O=(e,t)=>{g.$flags$|=1;const s=Array.from(e.childNodes);if(e["s-sr"]&&_.experimentalSlotFixes){let r=e;for(;r=r.nextSibling;)r&&r["s-sn"]===e["s-sn"]&&r["s-sh"]===R&&s.push(r)}for(let r=s.length-1;r>=0;r--){const n=s[r];n["s-hn"]!==R&&n["s-ol"]&&(L(xe(n),n,Z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&O(n,t)}g.$flags$&=-2},Ee=(e,t,s,r,n,l)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,i;for(o.shadowRoot&&o.tagName===R&&(o=o.shadowRoot);n<=l;++n)r[n]&&(i=D(null,s,n,e),i&&(r[n].$elm$=i,L(o,i,Z(t))))},Le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const l=n.$elm$;_e(n),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():O(l,!0),l.remove())}}},vt=(e,t,s,r,n=!1)=>{let l=0,o=0,i=0,a=0,$=t.length-1,c=t[0],d=t[$],f=r.length-1,u=r[0],v=r[f],h,y;for(;l<=$&&o<=f;)if(c==null)c=t[++l];else if(d==null)d=t[--$];else if(u==null)u=r[++o];else if(v==null)v=r[--f];else if(C(c,u,n))A(c,u,n),c=t[++l],u=r[++o];else if(C(d,v,n))A(d,v,n),d=t[--$],v=r[--f];else if(C(c,v,n))(c.$tag$==="slot"||v.$tag$==="slot")&&O(c.$elm$.parentNode,!1),A(c,v,n),L(e,c.$elm$,d.$elm$.nextSibling),c=t[++l],v=r[--f];else if(C(d,u,n))(c.$tag$==="slot"||v.$tag$==="slot")&&O(d.$elm$.parentNode,!1),A(d,u,n),L(e,d.$elm$,c.$elm$),d=t[--$],u=r[++o];else{for(i=-1,a=l;a<=$;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){i=a;break}i>=0?(y=t[i],y.$tag$!==u.$tag$?h=D(t&&t[o],s,i,e):(A(y,u,n),t[i]=void 0,h=y.$elm$),u=r[++o]):(h=D(t&&t[o],s,o,e),u=r[++o]),h&&L(xe(c.$elm$),h,Z(c.$elm$))}l>$?Ee(e,r[f+1]==null?null:r[f+1].$elm$,s,r,o,f):o>f&&Le(t,l,$)},C=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?"$nodeId$"in e&&s&&e.$elm$.nodeType!==8?!1:e.$name$===t.$name$:s?!0:e.$key$===t.$key$:!1,Z=e=>e&&e["s-ol"]||e,xe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,A=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,l=t.$children$,o=t.$tag$,i=t.$text$;let a;i===null?(S=o==="svg"?!0:o==="foreignObject"?!1:S,o==="slot"&&!N||Te(e,t,S),n!==null&&l!==null?vt(r,n,t,l,s):l!==null?(e.$text$!==null&&(r.textContent=""),Ee(r,null,t,l,0,l.length-1)):!s&&_.updatable&&n!==null&&Le(n,0,n.length-1),S&&o==="svg"&&(S=!1)):(a=r["s-cr"])?a.parentNode.textContent=i:e.$text$!==i&&(r.data=i)},we=e=>{const t=e.childNodes;for(const s of t)if(s.nodeType===1){if(s["s-sr"]){const r=s["s-sn"];s.hidden=!1;for(const n of t)if(n!==s){if(n["s-hn"]!==s["s-hn"]||r!==""){if(n.nodeType===1&&(r===n.getAttribute("slot")||r===n["s-sn"])||n.nodeType===3&&r===n["s-sn"]){s.hidden=!0;break}}else if(n.nodeType===1||n.nodeType===3&&n.textContent.trim()!==""){s.hidden=!0;break}}}we(s)}},T=[],Ae=e=>{let t,s,r;for(const n of e.childNodes){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;const l=n["s-sn"];for(r=s.length-1;r>=0;r--)if(t=s[r],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==n["s-hn"]&&!_.experimentalSlotFixes)if(de(t,l)){let o=T.find(i=>i.$nodeToRelocate$===t);q=!0,t["s-sn"]=t["s-sn"]||l,o?(o.$nodeToRelocate$["s-sh"]=n["s-hn"],o.$slotRefNode$=n):(t["s-sh"]=n["s-hn"],T.push({$slotRefNode$:n,$nodeToRelocate$:t})),t["s-sr"]&&T.map(i=>{de(i.$nodeToRelocate$,t["s-sn"])&&(o=T.find(a=>a.$nodeToRelocate$===t),o&&!i.$slotRefNode$&&(i.$slotRefNode$=o.$slotRefNode$))})}else T.some(o=>o.$nodeToRelocate$===t)||T.push({$nodeToRelocate$:t})}n.nodeType===1&&Ae(n)}},de=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",_e=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_e)},L=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),ht=(e,t,s=!1)=>{var r,n,l,o;const i=e.$hostElement$,a=e.$cmpMeta$,$=e.$vnode$||H(null,null),c=lt(t)?t:J(null,null,t);if(R=i.tagName,a.$attrsToReflect$&&(c.$attrs$=c.$attrs$||{},a.$attrsToReflect$.map(([d,f])=>c.$attrs$[f]=i[d])),s&&c.$attrs$)for(const d of Object.keys(c.$attrs$))i.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&(c.$attrs$[d]=i[d]);c.$tag$=null,c.$flags$|=4,e.$vnode$=c,c.$elm$=$.$elm$=i.shadowRoot||i,w=i["s-sc"],N=(a.$flags$&1)!==0,M=i["s-cr"],q=!1,A($,c,s);{if(g.$flags$|=1,K){Ae(c.$elm$);for(const d of T){const f=d.$nodeToRelocate$;if(!f["s-ol"]){const u=m.createTextNode("");u["s-nr"]=f,L(f.parentNode,f["s-ol"]=u,f)}}for(const d of T){const f=d.$nodeToRelocate$,u=d.$slotRefNode$;if(u){const v=u.parentNode;let h=u.nextSibling;{let y=(r=f["s-ol"])==null?void 0:r.previousSibling;for(;y;){let p=(n=y["s-nr"])!=null?n:null;if(p&&p["s-sn"]===f["s-sn"]&&v===p.parentNode){for(p=p.nextSibling;p===f||p!=null&&p["s-sr"];)p=p==null?void 0:p.nextSibling;if(!p||!p["s-nr"]){h=p;break}}y=y.previousSibling}}(!h&&v!==f.parentNode||f.nextSibling!==h)&&f!==h&&(!f["s-hn"]&&f["s-ol"]&&(f["s-hn"]=f["s-ol"].parentNode.nodeName),L(v,f,h),f.nodeType===1&&(f.hidden=(l=f["s-ih"])!=null?l:!1)),f&&typeof u["s-rf"]=="function"&&u["s-rf"](f)}else f.nodeType===1&&(s&&(f["s-ih"]=(o=f.hidden)!=null?o:!1),f.hidden=!0)}}q&&we(c.$elm$),g.$flags$&=-2,T.length=0}M=void 0},Pe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},V=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Pe(e,e.$ancestorComponent$),Qe(()=>gt(e,t))},gt=(e,t)=>{const s=e.$hostElement$,r=E("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([o,i])=>G(n,o,i)),e.$queuedListeners$=void 0),l=G(n,"componentWillLoad")),r(),yt(l,()=>St(e,n,t))},yt=(e,t)=>mt(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",St=(e,t,s)=>U(exports,null,function*(){var r;const n=e.$hostElement$,l=E("update",e.$cmpMeta$.$tagName$),o=n["s-rc"];s&&dt(e);const i=E("render",e.$cmpMeta$.$tagName$);bt(e,t,n,s),o&&(o.map(a=>a()),n["s-rc"]=void 0),i(),l();{const a=(r=n["s-p"])!=null?r:[],$=()=>kt(e);a.length===0?$():(Promise.all(a).then($),e.$flags$|=4,a.length=0)}}),bt=(e,t,s,r)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,ht(e,t,r)}catch(n){b(n,e.$hostElement$)}return null},kt=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=E("postUpdate",t),n=e.$lazyInstance$,l=e.$ancestorComponent$;G(n,"componentDidRender"),e.$flags$&64?r():(e.$flags$|=64,Oe(s),r(),e.$onReadyResolve$(s),l||Re()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Q(()=>V(e,!1)),e.$flags$&=-517},Re=e=>{Oe(m.documentElement),Q(()=>Se(P,"appload",{detail:{namespace:qe}}))},G=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(r){b(r)}},Oe=e=>{var t;return e.classList.add((t=_.hydratedSelectorName)!=null?t:"hydrated")},Tt=(e,t)=>x(e).$instanceValues$.get(t),Et=(e,t,s,r)=>{const n=x(e);if(!n)throw new Error(`Couldn't find host element for "${r.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const l=n.$hostElement$,o=n.$instanceValues$.get(t),i=n.$flags$,a=n.$lazyInstance$;s=it(s,r.$members$[t][0]);const $=Number.isNaN(o)&&Number.isNaN(s),c=s!==o&&!$;if((!(i&8)||o===void 0)&&c&&(n.$instanceValues$.set(t,s),a)){if(r.$watchers$&&i&128){const d=r.$watchers$[t];d&&d.map(f=>{try{a[f](s,o,t)}catch(u){b(u,l)}})}(i&18)===2&&V(n,!1)}},je=(e,t,s)=>{var r,n;const l=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const o=Object.entries((r=t.$members$)!=null?r:{});if(o.map(([i,[a]])=>{(a&31||s&2&&a&32)&&Object.defineProperty(l,i,{get(){return Tt(this,i)},set($){Et(this,i,$,t)},configurable:!0,enumerable:!0})}),s&1){const i=new Map;l.attributeChangedCallback=function(a,$,c){g.jmp(()=>{var d;const f=i.get(a);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const u=x(this),v=u==null?void 0:u.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const h=u.$lazyInstance$,y=(d=t.$watchers$)==null?void 0:d[a];y==null||y.forEach(p=>{h[p]!=null&&h[p].call(h,c,$,a)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...o.filter(([a,$])=>$[0]&15).map(([a,$])=>{var c;const d=$[1]||a;return i.set(d,a),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([a,d])),d})]))}}return e},Lt=(e,t,s,r)=>U(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const a=We(s);if(a&&"then"in a){const c=rt();n=yield a,c()}else n=a;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,je(n,s,2),n.isProxied=!0);const $=E("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(n&&n.style){let a;typeof n.style=="string"&&(a=n.style);const $=be(s);if(!F.has($)){const c=E("registerStyles",s.$tagName$);ct($,a,!!(s.$flags$&1)),c()}}}const l=t.$ancestorComponent$,o=()=>V(t,!0);l&&l["s-rc"]?l["s-rc"].push(o):o()}),xt=e=>{},wt=e=>{if(!(g.$flags$&1)){const t=x(e),s=t.$cmpMeta$,r=E("connectedCallback",s.$tagName$);if(t.$flags$&1)Ue(e,t,s.$listeners$),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>xt());else{t.$flags$|=1,s.$flags$&12&&At(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Pe(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[l]])=>{if(l&31&&e.hasOwnProperty(n)){const o=e[n];delete e[n],e[n]=o}}),Lt(e,t,s)}r()}},At=e=>{const t=e["s-cr"]=m.createComment("");t["s-cn"]=!0,L(e,t,e.firstChild)},_t=e=>{},Pt=e=>U(exports,null,function*(){if(!(g.$flags$&1)){const t=x(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>_t())}}),Rt=(e,t={})=>{var s;const r=E(),n=[],l=t.exclude||[],o=P.customElements,i=m.head,a=i.querySelector("meta[charset]"),$=m.createElement("style"),c=[];let d,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(v=>{v[1].map(h=>{var y;const p={$flags$:h[0],$tagName$:h[1],$members$:h[2],$listeners$:h[3]};p.$flags$&4&&(u=!0),p.$members$=h[2],p.$listeners$=h[3],p.$attrsToReflect$=[],p.$watchers$=(y=h[4])!=null?y:{};const j=p.$tagName$,Ce=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,ze(k,p),p.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const k=x(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Ue(this,k,p.$listeners$)),d&&(clearTimeout(d),d=null),f?c.push(this):g.jmp(()=>wt(this))}disconnectedCallback(){g.jmp(()=>Pt(this))}componentOnReady(){return x(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!l.includes(j)&&!o.get(j)&&(n.push(j),o.define(j,je(Ce,p,1)))})}),n.length>0&&(u&&($.textContent+=ue),$.textContent+=n.sort()+Me,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(s=g.$nonce$)!=null?s:ge(m);v!=null&&$.setAttribute("nonce",v),i.insertBefore($,a?a.nextSibling:i.firstChild)}f=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>d=setTimeout(Re,30)),r()},Ot=(e,t)=>t,Ue=(e,t,s,r)=>{s&&s.map(([n,l,o])=>{const i=Ut(e,n),a=jt(t,o),$=Ct(n);g.ael(i,l,a,$),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>g.rel(i,l,a,$))})},jt=(e,t)=>s=>{var r;try{e.$flags$&256?(r=e.$lazyInstance$)==null||r[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s])}catch(n){b(n)}},Ut=(e,t)=>t&8?P:e,Ct=e=>Ge?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;exports.Fragment=Ot;exports.bootstrapLazy=Rt;exports.createEvent=$t;exports.getAssetPath=Ye;exports.getElement=me;exports.h=J;exports.promiseResolve=pe;exports.registerInstance=Be;