@everymatrix/casino-engagement-suite-bar 1.54.12 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-bar/casino-engagement-suite-bar.esm.js +1 -1
- package/dist/casino-engagement-suite-bar/p-a7ca9798.entry.js +1 -0
- package/dist/casino-engagement-suite-bar/p-d14341cc.js +2 -0
- package/dist/cjs/casino-engagement-suite-bar.cjs.entry.js +19 -43
- package/dist/cjs/casino-engagement-suite-bar.cjs.js +2 -2
- package/dist/cjs/{index-74d721d6.js → index-e5bc7c81.js} +67 -168
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-engagement-suite-bar/casino-engagement-suite-bar.js +19 -73
- package/dist/esm/casino-engagement-suite-bar.entry.js +19 -43
- package/dist/esm/casino-engagement-suite-bar.js +3 -3
- package/dist/esm/{index-466e12d6.js → index-fa9a5454.js} +67 -168
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-bar/p-3ed6d677.entry.js +0 -1
- package/dist/casino-engagement-suite-bar/p-e3eeee5f.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-
|
|
1
|
+
import{p as e,b as i}from"./p-d14341cc.js";export{s as setNonce}from"./p-d14341cc.js";import{g as a}from"./p-e1255160.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((async e=>(await a(),i([["p-a7ca9798",[[1,"casino-engagement-suite-bar",{activeWidget:[1537,"active-widget"],challengePercent:[1,"challenge-percent"],highlightChallenge:[4,"highlight-challenge"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],orientation:[1],device:[1],isChallengeLabel:[4,"is-challenge-label"],isForfeitedChallengeLabel:[4,"is-forfeited-challenge-label"],isSpinForfeitedLabel:[1028,"is-spin-forfeited-label"],language:[1],jackpots:[16],remainingFreeSpins:[1,"remaining-free-spins"],remainingLuckywheels:[1,"remaining-luckywheels"],leaderboards:[16],limitStylingAppends:[32],activeJackpot:[32],leaderboardState:[32]},[[8,"message","handleEvent"]]]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-d14341cc.js";"function"==typeof SuppressedError&&SuppressedError;const t={labels:[],rank:"-"},n=["en"],i={en:{new:"new",win:"win"}},r=(e,a)=>{const t=a;return i[void 0!==t&&n.includes(t)?t:"en"][e]},s=class{constructor(a){e(this,a),this.handleTileClick=e=>{const a=e.target.getAttribute("data-app");window.postMessage({type:`Bar${a}Click`}),this.activeWidget=a,"Jackpots"===a&&(this.activeJackpot=e.target.getAttribute("data-type"))},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.engagementSuiteBar.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),a=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{a.innerHTML=e,setTimeout((()=>{this.engagementSuiteBar.prepend(a)}),1)})).catch((e=>{console.log("Error ",e)}))},this.activeWidget=void 0,this.challengePercent=void 0,this.highlightChallenge=!1,this.clientStyling="",this.clientStylingUrl="",this.orientation="Landscape",this.device="Mobile",this.isChallengeLabel=!1,this.isForfeitedChallengeLabel=!1,this.isSpinForfeitedLabel=!1,this.language="en",this.jackpots=[],this.remainingFreeSpins=void 0,this.remainingLuckywheels="1",this.leaderboards=void 0,this.limitStylingAppends=!1,this.activeJackpot="",this.leaderboardState=t}handleEvent(e){const a=null==e?void 0:e.data,{type:n}=a,i=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)a.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(a,["type"]);switch(n){case"UpdateLeaderboardState":Object.keys(t).map((e=>{i[e]&&(this.leaderboardState=Object.assign(Object.assign({},this.leaderboardState),{[e]:i[e]}))}));break;case"LeaderboardLiveEvent":["TournamentUpdate","PlayerLeaderBoardUpdate"].includes(i.messageType)&&!this.leaderboardState.labels.includes("new")&&(this.leaderboardState=Object.assign(Object.assign({},this.leaderboardState),{labels:[...this.leaderboardState.labels,"new"]}))}}componentDidRender(){!this.limitStylingAppends&&this.engagementSuiteBar&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getChallengeTile(){return a("button",{class:"Tile Reward Challenges "+("Challenges"===this.activeWidget||this.highlightChallenge?"Active":""),"data-app":"Challenges",onClick:this.handleTileClick},a("div",{class:"RewardIcon"}),a("span",null,this.challengePercent),a("div",{class:"ChallengeLabel "+(this.isChallengeLabel&&!this.isForfeitedChallengeLabel?"ShowChallengeLabel":"")},a("span",null,r("new",this.language))),a("div",{class:"ForfeitLabel "+(this.isForfeitedChallengeLabel?"ShowForfeitChallengeLabel":"")}))}getFreeSpinsTile(){return a("button",{class:"Tile Reward FreeSpins "+("FreeSpins"===this.activeWidget?"Active":""),"data-app":"FreeSpins",onClick:this.handleTileClick},a("div",{class:"RewardIcon"}),a("span",null,this.remainingFreeSpins),a("div",{class:"ForfeitLabel "+(this.isSpinForfeitedLabel?"ShowForfeitLabel":"")},a("span",null)))}getLuckyWheelTile(){return a("button",{class:"Tile Reward Luckywheel "+("LuckyWheels"===this.activeWidget?"Active":""),"data-app":"LuckyWheels",onClick:this.handleTileClick},a("div",{class:"RewardIcon"}),a("span",null,this.remainingLuckywheels))}getJackpotClasses(e){return{Tile:!0,Jackpot:!0,Enabled:e.Enabled,Active:"Jackpots"===this.activeWidget&&this.activeJackpot===e.Type,[e.Type.charAt(0).toUpperCase()+e.Type.slice(1)]:!0}}getJackpotsTemplate(){return this.jackpots.map((e=>{const t=function(e,a,t=99999999){return e=Math.min(e,t),`${a} ${new Intl.NumberFormat("en",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}`}(e.Balance,e.Currency);return a("div",{class:this.getJackpotClasses(e),"data-app":"Jackpots","data-type":e.Type,onClick:this.handleTileClick},a("div",{class:"JackpotType"},e.Type),a("span",{class:"JackpotBalance"},t))}))}getLeaderboardsTile(){return a("button",{class:"Tile Reward Leaderboard "+("Leaderboards"===this.activeWidget?"Active":""),"data-app":"Leaderboards",onClick:this.handleTileClick},a("div",{class:"RewardIcon"}),a("span",null,this.leaderboardState.rank),a("div",{class:"LeaderboardLabels"},this.leaderboardState.labels.map((e=>a("div",{class:"LeaderboardLabel"},a("span",null,r(e,this.language)))))))}displayTilesInOneRow(){return this.jackpots.length+[this.leaderboards,this.challengePercent,this.remainingFreeSpins].filter((e=>!!e)).length<4}getTilesTemplate(){return this.displayTilesInOneRow()?a("div",{class:"EngagementSuiteContainer"},!!this.jackpots.length&&this.getJackpotsTemplate(),this.leaderboards&&this.getLeaderboardsTile(),this.remainingLuckywheels&&this.getLuckyWheelTile(),this.challengePercent&&this.getChallengeTile(),this.remainingFreeSpins&&this.getFreeSpinsTile()):a("div",{class:"EngagementSuiteContainer"},a("div",{class:"Jackpots"},!!this.jackpots.length&&this.getJackpotsTemplate()),a("div",{class:"Rewards"},this.leaderboards&&this.getLeaderboardsTile(),this.remainingLuckywheels&&this.getLuckyWheelTile(),this.challengePercent&&this.getChallengeTile(),this.remainingFreeSpins&&this.getFreeSpinsTile()))}render(){return a("div",{key:"d932ee7e636f06b0c50841a4737cb6572c1500aa",class:`CasinoEngagementSuiteBar ${this.orientation} ${this.device}`,ref:e=>this.engagementSuiteBar=e},this.getTilesTemplate())}};s.style=':host{display:block}*{box-sizing:border-box}button{touch-action:manipulation}.CasinoEngagementSuiteBar{height:100vh;background-color:var(--emw--color-background, #1E1638);color:var(--emw--color-typography, #FFF);display:flex;justify-content:center;position:relative;z-index:1}.CasinoEngagementSuiteBar .EngagementSuiteContainer{display:flex;align-items:center;gap:4px;scrollbar-gutter:stable;overflow-x:auto;padding:7px 9px 0;width:100%}.CasinoEngagementSuiteBar .EngagementSuiteContainer::-webkit-scrollbar{width:3px;background:none}.CasinoEngagementSuiteBar .EngagementSuiteContainer::-webkit-scrollbar-thumb{border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3))}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Tile{cursor:pointer;background-color:var(--emw--color-background-secondary, #251D3E);border-radius:var(--emw--border-radius-small, 4px);display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative;font-weight:var(--emw--font-weight-semibold, 600);font-size:var(--emw--font-size-x-small, 12px);font-family:var(--emw--font-family-secondary, "Montserrat", sans-serif);color:var(--emw--color-typography, #FFF)}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Tile.Active::before{background:linear-gradient(143.2deg, #FF9401 -0.41%, #FFD32D 45.61%, #2D2545 82.77%)}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Tile::before{content:"";position:absolute;inset:0;border-radius:var(--emw--border-radius-small, 4px);padding:1px;background:linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);-webkit-mask:linear-gradient(#FFF 0 0) content-box, linear-gradient(#FFF 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpots,.CasinoEngagementSuiteBar .EngagementSuiteContainer .Rewards{display:flex;gap:4px;width:100%}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot{padding:14px 4px;flex-direction:column}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot .JackpotType{display:none}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot .JackpotBalance{font-weight:var(--emw--font-weight-semibold, 600);line-height:12px;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-typography, #fff)}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot.Enabled.Mega .JackpotBalance{background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));-webkit-text-fill-color:transparent;-webkit-background-clip:text}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot.Enabled.Major .JackpotBalance{background:var(--emw--engagement-suite-gradient-silver, linear-gradient(180deg, #A19FA0 5.36%, #E1DBDB 28.86%, #FEFFFF 36.86%, #E1DBDB 44.36%, #5E5B5F 91.86%));-webkit-text-fill-color:transparent;-webkit-background-clip:text}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot.Enabled.Minor .JackpotBalance{background:var(--emw--engagement-suite-gradient-bronze, linear-gradient(180deg, #A0522C 5.36%, #FFAB8C 28.86%, #FFEEDF 36.86%, #FFAB8C 44.36%, #6A3A21 91.86%));-webkit-text-fill-color:transparent;-webkit-background-clip:text}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot.Enabled .JackpotBalance{font-weight:var(--emw--font-weight-extra-bold, 800)}.CasinoEngagementSuiteBar .EngagementSuiteContainer .Reward{justify-content:space-between;padding:8px;border:none}.CasinoEngagementSuiteBar .EngagementSuiteContainer .RewardIcon{width:24px;height:24px;background-size:100%;background-position:center}.Tile.Leaderboard .RewardIcon{background:center/contain url("https://static.everymatrix.com/gic/img/engagement-suite/bar/leaderboard.svg")}.Tile.Leaderboard.Active .RewardIcon{background-image:url("https://static.everymatrix.com/gic/img/engagement-suite/bar/leaderboard-pressed.svg")}.Tile.Challenges .RewardIcon{background:center/contain url("https://static.everymatrix.com/gic/img/engagement-suite/bar/challenge.svg")}.Tile.Challenges.Active .RewardIcon{background-image:url("https://static.everymatrix.com/gic/img/engagement-suite/bar/challenge-pressed.svg")}.Tile.Luckywheel .RewardIcon{background:center/contain url("https://static.everymatrix.com/gic/img/engagement-suite/bar/luckywheel.svg")}.Tile.Luckywheel.Active .RewardIcon{background-image:url("https://static.everymatrix.com/gic/img/engagement-suite/bar/luckywheel-pressed.svg")}.Tile.FreeSpins .RewardIcon{background:center/contain url("https://static.everymatrix.com/gic/img/engagement-suite/bar/freespins.svg")}.Tile.FreeSpins.Active .RewardIcon{background-image:url("https://static.everymatrix.com/gic/img/engagement-suite/bar/freespins-pressed.svg")}.ChallengeLabel{min-width:23px;height:11px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:var(--emw--border-radius-x-small, 2px);display:none;position:absolute;top:-4px;right:4px;padding:0 2px;align-items:center;justify-content:center}.ChallengeLabel span{display:inline-block;text-transform:uppercase;font-size:7px;line-height:7px;font-weight:var(--emw--font-weight-bold, 700);font-family:var(--emw--font-family-secondary, "Montserrat", sans-serif);color:var(--emw--color-background, #1E1638)}.ForfeitLabel{width:12px;height:12px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:50%;display:none;position:absolute;top:-6px;right:8px}.ShowChallengeLabel{display:inline-flex}.ShowForfeitLabel,.ShowForfeitChallengeLabel{display:inline-flex}.LeaderboardLabels{position:absolute;top:-4px;right:4px;display:flex;gap:4px}.LeaderboardLabel{min-width:23px;height:11px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:var(--emw--border-radius-x-small, 2px);display:inline-flex;padding:0 2px;align-items:center;justify-content:center}.LeaderboardLabel span{display:inline-block;text-transform:uppercase;font-size:7px;line-height:7px;font-weight:var(--emw--font-weight-bold, 700);font-family:var(--emw--font-family-secondary, "Montserrat", sans-serif);color:var(--emw--color-background, #1E1638)}.Landscape.CasinoEngagementSuiteBar{width:152px;padding-top:10px;box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.2509803922), 8px 0 10px 0 rgba(0, 0, 0, 0.3019607843)}.Landscape.CasinoEngagementSuiteBar .EngagementSuiteContainer{flex-direction:column}.Landscape.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpots,.Landscape.CasinoEngagementSuiteBar .EngagementSuiteContainer .Rewards{width:120px}.Landscape.CasinoEngagementSuiteBar .EngagementSuiteContainer .Tile{width:120px;height:40px}.Landscape.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpots,.Landscape.CasinoEngagementSuiteBar .EngagementSuiteContainer .Rewards{flex-direction:column}.Portrait.CasinoEngagementSuiteBar{border-radius:0 0 var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px);height:auto;padding:3px 10px 10px;box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.2509803922), 8px 0 10px 0 rgba(0, 0, 0, 0.3019607843)}.Portrait.CasinoEngagementSuiteBar .EngagementSuiteContainer{padding:7px 0 0;gap:8px;flex-wrap:wrap}.Portrait.CasinoEngagementSuiteBar .EngagementSuiteContainer .Rewards,.Portrait.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpots{gap:8px}.Portrait.CasinoEngagementSuiteBar .EngagementSuiteContainer .Tile{flex:1 1 0px;height:32px}.Portrait.CasinoEngagementSuiteBar .EngagementSuiteContainer .Jackpot{min-width:30%;padding:10px 4px}.Portrait.CasinoEngagementSuiteBar .EngagementSuiteContainer .Reward{min-width:20%;padding:4px 8px}.CasinoEngagementSuiteBar.Desktop.Landscape{width:252px}.CasinoEngagementSuiteBar.Desktop.Landscape .Jackpots,.CasinoEngagementSuiteBar.Desktop.Landscape .Rewards,.CasinoEngagementSuiteBar.Desktop.Landscape .EngagementSuiteContainer{gap:12px}.CasinoEngagementSuiteBar.Desktop.Landscape .Reward{padding:8px 20px;height:64px;font-size:var(--emw--font-size-medium, 16px)}.CasinoEngagementSuiteBar.Desktop.Landscape .Reward .RewardIcon{width:48px;height:48px}.CasinoEngagementSuiteBar.Desktop.Landscape .Rewards,.CasinoEngagementSuiteBar.Desktop.Landscape .Jackpots,.CasinoEngagementSuiteBar.Desktop.Landscape .Tile{width:212px}.CasinoEngagementSuiteBar.Desktop.Landscape .Jackpot{padding-top:35px;min-height:133px;background:center/contain url("https://static.everymatrix.com/gic/img/engagement-suite/bar/jackpot-bg-stars.svg"), var(--emw--color-background-secondary, #251D3E)}.CasinoEngagementSuiteBar.Desktop.Landscape .Jackpot .JackpotType{display:block;font-weight:var(--emw--font-weight-extra-bold, 800);margin-bottom:12px;text-transform:uppercase}.CasinoEngagementSuiteBar.Desktop.Landscape .Jackpot .JackpotType,.CasinoEngagementSuiteBar.Desktop.Landscape .Jackpot .JackpotBalance{font-size:var(--emw--size-large, 24px);line-height:24px}';export{s as casino_engagement_suite_bar}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?b(w):f.raf(w))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{v(m),v(y),(d=m.length>0)&&f.raf(w)},b=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?R(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=new WeakMap,T=e=>"sc-"+e.v,N=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(L);t=t.replace(W,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},U=/\s/,F=e=>e?e.split(U):[],L="Capture",W=RegExp(L+"$"),q=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of G(Object.keys(o)))e in s||N(l,e,o[e],void 0,n,t.l);for(const e of G(Object.keys(s)))N(l,e,o[e],s[e],n,t.l)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,_=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),q(null,l,V),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=_(e,l,i),s&&o.appendChild(s);return o["s-hn"]=M,o},z=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=_(null,n,o),i&&(l[o].$=i,Q(r,i,t)))},B=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;K(t),e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),J=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(q(e,t,V),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;r<=f&&c<=d;)if(null==h)h=t[++r];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(I(h,m,o))J(h,m,o),h=t[++r],m=l[++c];else if(I(p,y,o))J(p,y,o),p=t[--f],y=l[--d];else if(I(h,y,o))J(h,y,o),Q(e,h.$,p.$.nextSibling),h=t[++r],y=l[--d];else if(I(p,m,o))J(p,m,o),Q(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,o),t[u]=void 0,s=i.$),m=l[++c]):(s=_(t&&t[c],n,c),m=l[++c]),s&&Q(h.$.parentNode,s,h.$)}r>f?z(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&B(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),z(l,null,t,s,0,s.length-1)):!n&&null!==o&&B(o,0,o.length-1)):e.i!==i&&(l.data=i)},K=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(K)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.l|=16,!(4&e.l))return X(e,e.j),S((()=>Z(e,t)));e.l|=512},Z=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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`);return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ie(n,e,t))),e.k=void 0)),ee(void 0,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=T(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=H.get(e=e.head||e);if(i||H.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);le(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},le=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||R(null,null),i=(e=>e&&e.m===D)(t)?t:A(null,null,t);if(M=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.$=s.$=l.shadowRoot||l,J(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.j;ie(e.t,"componentDidRender"),64&e.l||(e.l|=64,re(t),e.A(t),n||se()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Y(e,!1))),e.l&=-517},se=()=>{re(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"casino-engagement-suite-bar"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},re=e=>e.classList.add("hydrated"),ce=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R){const r=Object.entries(null!=(o=t.R)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" 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 i=s.D.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.D.set(t,l),c&&2==(18&r)&&Y(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);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 l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},ue=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),v=a.createElement("style"),w=[];let b,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],R:l[2],T:l[3]};4&o.l&&(g=!0),o.R=l[2],o.T=l[3],o.P=[];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,D:new Map};l.N=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ae(this,e,o.T)),b&&(clearTimeout(b),b=null),S?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)ae(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.F}" was not found`);l.isProxied||(ce(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=T(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Y(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.L&&(e.L.map((e=>e())),e.L=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};o.U=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,ce(u,o,1)))}))})),h.length>0&&(g&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(se,30)))},ae=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=he(e,n),i=fe(t,o),r=pe(n);f.ael(s,l,i,r),(t.L=t.L||[]).push((()=>f.rel(s,l,i,r)))}))},fe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},he=(e,t)=>8&t?u:e,pe=e=>({passive:!!(1&e),capture:!!(2&e)}),de=e=>f.C=e;export{ue as b,A as h,h as p,l as r,de as s}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e5bc7c81.js');
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -66,48 +66,6 @@ const CasinoEngagementSuiteBarStyle0 = casinoEngagementSuiteBarCss;
|
|
|
66
66
|
const CasinoEngagementSuiteBar = class {
|
|
67
67
|
constructor(hostRef) {
|
|
68
68
|
index.registerInstance(this, hostRef);
|
|
69
|
-
/**
|
|
70
|
-
* Highlight Challenge tile
|
|
71
|
-
*/
|
|
72
|
-
this.highlightChallenge = false;
|
|
73
|
-
/**
|
|
74
|
-
* Client custom styling via string
|
|
75
|
-
*/
|
|
76
|
-
this.clientStyling = '';
|
|
77
|
-
/**
|
|
78
|
-
* Client custom styling via url
|
|
79
|
-
*/
|
|
80
|
-
this.clientStylingUrl = '';
|
|
81
|
-
/**
|
|
82
|
-
* Orientation of the widget
|
|
83
|
-
*/
|
|
84
|
-
this.orientation = 'Landscape';
|
|
85
|
-
/**
|
|
86
|
-
* User's device type
|
|
87
|
-
*/
|
|
88
|
-
this.device = 'Mobile';
|
|
89
|
-
/**
|
|
90
|
-
* Show challenge label
|
|
91
|
-
*/
|
|
92
|
-
this.isChallengeLabel = false;
|
|
93
|
-
/**
|
|
94
|
-
* Show forfeited challenge label
|
|
95
|
-
*/
|
|
96
|
-
this.isForfeitedChallengeLabel = false;
|
|
97
|
-
/**
|
|
98
|
-
* Show spins forfeited label
|
|
99
|
-
*/
|
|
100
|
-
this.isSpinForfeitedLabel = false;
|
|
101
|
-
/**
|
|
102
|
-
* Language of the widget
|
|
103
|
-
*/
|
|
104
|
-
this.language = 'en';
|
|
105
|
-
this.jackpots = [];
|
|
106
|
-
// todo: hardcoded (waiting for GLC integration)
|
|
107
|
-
this.remainingLuckywheels = '1';
|
|
108
|
-
this.limitStylingAppends = false;
|
|
109
|
-
this.activeJackpot = '';
|
|
110
|
-
this.leaderboardState = initialLeaderboardState;
|
|
111
69
|
this.handleTileClick = (ev) => {
|
|
112
70
|
const application = ev.target.getAttribute('data-app');
|
|
113
71
|
window.postMessage({ type: `Bar${application}Click` });
|
|
@@ -134,6 +92,24 @@ const CasinoEngagementSuiteBar = class {
|
|
|
134
92
|
console.log('Error ', err);
|
|
135
93
|
});
|
|
136
94
|
};
|
|
95
|
+
this.activeWidget = undefined;
|
|
96
|
+
this.challengePercent = undefined;
|
|
97
|
+
this.highlightChallenge = false;
|
|
98
|
+
this.clientStyling = '';
|
|
99
|
+
this.clientStylingUrl = '';
|
|
100
|
+
this.orientation = 'Landscape';
|
|
101
|
+
this.device = 'Mobile';
|
|
102
|
+
this.isChallengeLabel = false;
|
|
103
|
+
this.isForfeitedChallengeLabel = false;
|
|
104
|
+
this.isSpinForfeitedLabel = false;
|
|
105
|
+
this.language = 'en';
|
|
106
|
+
this.jackpots = [];
|
|
107
|
+
this.remainingFreeSpins = undefined;
|
|
108
|
+
this.remainingLuckywheels = '1';
|
|
109
|
+
this.leaderboards = undefined;
|
|
110
|
+
this.limitStylingAppends = false;
|
|
111
|
+
this.activeJackpot = '';
|
|
112
|
+
this.leaderboardState = initialLeaderboardState;
|
|
137
113
|
}
|
|
138
114
|
handleEvent(e) {
|
|
139
115
|
const _a = e === null || e === void 0 ? void 0 : e.data, { type } = _a, rest = __rest(_a, ["type"]);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e5bc7c81.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | 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('casino-engagement-suite-bar.cjs.js', document.baseURI).href));
|
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-engagement-suite-bar';
|
|
24
|
-
const BUILD = /* casino-engagement-suite-bar */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
24
|
+
const BUILD = /* casino-engagement-suite-bar */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -177,6 +166,12 @@ var flush = () => {
|
|
|
177
166
|
};
|
|
178
167
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
179
168
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
+
|
|
170
|
+
// src/utils/constants.ts
|
|
171
|
+
var EMPTY_OBJ = {};
|
|
172
|
+
|
|
173
|
+
// src/utils/helpers.ts
|
|
174
|
+
var isDef = (v) => v != null;
|
|
180
175
|
var isComplexType = (o) => {
|
|
181
176
|
o = typeof o;
|
|
182
177
|
return o === "object" || o === "function";
|
|
@@ -361,7 +356,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
361
356
|
}
|
|
362
357
|
if (!appliedStyles.has(scopeId2)) {
|
|
363
358
|
{
|
|
364
|
-
styleElm =
|
|
359
|
+
styleElm = doc.createElement("style");
|
|
365
360
|
styleElm.innerHTML = style;
|
|
366
361
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
367
362
|
if (nonce != null) {
|
|
@@ -371,10 +366,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
371
366
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
372
367
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
373
368
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
374
|
-
styleContainerNode.insertBefore(
|
|
375
|
-
styleElm,
|
|
376
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
377
|
-
);
|
|
369
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
378
370
|
} else if ("host" in styleContainerNode) {
|
|
379
371
|
if (supportsConstructableStylesheets) {
|
|
380
372
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -392,7 +384,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
392
384
|
styleContainerNode.append(styleElm);
|
|
393
385
|
}
|
|
394
386
|
}
|
|
395
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
387
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
396
388
|
styleContainerNode.insertBefore(styleElm, null);
|
|
397
389
|
}
|
|
398
390
|
}
|
|
@@ -417,25 +409,23 @@ var attachStyles = (hostRef) => {
|
|
|
417
409
|
const scopeId2 = addStyle(
|
|
418
410
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
419
411
|
cmpMeta);
|
|
420
|
-
if (
|
|
412
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
421
413
|
elm["s-sc"] = scopeId2;
|
|
422
414
|
elm.classList.add(scopeId2 + "-h");
|
|
423
415
|
}
|
|
424
416
|
endAttachStyles();
|
|
425
417
|
};
|
|
426
418
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
427
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
419
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
428
420
|
if (oldValue !== newValue) {
|
|
429
421
|
let isProp = isMemberInElement(elm, memberName);
|
|
430
422
|
let ln = memberName.toLowerCase();
|
|
431
423
|
if (memberName === "class") {
|
|
432
424
|
const classList = elm.classList;
|
|
433
425
|
const oldClasses = parseClassList(oldValue);
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
438
|
-
}
|
|
426
|
+
const newClasses = parseClassList(newValue);
|
|
427
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
428
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
439
429
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
440
430
|
if (newValue) {
|
|
441
431
|
newValue(elm);
|
|
@@ -473,7 +463,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
473
463
|
elm.setAttribute(memberName, n);
|
|
474
464
|
}
|
|
475
465
|
}
|
|
476
|
-
} else
|
|
466
|
+
} else {
|
|
477
467
|
elm[memberName] = newValue;
|
|
478
468
|
}
|
|
479
469
|
} catch (e) {
|
|
@@ -495,44 +485,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
495
485
|
}
|
|
496
486
|
};
|
|
497
487
|
var parseClassListRegex = /\s/;
|
|
498
|
-
var parseClassList = (value) =>
|
|
499
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
500
|
-
value = value.baseVal;
|
|
501
|
-
}
|
|
502
|
-
if (!value || typeof value !== "string") {
|
|
503
|
-
return [];
|
|
504
|
-
}
|
|
505
|
-
return value.split(parseClassListRegex);
|
|
506
|
-
};
|
|
488
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
507
489
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
508
490
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
509
491
|
|
|
510
492
|
// src/runtime/vdom/update-element.ts
|
|
511
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
493
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
512
494
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
513
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
514
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
495
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
496
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
515
497
|
{
|
|
516
498
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
517
499
|
if (!(memberName in newVnodeAttrs)) {
|
|
518
|
-
setAccessor(
|
|
519
|
-
elm,
|
|
520
|
-
memberName,
|
|
521
|
-
oldVnodeAttrs[memberName],
|
|
522
|
-
void 0,
|
|
523
|
-
isSvgMode2,
|
|
524
|
-
newVnode.$flags$);
|
|
500
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
525
501
|
}
|
|
526
502
|
}
|
|
527
503
|
}
|
|
528
504
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
529
|
-
setAccessor(
|
|
530
|
-
elm,
|
|
531
|
-
memberName,
|
|
532
|
-
oldVnodeAttrs[memberName],
|
|
533
|
-
newVnodeAttrs[memberName],
|
|
534
|
-
isSvgMode2,
|
|
535
|
-
newVnode.$flags$);
|
|
505
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
536
506
|
}
|
|
537
507
|
};
|
|
538
508
|
function sortedAttrNames(attrNames) {
|
|
@@ -544,10 +514,13 @@ function sortedAttrNames(attrNames) {
|
|
|
544
514
|
attrNames
|
|
545
515
|
);
|
|
546
516
|
}
|
|
517
|
+
|
|
518
|
+
// src/runtime/vdom/vdom-render.ts
|
|
519
|
+
var scopeId;
|
|
547
520
|
var hostTagName;
|
|
548
521
|
var useNativeShadowDom = false;
|
|
549
522
|
var isSvgMode = false;
|
|
550
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
523
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
551
524
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
552
525
|
let i2 = 0;
|
|
553
526
|
let elm;
|
|
@@ -561,6 +534,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
561
534
|
{
|
|
562
535
|
updateElement(null, newVNode2, isSvgMode);
|
|
563
536
|
}
|
|
537
|
+
const rootNode = elm.getRootNode();
|
|
538
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
539
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
540
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
541
|
+
}
|
|
564
542
|
if (newVNode2.$children$) {
|
|
565
543
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
566
544
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -690,9 +668,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
690
668
|
if (!isInitialRender) {
|
|
691
669
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
692
670
|
}
|
|
693
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
694
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
695
|
-
}
|
|
696
671
|
return true;
|
|
697
672
|
}
|
|
698
673
|
return false;
|
|
@@ -732,9 +707,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
732
707
|
}
|
|
733
708
|
};
|
|
734
709
|
var insertBefore = (parent, newNode, reference) => {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
710
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
711
|
+
return inserted;
|
|
738
712
|
};
|
|
739
713
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
740
714
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -759,21 +733,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
759
733
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
760
734
|
hostRef.$vnode$ = rootVnode;
|
|
761
735
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
762
|
-
|
|
736
|
+
{
|
|
737
|
+
scopeId = hostElm["s-sc"];
|
|
738
|
+
}
|
|
739
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
763
740
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
764
741
|
};
|
|
765
742
|
|
|
766
743
|
// src/runtime/update-component.ts
|
|
767
744
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
768
745
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
769
|
-
|
|
770
|
-
new Promise(
|
|
771
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
772
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
773
|
-
r();
|
|
774
|
-
}
|
|
775
|
-
)
|
|
776
|
-
);
|
|
746
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
777
747
|
}
|
|
778
748
|
};
|
|
779
749
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -802,7 +772,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
802
772
|
{
|
|
803
773
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
804
774
|
if (hostRef.$queuedListeners$) {
|
|
805
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
775
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
806
776
|
hostRef.$queuedListeners$ = void 0;
|
|
807
777
|
}
|
|
808
778
|
}
|
|
@@ -873,7 +843,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
873
843
|
const instance = hostRef.$lazyInstance$ ;
|
|
874
844
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
875
845
|
{
|
|
876
|
-
safeCall(instance, "componentDidRender"
|
|
846
|
+
safeCall(instance, "componentDidRender");
|
|
877
847
|
}
|
|
878
848
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
879
849
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -902,14 +872,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
902
872
|
}
|
|
903
873
|
};
|
|
904
874
|
var appDidLoad = (who) => {
|
|
875
|
+
{
|
|
876
|
+
addHydratedFlag(doc.documentElement);
|
|
877
|
+
}
|
|
905
878
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
906
879
|
};
|
|
907
|
-
var safeCall = (instance, method, arg
|
|
880
|
+
var safeCall = (instance, method, arg) => {
|
|
908
881
|
if (instance && instance[method]) {
|
|
909
882
|
try {
|
|
910
883
|
return instance[method](arg);
|
|
911
884
|
} catch (e) {
|
|
912
|
-
consoleError(e
|
|
885
|
+
consoleError(e);
|
|
913
886
|
}
|
|
914
887
|
}
|
|
915
888
|
return void 0;
|
|
@@ -952,68 +925,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
952
925
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
953
926
|
members.map(([memberName, [memberFlags]]) => {
|
|
954
927
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
955
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
956
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
957
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
958
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
959
|
-
Object.defineProperty(prototype, memberName, {
|
|
960
|
-
get() {
|
|
961
|
-
{
|
|
962
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
963
|
-
return getValue(this, memberName);
|
|
964
|
-
}
|
|
965
|
-
const ref = getHostRef(this);
|
|
966
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
967
|
-
if (!instance) return;
|
|
968
|
-
return instance[memberName];
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
configurable: true,
|
|
972
|
-
enumerable: true
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
928
|
Object.defineProperty(prototype, memberName, {
|
|
929
|
+
get() {
|
|
930
|
+
return getValue(this, memberName);
|
|
931
|
+
},
|
|
976
932
|
set(newValue) {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
982
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
983
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
984
|
-
}
|
|
985
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
986
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
987
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
988
|
-
return;
|
|
989
|
-
}
|
|
990
|
-
{
|
|
991
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
992
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
993
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
994
|
-
ref.$onReadyPromise$.then(() => {
|
|
995
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
996
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
return;
|
|
1001
|
-
}
|
|
1002
|
-
const setterSetVal = () => {
|
|
1003
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1004
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1005
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1006
|
-
}
|
|
1007
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1008
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1009
|
-
};
|
|
1010
|
-
if (ref.$lazyInstance$) {
|
|
1011
|
-
setterSetVal();
|
|
1012
|
-
} else {
|
|
1013
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
933
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
934
|
+
},
|
|
935
|
+
configurable: true,
|
|
936
|
+
enumerable: true
|
|
1017
937
|
});
|
|
1018
938
|
}
|
|
1019
939
|
});
|
|
@@ -1023,7 +943,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1023
943
|
plt.jmp(() => {
|
|
1024
944
|
var _a2;
|
|
1025
945
|
const propName = attrNameToPropName.get(attrName);
|
|
1026
|
-
if (this.hasOwnProperty(propName)
|
|
946
|
+
if (this.hasOwnProperty(propName)) {
|
|
1027
947
|
newValue = this[propName];
|
|
1028
948
|
delete this[propName];
|
|
1029
949
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1043,11 +963,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1043
963
|
}
|
|
1044
964
|
return;
|
|
1045
965
|
}
|
|
1046
|
-
|
|
1047
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1048
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1049
|
-
this[propName] = newValue;
|
|
1050
|
-
}
|
|
966
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1051
967
|
});
|
|
1052
968
|
};
|
|
1053
969
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1076,7 +992,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1076
992
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1077
993
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1078
994
|
if (bundleId) {
|
|
1079
|
-
const CstrImport = loadModule(cmpMeta
|
|
995
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1080
996
|
if (CstrImport && "then" in CstrImport) {
|
|
1081
997
|
const endLoad = uniqueTime();
|
|
1082
998
|
Cstr = await CstrImport;
|
|
@@ -1098,7 +1014,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1098
1014
|
try {
|
|
1099
1015
|
new Cstr(hostRef);
|
|
1100
1016
|
} catch (e) {
|
|
1101
|
-
consoleError(e
|
|
1017
|
+
consoleError(e);
|
|
1102
1018
|
}
|
|
1103
1019
|
{
|
|
1104
1020
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1130,7 +1046,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1130
1046
|
schedule();
|
|
1131
1047
|
}
|
|
1132
1048
|
};
|
|
1133
|
-
var fireConnectedCallback = (instance
|
|
1049
|
+
var fireConnectedCallback = (instance) => {
|
|
1134
1050
|
};
|
|
1135
1051
|
|
|
1136
1052
|
// src/runtime/connected-callback.ts
|
|
@@ -1171,7 +1087,7 @@ var connectedCallback = (elm) => {
|
|
|
1171
1087
|
endConnected();
|
|
1172
1088
|
}
|
|
1173
1089
|
};
|
|
1174
|
-
var disconnectInstance = (instance
|
|
1090
|
+
var disconnectInstance = (instance) => {
|
|
1175
1091
|
};
|
|
1176
1092
|
var disconnectedCallback = async (elm) => {
|
|
1177
1093
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1186,12 +1102,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1186
1102
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1187
1103
|
}
|
|
1188
1104
|
}
|
|
1189
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1190
|
-
rootAppliedStyles.delete(elm);
|
|
1191
|
-
}
|
|
1192
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1193
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1194
|
-
}
|
|
1195
1105
|
};
|
|
1196
1106
|
|
|
1197
1107
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1272,17 +1182,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1272
1182
|
}
|
|
1273
1183
|
disconnectedCallback() {
|
|
1274
1184
|
plt.jmp(() => disconnectedCallback(this));
|
|
1275
|
-
plt.raf(() => {
|
|
1276
|
-
var _a3;
|
|
1277
|
-
const hostRef = getHostRef(this);
|
|
1278
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1279
|
-
if (i2 > -1) {
|
|
1280
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1281
|
-
}
|
|
1282
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1283
|
-
delete hostRef.$vnode$.$elm$;
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
1185
|
}
|
|
1287
1186
|
componentOnReady() {
|
|
1288
1187
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1346,7 +1245,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1346
1245
|
}
|
|
1347
1246
|
}
|
|
1348
1247
|
} catch (e) {
|
|
1349
|
-
consoleError(e
|
|
1248
|
+
consoleError(e);
|
|
1350
1249
|
}
|
|
1351
1250
|
};
|
|
1352
1251
|
var getHostListenerTarget = (elm, flags) => {
|