@everymatrix/player-elevate-level 1.66.1 → 1.67.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.
@@ -118,9 +118,10 @@ const BonusElevateLevels = class {
118
118
  };
119
119
  }
120
120
  render() {
121
- return (index.h("div", { key: '327b5cd6a3bc756ce0696a0f2a4081f35bad7316', class: "ElevateLevelContent" }, index.h("elevate-levels-data", { key: 'cf1ab9a55cdaf9eba688bd524cb4a83d63563e77', scopeParams: this.elevateLevelParamProxy }), index.h("div", { key: '9c85b9a805712db07c7c99ac2db843062997f667', class: "LevelContent" }, this.elevateLevels ?
121
+ var _a;
122
+ return (index.h("div", { key: '327b5cd6a3bc756ce0696a0f2a4081f35bad7316', class: "ElevateLevelContent" }, index.h("elevate-levels-data", { key: 'cf1ab9a55cdaf9eba688bd524cb4a83d63563e77', scopeParams: this.elevateLevelParamProxy }), index.h("div", { key: '9c85b9a805712db07c7c99ac2db843062997f667', class: "LevelContent" }, ((_a = this.elevateLevels) === null || _a === void 0 ? void 0 : _a.length) ?
122
123
  index.h("elevate-level-list", { language: this.language, selectedLevelId: this.selectedLevelId, levels: this.elevateLevels }) : translate('noLevelsSet', this.language), this.currentLevel &&
123
- index.h("elevate-level-presentation", { key: '0fecb2a451caeef4512dc6f2af4fd3406610cc72', elevateLevel: this.currentLevel })), this.errorMessage && index.h("div", { key: 'ef746907148df80338fd2300322cd8eea9342f51' }, this.errorMessage), index.h("general-styling-wrapper", { key: 'e3d82ef1b7e5986354e18d875f9e3c547ff8adba', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl })));
124
+ index.h("elevate-level-presentation", { key: '57ea5391608a7c4c4f7eb7f130a8c9f982fe5045', elevateLevel: this.currentLevel })), this.errorMessage && index.h("div", { key: '46121a28053608f8e9632a8a3976c0b33c4d5e72' }, this.errorMessage), index.h("general-styling-wrapper", { key: 'bdbaeee850d2ad84bf26fa81979ae662469a8b41', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl })));
124
125
  }
