"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7217],{7217:(J,d,n)=>{n.r(d),n.d(d,{PlanetThemesPageModule:()=>A});var r=n(6895),i=n(8008),c=n(9383),h=n(9832),m=n(529),p=n(3324),u=n(7582),g=n(3286),t=n(4650),v=n(5362),P=n(205),T=n(2602),f=n(9522),y=n(8895),Z=n(4093);const M=function(e){return{"hide-ui":e}};function S(e,s){if(1&e&&(t._UZ(0,"div",7),t.ALo(1,"translate")),2&e){const a=t.oxw();t.Q6J("ngClass",t.VKq(4,M,!a.listReady))("innerHTML",t.lcZ(1,2,"THEME.SUCCESSOR_TIP"),t.oJD)}}const x=[{path:"",component:(()=>{class e{constructor(a,o,l,E,L,R){this._log=a,this._taptic=o,this._nav=l,this._inventory=E,this._monument=L,this._themeDerived=R,this.listReady=!1,this.hasSuccessorPlanetTip=!1}ngOnInit(){return(0,u.mG)(this,void 0,void 0,function*(){yield g.Z.initDeps([this._inventory,this._monument]),this._initSuccessorPlanetTip()})}dismiss(){this._taptic.impactOpenPage(),this._nav.back()}openStore(){this._taptic.impactOpenPage(),this._log.send({event:"store/planet",type:"pv",ref:"planet-themes"}),this._nav.navigateForward("/store/planet")}handleListReady(){this.listReady=!0}_initSuccessorPlanetTip(){const a=this._inventory.planetsOwnedExceptDefaults;this.hasSuccessorPlanetTip=a.length&&a.every(o=>!this._themeDerived.getUsedCount(o.theme.themeId))}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(v.$),t.Y36(P.u),t.Y36(i.SH),t.Y36(T.V),t.Y36(f.F),t.Y36(y.Z))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-planet-themes-page"]],decls:16,vars:7,consts:[["slot","start"],["fill","clear",3,"click"],[1,"text-icon-back"],["slot","end"],["color","primary",3,"click"],[3,"ready"],["class","tip hidable-ui",3,"ngClass","innerHTML",4,"ngIf"],[1,"tip","hidable-ui",3,"ngClass","innerHTML"]],template:function(a,o){1&a&&(t.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0)(3,"ion-button",1),t.NdJ("click",function(){return o.dismiss()}),t.TgZ(4,"span",2),t._uU(5,"<"),t.qZA()()(),t.TgZ(6,"ion-title"),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"ion-buttons",3)(10,"ion-button",4),t.NdJ("click",function(){return o.openStore()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()(),t.TgZ(13,"ion-content")(14,"app-planet-theme-list",5),t.NdJ("ready",function(){return o.handleListReady()}),t.qZA(),t.YNc(15,S,2,6,"div",6),t.qZA()),2&a&&(t.xp6(7),t.Oqu(t.lcZ(8,3,"THEME.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(12,5,"MENU.STORE")," "),t.xp6(4),t.Q6J("ngIf",o.hasSuccessorPlanetTip))},dependencies:[r.mk,r.O5,i.YG,i.Sm,i.W2,i.Gu,i.wd,i.sr,Z.Q,c.X$],styles:["ion-content[_ngcontent-%COMP%]{--padding-top: var(--pd);--padding-bottom: calc(var(--ion-safe-area-bottom, 0) + var(--pd));--padding-start: var(--pd);--padding-end: var(--pd)}app-planet-theme-list[_ngcontent-%COMP%]{margin:0 auto;max-width:680px}.tip[_ngcontent-%COMP%]{margin:20px 0 15px;color:var(--color-text-tertiary);font-size:var(--ft-sz-sm);text-align:center}"]}),e})()}];let C=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[p.Bz.forChild(x),p.Bz]}),e})();var O=n(7190);let A=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[r.ez,i.Pc,C,O.j,c.aw.forChild({loader:{provide:c.Zw,useFactory:s=>new h.w(s),deps:[m.eN]}})]}),e})()}}]);