@everymatrix/bonus-elevate-levels 1.55.0 → 1.56.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.
Files changed (27) hide show
  1. package/dist/bonus-elevate-levels/bonus-elevate-levels.esm.js +1 -1
  2. package/dist/bonus-elevate-levels/p-446de4da.entry.js +1 -0
  3. package/dist/bonus-elevate-levels/p-cd49f994.js +2 -0
  4. package/dist/cjs/bonus-elevate-levels.cjs.js +2 -2
  5. package/dist/cjs/bonus-elevate-levels_5.cjs.entry.js +40 -28
  6. package/dist/cjs/{index-477d45bd.js → index-be32e996.js} +251 -141
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/bonus-elevate-levels/bonus-elevate-levels.js +29 -6
  10. package/dist/collection/components/elevate-level-list/elevate-level-list.js +9 -8
  11. package/dist/collection/components/elevate-level-presentation/elevate-level-presentation.js +3 -4
  12. package/dist/collection/components/elevate-levels-data/elevate-levels-data.js +2 -3
  13. package/dist/esm/bonus-elevate-levels.js +3 -3
  14. package/dist/esm/bonus-elevate-levels_5.entry.js +40 -28
  15. package/dist/esm/{index-e50c1ed9.js → index-c674865b.js} +251 -141
  16. package/dist/esm/loader.js +2 -2
  17. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/packages/stencil/bonus-elevate-levels/stencil.config.d.ts +2 -0
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/packages/stencil/bonus-elevate-levels/stencil.config.dev.d.ts +2 -0
  19. package/package.json +1 -1
  20. package/dist/bonus-elevate-levels/p-9016df9e.js +0 -2
  21. package/dist/bonus-elevate-levels/p-f071199b.entry.js +0 -1
  22. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/packages/stencil/bonus-elevate-levels/stencil.config.d.ts +0 -2
  23. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/packages/stencil/bonus-elevate-levels/stencil.config.dev.d.ts +0 -2
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/tools/plugins/index.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  27. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-elevate-levels/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-9016df9e.js";export{s as setNonce}from"./p-9016df9e.js";import{g as t}from"./p-e1255160.js";(()=>{const l=import.meta.url,t={};return""!==l&&(t.resourcesUrl=new URL(".",l).href),e(t)})().then((async e=>(await t(),l([["p-f071199b",[[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"]}],[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"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],e))));
1
+ import{p as e,b as l}from"./p-cd49f994.js";export{s as setNonce}from"./p-cd49f994.js";import{g as t}from"./p-e1255160.js";(()=>{const l=import.meta.url,t={};return""!==l&&(t.resourcesUrl=new URL(".",l).href),e(t)})().then((async e=>(await t(),l([["p-446de4da",[[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"]}],[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"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as e,h as t,c as i,H as s,g as l}from"./p-cd49f994.js";const n=["ro","en","fr","hr","tr"],o={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"}},a=(e,t)=>{const i=t;return o[void 0!==i&&(n.includes(i)||o[i])?i:"en"][e]},r=class{constructor(t){e(this,t),this.clientStyling="",this.clientStylingUrl="",this.language="en",this.translationUrl="",this.elevateLevels=[]}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=a("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}):a("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:o,translationUrl:this.translationUrl}))}static get watchers(){return{selectedLevelId:["selectedLevelIdChangedHandler"],elevateLevels:["selectedLevelIdChangedHandler"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};var d;r.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"}(d||(d={}));const h=class{constructor(t){var s;e(this,t),this.selectedLevelChanged=i(this,"selectedLevelChanged",7),this.isShowSliderButton=!1,this.offset=0,this.minOffset=0,this.isMobile=!!((s=window.navigator.userAgent).toLowerCase().match(/android/i)||s.toLowerCase().match(/blackberry|bb/i)||s.toLowerCase().match(/iphone|ipad|ipod/i)||s.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))}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,i=this.touchPosEnd.clientY-this.touchPosStart.clientY;Math.abs(t)>Math.abs(i)&&this.slideTo(t>0?d.slideToRight:d.slideToLeft)}slideTo(e){let t=this.levelsElement.offsetLeft+this.childElementWidth*this.moveCountForOneTouch*e;if(t%this.childElementWidth!=0){const i=Math.floor(t/this.childElementWidth)*this.childElementWidth,s=Math.ceil(t/this.childElementWidth)*this.childElementWidth;t=e==d.slideToRight?i:s}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 i;return()=>{clearTimeout(i),i=setTimeout((()=>{e()}),t)}}}handleResize(){this.debounce(this.initLevelSlider.bind(this),200)()}componentDidRender(){this.host.componentOnReady().then((()=>{this.initLevelSlider()}))}render(){return t(s,{key:"d88d3434af89a0f8fd20a97735121fdf297905ab"},this.levels&&[t("div",{key:"cff36ba584e2474a65a1b95545b00937ecd06c8c",class:`SliderButton LeftButton ${0==this.offset?"Disabled":""} ${this.isShowSliderButton?"":"Hidden"}`,onClick:()=>this.slideTo(d.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,i)=>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==i?"":">",e.firstEntryPoints," ",a("points",this.language))))))),t("div",{key:"8dae638ca436c7e747a0f737028588ee5d040edd",class:`SliderButton RightButton ${this.offset<=this.minOffset?"Disabled":""} ${this.isShowSliderButton?"":"Hidden"}`,onClick:()=>this.slideTo(d.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 l(this)}static get watchers(){return{selectedLevelId:["levelsChangedHandler"]}}};h.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 c=class{constructor(t){e(this,t)}render(){return t(s,{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}))))}};c.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 v,f,p,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g={exports:{}};v=g,f=g.exports,p=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==b)return b;throw new Error("unable to locate global object")}(),v.exports=f=p.fetch,p.fetch&&(f.default=p.fetch.bind(p)),f.Headers=p.Headers,f.Request=p.Request,f.Response=p.Response;const u=g.exports,m=class{constructor(t){e(this,t),this.elevateLevelsDataChange=i(this,"elevateLevelsDataChange",7)}async componentWillRender(){if(!this.scopeParams.endpoint)return;let e=new URL(`${this.scopeParams.endpoint}/v1/elevate/levels?language=${this.scopeParams.language}`);await u(e.href).then((e=>e.json())).then((e=>{const t=e.data.sort(((e,t)=>e.firstEntryPoints<t.firstEntryPoints?-1:1));let i=this.scopeParams.selectedLevelId;if(!i&&this.scopeParams.showDefault&&t.length>0&&(i=t[0].id),i){const e=t.filter((e=>e.id==i))[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)}))}};m.style=":host{display:block}";const w=class{constructor(t){e(this,t),this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",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)}))}}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const s=(t=this.translationUrl,i=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]=i[e]?i[e]:{};for(let s in t[e])i[e][s]=t[e][s]})),e(!0)}))})));e.push(s)}var t,i;return await Promise.all(e)}render(){return t("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},t("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return l(this)}};w.style=":host{display:block}";export{r as bonus_elevate_levels,h as elevate_level_list,c as elevate_level_presentation,m as elevate_levels_data,w as general_styling_wrapper}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},d=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,v=[],m=[],y=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?w(b):a.raf(b))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{$(v),$(m),(p=v.length>0)&&a.raf(b)},w=t=>d().then(t),g=y(m,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>C,unwrapErr:()=>M});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},R=t=>{const e=t.__childNodes||t.childNodes;t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&T(e,t.tagName).forEach((t=>{var e;1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!(null==(e=L(t,t["s-sn"],!1))?void 0:e.length))}));for(const t of e)1===t.nodeType&&(t.__childNodes||t.childNodes).length&&R(t)};function T(t,e,n){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&o["s-hn"]===e&&(void 0===n||o["s-sn"]===n)&&(s.push(o),void 0!==n))return s;s=[...s,...T(o.childNodes,e,n)]}return s}var x,P,L=(t,e,n=!0)=>{const o=[];for((n&&t["s-sr"]||!t["s-sr"])&&o.push(t);(t=t.nextSibling)&&t["s-sn"]===e;)o.push(t);return o},A=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,F=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!S(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?N(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const f=N(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.v=s,f},N=(t,e)=>({o:0,m:t,i:e,$:null,h:null,u:null,p:null,v:null}),H={},W=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,B=t=>n(t).$hostElement$,D=(t,e,n)=>{const o=B(t);return{emit:t=>U(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},U=(t,e,n)=>{const o=a.ce(e,n);return t.dispatchEvent(o),o},V=new WeakMap,q=t=>"sc-"+t.S,G=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=z(n);let s=z(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(I);e=e.replace(J,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},_=/\s/,z=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(_):[]),I="Capture",J=RegExp(I+"$"),K=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||{},s=e.u||{};for(const t of Q(Object.keys(l)))t in s||G(o,t,l[t],void 0,n,e.o);for(const t of Q(Object.keys(s)))G(o,t,l[t],s[t],n,e.o)};function Q(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var X=!1,Y=!1,Z=!1,tt=!1,et=(t,e,n)=>{var o;const l=e.h[n];let s,i,r,c=0;if(X||(Z=!0,"slot"===l.m&&(l.o|=l.h?2:1)),null!==l.i)s=l.$=f.createTextNode(l.i);else if(1&l.o)s=l.$=f.createTextNode("");else{if(tt||(tt="svg"===l.m),s=l.$=f.createElementNS(tt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!X&&2&l.o?"slot-fb":l.m),tt&&"foreignObject"===l.m&&(tt=!1),K(null,l,tt),l.h)for(c=0;c<l.h.length;++c)i=et(t,l,c),i&&s.appendChild(i);"svg"===l.m?tt=!1:"foreignObject"===s.tagName&&(tt=!0)}return s["s-hn"]=P,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=x,s["s-sn"]=l.v||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,r=t&&t.h&&t.h[n],r&&r.m===l.m&&t.$&&nt(t.$,!1)),s},nt=(t,e)=>{a.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==P&&o["s-ol"]&&(at(it(o).parentNode,o,it(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Z=!0),e&&nt(o,e)}a.o&=-2},ot=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=et(null,n,l),i&&(o[l].$=i,at(r,i,it(e))))},lt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;ft(e),t&&(Y=!0,t["s-ol"]?t["s-ol"].remove():nt(t,!0),t.remove())}}},st=(t,e,n=!1)=>t.m===e.m&&("slot"===t.m?t.v===e.v:n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),it=t=>t&&t["s-ol"]||t,rt=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,i=e.m,r=e.i;let c;null===r?(tt="svg"===i||"foreignObject"!==i&&tt,("slot"!==i||X)&&K(t,e,tt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,v=o[0],m=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--p];else if(st(d,v,l))rt(d,v,l),d=e[++r],v=o[++c];else if(st(h,m,l))rt(h,m,l),h=e[--a],m=o[--p];else if(st(d,m,l))"slot"!==d.m&&"slot"!==m.m||nt(d.$.parentNode,!1),rt(d,m,l),at(t,d.$,h.$.nextSibling),d=e[++r],m=o[--p];else if(st(h,v,l))"slot"!==d.m&&"slot"!==m.m||nt(h.$.parentNode,!1),rt(h,v,l),at(t,h.$,d.$),h=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===v.p){u=f;break}u>=0?(i=e[u],i.m!==v.m?s=et(e&&e[c],n,u):(rt(i,v,l),e[u]=void 0,s=i.$),v=o[++c]):(s=et(e&&e[c],n,c),v=o[++c]),s&&at(it(d.$).parentNode,s,it(d.$))}r>a?ot(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&lt(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),ot(o,null,e,s,0,s.length-1)):!n&&null!==l&&lt(l,0,l.length-1),tt&&"svg"===i&&(tt=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(o.data=r)},ct=[],ut=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(A(e,l)){let n=ct.find((t=>t.j===e));Y=!0,e["s-sn"]=e["s-sn"]||l,n?(n.j["s-sh"]=t["s-hn"],n.O=t):(e["s-sh"]=t["s-hn"],ct.push({O:t,j:e})),e["s-sr"]&&ct.map((t=>{A(t.j,e["s-sn"])&&(n=ct.find((t=>t.j===e)),n&&!t.O&&(t.O=n.O))}))}else ct.some((t=>t.j===e))||ct.push({j:e})}1===t.nodeType&&ut(t)}},ft=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(ft)},at=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),dt=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},ht=(t,e)=>{if(t.o|=16,!(4&t.o))return dt(t,t.C),g((()=>pt(t,e)));t.o|=512},pt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e&&(t.o|=256,t.M&&(t.M.map((([t,e])=>gt(o,t,e,n))),t.M=void 0),l=gt(o,"componentWillLoad",void 0,n)),l=vt(l,(()=>gt(o,"componentWillRender",void 0,n))),vt(l,(()=>yt(t,o,e)))},vt=(t,e)=>mt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),mt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,yt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.R,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=q(e),l=r.get(o);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let s,i=V.get(t=t.head||t);if(i||V.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.T)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(h){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);$t(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>bt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},$t=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.R,u=t.P||N(null,null),d=(t=>t&&t.m===H)(e)?e:F(null,null,e);if(P=r.tagName,c.L&&(d.u=d.u||{},c.L.map((([t,e])=>d.u[e]=r[t]))),n&&d.u)for(const t of Object.keys(d.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=r[t]);if(d.m=null,d.o|=4,t.P=d,d.$=u.$=r.shadowRoot||r,X=!(!(1&c.o)||128&c.o),x=r["s-cr"],Y=!1,rt(u,d,n),a.o|=1,Z){ut(d.$);for(const t of ct){const e=t.j;if(!e["s-ol"]){const t=f.createTextNode("");t["s-nr"]=e,at(e.parentNode,e["s-ol"]=t,e)}}for(const t of ct){const e=t.j,r=t.O;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),at(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}Y&&R(d.$),a.o&=-2,ct.length=0,x=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},bt=t=>{const e=t.$hostElement$,n=t.C;gt(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,St(e),t.A(e),n||wt()),t.k&&(t.k(),t.k=void 0),512&t.o&&w((()=>ht(t,!1))),t.o&=-517},wt=()=>{w((()=>U(u,"appload",{detail:{namespace:"bonus-elevate-levels"}})))},gt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},St=t=>t.classList.add("hydrated"),jt=(t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(e),u=i.o,f=i.t;if(o=W(o,l.N[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.F.set(e,o),f)){if(l.H&&128&u){const t=l.H[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&ht(i,!1)}},Ot=(t,e,o)=>{var l,s;const i=t.prototype;if(e.N||e.H||t.watchers){t.watchers&&!e.H&&(e.H=t.watchers);const r=Object.entries(null!=(l=e.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).F.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.F.get(t)?s=i.F.get(t):!i.F.get(t)&&n&&i.F.set(t,n),r.call(this,W(s,l)),void jt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return jt(this,t,s,e),void(1&o&&!i.t&&i.W.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.F.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.F.get(t)&&n&&i.F.set(t,n),i.t[t]=W(s,l),jt(this,t,i.t[t],e)};i.t?n():i.W.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.L)||l.push([t,s])),s}))]))}}return t},kt=(t,o={})=>{var l;const d=[],p=o.exclude||[],v=u.customElements,m=f.head,y=m.querySelector("meta[charset]"),$=f.createElement("style"),b=[];let w,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],N:o[2],B:o[3]};4&c.o&&(S=!0),c.N=o[2],c.B=o[3],c.L=[],c.H=null!=(l=o[4])?l:{};const u=c.S,m=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,R:n,F:new Map};o.W=new Promise((t=>o.A=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Et(this,t,c.B)),w&&(clearTimeout(w),w=null),g?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.R,l=()=>{};if(1&e.o)Et(t,e,o.B),(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=f.createComment("");e["s-cn"]=!0,at(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){dt(e,e.C=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.D){const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.D;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.S}#${e.U}" was not found`);o.isProxied||(n.H=o.watchers,Ot(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,e.o|=128,r()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=q(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.C,c=()=>ht(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);e.V&&(e.V.map((t=>t())),e.V=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}))}V.has(t)&&V.delete(t),t.shadowRoot&&V.has(t.shadowRoot)&&V.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.P)?void 0:t.$)instanceof Node&&!e.P.$.isConnected&&delete e.P.$}))}componentOnReady(){return n(this).W}};c.D=t[0],p.includes(u)||v.get(u)||(d.push(u),v.define(u,Ot(m,c,1)))}))})),d.length>0&&(S&&($.textContent+=c),$.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(l=a.T)?l:j(f);null!=t&&$.setAttribute("nonce",t),m.insertBefore($,y?y.nextSibling:m.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(wt,30)))},Et=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=Mt(t,n),i=Ct(e,l),r=Rt(n);a.ael(s,o,i,r),(e.V=e.V||[]).push((()=>a.rel(s,o,i,r)))}))},Ct=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.M=t.M||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},Mt=(t,e)=>8&e?u:t,Rt=t=>({passive:!!(1&t),capture:!!(2&t)}),Tt=t=>a.T=t;export{H,kt as b,D as c,B as g,F as h,d as p,o as r,Tt as s}
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-477d45bd.js');
5
+ const index = require('./index-be32e996.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('bonus-elevate-levels.cjs.js', document.baseURI).href));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-477d45bd.js');
5
+ const index = require('./index-be32e996.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'hr', 'tr'];
@@ -59,17 +59,26 @@ const BonusElevateLevelsStyle0 = bonusElevateLevelsCss;
59
59
  const BonusElevateLevels = class {
60
60
  constructor(hostRef) {
61
61
  index.registerInstance(this, hostRef);
62
+ /**
63
+ * Client custom styling via string
64
+ */
62
65
  this.clientStyling = '';
66
+ /**
67
+ * Client custom styling via url
68
+ */
63
69
  this.clientStylingUrl = '';
64
- this.endpoint = undefined;
70
+ /**
71
+ * Language of the widget
72
+ */
65
73
  this.language = 'en';
74
+ /**
75
+ * The translationUrl
76
+ */
66
77
  this.translationUrl = '';
67
- this.selectedLevelId = undefined;
68
- this.showDefault = undefined;
69
- this.elevateLevelParamProxy = undefined;
78
+ /**
79
+ * Used in elevate level list
80
+ */
70
81
  this.elevateLevels = [];
71
- this.currentLevel = undefined;
72
- this.errorMessage = undefined;
73
82
  }
74
83
  selectedLevelChangedHandler(event) {
75
84
  if (event.detail) {
@@ -154,15 +163,10 @@ const ElevateLevelList = class {
154
163
  constructor(hostRef) {
155
164
  index.registerInstance(this, hostRef);
156
165
  this.selectedLevelChanged = index.createEvent(this, "selectedLevelChanged", 7);
157
- this.minOffset = 0;
158
- this.isMobile = isMobile(window.navigator.userAgent);
159
- this.levels = undefined;
160
- this.language = undefined;
161
- this.selectedLevelId = undefined;
162
166
  this.isShowSliderButton = false;
163
- this.touchPosStart = undefined;
164
- this.touchPosEnd = undefined;
165
167
  this.offset = 0;
168
+ this.minOffset = 0;
169
+ this.isMobile = isMobile(window.navigator.userAgent);
166
170
  }
167
171
  onLevelClicked(elevateLevel) {
168
172
  this.selectedLevelChanged.emit({ level: elevateLevel });
@@ -265,7 +269,6 @@ const ElevateLevelPresentationStyle0 = elevateLevelPresentationCss;
265
269
  const ElevateLevelPresentation = class {
266
270
  constructor(hostRef) {
267
271
  index.registerInstance(this, hostRef);
268
- this.elevateLevel = undefined;
269
272
  }
270
273
  render() {
271
274
  return index.h(index.Host, { key: '16d128717e716f7ca7d3bb77fc3a2e67209318b6' }, index.h("div", { key: '658657abdfc64844bd2af40562efe40385e1735a', class: "Row Desc" }, index.h("h3", { key: 'ec5871c2f810c8c120bf99510717381175bc1ef4' }, this.elevateLevel.presentation.displayName), index.h("p", { key: '865915c6eea90295238fb47eaa91c8f968199ca5' }, index.h("span", { key: '2b90c6c5d6957b73fc4a0f53d53da0ca023a4f0a', class: "TxtDesc", innerHTML: this.elevateLevel.presentation.description }))));
@@ -273,6 +276,8 @@ const ElevateLevelPresentation = class {
273
276
  };
274
277
  ElevateLevelPresentation.style = ElevateLevelPresentationStyle0;
275
278
 
279
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
280
+
276
281
  var browser = {exports: {}};
277
282
 
278
283
  (function (module, exports) {
@@ -284,22 +289,22 @@ var getGlobal = function () {
284
289
  // However, this causes CSP violations in Chrome apps.
285
290
  if (typeof self !== 'undefined') { return self; }
286
291
  if (typeof window !== 'undefined') { return window; }
287
- if (typeof global !== 'undefined') { return global; }
292
+ if (typeof commonjsGlobal !== 'undefined') { return commonjsGlobal; }
288
293
  throw new Error('unable to locate global object');
289
294
  };
290
295
 
291
- var global = getGlobal();
296
+ var globalObject = getGlobal();
292
297
 
293
- module.exports = exports = global.fetch;
298
+ module.exports = exports = globalObject.fetch;
294
299
 
295
300
  // Needed for TypeScript and Webpack.
296
- if (global.fetch) {
297
- exports.default = global.fetch.bind(global);
301
+ if (globalObject.fetch) {
302
+ exports.default = globalObject.fetch.bind(globalObject);
298
303
  }
299
304
 
300
- exports.Headers = global.Headers;
301
- exports.Request = global.Request;
302
- exports.Response = global.Response;
305
+ exports.Headers = globalObject.Headers;
306
+ exports.Request = globalObject.Request;
307
+ exports.Response = globalObject.Response;
303
308
  }(browser, browser.exports));
304
309
 
305
310
  const fetch$1 = browser.exports;
@@ -311,7 +316,6 @@ const ElevateLevelsData = class {
311
316
  constructor(hostRef) {
312
317
  index.registerInstance(this, hostRef);
313
318
  this.elevateLevelsDataChange = index.createEvent(this, "elevateLevelsDataChange", 7);
314
- this.scopeParams = undefined;
315
319
  }
316
320
  async componentWillRender() {
317
321
  //load data
@@ -370,6 +374,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
370
374
  const GeneralStylingWrapper = class {
371
375
  constructor(hostRef) {
372
376
  index.registerInstance(this, hostRef);
377
+ /**
378
+ * Client custom styling via inline styles
379
+ */
380
+ this.clientStyling = '';
381
+ /**
382
+ * Client custom styling via url
383
+ */
384
+ this.clientStylingUrl = '';
385
+ /**
386
+ * Translation via url
387
+ */
388
+ this.translationUrl = '';
373
389
  this.stylingAppends = false;
374
390
  this.setClientStyling = () => {
375
391
  let sheet = document.createElement('style');
@@ -391,10 +407,6 @@ const GeneralStylingWrapper = class {
391
407
  console.log('error ', err);
392
408
  });
393
409
  };
394
- this.clientStyling = '';
395
- this.clientStylingUrl = '';
396
- this.translationUrl = '';
397
- this.targetTranslations = undefined;
398
410
  }
399
411
  componentDidRender() {
400
412
  // start custom styling area