@everymatrix/bonus-elevate-shop 1.0.90 → 1.0.91
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/dist/bonus-elevate-shop/bonus-elevate-shop.esm.js +1 -1
- package/dist/bonus-elevate-shop/p-71063510.entry.js +1 -0
- package/dist/cjs/bonus-elevate-shop_5.cjs.entry.js +2 -532
- package/dist/collection/components/bonus-elevate-shop/bonus-elevate-shop.js +3 -3
- package/dist/esm/bonus-elevate-shop_5.entry.js +25 -555
- package/dist/types/components/bonus-elevate-shop/bonus-elevate-shop.d.ts +0 -1
- package/package.json +1 -1
- package/dist/bonus-elevate-shop/p-85daa0a4.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-5fed6c85.js";export{s as setNonce}from"./p-5fed6c85.js";import{g as n}from"./p-e1255160.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await n(),a([["p-
|
|
1
|
+
import{p as e,b as a}from"./p-5fed6c85.js";export{s as setNonce}from"./p-5fed6c85.js";import{g as n}from"./p-e1255160.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await n(),a([["p-71063510",[[1,"bonus-elevate-shop",{session:[513],endpoint:[513],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],limit:[1538],navItemAccount:[514,"nav-item-account"],pageLimitOptions:[1537,"page-limit-options"],locale:[32],gifts:[32],total:[32],offset:[32],shopListId:[32],isLoading:[32],pageLimitSelectOptions:[32]},[[0,"reloadPageByType","reloadPageByTypeHandler"]],{endpoint:["onPropsChange"],language:["onPropsChange"],session:["onPropsChange"]}],[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"]}],[0,"bonus-pagination-nav",{total:[1538],limit:[1538],offset:[1538],tableId:[1537,"table-id"],language:[1537],translationUrl:[513,"translation-url"],arrowsActive:[1540,"arrows-active"],secondaryArrowsActive:[1540,"secondary-arrows-active"],displayPageNumbers:[1540,"display-page-numbers"],displayRangeOfTotal:[1540,"display-range-of-total"],navItemAccount:[1538,"nav-item-account"],endPageIndex:[32],pagesArray:[32],currentPage:[32],showAsEllipsisMid:[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[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]}]]],["p-656b53e1",[[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"]}]]],["p-a90f86b0",[[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"]}]]],["p-7aec42f2",[[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"]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as t,c as n,g as i,a,F as r}from"./p-5fed6c85.js";import{t as s,T as o,a as l}from"./p-c3e53f66.js";import{r as d,t as h,g as c,P as p,a as g}from"./p-39790a37.js";async function v(e,t={},n={}){const{endpoint:i,language:a,session:r}=this,s=t;n.method&&"GET"!==n.method||(s.language=a);const o=((e,t={})=>e+"?"+Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&"))(`${i}${e}`,s);n.headers||(n.headers={}),n.headers["x-SessionId"]=r;const l=await(async(e,t={})=>{let n;n=await fetch(e,t),n=await n.text();try{n=JSON.parse(n)}catch(e){console.error(e)}return n})(o,n);return l}const f={en:{Points:"Coins",Point:"Coin",noContent:"No Content",redeemGift:"Redeem Gift",perPage:"Per Page"}},b=(t,n,i)=>e("div",{class:"Gifts FlexLayout"},t.map((t=>{var a;const r=((e,t)=>{switch(e.available){case"true":return{extraClass:" active",onClick:()=>t(e.id)};case"false":return{extraClass:" deactive",onClick:()=>{}}}})(t,i),s=t.presentation;return e("div",{class:"Gift"},e("div",{class:"ImgContainer",onClick:()=>window.postMessage({type:"BEEShopImgClicked",itemId:t.id},window.location.href),style:Object.assign({},(o=(null===(a=s.assets)||void 0===a?void 0:a.length)>0?s.assets[0]:"",o?{backgroundImage:`url('${o}')`}:{}))}),e("div",{class:"InfoContainer"},e("div",null,e("div",{class:"Point"},t.points," ",1===t.points?n.Point:n.Points),e("div",{class:"Title"},(null==s?void 0:s.displayName)||t.displayName),e("div",{class:"Description"},(null==s?void 0:s.description)||"")),e("div",{class:`AvaliableWrap RedeemButton ${r.extraClass}`,onClick:r.onClick},n.redeemGift)));var o}))),x=class{constructor(e){t(this,e),this.redeemGiftButton=n(this,"redeemGiftButton",7),this.bindedHandler=this.handleMessage.bind(this),this.isInitialized=!1,this.session=void 0,this.endpoint=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.limit=10,this.navItemAccount=5,this.pageLimitOptions="10,25,50",this.locale=f.en,this.gifts=[],this.total=0,this.offset=0,this.shopListId="elevateShopList",this.isLoading=!0,this.pageLimitSelectOptions=[]}async onPropsChange(){this.isInitialized&&this.updateGifts()}async updateGifts(){if(this.isLoading=!0,this.session){const{data:e,total:t}=await v.bind(this,"/v1/elevate/shop",{pagination:`offset=${this.offset},limit=${this.limit}`}).call();this.gifts=e||[],this.total=t}else this.gifts=[],this.total=0;this.isLoading=!1}redeemGiftConfirm(e){const t=this.gifts.filter((t=>t.id===e))[0];window.postMessage({type:"BEERedeemConfirm",shopItem:t},window.location.href)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1)}async redeemGift(e){const t=await v.bind(this,"/v1/elevate/redeem",{},{method:"PUT",body:JSON.stringify({giftID:e}),headers:{"Content-Type":"application/json-patch+json"}}).call();t.success?(this.redeemGiftButton.emit(),window.postMessage({type:"BEEGiftRedeem",itemId:e},window.location.href)):window.postMessage({type:"BEEGiftRedeemFailed",itemId:e,err:t},window.location.href)}loadGifts(t){if(!this.isLoading)return 0===this.gifts.length?e("div",{class:"NoContent"},this.locale.noContent):t()}setLimit(){try{const e=this.pageLimitOptions.split(",").map((e=>parseInt(e)));e.includes(this.limit)||(this.limit=e[0])}catch(e){console.error("Error when parse PageLimitOptions",e),this.limit=10}}reloadPageByTypeHandler(e){var t;if((null===(t=e.detail)||void 0===t?void 0:t.tableId)!=this.shopListId)return;const{limit:n,offset:i}=e.detail;this.limit=n,this.offset=i||0,this.updateGifts()}componentWillLoad(){this.setLimit(),this.pageLimitSelectOptions=this.pageLimitOptions.split(",").map((e=>({label:e,value:e})))}render(){return e("main",{key:"f0dd6fc6c1585429fadefd2ccd112133545b6934",class:"MainContainer"},e("general-styling-wrapper",{key:"ccd63c12e7faf16c940174ccde3cb4e327139377",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:f,translationUrl:this.translationUrl}),e("player-elevate-pointcard",{key:"bf4cd864961a149dd909509e4e19acc88d54cce2",endpoint:this.endpoint,session:this.session,language:this.language,clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,translationUrl:this.translationUrl}),this.loadGifts(b.bind(this,this.gifts,this.locale,this.redeemGiftConfirm.bind(this))),e("div",{key:"b18184d88f98e66a5c74e0330c03a5a2d1f7a08a",class:"ShopBottom"},e("bonus-pagination-nav",{key:"70a8b38e6f40031106aac14482a8c4cb37ea8e97",total:this.total,offset:this.offset,limit:this.limit,tableId:this.shopListId,"nav-item-account":7,arrowsActive:!1,"display-page-numbers":"true"})))}handleMessage(e){"bee-redeem-confirmed"===e.data.type&&e.data.id&&this.redeemGift(e.data.id)}async componentDidLoad(){this.updateGifts(),this.isInitialized=!0,window.addEventListener("message",this.bindedHandler,!1)}static get assetsDirs(){return["static"]}static get watchers(){return{endpoint:["onPropsChange"],language:["onPropsChange"],session:["onPropsChange"]}}};x.style=":host{display:block}svg circle{shape-rendering:crispEdges}.MainContainer{max-width:420px}.MainContainer player-elevate-pointcard{width:100%;height:220px}.MainContainer .ShopBottom{display:flex;flex-direction:row;justify-content:space-between}.Gifts{display:flex;justify-content:space-between;padding:15px;padding-left:-8px;padding-right:-8px;flex:0 0 45.1282051282%;flex-wrap:wrap;justify-content:flex-start;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black-150, #000000);font-weight:500;gap:10px;margin-top:-100px;position:relative;min-height:200px}.InfoContainer{display:flex;margin-top:17px;justify-content:space-between;flex-direction:column}.Gift{display:block;margin-bottom:10px;padding:8px;box-shadow:0px 18px 45px 0px var(--emw--color-black-150, rgba(167, 167, 167, 0.2));border-radius:11px;background:var(--emw--color-white, #FFFFFF)}.Gift .ImgContainer{width:160px;height:107px;border-radius:11px;box-shadow:0px 2px 6px 0px var(--emw--color-black-200, rgba(0, 0, 0, 0.2509803922));cursor:pointer;background-size:cover;background-position:center center;background-repeat:no-repeat}.Gift .Point{font-size:20px}.Gift .Title,.Gift .Description{padding-left:3px}.Gift .Title{font-size:14px;margin-top:10px}.Gift .Description{font-size:12px;color:var(--emw--color-black-100, #767171)}.Gift .AvaliableWrap{align-self:self-end}.Gift .AvaliableWrap.active{cursor:pointer}.Gift .AvaliableWrap.deactive{cursor:not-allowed}.Gift .AvaliableWrap span svg{width:var(--emw--elevate-avaliable-button-size, 46px)}.RedeemButton{width:100%;padding:5px 0px;border:2px solid var(--emw--button-border-color, rgba(8, 59, 23, 0.1098039216));text-align:center;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-bold, 700);line-height:var(--emw--font-size-medium, 14px);text-transform:uppercase;border-radius:var(--emw--border-radius-medium, 20px)}.RedeemButton.active{background:var(--emw--color-primary, #18CE51)}.RedeemButton.active:hover{background:var(--mmw--color-main-button-hover, #24B24E)}.RedeemButton.deactive{background:var(--mmw--color-disabled, rgba(153, 153, 153, 0.5019607843))}.NoContent{font-size:16px;color:var(--emw--color-black-100, #afafaf);text-align:center;height:120px;line-height:120px}";const u=["pt-br","en","es-mx","hu","hr"],m={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},w=(e,t,n)=>{const i=t;let a=m[void 0!==i&&u.includes(i)?i:"en"][e];if(void 0!==n)for(const[e,t]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");a=a.replace(n,t)}return a},y=class{constructor(e){t(this,e),this.reloadPageEmitter=n(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=5,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(e){this.limit=e.detail.limit?e.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==e.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(e){"..."==e||0==e||parseInt(e.toString(),10)>this.endPageIndex+1||(this.currentPage=e,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return e("ul",{class:"PaginationArea"},this.pagesArray.map((t=>e("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return e("general-styling-wrapper",{targetTranslations:m,translationUrl:this.translationUrl})}generateNavItemsByType(e,t){if(this.endPageIndex<e)return Array.from({length:this.endPageIndex+1},((e,t)=>t+1));let n=[],i=Math.floor(e/2);const a=this.endPageIndex+1;return t?this.currentPage<i||this.currentPage>a-i+1?(n=Array.from({length:i},((e,t)=>t+1)),n.push("..."),n=n.concat(Array.from({length:i},((e,t)=>this.endPageIndex-1+t)))):this.currentPage==i?(n=Array.from({length:i+1},((e,t)=>t+1)),n.push("..."),n=n.concat(Array.from({length:i-1},((e,t)=>this.endPageIndex+t)))):this.currentPage==a-i+1?(n=Array.from({length:i-1},((e,t)=>t+1)),n.push("..."),n=n.concat(Array.from({length:i+1},((e,t)=>this.endPageIndex-2+t)))):(n=[1,"..."],n=n.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),n=n.concat(["...",a])):this.currentPage<i-1?(n=Array.from({length:e-1},((e,t)=>t+1)),n.push("...")):this.endPageIndex-this.currentPage<i+1?(n=Array.from({length:e-1},((e,t)=>this.endPageIndex-i+t)),n.unshift("...")):(n=Array.from({length:i+1},((e,t)=>this.currentPage+t-1)),n.push("..."),n.unshift("...")),n}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return e("div",{key:"aa8d14788833b1b0e13ea20943935b03a3b043ac",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&e("span",{key:"a018261b6c598116829d878b8120aee7ae2576c4",class:"PageOfMessage"},w("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),e("div",{key:"64fc17d0b992b30a4b8d712e47442ee6a2d44b82",class:"PageNavigation"},this.arrowsActive&&e("div",{key:"f5f3b562fbdfb9e4b39ffd9755e5dba41e6231ba",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},w("firstPage",this.language)),this.secondaryArrowsActive&&e("span",{key:"39222e258f6c63502bfd3914c673d804edc96b53",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},w("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&e("span",{key:"d6f9a1394debdae49702713ccc59bea710ccd7ae",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},w("nextPage",this.language)),this.arrowsActive&&e("div",{key:"d2bb76f9d40fcfc3dbc6bb5fbfe6d237e77f0ee6",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",w("lastPage",this.language)," "),this.renderStylingWrapper()))}};y.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const P=class{constructor(e){t(this,e),this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.el.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.el.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const i=(t=this.translationUrl,n=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{n[e]=n[e]?n[e]:{};for(let i in t[e])n[e][i]=t[e][i]})),e(!0)}))})));e.push(i)}var t,n;return await Promise.all(e)}render(){return e("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},e("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return i(this)}};function k(e){d(1,arguments);var t=h(e);return t.setHours(0,0,0,0),t}function I(e,t){return d(2,arguments),h(e).getTime()-h(t).getTime()}P.style=":host{display:block}";var C={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function L(e){return e?C[e]:C.trunc}const E=class{constructor(e){t(this,e),this.playerElevateLeveLoaded=n(this,"playerElevateLeveLoaded",7),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise(((t,n)=>fetch(e.href,{method:"GET"}).then((e=>e.json())).then((e=>{this.levels=e.data,t(!0)})).catch((e=>{n(e)}))))}calcuatePointsToBeExpired(e){let t="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return t;e.aboutToExpire.sort(((e,t)=>function(e,t){d(2,arguments);var n=h(e),i=h(t);return n.getTime()<i.getTime()}(new Date(e.expireTime),new Date(t.expireTime))?-1:1));const n=e.aboutToExpire[0],i=function(e,t){d(2,arguments);var n=k(e),i=k(t),a=n.getTime()-c(n),r=i.getTime()-c(i);return Math.round((a-r)/864e5)}(new Date(n.expireTime),new Date);let a=0,r=0,o=0===i?"pointsToBeExpiredDay":"pointsToBeExpired";return i<=0&&(a=function(e,t,n){d(2,arguments);var i=I(e,t)/36e5;return L(null==n?void 0:n.roundingMethod)(i)}(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=a>1?"pointsToBeExpiredHours":"pointsToBeExpiredHour",a<=0&&(r=function(e,t,n){d(2,arguments);var i=I(e,t)/6e4;return L(null==n?void 0:n.roundingMethod)(i)}(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=r>1?"pointsToBeExpiredMinutes":"pointsToBeExpiredMinute")),t=s(o,{expirationPoints:n.points,expireDay:Math.max(i,a,r)}),t}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise(((t,n)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{var i,a,r;if(!e.success)return console.error("Exception when fetch user elevateinfo, ",e.errorCode,e.errorMessage),void n(!0);let s=e.data;this.playerElevateLevel=s.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=(null===(i=s.spendableWallet)||void 0===i?void 0:i.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const o=null===(a=e.data.spendableWallet)||void 0===a?void 0:a.total,l=null===(r=e.data.loyaltyWallet)||void 0===r?void 0:r.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:o,loyaltyWalletTotal:l});let d=this.calcuatePointsToBeExpired(o),h=this.calcuatePointsToBeExpired(l);(d||h)&&this.playerElevateLeveLoaded.emit({pointExpireString:d,xpExpireString:h}),t(this.playerElevateLevel)})).catch((e=>{console.log("error ",e),n(!0)}))))}setLoyaltyProgress(e){!function(e,t){const n=e.querySelector("#total_level"),i=n.getBBox().width,a=t>1?1:t,r=a*i-17<0?0:a*i-17,s=e.querySelector("#current_level"),o=e.querySelector("#filter_current_level"),l=e.querySelector("#circle_current_level");n.setAttribute("viewbox",`0 0 ${r} 28`),s.setAttribute("width",`${r}`),l.setAttribute("cx",`${r<6.5?6.5:r}`),o.setAttribute("x",""+(r-8));const d=e.querySelector("#lock"),h=e.querySelector("#filter_heart_ball"),c=e.querySelector("#filter_ball"),p=e.querySelector("#filter_heart"),g=e.querySelector("#filter_lock"),v=e.querySelector("#paint0_linear_ball"),f=e.querySelector("#paint1_linear_lock"),b=e.querySelector("#lock_box"),x=e.querySelector("#heart_box"),u=i-10;d.setAttribute("cx",`${u}`),f.setAttribute("x1",`${u}`),f.setAttribute("x2",`${u}`),v.setAttribute("x1",""+(u-6)),v.setAttribute("x2",""+(u-6+11.2)),g.setAttribute("x",""+(u-6)),p.setAttribute("x",""+(u-6-2)),c.setAttribute("x",""+(u-6-2-2)),h.setAttribute("x",""+(u-6-2-2-4)),b.setAttribute("x",""+(u-6)),x.setAttribute("x",""+(u-6)),n.parentElement.style.opacity="1"}(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout((()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)}),80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then((e=>{if(console.log("elevate-init",e),this.initLevelProgressbar(),!this.levels)return;this.levels.sort(((e,t)=>e.firstEntryPoints>t.firstEntryPoints?1:-1));const t=this.playerElevateLevel.loyaltyPoints;let n=0;this.levels.forEach(((e,i)=>{t>e.firstEntryPoints&&(n=i)})),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:n})}))}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return i(this)}static get watchers(){return{params:["onParamsChanged"]}}};E.style=':host {\n display: block;\n width: 360px;\n height: 230px;\n}\n\n.ElevateCardWrapper {\n contain: layout inline-size;\n width: 100%;\n height: fit-content;\n min-height: 218px;\n}\n\n.Outer {\n container-type: inline-size;\n font-size: 12px;\n background-size: cover;\n background-repeat: no-repeat;\n line-height: initial;\n width: 100%;\n height: 100%;\n}\n\n.Dark {\n color: var(--emw--color-gray150, #efefef);\n}\n\n.Light {\n color: var(--emw--color-black, #0e0e0e);\n}\n\n@container (min-width: 381px) {\n .Outer {\n background-size: cover;\n }\n .Outer .OuterCover {\n min-height: 190px;\n }\n}\n@container (min-width: 260px) {\n .Outer {\n background-size: contain;\n }\n}\n.OuterCover {\n width: 100%;\n height: 100%;\n content: "";\n background-repeat: no-repeat;\n background-size: cover;\n border-radius: 15px;\n}\n\n.Inner {\n display: flex;\n flex-direction: column;\n min-height: 158px;\n}\n.Inner .Content {\n padding: 15px;\n flex-wrap: wrap;\n gap: 8px;\n}\n.Inner .Row {\n display: flex;\n flex-direction: row;\n}\n.Inner .CardCell {\n display: flex;\n}\n.Inner .LevelProgress svg {\n transition: opacity 0.4s;\n}\n.Inner .LevelInfo {\n display: flex;\n flex-direction: column;\n}\n.Inner .LevelInfo .ElevateLevel .LevelName {\n height: 28px;\n border-radius: 5px;\n line-height: 28px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.Inner .LevelInfo.Level0 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level0-bg0, #E2792C) 0%, var(--emw--elevate-color-level0-bg1, rgba(242, 151, 99, 0)) 100%);\n}\n.Inner .LevelInfo.Level1 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level1-bg0, #BEBFED) 0%, var(--emw--elevate-color-level1-bg1, rgba(216, 217, 233, 0)) 100%);\n}\n.Inner .LevelInfo.Level2 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level2-bg0, #FCC410) 0%, var(--emw--elevate-color-level2-bg1, rgba(255, 189, 43, 0)) 100%);\n}\n.Inner .LevelInfo.Level3 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level3-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level3-bg1, rgba(203, 202, 245, 0)) 100%);\n}\n.Inner .LevelInfo.Level4 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level4-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level4-bg1, rgba(203, 202, 245, 0)) 100%);\n}\n.Inner .LevelInfo .ElevateLevel {\n display: flex;\n}\n.Inner .LevelInfo {\n flex: 1;\n flex-grow: 1;\n min-width: 150px;\n}\n.Inner .PlayerImg {\n width: 29%;\n margin: auto;\n max-width: 100px;\n min-width: 30px;\n order: 0;\n}\n.Inner .PlayerAvatar {\n max-width: 100px;\n flex-basis: 100px;\n height: auto;\n margin: auto;\n padding-top: 10px;\n}\n.Inner .PlayerAvatar .Avatar, .Inner .PlayerAvatar .Badge {\n width: 100%;\n height: 100%;\n}\n.Inner .PlayerAvatar .Avatar {\n border-radius: 50%;\n background-size: contain;\n background-repeat: no-repeat;\n}\n.Inner .ElevateLevel .ExpirationDate {\n max-width: 138px;\n min-width: 118px;\n}\n.Inner .PlayerName, .Inner .RedeemButton, .Inner .ElevateLevel {\n text-transform: capitalize;\n width: 100%;\n}\n.Inner .PlayerName {\n font-size: 16px;\n}\n.Inner .Row .PointsInfo {\n display: table;\n font-weight: 600;\n}\n.Inner .Row .Redeem {\n justify-content: flex-end;\n margin-left: auto;\n}\n.Inner .Row .Redeem:hover {\n color: var(--emw--elevate-color-redeem-hover, #00ABA4);\n cursor: pointer;\n}\n.Inner .Row .RedeemButton:hover span {\n color: var(emfe-w-elevate-color-redeem-text-hover, #f1f1f1);\n font-weight: bold;\n}\n.Inner .Row .RedeemButton {\n width: 95px;\n height: 35px;\n display: flex;\n align-items: center;\n border-radius: 10px;\n 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%);\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n}\n.Inner .Row .RedeemButton span {\n color: var(--emw--color-white, #fff);\n line-height: 18px;\n font-size: 15px;\n text-align: center;\n width: 100%;\n}\n.Inner .Row .Points {\n font-size: large;\n vertical-align: middle;\n}\n.Inner .Row .Points .XP {\n font-size: x-small;\n}\n.Inner .Row .ExpirationPoints {\n font-size: small;\n text-align: right;\n font-weight: bold;\n color: var(--emw--color-red, #9e595f);\n}';const B=class{constructor(e){t(this,e),this.isPointDetailCard="earningRule"===this.buttonType,this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.cardTitle=void 0,this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0,this.elevateSPTotal=void 0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal,this.elevateSPTotal=e.detail.loyaltyWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.pointExpireString))}onDetailsClick(){window.postMessage({type:this.isPointDetailCard?"BEEPointRulesClicked":"BEEDetailsClicked",path:this.isPointDetailCard?"player-elevate-level":"player-elevate-point-details"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}render(){const t=a("../static/card-ground.svg"),n=a("../static/card-ground-over.svg");return e("div",{key:"4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17",class:`ElevateCardWrapper ${this.theme}`},e("div",{key:"ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253",class:"PointsCard Outer ",style:{backgroundImage:`url(${t}`}},e("general-styling-wrapper",{key:"c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:o,translationUrl:this.translationUrl}),e("player-elevate-card-data",{key:"4371faac6967c5b3eced57f6251064ea4e1d6a65",params:this.paramProxy}),e("div",{key:"c78235a6fdc2aed90df898f007b5ee091cece8dc",class:"OuterCover Inner",style:{backgroundImage:`url(${n}`}},e("div",{key:"025e779223c1c85c11998be8389a8ff836a31e6c",class:"Content Row"},this.playerElevateLevel&&e(r,{key:"68daa6047dc93d2596d8b2309a26f56960737617"},e("div",{key:"6a2d2b2e7d234bceaf3d9240c5d4f2eb80395319",class:"PlayerImg"},e(p,{key:"aeaf35ad8055ad4f7312922c8600ea58d09be74f",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),e("div",{key:"bd51ce868b4d8a547f40ec55548bbf3cfa416534",class:`LevelInfo ${this.playerElevateLevel.name}`},e("div",{key:"5f4d77a5b43c8efee850b9813bc1c8e61d27d45d",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:l("spendablePoints")),e("div",{key:"bae5dc76d00c98aed803601c19fe3bf1aa4418d5",class:"PointsTxt SPPoints"},e(g,{key:"59d51bd37f44ed23108fc4356af41c01668354e3",spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),e("a",{key:"3a923bea242ae5fa412f4448dca7277b3588621e",class:"TC",onClick:()=>{this.onDetailsClick()}},l("termAndConditions",this.language))),this.pointExpireString&&e("div",{key:"8803ae8d343885da58dfa04b9a4474ff473b5a74",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};B.style=":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}";export{x as bonus_elevate_shop,y as bonus_pagination_nav,P as general_styling_wrapper,E as player_elevate_card_data,B as player_elevate_pointcard}
|
|
@@ -83,534 +83,6 @@ const renderGifts = (gifts, locale, redeem) => {
|
|
|
83
83
|
})));
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
function a() {
|
|
87
|
-
}
|
|
88
|
-
function M(t) {
|
|
89
|
-
return t();
|
|
90
|
-
}
|
|
91
|
-
function O() {
|
|
92
|
-
return /* @__PURE__ */ Object.create(null);
|
|
93
|
-
}
|
|
94
|
-
function y(t) {
|
|
95
|
-
t.forEach(M);
|
|
96
|
-
}
|
|
97
|
-
function N(t) {
|
|
98
|
-
return typeof t == "function";
|
|
99
|
-
}
|
|
100
|
-
function R(t, e) {
|
|
101
|
-
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
102
|
-
}
|
|
103
|
-
function T(t) {
|
|
104
|
-
return Object.keys(t).length === 0;
|
|
105
|
-
}
|
|
106
|
-
function H(t, e) {
|
|
107
|
-
t.appendChild(e);
|
|
108
|
-
}
|
|
109
|
-
function U(t, e, n) {
|
|
110
|
-
const s = I(t);
|
|
111
|
-
if (!s.getElementById(e)) {
|
|
112
|
-
const i = v("style");
|
|
113
|
-
i.id = e, i.textContent = n, z(s, i);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function I(t) {
|
|
117
|
-
if (!t)
|
|
118
|
-
return document;
|
|
119
|
-
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
120
|
-
return e && /** @type {ShadowRoot} */
|
|
121
|
-
e.host ? (
|
|
122
|
-
/** @type {ShadowRoot} */
|
|
123
|
-
e
|
|
124
|
-
) : t.ownerDocument;
|
|
125
|
-
}
|
|
126
|
-
function z(t, e) {
|
|
127
|
-
return H(
|
|
128
|
-
/** @type {Document} */
|
|
129
|
-
t.head || t,
|
|
130
|
-
e
|
|
131
|
-
), e.sheet;
|
|
132
|
-
}
|
|
133
|
-
function B(t, e, n) {
|
|
134
|
-
t.insertBefore(e, n || null);
|
|
135
|
-
}
|
|
136
|
-
function E(t) {
|
|
137
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
138
|
-
}
|
|
139
|
-
function v(t) {
|
|
140
|
-
return document.createElement(t);
|
|
141
|
-
}
|
|
142
|
-
function D(t, e, n) {
|
|
143
|
-
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
144
|
-
}
|
|
145
|
-
function F(t) {
|
|
146
|
-
return Array.from(t.childNodes);
|
|
147
|
-
}
|
|
148
|
-
function G(t) {
|
|
149
|
-
const e = {};
|
|
150
|
-
return t.childNodes.forEach(
|
|
151
|
-
/** @param {Element} node */
|
|
152
|
-
(n) => {
|
|
153
|
-
e[n.slot || "default"] = !0;
|
|
154
|
-
}
|
|
155
|
-
), e;
|
|
156
|
-
}
|
|
157
|
-
let p;
|
|
158
|
-
function _(t) {
|
|
159
|
-
p = t;
|
|
160
|
-
}
|
|
161
|
-
function J() {
|
|
162
|
-
if (!p)
|
|
163
|
-
throw new Error("Function called outside component initialization");
|
|
164
|
-
return p;
|
|
165
|
-
}
|
|
166
|
-
function V(t) {
|
|
167
|
-
J().$$.on_mount.push(t);
|
|
168
|
-
}
|
|
169
|
-
const $ = [], w = [];
|
|
170
|
-
let h = [];
|
|
171
|
-
const A = [], q = /* @__PURE__ */ Promise.resolve();
|
|
172
|
-
let x = !1;
|
|
173
|
-
function K() {
|
|
174
|
-
x || (x = !0, q.then(m));
|
|
175
|
-
}
|
|
176
|
-
function k(t) {
|
|
177
|
-
h.push(t);
|
|
178
|
-
}
|
|
179
|
-
const b = /* @__PURE__ */ new Set();
|
|
180
|
-
let f = 0;
|
|
181
|
-
function m() {
|
|
182
|
-
if (f !== 0)
|
|
183
|
-
return;
|
|
184
|
-
const t = p;
|
|
185
|
-
do {
|
|
186
|
-
try {
|
|
187
|
-
for (; f < $.length; ) {
|
|
188
|
-
const e = $[f];
|
|
189
|
-
f++, _(e), Q(e.$$);
|
|
190
|
-
}
|
|
191
|
-
} catch (e) {
|
|
192
|
-
throw $.length = 0, f = 0, e;
|
|
193
|
-
}
|
|
194
|
-
for (_(null), $.length = 0, f = 0; w.length; )
|
|
195
|
-
w.pop()();
|
|
196
|
-
for (let e = 0; e < h.length; e += 1) {
|
|
197
|
-
const n = h[e];
|
|
198
|
-
b.has(n) || (b.add(n), n());
|
|
199
|
-
}
|
|
200
|
-
h.length = 0;
|
|
201
|
-
} while ($.length);
|
|
202
|
-
for (; A.length; )
|
|
203
|
-
A.pop()();
|
|
204
|
-
x = !1, b.clear(), _(t);
|
|
205
|
-
}
|
|
206
|
-
function Q(t) {
|
|
207
|
-
if (t.fragment !== null) {
|
|
208
|
-
t.update(), y(t.before_update);
|
|
209
|
-
const e = t.dirty;
|
|
210
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function W(t) {
|
|
214
|
-
const e = [], n = [];
|
|
215
|
-
h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
|
|
216
|
-
}
|
|
217
|
-
const X = /* @__PURE__ */ new Set();
|
|
218
|
-
function Y(t, e) {
|
|
219
|
-
t && t.i && (X.delete(t), t.i(e));
|
|
220
|
-
}
|
|
221
|
-
function Z(t, e, n) {
|
|
222
|
-
const { fragment: s, after_update: i } = t.$$;
|
|
223
|
-
s && s.m(e, n), k(() => {
|
|
224
|
-
const r = t.$$.on_mount.map(M).filter(N);
|
|
225
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...r) : y(r), t.$$.on_mount = [];
|
|
226
|
-
}), i.forEach(k);
|
|
227
|
-
}
|
|
228
|
-
function tt(t, e) {
|
|
229
|
-
const n = t.$$;
|
|
230
|
-
n.fragment !== null && (W(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
231
|
-
}
|
|
232
|
-
function et(t, e) {
|
|
233
|
-
t.$$.dirty[0] === -1 && ($.push(t), K(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
234
|
-
}
|
|
235
|
-
function nt(t, e, n, s, i, r, o = null, l = [-1]) {
|
|
236
|
-
const c = p;
|
|
237
|
-
_(t);
|
|
238
|
-
const u = t.$$ = {
|
|
239
|
-
fragment: null,
|
|
240
|
-
ctx: [],
|
|
241
|
-
// state
|
|
242
|
-
props: r,
|
|
243
|
-
update: a,
|
|
244
|
-
not_equal: i,
|
|
245
|
-
bound: O(),
|
|
246
|
-
// lifecycle
|
|
247
|
-
on_mount: [],
|
|
248
|
-
on_destroy: [],
|
|
249
|
-
on_disconnect: [],
|
|
250
|
-
before_update: [],
|
|
251
|
-
after_update: [],
|
|
252
|
-
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
253
|
-
// everything else
|
|
254
|
-
callbacks: O(),
|
|
255
|
-
dirty: l,
|
|
256
|
-
skip_bound: !1,
|
|
257
|
-
root: e.target || c.$$.root
|
|
258
|
-
};
|
|
259
|
-
o && o(u.root);
|
|
260
|
-
let L = !1;
|
|
261
|
-
if (u.ctx = n ? n(t, e.props || {}, (d, C, ...S) => {
|
|
262
|
-
const j = S.length ? S[0] : C;
|
|
263
|
-
return u.ctx && i(u.ctx[d], u.ctx[d] = j) && (!u.skip_bound && u.bound[d] && u.bound[d](j), L && et(t, d)), C;
|
|
264
|
-
}) : [], u.update(), L = !0, y(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
|
|
265
|
-
if (e.hydrate) {
|
|
266
|
-
const d = F(e.target);
|
|
267
|
-
u.fragment && u.fragment.l(d), d.forEach(E);
|
|
268
|
-
} else
|
|
269
|
-
u.fragment && u.fragment.c();
|
|
270
|
-
e.intro && Y(t.$$.fragment), Z(t, e.target, e.anchor), m();
|
|
271
|
-
}
|
|
272
|
-
_(c);
|
|
273
|
-
}
|
|
274
|
-
let P;
|
|
275
|
-
typeof HTMLElement == "function" && (P = class extends HTMLElement {
|
|
276
|
-
/** The Svelte component constructor */
|
|
277
|
-
$$ctor;
|
|
278
|
-
/** Slots */
|
|
279
|
-
$$s;
|
|
280
|
-
/** The Svelte component instance */
|
|
281
|
-
$$c;
|
|
282
|
-
/** Whether or not the custom element is connected */
|
|
283
|
-
$$cn = !1;
|
|
284
|
-
/** Component props data */
|
|
285
|
-
$$d = {};
|
|
286
|
-
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
287
|
-
$$r = !1;
|
|
288
|
-
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
289
|
-
$$p_d = {};
|
|
290
|
-
/** @type {Record<string, Function[]>} Event listeners */
|
|
291
|
-
$$l = {};
|
|
292
|
-
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
293
|
-
$$l_u = /* @__PURE__ */ new Map();
|
|
294
|
-
constructor(t, e, n) {
|
|
295
|
-
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
296
|
-
}
|
|
297
|
-
addEventListener(t, e, n) {
|
|
298
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
299
|
-
const s = this.$$c.$on(t, e);
|
|
300
|
-
this.$$l_u.set(e, s);
|
|
301
|
-
}
|
|
302
|
-
super.addEventListener(t, e, n);
|
|
303
|
-
}
|
|
304
|
-
removeEventListener(t, e, n) {
|
|
305
|
-
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
306
|
-
const s = this.$$l_u.get(e);
|
|
307
|
-
s && (s(), this.$$l_u.delete(e));
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
async connectedCallback() {
|
|
311
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
312
|
-
let t = function(i) {
|
|
313
|
-
return () => {
|
|
314
|
-
let r;
|
|
315
|
-
return {
|
|
316
|
-
c: function() {
|
|
317
|
-
r = v("slot"), i !== "default" && D(r, "name", i);
|
|
318
|
-
},
|
|
319
|
-
/**
|
|
320
|
-
* @param {HTMLElement} target
|
|
321
|
-
* @param {HTMLElement} [anchor]
|
|
322
|
-
*/
|
|
323
|
-
m: function(c, u) {
|
|
324
|
-
B(c, r, u);
|
|
325
|
-
},
|
|
326
|
-
d: function(c) {
|
|
327
|
-
c && E(r);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
|
-
return;
|
|
334
|
-
const e = {}, n = G(this);
|
|
335
|
-
for (const i of this.$$s)
|
|
336
|
-
i in n && (e[i] = [t(i)]);
|
|
337
|
-
for (const i of this.attributes) {
|
|
338
|
-
const r = this.$$g_p(i.name);
|
|
339
|
-
r in this.$$d || (this.$$d[r] = g(r, i.value, this.$$p_d, "toProp"));
|
|
340
|
-
}
|
|
341
|
-
for (const i in this.$$p_d)
|
|
342
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
343
|
-
this.$$c = new this.$$ctor({
|
|
344
|
-
target: this.shadowRoot || this,
|
|
345
|
-
props: {
|
|
346
|
-
...this.$$d,
|
|
347
|
-
$$slots: e,
|
|
348
|
-
$$scope: {
|
|
349
|
-
ctx: []
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
const s = () => {
|
|
354
|
-
this.$$r = !0;
|
|
355
|
-
for (const i in this.$$p_d)
|
|
356
|
-
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
357
|
-
const r = g(
|
|
358
|
-
i,
|
|
359
|
-
this.$$d[i],
|
|
360
|
-
this.$$p_d,
|
|
361
|
-
"toAttribute"
|
|
362
|
-
);
|
|
363
|
-
r == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, r);
|
|
364
|
-
}
|
|
365
|
-
this.$$r = !1;
|
|
366
|
-
};
|
|
367
|
-
this.$$c.$$.after_update.push(s), s();
|
|
368
|
-
for (const i in this.$$l)
|
|
369
|
-
for (const r of this.$$l[i]) {
|
|
370
|
-
const o = this.$$c.$on(i, r);
|
|
371
|
-
this.$$l_u.set(r, o);
|
|
372
|
-
}
|
|
373
|
-
this.$$l = {};
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
377
|
-
// and setting attributes through setAttribute etc, this is helpful
|
|
378
|
-
attributeChangedCallback(t, e, n) {
|
|
379
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
380
|
-
}
|
|
381
|
-
disconnectedCallback() {
|
|
382
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
383
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
$$g_p(t) {
|
|
387
|
-
return Object.keys(this.$$p_d).find(
|
|
388
|
-
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
389
|
-
) || t;
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
function g(t, e, n, s) {
|
|
393
|
-
const i = n[t]?.type;
|
|
394
|
-
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
395
|
-
return e;
|
|
396
|
-
if (s === "toAttribute")
|
|
397
|
-
switch (i) {
|
|
398
|
-
case "Object":
|
|
399
|
-
case "Array":
|
|
400
|
-
return e == null ? null : JSON.stringify(e);
|
|
401
|
-
case "Boolean":
|
|
402
|
-
return e ? "" : null;
|
|
403
|
-
case "Number":
|
|
404
|
-
return e ?? null;
|
|
405
|
-
default:
|
|
406
|
-
return e;
|
|
407
|
-
}
|
|
408
|
-
else
|
|
409
|
-
switch (i) {
|
|
410
|
-
case "Object":
|
|
411
|
-
case "Array":
|
|
412
|
-
return e && JSON.parse(e);
|
|
413
|
-
case "Boolean":
|
|
414
|
-
return e;
|
|
415
|
-
case "Number":
|
|
416
|
-
return e != null ? +e : e;
|
|
417
|
-
default:
|
|
418
|
-
return e;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
function it(t, e, n, s, i, r) {
|
|
422
|
-
let o = class extends P {
|
|
423
|
-
constructor() {
|
|
424
|
-
super(t, n, i), this.$$p_d = e;
|
|
425
|
-
}
|
|
426
|
-
static get observedAttributes() {
|
|
427
|
-
return Object.keys(e).map(
|
|
428
|
-
(l) => (e[l].attribute || l).toLowerCase()
|
|
429
|
-
);
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
return Object.keys(e).forEach((l) => {
|
|
433
|
-
Object.defineProperty(o.prototype, l, {
|
|
434
|
-
get() {
|
|
435
|
-
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
436
|
-
},
|
|
437
|
-
set(c) {
|
|
438
|
-
c = g(l, c, e), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
}), s.forEach((l) => {
|
|
442
|
-
Object.defineProperty(o.prototype, l, {
|
|
443
|
-
get() {
|
|
444
|
-
return this.$$c?.[l];
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
}), t.element = /** @type {any} */
|
|
448
|
-
o, o;
|
|
449
|
-
}
|
|
450
|
-
class st {
|
|
451
|
-
/**
|
|
452
|
-
* ### PRIVATE API
|
|
453
|
-
*
|
|
454
|
-
* Do not use, may change at any time
|
|
455
|
-
*
|
|
456
|
-
* @type {any}
|
|
457
|
-
*/
|
|
458
|
-
$$ = void 0;
|
|
459
|
-
/**
|
|
460
|
-
* ### PRIVATE API
|
|
461
|
-
*
|
|
462
|
-
* Do not use, may change at any time
|
|
463
|
-
*
|
|
464
|
-
* @type {any}
|
|
465
|
-
*/
|
|
466
|
-
$$set = void 0;
|
|
467
|
-
/** @returns {void} */
|
|
468
|
-
$destroy() {
|
|
469
|
-
tt(this, 1), this.$destroy = a;
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* @template {Extract<keyof Events, string>} K
|
|
473
|
-
* @param {K} type
|
|
474
|
-
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
475
|
-
* @returns {() => void}
|
|
476
|
-
*/
|
|
477
|
-
$on(e, n) {
|
|
478
|
-
if (!N(n))
|
|
479
|
-
return a;
|
|
480
|
-
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
481
|
-
return s.push(n), () => {
|
|
482
|
-
const i = s.indexOf(n);
|
|
483
|
-
i !== -1 && s.splice(i, 1);
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* @param {Partial<Props>} props
|
|
488
|
-
* @returns {void}
|
|
489
|
-
*/
|
|
490
|
-
$set(e) {
|
|
491
|
-
this.$$set && !T(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
const rt = "4";
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rt);
|
|
496
|
-
function ct(t, e) {
|
|
497
|
-
if (t) {
|
|
498
|
-
const n = document.createElement("style");
|
|
499
|
-
n.innerHTML = e, t.appendChild(n);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function ot(t, e) {
|
|
503
|
-
const n = new URL(e);
|
|
504
|
-
fetch(n.href).then((s) => s.text()).then((s) => {
|
|
505
|
-
const i = document.createElement("style");
|
|
506
|
-
i.innerHTML = s, t && t.appendChild(i);
|
|
507
|
-
}).catch((s) => {
|
|
508
|
-
console.error("There was an error while trying to load client styling from URL", s);
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
function lt(t, e, n) {
|
|
512
|
-
if (window.emMessageBus) {
|
|
513
|
-
const s = document.createElement("style");
|
|
514
|
-
window.emMessageBus.subscribe(e, (i) => {
|
|
515
|
-
s.innerHTML = i, t && t.appendChild(s);
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function ut(t) {
|
|
520
|
-
U(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
521
|
-
}
|
|
522
|
-
function dt(t) {
|
|
523
|
-
let e;
|
|
524
|
-
return {
|
|
525
|
-
c() {
|
|
526
|
-
e = v("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
527
|
-
},
|
|
528
|
-
m(n, s) {
|
|
529
|
-
B(n, e, s), t[4](e);
|
|
530
|
-
},
|
|
531
|
-
p: a,
|
|
532
|
-
i: a,
|
|
533
|
-
o: a,
|
|
534
|
-
d(n) {
|
|
535
|
-
n && E(e), t[4](null);
|
|
536
|
-
}
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
function ft(t, e, n) {
|
|
540
|
-
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: r } = e, o;
|
|
541
|
-
V(() => () => {
|
|
542
|
-
});
|
|
543
|
-
function l(c) {
|
|
544
|
-
w[c ? "unshift" : "push"](() => {
|
|
545
|
-
o = c, n(0, o);
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
return t.$$set = (c) => {
|
|
549
|
-
"clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
|
|
550
|
-
}, t.$$.update = () => {
|
|
551
|
-
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
552
|
-
3 && s && o && ct(o, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
553
|
-
5 && i && o && ot(o, i), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
554
|
-
9 && r && o && lt(o, `${r}.Style`);
|
|
555
|
-
}, [
|
|
556
|
-
o,
|
|
557
|
-
s,
|
|
558
|
-
i,
|
|
559
|
-
r,
|
|
560
|
-
l
|
|
561
|
-
];
|
|
562
|
-
}
|
|
563
|
-
class $t extends st {
|
|
564
|
-
constructor(e) {
|
|
565
|
-
super(), nt(
|
|
566
|
-
this,
|
|
567
|
-
e,
|
|
568
|
-
ft,
|
|
569
|
-
dt,
|
|
570
|
-
R,
|
|
571
|
-
{
|
|
572
|
-
clientstyling: 1,
|
|
573
|
-
clientstylingurl: 2,
|
|
574
|
-
mbsource: 3
|
|
575
|
-
},
|
|
576
|
-
ut
|
|
577
|
-
);
|
|
578
|
-
}
|
|
579
|
-
get clientstyling() {
|
|
580
|
-
return this.$$.ctx[1];
|
|
581
|
-
}
|
|
582
|
-
set clientstyling(e) {
|
|
583
|
-
this.$$set({ clientstyling: e }), m();
|
|
584
|
-
}
|
|
585
|
-
get clientstylingurl() {
|
|
586
|
-
return this.$$.ctx[2];
|
|
587
|
-
}
|
|
588
|
-
set clientstylingurl(e) {
|
|
589
|
-
this.$$set({ clientstylingurl: e }), m();
|
|
590
|
-
}
|
|
591
|
-
get mbsource() {
|
|
592
|
-
return this.$$.ctx[3];
|
|
593
|
-
}
|
|
594
|
-
set mbsource(e) {
|
|
595
|
-
this.$$set({ mbsource: e }), m();
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
it($t, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
599
|
-
|
|
600
|
-
function i(n) {
|
|
601
|
-
return function(...t) {
|
|
602
|
-
try {
|
|
603
|
-
return n.apply(this, t);
|
|
604
|
-
} catch (e) {
|
|
605
|
-
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"))
|
|
606
|
-
return !1;
|
|
607
|
-
throw e;
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
customElements.define = i(customElements.define);
|
|
612
|
-
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", $t.element);
|
|
613
|
-
|
|
614
86
|
const bonusElevateShopCss = ":host{display:block}svg circle{shape-rendering:crispEdges}.MainContainer{max-width:420px}.MainContainer player-elevate-pointcard{width:100%;height:220px}.MainContainer .ShopBottom{display:flex;flex-direction:row;justify-content:space-between}.Gifts{display:flex;justify-content:space-between;padding:15px;padding-left:-8px;padding-right:-8px;flex:0 0 45.1282051282%;flex-wrap:wrap;justify-content:flex-start;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black-150, #000000);font-weight:500;gap:10px;margin-top:-100px;position:relative;min-height:200px}.InfoContainer{display:flex;margin-top:17px;justify-content:space-between;flex-direction:column}.Gift{display:block;margin-bottom:10px;padding:8px;box-shadow:0px 18px 45px 0px var(--emw--color-black-150, rgba(167, 167, 167, 0.2));border-radius:11px;background:var(--emw--color-white, #FFFFFF)}.Gift .ImgContainer{width:160px;height:107px;border-radius:11px;box-shadow:0px 2px 6px 0px var(--emw--color-black-200, rgba(0, 0, 0, 0.2509803922));cursor:pointer;background-size:cover;background-position:center center;background-repeat:no-repeat}.Gift .Point{font-size:20px}.Gift .Title,.Gift .Description{padding-left:3px}.Gift .Title{font-size:14px;margin-top:10px}.Gift .Description{font-size:12px;color:var(--emw--color-black-100, #767171)}.Gift .AvaliableWrap{align-self:self-end}.Gift .AvaliableWrap.active{cursor:pointer}.Gift .AvaliableWrap.deactive{cursor:not-allowed}.Gift .AvaliableWrap span svg{width:var(--emw--elevate-avaliable-button-size, 46px)}.RedeemButton{width:100%;padding:5px 0px;border:2px solid var(--emw--button-border-color, rgba(8, 59, 23, 0.1098039216));text-align:center;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-bold, 700);line-height:var(--emw--font-size-medium, 14px);text-transform:uppercase;border-radius:var(--emw--border-radius-medium, 20px)}.RedeemButton.active{background:var(--emw--color-primary, #18CE51)}.RedeemButton.active:hover{background:var(--mmw--color-main-button-hover, #24B24E)}.RedeemButton.deactive{background:var(--mmw--color-disabled, rgba(153, 153, 153, 0.5019607843))}.NoContent{font-size:16px;color:var(--emw--color-black-100, #afafaf);text-align:center;height:120px;line-height:120px}";
|
|
615
87
|
const BonusElevateShopStyle0 = bonusElevateShopCss;
|
|
616
88
|
|
|
@@ -684,9 +156,7 @@ const BonusElevateShop = class {
|
|
|
684
156
|
}
|
|
685
157
|
}
|
|
686
158
|
loadGifts(renderer) {
|
|
687
|
-
if (this.isLoading)
|
|
688
|
-
return index.h("general-animation-loading", null);
|
|
689
|
-
}
|
|
159
|
+
if (this.isLoading) ;
|
|
690
160
|
else {
|
|
691
161
|
if (this.gifts.length === 0) {
|
|
692
162
|
return (index.h("div", { class: "NoContent" }, this.locale.noContent));
|
|
@@ -738,7 +208,7 @@ const BonusElevateShop = class {
|
|
|
738
208
|
}));
|
|
739
209
|
}
|
|
740
210
|
render() {
|
|
741
|
-
return (index.h("main", { key: '
|
|
211
|
+
return (index.h("main", { key: 'f0dd6fc6c1585429fadefd2ccd112133545b6934', class: "MainContainer" }, index.h("general-styling-wrapper", { key: 'ccd63c12e7faf16c940174ccde3cb4e327139377', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: translation, translationUrl: this.translationUrl }), index.h("player-elevate-pointcard", { key: 'bf4cd864961a149dd909509e4e19acc88d54cce2', endpoint: this.endpoint, session: this.session, language: this.language, clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling, translationUrl: this.translationUrl }), this.loadGifts(renderGifts.bind(this, this.gifts, this.locale, this.redeemGiftConfirm.bind(this))), index.h("div", { key: 'b18184d88f98e66a5c74e0330c03a5a2d1f7a08a', class: "ShopBottom" }, index.h("bonus-pagination-nav", { key: '70a8b38e6f40031106aac14482a8c4cb37ea8e97', total: this.total, offset: this.offset, limit: this.limit, tableId: this.shopListId, "nav-item-account": 7, arrowsActive: false, "display-page-numbers": "true" }))));
|
|
742
212
|
}
|
|
743
213
|
handleMessage(message) {
|
|
744
214
|
if (message.data.type === 'bee-redeem-confirmed' && message.data.id) {
|