{"version":3,"file":"426.da6c5560c0f7fd65.js","mappings":"yJAYO,IAAMA,EAAQ,MAAf,MAAOA,EAGTC,YACcC,GAAAC,KAAAD,SAEVC,KAAKC,cAAgB,GACrBD,KAAKE,KAAOF,KAAKD,QAAQI,UAAUC,MAAMC,SAASH,KAClDF,KAAKC,cAAcK,KAAKN,KAAKD,OAAOK,KAAKG,QAAKC,KAAK,IAAIC,UAAUL,IAC7DJ,KAAKE,KAAOE,GAAMC,SAASH,KAC3BF,KAAKU,UAAQ,GAErB,CACAA,WAAY,CACZC,cACIX,KAAKC,cAAcW,QAAQC,IACf,MAALA,IAAcA,EAAEC,QACnBD,EAAEE,aAAW,EAErB,CAACC,SAAAhB,KAAA,mBAAAiB,iBAnBQpB,GAAQqB,MAAAC,MAAA,EAAAH,SAAAhB,KAAA,UAAAoB,EAAAC,IAAA,MAARxB,EAAQyB,UAAA,gBAAAC,YAAA,EAAAC,SAAA,CAAAN,OAAAO,MAAA,EAAAC,KAAA,EAAAC,SAAA,SAAAC,EAAAC,GAAA,EAAAC,aAAA,CAJPC,MAAYC,cAAA,WAIbnC,CAAQ","names":["PageBase","constructor","_route","this","subscriptions","page","snapshot","data","content","push","pipe","skip","subscribe","ngOnInit","ngOnDestroy","forEach","s","closed","unsubscribe","static","__ngFactoryType__","i0","i1","_angular_core__WEBPACK_IMPORTED_MODULE_1__","VBU","selectors","standalone","features","decls","vars","template","rf","ctx","dependencies","CommonModule","encapsulation"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./src/core-lib/navigation/base-page.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, OnDestroy, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { skip, Subscription } from 'rxjs';\nimport { Page } from './models/page.interface';\n\n@Component({\n standalone: true,\n imports: [CommonModule],\n selector: 'page-base',\n template: ''\n})\nexport class PageBase implements OnDestroy, OnInit {\n page: Page;\n protected subscriptions:Array\n constructor(\n protected _route: ActivatedRoute,\n ) {\n this.subscriptions = [];\n this.page = this._route?.snapshot?.data?.content?.page;\n this.subscriptions.push(this._route.data.pipe(skip(1)).subscribe(data => {\n this.page = data?.content?.page;\n this.ngOnInit();\n }))\n }\n ngOnInit() {}\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => {\n if(s != null && !s.closed)\n s.unsubscribe();\n })\n }\n}\n"],"x_google_ignoreList":[]}