(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1536],{87626:(T,b,d)=>{d.d(b,{C:()=>m,a:()=>v,d:()=>g});var l=d(15861),o=d(35730);const v=function(){var n=(0,l.Z)(function*(s,a,e,t,i,r){var c;if(s)return s.attachViewToDom(a,e,i,t);if(!(r||"string"==typeof e||e instanceof HTMLElement))throw new Error("framework delegate is missing");const u="string"==typeof e?null===(c=a.ownerDocument)||void 0===c?void 0:c.createElement(e):e;return t&&t.forEach(f=>u.classList.add(f)),i&&Object.assign(u,i),a.appendChild(u),yield new Promise(f=>(0,o.c)(u,f)),u});return function(a,e,t,i,r,c){return n.apply(this,arguments)}}(),g=(n,s)=>{if(s){if(n)return n.removeViewFromDom(s.parentElement,s);s.remove()}return Promise.resolve()},m=()=>{let n,s;return{attachViewToDom:function(){var t=(0,l.Z)(function*(i,r,c={},u=[]){var f,p;if(n=i,r){const _="string"==typeof r?null===(f=n.ownerDocument)||void 0===f?void 0:f.createElement(r):r;u.forEach(h=>_.classList.add(h)),Object.assign(_,c),n.appendChild(_),yield new Promise(h=>(0,o.c)(_,h))}else if(n.children.length>0&&!n.children[0].classList.contains("ion-delegate-host")){const h=null===(p=n.ownerDocument)||void 0===p?void 0:p.createElement("div");h.classList.add("ion-delegate-host"),u.forEach(w=>h.classList.add(w)),h.append(...n.children),n.appendChild(h)}const y=document.querySelector("ion-app")||document.body;return s=document.createComment("ionic teleport"),n.parentNode.insertBefore(s,n),y.appendChild(n),n});return function(r,c){return t.apply(this,arguments)}}(),removeViewFromDom:()=>(n&&s&&(s.parentNode.insertBefore(n,s),s.remove()),Promise.resolve())}}},91536:(T,b,d)=>{d.r(b),d.d(b,{ion_tab:()=>m,ion_tabs:()=>s});var l=d(15861),o=d(71308),v=d(87626);const m=class{constructor(e){(0,o.r)(this,e),this.loaded=!1,this.active=!1}componentWillLoad(){var e=this;return(0,l.Z)(function*(){e.active&&(yield e.setActive())})()}setActive(){var e=this;return(0,l.Z)(function*(){yield e.prepareLazyLoaded(),e.active=!0})()}changeActive(e){e&&this.prepareLazyLoaded()}prepareLazyLoaded(){if(!this.loaded&&null!=this.component){this.loaded=!0;try{return(0,v.a)(this.delegate,this.el,this.component,["ion-page"])}catch(e){console.error(e)}}return Promise.resolve(void 0)}render(){const{tab:e,active:t,component:i}=this;return(0,o.h)(o.H,{role:"tabpanel","aria-hidden":t?null:"true","aria-labelledby":`tab-button-${e}`,class:{"ion-page":void 0===i,"tab-hidden":!t}},(0,o.h)("slot",null))}get el(){return(0,o.i)(this)}static get watchers(){return{active:["changeActive"]}}};m.style=":host(.tab-hidden){display:none !important}";const s=class{constructor(e){(0,o.r)(this,e),this.ionNavWillLoad=(0,o.e)(this,"ionNavWillLoad",7),this.ionTabsWillChange=(0,o.e)(this,"ionTabsWillChange",3),this.ionTabsDidChange=(0,o.e)(this,"ionTabsDidChange",3),this.transitioning=!1,this.useRouter=!1,this.onTabClicked=t=>{const{href:i,tab:r}=t.detail;if(this.useRouter&&void 0!==i){const c=document.querySelector("ion-router");c&&c.push(i)}else this.select(r)}}componentWillLoad(){var e=this;return(0,l.Z)(function*(){if(e.useRouter||(e.useRouter=!!document.querySelector("ion-router")&&!e.el.closest("[no-router]")),!e.useRouter){const t=e.tabs;t.length>0&&(yield e.select(t[0]))}e.ionNavWillLoad.emit()})()}componentWillRender(){const e=this.el.querySelector("ion-tab-bar");e&&(e.selectedTab=this.selectedTab?this.selectedTab.tab:void 0)}select(e){var t=this;return(0,l.Z)(function*(){const i=a(t.tabs,e);return!!t.shouldSwitch(i)&&(yield t.setActive(i),yield t.notifyRouter(),t.tabSwitch(),!0)})()}getTab(e){var t=this;return(0,l.Z)(function*(){return a(t.tabs,e)})()}getSelected(){return Promise.resolve(this.selectedTab?this.selectedTab.tab:void 0)}setRouteId(e){var t=this;return(0,l.Z)(function*(){const i=a(t.tabs,e);return t.shouldSwitch(i)?(yield t.setActive(i),{changed:!0,element:t.selectedTab,markVisible:()=>t.tabSwitch()}):{changed:!1,element:t.selectedTab}})()}getRouteId(){var e=this;return(0,l.Z)(function*(){var t;const i=null===(t=e.selectedTab)||void 0===t?void 0:t.tab;return void 0!==i?{id:i,element:e.selectedTab}:void 0})()}setActive(e){return this.transitioning?Promise.reject("transitioning already happening"):(this.transitioning=!0,this.leavingTab=this.selectedTab,this.selectedTab=e,this.ionTabsWillChange.emit({tab:e.tab}),e.active=!0,Promise.resolve())}tabSwitch(){const e=this.selectedTab,t=this.leavingTab;this.leavingTab=void 0,this.transitioning=!1,e&&t!==e&&(t&&(t.active=!1),this.ionTabsDidChange.emit({tab:e.tab}))}notifyRouter(){if(this.useRouter){const e=document.querySelector("ion-router");if(e)return e.navChanged("forward")}return Promise.resolve(!1)}shouldSwitch(e){return void 0!==e&&e!==this.selectedTab&&!this.transitioning}get tabs(){return Array.from(this.el.querySelectorAll("ion-tab"))}render(){return(0,o.h)(o.H,{onIonTabButtonClick:this.onTabClicked},(0,o.h)("slot",{name:"top"}),(0,o.h)("div",{class:"tabs-inner"},(0,o.h)("slot",null)),(0,o.h)("slot",{name:"bottom"}))}get el(){return(0,o.i)(this)}},a=(e,t)=>{const i="string"==typeof t?e.find(r=>r.tab===t):t;return i||console.error(`tab with id: "${i}" does not exist`),i};s.style=":host{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;contain:layout size style;z-index:0}.tabs-inner{position:relative;-ms-flex:1;flex:1;contain:layout size style}"}}]);