@smals-belgium-shared/vidis-delivered-medication-list 3.3.2-snapshot.6 → 3.3.2-snapshot.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,4 +40,4 @@ Probeer het later nog eens.`,$T="De patiënt heeft 1 of meerdere voorschriften v
|
|
|
40
40
|
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),Vse=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵmod",Bt({type:t})),s(t,"ɵinj",zt({providers:[Fse],imports:[ma]}));let e=t;return e})(),zse=[[["caption"]],[["colgroup"],["col"]],"*"],Bse=["caption","colgroup, col","*"];function Hse(e,t){e&1&&pt(0,2)}function qse(e,t){e&1&&(j(0,"thead",0),Yt(1,1),V(),j(2,"tbody",0),Yt(3,2)(4,3),V(),j(5,"tfoot",0),Yt(6,4),V())}function $se(e,t){e&1&&Yt(0,1)(1,2)(2,3)(3,4)}var _a=new K("CDK_TABLE"),ch=(()=>{const t=class t{constructor(){s(this,"template",S(an))}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkCellDef",""]]}));let e=t;return e})(),dh=(()=>{const t=class t{constructor(){s(this,"template",S(an))}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkHeaderCellDef",""]]}));let e=t;return e})(),Gse=(()=>{const t=class t{constructor(){s(this,"template",S(an))}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkFooterCellDef",""]]}));let e=t;return e})(),Ko=(()=>{const t=class t{constructor(){s(this,"_table",S(_a,{optional:!0}));s(this,"_hasStickyChanged",!1);s(this,"_name");s(this,"_sticky",!1);s(this,"_stickyEnd",!1);s(this,"cell");s(this,"headerCell");s(this,"footerCell");s(this,"cssClassFriendlyName");s(this,"_columnCssClassName")}get name(){return this._name}set name(n){this._setNameInput(n)}get sticky(){return this._sticky}set sticky(n){n!==this._sticky&&(this._sticky=n,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(n){n!==this._stickyEnd&&(this._stickyEnd=n,this._hasStickyChanged=!0)}hasStickyChanged(){let n=this._hasStickyChanged;return this.resetStickyChanged(),n}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(n){n&&(this._name=n,this.cssClassFriendlyName=n.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,i,r){if(n&1&&(Na(r,ch,5),Na(r,dh,5),Na(r,Gse,5)),n&2){let o;un(o=cn())&&(i.cell=o.first),un(o=cn())&&(i.headerCell=o.first),un(o=cn())&&(i.footerCell=o.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Lt],stickyEnd:[2,"stickyEnd","stickyEnd",Lt]},features:[Tn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]}));let e=t;return e})(),d9=class{constructor(e,t){t.nativeElement.classList.add(...e._columnCssClassName)}},Use=(()=>{const t=class t extends d9{constructor(){super(S(Ko),S(Qe))}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Ye]}));let e=t;return e})(),Wse=(()=>{const t=class t extends d9{constructor(){var o;let n=S(Ko),i=S(Qe);super(n,i);let r=(o=n._table)==null?void 0:o._getCellRole();r&&i.nativeElement.setAttribute("role",r)}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Ye]}));let e=t;return e})(),yv=class{constructor(){s(this,"tasks",[]);s(this,"endTasks",[])}},hh=new K("_COALESCED_STYLE_SCHEDULER"),h9=(()=>{const t=class t{constructor(){s(this,"_currentSchedule",null);s(this,"_ngZone",S(He))}schedule(n){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(n)}scheduleEnd(n){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(n)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new yv,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let n=this._currentSchedule;this._currentSchedule=new yv;for(let i of n.tasks)i();for(let i of n.endTasks)i()}this._currentSchedule=null})))}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",z({token:t,factory:t.ɵfac}));let e=t;return e})(),ym=(()=>{const t=class t{constructor(){s(this,"template",S(an));s(this,"_differs",S(Xr));s(this,"columns");s(this,"_columnsDiffer")}ngOnChanges(n){if(!this._columnsDiffer){let i=n.columns&&n.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(n){return this instanceof nu?n.headerCell.template:this instanceof p9?n.footerCell.template:n.cell.template}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,features:[hi]}));let e=t;return e})(),nu=(()=>{const t=class t extends ym{constructor(){super(S(an),S(Xr));s(this,"_table",S(_a,{optional:!0}));s(this,"_hasStickyChanged",!1);s(this,"_sticky",!1)}get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};s(t,"ɵfac",function(i){return new(i||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Lt]},features:[Ye,hi]}));let e=t;return e})(),p9=(()=>{const t=class t extends ym{constructor(){super(S(an),S(Xr));s(this,"_table",S(_a,{optional:!0}));s(this,"_hasStickyChanged",!1);s(this,"_sticky",!1)}get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};s(t,"ɵfac",function(i){return new(i||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Lt]},features:[Ye,hi]}));let e=t;return e})(),ph=(()=>{const t=class t extends ym{constructor(){super(S(an),S(Xr));s(this,"_table",S(_a,{optional:!0}));s(this,"when")}};s(t,"ɵfac",function(i){return new(i||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Ye]}));let e=t;return e})(),zr=(()=>{const t=class t{constructor(){s(this,"_viewContainer",S(jn));s(this,"cells");s(this,"context");t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}};s(t,"mostRecentCellOutlet",null),s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","cdkCellOutlet",""]]}));let e=t;return e})(),_v=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Pe({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,i){n&1&&Yt(0,0)},dependencies:[zr],encapsulation:2}));let e=t;return e})(),wv=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Pe({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,i){n&1&&Yt(0,0)},dependencies:[zr],encapsulation:2}));let e=t;return e})(),Zse=(()=>{const t=class t{constructor(){s(this,"templateRef",S(an));s(this,"_contentClassName","cdk-no-data-row")}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}));let e=t;return e})(),xv=["top","bottom","left","right"],Yse=class{constructor(e,t,a,n,i=!0,r=!0,o,l){s(this,"_isNativeHtmlTable");s(this,"_stickCellCss");s(this,"direction");s(this,"_coalescedStyleScheduler");s(this,"_isBrowser");s(this,"_needsPositionStickyOnElement");s(this,"_positionListener");s(this,"_tableInjector");s(this,"_elemSizeCache",new WeakMap);s(this,"_resizeObserver",globalThis!=null&&globalThis.ResizeObserver?new globalThis.ResizeObserver(e=>this._updateCachedSizes(e)):null);s(this,"_updatedStickyColumnsParamsToReplay",[]);s(this,"_stickyColumnsReplayTimeout",null);s(this,"_cachedCellWidths",[]);s(this,"_borderCellCss");s(this,"_destroyed",!1);this._isNativeHtmlTable=e,this._stickCellCss=t,this.direction=a,this._coalescedStyleScheduler=n,this._isBrowser=i,this._needsPositionStickyOnElement=r,this._positionListener=o,this._tableInjector=l,this._borderCellCss={top:`${t}-border-elem-top`,bottom:`${t}-border-elem-bottom`,left:`${t}-border-elem-left`,right:`${t}-border-elem-right`}}clearStickyPositioning(e,t){(t.includes("left")||t.includes("right"))&&this._removeFromStickyColumnReplayQueue(e);let a=[];for(let n of e)n.nodeType===n.ELEMENT_NODE&&a.push(n,...Array.from(n.children));this._afterNextRender({write:()=>{for(let n of a)this._removeStickyStyle(n,t)}})}updateStickyColumns(e,t,a,n=!0,i=!0){var x,k;if(!e.length||!this._isBrowser||!(t.some(D=>D)||a.some(D=>D))){(x=this._positionListener)==null||x.stickyColumnsUpdated({sizes:[]}),(k=this._positionListener)==null||k.stickyEndColumnsUpdated({sizes:[]});return}let r=e[0],o=r.children.length,l=this.direction==="rtl",u=l?"right":"left",c=l?"left":"right",d=t.lastIndexOf(!0),m=a.indexOf(!0),v,g,w;i&&this._updateStickyColumnReplayQueue({rows:[...e],stickyStartStates:[...t],stickyEndStates:[...a]}),this._afterNextRender({earlyRead:()=>{v=this._getCellWidths(r,n),g=this._getStickyStartColumnPositions(v,t),w=this._getStickyEndColumnPositions(v,a)},write:()=>{for(let D of e)for(let O=0;O<o;O++){let M=D.children[O];t[O]&&this._addStickyStyle(M,u,g[O],O===d),a[O]&&this._addStickyStyle(M,c,w[O],O===m)}this._positionListener&&v.some(D=>!!D)&&(this._positionListener.stickyColumnsUpdated({sizes:d===-1?[]:v.slice(0,d+1).map((D,O)=>t[O]?D:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:m===-1?[]:v.slice(m).map((D,O)=>a[O+m]?D:null).reverse()}))}})}stickRows(e,t,a){if(!this._isBrowser)return;let n=a==="bottom"?e.slice().reverse():e,i=a==="bottom"?t.slice().reverse():t,r=[],o=[],l=[];this._afterNextRender({earlyRead:()=>{for(let u=0,c=0;u<n.length;u++){if(!i[u])continue;r[u]=c;let d=n[u];l[u]=this._isNativeHtmlTable?Array.from(d.children):[d];let m=this._retrieveElementSize(d).height;c+=m,o[u]=m}},write:()=>{var c,d;let u=i.lastIndexOf(!0);for(let m=0;m<n.length;m++){if(!i[m])continue;let v=r[m],g=m===u;for(let w of l[m])this._addStickyStyle(w,a,v,g)}a==="top"?(c=this._positionListener)==null||c.stickyHeaderRowsUpdated({sizes:o,offsets:r,elements:l}):(d=this._positionListener)==null||d.stickyFooterRowsUpdated({sizes:o,offsets:r,elements:l})}})}updateStickyFooterContainer(e,t){this._isNativeHtmlTable&&this._afterNextRender({write:()=>{let a=e.querySelector("tfoot");a&&(t.some(n=>!n)?this._removeStickyStyle(a,["bottom"]):this._addStickyStyle(a,"bottom",0,!1))}})}destroy(){var e;this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),(e=this._resizeObserver)==null||e.disconnect(),this._destroyed=!0}_removeStickyStyle(e,t){if(e.classList.contains(this._stickCellCss)){for(let a of t)e.style[a]="",e.classList.remove(this._borderCellCss[a]);xv.some(a=>t.indexOf(a)===-1&&e.style[a])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}}_addStickyStyle(e,t,a,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[t]),e.style[t]=`${a}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let t={top:100,bottom:10,left:1,right:1},a=0;for(let n of xv)e.style[n]&&(a+=t[n]);return a?`${a}`:""}_getCellWidths(e,t=!0){if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;let a=[],n=e.children;for(let i=0;i<n.length;i++){let r=n[i];a.push(this._retrieveElementSize(r).width)}return this._cachedCellWidths=a,a}_getStickyStartColumnPositions(e,t){let a=[],n=0;for(let i=0;i<e.length;i++)t[i]&&(a[i]=n,n+=e[i]);return a}_getStickyEndColumnPositions(e,t){let a=[],n=0;for(let i=e.length;i>0;i--)t[i]&&(a[i]=n,n+=e[i]);return a}_retrieveElementSize(e){let t=this._elemSizeCache.get(e);if(t)return t;let a=e.getBoundingClientRect(),n={width:a.width,height:a.height};return this._resizeObserver&&(this._elemSizeCache.set(e,n),this._resizeObserver.observe(e,{box:"border-box"})),n}_updateStickyColumnReplayQueue(e){this._removeFromStickyColumnReplayQueue(e.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(e)}_removeFromStickyColumnReplayQueue(e){let t=new Set(e);for(let a of this._updatedStickyColumnsParamsToReplay)a.rows=a.rows.filter(n=>!t.has(n));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(a=>!!a.rows.length)}_updateCachedSizes(e){var a,n;let t=!1;for(let i of e){let r=(a=i.borderBoxSize)!=null&&a.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==((n=this._elemSizeCache.get(i.target))==null?void 0:n.width)&&Kse(i.target)&&(t=!0),this._elemSizeCache.set(i.target,r)}t&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}_afterNextRender(e){this._tableInjector?Eu(e,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{var t;(t=e.earlyRead)==null||t.call(e),e.write()})}};function Kse(e){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(t=>e.classList.contains(t))}var mh=new K("CDK_SPL"),m9=(()=>{const t=class t{constructor(){s(this,"viewContainer",S(jn));s(this,"elementRef",S(Qe));let n=S(_a);n._rowOutlet=this,n._outletAssigned()}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","rowOutlet",""]]}));let e=t;return e})(),f9=(()=>{const t=class t{constructor(){s(this,"viewContainer",S(jn));s(this,"elementRef",S(Qe));let n=S(_a);n._headerRowOutlet=this,n._outletAssigned()}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","headerRowOutlet",""]]}));let e=t;return e})(),g9=(()=>{const t=class t{constructor(){s(this,"viewContainer",S(jn));s(this,"elementRef",S(Qe));let n=S(_a);n._footerRowOutlet=this,n._outletAssigned()}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","footerRowOutlet",""]]}));let e=t;return e})(),v9=(()=>{const t=class t{constructor(){s(this,"viewContainer",S(jn));s(this,"elementRef",S(Qe));let n=S(_a);n._noDataRowOutlet=this,n._outletAssigned()}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["","noDataRowOutlet",""]]}));let e=t;return e})(),Ev=(()=>{const t=class t{constructor(){s(this,"_differs",S(Xr));s(this,"_changeDetectorRef",S(ya));s(this,"_elementRef",S(Qe));s(this,"_dir",S(Ho,{optional:!0}));s(this,"_platform",S(hn));s(this,"_viewRepeater",S(Wd));s(this,"_coalescedStyleScheduler",S(hh));s(this,"_viewportRuler",S(Jp));s(this,"_stickyPositioningListener",S(mh,{optional:!0,skipSelf:!0}));s(this,"_document",S(Ve));s(this,"_data");s(this,"_onDestroy",new ve);s(this,"_renderRows");s(this,"_renderChangeSubscription");s(this,"_columnDefsByName",new Map);s(this,"_rowDefs");s(this,"_headerRowDefs");s(this,"_footerRowDefs");s(this,"_dataDiffer");s(this,"_defaultRowDef");s(this,"_customColumnDefs",new Set);s(this,"_customRowDefs",new Set);s(this,"_customHeaderRowDefs",new Set);s(this,"_customFooterRowDefs",new Set);s(this,"_customNoDataRow");s(this,"_headerRowDefChanged",!0);s(this,"_footerRowDefChanged",!0);s(this,"_stickyColumnStylesNeedReset",!0);s(this,"_forceRecalculateCellWidths",!0);s(this,"_cachedRenderRowsMap",new Map);s(this,"_isNativeHtmlTable");s(this,"_stickyStyler");s(this,"stickyCssClass","cdk-table-sticky");s(this,"needsPositionStickyOnElement",!0);s(this,"_isServer");s(this,"_isShowingNoDataRow",!1);s(this,"_hasAllOutlets",!1);s(this,"_hasInitialized",!1);s(this,"_cellRoleInternal");s(this,"_trackByFn");s(this,"_dataSource");s(this,"_multiTemplateDataRows",!1);s(this,"_fixedLayout",!1);s(this,"contentChanged",new ot);s(this,"viewChange",new Ai({start:0,end:Number.MAX_VALUE}));s(this,"_rowOutlet");s(this,"_headerRowOutlet");s(this,"_footerRowOutlet");s(this,"_noDataRowOutlet");s(this,"_contentColumnDefs");s(this,"_contentRowDefs");s(this,"_contentHeaderRowDefs");s(this,"_contentFooterRowDefs");s(this,"_noDataRow");s(this,"_injector",S(ht));S(new ep("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i)}_getCellRole(){if(this._cellRoleInternal===void 0){let n=this._elementRef.nativeElement.getAttribute("role");return n==="grid"||n==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(n){this._trackByFn=n}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(n){this._multiTemplateDataRows=n,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(n){this._fixedLayout=n,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(oi(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){var n,i,r,o;(n=this._stickyStyler)==null||n.destroy(),[(i=this._rowOutlet)==null?void 0:i.viewContainer,(r=this._headerRowOutlet)==null?void 0:r.viewContainer,(o=this._footerRowOutlet)==null?void 0:o.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(l=>{l==null||l.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Mc(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let n=this._dataDiffer.diff(this._renderRows);if(!n){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(n,i,(r,o,l)=>this._getEmbeddedViewArgs(r.item,l),r=>r.item.data,r=>{r.operation===ko.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),n.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(n){this._customColumnDefs.add(n)}removeColumnDef(n){this._customColumnDefs.delete(n)}addRowDef(n){this._customRowDefs.add(n)}removeRowDef(n){this._customRowDefs.delete(n)}addHeaderRowDef(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}removeHeaderRowDef(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}addFooterRowDef(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}removeFooterRowDef(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}setNoDataRow(n){this._customNoDataRow=n}updateStickyHeaderRowStyles(){let n=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let r=Sv(this._headerRowOutlet,"thead");r&&(r.style.display=n.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let n=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=Sv(this._footerRowOutlet,"tfoot");r&&(r.style.display=n.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...n,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach((o,l)=>{this._addStickyColumnStyles([o],this._headerRowDefs[l])}),this._rowDefs.forEach(o=>{let l=[];for(let u=0;u<i.length;u++)this._renderRows[u].rowDef===o&&l.push(i[u]);this._addStickyColumnStyles(l,o)}),r.forEach((o,l)=>{this._addStickyColumnStyles([o],this._footerRowDefs[l])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let n=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return n;for(let r=0;r<this._data.length;r++){let o=this._data[r],l=this._getRenderRowsForData(o,r,i.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap);for(let u=0;u<l.length;u++){let c=l[u],d=this._cachedRenderRowsMap.get(c.data);d.has(c.rowDef)?d.get(c.rowDef).push(c):d.set(c.rowDef,[c]),n.push(c)}}return n}_getRenderRowsForData(n,i,r){return this._getRowDefs(n,i).map(o=>{let l=r&&r.has(o)?r.get(o):[];if(l.length){let u=l.shift();return u.dataIndex=i,u}else return{data:n,rowDef:o,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),tl(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=tl(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tl(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tl(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let n=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&n.length>1,this._defaultRowDef=n[0]}_renderUpdatedColumns(){let n=(l,u)=>{let c=!!u.getColumnsDiff();return l||c},i=this._rowDefs.reduce(n,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(n,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(n,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(n){this._data=[],Mc(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),n||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=n}_observeRenderChanges(){if(!this.dataSource)return;let n;Mc(this.dataSource)?n=this.dataSource.connect(this):br(this.dataSource)?n=this.dataSource:Array.isArray(this.dataSource)&&(n=et(this.dataSource)),this._renderChangeSubscription=n.pipe(oi(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((n,i)=>this._renderRow(this._headerRowOutlet,n,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((n,i)=>this._renderRow(this._footerRowOutlet,n,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(n,i){let r=Array.from((i==null?void 0:i.columns)||[]).map(u=>this._columnDefsByName.get(u)),o=r.map(u=>u.sticky),l=r.map(u=>u.stickyEnd);this._stickyStyler.updateStickyColumns(n,o,l,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(n){let i=[];for(let r=0;r<n.viewContainer.length;r++){let o=n.viewContainer.get(r);i.push(o.rootNodes[0])}return i}_getRowDefs(n,i){if(this._rowDefs.length==1)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(o=>!o.when||o.when(i,n));else{let o=this._rowDefs.find(l=>l.when&&l.when(i,n))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(n,i){let r=n.rowDef,o={$implicit:n.data};return{templateRef:r.template,context:o,index:i}}_renderRow(n,i,r,o={}){let l=n.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),l}_renderCellTemplateForItem(n,i){for(let r of this._getCellTemplates(n))zr.mostRecentCellOutlet&&zr.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let n=this._rowOutlet.viewContainer;for(let i=0,r=n.length;i<r;i++){let o=n.get(i).context;o.count=r,o.first=i===0,o.last=i===r-1,o.even=i%2===0,o.odd=!o.even,this.multiTemplateDataRows?(o.dataIndex=this._renderRows[i].dataIndex,o.renderIndex=i):o.index=this._renderRows[i].dataIndex}}_getCellTemplates(n){return!n||!n.columns?[]:Array.from(n.columns,i=>{let r=this._columnDefsByName.get(i);return n.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let n=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(n,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(n,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(n,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let n=this._dir?this._dir.value:"ltr";this._stickyStyler=new Yse(this._isNativeHtmlTable,this.stickyCssClass,n,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:et()).pipe(oi(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(n){return n.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let n=this._customNoDataRow||this._noDataRow;if(!n)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(n.templateRef),l=o.rootNodes[0];o.rootNodes.length===1&&(l==null?void 0:l.nodeType)===this._document.ELEMENT_NODE&&(l.setAttribute("role","row"),l.classList.add(n._contentClassName))}else r.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Pe({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,i,r){if(n&1&&(Na(r,Zse,5),Na(r,Ko,5),Na(r,ph,5),Na(r,nu,5),Na(r,p9,5)),n&2){let o;un(o=cn())&&(i._noDataRow=o.first),un(o=cn())&&(i._contentColumnDefs=o),un(o=cn())&&(i._contentRowDefs=o),un(o=cn())&&(i._contentHeaderRowDefs=o),un(o=cn())&&(i._contentFooterRowDefs=o)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,i){n&2&&jt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Lt],fixedLayout:[2,"fixedLayout","fixedLayout",Lt]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Tn([{provide:_a,useExisting:t},{provide:Wd,useClass:P1},{provide:hh,useClass:h9},{provide:mh,useValue:null}])],ngContentSelectors:Bse,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,i){n&1&&(Vn(zse),pt(0),pt(1,1),he(2,Hse,1,0)(3,qse,7,0)(4,$se,4,0)),n&2&&(A(2),je(i._isServer?2:-1),A(),je(i._isNativeHtmlTable?3:4))},dependencies:[f9,m9,v9,g9],styles:[`.cdk-table-fixed-layout{table-layout:fixed}
|
|
41
41
|
`],encapsulation:2}));let e=t;return e})();function tl(e,t){return e.concat(Array.from(t))}function Sv(e,t){let a=t.toUpperCase(),n=e.viewContainer.element.nativeElement;for(;n;){let i=n.nodeType===1?n.nodeName:null;if(i===a)return n;if(i==="TABLE")break;n=n.parentNode}return null}var Qse=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵmod",Bt({type:t})),s(t,"ɵinj",zt({imports:[Zd]}));let e=t;return e})(),Jse=[[["caption"]],[["colgroup"],["col"]],"*"],Xse=["caption","colgroup, col","*"];function ele(e,t){e&1&&pt(0,2)}function tle(e,t){e&1&&(j(0,"thead",0),Yt(1,1),V(),j(2,"tbody",2),Yt(3,3)(4,4),V(),j(5,"tfoot",0),Yt(6,5),V())}function nle(e,t){e&1&&Yt(0,1)(1,3)(2,4)(3,5)}var ale=(()=>{const t=class t extends Ev{constructor(){super(...arguments);s(this,"stickyCssClass","mat-mdc-table-sticky");s(this,"needsPositionStickyOnElement",!1)}};s(t,"ɵfac",(()=>{let i;return function(r){return(i||(i=nt(t)))(r||t)}})()),s(t,"ɵcmp",Pe({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&jt("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[Tn([{provide:Ev,useExisting:t},{provide:_a,useExisting:t},{provide:hh,useClass:h9},{provide:Wd,useClass:P1},{provide:mh,useValue:null}]),Ye],ngContentSelectors:Xse,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(Vn(Jse),pt(0),pt(1,1),he(2,ele,1,0)(3,tle,7,0)(4,nle,4,0)),i&2&&(A(2),je(r._isServer?2:-1),A(),je(r._isNativeHtmlTable?3:4))},dependencies:[f9,m9,v9,g9],styles:[`.mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}
|
|
42
42
|
`],encapsulation:2}));let e=t;return e})(),ile=(()=>{const t=class t extends ch{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵdir",be({type:t,selectors:[["","matCellDef",""]],features:[Tn([{provide:ch,useExisting:t}]),Ye]}));let e=t;return e})(),rle=(()=>{const t=class t extends dh{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵdir",be({type:t,selectors:[["","matHeaderCellDef",""]],features:[Tn([{provide:dh,useExisting:t}]),Ye]}));let e=t;return e})(),ole=(()=>{const t=class t extends Ko{get name(){return this._name}set name(n){this._setNameInput(n)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵdir",be({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Tn([{provide:Ko,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Ye]}));let e=t;return e})(),sle=(()=>{const t=class t extends Use{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵdir",be({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Ye]}));let e=t;return e})(),lle=(()=>{const t=class t extends Wse{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵdir",be({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Ye]}));let e=t;return e})(),ule=(()=>{const t=class t extends nu{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵdir",be({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Lt]},features:[Tn([{provide:nu,useExisting:t}]),Ye]}));let e=t;return e})(),cle=(()=>{const t=class t extends ph{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵdir",be({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Tn([{provide:ph,useExisting:t}]),Ye]}));let e=t;return e})(),dle=(()=>{const t=class t extends _v{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵcmp",Pe({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Tn([{provide:_v,useExisting:t}]),Ye],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,i){n&1&&Yt(0,0)},dependencies:[zr],encapsulation:2}));let e=t;return e})(),hle=(()=>{const t=class t extends wv{};s(t,"ɵfac",(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})()),s(t,"ɵcmp",Pe({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Tn([{provide:wv,useExisting:t}]),Ye],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,i){n&1&&Yt(0,0)},dependencies:[zr],encapsulation:2}));let e=t;return e})(),ple=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵmod",Bt({type:t})),s(t,"ɵinj",zt({imports:[ma,Qse,ma]}));let e=t;return e})(),mle=9007199254740991,fle=class extends fX{constructor(t=[]){super();s(this,"_data");s(this,"_renderData",new Ai([]));s(this,"_filter",new Ai(""));s(this,"_internalPageChanges",new ve);s(this,"_renderChangesSubscription",null);s(this,"filteredData");s(this,"_sort");s(this,"_paginator");s(this,"sortingDataAccessor",(t,a)=>{let n=t[a];if(r1(n)){let i=Number(n);return i<mle?i:n}return n});s(this,"sortData",(t,a)=>{let n=a.active,i=a.direction;return!n||i==""?t:t.sort((r,o)=>{let l=this.sortingDataAccessor(r,n),u=this.sortingDataAccessor(o,n),c=typeof l,d=typeof u;c!==d&&(c==="number"&&(l+=""),d==="number"&&(u+=""));let m=0;return l!=null&&u!=null?l>u?m=1:l<u&&(m=-1):l!=null?m=1:u!=null&&(m=-1),m*(i=="asc"?1:-1)})});s(this,"filterPredicate",(t,a)=>{let n=a.trim().toLowerCase();return Object.values(t).some(i=>`${i}`.toLowerCase().includes(n))});this._data=new Ai(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){t=Array.isArray(t)?t:[],this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var l;let t=this._sort?Fi(this._sort.sortChange,this._sort.initialized):et(null),a=this._paginator?Fi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):et(null),n=this._data,i=rl([n,this._filter]).pipe(At(([u])=>this._filterData(u))),r=rl([i,t]).pipe(At(([u])=>this._orderData(u))),o=rl([r,a]).pipe(At(([u])=>this._pageData(u)));(l=this._renderChangesSubscription)==null||l.unsubscribe(),this._renderChangesSubscription=o.subscribe(u=>this._renderData.next(u))}_filterData(t){return this.filteredData=this.filter==null||this.filter===""?t:t.filter(a=>this.filterPredicate(a,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;let a=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(a,a+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{let a=this.paginator;if(a&&(a.length=t,a.pageIndex>0)){let n=Math.ceil(a.length/a.pageSize)-1||0,i=Math.min(a.pageIndex,n);i!==a.pageIndex&&(a.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;(t=this._renderChangesSubscription)==null||t.unsubscribe(),this._renderChangesSubscription=null}};Iv(a$());var gle=["*"];function vle(e,t){e&1&&Yt(0)}function ble(e,t){if(e&1&&(j(0,"div",3),he(1,vle,1,0,"ng-container",5),V()),e&2){le();let a=Mu(5);A(),Me("ngTemplateOutlet",a)}}function yle(e,t){e&1&&Yt(0)}function _le(e,t){if(e&1){let a=ba();j(0,"div",6),on("click",function(){vn(a);let n=le();return bn(n.toggleExpanded())})("keydown.enter",function(){vn(a);let n=le();return bn(n.toggleExpanded())})("keydown.space",function(){vn(a);let n=le();return bn(n.toggleExpanded())}),he(1,yle,1,0,"ng-container",5),V()}if(e&2){let a=le(),n=Mu(5);$t("aria-label",a.currentExpandIconAriaLabel()),A(),Me("ngTemplateOutlet",n)}}function wle(e,t){e&1&&Yt(0)}function xle(e,t){if(e&1&&he(0,wle,1,0,"ng-container",5),e&2){le();let a=Mu(7);Me("ngTemplateOutlet",a)}}function Ele(e,t){if(e&1&&(j(0,"h2"),ee(1),V()),e&2){let a=le(3);A(),Ne(a.alertTitle())}}function Sle(e,t){if(e&1&&(j(0,"p"),ee(1),V()),e&2){let a=le(3);A(),Ne(a.alertSubtitle())}}function kle(e,t){if(e&1&&(j(0,"div"),he(1,Ele,2,1,"h2")(2,Sle,2,1,"p"),V()),e&2){let a=le(2);A(),je(a.alertTitle()?1:-1),A(),je(a.alertSubtitle()?2:-1)}}function Cle(e,t){e&1&&Yt(0)}function Dle(e,t){if(e&1&&he(0,Cle,1,0,"ng-container",5),e&2){le(2);let a=Mu(7);Me("ngTemplateOutlet",a)}}function Ile(e,t){if(e&1){let a=ba();j(0,"mat-icon",11),on("click",function(){vn(a);let n=le(2);return bn(n.onCloseButtonClick())})("keydown.enter",function(){vn(a);let n=le(2);return bn(n.onCloseButtonClick())})("keydown.space",function(){vn(a);let n=le(2);return bn(n.onCloseButtonClick())}),V()}if(e&2){let a=le(2);$t("aria-label",a.closeButtonAriaLabel())}}function Tle(e,t){if(e&1&&tt(0,"mat-icon",10),e&2){let a=le(2);Me("fontIcon",a.expanded()?"keyboard_arrow_up":"keyboard_arrow_down")}}function Rle(e,t){if(e&1&&(tt(0,"mat-icon",7),j(1,"div",8),he(2,kle,3,2,"div")(3,Dle,1,1,"ng-container"),V(),he(4,Ile,1,1,"mat-icon",9)(5,Tle,1,1,"mat-icon",10)),e&2){let a=le();Me("fontIcon",a.fontIcon()),A(2),je(a.alertTitle()||a.alertSubtitle()?2:a.dismissMode()!=="expandable"?3:-1),A(2),je(a.dismissMode()==="closable"?4:a.dismissMode()==="expandable"?5:-1)}}function Ole(e,t){if(e&1){let a=ba();j(0,"button",14),on("click",function(){vn(a);let n=le(2);return bn(n.onActionButtonClicked())}),ee(1),V()}if(e&2){let a=le(2);Me("disabled",a.buttonDisabled()),A(),Ue(" ",a.buttonLabel()," ")}}function Mle(e,t){if(e&1&&(j(0,"span",12),pt(1),V(),he(2,Ole,2,2,"button",13)),e&2){let a=le();A(2),je(a.actionButton()?2:-1)}}var Nle=(()=>{const t=class t{constructor(){s(this,"usage",Be("info"));s(this,"backgroundColor",Be("color"));s(this,"alertTitle",Be());s(this,"alertSubtitle",Be());s(this,"actionButton",Be(!1));s(this,"buttonDisabled",Be(!1));s(this,"buttonLabel",Be());s(this,"dismissMode",Be("pinned"));s(this,"closeButtonAriaLabel",Be(""));s(this,"startExpanded",Be(!1));s(this,"expandedButtonAriaLabel",Be(""));s(this,"collapsedButtonAriaLabel",Be(""));s(this,"closeButtonClicked",Ll());s(this,"actionButtonClicked",Ll());s(this,"expanded",uK(()=>this.startExpanded()));s(this,"currentExpandIconAriaLabel",fr(()=>this.expanded()?this.expandedButtonAriaLabel():this.collapsedButtonAriaLabel()));s(this,"expandableExpanded",fr(()=>this.dismissMode()==="expandable"&&this.expanded()));s(this,"notExpandableMissingTitleAndSubtitle",fr(()=>this.dismissMode()!=="expandable"&&(this.alertTitle()||this.alertSubtitle())));s(this,"toggleExpanded",()=>{this.expanded.update(n=>!n)});s(this,"onActionButtonClicked",()=>{this.actionButtonClicked.emit()});s(this,"fontIcon",fr(()=>({info:"info",success:"check_circle",warning:"warning",error:"emergency_home",notification:"notifications"})[this.usage()]??"info"))}onCloseButtonClick(){this.closeButtonClicked.emit()}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Pe({type:t,selectors:[["mh-alert"]],inputs:{usage:[1,"usage"],backgroundColor:[1,"backgroundColor"],alertTitle:[1,"alertTitle"],alertSubtitle:[1,"alertSubtitle"],actionButton:[1,"actionButton"],buttonDisabled:[1,"buttonDisabled"],buttonLabel:[1,"buttonLabel"],dismissMode:[1,"dismissMode"],closeButtonAriaLabel:[1,"closeButtonAriaLabel"],startExpanded:[1,"startExpanded"],expandedButtonAriaLabel:[1,"expandedButtonAriaLabel"],collapsedButtonAriaLabel:[1,"collapsedButtonAriaLabel"]},outputs:{closeButtonClicked:"closeButtonClicked",actionButtonClicked:"actionButtonClicked"},ngContentSelectors:gle,decls:8,vars:6,consts:[["header",""],["details",""],["role","alert","aria-live","assertive"],[1,"display-flex"],["type","button","tabindex","0",1,"display-flex","pointer"],[4,"ngTemplateOutlet"],["type","button","tabindex","0",1,"display-flex","pointer",3,"click","keydown.enter","keydown.space"],[3,"fontIcon"],[1,"flex-grow"],["type","button","tabindex","0","fontIcon","close",1,"top-right-icon"],[1,"top-right-icon",3,"fontIcon"],["type","button","tabindex","0","fontIcon","close",1,"top-right-icon",3,"click","keydown.enter","keydown.space"],[1,"alert-details"],["type","button","mat-flat-button","",3,"disabled"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(n,i){n&1&&(Vn(),j(0,"div",2),he(1,ble,2,1,"div",3)(2,_le,2,2,"div",4)(3,xle,1,1,"ng-container"),V(),he(4,Rle,6,3,"ng-template",null,0,Af)(6,Mle,3,1,"ng-template",null,1,Af)),n&2&&(Ou(i.usage()),jt("white",i.backgroundColor()==="white"),A(),je(i.dismissMode()!=="expandable"?1:2),A(2),je(i.notExpandableMissingTitleAndSubtitle()||i.expandableExpanded()?3:-1))},dependencies:[I_,JK,Hu,ws],styles:[".info[_ngcontent-%COMP%]{background:#f2f7fd;border-radius:6px;box-shadow:1px 1px 4px #00000021;padding:10px;display:flex;flex-direction:column;gap:10px}.info[_ngcontent-%COMP%] .display-flex[_ngcontent-%COMP%]{display:flex;gap:10px}.info[_ngcontent-%COMP%] .flex-grow[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;display:flex;flex-direction:column;gap:10px}.info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:600;color:#0d0d0d;font-size:1rem;line-height:1.375rem;letter-spacing:0em}.info[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .info[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:400;color:#0d0d0d;font-size:.875rem;line-height:normal;letter-spacing:0em}.info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .info[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .info[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{color:#1d5caf;margin:0}.info[_ngcontent-%COMP%]{--mat-icon-color: #1d5caf}.info[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0}.info[_ngcontent-%COMP%] mat-icon.top-right-icon[_ngcontent-%COMP%], .info[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.info[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]{background-color:#2473db;width:max-content}.info[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:disabled{background-color:#ebebeb}.info[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:hover{background-color:#1d5caf}.info[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:focus, .info[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:active{background-color:#1d5caf}.success[_ngcontent-%COMP%]{background:#f2fcf8;border-radius:6px;box-shadow:1px 1px 4px #00000021;padding:10px;display:flex;flex-direction:column;gap:10px}.success[_ngcontent-%COMP%] .display-flex[_ngcontent-%COMP%]{display:flex;gap:10px}.success[_ngcontent-%COMP%] .flex-grow[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;display:flex;flex-direction:column;gap:10px}.success[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:600;color:#0d0d0d;font-size:1rem;line-height:1.375rem;letter-spacing:0em}.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .success[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:400;color:#0d0d0d;font-size:.875rem;line-height:normal;letter-spacing:0em}.success[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .success[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .success[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{color:#1d8657;margin:0}.success[_ngcontent-%COMP%]{--mat-icon-color: #1d8657}.success[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0}.success[_ngcontent-%COMP%] mat-icon.top-right-icon[_ngcontent-%COMP%], .success[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.success[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]{background-color:#1d8657;width:max-content}.success[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:disabled{background-color:#ebebeb}.success[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:hover{background-color:#145c3c}.success[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:focus, .success[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:active{background-color:#145c3c}.warning[_ngcontent-%COMP%]{background:#ffeee0;border-radius:6px;box-shadow:1px 1px 4px #00000021;padding:10px;display:flex;flex-direction:column;gap:10px}.warning[_ngcontent-%COMP%] .display-flex[_ngcontent-%COMP%]{display:flex;gap:10px}.warning[_ngcontent-%COMP%] .flex-grow[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;display:flex;flex-direction:column;gap:10px}.warning[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:600;color:#0d0d0d;font-size:1rem;line-height:1.375rem;letter-spacing:0em}.warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:400;color:#0d0d0d;font-size:.875rem;line-height:normal;letter-spacing:0em}.warning[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{color:#662e00;margin:0}.warning[_ngcontent-%COMP%]{--mat-icon-color: #662e00}.warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0}.warning[_ngcontent-%COMP%] mat-icon.top-right-icon[_ngcontent-%COMP%], .warning[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.warning[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]{background-color:#994500;width:max-content}.warning[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:disabled{background-color:#ebebeb}.warning[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:hover{background-color:#662e00}.warning[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:focus, .warning[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:active{background-color:#662e00}.error[_ngcontent-%COMP%]{background:#fff6f5;border-radius:6px;box-shadow:1px 1px 4px #00000021;padding:10px;display:flex;flex-direction:column;gap:10px}.error[_ngcontent-%COMP%] .display-flex[_ngcontent-%COMP%]{display:flex;gap:10px}.error[_ngcontent-%COMP%] .flex-grow[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;display:flex;flex-direction:column;gap:10px}.error[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:600;color:#0d0d0d;font-size:1rem;line-height:1.375rem;letter-spacing:0em}.error[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .error[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:400;color:#0d0d0d;font-size:.875rem;line-height:normal;letter-spacing:0em}.error[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .error[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .error[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{color:#c41c0d;margin:0}.error[_ngcontent-%COMP%]{--mat-icon-color: #c41c0d}.error[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0}.error[_ngcontent-%COMP%] mat-icon.top-right-icon[_ngcontent-%COMP%], .error[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.error[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]{background-color:#c41c0d;width:max-content}.error[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:disabled{background-color:#ebebeb}.error[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:hover{background-color:#8f0c00}.error[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:focus, .error[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:active{background-color:#8f0c00}.notification[_ngcontent-%COMP%]{background:#f5f5f5;border-radius:6px;box-shadow:1px 1px 4px #00000021;padding:10px;display:flex;flex-direction:column;gap:10px}.notification[_ngcontent-%COMP%] .display-flex[_ngcontent-%COMP%]{display:flex;gap:10px}.notification[_ngcontent-%COMP%] .flex-grow[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1;min-width:0;word-wrap:break-word;overflow-wrap:break-word;display:flex;flex-direction:column;gap:10px}.notification[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:600;color:#0d0d0d;font-size:1rem;line-height:1.375rem;letter-spacing:0em}.notification[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .notification[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{font-family:Open Sans,Roboto,sans-serif;font-weight:400;color:#0d0d0d;font-size:.875rem;line-height:normal;letter-spacing:0em}.notification[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .notification[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .notification[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{color:#0d0d0d;margin:0}.notification[_ngcontent-%COMP%]{--mat-icon-color: #c41c0d}.notification[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0}.notification[_ngcontent-%COMP%] mat-icon.top-right-icon[_ngcontent-%COMP%], .notification[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.notification[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]{background-color:#2473db;width:max-content}.notification[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:disabled{background-color:#ebebeb}.notification[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:hover{background-color:#1d5caf}.notification[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:focus, .notification[_ngcontent-%COMP%] button[mat-flat-button][_ngcontent-%COMP%]:active{background-color:#1d5caf}.notification[_ngcontent-%COMP%] .top-right-icon[_ngcontent-%COMP%]{--mat-icon-color: #0d0d0d}.white[_ngcontent-%COMP%]{background:#fff}.white[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .white[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .white[_ngcontent-%COMP%] .alert-details[_ngcontent-%COMP%]{color:#0d0d0d}"]}));let e=t;return e})();function Ple(e,t){if(e&1&&(j(0,"mh-alert",0),te(1,"translate"),j(2,"div",1),ee(3),te(4,"translate"),V()()),e&2){let a=le();Me("alertTitle",ae(1,2,"commons.errors.data-not-available-title")),A(3),Ne(ae(4,4,"commons.errors."+a.error().code))}}var Ale=(()=>{const t=class t{constructor(){this.error=Be.required(),this.vidisErrorGroup=Fa}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-status-message"]],inputs:{error:[1,"error"]},decls:1,vars:1,consts:[["usage","info",3,"alertTitle"],["alert-details",""]],template:function(n,i){n&1&&he(0,Ple,5,6,"mh-alert",0),n&2&&je(i.error().group===i.vidisErrorGroup.TEMP_UNAVAILABLE?0:-1)},dependencies:[gi,Nle],styles:["mat-card-header[_ngcontent-%COMP%]{color:#c41c0d}mat-card-header[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}span[_ngcontent-%COMP%]{white-space:pre-line}"]});let e=t;return e})(),Lle=["*"],Fle=(()=>{const t=class t{constructor(){this.item=Be.required(),this.expandedElement=aZ.required()}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-table-detail-button"]],inputs:{item:[1,"item"],expandedElement:[1,"expandedElement"]},outputs:{expandedElement:"expandedElementChange"},ngContentSelectors:Lle,decls:3,vars:1,consts:[["mat-button","",1,"font",3,"click"],[3,"fontIcon"]],template:function(n,i){n&1&&(Vn(),j(0,"button",0),on("click",function(){return i.expandedElement.set(i.expandedElement()===i.item()?null:i.item())}),tt(1,"mat-icon",1),pt(2),V()),n&2&&(A(),Me("fontIcon",i.item()===i.expandedElement()?"keyboard_arrow_up":"keyboard_arrow_down"))},dependencies:[am,ws,Hu],styles:[".font[_ngcontent-%COMP%]{font-size:1rem}"]});let e=t;return e})(),jle=["*"],Vle=(e,t,a,n,i)=>({"custom-content":e,circle:t,progress:a,"progress-dark":n,pulse:i});function zle(e,t){e&1&&pt(0)}function Ble(e,t){if(e&1&&(j(0,"div",0),he(1,zle,1,0),V()),e&2){let a=le(),n=Pf(0),i=Pf(1);Me("ngClass",DY(5,Vle,n==="custom-content",n==="circle",i==="progress",i==="progress-dark",i==="pulse"))("ngStyle",a.styles()),$t("aria-label",a.ariaLabel())("aria-valuetext",a.loadingText()),A(),je(n==="custom-content"?1:-1)}}var b9=new K("ngx-skeleton-loader.config"),y9=(()=>{var t;const a=class a{constructor(){Pm(this,t);var i,r,o,l,u,c;Am(this,t,S(b9,{optional:!0})),this.count=Be(((i=Ra(this,t))==null?void 0:i.count)||1,{transform:Ap}),this.loadingText=Be(((r=Ra(this,t))==null?void 0:r.loadingText)||"Loading..."),this.appearance=Be(((o=Ra(this,t))==null?void 0:o.appearance)||"line"),this.animation=Be(((l=Ra(this,t))==null?void 0:l.animation)||"progress"),this.ariaLabel=Be(((u=Ra(this,t))==null?void 0:u.ariaLabel)||"loading"),this.theme=Be(((c=Ra(this,t))==null?void 0:c.theme)||null),this.items=fr(()=>{let d=this.count()||1;return this.appearance()==="custom-content"&&$Y(),[...Array(d)].map((m,v)=>v)}),this.styles=fr(()=>{var m,v,g;let d=this.theme();return(v=(m=Ra(this,t))==null?void 0:m.theme)!=null&&v.extendsFromRoot?ce(ce({},(g=Ra(this,t))==null?void 0:g.theme),d):d})}};t=new WeakMap,a.ɵfac=function(i){return new(i||a)},a.ɵcmp=Pe({type:a,selectors:[["ngx-skeleton-loader"]],inputs:{count:[1,"count"],loadingText:[1,"loadingText"],appearance:[1,"appearance"],animation:[1,"animation"],ariaLabel:[1,"ariaLabel"],theme:[1,"theme"]},ngContentSelectors:jle,decls:4,vars:2,consts:[["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","-1",1,"skeleton-loader",3,"ngClass","ngStyle"]],template:function(i,r){i&1&&(Vn(),d_(0)(1),Qr(2,Ble,2,11,"div",0,Rp)),i&2&&(Nf(r.appearance()),A(),Nf(r.animation()),A(),Jr(r.items()))},dependencies:[Fp,QK],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:#eff1f6 no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translateZ(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,#fff0,#fff9,#fff0)}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}.skeleton-loader.custom-content[_ngcontent-%COMP%]{height:100%;background:none}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]:before{animation:none}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%]{background-image:none}}@media screen and (min-device-width: 1200px){.skeleton-loader[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;cursor:wait}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0});let e=a;return e})(),_9=(()=>{const t=class t{static forRoot(n){return{ngModule:t,providers:[{provide:b9,useValue:n}]}}};t.ɵfac=function(n){return new(n||t)},t.ɵmod=Bt({type:t}),t.ɵinj=zt({imports:[I_]});let e=t;return e})();function Hle(e,t){if(e&1){let a=ba();j(0,"a",1),on("click",function(n){vn(a);let i=le();return bn(i.onDownloadClick(n))}),tt(1,"mat-icon",2),V()}}var qle=(()=>{const t=class t{constructor(){this.translateService=S(Jn),this.leafletService=S(Dw),this.item=Be(),this.identifierType=ei}onDownloadClick(n){n.preventDefault(),this.leafletService.getLeaflet(this.translateService.currentLang,this.item().medication.identifier.value)}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-leaflet-download"]],inputs:{item:[1,"item"]},decls:1,vars:1,consts:[["mat-button","","target","_blank"],["mat-button","","target","_blank",3,"click"],["fontIcon","menu_book"]],template:function(n,i){n&1&&he(0,Hle,2,0,"a",0),n&2&&je(i.item().medication.identifier&&i.item().medication.identifier.type===i.identifierType.CNK?0:-1)},dependencies:[Hu,j1],encapsulation:2});let e=t;return e})(),$le=()=>["error"],Gle=()=>["expandDetails"],Ule=(e,t)=>({"more-than-one-quantity":e,"negative-quantity":t}),Wle=()=>({height:"47px",margin:"0px"});function Zle(e,t){e&1&&(j(0,"th",23),ee(1),te(2,"translate"),V()),e&2&&(A(),Ue(" ",ae(2,1,"deliveredMedicationsList.headers.medicationName")," "))}function Yle(e,t){if(e&1&&(j(0,"div",26),ee(1),te(2,"translateValue"),V()),e&2){let a=le().$implicit;A(),Ne(ae(2,1,a.medication.name))}}function Kle(e,t){if(e&1&&(j(0,"div",28),ee(1),te(2,"ingredientLabel"),V()),e&2){let a=t.$implicit;A(),Ue(" ",ae(2,1,a)," ")}}function Qle(e,t){if(e&1&&(j(0,"div",27)(1,"strong"),ee(2),te(3,"translate"),V()(),Qr(4,Kle,3,3,"div",28,Tp),te(6,"slice")),e&2){let a=le().$implicit;A(2),Ne(ae(3,1,"deliveredMedicationsList.magisterialPreparation")),A(2),Jr(g_(6,3,a.medication.ingredients,0,2))}}function Jle(e,t){if(e&1){let a=ba();j(0,"td",24)(1,"vidis-table-detail-button",25),u_("expandedElementChange",function(n){vn(a);let i=le();return wY(i.expandedElement,n)||(i.expandedElement=n),bn(n)}),he(2,Yle,3,3,"div",26)(3,Qle,7,7),V()()}if(e&2){let a=t.$implicit,n=le();A(),Me("item",a),l_("expandedElement",n.expandedElement),A(),je(a.medication.name?2:3)}}function Xle(e,t){e&1&&(j(0,"th",29),ee(1),te(2,"translate"),V()),e&2&&(A(),Ue(" ",ae(2,1,"deliveredMedicationsList.headers.deliveredOn")," "))}function eue(e,t){if(e&1&&(j(0,"td",30),ee(1),te(2,"date"),V()),e&2){let a=t.$implicit;A(),Ue(" ",vs(2,1,a.deliveryDate," dd/MM/yyy")," ")}}function tue(e,t){e&1&&(j(0,"th",31),ee(1),te(2,"translate"),V()),e&2&&(A(),Ue(" ",ae(2,1,"deliveredMedicationsList.headers.quantity")," "))}function nue(e,t){if(e&1&&(j(0,"td",32)(1,"span",33),ee(2),V()()),e&2){let a=t.$implicit;A(),Me("ngClass",CY(2,Ule,(a.medication.quantity==null?null:a.medication.quantity.value)>1,(a.medication.quantity==null?null:a.medication.quantity.value)<0)),A(),Ue(" ",a.medication.quantity.value," ")}}function aue(e,t){e&1&&(j(0,"th",34),ee(1),te(2,"translate"),V()),e&2&&(A(),Ue(" ",ae(2,1,"deliveredMedicationsList.headers.leaflet")," "))}function iue(e,t){if(e&1&&(j(0,"td",35),tt(1,"vidis-leaflet-download",36),V()),e&2){let a=t.$implicit;A(),Me("item",a)}}function rue(e,t){if(e&1&&(j(0,"td",37),ee(1),te(2,"translate"),tt(3,"br"),ee(4),V()),e&2){let a=t.$implicit;$t("colspan",4),A(),Ue(" ",ae(2,3,"error.deliveredMedication")," "),A(3),Ue(" ( ",a.dguid," ) ")}}function oue(e,t){if(e&1&&(j(0,"td",38)(1,"div"),tt(2,"vidis-delivered-medication-details-row",36),V()()),e&2){let a=t.$implicit,n=le();jt("mh-detail-row--expanded",a===n.expandedElement()),Me("colSpan",n.columns.length),A(2),Me("item",a)}}function sue(e,t){e&1&&tt(0,"tr",39)}function lue(e,t){if(e&1&&tt(0,"tr",40),e&2){let a=le();Me("hidden",a.isLoading())}}function uue(e,t){e&1&&tt(0,"tr",41)}function cue(e,t){e&1&&tt(0,"tr",42)}function due(e,t){e&1&&tt(0,"ngx-skeleton-loader",21),e&2&&Me("count",3)("theme",Bo(2,Wle))}function hue(e,t){e&1&&(j(0,"p",22),ee(1),te(2,"translate"),V()),e&2&&(A(),Ne(ae(2,1,"deliveredMedicationsList.noContent")))}var pue=(()=>{const t=class t{set sort(n){this.dataSource.sort=n,this.dataSource.sortingDataAccessor=(i,r)=>this.getSortingAccessor(i,r)}constructor(){this.translateService=S(Jn),this.data=Be(),this.isLoading=Be(),this.isProfessional=Be.required(),this.expandedElement=ap(null),this.dataSource=new fle,this.columns=["medicationName","deliveryDate","quantity","leaflet"],this.canDisplayDeliveredMedication=(n,i)=>sh(i),this.canNotDisplayDeliveredMedication=(n,i)=>!sh(i),aK(()=>{var n;return this.dataSource.data=(n=this.data())==null?void 0:n.items})}getSortingAccessor(n,i){var r;switch(i){case"medicationName":return n.medication?n.medication.name?Jl(n.medication.name,this.translateService.currentLang):Jl(n.medication.ingredients[0].name,this.translateService.currentLang):"";case"quantity":return((r=n.medication.quantity)==null?void 0:r.value)||0;case"patientName":return Cw(n.person);default:return n[i]}}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-delivered-medications-table"]],viewQuery:function(n,i){if(n&1&&Ar(uh,7),n&2){let r;un(r=cn())&&(i.sort=r.first)}},inputs:{data:[1,"data"],isLoading:[1,"isLoading"],isProfessional:[1,"isProfessional"]},decls:24,vars:13,consts:[["mat-table","","matSort","","matSortActive","deliveryDate","matSortDirection","desc","matSortDisableClear","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","medicationName"],["mat-header-cell","","mat-sort-header","","data-cy","delivered-medications-overview-table-medication-name-title",4,"matHeaderCellDef"],["mat-cell","","data-cy","delivered-medications-overview-table-medication-name",4,"matCellDef"],["matColumnDef","deliveryDate"],["mat-header-cell","","mat-sort-header","","data-cy","delivered-medications-overview-table-delivered-on-title",4,"matHeaderCellDef"],["mat-cell","","data-cy","delivered-medications-overview-table-delivered-on",4,"matCellDef"],["matColumnDef","quantity"],["mat-header-cell","","mat-sort-header","","data-cy","delivered-medications-overview-table-quantity-title",4,"matHeaderCellDef"],["mat-cell","","data-cy","delivered-medications-overview-table-quantity",4,"matCellDef"],["matColumnDef","leaflet"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-cell","","class","error-text",4,"matCellDef"],["matColumnDef","expandDetails"],["mat-cell","",3,"mh-detail-row--expanded","colSpan",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"hidden",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["class","mh-detail-row","mat-row","",4,"matRowDef","matRowDefColumns"],["appearance","line",3,"count","theme"],[1,"no-content"],["mat-header-cell","","mat-sort-header","","data-cy","delivered-medications-overview-table-medication-name-title"],["mat-cell","","data-cy","delivered-medications-overview-table-medication-name"],[3,"expandedElementChange","item","expandedElement"],[1,"textOverflow","align-left"],["data-cy","delivered-medications-overview-table-magistral-preparation-label",1,"align-left"],["data-cy","delivered-medications-overview-table-ingredient",1,"textOverflow","align-left"],["mat-header-cell","","mat-sort-header","","data-cy","delivered-medications-overview-table-delivered-on-title"],["mat-cell","","data-cy","delivered-medications-overview-table-delivered-on"],["mat-header-cell","","mat-sort-header","","data-cy","delivered-medications-overview-table-quantity-title"],["mat-cell","","data-cy","delivered-medications-overview-table-quantity"],[3,"ngClass"],["mat-header-cell",""],["mat-cell",""],[3,"item"],["mat-cell","",1,"error-text"],["mat-cell","",3,"colSpan"],["mat-header-row",""],["mat-row","",3,"hidden"],["mat-row",""],["mat-row","",1,"mh-detail-row"]],template:function(n,i){n&1&&(j(0,"table",0),te(1,"translate"),Ya(2,1),he(3,Zle,3,3,"th",2)(4,Jle,4,3,"td",3),Ka(),Ya(5,4),he(6,Xle,3,3,"th",5)(7,eue,3,4,"td",6),Ka(),Ya(8,7),he(9,tue,3,3,"th",8)(10,nue,3,5,"td",9),Ka(),Ya(11,10),he(12,aue,3,3,"th",11)(13,iue,2,1,"td",12),Ka(),Ya(14,13),he(15,rue,5,5,"td",14),Ka(),Ya(16,15),he(17,oue,3,4,"td",16),Ka(),he(18,sue,1,0,"tr",17)(19,lue,1,1,"tr",18)(20,uue,1,0,"tr",19)(21,cue,1,0,"tr",20),V(),he(22,due,1,3,"ngx-skeleton-loader",21)(23,hue,3,3,"p",22)),n&2&&(Me("dataSource",i.dataSource),$t("aria-label",ae(1,9,"deliveredMedicationsList.title")),A(18),Me("matHeaderRowDef",i.columns),A(),Me("matRowDefColumns",i.columns)("matRowDefWhen",i.canDisplayDeliveredMedication),A(),Me("matRowDefColumns",Bo(11,$le))("matRowDefWhen",i.canNotDisplayDeliveredMedication),A(),Me("matRowDefColumns",Bo(12,Gle)),A(),je(i.isLoading()?22:i.dataSource.data.length<=0?23:-1))},dependencies:[ple,ale,rle,ule,ole,ile,cle,sle,lle,dle,hle,Vse,uh,jse,bm,Vp,vm,gi,_9,y9,D_,Aoe,Fle,qle,Fp],styles:["table[_ngcontent-%COMP%]{width:100%}.font[_ngcontent-%COMP%]{font-size:1rem}.negative-quantity[_ngcontent-%COMP%]{background-color:#e68619}.more-than-one-quantity[_ngcontent-%COMP%], .different-patient-name[_ngcontent-%COMP%]{font-weight:bolder}"],changeDetection:0});let e=t;return e})(),mue=["*"],fue=new K("MAT_CARD_CONFIG"),gue=(()=>{const t=class t{constructor(){s(this,"appearance");let n=S(fue,{optional:!0});this.appearance=(n==null?void 0:n.appearance)||"raised"}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",Pe({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,i){n&2&&jt("mat-mdc-card-outlined",i.appearance==="outlined")("mdc-card--outlined",i.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:mue,decls:1,vars:0,template:function(n,i){n&1&&(Vn(),pt(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}
|
|
43
|
-
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),vue=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}));let e=t;return e})(),bue=e=>({"negative-quantity":e});function yue(e,t){e&1&&(j(0,"strong",3),ee(1),te(2,"translateValue"),V()),e&2&&(A(),Ne(ae(2,1,t)))}function _ue(e,t){if(e&1&&(j(0,"div",3),ee(1),te(2,"ingredientLabel"),V()),e&2){let a=t.$implicit;A(),Ne(ae(2,1,a))}}function wue(e,t){if(e&1&&(j(0,"div")(1,"strong"),ee(2),te(3,"translate"),V()(),Qr(4,_ue,3,3,"div",3,Rp),te(6,"slice")),e&2){let a=le(2);A(2),Ne(ae(3,1,"deliveredMedicationsList.magisterialPreparation")),A(2),Jr(g_(6,3,a.item().medication.ingredients,0,2))}}function xue(e,t){if(e&1){let a=ba();j(0,"mat-card",1),on("click",function(){vn(a);let n=le();return bn(n.clickDetails.emit(null))}),j(1,"mat-card-content")(2,"div",2)(3,"div"),ee(4),te(5,"date"),V()(),j(6,"div"),he(7,yue,3,3,"strong",3)(8,wue,7,7),V(),j(9,"div",4)(10,"span",5),ee(11),V()()()()}if(e&2){let a,n,i,r=le();A(4),Ne(vs(5,4,r.item().deliveryDate,"dd/MM/yyyy")),A(3),je((a=r.item().medication.name)?7:8,a),A(3),Me("ngClass",p_(7,bue,((n=r.item().medication.quantity)==null?null:n.value)<0)),A(),Ue(" ",(i=r.item().medication.quantity)==null?null:i.value," ")}}function Eue(e,t){if(e&1&&(j(0,"mat-card")(1,"mat-card-content",6)(2,"div"),ee(3),te(4,"translate"),V(),j(5,"div"),ee(6),V()()()),e&2){let a,n=le();A(3),Ne(ae(4,2,"error.deliveredMedication")),A(3),Ue("( ",(a=n.item())==null?null:a.dguid," )")}}var Sue=(()=>{const t=class t{constructor(){this.item=Be(),this.clickDetails=Ll()}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-delivered-medications-card"]],inputs:{item:[1,"item"]},outputs:{clickDetails:"clickDetails"},decls:3,vars:3,consts:[["role","button"],["role","button",3,"click"],[1,"card__top"],[1,"textOverflow"],[1,"quantity"],[3,"ngClass"],[1,"error-text"]],template:function(n,i){n&1&&(he(0,xue,12,9,"mat-card",0),te(1,"canDisplayDeliveredMedication"),he(2,Eue,7,4,"mat-card")),n&2&&je(ae(1,1,i.item())?0:2)},dependencies:[gue,vue,Vp,Xre,vm,bm,gi,D_,Fp],styles:["mat-card[_ngcontent-%COMP%]{margin-bottom:10px}.card__top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;color:#8f8f8f}.card__top[_ngcontent-%COMP%] .bold[_ngcontent-%COMP%]{font-weight:700}.quantity[_ngcontent-%COMP%]{display:flex;justify-content:end}.negative-quantity[_ngcontent-%COMP%]{background-color:#e68619}.patient-name[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%}.error-text[_ngcontent-%COMP%]{color:#c41c0d}.different-patient-name[_ngcontent-%COMP%]{border:2px solid #245bb4;padding:6px 8px;border-radius:6px;display:inline-block;font-weight:700}"]});let e=t;return e})(),kue=()=>({sortProperty:"deliveryDate",isAscending:!1}),Cue=()=>({height:"47px",margin:"0px"});function Due(e,t){if(e&1){let a=ba();j(0,"vidis-delivered-medications-card",1),on("clickDetails",function(){let n=vn(a).$implicit,i=le(2);return bn(i.clickDetails.emit(n.dguid))}),V()}if(e&2){let a=t.$implicit;Me("item",a)}}function Iue(e,t){if(e&1&&(Qr(0,Due,1,1,"vidis-delivered-medications-card",0,Rp),te(2,"sortOn")),e&2){let a=le();Jr(vs(2,0,a.data().items,Bo(3,kue)))}}function Tue(e,t){e&1&&tt(0,"ngx-skeleton-loader",2),e&2&&Me("count",10)("theme",Bo(2,Cue))}function Rue(e,t){e&1&&(j(0,"div",3),ee(1),te(2,"translate"),V()),e&2&&(A(),Ue(" ",ae(2,1,"deliveredMedicationsList.noContent")," "))}function Oue(e,t){if(e&1&&he(0,Tue,1,3,"ngx-skeleton-loader",2)(1,Rue,3,3,"div",3),e&2){let a=le();je(a.isLoading?0:1)}}var Mue=(()=>{const t=class t{constructor(){this.data=Be(),this.isLoading=Be(),this.isProfessional=Be.required(),this.clickDetails=Ll()}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-delivered-medications-mobile"]],inputs:{data:[1,"data"],isLoading:[1,"isLoading"],isProfessional:[1,"isProfessional"]},outputs:{clickDetails:"clickDetails"},decls:2,vars:1,consts:[[3,"item"],[3,"clickDetails","item"],["appearance","line",3,"count","theme"],["data-cy","no-deliverd-medications",1,"no-deliverd-medications"]],template:function(n,i){if(n&1&&he(0,Iue,3,4)(1,Oue,2,1),n&2){let r;je(((r=i.data())==null||r.items==null?null:r.items.length)>0?0:1)}},dependencies:[Sue,gi,yoe,_9,y9],styles:[".delivered-medications-title[_ngcontent-%COMP%]{font-size:1.467rem;font-weight:700;margin:0!important}.no-deliverd-medications[_ngcontent-%COMP%]{font-size:1.3rem;text-align:center;padding:3rem 0}"],changeDetection:0});let e=t;return e})();function Nue(e,t){e&1&&(j(0,"div"),ee(1,"Component not properly initialized!"),V())}function Pue(e,t){if(e&1&&tt(0,"vidis-status-message",0),e&2){let a=le();Me("error",a.error)}}function Aue(e,t){if(e&1){let a=ba();j(0,"div",1),tt(1,"vidis-delivered-medications-disclaimer",2),V(),tt(2,"vidis-delivered-medications-table",3),j(3,"vidis-delivered-medications-mobile",4),on("clickDetails",function(n){vn(a);let i=le(3);return bn(i.onSelectMedication.emit(n))}),V()}if(e&2){let a=le(),n=le(2);A(),Me("isProfessional",n.professional),A(),Me("isLoading",a.status===n.loadingStatus.LOADING)("data",a==null?null:a.data)("isProfessional",n.professional),A(),Me("isLoading",a.status===n.loadingStatus.LOADING)("data",a==null?null:a.data)("isProfessional",n.professional)}}function Lue(e,t){if(e&1&&he(0,Pue,1,1,"vidis-status-message",0)(1,Aue,4,7),e&2){let a=le(2);je(t.status===a.loadingStatus.ERROR?0:1)}}function Fue(e,t){if(e&1&&(he(0,Lue,2,1),te(1,"async")),e&2){let a,n=le();je((a=ae(1,1,n.deliveredMedicationsState$))?0:-1,a)}}var jue=(()=>{const t=class t extends fse{constructor(){super(...arguments),this.onSelectMedication=new ot,this.loadingStatus=Sr}fetchData(n){return Rt(this,null,function*(){return yield this.deliveredMedicationsService.getDeliveredMedications(n)})}injectService(){this.deliveredMedicationsService=this.injector.get(tv),this.deliveredMedicationsState$=this.deliveredMedicationsService.deliveredMedicationsState$,this.deliveredMedicationsState$.subscribe(n=>{n.status===this.loadingStatus.ERROR&&this.checkError(n.error)})}};t.ɵfac=(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})(),t.ɵcmp=Pe({type:t,selectors:[["ng-component"]],outputs:{onSelectMedication:"onSelectMedication"},features:[Tn([tv,QH,JH,noe]),Ye],decls:2,vars:1,consts:[[3,"error"],[1,"disclaimer"],[3,"isProfessional"],[3,"isLoading","data","isProfessional"],[3,"clickDetails","isLoading","data","isProfessional"]],template:function(n,i){n&1&&he(0,Nue,2,0,"div")(1,Fue,2,3),n&2&&je(i.isCorrectlySetup()?1:0)},dependencies:[pue,Mue,Mse,aQ,Ale],styles:[".disclaimer[_ngcontent-%COMP%]{padding-bottom:16px}@media only screen and (max-width: 960px){vidis-delivered-medications-table[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 960px){vidis-delivered-medications-mobile[_ngcontent-%COMP%]{display:none}}"],changeDetection:0});let e=t;return e})();kQ({providers:[Jre]}).then(e=>{let t=xK(jue,{injector:e.injector});customElements.define("vidis-delivered-medication-list",t)}).catch(e=>console.error(e));
|
|
43
|
+
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),vue=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",be({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}));let e=t;return e})(),bue=e=>({"negative-quantity":e});function yue(e,t){e&1&&(j(0,"strong",3),ee(1),te(2,"translateValue"),V()),e&2&&(A(),Ne(ae(2,1,t)))}function _ue(e,t){if(e&1&&(j(0,"div",3),ee(1),te(2,"ingredientLabel"),V()),e&2){let a=t.$implicit;A(),Ne(ae(2,1,a))}}function wue(e,t){if(e&1&&(j(0,"div")(1,"strong"),ee(2),te(3,"translate"),V()(),Qr(4,_ue,3,3,"div",3,Rp),te(6,"slice")),e&2){let a=le(2);A(2),Ne(ae(3,1,"deliveredMedicationsList.magisterialPreparation")),A(2),Jr(g_(6,3,a.item().medication.ingredients,0,2))}}function xue(e,t){if(e&1){let a=ba();j(0,"mat-card",1),on("click",function(){vn(a);let n=le();return bn(n.clickDetails.emit(null))}),j(1,"mat-card-content")(2,"div",2)(3,"div"),ee(4),te(5,"date"),V()(),j(6,"div"),he(7,yue,3,3,"strong",3)(8,wue,7,7),V(),j(9,"div",4)(10,"span",5),ee(11),V()()()()}if(e&2){let a,n,i,r=le();A(4),Ne(vs(5,4,r.item().deliveryDate,"dd/MM/yyyy")),A(3),je((a=r.item().medication.name)?7:8,a),A(3),Me("ngClass",p_(7,bue,((n=r.item().medication.quantity)==null?null:n.value)<0)),A(),Ue(" ",(i=r.item().medication.quantity)==null?null:i.value," ")}}function Eue(e,t){if(e&1&&(j(0,"mat-card")(1,"mat-card-content",6)(2,"div"),ee(3),te(4,"translate"),V(),j(5,"div"),ee(6),V()()()),e&2){let a,n=le();A(3),Ne(ae(4,2,"error.deliveredMedication")),A(3),Ue("( ",(a=n.item())==null?null:a.dguid," )")}}var Sue=(()=>{const t=class t{constructor(){this.item=Be(),this.clickDetails=Ll()}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-delivered-medications-card"]],inputs:{item:[1,"item"]},outputs:{clickDetails:"clickDetails"},decls:3,vars:3,consts:[["role","button"],["role","button",3,"click"],[1,"card__top"],[1,"textOverflow"],[1,"quantity"],[3,"ngClass"],[1,"error-text"]],template:function(n,i){n&1&&(he(0,xue,12,9,"mat-card",0),te(1,"canDisplayDeliveredMedication"),he(2,Eue,7,4,"mat-card")),n&2&&je(ae(1,1,i.item())?0:2)},dependencies:[gue,vue,Vp,Xre,vm,bm,gi,D_,Fp],styles:["mat-card[_ngcontent-%COMP%]{margin-bottom:10px}.card__top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;color:#8f8f8f}.card__top[_ngcontent-%COMP%] .bold[_ngcontent-%COMP%]{font-weight:700}.quantity[_ngcontent-%COMP%]{display:flex;justify-content:end}.negative-quantity[_ngcontent-%COMP%]{background-color:#e68619}.patient-name[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%}.error-text[_ngcontent-%COMP%]{color:#c41c0d}.different-patient-name[_ngcontent-%COMP%]{border:2px solid #245bb4;padding:6px 8px;border-radius:6px;display:inline-block;font-weight:700}"]});let e=t;return e})(),kue=()=>({sortProperty:"deliveryDate",isAscending:!1}),Cue=()=>({height:"47px",margin:"0px"});function Due(e,t){if(e&1){let a=ba();j(0,"vidis-delivered-medications-card",1),on("clickDetails",function(){let n=vn(a).$implicit,i=le(2);return bn(i.clickDetails.emit(n.dguid))}),V()}if(e&2){let a=t.$implicit;Me("item",a)}}function Iue(e,t){if(e&1&&(Qr(0,Due,1,1,"vidis-delivered-medications-card",0,Rp),te(2,"sortOn")),e&2){let a=le();Jr(vs(2,0,a.data().items,Bo(3,kue)))}}function Tue(e,t){e&1&&tt(0,"ngx-skeleton-loader",2),e&2&&Me("count",10)("theme",Bo(2,Cue))}function Rue(e,t){e&1&&(j(0,"div",3),ee(1),te(2,"translate"),V()),e&2&&(A(),Ue(" ",ae(2,1,"deliveredMedicationsList.noContent")," "))}function Oue(e,t){if(e&1&&he(0,Tue,1,3,"ngx-skeleton-loader",2)(1,Rue,3,3,"div",3),e&2){let a=le();je(a.isLoading()?0:1)}}var Mue=(()=>{const t=class t{constructor(){this.data=Be(),this.isLoading=Be(),this.isProfessional=Be.required(),this.clickDetails=Ll()}};t.ɵfac=function(n){return new(n||t)},t.ɵcmp=Pe({type:t,selectors:[["vidis-delivered-medications-mobile"]],inputs:{data:[1,"data"],isLoading:[1,"isLoading"],isProfessional:[1,"isProfessional"]},outputs:{clickDetails:"clickDetails"},decls:2,vars:1,consts:[[3,"item"],[3,"clickDetails","item"],["appearance","line",3,"count","theme"],["data-cy","no-deliverd-medications",1,"no-deliverd-medications"]],template:function(n,i){if(n&1&&he(0,Iue,3,4)(1,Oue,2,1),n&2){let r;je(((r=i.data())==null||r.items==null?null:r.items.length)>0?0:1)}},dependencies:[Sue,gi,yoe,_9,y9],styles:[".delivered-medications-title[_ngcontent-%COMP%]{font-size:1.467rem;font-weight:700;margin:0!important}.no-deliverd-medications[_ngcontent-%COMP%]{font-size:1.3rem;text-align:center;padding:3rem 0}"],changeDetection:0});let e=t;return e})();function Nue(e,t){e&1&&(j(0,"div"),ee(1,"Component not properly initialized!"),V())}function Pue(e,t){if(e&1&&tt(0,"vidis-status-message",0),e&2){let a=le();Me("error",a.error)}}function Aue(e,t){if(e&1){let a=ba();j(0,"div",1),tt(1,"vidis-delivered-medications-disclaimer",2),V(),tt(2,"vidis-delivered-medications-table",3),j(3,"vidis-delivered-medications-mobile",4),on("clickDetails",function(n){vn(a);let i=le(3);return bn(i.onSelectMedication.emit(n))}),V()}if(e&2){let a=le(),n=le(2);A(),Me("isProfessional",n.professional),A(),Me("isLoading",a.status===n.loadingStatus.LOADING)("data",a==null?null:a.data)("isProfessional",n.professional),A(),Me("isLoading",a.status===n.loadingStatus.LOADING)("data",a==null?null:a.data)("isProfessional",n.professional)}}function Lue(e,t){if(e&1&&he(0,Pue,1,1,"vidis-status-message",0)(1,Aue,4,7),e&2){let a=le(2);je(t.status===a.loadingStatus.ERROR?0:1)}}function Fue(e,t){if(e&1&&(he(0,Lue,2,1),te(1,"async")),e&2){let a,n=le();je((a=ae(1,1,n.deliveredMedicationsState$))?0:-1,a)}}var jue=(()=>{const t=class t extends fse{constructor(){super(...arguments),this.onSelectMedication=new ot,this.loadingStatus=Sr}fetchData(n){return Rt(this,null,function*(){return yield this.deliveredMedicationsService.getDeliveredMedications(n)})}injectService(){this.deliveredMedicationsService=this.injector.get(tv),this.deliveredMedicationsState$=this.deliveredMedicationsService.deliveredMedicationsState$,this.deliveredMedicationsState$.subscribe(n=>{n.status===this.loadingStatus.ERROR&&this.checkError(n.error)})}};t.ɵfac=(()=>{let n;return function(i){return(n||(n=nt(t)))(i||t)}})(),t.ɵcmp=Pe({type:t,selectors:[["ng-component"]],outputs:{onSelectMedication:"onSelectMedication"},features:[Tn([tv,QH,JH,noe]),Ye],decls:2,vars:1,consts:[[3,"error"],[1,"disclaimer"],[3,"isProfessional"],[3,"isLoading","data","isProfessional"],[3,"clickDetails","isLoading","data","isProfessional"]],template:function(n,i){n&1&&he(0,Nue,2,0,"div")(1,Fue,2,3),n&2&&je(i.isCorrectlySetup()?1:0)},dependencies:[pue,Mue,Mse,aQ,Ale],styles:[".disclaimer[_ngcontent-%COMP%]{padding-bottom:16px}@media only screen and (max-width: 960px){vidis-delivered-medications-table[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 960px){vidis-delivered-medications-mobile[_ngcontent-%COMP%]{display:none}}"],changeDetection:0});let e=t;return e})();kQ({providers:[Jre]}).then(e=>{let t=xK(jue,{injector:e.injector});customElements.define("vidis-delivered-medication-list",t)}).catch(e=>console.error(e));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./assets/main-
|
|
1
|
+
import"./assets/main-DOi8_tC9.js";import"./assets/polyfills-CGYnV-49.js";/* empty css */
|
package/package.json
CHANGED