@everymatrix/casino-header-controller-nd 1.63.2 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoHamburgerMenuNd-C4zQY1Rz.js → CasinoHamburgerMenuNd-BxWLDWZ5.js} +49 -49
- package/components/{CasinoHamburgerMenuNd-DnRgxoEm.js → CasinoHamburgerMenuNd-CeWCMWYl.js} +44 -44
- package/components/{CasinoHamburgerMenuNd-C2U2lDM0.cjs → CasinoHamburgerMenuNd-O-PRlnMz.cjs} +1 -1
- package/components/CasinoHeaderControllerNd-BcNNYIr-.cjs +1 -0
- package/components/{CasinoHeaderControllerNd-D9_tF2bZ.js → CasinoHeaderControllerNd-CF2vGsRQ.js} +264 -264
- package/components/{CasinoHeaderControllerNd-DIGHkFBp.js → CasinoHeaderControllerNd-DF5K0BL3.js} +236 -236
- package/components/{PlayerAccountBalanceModalNd-C5oBU2Bt.js → PlayerAccountBalanceModalNd-C92U3Fix.js} +88 -88
- package/components/{PlayerAccountBalanceModalNd-L1Wi3gul.js → PlayerAccountBalanceModalNd-Cgj4hIFz.js} +90 -90
- package/components/{PlayerAccountBalanceModalNd-DfYDbSNy.cjs → PlayerAccountBalanceModalNd-DkPeXKZX.cjs} +2 -2
- package/components/{PlayerDeposit-BM41EGHl.js → PlayerDeposit-BuNxS4QP.js} +22 -22
- package/components/PlayerDeposit-D44C3eN3.cjs +1 -0
- package/components/{PlayerDeposit-B_HRtE2U.js → PlayerDeposit-DM587AOh.js} +22 -22
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-B5TUPoPs.js → gamification-dropdown-8eb8a896-B80HjrXs.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-CNDebAQo.js → gamification-dropdown-8eb8a896-Dpy7kYRl.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-B8CcqKs3.cjs → gamification-dropdown-8eb8a896-wUq7QkNM.cjs} +1 -1
- package/stencil/{gamification-dropdown-DXlyb6GA.js → gamification-dropdown-DJjY7-I6.js} +1 -1
- package/stencil/{gamification-dropdown-Bg0tW7ha.cjs → gamification-dropdown-DkDy6E4e.cjs} +1 -1
- package/stencil/{gamification-dropdown-7bHznlgt.js → gamification-dropdown-N2ywJkem.js} +1 -1
- package/stencil/{gamification-dropdown_4-Blt8-SSN.cjs → gamification-dropdown_4-B2a2BjCo.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-C304wJye.js → gamification-dropdown_4-CcWOoutw.js} +4 -4
- package/stencil/{gamification-dropdown_4-BskNa0nU.js → gamification-dropdown_4-CmDM3hBS.js} +4 -4
- package/stencil/{index-71b1bdfa-BcIWqICi.js → index-71b1bdfa-BWeAgaw2.js} +4 -4
- package/stencil/{index-71b1bdfa-DJwBo2rv.cjs → index-71b1bdfa-BeszNvNP.cjs} +1 -1
- package/stencil/{index-71b1bdfa-BNR9dJmZ.js → index-71b1bdfa-DBUT8z-D.js} +4 -4
- package/stencil/{player-elevate-card-D_EV-YVW.js → player-elevate-card-B70rn287.js} +2 -2
- package/stencil/{player-elevate-card-WtXwQ6BK.js → player-elevate-card-DqZR4w--.js} +2 -2
- package/stencil/{player-elevate-card-Da18eACv.cjs → player-elevate-card-W6LcGGe8.cjs} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-C8y5xd3m.js → player-elevate-card-items-66be34fb-D7zHppoa.js} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-DARKYMdQ.cjs → player-elevate-card-items-66be34fb-DBIZuvGZ.cjs} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-Bl4Mdtm2.js → player-elevate-card-items-66be34fb-aPLlnN0e.js} +1 -1
- package/stencil/{player-elevate-pointcard-DEGlZBo6.js → player-elevate-pointcard-CBapQeNI.js} +2 -2
- package/stencil/{player-elevate-pointcard-DGdQLOFe.js → player-elevate-pointcard-DREgIjCm.js} +2 -2
- package/stencil/{player-elevate-pointcard-Akuofz_v.cjs → player-elevate-pointcard-DwDhlXwq.cjs} +1 -1
- package/stencil/{player-rakeback-card-CNHOtnA1.cjs → player-rakeback-card-B0P7gHIA.cjs} +1 -1
- package/stencil/{player-rakeback-card-CMKK-24q.js → player-rakeback-card-tP823Fs8.js} +1 -1
- package/stencil/{player-rakeback-card-CHzbUYFI.js → player-rakeback-card-z_ugBu0q.js} +1 -1
- package/components/CasinoHeaderControllerNd-BkrJSdpA.cjs +0 -1
- package/components/PlayerDeposit-ClC_cCaC.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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,n,a)=>n in r?at(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,Ue=(r,n)=>{for(var a in n||(n={}))it.call(n,a)&&ze(r,a,n[a]);if(He)for(var a of He(n))lt.call(n,a)&&ze(r,a,n[a]);return r},Pe=(r,n)=>ot(r,rt(n));var Xe=(r,n,a)=>new Promise((l,u)=>{var d=y=>{try{h(a.next(y))}catch(v){u(v)}},g=y=>{try{h(a.throw(y))}catch(v){u(v)}},h=y=>y.done?l(y.value):Promise.resolve(y.value).then(d,g);h((a=a.apply(r,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenuNd-
|
|
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,n,a)=>n in r?at(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,Ue=(r,n)=>{for(var a in n||(n={}))it.call(n,a)&&ze(r,a,n[a]);if(He)for(var a of He(n))lt.call(n,a)&&ze(r,a,n[a]);return r},Pe=(r,n)=>ot(r,rt(n));var Xe=(r,n,a)=>new Promise((l,u)=>{var d=y=>{try{h(a.next(y))}catch(v){u(v)}},g=y=>{try{h(a.throw(y))}catch(v){u(v)}},h=y=>y.done?l(y.value):Promise.resolve(y.value).then(d,g);h((a=a.apply(r,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenuNd-O-PRlnMz.cjs");function Ge(r,n){t.addMessages(r,n)}function st(r){t.$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
2
|
* eventsource.js
|
|
3
3
|
* Available under MIT License (MIT)
|
|
4
4
|
* https://github.com/Yaffle/EventSource/
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) 2021 Jason Wilson
|
|
12
12
|
* Released under MIT license
|
|
13
|
-
*/var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(n){return Math.round(n)},Ve=function(n){return Math.pow(10,n)},ut=function(n,a){return $e(n/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(r,n){var a=this;if(!(a instanceof ee))return new ee(r,n);var l=Object.assign({},dt,n),u=Ve(l.precision),d=Ee(r,l);a.intValue=d,a.value=d/u,l.increment=l.increment||1/u,l.useVedic?l.groups=pt:l.groups=ft,this.s=l,this.p=u}function Ee(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=0,u=n.decimal,d=n.errorOnInvalid,g=n.precision,h=n.fromCents,y=Ve(g),v=typeof r=="number",_=r instanceof ee;if(_&&h)return r.intValue;if(v||_)l=_?r.value:r;else if(typeof r=="string"){var M=new RegExp("[^-\\d"+u+"]","g"),D=new RegExp("\\"+u,"g");l=r.replace(/\((.*)\)/,"-$1").replace(M,"").replace(D,"."),l=l||0}else{if(d)throw Error("Invalid Input");l=0}return h||(l*=y,l=l.toFixed(4)),a?$e(l):l}function ht(r,n){var a=n.pattern,l=n.negativePattern,u=n.symbol,d=n.separator,g=n.decimal,h=n.groups,y=(""+r).replace(/^-/,"").split("."),v=y[0],_=y[1];return(r.value>=0?a:l).replace("!",u).replace("#",v.replace(h,"$1"+d)+(_?g+_:""))}ee.prototype={add:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a+=Ee(n,l))/(l.fromCents?1:u),l)},subtract:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a-=Ee(n,l))/(l.fromCents?1:u),l)},multiply:function(n){var a=this.intValue,l=this.s;return ee((a*=n)/(l.fromCents?1:Ve(l.precision)),l)},divide:function(n){var a=this.intValue,l=this.s;return ee(a/=Ee(n,l,!1),l)},distribute:function(n){for(var a=this.intValue,l=this.p,u=this.s,d=[],g=Math[a>=0?"floor":"ceil"](a/n),h=Math.abs(a-g*n),y=u.fromCents?1:l;n!==0;n--){var v=ee(g/y,u);h-- >0&&(v=v[a>=0?"add":"subtract"](1/y)),d.push(v)}return d},dollars:function(){return~~this.value},cents:function(){var n=this.intValue,a=this.p;return~~(n%a)},format:function(n){var a=this.s;return typeof n=="function"?n(this,a):a.format(this,Object.assign({},a,n))},toString:function(){var n=this.intValue,a=this.p,l=this.s;return ut(n/a,l.increment).toFixed(l.precision)},toJSON:function(){return this.value}};function mt(r){t.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,n,a){const l=r.slice();return l[50]=n[a],l}function We(r,n,a){const l=r.slice();return l[53]=n[a],l}function gt(r){let n,a,l=(r[1].Total?r[8](r[1].Total[0].amount):"0")+"",u,d,g,h,y,v,_,M,D,O,F,R,b=r[4]&&Ye(r);return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),g=t.text(r[5]),h=t.space(),y=t.element("span"),v=t.svg_element("svg"),_=t.svg_element("path"),D=t.space(),b&&b.c(),O=t.empty(),t.attr(_,"id","arrow"),t.attr(_,"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"),t.attr(_,"transform","translate(-274.511 -441.088)"),t.attr(_,"fill","#d1d1d1"),t.attr(v,"xmlns","http://www.w3.org/2000/svg"),t.attr(v,"width","14"),t.attr(v,"height","6.835"),t.attr(v,"viewBox","0 0 14 6.835"),t.attr(y,"class",M=r[3]?"TriangleActive":"TriangleInactive"),t.attr(n,"class","BalanceValue")},m(T,j){t.insert(T,n,j),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,g),t.append(n,h),t.append(n,y),t.append(y,v),t.append(v,_),t.insert(T,D,j),b&&b.m(T,j),t.insert(T,O,j),F||(R=t.listen(n,"click",r[25]),F=!0)},p(T,j){j[0]&2&&l!==(l=(T[1].Total?T[8](T[1].Total[0].amount):"0")+"")&&t.set_data(u,l),j[0]&32&&t.set_data(g,T[5]),j[0]&8&&M!==(M=T[3]?"TriangleActive":"TriangleInactive")&&t.attr(y,"class",M),T[4]?b?b.p(T,j):(b=Ye(T),b.c(),b.m(O.parentNode,O)):b&&(b.d(1),b=null)},d(T){T&&(t.detach(n),t.detach(D),t.detach(O)),b&&b.d(T),F=!1,R()}}}function yt(r){let n,a=r[6]("Loading")+"",l;return{c(){n=t.element("p"),l=t.text(a),t.attr(n,"class","Loading")},m(u,d){t.insert(u,n,d),t.append(n,l)},p(u,d){d[0]&64&&a!==(a=u[6]("Loading")+"")&&t.set_data(l,a)},d(u){u&&t.detach(n)}}}function Ye(r){let n,a,l,u,d,g,h,y,v=r[6]("Title")+"",_,M,D,O,F,R,b=r[6]("DepositButton")+"",T,j,L,I,te,Q,q=t.ensure_array_like(Object.keys(r[1])),k=[];for(let S=0;S<q.length;S+=1)k[S]=Qe(Ke(r,q,S));return{c(){n=t.element("div"),a=t.element("div"),u=t.space(),d=t.element("div"),g=t.element("div"),h=t.element("div"),y=t.element("p"),_=t.text(v),M=t.space(),D=t.element("div");for(let S=0;S<k.length;S+=1)k[S].c();O=t.space(),F=t.element("div"),R=t.element("button"),T=t.text(b),t.attr(a,"class",l="BalanceModalClose "+(r[3]?"Open":"")),t.attr(y,"class","BalanceModalTitle"),t.attr(h,"class","BalanceModalHeader"),t.attr(D,"class","BalanceModalBody"),t.attr(R,"class","BalanceModalAction"),t.attr(F,"class","BalanceModalFooter"),t.attr(g,"class",j="ModalContent "+(r[3]?"Open":"")),t.attr(d,"class",L="BalanceModal "+(r[3]?"Open":"")),t.attr(n,"class",I="BalanceModalWrapper "+(r[3]?"Open":""))},m(S,V){t.insert(S,n,V),t.append(n,a),t.append(n,u),t.append(n,d),t.append(d,g),t.append(g,h),t.append(h,y),t.append(y,_),t.append(g,M),t.append(g,D);for(let x=0;x<k.length;x+=1)k[x]&&k[x].m(D,null);t.append(g,O),t.append(g,F),t.append(F,R),t.append(R,T),te||(Q=[t.listen(a,"click",r[26]),t.listen(R,"click",r[27])],te=!0)},p(S,V){if(V[0]&8&&l!==(l="BalanceModalClose "+(S[3]?"Open":""))&&t.attr(a,"class",l),V[0]&64&&v!==(v=S[6]("Title")+"")&&t.set_data(_,v),V[0]&354){q=t.ensure_array_like(Object.keys(S[1]));let x;for(x=0;x<q.length;x+=1){const f=Ke(S,q,x);k[x]?k[x].p(f,V):(k[x]=Qe(f),k[x].c(),k[x].m(D,null))}for(;x<k.length;x+=1)k[x].d(1);k.length=q.length}V[0]&64&&b!==(b=S[6]("DepositButton")+"")&&t.set_data(T,b),V[0]&8&&j!==(j="ModalContent "+(S[3]?"Open":""))&&t.attr(g,"class",j),V[0]&8&&L!==(L="BalanceModal "+(S[3]?"Open":""))&&t.attr(d,"class",L),V[0]&8&&I!==(I="BalanceModalWrapper "+(S[3]?"Open":""))&&t.attr(n,"class",I)},d(S){S&&t.detach(n),t.destroy_each(k,S),te=!1,t.run_all(Q)}}}function Je(r){let n,a,l=r[6](r[50])+"",u,d,g=(r[53].productType?r[6](r[53].productType):"")+"",h,y,v,_,M=(r[53].amount?r[8](r[53].amount):"0")+"",D,O,F,R;return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),h=t.text(g),y=t.space(),v=t.element("p"),_=t.element("span"),D=t.text(M),O=t.space(),F=t.element("span"),R=t.text(r[5]),t.attr(a,"class","BalanceModalText"),t.attr(_,"class","BalanceModalAmount"),t.attr(F,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(n,"class","BalanceModalRowLine")},m(b,T){t.insert(b,n,T),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,h),t.append(n,y),t.append(n,v),t.append(v,_),t.append(_,D),t.append(v,O),t.append(v,F),t.append(F,R)},p(b,T){T[0]&66&&l!==(l=b[6](b[50])+"")&&t.set_data(u,l),T[0]&66&&g!==(g=(b[53].productType?b[6](b[53].productType):"")+"")&&t.set_data(h,g),T[0]&2&&M!==(M=(b[53].amount?b[8](b[53].amount):"0")+"")&&t.set_data(D,M),T[0]&32&&t.set_data(R,b[5])},d(b){b&&t.detach(n)}}}function Qe(r){let n,a,l=t.ensure_array_like(r[1][r[50]]),u=[];for(let d=0;d<l.length;d+=1)u[d]=Je(We(r,l,d));return{c(){n=t.element("div");for(let d=0;d<u.length;d+=1)u[d].c();a=t.space(),t.attr(n,"class","BalanceModalRowBoth")},m(d,g){t.insert(d,n,g);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(n,null);t.append(n,a)},p(d,g){if(g[0]&354){l=t.ensure_array_like(d[1][d[50]]);let h;for(h=0;h<l.length;h+=1){const y=We(d,l,h);u[h]?u[h].p(y,g):(u[h]=Je(y),u[h].c(),u[h].m(n,a))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(d){d&&t.detach(n),t.destroy_each(u,d)}}}function Ze(r){let n,a,l;return{c(){n=t.element("div"),t.attr(n,"class","ShowBalanceModalOverlay")},m(u,d){t.insert(u,n,d),a||(l=t.listen(n,"click",r[28]),a=!0)},p:t.noop,d(u){u&&t.detach(n),a=!1,l()}}}function vt(r){let n,a,l;function u(y,v){return y[2]?yt:gt}let d=u(r),g=d(r),h=r[4]&&Ze(r);return{c(){n=t.element("div"),a=t.element("div"),g.c(),l=t.space(),h&&h.c(),t.attr(a,"class","ShowBalance")},m(y,v){t.insert(y,n,v),t.append(n,a),g.m(a,null),t.append(n,l),h&&h.m(n,null),r[29](n)},p(y,v){d===(d=u(y))&&g?g.p(y,v):(g.d(1),g=d(y),g&&(g.c(),g.m(a,null))),y[4]?h?h.p(y,v):(h=Ze(y),h.c(),h.m(n,null)):h&&(h.d(1),h=null)},i:t.noop,o:t.noop,d(y){y&&t.detach(n),g.d(),h&&h.d(),r[29](null)}}}function wt(r,n,a){let l;t.component_subscribe(r,t.$format,e=>a(6,l=e));let{userid:u=""}=n,{session:d=""}=n,{endpoint:g=""}=n,{lang:h="en"}=n,{mbsource:y}=n,{clientstyling:v=""}=n,{clientstylingurl:_=""}=n,{translationurl:M=""}=n,{customlocaleidentifier:D=""}=n,{gmversion:O="gm16"}=n,{displaybalanceoption:F="All"}=n,{totalcalculationmode:R="totalCashAmount"}=n,{currencyseparator:b=""}=n,{currencydecimal:T=""}=n,{currencyprecision:j=""}=n,L,I,te,Q,q=!1,k="",S=[],V,x=!1;const f={},le=["totalCashAmount","totalRealAmount"],we=()=>{fetch(M).then(e=>e.json()).then(e=>Object.keys(e).forEach(i=>Ge(i,e[i]))).catch(e=>console.log(e))};Object.keys(qe).forEach(e=>Ge(e,qe[e]));const se=e=>{switch(e){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),a(4,q=!0),setTimeout(()=>a(3,te=!0),150);break;case"closebalance":a(3,te=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{a(4,q=!1)},150);break}},he=()=>{if(D.includes(h))return D},ne=e=>D?new Intl.NumberFormat(he(),{useGrouping:!0}).format(e):b&&T?ee(e,{separator:b,decimal:T,symbol:"",precision:parseInt(j||"2",10)}).format():ee(e,{separator:".",decimal:",",symbol:"",precision:parseInt(j||"2",10)}).format(),ce=()=>Xe(this,null,function*(){var i,s,o;a(2,L=!0);const e=new URL(`${g}/v1/player/${u}/account`);try{const m=yield fetch(e,{method:"GET",headers:{"X-SessionID":d}}),p=yield m.json();if(m.ok)window.postMessage({type:"BalancedFetched"},window.location.href),S=p.items,a(5,k=(i=S.find(c=>c.displayName==="Casino"))==null?void 0:i.currency),a(1,f.Total=[{amount:p.totalAmount[k]}],f),a(1,f.Real=[{amount:(s=S.find(c=>c.displayName==="Casino"))==null?void 0:s.balanceAmount}],f),a(1,f.Bonus=[{amount:(o=S.find(c=>c.displayName==="UBS"))==null?void 0:o.balanceAmount}],f);else throw new Error("Failed to fetch balance data !")}catch(m){console.log("Balance error: ",m)}finally{a(2,L=!1)}}),ue=()=>{a(2,L=!0);const e=new URL(`${g}/v2/player/${u}/balance`),i=new Headers;i.append("X-SessionID",d),fetch(e,{method:"GET",headers:i}).then(o=>o.json()).then(o=>{o[R]||a(10,R=le[0]);const m=o.items.find(c=>c.type==="Real"&&c.walletAccountType==="Ordinary");if(a(5,k=m.currency),x=!!m.productType,a(1,f.Total=[{amount:0}],f),a(1,f.Real=[],f),a(1,f.Bonus=[],f),a(1,f.Credit=[],f),!x){V={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(1,f.Total[0].amount=o[R][k],f);for(const c of o.items)switch(c.type){case"Bonus":f.Bonus.length===0?f.Bonus.push({amount:c.amount}):a(1,f.Bonus[0].amount+=c.amount,f);break;case"Real":if(c.creditLine&&f.Credit.length===0&&f.Credit.push({amount:c.creditLine}),R==="totalRealAmount")continue;f.Real.length===0?f.Real.push({amount:c.amount}):a(1,f.Real[0].amount+=c.amount,f);break}for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1);return}V={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let p=o.items;F&&F!=="All"&&(p=o.items.filter(c=>c.productType===F));for(const c of p){let C;switch(c.type){case"Bonus":C=f.Bonus.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Bonus[C].amount+=c.amount,f):f.Bonus.push({amount:c.amount,productType:c.productType});break;case"Real":c.creditLine&&f.Credit.push({amount:c.creditLine,productType:c.productType}),C=f.Real.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Real[C].amount+=c.amount,f):f.Real.push({amount:c.amount,productType:c.productType});break}}Ce();for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1)}).catch(o=>{throw a(2,L=!1),new Error("Failed to fetch balance data !")})},fe=()=>{if(Q&&Q.close(),d.length<1)return;let e,i;switch(O){case"gm16":e=new URL(`${g}/v2/player/${u}/information/updates`),i=m=>Me(m);break;case"gmcore":e=new URL(`${g}/v1/player/${u}/balance/updates`),i=m=>be(m);break}const s={accept:"text/event-stream","X-SessionId":d},o=new ct.EventSourcePolyfill(e,{headers:s});Q=o,o.addEventListener("message",i)},Z=e=>{let i;try{i=JSON.parse(e)}catch(s){console.log("Balance stream failed: ",s);return}return i},be=e=>{var m,p;const i=Z(e.data);if(!i){fe();return}let s="0";const o=i.balanceChange;S=S.map(c=>(o&&o[c.id]&&(c=Pe(Ue({},c),{balanceAmount:o[c.id].afterAmount})),s=(parseFloat(c==null?void 0:c.balanceAmount)+parseFloat(s)).toString(),c)),a(1,f.Real=[{amount:(m=S[0])==null?void 0:m.balanceAmount}],f),a(1,f.Bonus=[{amount:(p=S[1])==null?void 0:p.balanceAmount}],f),a(1,f.Total=[{amount:Number(s)}],f)},me=(e,i,s)=>{let o=null;switch(s.walletAccountType){case"Ordinary":s.afterAmount!==s.affectedAmount&&(i.lastOrdinaryAfterAmount=s.afterAmount,i.showCreditLineAfterAmount||(o=s.afterAmount));break;case"CreditLine":s.afterAmount!==0?(o=s.afterAmount,i.showCreditLineAfterAmount=!0):(o=i.lastOrdinaryAfterAmount,i.showCreditLineAfterAmount=!1);break;default:o=s.afterAmount}return o===null?e:o},Ce=()=>{switch(R){case"totalCashAmount":let e=0;for(const s of["Real","Bonus"])for(const o of f[s])e+=Math.max(o.amount,0);a(1,f.Total[0].amount=e,f);break;case"totalRealAmount":if(!x)return;let i=0;for(const s of f.Real)i+=s.amount;a(1,f.Total[0].amount=i,f)}},Me=e=>{const i=Z(e.data);if(!i){fe();return}if(i.type!=="BALANCE_UPDATE_V2")return;const s=i.body.balanceChange;for(const[o,m]of Object.entries(s))if(R==="totalRealAmount"&&o==="Real"&&!x&&a(1,f.Total[0].amount=me(f.Total[0].amount,V,m),f),!!f[o])for(const p of f[o]){if(!x){p.amount=o==="Real"?me(p.amount,V,m):m.afterAmount;continue}m.productType===p.productType&&(p.amount=o==="Real"?me(p.amount,V[p.productType],m):m.afterAmount)}Ce()},_e=()=>{se("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},De=()=>{le.includes(R)||(console.error(`Unsupported value ('${R}') for totalcalculationmode parameter. Only the following values are supported ${le}. Using default value ('${le[0]}').`),a(10,R=le[0]))},Be=()=>{switch(st(h),De(),O){case"gmcore":ce();break;case"gm16":ue();break;default:throw Error(`Invalid apiversion attribute: ${O}`)}},ge=e=>e.data&&e.data.type==="LogoutSuccessfull"&&Q.close(),de=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};t.onMount(()=>(window.addEventListener("message",ge,!1),()=>{window.removeEventListener("message",ge),Q&&Q.close()}));const K=()=>se("balance"),Oe=()=>se("closebalance"),Le=()=>_e(),ke=()=>se("closeBalance");function Ae(e){t.binding_callbacks[e?"unshift":"push"](()=>{I=e,a(0,I)})}return r.$$set=e=>{"userid"in e&&a(11,u=e.userid),"session"in e&&a(12,d=e.session),"endpoint"in e&&a(13,g=e.endpoint),"lang"in e&&a(14,h=e.lang),"mbsource"in e&&a(15,y=e.mbsource),"clientstyling"in e&&a(16,v=e.clientstyling),"clientstylingurl"in e&&a(17,_=e.clientstylingurl),"translationurl"in e&&a(18,M=e.translationurl),"customlocaleidentifier"in e&&a(19,D=e.customlocaleidentifier),"gmversion"in e&&a(20,O=e.gmversion),"displaybalanceoption"in e&&a(21,F=e.displaybalanceoption),"totalcalculationmode"in e&&a(10,R=e.totalcalculationmode),"currencyseparator"in e&&a(22,b=e.currencyseparator),"currencydecimal"in e&&a(23,T=e.currencydecimal),"currencyprecision"in e&&a(24,j=e.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&16384&&h&&he(),r.$$.dirty[0]&3176448&&g&&u&&d&&h&&O&&F&&Be(),r.$$.dirty[0]&1062912&&g&&u&&d&&O&&fe(),r.$$.dirty[0]&262144&&M&&we(),r.$$.dirty[0]&2&&f.Total&&de(),r.$$.dirty[0]&65537&&v&&I&&t.setClientStyling(I,v),r.$$.dirty[0]&131073&&_&&I&&t.setClientStylingURL(I,_),r.$$.dirty[0]&32769&&y&&I&&t.setStreamStyling(I,`${y}.Style`)},[I,f,L,te,q,k,l,se,ne,_e,R,u,d,g,h,y,v,_,M,D,O,F,b,T,j,K,Oe,Le,ke,Ae]}class et extends t.SvelteComponent{constructor(n){super(),t.init(this,n,wt,vt,t.safe_not_equal,{userid:11,session:12,endpoint:13,lang:14,mbsource:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:20,displaybalanceoption:21,totalcalculationmode:10,currencyseparator:22,currencydecimal:23,currencyprecision:24},mt,[-1,-1])}get userid(){return this.$$.ctx[11]}set userid(n){this.$$set({userid:n}),t.flush()}get session(){return this.$$.ctx[12]}set session(n){this.$$set({session:n}),t.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),t.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(n){this.$$set({customlocaleidentifier:n}),t.flush()}get gmversion(){return this.$$.ctx[20]}set gmversion(n){this.$$set({gmversion:n}),t.flush()}get displaybalanceoption(){return this.$$.ctx[21]}set displaybalanceoption(n){this.$$set({displaybalanceoption:n}),t.flush()}get totalcalculationmode(){return this.$$.ctx[10]}set totalcalculationmode(n){this.$$set({totalcalculationmode:n}),t.flush()}get currencyseparator(){return this.$$.ctx[22]}set currencyseparator(n){this.$$set({currencyseparator:n}),t.flush()}get currencydecimal(){return this.$$.ctx[23]}set currencydecimal(n){this.$$set({currencydecimal:n}),t.flush()}get currencyprecision(){return this.$$.ctx[24]}set currencyprecision(n){this.$$set({currencyprecision:n}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
|
|
13
|
+
*/var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(n){return Math.round(n)},Ve=function(n){return Math.pow(10,n)},ut=function(n,a){return $e(n/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(r,n){var a=this;if(!(a instanceof ee))return new ee(r,n);var l=Object.assign({},dt,n),u=Ve(l.precision),d=Ee(r,l);a.intValue=d,a.value=d/u,l.increment=l.increment||1/u,l.useVedic?l.groups=pt:l.groups=ft,this.s=l,this.p=u}function Ee(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=0,u=n.decimal,d=n.errorOnInvalid,g=n.precision,h=n.fromCents,y=Ve(g),v=typeof r=="number",_=r instanceof ee;if(_&&h)return r.intValue;if(v||_)l=_?r.value:r;else if(typeof r=="string"){var M=new RegExp("[^-\\d"+u+"]","g"),D=new RegExp("\\"+u,"g");l=r.replace(/\((.*)\)/,"-$1").replace(M,"").replace(D,"."),l=l||0}else{if(d)throw Error("Invalid Input");l=0}return h||(l*=y,l=l.toFixed(4)),a?$e(l):l}function ht(r,n){var a=n.pattern,l=n.negativePattern,u=n.symbol,d=n.separator,g=n.decimal,h=n.groups,y=(""+r).replace(/^-/,"").split("."),v=y[0],_=y[1];return(r.value>=0?a:l).replace("!",u).replace("#",v.replace(h,"$1"+d)+(_?g+_:""))}ee.prototype={add:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a+=Ee(n,l))/(l.fromCents?1:u),l)},subtract:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a-=Ee(n,l))/(l.fromCents?1:u),l)},multiply:function(n){var a=this.intValue,l=this.s;return ee((a*=n)/(l.fromCents?1:Ve(l.precision)),l)},divide:function(n){var a=this.intValue,l=this.s;return ee(a/=Ee(n,l,!1),l)},distribute:function(n){for(var a=this.intValue,l=this.p,u=this.s,d=[],g=Math[a>=0?"floor":"ceil"](a/n),h=Math.abs(a-g*n),y=u.fromCents?1:l;n!==0;n--){var v=ee(g/y,u);h-- >0&&(v=v[a>=0?"add":"subtract"](1/y)),d.push(v)}return d},dollars:function(){return~~this.value},cents:function(){var n=this.intValue,a=this.p;return~~(n%a)},format:function(n){var a=this.s;return typeof n=="function"?n(this,a):a.format(this,Object.assign({},a,n))},toString:function(){var n=this.intValue,a=this.p,l=this.s;return ut(n/a,l.increment).toFixed(l.precision)},toJSON:function(){return this.value}};function mt(r){t.append_styles(r,"svelte-138w7kz",'*,*::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, #22B04E));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,n,a){const l=r.slice();return l[50]=n[a],l}function We(r,n,a){const l=r.slice();return l[53]=n[a],l}function gt(r){let n,a,l=(r[1].Total?r[8](r[1].Total[0].amount):"0")+"",u,d,g,h,y,v,_,M,D,O,F,R,b=r[4]&&Ye(r);return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),g=t.text(r[5]),h=t.space(),y=t.element("span"),v=t.svg_element("svg"),_=t.svg_element("path"),D=t.space(),b&&b.c(),O=t.empty(),t.attr(_,"id","arrow"),t.attr(_,"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"),t.attr(_,"transform","translate(-274.511 -441.088)"),t.attr(_,"fill","#d1d1d1"),t.attr(v,"xmlns","http://www.w3.org/2000/svg"),t.attr(v,"width","14"),t.attr(v,"height","6.835"),t.attr(v,"viewBox","0 0 14 6.835"),t.attr(y,"class",M=r[3]?"TriangleActive":"TriangleInactive"),t.attr(n,"class","BalanceValue")},m(T,j){t.insert(T,n,j),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,g),t.append(n,h),t.append(n,y),t.append(y,v),t.append(v,_),t.insert(T,D,j),b&&b.m(T,j),t.insert(T,O,j),F||(R=t.listen(n,"click",r[25]),F=!0)},p(T,j){j[0]&2&&l!==(l=(T[1].Total?T[8](T[1].Total[0].amount):"0")+"")&&t.set_data(u,l),j[0]&32&&t.set_data(g,T[5]),j[0]&8&&M!==(M=T[3]?"TriangleActive":"TriangleInactive")&&t.attr(y,"class",M),T[4]?b?b.p(T,j):(b=Ye(T),b.c(),b.m(O.parentNode,O)):b&&(b.d(1),b=null)},d(T){T&&(t.detach(n),t.detach(D),t.detach(O)),b&&b.d(T),F=!1,R()}}}function yt(r){let n,a=r[6]("Loading")+"",l;return{c(){n=t.element("p"),l=t.text(a),t.attr(n,"class","Loading")},m(u,d){t.insert(u,n,d),t.append(n,l)},p(u,d){d[0]&64&&a!==(a=u[6]("Loading")+"")&&t.set_data(l,a)},d(u){u&&t.detach(n)}}}function Ye(r){let n,a,l,u,d,g,h,y,v=r[6]("Title")+"",_,M,D,O,F,R,b=r[6]("DepositButton")+"",T,j,L,I,te,Q,q=t.ensure_array_like(Object.keys(r[1])),k=[];for(let S=0;S<q.length;S+=1)k[S]=Qe(Ke(r,q,S));return{c(){n=t.element("div"),a=t.element("div"),u=t.space(),d=t.element("div"),g=t.element("div"),h=t.element("div"),y=t.element("p"),_=t.text(v),M=t.space(),D=t.element("div");for(let S=0;S<k.length;S+=1)k[S].c();O=t.space(),F=t.element("div"),R=t.element("button"),T=t.text(b),t.attr(a,"class",l="BalanceModalClose "+(r[3]?"Open":"")),t.attr(y,"class","BalanceModalTitle"),t.attr(h,"class","BalanceModalHeader"),t.attr(D,"class","BalanceModalBody"),t.attr(R,"class","BalanceModalAction"),t.attr(F,"class","BalanceModalFooter"),t.attr(g,"class",j="ModalContent "+(r[3]?"Open":"")),t.attr(d,"class",L="BalanceModal "+(r[3]?"Open":"")),t.attr(n,"class",I="BalanceModalWrapper "+(r[3]?"Open":""))},m(S,V){t.insert(S,n,V),t.append(n,a),t.append(n,u),t.append(n,d),t.append(d,g),t.append(g,h),t.append(h,y),t.append(y,_),t.append(g,M),t.append(g,D);for(let x=0;x<k.length;x+=1)k[x]&&k[x].m(D,null);t.append(g,O),t.append(g,F),t.append(F,R),t.append(R,T),te||(Q=[t.listen(a,"click",r[26]),t.listen(R,"click",r[27])],te=!0)},p(S,V){if(V[0]&8&&l!==(l="BalanceModalClose "+(S[3]?"Open":""))&&t.attr(a,"class",l),V[0]&64&&v!==(v=S[6]("Title")+"")&&t.set_data(_,v),V[0]&354){q=t.ensure_array_like(Object.keys(S[1]));let x;for(x=0;x<q.length;x+=1){const f=Ke(S,q,x);k[x]?k[x].p(f,V):(k[x]=Qe(f),k[x].c(),k[x].m(D,null))}for(;x<k.length;x+=1)k[x].d(1);k.length=q.length}V[0]&64&&b!==(b=S[6]("DepositButton")+"")&&t.set_data(T,b),V[0]&8&&j!==(j="ModalContent "+(S[3]?"Open":""))&&t.attr(g,"class",j),V[0]&8&&L!==(L="BalanceModal "+(S[3]?"Open":""))&&t.attr(d,"class",L),V[0]&8&&I!==(I="BalanceModalWrapper "+(S[3]?"Open":""))&&t.attr(n,"class",I)},d(S){S&&t.detach(n),t.destroy_each(k,S),te=!1,t.run_all(Q)}}}function Je(r){let n,a,l=r[6](r[50])+"",u,d,g=(r[53].productType?r[6](r[53].productType):"")+"",h,y,v,_,M=(r[53].amount?r[8](r[53].amount):"0")+"",D,O,F,R;return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),h=t.text(g),y=t.space(),v=t.element("p"),_=t.element("span"),D=t.text(M),O=t.space(),F=t.element("span"),R=t.text(r[5]),t.attr(a,"class","BalanceModalText"),t.attr(_,"class","BalanceModalAmount"),t.attr(F,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(n,"class","BalanceModalRowLine")},m(b,T){t.insert(b,n,T),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,h),t.append(n,y),t.append(n,v),t.append(v,_),t.append(_,D),t.append(v,O),t.append(v,F),t.append(F,R)},p(b,T){T[0]&66&&l!==(l=b[6](b[50])+"")&&t.set_data(u,l),T[0]&66&&g!==(g=(b[53].productType?b[6](b[53].productType):"")+"")&&t.set_data(h,g),T[0]&2&&M!==(M=(b[53].amount?b[8](b[53].amount):"0")+"")&&t.set_data(D,M),T[0]&32&&t.set_data(R,b[5])},d(b){b&&t.detach(n)}}}function Qe(r){let n,a,l=t.ensure_array_like(r[1][r[50]]),u=[];for(let d=0;d<l.length;d+=1)u[d]=Je(We(r,l,d));return{c(){n=t.element("div");for(let d=0;d<u.length;d+=1)u[d].c();a=t.space(),t.attr(n,"class","BalanceModalRowBoth")},m(d,g){t.insert(d,n,g);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(n,null);t.append(n,a)},p(d,g){if(g[0]&354){l=t.ensure_array_like(d[1][d[50]]);let h;for(h=0;h<l.length;h+=1){const y=We(d,l,h);u[h]?u[h].p(y,g):(u[h]=Je(y),u[h].c(),u[h].m(n,a))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(d){d&&t.detach(n),t.destroy_each(u,d)}}}function Ze(r){let n,a,l;return{c(){n=t.element("div"),t.attr(n,"class","ShowBalanceModalOverlay")},m(u,d){t.insert(u,n,d),a||(l=t.listen(n,"click",r[28]),a=!0)},p:t.noop,d(u){u&&t.detach(n),a=!1,l()}}}function vt(r){let n,a,l;function u(y,v){return y[2]?yt:gt}let d=u(r),g=d(r),h=r[4]&&Ze(r);return{c(){n=t.element("div"),a=t.element("div"),g.c(),l=t.space(),h&&h.c(),t.attr(a,"class","ShowBalance")},m(y,v){t.insert(y,n,v),t.append(n,a),g.m(a,null),t.append(n,l),h&&h.m(n,null),r[29](n)},p(y,v){d===(d=u(y))&&g?g.p(y,v):(g.d(1),g=d(y),g&&(g.c(),g.m(a,null))),y[4]?h?h.p(y,v):(h=Ze(y),h.c(),h.m(n,null)):h&&(h.d(1),h=null)},i:t.noop,o:t.noop,d(y){y&&t.detach(n),g.d(),h&&h.d(),r[29](null)}}}function wt(r,n,a){let l;t.component_subscribe(r,t.$format,e=>a(6,l=e));let{userid:u=""}=n,{session:d=""}=n,{endpoint:g=""}=n,{lang:h="en"}=n,{mbsource:y}=n,{clientstyling:v=""}=n,{clientstylingurl:_=""}=n,{translationurl:M=""}=n,{customlocaleidentifier:D=""}=n,{gmversion:O="gm16"}=n,{displaybalanceoption:F="All"}=n,{totalcalculationmode:R="totalCashAmount"}=n,{currencyseparator:b=""}=n,{currencydecimal:T=""}=n,{currencyprecision:j=""}=n,L,I,te,Q,q=!1,k="",S=[],V,x=!1;const f={},le=["totalCashAmount","totalRealAmount"],we=()=>{fetch(M).then(e=>e.json()).then(e=>Object.keys(e).forEach(i=>Ge(i,e[i]))).catch(e=>console.log(e))};Object.keys(qe).forEach(e=>Ge(e,qe[e]));const se=e=>{switch(e){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),a(4,q=!0),setTimeout(()=>a(3,te=!0),150);break;case"closebalance":a(3,te=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{a(4,q=!1)},150);break}},he=()=>{if(D.includes(h))return D},ne=e=>D?new Intl.NumberFormat(he(),{useGrouping:!0}).format(e):b&&T?ee(e,{separator:b,decimal:T,symbol:"",precision:parseInt(j||"2",10)}).format():ee(e,{separator:".",decimal:",",symbol:"",precision:parseInt(j||"2",10)}).format(),ce=()=>Xe(this,null,function*(){var i,s,o;a(2,L=!0);const e=new URL(`${g}/v1/player/${u}/account`);try{const m=yield fetch(e,{method:"GET",headers:{"X-SessionID":d}}),p=yield m.json();if(m.ok)window.postMessage({type:"BalancedFetched"},window.location.href),S=p.items,a(5,k=(i=S.find(c=>c.displayName==="Casino"))==null?void 0:i.currency),a(1,f.Total=[{amount:p.totalAmount[k]}],f),a(1,f.Real=[{amount:(s=S.find(c=>c.displayName==="Casino"))==null?void 0:s.balanceAmount}],f),a(1,f.Bonus=[{amount:(o=S.find(c=>c.displayName==="UBS"))==null?void 0:o.balanceAmount}],f);else throw new Error("Failed to fetch balance data !")}catch(m){console.log("Balance error: ",m)}finally{a(2,L=!1)}}),ue=()=>{a(2,L=!0);const e=new URL(`${g}/v2/player/${u}/balance`),i=new Headers;i.append("X-SessionID",d),fetch(e,{method:"GET",headers:i}).then(o=>o.json()).then(o=>{o[R]||a(10,R=le[0]);const m=o.items.find(c=>c.type==="Real"&&c.walletAccountType==="Ordinary");if(a(5,k=m.currency),x=!!m.productType,a(1,f.Total=[{amount:0}],f),a(1,f.Real=[],f),a(1,f.Bonus=[],f),a(1,f.Credit=[],f),!x){V={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(1,f.Total[0].amount=o[R][k],f);for(const c of o.items)switch(c.type){case"Bonus":f.Bonus.length===0?f.Bonus.push({amount:c.amount}):a(1,f.Bonus[0].amount+=c.amount,f);break;case"Real":if(c.creditLine&&f.Credit.length===0&&f.Credit.push({amount:c.creditLine}),R==="totalRealAmount")continue;f.Real.length===0?f.Real.push({amount:c.amount}):a(1,f.Real[0].amount+=c.amount,f);break}for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1);return}V={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let p=o.items;F&&F!=="All"&&(p=o.items.filter(c=>c.productType===F));for(const c of p){let C;switch(c.type){case"Bonus":C=f.Bonus.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Bonus[C].amount+=c.amount,f):f.Bonus.push({amount:c.amount,productType:c.productType});break;case"Real":c.creditLine&&f.Credit.push({amount:c.creditLine,productType:c.productType}),C=f.Real.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Real[C].amount+=c.amount,f):f.Real.push({amount:c.amount,productType:c.productType});break}}Ce();for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1)}).catch(o=>{throw a(2,L=!1),new Error("Failed to fetch balance data !")})},fe=()=>{if(Q&&Q.close(),d.length<1)return;let e,i;switch(O){case"gm16":e=new URL(`${g}/v2/player/${u}/information/updates`),i=m=>Me(m);break;case"gmcore":e=new URL(`${g}/v1/player/${u}/balance/updates`),i=m=>be(m);break}const s={accept:"text/event-stream","X-SessionId":d},o=new ct.EventSourcePolyfill(e,{headers:s});Q=o,o.addEventListener("message",i)},Z=e=>{let i;try{i=JSON.parse(e)}catch(s){console.log("Balance stream failed: ",s);return}return i},be=e=>{var m,p;const i=Z(e.data);if(!i){fe();return}let s="0";const o=i.balanceChange;S=S.map(c=>(o&&o[c.id]&&(c=Pe(Ue({},c),{balanceAmount:o[c.id].afterAmount})),s=(parseFloat(c==null?void 0:c.balanceAmount)+parseFloat(s)).toString(),c)),a(1,f.Real=[{amount:(m=S[0])==null?void 0:m.balanceAmount}],f),a(1,f.Bonus=[{amount:(p=S[1])==null?void 0:p.balanceAmount}],f),a(1,f.Total=[{amount:Number(s)}],f)},me=(e,i,s)=>{let o=null;switch(s.walletAccountType){case"Ordinary":s.afterAmount!==s.affectedAmount&&(i.lastOrdinaryAfterAmount=s.afterAmount,i.showCreditLineAfterAmount||(o=s.afterAmount));break;case"CreditLine":s.afterAmount!==0?(o=s.afterAmount,i.showCreditLineAfterAmount=!0):(o=i.lastOrdinaryAfterAmount,i.showCreditLineAfterAmount=!1);break;default:o=s.afterAmount}return o===null?e:o},Ce=()=>{switch(R){case"totalCashAmount":let e=0;for(const s of["Real","Bonus"])for(const o of f[s])e+=Math.max(o.amount,0);a(1,f.Total[0].amount=e,f);break;case"totalRealAmount":if(!x)return;let i=0;for(const s of f.Real)i+=s.amount;a(1,f.Total[0].amount=i,f)}},Me=e=>{const i=Z(e.data);if(!i){fe();return}if(i.type!=="BALANCE_UPDATE_V2")return;const s=i.body.balanceChange;for(const[o,m]of Object.entries(s))if(R==="totalRealAmount"&&o==="Real"&&!x&&a(1,f.Total[0].amount=me(f.Total[0].amount,V,m),f),!!f[o])for(const p of f[o]){if(!x){p.amount=o==="Real"?me(p.amount,V,m):m.afterAmount;continue}m.productType===p.productType&&(p.amount=o==="Real"?me(p.amount,V[p.productType],m):m.afterAmount)}Ce()},_e=()=>{se("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},De=()=>{le.includes(R)||(console.error(`Unsupported value ('${R}') for totalcalculationmode parameter. Only the following values are supported ${le}. Using default value ('${le[0]}').`),a(10,R=le[0]))},Be=()=>{switch(st(h),De(),O){case"gmcore":ce();break;case"gm16":ue();break;default:throw Error(`Invalid apiversion attribute: ${O}`)}},ge=e=>e.data&&e.data.type==="LogoutSuccessfull"&&Q.close(),de=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};t.onMount(()=>(window.addEventListener("message",ge,!1),()=>{window.removeEventListener("message",ge),Q&&Q.close()}));const K=()=>se("balance"),Oe=()=>se("closebalance"),Le=()=>_e(),ke=()=>se("closeBalance");function Ae(e){t.binding_callbacks[e?"unshift":"push"](()=>{I=e,a(0,I)})}return r.$$set=e=>{"userid"in e&&a(11,u=e.userid),"session"in e&&a(12,d=e.session),"endpoint"in e&&a(13,g=e.endpoint),"lang"in e&&a(14,h=e.lang),"mbsource"in e&&a(15,y=e.mbsource),"clientstyling"in e&&a(16,v=e.clientstyling),"clientstylingurl"in e&&a(17,_=e.clientstylingurl),"translationurl"in e&&a(18,M=e.translationurl),"customlocaleidentifier"in e&&a(19,D=e.customlocaleidentifier),"gmversion"in e&&a(20,O=e.gmversion),"displaybalanceoption"in e&&a(21,F=e.displaybalanceoption),"totalcalculationmode"in e&&a(10,R=e.totalcalculationmode),"currencyseparator"in e&&a(22,b=e.currencyseparator),"currencydecimal"in e&&a(23,T=e.currencydecimal),"currencyprecision"in e&&a(24,j=e.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&16384&&h&&he(),r.$$.dirty[0]&3176448&&g&&u&&d&&h&&O&&F&&Be(),r.$$.dirty[0]&1062912&&g&&u&&d&&O&&fe(),r.$$.dirty[0]&262144&&M&&we(),r.$$.dirty[0]&2&&f.Total&&de(),r.$$.dirty[0]&65537&&v&&I&&t.setClientStyling(I,v),r.$$.dirty[0]&131073&&_&&I&&t.setClientStylingURL(I,_),r.$$.dirty[0]&32769&&y&&I&&t.setStreamStyling(I,`${y}.Style`)},[I,f,L,te,q,k,l,se,ne,_e,R,u,d,g,h,y,v,_,M,D,O,F,b,T,j,K,Oe,Le,ke,Ae]}class et extends t.SvelteComponent{constructor(n){super(),t.init(this,n,wt,vt,t.safe_not_equal,{userid:11,session:12,endpoint:13,lang:14,mbsource:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:20,displaybalanceoption:21,totalcalculationmode:10,currencyseparator:22,currencydecimal:23,currencyprecision:24},mt,[-1,-1])}get userid(){return this.$$.ctx[11]}set userid(n){this.$$set({userid:n}),t.flush()}get session(){return this.$$.ctx[12]}set session(n){this.$$set({session:n}),t.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),t.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(n){this.$$set({customlocaleidentifier:n}),t.flush()}get gmversion(){return this.$$.ctx[20]}set gmversion(n){this.$$set({gmversion:n}),t.flush()}get displaybalanceoption(){return this.$$.ctx[21]}set displaybalanceoption(n){this.$$set({displaybalanceoption:n}),t.flush()}get totalcalculationmode(){return this.$$.ctx[10]}set totalcalculationmode(n){this.$$set({totalcalculationmode:n}),t.flush()}get currencyseparator(){return this.$$.ctx[22]}set currencyseparator(n){this.$$set({currencyseparator:n}),t.flush()}get currencydecimal(){return this.$$.ctx[23]}set currencydecimal(n){this.$$set({currencydecimal:n}),t.flush()}get currencyprecision(){return this.$$.ctx[24]}set currencyprecision(n){this.$$set({currencyprecision:n}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as J, $ as K, S as V, i as X, s as Z, f as y, d as $, z as
|
|
2
|
-
function
|
|
1
|
+
import { b as J, $ as K, S as V, i as X, s as Z, f as y, d as $, z as P, g as S, D as L, O as U, m as x, n as h, p as M, q as E, E as C, r as d, v as ee, I as te, w as ie, o as se, F as k, A as ae, B as j, K as re, L as ne, M as oe, c as le, J as ce } from "./CasinoHamburgerMenuNd-CeWCMWYl.js";
|
|
2
|
+
function W(s, e) {
|
|
3
3
|
J(s, e);
|
|
4
4
|
}
|
|
5
5
|
function de(s) {
|
|
6
6
|
K.set(s);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const H = {
|
|
9
9
|
en: {
|
|
10
10
|
titleDeposit: "Deposit",
|
|
11
11
|
loading: "Loading, please wait ..."
|
|
@@ -48,7 +48,7 @@ const j = {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
function ue(s) {
|
|
51
|
-
$(s, "svelte-
|
|
51
|
+
$(s, "svelte-1hczjj2", "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, 10px);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, 10px)}");
|
|
52
52
|
}
|
|
53
53
|
function he(s) {
|
|
54
54
|
let e, i, n, a, l, m, c, p, w, o, r = (
|
|
@@ -81,7 +81,7 @@ function pe(s) {
|
|
|
81
81
|
let e, i, n;
|
|
82
82
|
return {
|
|
83
83
|
c() {
|
|
84
|
-
e = M("div"), i = M("iframe"),
|
|
84
|
+
e = M("div"), i = M("iframe"), j(i.src, n = /*iframeUrl*/
|
|
85
85
|
s[3]) || d(i, "src", n), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
|
|
86
86
|
},
|
|
87
87
|
m(a, l) {
|
|
@@ -89,7 +89,7 @@ function pe(s) {
|
|
|
89
89
|
},
|
|
90
90
|
p(a, l) {
|
|
91
91
|
l & /*iframeUrl*/
|
|
92
|
-
8 && !
|
|
92
|
+
8 && !j(i.src, n = /*iframeUrl*/
|
|
93
93
|
a[3]) && d(i, "src", n);
|
|
94
94
|
},
|
|
95
95
|
d(a) {
|
|
@@ -138,7 +138,7 @@ function me(s) {
|
|
|
138
138
|
c() {
|
|
139
139
|
e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
|
|
140
140
|
(s[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
|
-
(s[5] ? "DepositWrapperMobile" : "")),
|
|
141
|
+
(s[5] ? "DepositWrapperMobile" : "")), U(
|
|
142
142
|
e,
|
|
143
143
|
"--dynamic-height",
|
|
144
144
|
/*dynamicHeight*/
|
|
@@ -153,15 +153,15 @@ function me(s) {
|
|
|
153
153
|
r[5] && c.p(r, u), u & /*$_*/
|
|
154
154
|
16 && a !== (a = /*$_*/
|
|
155
155
|
r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r, u) : (o.d(1), o = w(r), o && (o.c(), o.m(e, null))), u & /*dynamicHeight*/
|
|
156
|
-
4 &&
|
|
156
|
+
4 && U(
|
|
157
157
|
e,
|
|
158
158
|
"--dynamic-height",
|
|
159
159
|
/*dynamicHeight*/
|
|
160
160
|
r[2]
|
|
161
161
|
);
|
|
162
162
|
},
|
|
163
|
-
i:
|
|
164
|
-
o:
|
|
163
|
+
i: P,
|
|
164
|
+
o: P,
|
|
165
165
|
d(r) {
|
|
166
166
|
r && S(e), c && c.d(), o.d(), s[19](null);
|
|
167
167
|
}
|
|
@@ -170,22 +170,22 @@ function me(s) {
|
|
|
170
170
|
function fe(s, e, i) {
|
|
171
171
|
let n, a;
|
|
172
172
|
ee(s, ce, (t) => i(4, a = t));
|
|
173
|
-
let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: u = "" } = e, { currency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, G = window.navigator.userAgent, R = te(G) !== "PC", B = !0, I, T = 0,
|
|
173
|
+
let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: u = "" } = e, { currency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, G = window.navigator.userAgent, R = te(G) !== "PC", B = !0, I, T = 0, z = "";
|
|
174
174
|
const N = () => {
|
|
175
175
|
fetch(u).then((D) => D.json()).then((D) => {
|
|
176
176
|
Object.keys(D).forEach((v) => {
|
|
177
|
-
|
|
177
|
+
W(v, D[v]);
|
|
178
178
|
});
|
|
179
179
|
}).catch((D) => {
|
|
180
180
|
console.log(D);
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
|
-
Object.keys(
|
|
184
|
-
|
|
183
|
+
Object.keys(H).forEach((t) => {
|
|
184
|
+
W(t, H[t]);
|
|
185
185
|
});
|
|
186
|
-
const
|
|
186
|
+
const A = () => {
|
|
187
187
|
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
|
188
|
-
},
|
|
188
|
+
}, F = (t) => {
|
|
189
189
|
if (t.data) {
|
|
190
190
|
switch (t.data.type) {
|
|
191
191
|
case "ProfileDetailsData":
|
|
@@ -242,7 +242,7 @@ function fe(s, e, i) {
|
|
|
242
242
|
};
|
|
243
243
|
fetch(t.href, D).then((v) => v.json()).then(
|
|
244
244
|
(v) => {
|
|
245
|
-
i(1, B = !1), i(3,
|
|
245
|
+
i(1, B = !1), i(3, z = v.CashierUrl);
|
|
246
246
|
},
|
|
247
247
|
(v) => {
|
|
248
248
|
console.error(v);
|
|
@@ -251,10 +251,10 @@ function fe(s, e, i) {
|
|
|
251
251
|
}, q = () => {
|
|
252
252
|
de(p);
|
|
253
253
|
};
|
|
254
|
-
ie(() => (window.addEventListener("message",
|
|
255
|
-
window.removeEventListener("message",
|
|
254
|
+
ie(() => (window.addEventListener("message", F, !1), () => {
|
|
255
|
+
window.removeEventListener("message", F);
|
|
256
256
|
}));
|
|
257
|
-
const Q = () =>
|
|
257
|
+
const Q = () => A();
|
|
258
258
|
function Y(t) {
|
|
259
259
|
ae[t ? "unshift" : "push"](() => {
|
|
260
260
|
g = t, i(0, g);
|
|
@@ -275,10 +275,10 @@ function fe(s, e, i) {
|
|
|
275
275
|
g,
|
|
276
276
|
B,
|
|
277
277
|
I,
|
|
278
|
-
|
|
278
|
+
z,
|
|
279
279
|
a,
|
|
280
280
|
R,
|
|
281
|
-
|
|
281
|
+
A,
|
|
282
282
|
b,
|
|
283
283
|
l,
|
|
284
284
|
m,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-O-PRlnMz.cjs");function T(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 A(n){e.append_styles(n,"svelte-1hczjj2","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, 10px);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, 10px)}")}function F(n){let t,a,o,r,c,m,d,p,f,l,s=n[4]("titleDeposit")+"",u,y,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=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"),f=e.space(),l=e.element("h2"),u=e.text(s),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(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,p),e.append(t,f),e.append(t,l),e.append(l,u),y||(D=e.listen(t,"click",n[18]),y=!0)},p(g,h){h&16&&s!==(s=g[4]("titleDeposit")+"")&&e.set_data(u,s)},d(g){g&&e.detach(t),y=!1,D()}}}function H(n){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=n[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,o=r[3])&&e.attr(a,"src",o)},d(r){r&&e.detach(t)}}}function W(n){let t,a=n[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,o)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function G(n){let t,a,o,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&F(n);function p(s,u){return s[1]?W:H}let f=p(n),l=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(r),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,u){e.insert(s,t,u),d&&d.m(t,null),e.append(t,a),e.append(t,o),e.append(o,c),e.append(t,m),l.m(t,null),n[19](t)},p(s,[u]){s[5]&&d.p(s,u),u&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=p(s))&&l?l.p(s,u):(l.d(1),l=f(s),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),l.d(),n[19](null)}}}function N(n,t,a){let o,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:s=""}=t,{translationurl:u=""}=t,{currency:y=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,R=window.navigator.userAgent,v=e.getDevice(R)!=="PC",M=!0,k,_=0,C="";const B=()=>{fetch(u).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{T(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(E).forEach(i=>{T(i,E[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},x=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,y=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,k=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.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}}},P=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)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:g,accept:"application/json"}};fetch(i.href,w).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,C=b.CashierUrl)},b=>{console.error(b)})},j=()=>{z(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const I=()=>S();function U(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,p=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,l=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,y=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&p&&j(),n.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),n.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),n.$$.dirty&16385&&s&&h&&e.setClientStylingURL(h,s),n.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),n.$$.dirty&32768&&u&&B(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&g&&P()},[h,M,k,C,r,v,S,y,c,m,d,p,f,l,s,u,D,g,I,U]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,G,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},A)}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 currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency: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(L,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as J, $ as K, S as V, i as X, s as Z, f as y, d as $, z as
|
|
2
|
-
function
|
|
1
|
+
import { b as J, $ as K, S as V, i as X, s as Z, f as y, d as $, z as P, g as S, D as L, O as U, m as x, n as h, p as M, q as E, E as C, r as d, v as ee, I as te, w as ie, o as se, F as k, A as ae, B as j, K as re, L as ne, M as oe, c as le, J as ce } from "./CasinoHamburgerMenuNd-BxWLDWZ5.js";
|
|
2
|
+
function W(s, e) {
|
|
3
3
|
J(s, e);
|
|
4
4
|
}
|
|
5
5
|
function de(s) {
|
|
6
6
|
K.set(s);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const H = {
|
|
9
9
|
en: {
|
|
10
10
|
titleDeposit: "Deposit",
|
|
11
11
|
loading: "Loading, please wait ..."
|
|
@@ -48,7 +48,7 @@ const j = {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
function ue(s) {
|
|
51
|
-
$(s, "svelte-
|
|
51
|
+
$(s, "svelte-1hczjj2", "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, 10px);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, 10px)}");
|
|
52
52
|
}
|
|
53
53
|
function he(s) {
|
|
54
54
|
let e, i, n, a, l, m, c, p, w, o, r = (
|
|
@@ -81,7 +81,7 @@ function pe(s) {
|
|
|
81
81
|
let e, i, n;
|
|
82
82
|
return {
|
|
83
83
|
c() {
|
|
84
|
-
e = M("div"), i = M("iframe"),
|
|
84
|
+
e = M("div"), i = M("iframe"), j(i.src, n = /*iframeUrl*/
|
|
85
85
|
s[3]) || d(i, "src", n), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
|
|
86
86
|
},
|
|
87
87
|
m(a, l) {
|
|
@@ -89,7 +89,7 @@ function pe(s) {
|
|
|
89
89
|
},
|
|
90
90
|
p(a, l) {
|
|
91
91
|
l & /*iframeUrl*/
|
|
92
|
-
8 && !
|
|
92
|
+
8 && !j(i.src, n = /*iframeUrl*/
|
|
93
93
|
a[3]) && d(i, "src", n);
|
|
94
94
|
},
|
|
95
95
|
d(a) {
|
|
@@ -138,7 +138,7 @@ function me(s) {
|
|
|
138
138
|
c() {
|
|
139
139
|
e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
|
|
140
140
|
(s[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
|
-
(s[5] ? "DepositWrapperMobile" : "")),
|
|
141
|
+
(s[5] ? "DepositWrapperMobile" : "")), U(
|
|
142
142
|
e,
|
|
143
143
|
"--dynamic-height",
|
|
144
144
|
/*dynamicHeight*/
|
|
@@ -153,15 +153,15 @@ function me(s) {
|
|
|
153
153
|
r[5] && c.p(r, u), u & /*$_*/
|
|
154
154
|
16 && a !== (a = /*$_*/
|
|
155
155
|
r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r, u) : (o.d(1), o = w(r), o && (o.c(), o.m(e, null))), u & /*dynamicHeight*/
|
|
156
|
-
4 &&
|
|
156
|
+
4 && U(
|
|
157
157
|
e,
|
|
158
158
|
"--dynamic-height",
|
|
159
159
|
/*dynamicHeight*/
|
|
160
160
|
r[2]
|
|
161
161
|
);
|
|
162
162
|
},
|
|
163
|
-
i:
|
|
164
|
-
o:
|
|
163
|
+
i: P,
|
|
164
|
+
o: P,
|
|
165
165
|
d(r) {
|
|
166
166
|
r && S(e), c && c.d(), o.d(), s[19](null);
|
|
167
167
|
}
|
|
@@ -170,22 +170,22 @@ function me(s) {
|
|
|
170
170
|
function fe(s, e, i) {
|
|
171
171
|
let n, a;
|
|
172
172
|
ee(s, ce, (t) => i(4, a = t));
|
|
173
|
-
let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: u = "" } = e, { currency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, G = window.navigator.userAgent, R = te(G) !== "PC", B = !0, I, T = 0,
|
|
173
|
+
let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: u = "" } = e, { currency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, G = window.navigator.userAgent, R = te(G) !== "PC", B = !0, I, T = 0, z = "";
|
|
174
174
|
const N = () => {
|
|
175
175
|
fetch(u).then((D) => D.json()).then((D) => {
|
|
176
176
|
Object.keys(D).forEach((v) => {
|
|
177
|
-
|
|
177
|
+
W(v, D[v]);
|
|
178
178
|
});
|
|
179
179
|
}).catch((D) => {
|
|
180
180
|
console.log(D);
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
|
-
Object.keys(
|
|
184
|
-
|
|
183
|
+
Object.keys(H).forEach((t) => {
|
|
184
|
+
W(t, H[t]);
|
|
185
185
|
});
|
|
186
|
-
const
|
|
186
|
+
const A = () => {
|
|
187
187
|
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
|
188
|
-
},
|
|
188
|
+
}, F = (t) => {
|
|
189
189
|
if (t.data) {
|
|
190
190
|
switch (t.data.type) {
|
|
191
191
|
case "ProfileDetailsData":
|
|
@@ -242,7 +242,7 @@ function fe(s, e, i) {
|
|
|
242
242
|
};
|
|
243
243
|
fetch(t.href, D).then((v) => v.json()).then(
|
|
244
244
|
(v) => {
|
|
245
|
-
i(1, B = !1), i(3,
|
|
245
|
+
i(1, B = !1), i(3, z = v.CashierUrl);
|
|
246
246
|
},
|
|
247
247
|
(v) => {
|
|
248
248
|
console.error(v);
|
|
@@ -251,10 +251,10 @@ function fe(s, e, i) {
|
|
|
251
251
|
}, q = () => {
|
|
252
252
|
de(p);
|
|
253
253
|
};
|
|
254
|
-
ie(() => (window.addEventListener("message",
|
|
255
|
-
window.removeEventListener("message",
|
|
254
|
+
ie(() => (window.addEventListener("message", F, !1), () => {
|
|
255
|
+
window.removeEventListener("message", F);
|
|
256
256
|
}));
|
|
257
|
-
const Q = () =>
|
|
257
|
+
const Q = () => A();
|
|
258
258
|
function Y(t) {
|
|
259
259
|
ae[t ? "unshift" : "push"](() => {
|
|
260
260
|
g = t, i(0, g);
|
|
@@ -275,10 +275,10 @@ function fe(s, e, i) {
|
|
|
275
275
|
g,
|
|
276
276
|
B,
|
|
277
277
|
I,
|
|
278
|
-
|
|
278
|
+
z,
|
|
279
279
|
a,
|
|
280
280
|
R,
|
|
281
|
-
|
|
281
|
+
A,
|
|
282
282
|
b,
|
|
283
283
|
l,
|
|
284
284
|
m,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-BcNNYIr-.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller-nd")&&customElements.define("casino-header-controller-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-CF2vGsRQ.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-header-controller-nd") && customElements.define("casino-header-controller-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ var p = (i, n, t) => new Promise((e, o) => {
|
|
|
14
14
|
}, a = (l) => l.done ? e(l.value) : Promise.resolve(l.value).then(s, c);
|
|
15
15
|
a((t = t.apply(i, n)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as m, h as r, g as y } from "./index-71b1bdfa-
|
|
17
|
+
import { r as m, h as r, g as y } from "./index-71b1bdfa-DBUT8z-D.js";
|
|
18
18
|
const w = "en";
|
|
19
19
|
let h = {
|
|
20
20
|
en: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var p=(i,n,t)=>new Promise((e,o)=>{var s=r=>{try{l(t.next(r))}catch(d){o(d)}},c=r=>{try{l(t.throw(r))}catch(d){o(d)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,c);l((t=t.apply(i,n)).next())});const a=require("./index-71b1bdfa-
|
|
1
|
+
"use strict";var p=(i,n,t)=>new Promise((e,o)=>{var s=r=>{try{l(t.next(r))}catch(d){o(d)}},c=r=>{try{l(t.throw(r))}catch(d){o(d)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,c);l((t=t.apply(i,n)).next())});const a=require("./index-71b1bdfa-BeszNvNP.cjs"),y="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=i=>new Promise(n=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(e=>{h[e]||(h[e]={});for(let o in t[e])h[e][o]=t[e][o]}),n(!0)})}),w=(i,n)=>{const t=n;return h[t!==void 0&&t in h?t:y][i]};function f(i,n){if(i){const t=document.createElement("style");t.innerHTML=n,i.appendChild(t)}}function u(i,n){const t=new URL(n);fetch(t.href).then(e=>e.text()).then(e=>{const o=document.createElement("style");o.innerHTML=e,i&&i.appendChild(o)}).catch(e=>{console.error("There was an error while trying to load client styling from URL",e)})}function v(i,n,t){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(n,o=>{e.innerHTML=o,i&&i.appendChild(e)})}}const S=":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}",C=S,m=class{constructor(i){a.registerInstance(this,i),this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=n=>{n.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=n=>{n.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.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,g(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(i,n){i!=n&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,n){i!=n&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return p(this,null,function*(){if(this.translationUrl.length>2&&(yield g(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?v(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchPointsData(){let i=new URL(`${this.endpoint}/v1/elevate/playerInfo`);i.searchParams.append("language",this.language);const n=new Headers;n.append("X-SessionId",this.session);const t={method:"GET",headers:n};return new Promise((e,o)=>{this.isLoading=!0,fetch(i.href,t).then(s=>s.json()).then(s=>{var c,l;this.loyaltyPoints=(l=(c=s==null?void 0:s.data)===null||c===void 0?void 0:c.level)===null||l===void 0?void 0:l.loyaltyPoints,e(!0)}).catch(s=>{console.error(s),o(s)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:a.h("div",{ref:i=>this.stylingContainer=i,class:"GamificationDropdownContainer"},a.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:i=>this.handleDropdownClick(i),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):w("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",a.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},a.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},a.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&&a.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},a.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 a.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};m.style=C;exports.GamificationDropdown=m;
|
|
@@ -14,7 +14,7 @@ var o = (n, a, l) => new Promise((s, i) => {
|
|
|
14
14
|
}, t = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(g, p);
|
|
15
15
|
t((l = l.apply(n, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as d, p as y } from "./index-71b1bdfa-
|
|
17
|
+
import { b as d, p as y } from "./index-71b1bdfa-DBUT8z-D.js";
|
|
18
18
|
import { g as c } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
19
|
var v = () => {
|
|
20
20
|
const n = import.meta.url, a = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var g=e=>{try{l(t.next(e))}catch(r){o(r)}},c=e=>{try{l(t.throw(e))}catch(r){o(r)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,c);l((t=t.apply(n,a)).next())});const p=require("./index-71b1bdfa-
|
|
1
|
+
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var g=e=>{try{l(t.next(e))}catch(r){o(r)}},c=e=>{try{l(t.throw(e))}catch(r){o(r)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,c);l((t=t.apply(n,a)).next())});const p=require("./index-71b1bdfa-BeszNvNP.cjs"),y=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-DkDy6E4e.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 y.globalScripts(),p.bootstrapLazy([["gamification-dropdown_4",[[1,"gamification-dropdown",{endpoint:[513],language:[513],session:[513],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],isOpen:[32],isLoading:[32],loyaltyPoints:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[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"],mbSource:[1,"mb-source"],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"]}],[0,"player-elevate-card-data",{params:[8],playerElevateLevel:[32],pointExpireString:[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{params:["onParamsChanged"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]],["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"]}]]],["player-rakeback-card",[[1,"player-rakeback-card",{endpoint:[513],theme:[513],session:[513],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],show:[516],rakebackInfo:[32],isLoading:[32],coolingOffPeriod:[32],showTheWidget:[32]},[[8,"message","handleMessage"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}]]]],n)}));
|
package/stencil/{gamification-dropdown_4-Blt8-SSN.cjs → gamification-dropdown_4-B2a2BjCo.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var x=(e,t,a)=>new Promise((n,l)=>{var i=d=>{try{s(a.next(d))}catch(p){l(p)}},c=d=>{try{s(a.throw(d))}catch(p){l(p)}},s=d=>d.done?n(d.value):Promise.resolve(d.value).then(i,c);s((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./gamification-dropdown-8eb8a896-
|
|
1
|
+
"use strict";var x=(e,t,a)=>new Promise((n,l)=>{var i=d=>{try{s(a.next(d))}catch(p){l(p)}},c=d=>{try{s(a.throw(d))}catch(p){l(p)}},s=d=>d.done?n(d.value):Promise.resolve(d.value).then(i,c);s((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./gamification-dropdown-8eb8a896-wUq7QkNM.cjs"),r=require("./index-71b1bdfa-BeszNvNP.cjs"),y=require("./locale-DHn5ZpQu.cjs"),o=require("./player-elevate-card-items-66be34fb-DBIZuvGZ.cjs"),M=(e,t)=>new Promise(a=>{fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(l=>{t[l]=t[l]?t[l]:{};for(let i in n[l])t[l][i]=n[l][i]}),a(!0)})}),R=":host{display:block}",O=R,L=class{constructor(e){r.registerInstance(this,e),this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.el.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),a=document.createElement("style");fetch(t.href).then(n=>n.text()).then(n=>{a.innerHTML=n,setTimeout(()=>{this.el.prepend(a)},1)}).catch(n=>{console.log("error ",n)})},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}componentWillLoad(){return x(this,null,function*(){const e=[];if(this.translationUrl){const t=M(this.translationUrl,this.targetTranslations);e.push(t)}return yield Promise.all(e)})}render(){return r.h("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},r.h("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return r.getElement(this)}};L.style=O;function m(e){o.requiredArgs(1,arguments);var t=o.toDate(e);return t.setHours(0,0,0,0),t}var q=864e5;function N(e,t){o.requiredArgs(2,arguments);var a=m(e),n=m(t),l=a.getTime()-o.getTimezoneOffsetInMilliseconds(a),i=n.getTime()-o.getTimezoneOffsetInMilliseconds(n);return Math.round((l-i)/q)}var W=6e4,$=36e5;function E(e,t){return o.requiredArgs(2,arguments),o.toDate(e).getTime()-o.toDate(t).getTime()}var b={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},z="trunc";function w(e){return e?b[e]:b[z]}function U(e,t,a){o.requiredArgs(2,arguments);var n=E(e,t)/$;return w(a==null?void 0:a.roundingMethod)(n)}function F(e,t,a){o.requiredArgs(2,arguments);var n=E(e,t)/W;return w(a==null?void 0:a.roundingMethod)(n)}function j(e,t){o.requiredArgs(2,arguments);var a=o.toDate(e),n=o.toDate(t);return a.getTime()<n.getTime()}function H(e,t){const a=e.querySelector("#total_level"),n=17,l=6.5,i=a.getBBox().width,c=t>1?1:t,s=c*i-n<0?0:c*i-n,d=e.querySelector("#current_level"),p=e.querySelector("#filter_current_level"),h=e.querySelector("#circle_current_level");a.setAttribute("viewbox",`0 0 ${s} 28`),d.setAttribute("width",`${s}`),h.setAttribute("cx",`${s<l?l:s}`),p.setAttribute("x",`${s-8}`);const g=e.querySelector("#lock"),S=e.querySelector("#filter_heart_ball"),C=e.querySelector("#filter_ball"),k=e.querySelector("#filter_heart"),T=e.querySelector("#filter_lock"),u=e.querySelector("#paint0_linear_ball"),f=e.querySelector("#paint1_linear_lock"),A=e.querySelector("#lock_box"),D=e.querySelector("#heart_box"),_=10,v=i-_;g.setAttribute("cx",`${v}`),f.setAttribute("x1",`${v}`),f.setAttribute("x2",`${v}`),u.setAttribute("x1",`${v-6}`),u.setAttribute("x2",`${v-6+11.2}`),T.setAttribute("x",`${v-6}`),k.setAttribute("x",`${v-6-2}`),C.setAttribute("x",`${v-6-2-2}`),S.setAttribute("x",`${v-6-2-2-4}`),A.setAttribute("x",`${v-6}`),D.setAttribute("x",`${v-6}`),a.parentElement.style.opacity="1"}const G=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
width: 360px;
|
|
4
4
|
height: 230px;
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
height: 35px;
|
|
167
167
|
display: flex;
|
|
168
168
|
align-items: center;
|
|
169
|
-
border-radius: 10px;
|
|
169
|
+
border-radius: var(--emw--border-radius-medium, 10px);
|
|
170
170
|
background: var(--emw--elevate-color-redeem-bg, linear-gradient(0deg, #26CC37, #26CC37)), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%);
|
|
171
171
|
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);
|
|
172
172
|
}
|