125
126
  static get watchers() { return {
126
127
  "selectedLevelId": ["selectedLevelIdChangedHandler"],
@@ -358,8 +359,14 @@ const mergeTranslations = (url, target) => {
358
359
  .then((res) => res.json())
359
360
  .then((data) => {
360
361
  Object.keys(data).forEach((item) => {
361
- target[item] = target[item] ? target[item] : target['en'];
362
+ target[item] = target[item] || target['en'];
362
363
  for (let key in data[item]) {
364
+ //if there is a key that no exists in target[en]
365
+ if (!target['en'][key]) {
366
+ return;
367
+ }
368
+ // if the key is not in target, then take from en
369
+ target[item][key] = target[item][key] || target['en'][key];
363
370
  if (typeof data[item][key] === 'object') {
364
371
  Object.keys(data[item][key]).forEach((subKey) => {
365
372
  target[item][key][subKey] = data[item][key][subKey];
@@ -114,9 +114,10 @@ const BonusElevateLevels = class {
114
114
  };
115
115
  }
116
116
  render() {
117
- return (h("div", { key: '327b5cd6a3bc756ce0696a0f2a4081f35bad7316', class: "ElevateLevelContent" }, h("elevate-levels-data", { key: 'cf1ab9a55cdaf9eba688bd524cb4a83d63563e77', scopeParams: this.elevateLevelParamProxy }), h("div", { key: '9c85b9a805712db07c7c99ac2db843062997f667', class: "LevelContent" }, this.elevateLevels ?
117
+ var _a;
118
+ return (h("div", { key: '327b5cd6a3bc756ce0696a0f2a4081f35bad7316', class: "ElevateLevelContent" }, h("elevate-levels-data", { key: 'cf1ab9a55cdaf9eba688bd524cb4a83d63563e77', scopeParams: this.elevateLevelParamProxy }), h("div", { key: '9c85b9a805712db07c7c99ac2db843062997f667', class: "LevelContent" }, ((_a = this.elevateLevels) === null || _a === void 0 ? void 0 : _a.length) ?
118
119
  h("elevate-level-list", { language: this.language, selectedLevelId: this.selectedLevelId, levels: this.elevateLevels }) : translate('noLevelsSet', this.language), this.currentLevel &&
119
- h("elevate-level-presentation", { key: '0fecb2a451caeef4512dc6f2af4fd3406610cc72', elevateLevel: this.currentLevel })), this.errorMessage && h("div", { key: 'ef746907148df80338fd2300322cd8eea9342f51' }, this.errorMessage), h("general-styling-wrapper", { key: 'e3d82ef1b7e5986354e18d875f9e3c547ff8adba', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl })));
120
+ h("elevate-level-presentation", { key: '57ea5391608a7c4c4f7eb7f130a8c9f982fe5045', elevateLevel: this.currentLevel })), this.errorMessage && h("div", { key: '46121a28053608f8e9632a8a3976c0b33c4d5e72' }, this.errorMessage), h("general-styling-wrapper", { key: 'bdbaeee850d2ad84bf26fa81979ae662469a8b41', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl })));
120
121
  }
121
122
  static get watchers() { return {
122
123
  "selectedLevelId": ["selectedLevelIdChangedHandler"],
@@ -354,8 +355,14 @@ const mergeTranslations = (url, target) => {
354
355
  .then((res) => res.json())
355
356
  .then((data) => {
356
357
  Object.keys(data).forEach((item) => {
357
- target[item] = target[item] ? target[item] : target['en'];
358
+ target[item] = target[item] || target['en'];
358
359
  for (let key in data[item]) {
360
+ //if there is a key that no exists in target[en]
361
+ if (!target['en'][key]) {
362
+ return;
363
+ }
364
+ // if the key is not in target, then take from en
365
+ target[item][key] = target[item][key] || target['en'][key];
359
366
  if (typeof data[item][key] === 'object') {
360
367
  Object.keys(data[item][key]).forEach((subKey) => {
361
368
  target[item][key][subKey] = data[item][key][subKey];
@@ -1 +1 @@
1
- import{r as e,h as t,c as n,H as i,g as a,a as l,F as s}from"./p-46f2ec3d.js";import{t as o,T as r}from"./p-d423d988.js";import{r as d,t as h,g as c,P as v,a as p,b as f,c as g}from"./p-51886815.js";const b=["ro","en","fr","hr","tr"],u={en:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"},fr:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"},hr:{level:"Razina",seeAll:"Vidi sve",privilegesFor:"Privilegije za",termsAndConditions:"Uvjeti i odredbe",noLevelsSet:"There is no level set",points:"Points"},ro:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"},tr:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"}},y=(e,t)=>{const n=t;return u[void 0!==n&&(b.includes(n)||u[n])?n:"en"][e]},x=class{constructor(t){e(this,t),this.clientStyling="",this.clientStylingUrl="",this.endpoint=void 0,this.language="en",this.translationUrl="",this.selectedLevelId=void 0,this.showDefault=void 0,this.elevateLevelParamProxy=void 0,this.elevateLevels=[],this.currentLevel=void 0,this.errorMessage=void 0}selectedLevelChangedHandler(e){e.detail&&(this.currentLevel=Object.assign({},e.detail.level))}selectedLevelIdChangedHandler(){if(this.selectedLevelId&&this.elevateLevels){const e=this.elevateLevels.filter((e=>e.id==this.selectedLevelId))[0];this.currentLevel=Object.assign({},e)}}onSessionOrEndpointChange(){this.elevateLevelParamProxy=Object.assign(Object.assign({},this.elevateLevelParamProxy),{endpoint:this.endpoint,language:this.language})}elevateLevelsDataChangeHandler(e){e.detail&&(e.detail.currentLevel&&(this.currentLevel=Object.assign({},e.detail.currentLevel)),e.detail.elevateLevels&&(this.elevateLevels=[...e.detail.elevateLevels]),e.detail.clearError&&(this.errorMessage=null),e.detail.errorMessage&&e.detail.errorMessage.errorWhenLoadElevateLevels&&(this.errorMessage=y("loadElevateLevelErrorMessage",this.language)))}onTCClick(){window.postMessage({type:"termAndConditionClicked"},window.location.href)}componentWillLoad(){this.elevateLevelParamProxy={endpoint:this.endpoint,language:this.language,selectedLevelId:this.selectedLevelId,showDefault:this.showDefault}}render(){return t("div",{key:"327b5cd6a3bc756ce0696a0f2a4081f35bad7316",class:"ElevateLevelContent"},t("elevate-levels-data",{key:"cf1ab9a55cdaf9eba688bd524cb4a83d63563e77",scopeParams:this.elevateLevelParamProxy}),t("div",{key:"9c85b9a805712db07c7c99ac2db843062997f667",class:"LevelContent"},this.elevateLevels?t("elevate-level-list",{language:this.language,selectedLevelId:this.selectedLevelId,levels:this.elevateLevels}):y("noLevelsSet",this.language),this.currentLevel&&t("elevate-level-presentation",{key:"0fecb2a451caeef4512dc6f2af4fd3406610cc72",elevateLevel:this.currentLevel})),this.errorMessage&&t("div",{key:"ef746907148df80338fd2300322cd8eea9342f51"},this.errorMessage),t("general-styling-wrapper",{key:"e3d82ef1b7e5986354e18d875f9e3c547ff8adba",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:u,translationUrl:this.translationUrl}))}static get watchers(){return{selectedLevelId:["selectedLevelIdChangedHandler"],elevateLevels:["selectedLevelIdChangedHandler"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};var w;x.style=":host{display:block}.ElevateLevelContent{padding:20px;position:relative}.ElevateLevelContent .Privileges{padding-bottom:30px}.ElevateLevelContent .tc{position:absolute;right:10px;bottom:10px;text-align:right;display:none}",function(e){e[e.slideToRight=1]="slideToRight",e[e.slideToLeft=-1]="slideToLeft"}(w||(w={}));const m=class{constructor(t){var i;e(this,t),this.selectedLevelChanged=n(this,"selectedLevelChanged",7),this.minOffset=0,this.isMobile=!!((i=window.navigator.userAgent).toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.levels=void 0,this.language=void 0,this.selectedLevelId=void 0,this.isShowSliderButton=!1,this.touchPosStart=void 0,this.touchPosEnd=void 0,this.offset=0}onLevelClicked(e){this.selectedLevelChanged.emit({level:e}),this.selectedLevelId=e.id}levelsChangedHandler(){this.initOffsetOfLevelItems()}initOffsetOfLevelItems(){if(!this.levels||0==this.levels.length||!this.selectedLevelId)return;const e=this.levels.findIndex((e=>this.selectedLevelId==e.id));if(this.onLevelClicked(this.levels[-1==e?0:e]),this.levels.length<=this.moveCountForOneTouch)return;let t=Math.floor((-1==e?1:e+1)/this.moveCountForOneTouch)*this.moveCountForOneTouch*this.childElementWidth*-1;this.offset=t<=this.minOffset?this.minOffset:t>=0?0:t}onTouchStart(e){this.touchPosStart={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}}onTouchMove(e){this.touchPosEnd={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY};const t=this.touchPosEnd.clientX-this.touchPosStart.clientX,n=this.touchPosEnd.clientY-this.touchPosStart.clientY;Math.abs(t)>Math.abs(n)&&this.slideTo(t>0?w.slideToRight:w.slideToLeft)}slideTo(e){let t=this.levelsElement.offsetLeft+this.childElementWidth*this.moveCountForOneTouch*e;if(t%this.childElementWidth!=0){const n=Math.floor(t/this.childElementWidth)*this.childElementWidth,i=Math.ceil(t/this.childElementWidth)*this.childElementWidth;t=e==w.slideToRight?n:i}this.offset=t<this.minOffset?this.minOffset:t>=0?0:t}initLevelSlider(){var e;if(!(null===(e=this.levelsElement)||void 0===e?void 0:e.firstElementChild))return void console.log("Widget[elevate-level-list] DOM is not ready.");this.isShowSliderButton=!this.isMobile&&this.levelsElement.clientWidth>this.levelsElement.parentElement.clientWidth,this.minOffset=this.levelsElement.parentElement.clientWidth-this.levelsElement.clientWidth,this.childElementWidth=this.levelsElement.firstElementChild.clientWidth,this.moveCountForOneTouch=Math.ceil(this.levelsElement.parentElement.clientWidth/this.childElementWidth)-1;const t=this.levelsElement.childElementCount;this.childElementWidth+=(this.levelsElement.clientWidth-this.childElementWidth*t)/(t-1)}debounce(e,t){{let n;return()=>{clearTimeout(n),n=setTimeout((()=>{e()}),t)}}}handleResize(){this.debounce(this.initLevelSlider.bind(this),200)()}componentDidRender(){this.host.componentOnReady().then((()=>{this.initLevelSlider()}))}render(){return t(i,{key:"d88d3434af89a0f8fd20a97735121fdf297905ab"},this.levels&&[t("div",{key:"cff36ba584e2474a65a1b95545b00937ecd06c8c",class:`SliderButton LeftButton ${0==this.offset?"Disabled":""} ${this.isShowSliderButton?"":"Hidden"}`,onClick:()=>this.slideTo(w.slideToRight)},t("svg",{key:"640b4dd9b26b4097d15623f3e9c6b14b9a60b37e",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"0a50ffc9319ad33ed61e4696c37a0bfe6090518c","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"}))),t("div",{key:"314c5b4c5bbc0d50041a66fdf474441ea418345a",class:"LevelItemsWrapper"},t("div",{key:"ff1fb084aeb20319c36a3420e9eb8693ea81b144",style:{left:`${this.offset}px`},class:"LevelItems "+(this.isMobile?"Mobile":""),id:"levelItems",ref:e=>{this.levelsElement=e}},this.levels.map(((e,n)=>t("div",{class:"Item "+(this.selectedLevelId==e.id?"Active":""),onClick:this.onLevelClicked.bind(this,e)},t("img",{alt:`Presentation Icon for ${e.presentation.displayName}`,class:"LevelImg",src:e.presentation.asset}),t("span",{class:"LevelName",title:e.presentation.displayName},e.presentation.displayName),t("span",{class:"LevelPoints"},0==n?"":">",e.firstEntryPoints," ",y("points",this.language))))))),t("div",{key:"8dae638ca436c7e747a0f737028588ee5d040edd",class:`SliderButton RightButton ${this.offset<=this.minOffset?"Disabled":""} ${this.isShowSliderButton?"":"Hidden"}`,onClick:()=>this.slideTo(w.slideToLeft)},t("svg",{key:"bba16b49668567aaa41beedd9ea461d256c6812d",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"36a0b6f3ffe8b50ebea9a4ec1c01e3341c440949","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})))])}get host(){return a(this)}static get watchers(){return{selectedLevelId:["levelsChangedHandler"]}}};m.style="elevate-level-list{display:flex;flex-direction:row}.LevelItemsWrapper{display:flex;flex:1;margin-top:10px;min-height:30px;transition-property:all;position:relative;height:138px;overflow-x:hidden}.Mobile.LevelItems{overflow-x:hidden}.LevelItems{overflow-x:auto;display:flex;flex-direction:row;gap:10px;left:0;position:absolute;transition:left 0.5s ease-in-out}.LevelItems .Item:hover,.LevelItems .Item.Active{background-color:var(--emw--color-gray-50, rgb(244, 244, 244));box-shadow:0px 4px 13px 0px rgba(0, 0, 0, 0.25)}.LevelItems .Item{width:86px;height:125px;border-radius:15px;text-align:center;display:flex;flex-direction:column;cursor:pointer}.LevelItems .Item .LevelName{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.LevelItems .Item .LevelPoints{color:var(--emw--color-gray-100, rgb(118, 113, 113));font-size:10px}.LevelItems .Item .LevelImg{width:65px;height:68px;margin:11px auto}.SliderButton{display:flex;width:29px;align-items:center;cursor:pointer}.SliderButton.Disabled svg{stroke:var(--emw--color-gray-50, #cbc5c5)}.SliderButton.Hidden{display:none}";const L=class{constructor(t){e(this,t),this.elevateLevel=void 0}render(){return t(i,{key:"16d128717e716f7ca7d3bb77fc3a2e67209318b6"},t("div",{key:"658657abdfc64844bd2af40562efe40385e1735a",class:"Row Desc"},t("h3",{key:"ec5871c2f810c8c120bf99510717381175bc1ef4"},this.elevateLevel.presentation.displayName),t("p",{key:"865915c6eea90295238fb47eaa91c8f968199ca5"},t("span",{key:"2b90c6c5d6957b73fc4a0f53d53da0ca023a4f0a",class:"TxtDesc",innerHTML:this.elevateLevel.presentation.description}))))}};L.style=":host{display:block}.PriviliegeList{padding-inline-start:5px}.PriviliegeList li{display:flex}.PriviliegeList li .Img{width:80px}.PriviliegeList li .Img img{width:60px;margin:10px}.PriviliegeList li .Content h4{text-transform:capitalize;margin-block-start:10px}";var I,k,C,E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},P={exports:{}};I=P,k=P.exports,C=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==E)return E;throw new Error("unable to locate global object")}(),I.exports=k=C.fetch,C.fetch&&(k.default=C.fetch.bind(C)),k.Headers=C.Headers,k.Request=C.Request,k.Response=C.Response;const R=P.exports,T=class{constructor(t){e(this,t),this.elevateLevelsDataChange=n(this,"elevateLevelsDataChange",7),this.scopeParams=void 0}async componentWillRender(){if(!this.scopeParams.endpoint)return;let e=new URL(`${this.scopeParams.endpoint}/v1/elevate/levels?language=${this.scopeParams.language}`);await R(e.href).then((e=>e.json())).then((e=>{const t=e.data.sort(((e,t)=>e.firstEntryPoints<t.firstEntryPoints?-1:1));let n=this.scopeParams.selectedLevelId;if(!n&&this.scopeParams.showDefault&&t.length>0&&(n=t[0].id),n){const e=t.filter((e=>e.id==n))[0];this.elevateLevelsDataChange.emit({currentLevel:e})}this.elevateLevelsDataChange.emit({clearError:!0}),this.elevateLevelsDataChange.emit({elevateLevels:t})})).catch((e=>{this.elevateLevelsDataChange.emit({errorMessage:{type:"errorWhenLoadElevateLevels",err:e}}),console.error(e)}))}};T.style=":host{display:block}";const S=class{constructor(t){e(this,t),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]:n.en;for(let i in t[e])"object"==typeof t[e][i]?Object.keys(t[e][i]).forEach((a=>{n[e][i][a]=t[e][i][a]})):n[e][i]=t[e][i]})),e(!0)}))})));e.push(i)}var t,n;return await Promise.all(e)}render(){return t("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},t("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return a(this)}};function M(e){d(1,arguments);var t=h(e);return t.setHours(0,0,0,0),t}function _(e,t){return d(2,arguments),h(e).getTime()-h(t).getTime()}S.style=":host{display:block}";var D={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function B(e){return e?D[e]:D.trunc}const A=class{constructor(t){e(this,t),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,t){let n="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return n;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 i=e.aboutToExpire[0],a=function(e,t){d(2,arguments);var n=M(e),i=M(t),a=n.getTime()-c(n),l=i.getTime()-c(i);return Math.round((a-l)/864e5)}(new Date(i.expireTime),new Date);let l=0,s=0,r=0===a?`${t}Day`:t;return a<=0&&(l=function(e,t,n){d(2,arguments);var i=_(e,t)/36e5;return B(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=l>1?`${t}Hours`:`${t}Hour`,l<=0&&(s=function(e,t,n){d(2,arguments);var i=_(e,t)/6e4;return B(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=s>1?`${t}Minutes`:`${t}Minute`)),n=o(r,{expirationPoints:i.points,expireDay:Math.max(a,l,s),lang:this.params.language}),n}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,l;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,r=null===(l=e.data.loyaltyWallet)||void 0===l?void 0:l.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:o,loyaltyWalletTotal:r});let d=this.calcuatePointsToBeExpired(o,"coinsToBeExpired"),h=this.calcuatePointsToBeExpired(r,"pointsToBeExpired");(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,l=a*i-17<0?0:a*i-17,s=e.querySelector("#current_level"),o=e.querySelector("#filter_current_level"),r=e.querySelector("#circle_current_level");n.setAttribute("viewbox",`0 0 ${l} 28`),s.setAttribute("width",`${l}`),r.setAttribute("cx",`${l<6.5?6.5:l}`),o.setAttribute("x",""+(l-8));const d=e.querySelector("#lock"),h=e.querySelector("#filter_heart_ball"),c=e.querySelector("#filter_ball"),v=e.querySelector("#filter_heart"),p=e.querySelector("#filter_lock"),f=e.querySelector("#paint0_linear_ball"),g=e.querySelector("#paint1_linear_lock"),b=e.querySelector("#lock_box"),u=e.querySelector("#heart_box"),y=i-10;d.setAttribute("cx",`${y}`),g.setAttribute("x1",`${y}`),g.setAttribute("x2",`${y}`),f.setAttribute("x1",""+(y-6)),f.setAttribute("x2",""+(y-6+11.2)),p.setAttribute("x",""+(y-6)),v.setAttribute("x",""+(y-6-2)),c.setAttribute("x",""+(y-6-2-2)),h.setAttribute("x",""+(y-6-2-2-4)),b.setAttribute("x",""+(y-6)),u.setAttribute("x",""+(y-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 a(this)}static get watchers(){return{params:["onParamsChanged"]}}};A.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: var(--emw--border-radius-medium, 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 O=class{constructor(t){e(this,t),this.endpoint=void 0,this.session=void 0,this.playerAvatarUrl=void 0,this.language=void 0,this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.userLevelId=void 0}async setPlayerElevateLevelInfo(e){"playerElevateLeveLoaded"==e.type&&e.detail.elevateLevel&&(this.userLevelId=e.detail.elevateLevel.id)}render(){return t(i,{key:"8ff544f13c2709a4f5314e0c4e190ca70d9732ff"},t("div",{key:"90c75c6283ab1b7b83f5b9af8b163853852a5636",class:"PlayerElevateCard"},t("player-elevate-loyaltycard",{key:"be1ab26bc44443547364a64cc31e6bac42e8ba8e",playerName:this.playerName,dateFormat:this.dateFormat,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,clientStyling:`${this.clientStyling} .Outer{height: 185px}`,endpoint:this.endpoint,language:this.language,session:this.session})),t("div",{key:"d868908d61b3320a4c3751eab8cf8cdbd98c41c4",class:"ElevateLevelsInfo"},t("bonus-elevate-levels",{key:"715bc9c3d15e1ac07f4fc75217beeaa48875ec63",selectedLevelId:this.userLevelId,clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,language:this.language,endpoint:this.endpoint})),t("general-styling-wrapper",{key:"0e40a6825499a6c44e04dadce2079d995ecb2702",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl}))}};O.style=":host{display:block}.PlayerElevateCard{height:160px;width:100%;overflow:hidden}.ElevateLevelsInfo{background-color:var(--emw--color-background, #e6e8ea)}";const $=class{constructor(t){e(this,t),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=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),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelPoints(){var e,t;return(null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel)?null===(t=this.playerElevateLevel)||void 0===t?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const e=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return o("tipsForNextLevel",{pointsToReach:e,levelName:t.name,lang:this.language})}return""}render(){const e=l("../static/card-ground.svg"),n=l("../static/card-ground-over.svg");return t("div",{key:"39295a651da66747a20554699bba5f96b8ad5c35",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"78c34fe054fc2459f8af3354116cd21a68ce01be",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:r,translationUrl:this.translationUrl}),t("player-elevate-card-data",{key:"b53e4b59d4ee55a2f567efa09afab3d72969e6e4",params:this.paramProxy}),t("div",{key:"1f3e504440bab2df3a181058fad7149c85c48c14",class:"OuterCover Inner",style:{backgroundImage:`url(${n}`}},t("div",{key:"a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1",class:"Content Row"},this.playerElevateLevel&&t(s,{key:"5c104f5ba1a018219c6ed5f6e50af99b035a0344"},t("div",{key:"bd94591e6ab9298ab7c769fa48efaf314dc1a63b",class:"PlayerImg"},t(v,{key:"928849ce86d8c7a483eba7850efc83f8149bae43",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"37192c9b8502eb3c7d93914369df2d784c17e9f7",class:`LevelInfo ${this.playerElevateLevel.name}`},t(p,{key:"2684a177f4bb1053c4587fd4158666fb35ca23f4",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),t("div",{key:"173a37c63868f2d900c12af3ffc2d9a4a57550e4",class:"PointsRange"},t(f,{key:"a7111154f7dc547e0b05c70d24508bdd75c5d882",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),t(f,{key:"ad31574e7db81a7ecb7a06b28b1d4968cbcab93e",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),t(g,{key:"88ddfdb326edfb1de9519da6b3d0e5b514725e27"}),t("div",{key:"b9c79555a8001bd2c754d7573df04016da235c84",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&t("div",{key:"02da725060c9db4a8c1c2e8bad3426894d7f8f2c",class:"PointsInfo ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};$.style=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}";export{x as bonus_elevate_levels,m as elevate_level_list,L as elevate_level_presentation,T as elevate_levels_data,S as general_styling_wrapper,A as player_elevate_card_data,O as player_elevate_level,$ as player_elevate_loyaltycard}
1
+ import{r as e,h as t,c as n,H as i,g as a,a as l,F as s}from"./index-8b0eeaf7.js";import{t as o,T as r}from"./locale.utils-34e6f004.js";import{r as d,t as h,g as c,P as v,a as p,b as f,c as g}from"./player-elevate-card-items-e28305d4.js";const b=["ro","en","fr","hr","tr"],u={en:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"},fr:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"},hr:{level:"Razina",seeAll:"Vidi sve",privilegesFor:"Privilegije za",termsAndConditions:"Uvjeti i odredbe",noLevelsSet:"There is no level set",points:"Points"},ro:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"},tr:{level:"level",seeAll:"See All",termsAndConditions:"Terms & Conditions",loadElevateLevelErrorMessage:"Error when load elevate levels",noLevelsSet:"There is no level set",points:"Points"}},y=(e,t)=>{const n=t;return u[void 0!==n&&(b.includes(n)||u[n])?n:"en"][e]},x=class{constructor(t){e(this,t),this.clientStyling="",this.clientStylingUrl="",this.endpoint=void 0,this.language="en",this.translationUrl="",this.selectedLevelId=void 0,this.showDefault=void 0,this.elevateLevelParamProxy=void 0,this.elevateLevels=[],this.currentLevel=void 0,this.errorMessage=void 0}selectedLevelChangedHandler(e){e.detail&&(this.currentLevel=Object.assign({},e.detail.level))}selectedLevelIdChangedHandler(){if(this.selectedLevelId&&this.elevateLevels){const e=this.elevateLevels.filter((e=>e.id==this.selectedLevelId))[0];this.currentLevel=Object.assign({},e)}}onSessionOrEndpointChange(){this.elevateLevelParamProxy=Object.assign(Object.assign({},this.elevateLevelParamProxy),{endpoint:this.endpoint,language:this.language})}elevateLevelsDataChangeHandler(e){e.detail&&(e.detail.currentLevel&&(this.currentLevel=Object.assign({},e.detail.currentLevel)),e.detail.elevateLevels&&(this.elevateLevels=[...e.detail.elevateLevels]),e.detail.clearError&&(this.errorMessage=null),e.detail.errorMessage&&e.detail.errorMessage.errorWhenLoadElevateLevels&&(this.errorMessage=y("loadElevateLevelErrorMessage",this.language)))}onTCClick(){window.postMessage({type:"termAndConditionClicked"},window.location.href)}componentWillLoad(){this.elevateLevelParamProxy={endpoint:this.endpoint,language:this.language,selectedLevelId:this.selectedLevelId,showDefault:this.showDefault}}render(){var e;return t("div",{key:"327b5cd6a3bc756ce0696a0f2a4081f35bad7316",class:"ElevateLevelContent"},t("elevate-levels-data",{key:"cf1ab9a55cdaf9eba688bd524cb4a83d63563e77",scopeParams:this.elevateLevelParamProxy}),t("div",{key:"9c85b9a805712db07c7c99ac2db843062997f667",class:"LevelContent"},(null===(e=this.elevateLevels)||void 0===e?void 0:e.length)?t("elevate-level-list",{language:this.language,selectedLevelId:this.selectedLevelId,levels:this.elevateLevels}):y("noLevelsSet",this.language),this.currentLevel&&t("elevate-level-presentation",{key:"57ea5391608a7c4c4f7eb7f130a8c9f982fe5045",elevateLevel:this.currentLevel})),this.errorMessage&&t("div",{key:"46121a28053608f8e9632a8a3976c0b33c4d5e72"},this.errorMessage),t("general-styling-wrapper",{key:"bdbaeee850d2ad84bf26fa81979ae662469a8b41",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:u,translationUrl:this.translationUrl}))}static get watchers(){return{selectedLevelId:["selectedLevelIdChangedHandler"],elevateLevels:["selectedLevelIdChangedHandler"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};var w;x.style=":host{display:block}.ElevateLevelContent{padding:20px;position:relative}.ElevateLevelContent .Privileges{padding-bottom:30px}.ElevateLevelContent .tc{position:absolute;right:10px;bottom:10px;text-align:right;display:none}",function(e){e[e.slideToRight=1]="slideToRight",e[e.slideToLeft=-1]="slideToLeft"}(w||(w={}));const m=class{constructor(t){var i;e(this,t),this.selectedLevelChanged=n(this,"selectedLevelChanged",7),this.minOffset=0,this.isMobile=!!((i=window.navigator.userAgent).toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.levels=void 0,this.language=void 0,this.selectedLevelId=void 0,this.isShowSliderButton=!1,this.touchPosStart=void 0,this.touchPosEnd=void 0,this.offset=0}onLevelClicked(e){this.selectedLevelChanged.emit({level:e}),this.selectedLevelId=e.id}levelsChangedHandler(){this.initOffsetOfLevelItems()}initOffsetOfLevelItems(){if(!this.levels||0==this.levels.length||!this.selectedLevelId)return;const e=this.levels.findIndex((e=>this.selectedLevelId==e.id));if(this.onLevelClicked(this.levels[-1==e?0:e]),this.levels.length<=this.moveCountForOneTouch)return;let t=Math.floor((-1==e?1:e+1)/this.moveCountForOneTouch)*this.moveCountForOneTouch*this.childElementWidth*-1;this.offset=t<=this.minOffset?this.minOffset:t>=0?0:t}onTouchStart(e){this.touchPosStart={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}}onTouchMove(e){this.touchPosEnd={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY};const t=this.touchPosEnd.clientX-this.touchPosStart.clientX,n=this.touchPosEnd.clientY-this.touchPosStart.clientY;Math.abs(t)>Math.abs(n)&&this.slideTo(t>0?w.slideToRight:w.slideToLeft)}slideTo(e){let t=this.levelsElement.offsetLeft+this.childElementWidth*this.moveCountForOneTouch*e;if(t%this.childElementWidth!=0){const n=Math.floor(t/this.childElementWidth)*this.childElementWidth,i=Math.ceil(t/this.childElementWidth)*this.childElementWidth;t=e==w.slideToRight?n:i}this.offset=t<this.minOffset?this.minOffset:t>=0?0:t}initLevelSlider(){var e;if(!(null===(e=this.levelsElement)||void 0===e?void 0:e.firstElementChild))return void console.log("Widget[elevate-level-list] DOM is not ready.");this.isShowSliderButton=!this.isMobile&&this.levelsElement.clientWidth>this.levelsElement.parentElement.clientWidth,this.minOffset=this.levelsElement.parentElement.clientWidth-this.levelsElement.clientWidth,this.childElementWidth=this.levelsElement.firstElementChild.clientWidth,this.moveCountForOneTouch=Math.ceil(this.levelsElement.parentElement.clientWidth/this.childElementWidth)-1;const t=this.levelsElement.childElementCount;this.childElementWidth+=(this.levelsElement.clientWidth-this.childElementWidth*t)/(t-1)}debounce(e,t){{let n;return()=>{clearTimeout(n),n=setTimeout((()=>{e()}),t)}}}handleResize(){this.debounce(this.initLevelSlider.bind(this),200)()}componentDidRender(){this.host.componentOnReady().then((()=>{this.initLevelSlider()}))}render(){return t(i,{key:"d88d3434af89a0f8fd20a97735121fdf297905ab"},this.levels&&[t("div",{key:"cff36ba584e2474a65a1b95545b00937ecd06c8c",class:`SliderButton LeftButton ${0==this.offset?"Disabled":""} ${this.isShowSliderButton?"":"Hidden"}`,onClick:()=>this.slideTo(w.slideToRight)},t("svg",{key:"640b4dd9b26b4097d15623f3e9c6b14b9a60b37e",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"0a50ffc9319ad33ed61e4696c37a0bfe6090518c","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"}))),t("div",{key:"314c5b4c5bbc0d50041a66fdf474441ea418345a",class:"LevelItemsWrapper"},t("div",{key:"ff1fb084aeb20319c36a3420e9eb8693ea81b144",style:{left:`${this.offset}px`},class:"LevelItems "+(this.isMobile?"Mobile":""),id:"levelItems",ref:e=>{this.levelsElement=e}},this.levels.map(((e,n)=>t("div",{class:"Item "+(this.selectedLevelId==e.id?"Active":""),onClick:this.onLevelClicked.bind(this,e)},t("img",{alt:`Presentation Icon for ${e.presentation.displayName}`,class:"LevelImg",src:e.presentation.asset}),t("span",{class:"LevelName",title:e.presentation.displayName},e.presentation.displayName),t("span",{class:"LevelPoints"},0==n?"":">",e.firstEntryPoints," ",y("points",this.language))))))),t("div",{key:"8dae638ca436c7e747a0f737028588ee5d040edd",class:`SliderButton RightButton ${this.offset<=this.minOffset?"Disabled":""} ${this.isShowSliderButton?"":"Hidden"}`,onClick:()=>this.slideTo(w.slideToLeft)},t("svg",{key:"bba16b49668567aaa41beedd9ea461d256c6812d",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t("path",{key:"36a0b6f3ffe8b50ebea9a4ec1c01e3341c440949","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})))])}get host(){return a(this)}static get watchers(){return{selectedLevelId:["levelsChangedHandler"]}}};m.style="elevate-level-list{display:flex;flex-direction:row}.LevelItemsWrapper{display:flex;flex:1;margin-top:10px;min-height:30px;transition-property:all;position:relative;height:138px;overflow-x:hidden}.Mobile.LevelItems{overflow-x:hidden}.LevelItems{overflow-x:auto;display:flex;flex-direction:row;gap:10px;left:0;position:absolute;transition:left 0.5s ease-in-out}.LevelItems .Item:hover,.LevelItems .Item.Active{background-color:var(--emw--color-gray-50, rgb(244, 244, 244));box-shadow:0px 4px 13px 0px rgba(0, 0, 0, 0.25)}.LevelItems .Item{width:86px;height:125px;border-radius:15px;text-align:center;display:flex;flex-direction:column;cursor:pointer}.LevelItems .Item .LevelName{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.LevelItems .Item .LevelPoints{color:var(--emw--color-gray-100, rgb(118, 113, 113));font-size:10px}.LevelItems .Item .LevelImg{width:65px;height:68px;margin:11px auto}.SliderButton{display:flex;width:29px;align-items:center;cursor:pointer}.SliderButton.Disabled svg{stroke:var(--emw--color-gray-50, #cbc5c5)}.SliderButton.Hidden{display:none}";const L=class{constructor(t){e(this,t),this.elevateLevel=void 0}render(){return t(i,{key:"16d128717e716f7ca7d3bb77fc3a2e67209318b6"},t("div",{key:"658657abdfc64844bd2af40562efe40385e1735a",class:"Row Desc"},t("h3",{key:"ec5871c2f810c8c120bf99510717381175bc1ef4"},this.elevateLevel.presentation.displayName),t("p",{key:"865915c6eea90295238fb47eaa91c8f968199ca5"},t("span",{key:"2b90c6c5d6957b73fc4a0f53d53da0ca023a4f0a",class:"TxtDesc",innerHTML:this.elevateLevel.presentation.description}))))}};L.style=":host{display:block}.PriviliegeList{padding-inline-start:5px}.PriviliegeList li{display:flex}.PriviliegeList li .Img{width:80px}.PriviliegeList li .Img img{width:60px;margin:10px}.PriviliegeList li .Content h4{text-transform:capitalize;margin-block-start:10px}";var I,k,C,E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},P={exports:{}};I=P,k=P.exports,C=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==E)return E;throw new Error("unable to locate global object")}(),I.exports=k=C.fetch,C.fetch&&(k.default=C.fetch.bind(C)),k.Headers=C.Headers,k.Request=C.Request,k.Response=C.Response;const R=P.exports,T=class{constructor(t){e(this,t),this.elevateLevelsDataChange=n(this,"elevateLevelsDataChange",7),this.scopeParams=void 0}async componentWillRender(){if(!this.scopeParams.endpoint)return;let e=new URL(`${this.scopeParams.endpoint}/v1/elevate/levels?language=${this.scopeParams.language}`);await R(e.href).then((e=>e.json())).then((e=>{const t=e.data.sort(((e,t)=>e.firstEntryPoints<t.firstEntryPoints?-1:1));let n=this.scopeParams.selectedLevelId;if(!n&&this.scopeParams.showDefault&&t.length>0&&(n=t[0].id),n){const e=t.filter((e=>e.id==n))[0];this.elevateLevelsDataChange.emit({currentLevel:e})}this.elevateLevelsDataChange.emit({clearError:!0}),this.elevateLevelsDataChange.emit({elevateLevels:t})})).catch((e=>{this.elevateLevelsDataChange.emit({errorMessage:{type:"errorWhenLoadElevateLevels",err:e}}),console.error(e)}))}};T.style=":host{display:block}";const S=class{constructor(t){e(this,t),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.en;for(let i in t[e]){if(!n.en[i])return;n[e][i]=n[e][i]||n.en[i],"object"==typeof t[e][i]?Object.keys(t[e][i]).forEach((a=>{n[e][i][a]=t[e][i][a]})):n[e][i]=t[e][i]}})),e(!0)}))})));e.push(i)}var t,n;return await Promise.all(e)}render(){return t("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},t("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return a(this)}};function M(e){d(1,arguments);var t=h(e);return t.setHours(0,0,0,0),t}function _(e,t){return d(2,arguments),h(e).getTime()-h(t).getTime()}S.style=":host{display:block}";var D={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function B(e){return e?D[e]:D.trunc}const A=class{constructor(t){e(this,t),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,t){let n="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return n;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 i=e.aboutToExpire[0],a=function(e,t){d(2,arguments);var n=M(e),i=M(t),a=n.getTime()-c(n),l=i.getTime()-c(i);return Math.round((a-l)/864e5)}(new Date(i.expireTime),new Date);let l=0,s=0,r=0===a?`${t}Day`:t;return a<=0&&(l=function(e,t,n){d(2,arguments);var i=_(e,t)/36e5;return B(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=l>1?`${t}Hours`:`${t}Hour`,l<=0&&(s=function(e,t,n){d(2,arguments);var i=_(e,t)/6e4;return B(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=s>1?`${t}Minutes`:`${t}Minute`)),n=o(r,{expirationPoints:i.points,expireDay:Math.max(a,l,s),lang:this.params.language}),n}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,l;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,r=null===(l=e.data.loyaltyWallet)||void 0===l?void 0:l.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:o,loyaltyWalletTotal:r});let d=this.calcuatePointsToBeExpired(o,"coinsToBeExpired"),h=this.calcuatePointsToBeExpired(r,"pointsToBeExpired");(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,l=a*i-17<0?0:a*i-17,s=e.querySelector("#current_level"),o=e.querySelector("#filter_current_level"),r=e.querySelector("#circle_current_level");n.setAttribute("viewbox",`0 0 ${l} 28`),s.setAttribute("width",`${l}`),r.setAttribute("cx",`${l<6.5?6.5:l}`),o.setAttribute("x",""+(l-8));const d=e.querySelector("#lock"),h=e.querySelector("#filter_heart_ball"),c=e.querySelector("#filter_ball"),v=e.querySelector("#filter_heart"),p=e.querySelector("#filter_lock"),f=e.querySelector("#paint0_linear_ball"),g=e.querySelector("#paint1_linear_lock"),b=e.querySelector("#lock_box"),u=e.querySelector("#heart_box"),y=i-10;d.setAttribute("cx",`${y}`),g.setAttribute("x1",`${y}`),g.setAttribute("x2",`${y}`),f.setAttribute("x1",""+(y-6)),f.setAttribute("x2",""+(y-6+11.2)),p.setAttribute("x",""+(y-6)),v.setAttribute("x",""+(y-6-2)),c.setAttribute("x",""+(y-6-2-2)),h.setAttribute("x",""+(y-6-2-2-4)),b.setAttribute("x",""+(y-6)),u.setAttribute("x",""+(y-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 a(this)}static get watchers(){return{params:["onParamsChanged"]}}};A.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: var(--emw--border-radius-medium, 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 O=class{constructor(t){e(this,t),this.endpoint=void 0,this.session=void 0,this.playerAvatarUrl=void 0,this.language=void 0,this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.userLevelId=void 0}async setPlayerElevateLevelInfo(e){"playerElevateLeveLoaded"==e.type&&e.detail.elevateLevel&&(this.userLevelId=e.detail.elevateLevel.id)}render(){return t(i,{key:"8ff544f13c2709a4f5314e0c4e190ca70d9732ff"},t("div",{key:"90c75c6283ab1b7b83f5b9af8b163853852a5636",class:"PlayerElevateCard"},t("player-elevate-loyaltycard",{key:"be1ab26bc44443547364a64cc31e6bac42e8ba8e",playerName:this.playerName,dateFormat:this.dateFormat,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,clientStyling:`${this.clientStyling} .Outer{height: 185px}`,endpoint:this.endpoint,language:this.language,session:this.session})),t("div",{key:"d868908d61b3320a4c3751eab8cf8cdbd98c41c4",class:"ElevateLevelsInfo"},t("bonus-elevate-levels",{key:"715bc9c3d15e1ac07f4fc75217beeaa48875ec63",selectedLevelId:this.userLevelId,clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,language:this.language,endpoint:this.endpoint})),t("general-styling-wrapper",{key:"0e40a6825499a6c44e04dadce2079d995ecb2702",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl}))}};O.style=":host{display:block}.PlayerElevateCard{height:160px;width:100%;overflow:hidden}.ElevateLevelsInfo{background-color:var(--emw--color-background, #e6e8ea)}";const $=class{constructor(t){e(this,t),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=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),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelPoints(){var e,t;return(null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel)?null===(t=this.playerElevateLevel)||void 0===t?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const e=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return o("tipsForNextLevel",{pointsToReach:e,levelName:t.name,lang:this.language})}return""}render(){const e=l("../static/card-ground.svg"),n=l("../static/card-ground-over.svg");return t("div",{key:"39295a651da66747a20554699bba5f96b8ad5c35",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"78c34fe054fc2459f8af3354116cd21a68ce01be",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:r,translationUrl:this.translationUrl}),t("player-elevate-card-data",{key:"b53e4b59d4ee55a2f567efa09afab3d72969e6e4",params:this.paramProxy}),t("div",{key:"1f3e504440bab2df3a181058fad7149c85c48c14",class:"OuterCover Inner",style:{backgroundImage:`url(${n}`}},t("div",{key:"a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1",class:"Content Row"},this.playerElevateLevel&&t(s,{key:"5c104f5ba1a018219c6ed5f6e50af99b035a0344"},t("div",{key:"bd94591e6ab9298ab7c769fa48efaf314dc1a63b",class:"PlayerImg"},t(v,{key:"928849ce86d8c7a483eba7850efc83f8149bae43",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"37192c9b8502eb3c7d93914369df2d784c17e9f7",class:`LevelInfo ${this.playerElevateLevel.name}`},t(p,{key:"2684a177f4bb1053c4587fd4158666fb35ca23f4",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),t("div",{key:"173a37c63868f2d900c12af3ffc2d9a4a57550e4",class:"PointsRange"},t(f,{key:"a7111154f7dc547e0b05c70d24508bdd75c5d882",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),t(f,{key:"ad31574e7db81a7ecb7a06b28b1d4968cbcab93e",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),t(g,{key:"88ddfdb326edfb1de9519da6b3d0e5b514725e27"}),t("div",{key:"b9c79555a8001bd2c754d7573df04016da235c84",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&t("div",{key:"02da725060c9db4a8c1c2e8bad3426894d7f8f2c",class:"PointsInfo ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};$.style=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}";export{x as bonus_elevate_levels,m as elevate_level_list,L as elevate_level_presentation,T as elevate_levels_data,S as general_styling_wrapper,A as player_elevate_card_data,O as player_elevate_level,$ as player_elevate_loyaltycard}
@@ -0,0 +1 @@
1
+ import{h as t,a as i}from"./index-8b0eeaf7.js";import{a as n}from"./locale.utils-34e6f004.js";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function a(t){if(null===t||!0===t||!1===t)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function r(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function I(t){r(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||"object"===e(t)&&"[object Date]"===i?new Date(t.getTime()):"number"==typeof t||"[object Number]"===i?new Date(t):("string"!=typeof t&&"[object String]"!==i||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var M={};function u(){return M}function o(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function w(t){r(1,arguments);var i=I(t),n=i.getUTCDay(),e=(n<1?7:0)+n-1;return i.setUTCDate(i.getUTCDate()-e),i.setUTCHours(0,0,0,0),i}function g(t){r(1,arguments);var i=I(t),n=i.getUTCFullYear(),e=new Date(0);e.setUTCFullYear(n+1,0,4),e.setUTCHours(0,0,0,0);var a=w(e),M=new Date(0);M.setUTCFullYear(n,0,4),M.setUTCHours(0,0,0,0);var u=w(M);return i.getTime()>=a.getTime()?n+1:i.getTime()>=u.getTime()?n:n-1}function s(t,i){var n,e,M,o,w,g,s,C;r(1,arguments);var A=u(),c=a(null!==(n=null!==(e=null!==(M=null!==(o=null==i?void 0:i.weekStartsOn)&&void 0!==o?o:null==i||null===(w=i.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==M?M:A.weekStartsOn)&&void 0!==e?e:null===(s=A.locale)||void 0===s||null===(C=s.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==n?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=I(t),l=d.getUTCDay(),L=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-L),d.setUTCHours(0,0,0,0),d}function C(t,i){var n,e,M,o,w,g,C,A;r(1,arguments);var c=I(t),d=c.getUTCFullYear(),l=u(),L=a(null!==(n=null!==(e=null!==(M=null!==(o=null==i?void 0:i.firstWeekContainsDate)&&void 0!==o?o:null==i||null===(w=i.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==M?M:l.firstWeekContainsDate)&&void 0!==e?e:null===(C=l.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==n?n:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=new Date(0);j.setUTCFullYear(d+1,0,L),j.setUTCHours(0,0,0,0);var m=s(j,i),D=new Date(0);D.setUTCFullYear(d,0,L),D.setUTCHours(0,0,0,0);var N=s(D,i);return c.getTime()>=m.getTime()?d+1:c.getTime()>=N.getTime()?d:d-1}function A(t,i){for(var n=t<0?"-":"",e=Math.abs(t).toString();e.length<i;)e="0"+e;return n+e}const c=function(t,i){var n=t.getUTCFullYear(),e=n>0?n:1-n;return A("yy"===i?e%100:e,i.length)},d=function(t,i){var n=t.getUTCMonth();return"M"===i?String(n+1):A(n+1,2)},l=function(t,i){return A(t.getUTCDate(),i.length)},L=function(t,i){return A(t.getUTCHours()%12||12,i.length)},j=function(t,i){return A(t.getUTCHours(),i.length)},m=function(t,i){return A(t.getUTCMinutes(),i.length)},D=function(t,i){return A(t.getUTCSeconds(),i.length)},N=function(t,i){var n=i.length,e=t.getUTCMilliseconds();return A(Math.floor(e*Math.pow(10,n-3)),i.length)};var y={G:function(t,i,n){var e=t.getUTCFullYear()>0?1:0;switch(i){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})}},y:function(t,i,n){if("yo"===i){var e=t.getUTCFullYear();return n.ordinalNumber(e>0?e:1-e,{unit:"year"})}return c(t,i)},Y:function(t,i,n,e){var a=C(t,e),r=a>0?a:1-a;return"YY"===i?A(r%100,2):"Yo"===i?n.ordinalNumber(r,{unit:"year"}):A(r,i.length)},R:function(t,i){return A(g(t),i.length)},u:function(t,i){return A(t.getUTCFullYear(),i.length)},Q:function(t,i,n){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(i){case"Q":return String(e);case"QQ":return A(e,2);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})}},q:function(t,i,n){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(i){case"q":return String(e);case"qq":return A(e,2);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})}},M:function(t,i,n){var e=t.getUTCMonth();switch(i){case"M":case"MM":return d(t,i);case"Mo":return n.ordinalNumber(e+1,{unit:"month"});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})}},L:function(t,i,n){var e=t.getUTCMonth();switch(i){case"L":return String(e+1);case"LL":return A(e+1,2);case"Lo":return n.ordinalNumber(e+1,{unit:"month"});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})}},w:function(t,i,n,e){var M=function(t,i){r(1,arguments);var n=I(t),e=s(n,i).getTime()-function(t,i){var n,e,I,M,o,w,g,A;r(1,arguments);var c=u(),d=a(null!==(n=null!==(e=null!==(I=null!==(M=null==i?void 0:i.firstWeekContainsDate)&&void 0!==M?M:null==i||null===(o=i.locale)||void 0===o||null===(w=o.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==I?I:c.firstWeekContainsDate)&&void 0!==e?e:null===(g=c.locale)||void 0===g||null===(A=g.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==n?n:1),l=C(t,i),L=new Date(0);return L.setUTCFullYear(l,0,d),L.setUTCHours(0,0,0,0),s(L,i)}(n,i).getTime();return Math.round(e/6048e5)+1}(t,e);return"wo"===i?n.ordinalNumber(M,{unit:"week"}):A(M,i.length)},I:function(t,i,n){var e=function(t){r(1,arguments);var i=I(t),n=w(i).getTime()-function(t){r(1,arguments);var i=g(t),n=new Date(0);return n.setUTCFullYear(i,0,4),n.setUTCHours(0,0,0,0),w(n)}(i).getTime();return Math.round(n/6048e5)+1}(t);return"Io"===i?n.ordinalNumber(e,{unit:"week"}):A(e,i.length)},d:function(t,i,n){return"do"===i?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):l(t,i)},D:function(t,i,n){var e=function(t){r(1,arguments);var i=I(t),n=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var e=i.getTime();return Math.floor((n-e)/864e5)+1}(t);return"Do"===i?n.ordinalNumber(e,{unit:"dayOfYear"}):A(e,i.length)},E:function(t,i,n){var e=t.getUTCDay();switch(i){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})}},e:function(t,i,n,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(i){case"e":return String(r);case"ee":return A(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,i,n,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(i){case"c":return String(r);case"cc":return A(r,i.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,i,n){var e=t.getUTCDay(),a=0===e?7:e;switch(i){case"i":return String(a);case"ii":return A(a,i.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(e,{width:"short",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})}},a:function(t,i,n){var e=t.getUTCHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},b:function(t,i,n){var e,a=t.getUTCHours();switch(e=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",i){case"b":case"bb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},B:function(t,i,n){var e,a=t.getUTCHours();switch(e=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",i){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},h:function(t,i,n){if("ho"===i){var e=t.getUTCHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return L(t,i)},H:function(t,i,n){return"Ho"===i?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):j(t,i)},K:function(t,i,n){var e=t.getUTCHours()%12;return"Ko"===i?n.ordinalNumber(e,{unit:"hour"}):A(e,i.length)},k:function(t,i,n){var e=t.getUTCHours();return 0===e&&(e=24),"ko"===i?n.ordinalNumber(e,{unit:"hour"}):A(e,i.length)},m:function(t,i,n){return"mo"===i?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):m(t,i)},s:function(t,i,n){return"so"===i?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):D(t,i)},S:function(t,i){return N(t,i)},X:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(i){case"X":return h(a);case"XXXX":case"XX":return v(a);default:return v(a,":")}},x:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"x":return h(a);case"xxxx":case"xx":return v(a);default:return v(a,":")}},O:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},z:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},t:function(t,i,n,e){return A(Math.floor((e._originalDate||t).getTime()/1e3),i.length)},T:function(t,i,n,e){return A((e._originalDate||t).getTime(),i.length)}};function b(t,i){var n=t>0?"-":"+",e=Math.abs(t),a=Math.floor(e/60),r=e%60;if(0===r)return n+String(a);var I=i||"";return n+String(a)+I+A(r,2)}function h(t,i){return t%60==0?(t>0?"-":"+")+A(Math.abs(t)/60,2):v(t,i)}function v(t,i){var n=i||"",e=t>0?"-":"+",a=Math.abs(t);return e+A(Math.floor(a/60),2)+n+A(a%60,2)}const f=y;var z=function(t,i){switch(t){case"P":return i.date({width:"short"});case"PP":return i.date({width:"medium"});case"PPP":return i.date({width:"long"});default:return i.date({width:"full"})}},T=function(t,i){switch(t){case"p":return i.time({width:"short"});case"pp":return i.time({width:"medium"});case"ppp":return i.time({width:"long"});default:return i.time({width:"full"})}},Z={p:T,P:function(t,i){var n,e=t.match(/(P+)(p+)?/)||[],a=e[1],r=e[2];if(!r)return z(t,i);switch(a){case"P":n=i.dateTime({width:"short"});break;case"PP":n=i.dateTime({width:"medium"});break;case"PPP":n=i.dateTime({width:"long"});break;default:n=i.dateTime({width:"full"})}return n.replace("{{date}}",z(a,i)).replace("{{time}}",T(r,i))}};const x=Z;var S=["D","DD"],G=["YY","YYYY"];function W(t,i,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.width?String(i.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Q,k={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},E={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function p(t){return function(i,n){var e;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,r=null!=n&&n.width?String(n.width):a;e=t.formattingValues[r]||t.formattingValues[a]}else{var I=t.defaultWidth,M=null!=n&&n.width?String(n.width):t.defaultWidth;e=t.values[M]||t.values[I]}return e[t.argumentCallback?t.argumentCallback(i):i]}}function V(t){return function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.width,a=i.match(e&&t.matchPatterns[e]||t.matchPatterns[t.defaultMatchWidth]);if(!a)return null;var r,I=a[0],M=e&&t.parsePatterns[e]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(M)?function(t){for(var i=0;i<t.length;i++)if(t[i].test(I))return i}(M):function(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(I))return i}(M);return r=t.valueCallback?t.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:i.slice(I.length)}}}const X={code:"en-US",formatDistance:function(t,i,n){var e,a=Y[t];return e="string"==typeof a?a:1===i?a.one:a.other.replace("{{count}}",i.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+e:e+" ago":e},formatLong:k,formatRelative:function(t){return E[t]},localize:{ordinalNumber:function(t){var i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:p({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:p({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:p({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:p({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:p({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Q={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Q.matchPattern);if(!n)return null;var e=n[0],a=t.match(Q.parsePattern);if(!a)return null;var r=Q.valueCallback?Q.valueCallback(a[0]):a[0];return{value:r=i.valueCallback?i.valueCallback(r):r,rest:t.slice(e.length)}}),era:V({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:V({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var U=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,J=/^'([^]*?)'?$/,R=/''/g,O=/[a-zA-Z]/;function H(t,i,n){var M,w,g,s,C,A,c,d,l,L,j,m,D,N,y,b,h,v;r(2,arguments);var z=String(i),T=u(),Z=null!==(M=null!==(w=null==n?void 0:n.locale)&&void 0!==w?w:T.locale)&&void 0!==M?M:X,Y=a(null!==(g=null!==(s=null!==(C=null!==(A=null==n?void 0:n.firstWeekContainsDate)&&void 0!==A?A:null==n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==C?C:T.firstWeekContainsDate)&&void 0!==s?s:null===(l=T.locale)||void 0===l||null===(L=l.options)||void 0===L?void 0:L.firstWeekContainsDate)&&void 0!==g?g:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=a(null!==(j=null!==(m=null!==(D=null!==(N=null==n?void 0:n.weekStartsOn)&&void 0!==N?N:null==n||null===(y=n.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==D?D:T.weekStartsOn)&&void 0!==m?m:null===(h=T.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==j?j:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw new RangeError("locale must contain localize property");if(!Z.formatLong)throw new RangeError("locale must contain formatLong property");var Q=I(t);if(!function(t){if(r(1,arguments),!function(t){return r(1,arguments),t instanceof Date||"object"===e(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var i=I(t);return!isNaN(Number(i))}(Q))throw new RangeError("Invalid time value");var k=function(t,i){return r(2,arguments),function(t,i){r(2,arguments);var n=I(t).getTime(),e=a(i);return new Date(n+e)}(t,-a(i))}(Q,o(Q)),E={firstWeekContainsDate:Y,weekStartsOn:P,locale:Z,_originalDate:Q};return z.match(B).map((function(t){var i=t[0];return"p"===i||"P"===i?(0,x[i])(t,Z.formatLong):t})).join("").match(U).map((function(e){if("''"===e)return"'";var a,r,I=e[0];if("'"===I)return(r=(a=e).match(J))?r[1].replace(R,"'"):a;var M=f[I];if(M)return null!=n&&n.useAdditionalWeekYearTokens||-1===G.indexOf(e)||W(e,i,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!(-1!==S.indexOf(e))||W(e,i,String(t)),M(k,e,Z.localize,E);if(I.match(O))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return e})).join("")}const F=()=>t("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8cmVjdCB5PSIxMiIgeD0iMiIgd2lkdGg9IjEwMCUiIGlkPSJ0b3RhbF9sZXZlbCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3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AgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyX2xvY2siIHgxPSIxMDAlIiB5MT0iMTguNDA1NiIgeDI9IjE2OS4wMDIiIHkyPSIxMC4yODQ1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MTRGRDYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDY3OUQ4Ii8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="}),K=({loyaltyPoints:i,spendablePoints:e,pointExpireString:a,language:r})=>t("div",{class:"PointsInfo"},i&&i>=0&&t("div",{class:"Points"},i," ",t("sub",{class:"XP"},n("xp",r))),e&&t("div",{class:"Points"},e," ",t("sub",{class:"XP"},n("sp",r))),a&&t("div",{class:"ExpirationPoints"},a," ")),q=({language:i,onRedeemClick:e})=>t("div",{class:"CardCell Redeem"},t("div",{class:"RedeemButton",onClick:()=>{e()}},t("span",null,n("redeem",i)))),$=i=>t("div",{class:"CardCell PlayerName Txt"},i.playerName),_=e=>t("div",{class:"CardCell ElevateLevel"},t("span",{class:"LevelName",title:e.level},e.level),e.expireTime&&t("div",{class:"CardCell ExpirationDate Txt"},n("expireOn",e.language),t("span",{class:"ExpireTime"},H(new Date(e.expireTime),e.dateFormat||"yyyy-MM-dd")),!e.hideInfo&&t("span",{class:"fa Info",style:{background:`url(${i("../static/info.svg")})`}},t("span",{class:"InfoTips",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI2IiBoZWlnaHQ9IjkyIiB2aWV3Qm94PSIwIDAgMTI2IDkyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZyBmaWx0ZXI9InVybCgjZmlsdG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iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="})))),tt=n=>{const e=n.loyaltyIconUrl?t("img",{class:"Badge",src:n.loyaltyIconUrl}):n.hideIfNull?"":t("div",{class:"Badge"}),a=n.playerAvatarUrl||i("../static/user.svg");return t("div",{class:"PlayerAvatar",style:{position:n.onlyBadge?"":"relative"}},!n.onlyBadge&&t("img",{class:"Avatar",src:a}),e)};export{tt as P,_ as a,K as b,F as c,$ as d,q as e,o as g,r,I as t}
@@ -0,0 +1 @@
1
+ import{r as e,a as n,h as a,F as t}from"./index-8b0eeaf7.js";import{P as i,b as s,d as r,a as d,c as o,e as c}from"./player-elevate-card-items-e28305d4.js";import{T as l}from"./locale.utils-34e6f004.js";const h=class{constructor(n){e(this,n),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerLevelFlag=0,this.playerElevateLevel=void 0,this.elevateWalletTotal=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),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString),e.detail.calculatedLevelFlag&&(this.playerLevelFlag=e.detail.calculatedLevelFlag))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language,calculateLevelFlag:!0}}render(){const e=n("../static/card-ground.svg"),h=n("../static/card-ground-over.svg");return a("div",{key:"278a328dd084ee73b2707b93a57bccae64a2c9c7",class:`ElevateCardWrapper ${this.theme}`},a("div",{key:"68c885baf533447a7c77fd887bbec11e53768277",class:"Card Outer",style:{backgroundImage:`url(${e}`}},a("general-styling-wrapper",{key:"4066253a70cdd5e712ca244a708e7c1600c83071",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:l,translationUrl:this.translationUrl}),a("player-elevate-card-data",{key:"64cda2a267c752056b3c7e3134cc324fa96bc261",params:this.paramProxy}),a("div",{key:"c63ae83b401a35f5a78acd83dc3d7296c25141d7",class:"OuterCover Inner",style:{backgroundImage:`url(${h}`}},this.playerElevateLevel&&a(t,{key:"ba16e5bb54259c17fd9e5aa0e3c03c2ec5d4263c"},a("div",{key:"fa1bf74f45e28318c95266cc42c54541bde92718",class:"Content Row"},a("div",{key:"7ede46f91bcc0d894b2b633627a4ca97d15fbe90",class:"PlayerImg"},a(i,{key:"b6d0bac085e0178512b8a63ba8fccae7d4cc8399",playerAvatarUrl:this.playerAvatarUrl,loyaltyIconUrl:this.playerElevateLevel.presentation.asset}),a(s,{key:"88c445dbcd7dbe426a8de18beea02aecc03e26f3",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language})),this.pointExpireString&&a("div",{key:"4d985e486ecb74a6c916b28e619de83cb3d77ac1",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),a("div",{key:"34e051ee1ff79b825fca57db958e1e5684a0aca1",class:`LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}`},a(r,{key:"fa1b1f16e0b25c6adfba4c215e4ed377e05699b2",playerName:this.playerName}),a(d,{key:"6d18b1422db202363ebcd56cc56946e0e071937b",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),a(o,{key:"7dae355c4a5a9e28c70dced0ac061608f1753020"}),a(c,{key:"7e5f830b612c962a828c58f20a88dc97d315c910",onRedeemClick:this.onRedeemClick,language:this.language})))))))}static get assetsDirs(){return["../static"]}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};h.style="@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emw--color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";export{h as player_elevate_card}
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-46f2ec3d.js";export{s as setNonce}from"./p-46f2ec3d.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-2221a847",[[1,"player-elevate-level",{endpoint:[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"],userLevelId:[32]},[[0,"playerElevateLeveLoaded","setPlayerElevateLevelInfo"]]],[1,"bonus-elevate-levels",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],endpoint:[513],language:[513],translationUrl:[513,"translation-url"],selectedLevelId:[1537,"selected-level-id"],showDefault:[4,"show-default"],elevateLevelParamProxy:[32],elevateLevels:[32],currentLevel:[32],errorMessage:[32]},[[0,"selectedLevelChanged","selectedLevelChangedHandler"],[2,"elevateLevelsDataChange","elevateLevelsDataChangeHandler"]],{selectedLevelId:["selectedLevelIdChangedHandler"],elevateLevels:["selectedLevelIdChangedHandler"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}],[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,"elevate-level-list",{levels:[16],language:[1],selectedLevelId:[1537,"selected-level-id"],isShowSliderButton:[32],touchPosStart:[32],touchPosEnd:[32],offset:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[9,"resize","handleResize"]],{selectedLevelId:["levelsChangedHandler"]}],[0,"elevate-level-presentation",{elevateLevel:[16]}],[0,"elevate-levels-data",{scopeParams:[1544,"scope-params"]}],[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-962fc35d",[[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-f8d8357d",[[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"]}]]],["p-edcb83f8",[[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"]}]]],["p-f30f618d",[[1,"user-login",{endpoint:[513],lang:[1537],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],passwordReset:[513,"password-reset"],userEmailRegex:[513,"user-email-regex"],userEmailRegexOptions:[513,"user-email-regex-options"],userPhoneRegex:[513,"user-phone-regex"],userPhoneRegexOptions:[513,"user-phone-regex-options"],passwordRegex:[513,"password-regex"],passwordRegexOptions:[513,"password-regex-options"],version:[513],loginByPhoneNumber:[513,"login-by-phone-number"],mbSource:[513,"mb-source"],userNameEmail:[32],userPassword:[32],isValidUserEmail:[32],userPhone:[32],userPrefix:[32],isValidPassword:[32],isValidUserPhone:[32],isPasswordVisible:[32],errorMessage:[32],errorForFields:[32],hasError:[32],userPrefixOptions:[32],isLoginLoading:[32],captchaData:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
1
+ import{p as e,b as a}from"./index-8b0eeaf7.js";export{s as setNonce}from"./index-8b0eeaf7.js";import{g as l}from"./app-globals-0f993ce5.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["bonus-elevate-levels_8",[[1,"player-elevate-level",{endpoint:[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"],userLevelId:[32]},[[0,"playerElevateLeveLoaded","setPlayerElevateLevelInfo"]]],[1,"bonus-elevate-levels",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],endpoint:[513],language:[513],translationUrl:[513,"translation-url"],selectedLevelId:[1537,"selected-level-id"],showDefault:[4,"show-default"],elevateLevelParamProxy:[32],elevateLevels:[32],currentLevel:[32],errorMessage:[32]},[[0,"selectedLevelChanged","selectedLevelChangedHandler"],[2,"elevateLevelsDataChange","elevateLevelsDataChangeHandler"]],{selectedLevelId:["selectedLevelIdChangedHandler"],elevateLevels:["selectedLevelIdChangedHandler"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}],[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,"elevate-level-list",{levels:[16],language:[1],selectedLevelId:[1537,"selected-level-id"],isShowSliderButton:[32],touchPosStart:[32],touchPosEnd:[32],offset:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[9,"resize","handleResize"]],{selectedLevelId:["levelsChangedHandler"]}],[0,"elevate-level-presentation",{elevateLevel:[16]}],[0,"elevate-levels-data",{scopeParams:[1544,"scope-params"]}],[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"]}]]],["user-login",[[1,"user-login",{endpoint:[513],lang:[1537],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],passwordReset:[513,"password-reset"],userEmailRegex:[513,"user-email-regex"],userEmailRegexOptions:[513,"user-email-regex-options"],userPhoneRegex:[513,"user-phone-regex"],userPhoneRegexOptions:[513,"user-phone-regex-options"],passwordRegex:[513,"password-regex"],passwordRegexOptions:[513,"password-regex-options"],version:[513],loginByPhoneNumber:[513,"login-by-phone-number"],mbSource:[513,"mb-source"],userNameEmail:[32],userPassword:[32],isValidUserEmail:[32],userPhone:[32],userPrefix:[32],isValidPassword:[32],isValidUserPhone:[32],isPasswordVisible:[32],errorMessage:[32],errorForFields:[32],hasError:[32],userPrefixOptions:[32],isLoginLoading:[32],captchaData:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as e,a,h as t,F as i}from"./index-8b0eeaf7.js";import{T as n,a as s}from"./locale.utils-34e6f004.js";import{P as d,b as r}from"./player-elevate-card-items-e28305d4.js";const o=class{constructor(a){e(this,a),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 e=a("../static/card-ground.svg"),o=a("../static/card-ground-over.svg");return t("div",{key:"4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253",class:"PointsCard Outer ",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:n,translationUrl:this.translationUrl}),t("player-elevate-card-data",{key:"4371faac6967c5b3eced57f6251064ea4e1d6a65",params:this.paramProxy}),t("div",{key:"c78235a6fdc2aed90df898f007b5ee091cece8dc",class:"OuterCover Inner",style:{backgroundImage:`url(${o}`}},t("div",{key:"025e779223c1c85c11998be8389a8ff836a31e6c",class:"Content Row"},this.playerElevateLevel&&t(i,{key:"68daa6047dc93d2596d8b2309a26f56960737617"},t("div",{key:"6a2d2b2e7d234bceaf3d9240c5d4f2eb80395319",class:"PlayerImg"},t(d,{key:"aeaf35ad8055ad4f7312922c8600ea58d09be74f",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"bd51ce868b4d8a547f40ec55548bbf3cfa416534",class:`LevelInfo ${this.playerElevateLevel.name}`},t("div",{key:"5f4d77a5b43c8efee850b9813bc1c8e61d27d45d",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:s("spendablePoints")),t("div",{key:"bae5dc76d00c98aed803601c19fe3bf1aa4418d5",class:"PointsTxt SPPoints"},t(r,{key:"59d51bd37f44ed23108fc4356af41c01668354e3",spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),t("a",{key:"3a923bea242ae5fa412f4448dca7277b3588621e",class:"TC",onClick:()=>{this.onDetailsClick()}},s("termAndConditions",this.language))),this.pointExpireString&&t("div",{key:"8803ae8d343885da58dfa04b9a4474ff473b5a74",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};o.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{o as player_elevate_pointcard}
@@ -0,0 +1 @@
1
+ import{r as a,h as e}from"./index-8b0eeaf7.js";import{a as t,t as i,T as n}from"./locale.utils-34e6f004.js";const r=class{constructor(e){a(this,e),this.truncateNumber=(a,e=2)=>{const t=a.toString(),[i,n=""]=t.split(".");return e>0?`${i}.${n?n.slice(0,e):"00"}`:`${i}`},this.sendRakebackClaimedEvent=()=>{this.endpoint&&this.session&&this.rakebackInfo.claimable&&!this.isLoading&&window.postMessage({type:"RakebackClaimTrigger",points:this.rakebackInfo.points},window.location.href)},this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.show=!0,this.rakebackInfo={hasRakebackWallet:!1,points:0,currency:"TRY",claimable:!1,minutesCanClaim:0,showCanClaim:!1},this.isLoading=!1,this.coolingOffPeriod=!1,this.showTheWidget=!1}async onSessionOrEndpointChange(){await this.loadRakebackInfo()}async onShowOrHasRakebackWalletChange(){this.showTheWidget=this.show&&this.rakebackInfo.hasRakebackWallet}handleMessage(a){const{type:e}=null==a?void 0:a.data;"RakebackClaimConfirmed"===e&&this.claimRakeback()}async loadRakebackInfo(){if(this.endpoint&&this.session){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`),e=await fetch(a.href,{method:"GET",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(!t.success)throw new Error(t.errorMessage||"Failed to load rakeback info");const{rakebackWallet:i}=null==t?void 0:t.data;if(!i)return void window.postMessage({type:"RakebackWalletMissing"},window.location.href);const{total:n,claimable:r,currency:o,minutesCanClaim:s}=i||{};this.rakebackInfo={hasRakebackWallet:!0,points:(null==n?void 0:n.points)?this.truncateNumber(n.points,2):"0.00",currency:o||"",claimable:r||!1,showCanClaim:Boolean(s&&s>0),minutesCanClaim:s?s<=1&&s>0?1:this.truncateNumber(s,0):0}}catch(a){console.error("Error loading rakeback info:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}}async claimRakeback(){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/rakeback/claim`),e=await fetch(a.href,{method:"PUT",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"},body:JSON.stringify({})});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(!t.success)throw new Error(t.errorMessage||"Failed to claim rakeback");await this.loadRakebackInfo(),window.postMessage({type:"RakebackClaimed",points:this.rakebackInfo.points},window.location.href)}catch(a){console.error("Error claiming rakeback:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}async componentWillLoad(){await this.loadRakebackInfo(),await this.onShowOrHasRakebackWalletChange()}render(){return this.showTheWidget?e("div",{class:"RakebackCard"},e("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:n,translationUrl:this.translationUrl}),e("div",{class:"RakebackCardContent"},e("div",{class:"RakebackTitle"},t("rakebackTitle",this.language)),e("div",{class:"RakebackDetails"},e("div",{class:"RakebackInfo"},e("div",{class:"RakebackNumContainer"},e("span",{class:"RakebackNum"},this.rakebackInfo.points),e("span",{class:"RakebackCurrency"},this.rakebackInfo.currency))),e("div",{class:"RakebackButton "+(this.isLoading||!this.rakebackInfo.claimable?"disabled":""),onClick:this.sendRakebackClaimedEvent},t("claim",this.language))),!this.rakebackInfo.claimable&&this.rakebackInfo.showCanClaim&&e("div",{class:"RakebackCoolOff"},i("minutesCanClaim",{lang:this.language,minutes:this.rakebackInfo.minutesCanClaim})))):null}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}}};r.style=":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}";export{r as player_rakeback_card}
@@ -1,4 +1,4 @@
1
- import{r as t,h as e}from"./p-46f2ec3d.js";const i={en:{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occurred",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occurred when fetching the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format."},tr:{invalidField:"Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",forgotPassword:"Şifremi Unuttum",userEmail:"Kullanıcı Adı veya E-posta",userPhone:"Telefon numarası",userPrefix:"Telefon kodu",password:"Şifre",login:"Giriş Yap",genericError:"Beklenmeyen bir hata oluştu",successMessage:"Giriş başarılı",Forbidden_UserAccount_Blocked:"Oyuncu hesabı engellendi",GmErr_USER_ACCOUNT_BLOCKED:"Şu anda hesabınıza giriş yapamıyorsunuz - daha fazla bilgi için Müşteri Hizmetleri ile iletişime geçin.",setUpPassowrd:"Şifrenizi sıfırlamanız gerekiyor",GmErr_USER_AUTH_FAILED:"Girilen kullanıcı adı/e-posta adresi ve/veya şifre yanlış.",AuthFailedPhoneNumber:"Girilen telefon numarası ve/veya şifre yanlış.",CountryRestricted:"Kısıtlı bir yargı bölgesinden kayıt yapılamaz. Daha fazla sorunla karşılaşırsanız, lütfen destek ile iletişime geçin.",configError:"Yapılandırma alınırken beklenmeyen bir hata oluştu",userEmailError:"E-posta veya kullanıcı adı geçersiz bir formata sahip.",userPhoneError:"Ön ek veya telefon numarası geçersiz bir formata sahip.",userPasswordError:"Şifre geçersiz bir formata sahip."},"en-us":{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format."},ro:{invalidField:"Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",forgotPassword:"Ați uitat parola",userEmail:"Nume utilizator sau email",userPhone:"Număr de telefon",userPrefix:"Prefix telefon",password:"Parolă",login:"Autentificare",genericError:"A apărut o eroare neașteptată",successMessage:"Autentificare reușită",Forbidden_UserAccount_Blocked:"Contul de jucător este blocat",GmErr_USER_ACCOUNT_BLOCKED:"În prezent, nu vă puteți conecta la contul dvs. - vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",setUpPassowrd:"Trebuie să vă resetați parola",GmErr_USER_AUTH_FAILED:"Numele de utilizator/adresa de e-mail și/sau parola introduse sunt incorecte.",AuthFailedPhoneNumber:"Numărul de telefon și/sau parola introduse sunt incorecte.",CountryRestricted:"Înregistrarea nu este posibilă dintr-o jurisdicție restricționată. Dacă întâmpinați alte probleme, vă rugăm să contactați asistența.",configError:"A apărut o eroare neașteptată la preluarea configurației",userEmailError:"Emailul sau numele de utilizator au un format invalid.",userPhoneError:"Prefixul sau numărul de telefon au un format invalid.",userPasswordError:"Parola are un format invalid."},hr:{invalidField:"Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",userPhone:"Broj telefona",userPrefix:"Telefonski prefix",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",setUpPassowrd:"Morate resetirati svoju lozinku",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran",GmErr_USER_ACCOUNT_BLOCKED:"Trenutno se ne možete prijaviti na svoj račun - molimo kontaktirajte Službu za korisnike za više informacija.",GmErr_USER_AUTH_FAILED:"Uneseno korisničko ime/adresa e-pošte i/ili lozinka su netočni.",AuthFailedPhoneNumber:"Uneseni broj telefona i/ili lozinka su netočni.",CountryRestricted:"Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku.",configError:"Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",userEmailError:"E-mail ili korisničko ime imaju nevažeći format.",userPhoneError:"Prefiks ili telefonski broj imaju nevažeći format.",userPasswordError:"Lozinka ima nevažeći format."},fr:{invalidField:"Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",forgotPassword:"Mot de passe oublié",userEmail:"Nom d'utilisateur ou email",userPhone:"Numéro de téléphone",userPrefix:"Préfixe téléphonique",password:"Mot de passe",login:"Connexion",genericError:"Une erreur inattendue est survenue",successMessage:"Connexion réussie",Forbidden_UserAccount_Blocked:"Compte joueur bloqué",GmErr_USER_ACCOUNT_BLOCKED:"Vous ne pouvez actuellement pas vous connecter à votre compte - veuillez contacter le service client pour plus d'informations.",setUpPassowrd:"Vous devez réinitialiser votre mot de passe",GmErr_USER_AUTH_FAILED:"Le nom d'utilisateur/adresse e-mail et/ou le mot de passe saisis sont incorrects.",AuthFailedPhoneNumber:"Le numéro de téléphone et/ou le mot de passe saisis sont incorrects.",CountryRestricted:"L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support.",configError:"Une erreur inattendue s'est produite lors de la récupération de la configuration",userEmailError:"L'email ou le nom d'utilisateur ont un format invalide.",userPhoneError:"Le préfixe ou le numéro de téléphone ont un format invalide.",userPasswordError:"Le mot de passe a un format invalide."},cs:{invalidField:"Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",userPhone:"Telefonní číslo",userPrefix:"Telefonní předvolba",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"Momentálně se nemůžete přihlásit ke svému účtu - pro více informací kontaktujte zákaznický servis.",setUpPassowrd:"Musíte resetovat své heslo",GmErr_USER_AUTH_FAILED:"Zadané uživatelské jméno/e-mailová adresa a/nebo heslo jsou nesprávné.",AuthFailedPhoneNumber:"Zadané telefonní číslo a/nebo heslo jsou nesprávné.",CountryRestricted:"Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu.",configError:"Při načítání konfigurace došlo k neočekávané chybě",userEmailError:"E-mail nebo uživatelské jméno mají neplatný formát.",userPhoneError:"Předvolba nebo telefonní číslo mají neplatný formát.",userPasswordError:"Heslo má neplatný formát."},de:{invalidField:"Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",forgotPassword:"Passwort vergessen",userEmail:"Benutzername oder E-Mail",userPhone:"Telefonnummer",userPrefix:"Telefonvorwahl",password:"Passwort",login:"Anmelden",genericError:"Ein unerwarteter Fehler ist aufgetreten",successMessage:"Erfolgreich angemeldet",Forbidden_UserAccount_Blocked:"Spielerkonto gesperrt",GmErr_USER_ACCOUNT_BLOCKED:"Sie können sich derzeit nicht in Ihr Konto einloggen - bitte kontaktieren Sie den Kundenservice für weitere Informationen.",setUpPassowrd:"Sie müssen Ihr Passwort zurücksetzen",GmErr_USER_AUTH_FAILED:"Der eingegebene Benutzername/die E-Mail-Adresse und/oder das Passwort sind falsch.",AuthFailedPhoneNumber:"Die eingegebene Telefonnummer und/oder das Passwort sind falsch.",CountryRestricted:"Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support.",configError:"Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",userEmailError:"Die E-Mail oder der Benutzername haben ein ungültiges Format.",userPhoneError:"Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",userPasswordError:"Das Passwort hat ein ungültiges Format."},"pt-br":{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou e-mail",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Login",genericError:"Ocorreu um erro inesperado",successMessage:"Login bem-sucedido",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao buscar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido."},"es-mx":{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé la contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo telefónico",password:"Contraseña",login:"Iniciar sesión",genericError:"Ocurrió un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido."},es:{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé mi contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo de teléfono",password:"Contraseña",login:"Iniciar sesión",genericError:"Se ha producido un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido."},pt:{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou email",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Entrar",genericError:"Ocorreu um erro inesperado",successMessage:"Login realizado com sucesso",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir a sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao procurar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido."}},s=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]||(i[e]={});for(let s in t[e])i[e][s]=t[e][s]})),e(!0)}))})),o=(t,e,s)=>{let o=i[void 0!==e&&e in i?e:"en"][t];if(void 0!==s)for(const[t,e]of Object.entries(s.values)){const i=new RegExp(`{${t}}`,"g");o=o.replace(i,e)}return o};function r(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function n(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}
1
+ import{r as t,h as e}from"./index-8b0eeaf7.js";const i={en:{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occurred",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occurred when fetching the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format."},tr:{invalidField:"Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",forgotPassword:"Şifremi Unuttum",userEmail:"Kullanıcı Adı veya E-posta",userPhone:"Telefon numarası",userPrefix:"Telefon kodu",password:"Şifre",login:"Giriş Yap",genericError:"Beklenmeyen bir hata oluştu",successMessage:"Giriş başarılı",Forbidden_UserAccount_Blocked:"Oyuncu hesabı engellendi",GmErr_USER_ACCOUNT_BLOCKED:"Şu anda hesabınıza giriş yapamıyorsunuz - daha fazla bilgi için Müşteri Hizmetleri ile iletişime geçin.",setUpPassowrd:"Şifrenizi sıfırlamanız gerekiyor",GmErr_USER_AUTH_FAILED:"Girilen kullanıcı adı/e-posta adresi ve/veya şifre yanlış.",AuthFailedPhoneNumber:"Girilen telefon numarası ve/veya şifre yanlış.",CountryRestricted:"Kısıtlı bir yargı bölgesinden kayıt yapılamaz. Daha fazla sorunla karşılaşırsanız, lütfen destek ile iletişime geçin.",configError:"Yapılandırma alınırken beklenmeyen bir hata oluştu",userEmailError:"E-posta veya kullanıcı adı geçersiz bir formata sahip.",userPhoneError:"Ön ek veya telefon numarası geçersiz bir formata sahip.",userPasswordError:"Şifre geçersiz bir formata sahip."},"en-us":{invalidField:"Sorry, that username/email address and/or password has not been recognized.",forgotPassword:"Forgot Password",userEmail:"Username or Email",userPhone:"Phone number",userPrefix:"Phone prefix",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"You’re currently unable to login to your account - please contact Customer Services for more information.",setUpPassowrd:"You need to reset your password",GmErr_USER_AUTH_FAILED:"The username/email address and/or password entered is incorrect.",AuthFailedPhoneNumber:"The phone number and/or password entered is incorrect.",CountryRestricted:"Login is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",configError:"An unexpected error has occured when fetchig the configuration",userEmailError:"The email or username have an invalid format.",userPhoneError:"The prefix or the phone number have an invalid format.",userPasswordError:"The password has an invalid format."},ro:{invalidField:"Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",forgotPassword:"Ați uitat parola",userEmail:"Nume utilizator sau email",userPhone:"Număr de telefon",userPrefix:"Prefix telefon",password:"Parolă",login:"Autentificare",genericError:"A apărut o eroare neașteptată",successMessage:"Autentificare reușită",Forbidden_UserAccount_Blocked:"Contul de jucător este blocat",GmErr_USER_ACCOUNT_BLOCKED:"În prezent, nu vă puteți conecta la contul dvs. - vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",setUpPassowrd:"Trebuie să vă resetați parola",GmErr_USER_AUTH_FAILED:"Numele de utilizator/adresa de e-mail și/sau parola introduse sunt incorecte.",AuthFailedPhoneNumber:"Numărul de telefon și/sau parola introduse sunt incorecte.",CountryRestricted:"Înregistrarea nu este posibilă dintr-o jurisdicție restricționată. Dacă întâmpinați alte probleme, vă rugăm să contactați asistența.",configError:"A apărut o eroare neașteptată la preluarea configurației",userEmailError:"Emailul sau numele de utilizator au un format invalid.",userPhoneError:"Prefixul sau numărul de telefon au un format invalid.",userPasswordError:"Parola are un format invalid."},hr:{invalidField:"Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",userPhone:"Broj telefona",userPrefix:"Telefonski prefix",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",setUpPassowrd:"Morate resetirati svoju lozinku",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran",GmErr_USER_ACCOUNT_BLOCKED:"Trenutno se ne možete prijaviti na svoj račun - molimo kontaktirajte Službu za korisnike za više informacija.",GmErr_USER_AUTH_FAILED:"Uneseno korisničko ime/adresa e-pošte i/ili lozinka su netočni.",AuthFailedPhoneNumber:"Uneseni broj telefona i/ili lozinka su netočni.",CountryRestricted:"Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku.",configError:"Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",userEmailError:"E-mail ili korisničko ime imaju nevažeći format.",userPhoneError:"Prefiks ili telefonski broj imaju nevažeći format.",userPasswordError:"Lozinka ima nevažeći format."},fr:{invalidField:"Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",forgotPassword:"Mot de passe oublié",userEmail:"Nom d'utilisateur ou email",userPhone:"Numéro de téléphone",userPrefix:"Préfixe téléphonique",password:"Mot de passe",login:"Connexion",genericError:"Une erreur inattendue est survenue",successMessage:"Connexion réussie",Forbidden_UserAccount_Blocked:"Compte joueur bloqué",GmErr_USER_ACCOUNT_BLOCKED:"Vous ne pouvez actuellement pas vous connecter à votre compte - veuillez contacter le service client pour plus d'informations.",setUpPassowrd:"Vous devez réinitialiser votre mot de passe",GmErr_USER_AUTH_FAILED:"Le nom d'utilisateur/adresse e-mail et/ou le mot de passe saisis sont incorrects.",AuthFailedPhoneNumber:"Le numéro de téléphone et/ou le mot de passe saisis sont incorrects.",CountryRestricted:"L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support.",configError:"Une erreur inattendue s'est produite lors de la récupération de la configuration",userEmailError:"L'email ou le nom d'utilisateur ont un format invalide.",userPhoneError:"Le préfixe ou le numéro de téléphone ont un format invalide.",userPasswordError:"Le mot de passe a un format invalide."},cs:{invalidField:"Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",userPhone:"Telefonní číslo",userPrefix:"Telefonní předvolba",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",GmErr_USER_ACCOUNT_BLOCKED:"Momentálně se nemůžete přihlásit ke svému účtu - pro více informací kontaktujte zákaznický servis.",setUpPassowrd:"Musíte resetovat své heslo",GmErr_USER_AUTH_FAILED:"Zadané uživatelské jméno/e-mailová adresa a/nebo heslo jsou nesprávné.",AuthFailedPhoneNumber:"Zadané telefonní číslo a/nebo heslo jsou nesprávné.",CountryRestricted:"Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu.",configError:"Při načítání konfigurace došlo k neočekávané chybě",userEmailError:"E-mail nebo uživatelské jméno mají neplatný formát.",userPhoneError:"Předvolba nebo telefonní číslo mají neplatný formát.",userPasswordError:"Heslo má neplatný formát."},de:{invalidField:"Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",forgotPassword:"Passwort vergessen",userEmail:"Benutzername oder E-Mail",userPhone:"Telefonnummer",userPrefix:"Telefonvorwahl",password:"Passwort",login:"Anmelden",genericError:"Ein unerwarteter Fehler ist aufgetreten",successMessage:"Erfolgreich angemeldet",Forbidden_UserAccount_Blocked:"Spielerkonto gesperrt",GmErr_USER_ACCOUNT_BLOCKED:"Sie können sich derzeit nicht in Ihr Konto einloggen - bitte kontaktieren Sie den Kundenservice für weitere Informationen.",setUpPassowrd:"Sie müssen Ihr Passwort zurücksetzen",GmErr_USER_AUTH_FAILED:"Der eingegebene Benutzername/die E-Mail-Adresse und/oder das Passwort sind falsch.",AuthFailedPhoneNumber:"Die eingegebene Telefonnummer und/oder das Passwort sind falsch.",CountryRestricted:"Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support.",configError:"Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",userEmailError:"Die E-Mail oder der Benutzername haben ein ungültiges Format.",userPhoneError:"Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",userPasswordError:"Das Passwort hat ein ungültiges Format."},"pt-br":{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou e-mail",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Login",genericError:"Ocorreu um erro inesperado",successMessage:"Login bem-sucedido",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao buscar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido."},"es-mx":{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé la contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo telefónico",password:"Contraseña",login:"Iniciar sesión",genericError:"Ocurrió un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido."},es:{invalidField:"Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",forgotPassword:"Olvidé mi contraseña",userEmail:"Nombre de usuario o correo electrónico",userPhone:"Número de teléfono",userPrefix:"Prefijo de teléfono",password:"Contraseña",login:"Iniciar sesión",genericError:"Se ha producido un error inesperado",successMessage:"Inicio de sesión exitoso",Forbidden_UserAccount_Blocked:"Cuenta de jugador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",setUpPassowrd:"Necesitas restablecer tu contraseña",GmErr_USER_AUTH_FAILED:"El nombre de usuario/dirección de correo electrónico y/o la contraseña ingresados son incorrectos.",AuthFailedPhoneNumber:"El número de teléfono y/o la contraseña ingresados son incorrectos.",CountryRestricted:"No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte.",configError:"Se ha producido un error inesperado al obtener la configuración",userEmailError:"El correo electrónico o nombre de usuario tienen un formato inválido.",userPhoneError:"El prefijo o el número de teléfono tienen un formato inválido.",userPasswordError:"La contraseña tiene un formato inválido."},pt:{invalidField:"Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",forgotPassword:"Esqueceu a senha",userEmail:"Nome de usuário ou email",userPhone:"Número de telefone",userPrefix:"Prefixo de telefone",password:"Senha",login:"Entrar",genericError:"Ocorreu um erro inesperado",successMessage:"Login realizado com sucesso",Forbidden_UserAccount_Blocked:"Conta de jogador bloqueada",GmErr_USER_ACCOUNT_BLOCKED:"Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",setUpPassowrd:"Você precisa redefinir a sua senha",GmErr_USER_AUTH_FAILED:"O nome de usuário/endereço de e-mail e/ou a senha inseridos estão incorretos.",AuthFailedPhoneNumber:"O número de telefone e/ou a senha inseridos estão incorretos.",CountryRestricted:"Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte.",configError:"Ocorreu um erro inesperado ao procurar a configuração",userEmailError:"O e-mail ou nome de usuário têm um formato inválido.",userPhoneError:"O prefixo ou o número de telefone têm um formato inválido.",userPasswordError:"A senha tem um formato inválido."}},s=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]||(i[e]={});for(let s in t[e])i[e][s]=t[e][s]})),e(!0)}))})),o=(t,e,s)=>{let o=i[void 0!==e&&e in i?e:"en"][t];if(void 0!==s)for(const[t,e]of Object.entries(s.values)){const i=new RegExp(`{${t}}`,"g");o=o.replace(i,e)}return o};function r(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function n(t,e){const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -5,6 +5,7 @@ export const config = {
5
5
  taskQueue: 'async',
6
6
  sourceMap: false,
7
7
  minifyJs: true,
8
+ hashFileNames: false,
8
9
  extras: {
9
10
  experimentalImportInjection: true
10
11
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-elevate-level",
3
- "version": "1.66.1",
3
+ "version": "1.67.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{h as t,a as n}from"./p-46f2ec3d.js";import{a as i}from"./p-d423d988.js";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function a(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function r(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function I(t){r(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===e(t)&&"[object Date]"===n?new Date(t.getTime()):"number"==typeof t||"[object Number]"===n?new Date(t):("string"!=typeof t&&"[object String]"!==n||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var M={};function u(){return M}function o(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}function w(t){r(1,arguments);var n=I(t),i=n.getUTCDay(),e=(i<1?7:0)+i-1;return n.setUTCDate(n.getUTCDate()-e),n.setUTCHours(0,0,0,0),n}function g(t){r(1,arguments);var n=I(t),i=n.getUTCFullYear(),e=new Date(0);e.setUTCFullYear(i+1,0,4),e.setUTCHours(0,0,0,0);var a=w(e),M=new Date(0);M.setUTCFullYear(i,0,4),M.setUTCHours(0,0,0,0);var u=w(M);return n.getTime()>=a.getTime()?i+1:n.getTime()>=u.getTime()?i:i-1}function s(t,n){var i,e,M,o,w,g,s,C;r(1,arguments);var A=u(),c=a(null!==(i=null!==(e=null!==(M=null!==(o=null==n?void 0:n.weekStartsOn)&&void 0!==o?o:null==n||null===(w=n.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==M?M:A.weekStartsOn)&&void 0!==e?e:null===(s=A.locale)||void 0===s||null===(C=s.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=I(t),l=d.getUTCDay(),L=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-L),d.setUTCHours(0,0,0,0),d}function C(t,n){var i,e,M,o,w,g,C,A;r(1,arguments);var c=I(t),d=c.getUTCFullYear(),l=u(),L=a(null!==(i=null!==(e=null!==(M=null!==(o=null==n?void 0:n.firstWeekContainsDate)&&void 0!==o?o:null==n||null===(w=n.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==M?M:l.firstWeekContainsDate)&&void 0!==e?e:null===(C=l.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==i?i:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=new Date(0);j.setUTCFullYear(d+1,0,L),j.setUTCHours(0,0,0,0);var m=s(j,n),D=new Date(0);D.setUTCFullYear(d,0,L),D.setUTCHours(0,0,0,0);var N=s(D,n);return c.getTime()>=m.getTime()?d+1:c.getTime()>=N.getTime()?d:d-1}function A(t,n){for(var i=t<0?"-":"",e=Math.abs(t).toString();e.length<n;)e="0"+e;return i+e}const c=function(t,n){var i=t.getUTCFullYear(),e=i>0?i:1-i;return A("yy"===n?e%100:e,n.length)},d=function(t,n){var i=t.getUTCMonth();return"M"===n?String(i+1):A(i+1,2)},l=function(t,n){return A(t.getUTCDate(),n.length)},L=function(t,n){return A(t.getUTCHours()%12||12,n.length)},j=function(t,n){return A(t.getUTCHours(),n.length)},m=function(t,n){return A(t.getUTCMinutes(),n.length)},D=function(t,n){return A(t.getUTCSeconds(),n.length)},N=function(t,n){var i=n.length,e=t.getUTCMilliseconds();return A(Math.floor(e*Math.pow(10,i-3)),n.length)};var y={G:function(t,n,i){var e=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"});case"GGGGG":return i.era(e,{width:"narrow"});default:return i.era(e,{width:"wide"})}},y:function(t,n,i){if("yo"===n){var e=t.getUTCFullYear();return i.ordinalNumber(e>0?e:1-e,{unit:"year"})}return c(t,n)},Y:function(t,n,i,e){var a=C(t,e),r=a>0?a:1-a;return"YY"===n?A(r%100,2):"Yo"===n?i.ordinalNumber(r,{unit:"year"}):A(r,n.length)},R:function(t,n){return A(g(t),n.length)},u:function(t,n){return A(t.getUTCFullYear(),n.length)},Q:function(t,n,i){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(e);case"QQ":return A(e,2);case"Qo":return i.ordinalNumber(e,{unit:"quarter"});case"QQQ":return i.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(e,{width:"narrow",context:"formatting"});default:return i.quarter(e,{width:"wide",context:"formatting"})}},q:function(t,n,i){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(e);case"qq":return A(e,2);case"qo":return i.ordinalNumber(e,{unit:"quarter"});case"qqq":return i.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(e,{width:"narrow",context:"standalone"});default:return i.quarter(e,{width:"wide",context:"standalone"})}},M:function(t,n,i){var e=t.getUTCMonth();switch(n){case"M":case"MM":return d(t,n);case"Mo":return i.ordinalNumber(e+1,{unit:"month"});case"MMM":return i.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(e,{width:"narrow",context:"formatting"});default:return i.month(e,{width:"wide",context:"formatting"})}},L:function(t,n,i){var e=t.getUTCMonth();switch(n){case"L":return String(e+1);case"LL":return A(e+1,2);case"Lo":return i.ordinalNumber(e+1,{unit:"month"});case"LLL":return i.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(e,{width:"narrow",context:"standalone"});default:return i.month(e,{width:"wide",context:"standalone"})}},w:function(t,n,i,e){var M=function(t,n){r(1,arguments);var i=I(t),e=s(i,n).getTime()-function(t,n){var i,e,I,M,o,w,g,A;r(1,arguments);var c=u(),d=a(null!==(i=null!==(e=null!==(I=null!==(M=null==n?void 0:n.firstWeekContainsDate)&&void 0!==M?M:null==n||null===(o=n.locale)||void 0===o||null===(w=o.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==I?I:c.firstWeekContainsDate)&&void 0!==e?e:null===(g=c.locale)||void 0===g||null===(A=g.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==i?i:1),l=C(t,n),L=new Date(0);return L.setUTCFullYear(l,0,d),L.setUTCHours(0,0,0,0),s(L,n)}(i,n).getTime();return Math.round(e/6048e5)+1}(t,e);return"wo"===n?i.ordinalNumber(M,{unit:"week"}):A(M,n.length)},I:function(t,n,i){var e=function(t){r(1,arguments);var n=I(t),i=w(n).getTime()-function(t){r(1,arguments);var n=g(t),i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),w(i)}(n).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===n?i.ordinalNumber(e,{unit:"week"}):A(e,n.length)},d:function(t,n,i){return"do"===n?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):l(t,n)},D:function(t,n,i){var e=function(t){r(1,arguments);var n=I(t),i=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var e=n.getTime();return Math.floor((i-e)/864e5)+1}(t);return"Do"===n?i.ordinalNumber(e,{unit:"dayOfYear"}):A(e,n.length)},E:function(t,n,i){var e=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return i.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(e,{width:"short",context:"formatting"});default:return i.day(e,{width:"wide",context:"formatting"})}},e:function(t,n,i,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(n){case"e":return String(r);case"ee":return A(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(a,{width:"short",context:"formatting"});default:return i.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,i,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(n){case"c":return String(r);case"cc":return A(r,n.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(a,{width:"narrow",context:"standalone"});case"cccccc":return i.day(a,{width:"short",context:"standalone"});default:return i.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,i){var e=t.getUTCDay(),a=0===e?7:e;switch(n){case"i":return String(a);case"ii":return A(a,n.length);case"io":return i.ordinalNumber(a,{unit:"day"});case"iii":return i.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(e,{width:"short",context:"formatting"});default:return i.day(e,{width:"wide",context:"formatting"})}},a:function(t,n,i){var e=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})}},b:function(t,n,i){var e,a=t.getUTCHours();switch(e=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",n){case"b":case"bb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})}},B:function(t,n,i){var e,a=t.getUTCHours();switch(e=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",n){case"B":case"BB":case"BBB":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})}},h:function(t,n,i){if("ho"===n){var e=t.getUTCHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return L(t,n)},H:function(t,n,i){return"Ho"===n?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):j(t,n)},K:function(t,n,i){var e=t.getUTCHours()%12;return"Ko"===n?i.ordinalNumber(e,{unit:"hour"}):A(e,n.length)},k:function(t,n,i){var e=t.getUTCHours();return 0===e&&(e=24),"ko"===n?i.ordinalNumber(e,{unit:"hour"}):A(e,n.length)},m:function(t,n,i){return"mo"===n?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):m(t,n)},s:function(t,n,i){return"so"===n?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):D(t,n)},S:function(t,n){return N(t,n)},X:function(t,n,i,e){var a=(e._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(n){case"X":return h(a);case"XXXX":case"XX":return v(a);default:return v(a,":")}},x:function(t,n,i,e){var a=(e._originalDate||t).getTimezoneOffset();switch(n){case"x":return h(a);case"xxxx":case"xx":return v(a);default:return v(a,":")}},O:function(t,n,i,e){var a=(e._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},z:function(t,n,i,e){var a=(e._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},t:function(t,n,i,e){return A(Math.floor((e._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,i,e){return A((e._originalDate||t).getTime(),n.length)}};function b(t,n){var i=t>0?"-":"+",e=Math.abs(t),a=Math.floor(e/60),r=e%60;if(0===r)return i+String(a);var I=n||"";return i+String(a)+I+A(r,2)}function h(t,n){return t%60==0?(t>0?"-":"+")+A(Math.abs(t)/60,2):v(t,n)}function v(t,n){var i=n||"",e=t>0?"-":"+",a=Math.abs(t);return e+A(Math.floor(a/60),2)+i+A(a%60,2)}const z=y;var f=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},T=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},Z={p:T,P:function(t,n){var i,e=t.match(/(P+)(p+)?/)||[],a=e[1],r=e[2];if(!r)return f(t,n);switch(a){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;default:i=n.dateTime({width:"full"})}return i.replace("{{date}}",f(a,n)).replace("{{time}}",T(r,n))}};const x=Z;var S=["D","DD"],G=["YY","YYYY"];function W(t,n,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.width?String(n.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var Q,k={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},p={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function E(t){return function(n,i){var e;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,r=null!=i&&i.width?String(i.width):a;e=t.formattingValues[r]||t.formattingValues[a]}else{var I=t.defaultWidth,M=null!=i&&i.width?String(i.width):t.defaultWidth;e=t.values[M]||t.values[I]}return e[t.argumentCallback?t.argumentCallback(n):n]}}function V(t){return function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=i.width,a=n.match(e&&t.matchPatterns[e]||t.matchPatterns[t.defaultMatchWidth]);if(!a)return null;var r,I=a[0],M=e&&t.parsePatterns[e]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(M)?function(t){for(var n=0;n<t.length;n++)if(t[n].test(I))return n}(M):function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n].test(I))return n}(M);return r=t.valueCallback?t.valueCallback(u):u,{value:r=i.valueCallback?i.valueCallback(r):r,rest:n.slice(I.length)}}}const X={code:"en-US",formatDistance:function(t,n,i){var e,a=Y[t];return e="string"==typeof a?a:1===n?a.one:a.other.replace("{{count}}",n.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+e:e+" ago":e},formatLong:k,formatRelative:function(t){return p[t]},localize:{ordinalNumber:function(t){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:E({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:E({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:E({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:E({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:E({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Q={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(Q.matchPattern);if(!i)return null;var e=i[0],a=t.match(Q.parsePattern);if(!a)return null;var r=Q.valueCallback?Q.valueCallback(a[0]):a[0];return{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(e.length)}}),era:V({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:V({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:V({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:V({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var U=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,J=/^'([^]*?)'?$/,R=/''/g,O=/[a-zA-Z]/;function H(t,n,i){var M,w,g,s,C,A,c,d,l,L,j,m,D,N,y,b,h,v;r(2,arguments);var f=String(n),T=u(),Z=null!==(M=null!==(w=null==i?void 0:i.locale)&&void 0!==w?w:T.locale)&&void 0!==M?M:X,Y=a(null!==(g=null!==(s=null!==(C=null!==(A=null==i?void 0:i.firstWeekContainsDate)&&void 0!==A?A:null==i||null===(c=i.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==C?C:T.firstWeekContainsDate)&&void 0!==s?s:null===(l=T.locale)||void 0===l||null===(L=l.options)||void 0===L?void 0:L.firstWeekContainsDate)&&void 0!==g?g:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=a(null!==(j=null!==(m=null!==(D=null!==(N=null==i?void 0:i.weekStartsOn)&&void 0!==N?N:null==i||null===(y=i.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==D?D:T.weekStartsOn)&&void 0!==m?m:null===(h=T.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==j?j:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw new RangeError("locale must contain localize property");if(!Z.formatLong)throw new RangeError("locale must contain formatLong property");var Q=I(t);if(!function(t){if(r(1,arguments),!function(t){return r(1,arguments),t instanceof Date||"object"===e(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var n=I(t);return!isNaN(Number(n))}(Q))throw new RangeError("Invalid time value");var k=function(t,n){return r(2,arguments),function(t,n){r(2,arguments);var i=I(t).getTime(),e=a(n);return new Date(i+e)}(t,-a(n))}(Q,o(Q)),p={firstWeekContainsDate:Y,weekStartsOn:P,locale:Z,_originalDate:Q};return f.match(B).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,x[n])(t,Z.formatLong):t})).join("").match(U).map((function(e){if("''"===e)return"'";var a,r,I=e[0];if("'"===I)return(r=(a=e).match(J))?r[1].replace(R,"'"):a;var M=z[I];if(M)return null!=i&&i.useAdditionalWeekYearTokens||-1===G.indexOf(e)||W(e,n,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!(-1!==S.indexOf(e))||W(e,n,String(t)),M(k,e,Z.localize,p);if(I.match(O))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return e})).join("")}const F=()=>t("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ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0iMTYzIiB5MT0iNiIgeDI9IjE3NC4yIiB5Mj0iMjIuNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjOTQ2QUQ3Ii8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0VGQUJFQiIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyX2xvY2siIHgxPSIxMDAlIiB5MT0iMTguNDA1NiIgeDI9IjE2OS4wMDIiIHkyPSIxMC4yODQ1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MTRGRDYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDY3OUQ4Ii8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="}),K=({loyaltyPoints:n,spendablePoints:e,pointExpireString:a,language:r})=>t("div",{class:"PointsInfo"},n&&n>=0&&t("div",{class:"Points"},n," ",t("sub",{class:"XP"},i("xp",r))),e&&t("div",{class:"Points"},e," ",t("sub",{class:"XP"},i("sp",r))),a&&t("div",{class:"ExpirationPoints"},a," ")),q=({language:n,onRedeemClick:e})=>t("div",{class:"CardCell Redeem"},t("div",{class:"RedeemButton",onClick:()=>{e()}},t("span",null,i("redeem",n)))),$=n=>t("div",{class:"CardCell PlayerName Txt"},n.playerName),_=e=>t("div",{class:"CardCell ElevateLevel"},t("span",{class:"LevelName",title:e.level},e.level),e.expireTime&&t("div",{class:"CardCell ExpirationDate Txt"},i("expireOn",e.language),t("span",{class:"ExpireTime"},H(new Date(e.expireTime),e.dateFormat||"yyyy-MM-dd")),!e.hideInfo&&t("span",{class:"fa Info",style:{background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2aWF0aW9uPSIxMiIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="})))),tt=i=>{const e=i.loyaltyIconUrl?t("img",{class:"Badge",src:i.loyaltyIconUrl}):i.hideIfNull?"":t("div",{class:"Badge"}),a=i.playerAvatarUrl||n("../static/user.svg");return t("div",{class:"PlayerAvatar",style:{position:i.onlyBadge?"":"relative"}},!i.onlyBadge&&t("img",{class:"Avatar",src:a}),e)};export{tt as P,_ as a,K as b,F as c,$ as d,q as e,o as g,r,I as t}
@@ -1 +0,0 @@
1
- import{r as e,a as n,h as a,F as t}from"./p-46f2ec3d.js";import{P as i,b as s,d as r,a as d,c as o,e as c}from"./p-51886815.js";import{T as l}from"./p-d423d988.js";const h=class{constructor(n){e(this,n),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerLevelFlag=0,this.playerElevateLevel=void 0,this.elevateWalletTotal=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),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString),e.detail.calculatedLevelFlag&&(this.playerLevelFlag=e.detail.calculatedLevelFlag))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language,calculateLevelFlag:!0}}render(){const e=n("../static/card-ground.svg"),h=n("../static/card-ground-over.svg");return a("div",{key:"278a328dd084ee73b2707b93a57bccae64a2c9c7",class:`ElevateCardWrapper ${this.theme}`},a("div",{key:"68c885baf533447a7c77fd887bbec11e53768277",class:"Card Outer",style:{backgroundImage:`url(${e}`}},a("general-styling-wrapper",{key:"4066253a70cdd5e712ca244a708e7c1600c83071",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:l,translationUrl:this.translationUrl}),a("player-elevate-card-data",{key:"64cda2a267c752056b3c7e3134cc324fa96bc261",params:this.paramProxy}),a("div",{key:"c63ae83b401a35f5a78acd83dc3d7296c25141d7",class:"OuterCover Inner",style:{backgroundImage:`url(${h}`}},this.playerElevateLevel&&a(t,{key:"ba16e5bb54259c17fd9e5aa0e3c03c2ec5d4263c"},a("div",{key:"fa1bf74f45e28318c95266cc42c54541bde92718",class:"Content Row"},a("div",{key:"7ede46f91bcc0d894b2b633627a4ca97d15fbe90",class:"PlayerImg"},a(i,{key:"b6d0bac085e0178512b8a63ba8fccae7d4cc8399",playerAvatarUrl:this.playerAvatarUrl,loyaltyIconUrl:this.playerElevateLevel.presentation.asset}),a(s,{key:"88c445dbcd7dbe426a8de18beea02aecc03e26f3",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language})),this.pointExpireString&&a("div",{key:"4d985e486ecb74a6c916b28e619de83cb3d77ac1",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),a("div",{key:"34e051ee1ff79b825fca57db958e1e5684a0aca1",class:`LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}`},a(r,{key:"fa1b1f16e0b25c6adfba4c215e4ed377e05699b2",playerName:this.playerName}),a(d,{key:"6d18b1422db202363ebcd56cc56946e0e071937b",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),a(o,{key:"7dae355c4a5a9e28c70dced0ac061608f1753020"}),a(c,{key:"7e5f830b612c962a828c58f20a88dc97d315c910",onRedeemClick:this.onRedeemClick,language:this.language})))))))}static get assetsDirs(){return["../static"]}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};h.style="@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emw--color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";export{h as player_elevate_card}
@@ -1 +0,0 @@
1
- import{r as a,h as e}from"./p-46f2ec3d.js";import{a as t,t as i,T as n}from"./p-d423d988.js";const r=class{constructor(e){a(this,e),this.truncateNumber=(a,e=2)=>{const t=a.toString(),[i,n=""]=t.split(".");return e>0?`${i}.${n?n.slice(0,e):"00"}`:`${i}`},this.sendRakebackClaimedEvent=()=>{this.endpoint&&this.session&&this.rakebackInfo.claimable&&!this.isLoading&&window.postMessage({type:"RakebackClaimTrigger",points:this.rakebackInfo.points},window.location.href)},this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.show=!0,this.rakebackInfo={hasRakebackWallet:!1,points:0,currency:"TRY",claimable:!1,minutesCanClaim:0,showCanClaim:!1},this.isLoading=!1,this.coolingOffPeriod=!1,this.showTheWidget=!1}async onSessionOrEndpointChange(){await this.loadRakebackInfo()}async onShowOrHasRakebackWalletChange(){this.showTheWidget=this.show&&this.rakebackInfo.hasRakebackWallet}handleMessage(a){const{type:e}=null==a?void 0:a.data;"RakebackClaimConfirmed"===e&&this.claimRakeback()}async loadRakebackInfo(){if(this.endpoint&&this.session){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`),e=await fetch(a.href,{method:"GET",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(!t.success)throw new Error(t.errorMessage||"Failed to load rakeback info");const{rakebackWallet:i}=null==t?void 0:t.data;if(!i)return void window.postMessage({type:"RakebackWalletMissing"},window.location.href);const{total:n,claimable:r,currency:o,minutesCanClaim:s}=i||{};this.rakebackInfo={hasRakebackWallet:!0,points:(null==n?void 0:n.points)?this.truncateNumber(n.points,2):"0.00",currency:o||"",claimable:r||!1,showCanClaim:Boolean(s&&s>0),minutesCanClaim:s?s<=1&&s>0?1:this.truncateNumber(s,0):0}}catch(a){console.error("Error loading rakeback info:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}}async claimRakeback(){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/rakeback/claim`),e=await fetch(a.href,{method:"PUT",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"},body:JSON.stringify({})});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(!t.success)throw new Error(t.errorMessage||"Failed to claim rakeback");await this.loadRakebackInfo(),window.postMessage({type:"RakebackClaimed",points:this.rakebackInfo.points},window.location.href)}catch(a){console.error("Error claiming rakeback:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}async componentWillLoad(){await this.loadRakebackInfo(),await this.onShowOrHasRakebackWalletChange()}render(){return this.showTheWidget?e("div",{class:"RakebackCard"},e("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:n,translationUrl:this.translationUrl}),e("div",{class:"RakebackCardContent"},e("div",{class:"RakebackTitle"},t("rakebackTitle",this.language)),e("div",{class:"RakebackDetails"},e("div",{class:"RakebackInfo"},e("div",{class:"RakebackNumContainer"},e("span",{class:"RakebackNum"},this.rakebackInfo.points),e("span",{class:"RakebackCurrency"},this.rakebackInfo.currency))),e("div",{class:"RakebackButton "+(this.isLoading||!this.rakebackInfo.claimable?"disabled":""),onClick:this.sendRakebackClaimedEvent},t("claim",this.language))),!this.rakebackInfo.claimable&&this.rakebackInfo.showCanClaim&&e("div",{class:"RakebackCoolOff"},i("minutesCanClaim",{lang:this.language,minutes:this.rakebackInfo.minutesCanClaim})))):null}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}}};r.style=":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}";export{r as player_rakeback_card}
@@ -1 +0,0 @@
1
- import{r as e,a,h as t,F as i}from"./p-46f2ec3d.js";import{T as n,a as s}from"./p-d423d988.js";import{P as d,b as r}from"./p-51886815.js";const o=class{constructor(a){e(this,a),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 e=a("../static/card-ground.svg"),o=a("../static/card-ground-over.svg");return t("div",{key:"4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253",class:"PointsCard Outer ",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:n,translationUrl:this.translationUrl}),t("player-elevate-card-data",{key:"4371faac6967c5b3eced57f6251064ea4e1d6a65",params:this.paramProxy}),t("div",{key:"c78235a6fdc2aed90df898f007b5ee091cece8dc",class:"OuterCover Inner",style:{backgroundImage:`url(${o}`}},t("div",{key:"025e779223c1c85c11998be8389a8ff836a31e6c",class:"Content Row"},this.playerElevateLevel&&t(i,{key:"68daa6047dc93d2596d8b2309a26f56960737617"},t("div",{key:"6a2d2b2e7d234bceaf3d9240c5d4f2eb80395319",class:"PlayerImg"},t(d,{key:"aeaf35ad8055ad4f7312922c8600ea58d09be74f",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"bd51ce868b4d8a547f40ec55548bbf3cfa416534",class:`LevelInfo ${this.playerElevateLevel.name}`},t("div",{key:"5f4d77a5b43c8efee850b9813bc1c8e61d27d45d",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:s("spendablePoints")),t("div",{key:"bae5dc76d00c98aed803601c19fe3bf1aa4418d5",class:"PointsTxt SPPoints"},t(r,{key:"59d51bd37f44ed23108fc4356af41c01668354e3",spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),t("a",{key:"3a923bea242ae5fa412f4448dca7277b3588621e",class:"TC",onClick:()=>{this.onDetailsClick()}},s("termAndConditions",this.language))),this.pointExpireString&&t("div",{key:"8803ae8d343885da58dfa04b9a4474ff473b5a74",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};o.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{o as player_elevate_pointcard}