{"version":3,"file":"src_app_ui_pages_guide-section-page_components_guide-section-heading_guide-section-heading_co-5f33cb.js","mappings":";;;;;;;;;;;;;;;AAA+C;;;;;;ICA/CC,4DAAA,eAA0E;IACxEA,oDAAA,GACF;IAAAA,0DAAA,EAAK;;;;IADHA,uDAAA,GACF;IADEA,gEAAA,MAAAM,MAAA,CAAAC,IAAA,CAAAC,aAAA,SAAAF,MAAA,CAAAC,IAAA,CAAAE,KAAA,OACF;;;;;IAEET,4DAAA,eAAwC;IACtCA,oDAAA,GACF;IAAAA,0DAAA,EAAK;;;;IADHA,uDAAA,GACF;IADEA,gEAAA,MAAAM,MAAA,CAAAC,IAAA,CAAAC,aAAA,SAAAF,MAAA,CAAAC,IAAA,CAAAE,KAAA,MACF;;;ADWI,MAAOC,4BAA4B;EAKvCC,YAAA,GAAgB;EAEhBC,QAAQA,CAAA,GACR;EAEAC,eAAeA,CAAA;IACb,IAAI,IAAI,CAACN,IAAI,CAACO,KAAK,KAAK,CAAC,EAAE;MACzB,MAAM;QAACC,MAAM;QAAEC;MAAY,CAAC,GAAGC,MAAM,CAACC,gBAAgB,CAAC,IAAI,CAACC,QAAQ,CAACC,aAAa,CAAC;MACnF,IAAI,CAACb,IAAI,CAACc,eAAe,CAACC,MAAM,CAACP,MAAM,CAACQ,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,GAAGD,MAAM,CAACN,YAAY,CAACO,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACtG;EACF;EAAC,QAAAC,CAAA;qBAfUd,4BAA4B;EAAA;EAAA,QAAAe,EAAA;UAA5Bf,4BAA4B;IAAAgB,SAAA;IAAAC,SAAA,WAAAC,mCAAAC,EAAA,EAAAC,GAAA;MAAA,IAAAD,EAAA;;;;;;;;;;;;;;;;;;QCdzC7B,wDAHA,IAAAgC,0CAAA,gBAA0E,IAAAC,mDAAA,gCAAAjC,oEAAA,CAGzD;;;;QAHgDA,wDAAxB,SAAA8B,GAAA,CAAAvB,IAAA,CAAAO,KAAA,OAAwB,aAAAsB,KAAA,CAAO;;;mBDe5DrC,yDAAY,EAAAsC,iDAAA;IAAAE,MAAA;EAAA","sources":["./src/app/ui/pages/guide-section-page/components/guide-section-heading/guide-section-heading.component.ts","./src/app/ui/pages/guide-section-page/components/guide-section-heading/guide-section-heading.component.html"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, OnInit, Input, ViewChild, ElementRef } from '@angular/core';\r\n\r\ninterface IData {\r\n index: number;\r\n ordinalNumber: number;\r\n title: string;\r\n onAfterViewInit: (titleHeight: number) => void\r\n}\r\n\r\n@Component({\r\n standalone: true,\r\n selector: 'app-guide-section-heading',\r\n templateUrl: './guide-section-heading.component.html',\r\n styleUrls: ['./guide-section-heading.component.less'],\r\n imports: [CommonModule]\r\n})\r\nexport class GuideSectionHeadingComponent implements OnInit {\r\n @Input() data: IData;\r\n\r\n @ViewChild('titleRef', {static: false}) private titleRef: ElementRef;\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n ngAfterViewInit() {\r\n if (this.data.index === 0) {\r\n const {height, marginBottom} = window.getComputedStyle(this.titleRef.nativeElement);\r\n this.data.onAfterViewInit(Number(height.replace('px', '')) + Number(marginBottom.replace('px', '')))\r\n }\r\n }\r\n}\r\n","

\r\n {{ data.ordinalNumber + ' ' + data.title }}\r\n

\r\n\r\n

\r\n {{ data.ordinalNumber + ' ' + data.title }}\r\n

\r\n
"],"names":["CommonModule","i0","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ctx_r0","data","ordinalNumber","title","GuideSectionHeadingComponent","constructor","ngOnInit","ngAfterViewInit","index","height","marginBottom","window","getComputedStyle","titleRef","nativeElement","onAfterViewInit","Number","replace","_","_2","selectors","viewQuery","GuideSectionHeadingComponent_Query","rf","ctx","ɵɵtemplate","GuideSectionHeadingComponent_h1_0_Template","GuideSectionHeadingComponent_ng_template_1_Template","ɵɵtemplateRefExtractor","ɵɵproperty","h2_r2","i1","NgIf","styles"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}