{ "version": 3, "sources": ["libs/crm/static/src/lib/shared-components/side-panel/drawer.component.ts", "libs/crm/static/src/lib/shared-components/side-panel/drawer.component.html"], "sourcesContent": ["import { Component, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatDrawer, MatSidenavModule } from '@angular/material/sidenav';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\n@Component({\n selector: 'crm-drawer',\n templateUrl: 'drawer.component.html',\n styleUrls: ['drawer.component.scss'],\n standalone: true,\n imports: [CommonModule, MatButtonModule, MatIconModule, MatSidenavModule, MatToolbarModule],\n})\nexport class CrmDrawerComponent {\n @ViewChild('drawer') drawer?: MatDrawer;\n @ViewChild('drawerContentRef', { read: ViewContainerRef })\n set drawerContentRef(value: ViewContainerRef) {\n this._drawerContentRef = value;\n }\n private _drawerContentRef?: ViewContainerRef;\n\n protected title = '';\n\n close(): void {\n this._drawerContentRef?.clear();\n this.drawer?.close();\n }\n\n open(content: TemplateRef, title?: string): void {\n if (this._drawerContentRef && this.drawer) {\n this._drawerContentRef.clear();\n this._drawerContentRef.createEmbeddedView(content);\n this.title = title || '';\n this.drawer.open();\n }\n }\n}\n", "\n \n \n \n {{ title }}\n \n \n \n
\n \n
\n
\n \n \n \n
\n"], "mappings": "ocAcaA,GAAkB,IAAA,CAAzB,IAAOA,EAAP,MAAOA,CAAkB,CAP/BC,aAAA,CAeY,KAAAC,MAAQ,GANlB,IACIC,iBAAiBC,EAAuB,CAC1C,KAAKC,kBAAoBD,CAC3B,CAKAE,OAAK,CACH,KAAKD,mBAAmBE,MAAK,EAC7B,KAAKC,QAAQF,MAAK,CACpB,CAEAG,KAAKC,EAA2BR,EAAc,CACxC,KAAKG,mBAAqB,KAAKG,SACjC,KAAKH,kBAAkBE,MAAK,EAC5B,KAAKF,kBAAkBM,mBAAmBD,CAAO,EACjD,KAAKR,MAAQA,GAAS,GACtB,KAAKM,OAAOC,KAAI,EAEpB,yCAtBWT,EAAkB,sBAAlBA,EAAkBY,UAAA,CAAA,CAAA,YAAA,CAAA,EAAAC,UAAA,SAAAC,EAAAC,EAAA,IAAAD,EAAA,iBAEUE,CAAgB,6bChBzDC,EAAA,EAAA,uBAAA,CAAA,EAA8D,EAAA,aAAA,EAAA,CAAA,EACK,EAAA,aAAA,EAClD,EAAA,kBAAA,CAAA,EAC+B,EAAA,OAAA,CAAA,EACbC,EAAA,CAAA,EAAWC,EAAA,EACtCF,EAAA,EAAA,SAAA,CAAA,EAAoDG,EAAA,QAAA,UAAA,CAAAC,OAAAC,EAAAC,CAAA,EAAAC,EAAST,EAAAT,MAAA,CAAO,CAAA,CAAA,EAClEW,EAAA,EAAA,UAAA,EAAUC,EAAA,EAAA,OAAA,EAAKC,EAAA,EAAW,EACnB,EACO,EAEpBF,EAAA,GAAA,MAAA,CAAA,EACEQ,EAAA,GAAA,KAAA,CAAA,EACFN,EAAA,EAAM,EAERF,EAAA,GAAA,oBAAA,EACES,EAAA,EAAA,EACFP,EAAA,EAAqB,QAhBDQ,EAAA,cAAA,EAAA,EAIaC,EAAA,CAAA,EAAAC,EAAAd,EAAAb,KAAA,kBDQvB4B,EAAcC,EAAeC,EAAEC,EAAaC,EAAEC,EAAgBC,EAAAC,EAAAC,EAAEC,EAAgBC,EAAAC,CAAA,EAAAC,OAAA,CAAA;0GAAA,CAAA,CAAA,EAEtF,IAAO1C,EAAP2C,SAAO3C,CAAkB,GAAA", "names": ["CrmDrawerComponent", "constructor", "title", "drawerContentRef", "value", "_drawerContentRef", "close", "clear", "drawer", "open", "content", "createEmbeddedView", "selectors", "viewQuery", "rf", "ctx", "ViewContainerRef", "\u0275\u0275elementStart", "\u0275\u0275text", "\u0275\u0275elementEnd", "\u0275\u0275listener", "i0", "\u0275\u0275restoreView", "_r1", "\u0275\u0275resetView", "\u0275\u0275elementContainer", "\u0275\u0275projection", "\u0275\u0275property", "\u0275\u0275advance", "\u0275\u0275textInterpolate", "CommonModule", "MatButtonModule", "MatIconButton", "MatIconModule", "MatIcon", "MatSidenavModule", "MatDrawer", "MatDrawerContainer", "MatDrawerContent", "MatToolbarModule", "MatToolbar", "MatToolbarRow", "styles", "_CrmDrawerComponent"] }