@smals-belgium-shared/vidis-prescription-list 3.2.1-snapshot.0 → 3.2.1-snapshot.1
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.
|
@@ -308,4 +308,4 @@ dt: 300 ml`}],quantity:{value:1},treatmentStartDate:"2025-08-04T00:00:00+02:00",
|
|
|
308
308
|
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),bK=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({imports:[bc,yn,yn]}));let e=t;return e})(),Tfe=["*"];function Yfe(e,t){e&1&&(Qt(0,"div",2),po(),Qt(1,"svg",3),_u(2,"path",4),St()())}var IK=new Jt("MAT_SORT_DEFAULT_OPTIONS"),y5=(()=>{const t=class t{constructor(u){d(this,"_defaultOptions");d(this,"_initializedStream",new Xh(1));d(this,"sortables",new Map);d(this,"_stateChanges",new xu);d(this,"active");d(this,"start","asc");d(this,"_direction","");d(this,"disableClear");d(this,"disabled",!1);d(this,"sortChange",new Nu);d(this,"initialized",this._initializedStream);this._defaultOptions=u}get direction(){return this._direction}set direction(u){this._direction=u}register(u){this.sortables.set(u.id,u)}deregister(u){this.sortables.delete(u.id)}sort(u){this.active!=u.id?(this.active=u.id,this.direction=u.start?u.start:this.start):this.direction=this.getNextSortDirection(u),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(u){var l;if(!u)return"";let r=(u==null?void 0:u.disableClear)??this.disableClear??!!((l=this._defaultOptions)!=null&&l.disableClear),A=zfe(u.start||this.start,r),o=A.indexOf(this.direction)+1;return o>=A.length&&(o=0),A[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};d(t,"ɵfac",function(u){return new(u||t)(wn(IK,8))}),d(t,"ɵdir",Pu({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Ju],disabled:[2,"matSortDisabled","disabled",Ju]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ua]}));let e=t;return e})();function zfe(e,t){let n=["asc","desc"];return e=="desc"&&n.reverse(),t||n.push(""),n}var Ph=(()=>{const t=class t{constructor(){d(this,"changes",new xu)}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})();function Nfe(e){return e||new Ph}var _fe={provide:Ph,deps:[[new ed,new td,Ph]],useFactory:Nfe},Ufe=(()=>{const t=class t{constructor(){d(this,"_intl",Ie(Ph));d(this,"_sort",Ie(y5,{optional:!0}));d(this,"_columnDef",Ie("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0}));d(this,"_changeDetectorRef",Ie(Ei));d(this,"_focusMonitor",Ie(wc));d(this,"_elementRef",Ie(dr));d(this,"_ariaDescriber",Ie(S9,{optional:!0}));d(this,"_renderChanges");d(this,"_animationModule",Ie(Si,{optional:!0}));d(this,"_recentlyCleared",ga(null));d(this,"_sortButton");d(this,"id");d(this,"arrowPosition","after");d(this,"start");d(this,"disabled",!1);d(this,"_sortActionDescription","Sort");d(this,"disableClear");Ie(Ca).load(_s);let u=Ie(IK,{optional:!0});this._sort,u!=null&&u.arrowPosition&&(this.arrowPosition=u==null?void 0:u.arrowPosition)}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(u){this._updateSortActionDescription(u)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=da(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>this._recentlyCleared.set(null))}ngOnDestroy(){var u,r;this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),(u=this._renderChanges)==null||u.unsubscribe(),this._sortButton&&((r=this._ariaDescriber)==null||r.removeDescription(this._sortButton,this._sortActionDescription))}_toggleOnInteraction(){if(!this._isDisabled()){let u=this._isSorted(),r=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(u&&!this._isSorted()?r:null)}}_handleKeydown(u){(u.keyCode===32||u.keyCode===13)&&(u.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(u){var r,A;this._sortButton&&((r=this._ariaDescriber)==null||r.removeDescription(this._sortButton,this._sortActionDescription),(A=this._ariaDescriber)==null||A.describe(this._sortButton,u)),this._sortActionDescription=u}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Zu({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(u,r){u&1&&Ku("click",function(){return r._toggleOnInteraction()})("keydown",function(A){return r._handleKeydown(A)})("mouseleave",function(){return r._recentlyCleared.set(null)}),u&2&&(zr("aria-sort",r._getAriaSortAttribute()),xr("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Ju],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Ju]},exportAs:["matSortHeader"],ngContentSelectors:Tfe,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(u,r){u&1&&(Ai(),Qt(0,"div",0)(1,"div",1),vr(2),St(),Eu(3,Yfe,3,0,"div",2),St()),u&2&&(xr("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationModule==="NoopAnimations"),zr("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),It(3),Qu(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
|
|
309
309
|
`],encapsulation:2,changeDetection:0}));let e=t;return e})(),Pfe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({providers:[_fe],imports:[yn]}));let e=t;return e})(),Gfe=[[["caption"]],[["colgroup"],["col"]],"*"],Ofe=["caption","colgroup, col","*"];function jfe(e,t){e&1&&vr(0,2)}function Lfe(e,t){e&1&&(Qt(0,"thead",0),Pi(1,1),St(),Qt(2,"tbody",0),Pi(3,2)(4,3),St(),Qt(5,"tfoot",0),Pi(6,4),St())}function Wfe(e,t){e&1&&Pi(0,1)(1,2)(2,3)(3,4)}var Ha=new Jt("CDK_TABLE"),v5=(()=>{const t=class t{constructor(){d(this,"template",Ie(di))}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkCellDef",""]]}));let e=t;return e})(),M5=(()=>{const t=class t{constructor(){d(this,"template",Ie(di))}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkHeaderCellDef",""]]}));let e=t;return e})(),Hfe=(()=>{const t=class t{constructor(){d(this,"template",Ie(di))}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkFooterCellDef",""]]}));let e=t;return e})(),Xl=(()=>{const t=class t{constructor(){d(this,"_table",Ie(Ha,{optional:!0}));d(this,"_hasStickyChanged",!1);d(this,"_name");d(this,"_sticky",!1);d(this,"_stickyEnd",!1);d(this,"cell");d(this,"headerCell");d(this,"footerCell");d(this,"cssClassFriendlyName");d(this,"_columnCssClassName")}get name(){return this._name}set name(u){this._setNameInput(u)}get sticky(){return this._sticky}set sticky(u){u!==this._sticky&&(this._sticky=u,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(u){u!==this._stickyEnd&&(this._stickyEnd=u,this._hasStickyChanged=!0)}hasStickyChanged(){let u=this._hasStickyChanged;return this.resetStickyChanged(),u}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(u){u&&(this._name=u,this.cssClassFriendlyName=u.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(u,r,A){if(u&1&&(xn(A,v5,5),xn(A,M5,5),xn(A,Hfe,5)),u&2){let o;er(o=tr())&&(r.cell=o.first),er(o=tr())&&(r.headerCell=o.first),er(o=tr())&&(r.footerCell=o.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Ju],stickyEnd:[2,"stickyEnd","stickyEnd",Ju]},features:[oi([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]}));let e=t;return e})(),QK=class{constructor(e,t){t.nativeElement.classList.add(...e._columnCssClassName)}},Vfe=(()=>{const t=class t extends QK{constructor(){super(Ie(Xl),Ie(dr))}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Lr]}));let e=t;return e})(),Jfe=(()=>{const t=class t extends QK{constructor(){var o;let u=Ie(Xl),r=Ie(dr);super(u,r);let A=(o=u._table)==null?void 0:o._getCellRole();A&&r.nativeElement.setAttribute("role",A)}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Lr]}));let e=t;return e})(),G6=class{constructor(){d(this,"tasks",[]);d(this,"endTasks",[])}},x5=new Jt("_COALESCED_STYLE_SCHEDULER"),RK=(()=>{const t=class t{constructor(){d(this,"_currentSchedule",null);d(this,"_ngZone",Ie(or))}schedule(u){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(u)}scheduleEnd(u){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(u)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new G6,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let u=this._currentSchedule;this._currentSchedule=new G6;for(let r of u.tasks)r();for(let r of u.endTasks)r()}this._currentSchedule=null})))}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵprov",Wt({token:t,factory:t.ɵfac}));let e=t;return e})(),Sg=(()=>{const t=class t{constructor(){d(this,"template",Ie(di));d(this,"_differs",Ie(zs));d(this,"columns");d(this,"_columnsDiffer")}ngOnChanges(u){if(!this._columnsDiffer){let r=u.columns&&u.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(u){return this instanceof Gh?u.headerCell.template:this instanceof SK?u.footerCell.template:u.cell.template}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,features:[ua]}));let e=t;return e})(),Gh=(()=>{const t=class t extends Sg{constructor(){super(Ie(di),Ie(zs));d(this,"_table",Ie(Ha,{optional:!0}));d(this,"_hasStickyChanged",!1);d(this,"_sticky",!1)}get sticky(){return this._sticky}set sticky(r){r!==this._sticky&&(this._sticky=r,this._hasStickyChanged=!0)}ngOnChanges(r){super.ngOnChanges(r)}hasStickyChanged(){let r=this._hasStickyChanged;return this.resetStickyChanged(),r}resetStickyChanged(){this._hasStickyChanged=!1}};d(t,"ɵfac",function(r){return new(r||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Ju]},features:[Lr,ua]}));let e=t;return e})(),SK=(()=>{const t=class t extends Sg{constructor(){super(Ie(di),Ie(zs));d(this,"_table",Ie(Ha,{optional:!0}));d(this,"_hasStickyChanged",!1);d(this,"_sticky",!1)}get sticky(){return this._sticky}set sticky(r){r!==this._sticky&&(this._sticky=r,this._hasStickyChanged=!0)}ngOnChanges(r){super.ngOnChanges(r)}hasStickyChanged(){let r=this._hasStickyChanged;return this.resetStickyChanged(),r}resetStickyChanged(){this._hasStickyChanged=!1}};d(t,"ɵfac",function(r){return new(r||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Ju]},features:[Lr,ua]}));let e=t;return e})(),b5=(()=>{const t=class t extends Sg{constructor(){super(Ie(di),Ie(zs));d(this,"_table",Ie(Ha,{optional:!0}));d(this,"when")}};d(t,"ɵfac",function(r){return new(r||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Lr]}));let e=t;return e})(),ys=(()=>{const t=class t{constructor(){d(this,"_viewContainer",Ie(Hi));d(this,"cells");d(this,"context");t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}};d(t,"mostRecentCellOutlet",null),d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","cdkCellOutlet",""]]}));let e=t;return e})(),O6=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Zu({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(u,r){u&1&&Pi(0,0)},dependencies:[ys],encapsulation:2}));let e=t;return e})(),j6=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Zu({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(u,r){u&1&&Pi(0,0)},dependencies:[ys],encapsulation:2}));let e=t;return e})(),Kfe=(()=>{const t=class t{constructor(){d(this,"templateRef",Ie(di));d(this,"_contentClassName","cdk-no-data-row")}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}));let e=t;return e})(),L6=["top","bottom","left","right"],Zfe=class{constructor(e,t,n,u,r=!0,A=!0,o,l){d(this,"_isNativeHtmlTable");d(this,"_stickCellCss");d(this,"direction");d(this,"_coalescedStyleScheduler");d(this,"_isBrowser");d(this,"_needsPositionStickyOnElement");d(this,"_positionListener");d(this,"_tableInjector");d(this,"_elemSizeCache",new WeakMap);d(this,"_resizeObserver",globalThis!=null&&globalThis.ResizeObserver?new globalThis.ResizeObserver(e=>this._updateCachedSizes(e)):null);d(this,"_updatedStickyColumnsParamsToReplay",[]);d(this,"_stickyColumnsReplayTimeout",null);d(this,"_cachedCellWidths",[]);d(this,"_borderCellCss");d(this,"_destroyed",!1);this._isNativeHtmlTable=e,this._stickCellCss=t,this.direction=n,this._coalescedStyleScheduler=u,this._isBrowser=r,this._needsPositionStickyOnElement=A,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 n=[];for(let u of e)u.nodeType===u.ELEMENT_NODE&&n.push(u,...Array.from(u.children));this._afterNextRender({write:()=>{for(let u of n)this._removeStickyStyle(u,t)}})}updateStickyColumns(e,t,n,u=!0,r=!0){var f,m;if(!e.length||!this._isBrowser||!(t.some(p=>p)||n.some(p=>p))){(f=this._positionListener)==null||f.stickyColumnsUpdated({sizes:[]}),(m=this._positionListener)==null||m.stickyEndColumnsUpdated({sizes:[]});return}let A=e[0],o=A.children.length,l=this.direction==="rtl",i=l?"right":"left",h=l?"left":"right",s=t.lastIndexOf(!0),c=n.indexOf(!0),E,B,g;r&&this._updateStickyColumnReplayQueue({rows:[...e],stickyStartStates:[...t],stickyEndStates:[...n]}),this._afterNextRender({earlyRead:()=>{E=this._getCellWidths(A,u),B=this._getStickyStartColumnPositions(E,t),g=this._getStickyEndColumnPositions(E,n)},write:()=>{for(let p of e)for(let C=0;C<o;C++){let F=p.children[C];t[C]&&this._addStickyStyle(F,i,B[C],C===s),n[C]&&this._addStickyStyle(F,h,g[C],C===c)}this._positionListener&&E.some(p=>!!p)&&(this._positionListener.stickyColumnsUpdated({sizes:s===-1?[]:E.slice(0,s+1).map((p,C)=>t[C]?p:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:c===-1?[]:E.slice(c).map((p,C)=>n[C+c]?p:null).reverse()}))}})}stickRows(e,t,n){if(!this._isBrowser)return;let u=n==="bottom"?e.slice().reverse():e,r=n==="bottom"?t.slice().reverse():t,A=[],o=[],l=[];this._afterNextRender({earlyRead:()=>{for(let i=0,h=0;i<u.length;i++){if(!r[i])continue;A[i]=h;let s=u[i];l[i]=this._isNativeHtmlTable?Array.from(s.children):[s];let c=this._retrieveElementSize(s).height;h+=c,o[i]=c}},write:()=>{var h,s;let i=r.lastIndexOf(!0);for(let c=0;c<u.length;c++){if(!r[c])continue;let E=A[c],B=c===i;for(let g of l[c])this._addStickyStyle(g,n,E,B)}n==="top"?(h=this._positionListener)==null||h.stickyHeaderRowsUpdated({sizes:o,offsets:A,elements:l}):(s=this._positionListener)==null||s.stickyFooterRowsUpdated({sizes:o,offsets:A,elements:l})}})}updateStickyFooterContainer(e,t){this._isNativeHtmlTable&&this._afterNextRender({write:()=>{let n=e.querySelector("tfoot");n&&(t.some(u=>!u)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"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 n of t)e.style[n]="",e.classList.remove(this._borderCellCss[n]);L6.some(n=>t.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}}_addStickyStyle(e,t,n,u){e.classList.add(this._stickCellCss),u&&e.classList.add(this._borderCellCss[t]),e.style[t]=`${n}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},n=0;for(let u of L6)e.style[u]&&(n+=t[u]);return n?`${n}`:""}_getCellWidths(e,t=!0){if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],u=e.children;for(let r=0;r<u.length;r++){let A=u[r];n.push(this._retrieveElementSize(A).width)}return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(e,t){let n=[],u=0;for(let r=0;r<e.length;r++)t[r]&&(n[r]=u,u+=e[r]);return n}_getStickyEndColumnPositions(e,t){let n=[],u=0;for(let r=e.length;r>0;r--)t[r]&&(n[r]=u,u+=e[r]);return n}_retrieveElementSize(e){let t=this._elemSizeCache.get(e);if(t)return t;let n=e.getBoundingClientRect(),u={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(e,u),this._resizeObserver.observe(e,{box:"border-box"})),u}_updateStickyColumnReplayQueue(e){this._removeFromStickyColumnReplayQueue(e.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(e)}_removeFromStickyColumnReplayQueue(e){let t=new Set(e);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(u=>!t.has(u));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(e){var n,u;let t=!1;for(let r of e){let A=(n=r.borderBoxSize)!=null&&n.length?{width:r.borderBoxSize[0].inlineSize,height:r.borderBoxSize[0].blockSize}:{width:r.contentRect.width,height:r.contentRect.height};A.width!==((u=this._elemSizeCache.get(r.target))==null?void 0:u.width)&&Xfe(r.target)&&(t=!0),this._elemSizeCache.set(r.target,A)}t&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let r of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(r.rows,r.stickyStartStates,r.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}_afterNextRender(e){this._tableInjector?gs(e,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{var t;(t=e.earlyRead)==null||t.call(e),e.write()})}};function Xfe(e){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(t=>e.classList.contains(t))}var I5=new Jt("CDK_SPL"),kK=(()=>{const t=class t{constructor(){d(this,"viewContainer",Ie(Hi));d(this,"elementRef",Ie(dr));let u=Ie(Ha);u._rowOutlet=this,u._outletAssigned()}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","rowOutlet",""]]}));let e=t;return e})(),TK=(()=>{const t=class t{constructor(){d(this,"viewContainer",Ie(Hi));d(this,"elementRef",Ie(dr));let u=Ie(Ha);u._headerRowOutlet=this,u._outletAssigned()}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","headerRowOutlet",""]]}));let e=t;return e})(),YK=(()=>{const t=class t{constructor(){d(this,"viewContainer",Ie(Hi));d(this,"elementRef",Ie(dr));let u=Ie(Ha);u._footerRowOutlet=this,u._outletAssigned()}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","footerRowOutlet",""]]}));let e=t;return e})(),zK=(()=>{const t=class t{constructor(){d(this,"viewContainer",Ie(Hi));d(this,"elementRef",Ie(dr));let u=Ie(Ha);u._noDataRowOutlet=this,u._outletAssigned()}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵdir",Pu({type:t,selectors:[["","noDataRowOutlet",""]]}));let e=t;return e})(),W6=(()=>{const t=class t{constructor(){d(this,"_differs",Ie(zs));d(this,"_changeDetectorRef",Ie(Ei));d(this,"_elementRef",Ie(dr));d(this,"_dir",Ie(sA,{optional:!0}));d(this,"_platform",Ie(ri));d(this,"_viewRepeater",Ie(A5));d(this,"_coalescedStyleScheduler",Ie(x5));d(this,"_viewportRuler",Ie(Rd));d(this,"_stickyPositioningListener",Ie(I5,{optional:!0,skipSelf:!0}));d(this,"_document",Ie(kr));d(this,"_data");d(this,"_onDestroy",new xu);d(this,"_renderRows");d(this,"_renderChangeSubscription");d(this,"_columnDefsByName",new Map);d(this,"_rowDefs");d(this,"_headerRowDefs");d(this,"_footerRowDefs");d(this,"_dataDiffer");d(this,"_defaultRowDef");d(this,"_customColumnDefs",new Set);d(this,"_customRowDefs",new Set);d(this,"_customHeaderRowDefs",new Set);d(this,"_customFooterRowDefs",new Set);d(this,"_customNoDataRow");d(this,"_headerRowDefChanged",!0);d(this,"_footerRowDefChanged",!0);d(this,"_stickyColumnStylesNeedReset",!0);d(this,"_forceRecalculateCellWidths",!0);d(this,"_cachedRenderRowsMap",new Map);d(this,"_isNativeHtmlTable");d(this,"_stickyStyler");d(this,"stickyCssClass","cdk-table-sticky");d(this,"needsPositionStickyOnElement",!0);d(this,"_isServer");d(this,"_isShowingNoDataRow",!1);d(this,"_hasAllOutlets",!1);d(this,"_hasInitialized",!1);d(this,"_cellRoleInternal");d(this,"_trackByFn");d(this,"_dataSource");d(this,"_multiTemplateDataRows",!1);d(this,"_fixedLayout",!1);d(this,"contentChanged",new Nu);d(this,"viewChange",new RA({start:0,end:Number.MAX_VALUE}));d(this,"_rowOutlet");d(this,"_headerRowOutlet");d(this,"_footerRowOutlet");d(this,"_noDataRowOutlet");d(this,"_contentColumnDefs");d(this,"_contentRowDefs");d(this,"_contentHeaderRowDefs");d(this,"_contentFooterRowDefs");d(this,"_noDataRow");d(this,"_injector",Ie($r));Ie(new sd("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((u,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r)}_getCellRole(){if(this._cellRoleInternal===void 0){let u=this._elementRef.nativeElement.getAttribute("role");return u==="grid"||u==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(u){this._trackByFn=u}get dataSource(){return this._dataSource}set dataSource(u){this._dataSource!==u&&this._switchDataSource(u)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(u){this._multiTemplateDataRows=u,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(u){this._fixedLayout=u,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Fn(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){var u,r,A,o;(u=this._stickyStyler)==null||u.destroy(),[(r=this._rowOutlet)==null?void 0:r.viewContainer,(A=this._headerRowOutlet)==null?void 0:A.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(),_E(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let u=this._dataDiffer.diff(this._renderRows);if(!u){this._updateNoDataRow(),this.contentChanged.next();return}let r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(u,r,(A,o,l)=>this._getEmbeddedViewArgs(A.item,l),A=>A.item.data,A=>{A.operation===Ml.INSERTED&&A.context&&this._renderCellTemplateForItem(A.record.item.rowDef,A.context)}),this._updateRowIndexContext(),u.forEachIdentityChange(A=>{let o=r.get(A.currentIndex);o.context.$implicit=A.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(u){this._customColumnDefs.add(u)}removeColumnDef(u){this._customColumnDefs.delete(u)}addRowDef(u){this._customRowDefs.add(u)}removeRowDef(u){this._customRowDefs.delete(u)}addHeaderRowDef(u){this._customHeaderRowDefs.add(u),this._headerRowDefChanged=!0}removeHeaderRowDef(u){this._customHeaderRowDefs.delete(u),this._headerRowDefChanged=!0}addFooterRowDef(u){this._customFooterRowDefs.add(u),this._footerRowDefChanged=!0}removeFooterRowDef(u){this._customFooterRowDefs.delete(u),this._footerRowDefChanged=!0}setNoDataRow(u){this._customNoDataRow=u}updateStickyHeaderRowStyles(){let u=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let A=H6(this._headerRowOutlet,"thead");A&&(A.style.display=u.length?"":"none")}let r=this._headerRowDefs.map(A=>A.sticky);this._stickyStyler.clearStickyPositioning(u,["top"]),this._stickyStyler.stickRows(u,r,"top"),this._headerRowDefs.forEach(A=>A.resetStickyChanged())}updateStickyFooterRowStyles(){let u=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let A=H6(this._footerRowOutlet,"tfoot");A&&(A.style.display=u.length?"":"none")}let r=this._footerRowDefs.map(A=>A.sticky);this._stickyStyler.clearStickyPositioning(u,["bottom"]),this._stickyStyler.stickRows(u,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(A=>A.resetStickyChanged())}updateStickyColumnStyles(){let u=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),A=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...u,...r,...A],["left","right"]),this._stickyColumnStylesNeedReset=!1),u.forEach((o,l)=>{this._addStickyColumnStyles([o],this._headerRowDefs[l])}),this._rowDefs.forEach(o=>{let l=[];for(let i=0;i<r.length;i++)this._renderRows[i].rowDef===o&&l.push(r[i]);this._addStickyColumnStyles(l,o)}),A.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 u=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||u,this._forceRecalculateCellWidths=u,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 u=[],r=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return u;for(let A=0;A<this._data.length;A++){let o=this._data[A],l=this._getRenderRowsForData(o,A,r.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap);for(let i=0;i<l.length;i++){let h=l[i],s=this._cachedRenderRowsMap.get(h.data);s.has(h.rowDef)?s.get(h.rowDef).push(h):s.set(h.rowDef,[h]),u.push(h)}}return u}_getRenderRowsForData(u,r,A){return this._getRowDefs(u,r).map(o=>{let l=A&&A.has(o)?A.get(o):[];if(l.length){let i=l.shift();return i.dataIndex=r,i}else return{data:u,rowDef:o,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),R0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(u=>{this._columnDefsByName.has(u.name),this._columnDefsByName.set(u.name,u)})}_cacheRowDefs(){this._headerRowDefs=R0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=R0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=R0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let u=this._rowDefs.filter(r=>!r.when);!this.multiTemplateDataRows&&u.length>1,this._defaultRowDef=u[0]}_renderUpdatedColumns(){let u=(l,i)=>{let h=!!i.getColumnsDiff();return l||h},r=this._rowDefs.reduce(u,!1);r&&this._forceRenderDataRows();let A=this._headerRowDefs.reduce(u,!1);A&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(u,!1);return o&&this._forceRenderFooterRows(),r||A||o}_switchDataSource(u){this._data=[],_E(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),u||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=u}_observeRenderChanges(){if(!this.dataSource)return;let u;_E(this.dataSource)?u=this.dataSource.connect(this):es(this.dataSource)?u=this.dataSource:Array.isArray(this.dataSource)&&(u=qr(this.dataSource)),this._renderChangeSubscription=u.pipe(Fn(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((u,r)=>this._renderRow(this._headerRowOutlet,u,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((u,r)=>this._renderRow(this._footerRowOutlet,u,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(u,r){let A=Array.from((r==null?void 0:r.columns)||[]).map(i=>this._columnDefsByName.get(i)),o=A.map(i=>i.sticky),l=A.map(i=>i.stickyEnd);this._stickyStyler.updateStickyColumns(u,o,l,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(u){let r=[];for(let A=0;A<u.viewContainer.length;A++){let o=u.viewContainer.get(A);r.push(o.rootNodes[0])}return r}_getRowDefs(u,r){if(this._rowDefs.length==1)return[this._rowDefs[0]];let A=[];if(this.multiTemplateDataRows)A=this._rowDefs.filter(o=>!o.when||o.when(r,u));else{let o=this._rowDefs.find(l=>l.when&&l.when(r,u))||this._defaultRowDef;o&&A.push(o)}return A.length,A}_getEmbeddedViewArgs(u,r){let A=u.rowDef,o={$implicit:u.data};return{templateRef:A.template,context:o,index:r}}_renderRow(u,r,A,o={}){let l=u.viewContainer.createEmbeddedView(r.template,o,A);return this._renderCellTemplateForItem(r,o),l}_renderCellTemplateForItem(u,r){for(let A of this._getCellTemplates(u))ys.mostRecentCellOutlet&&ys.mostRecentCellOutlet._viewContainer.createEmbeddedView(A,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let u=this._rowOutlet.viewContainer;for(let r=0,A=u.length;r<A;r++){let o=u.get(r).context;o.count=A,o.first=r===0,o.last=r===A-1,o.even=r%2===0,o.odd=!o.even,this.multiTemplateDataRows?(o.dataIndex=this._renderRows[r].dataIndex,o.renderIndex=r):o.index=this._renderRows[r].dataIndex}}_getCellTemplates(u){return!u||!u.columns?[]:Array.from(u.columns,r=>{let A=this._columnDefsByName.get(r);return u.extractCellTemplate(A)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let u=(r,A)=>r||A.hasStickyChanged();this._headerRowDefs.reduce(u,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(u,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(u,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let u=this._dir?this._dir.value:"ltr";this._stickyStyler=new Zfe(this._isNativeHtmlTable,this.stickyCssClass,u,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:qr()).pipe(Fn(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(u){return u.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){let u=this._customNoDataRow||this._noDataRow;if(!u)return;let r=this._rowOutlet.viewContainer.length===0;if(r===this._isShowingNoDataRow)return;let A=this._noDataRowOutlet.viewContainer;if(r){let o=A.createEmbeddedView(u.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(u._contentClassName))}else A.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵcmp",Zu({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(u,r,A){if(u&1&&(xn(A,Kfe,5),xn(A,Xl,5),xn(A,b5,5),xn(A,Gh,5),xn(A,SK,5)),u&2){let o;er(o=tr())&&(r._noDataRow=o.first),er(o=tr())&&(r._contentColumnDefs=o),er(o=tr())&&(r._contentRowDefs=o),er(o=tr())&&(r._contentHeaderRowDefs=o),er(o=tr())&&(r._contentFooterRowDefs=o)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(u,r){u&2&&xr("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Ju],fixedLayout:[2,"fixedLayout","fixedLayout",Ju]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[oi([{provide:Ha,useExisting:t},{provide:A5,useClass:A4},{provide:x5,useClass:RK},{provide:I5,useValue:null}])],ngContentSelectors:Ofe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(u,r){u&1&&(Ai(Gfe),vr(0),vr(1,1),Eu(2,jfe,1,0)(3,Lfe,7,0)(4,Wfe,4,0)),u&2&&(It(2),Qu(r._isServer?2:-1),It(),Qu(r._isNativeHtmlTable?3:4))},dependencies:[TK,kK,zK,YK],styles:[`.cdk-table-fixed-layout{table-layout:fixed}
|
|
310
310
|
`],encapsulation:2}));let e=t;return e})();function R0(e,t){return e.concat(Array.from(t))}function H6(e,t){let n=t.toUpperCase(),u=e.viewContainer.element.nativeElement;for(;u;){let r=u.nodeType===1?u.nodeName:null;if(r===n)return u;if(r==="TABLE")break;u=u.parentNode}return null}var qfe=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({imports:[o5]}));let e=t;return e})(),$fe=[[["caption"]],[["colgroup"],["col"]],"*"],e6e=["caption","colgroup, col","*"];function t6e(e,t){e&1&&vr(0,2)}function u6e(e,t){e&1&&(Qt(0,"thead",0),Pi(1,1),St(),Qt(2,"tbody",2),Pi(3,3)(4,4),St(),Qt(5,"tfoot",0),Pi(6,5),St())}function r6e(e,t){e&1&&Pi(0,1)(1,3)(2,4)(3,5)}var n6e=(()=>{const t=class t extends W6{constructor(){super(...arguments);d(this,"stickyCssClass","mat-mdc-table-sticky");d(this,"needsPositionStickyOnElement",!1)}};d(t,"ɵfac",(()=>{let r;return function(A){return(r||(r=sn(t)))(A||t)}})()),d(t,"ɵcmp",Zu({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(r,A){r&2&&xr("mdc-table-fixed-layout",A.fixedLayout)},exportAs:["matTable"],features:[oi([{provide:W6,useExisting:t},{provide:Ha,useExisting:t},{provide:x5,useClass:RK},{provide:A5,useClass:A4},{provide:I5,useValue:null}]),Lr],ngContentSelectors:e6e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,A){r&1&&(Ai($fe),vr(0),vr(1,1),Eu(2,t6e,1,0)(3,u6e,7,0)(4,r6e,4,0)),r&2&&(It(2),Qu(A._isServer?2:-1),It(),Qu(A._isNativeHtmlTable?3:4))},dependencies:[TK,kK,zK,YK],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}
|
|
311
|
-
`],encapsulation:2}));let e=t;return e})(),i6e=(()=>{const t=class t extends v5{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matCellDef",""]],features:[oi([{provide:v5,useExisting:t}]),Lr]}));let e=t;return e})(),a6e=(()=>{const t=class t extends M5{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matHeaderCellDef",""]],features:[oi([{provide:M5,useExisting:t}]),Lr]}));let e=t;return e})(),A6e=(()=>{const t=class t extends Xl{get name(){return this._name}set name(u){this._setNameInput(u)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[oi([{provide:Xl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Lr]}));let e=t;return e})(),o6e=(()=>{const t=class t extends Vfe{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Lr]}));let e=t;return e})(),s6e=(()=>{const t=class t extends Jfe{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Lr]}));let e=t;return e})(),l6e=(()=>{const t=class t extends Gh{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Ju]},features:[oi([{provide:Gh,useExisting:t}]),Lr]}));let e=t;return e})(),c6e=(()=>{const t=class t extends b5{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[oi([{provide:b5,useExisting:t}]),Lr]}));let e=t;return e})(),h6e=(()=>{const t=class t extends O6{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵcmp",Zu({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:[oi([{provide:O6,useExisting:t}]),Lr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(u,r){u&1&&Pi(0,0)},dependencies:[ys],encapsulation:2}));let e=t;return e})(),d6e=(()=>{const t=class t extends j6{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵcmp",Zu({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[oi([{provide:j6,useExisting:t}]),Lr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(u,r){u&1&&Pi(0,0)},dependencies:[ys],encapsulation:2}));let e=t;return e})(),E6e=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({imports:[yn,qfe,yn]}));let e=t;return e})(),B6e=9007199254740991,g6e=class extends n0e{constructor(t=[]){super();d(this,"_data");d(this,"_renderData",new RA([]));d(this,"_filter",new RA(""));d(this,"_internalPageChanges",new xu);d(this,"_renderChangesSubscription",null);d(this,"filteredData");d(this,"_sort");d(this,"_paginator");d(this,"sortingDataAccessor",(t,n)=>{let u=t[n];if(C9(u)){let r=Number(u);return r<B6e?r:u}return u});d(this,"sortData",(t,n)=>{let u=n.active,r=n.direction;return!u||r==""?t:t.sort((A,o)=>{let l=this.sortingDataAccessor(A,u),i=this.sortingDataAccessor(o,u),h=typeof l,s=typeof i;h!==s&&(h==="number"&&(l+=""),s==="number"&&(i+=""));let c=0;return l!=null&&i!=null?l>i?c=1:l<i&&(c=-1):l!=null?c=1:i!=null&&(c=-1),c*(r=="asc"?1:-1)})});d(this,"filterPredicate",(t,n)=>{let u=n.trim().toLowerCase();return Object.values(t).some(r=>`${r}`.toLowerCase().includes(u))});this._data=new RA(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?da(this._sort.sortChange,this._sort.initialized):qr(null),n=this._paginator?da(this._paginator.page,this._internalPageChanges,this._paginator.initialized):qr(null),u=this._data,r=ts([u,this._filter]).pipe(jr(([i])=>this._filterData(i))),A=ts([r,t]).pipe(jr(([i])=>this._orderData(i))),o=ts([A,n]).pipe(jr(([i])=>this._pageData(i)));(l=this._renderChangesSubscription)==null||l.unsubscribe(),this._renderChangesSubscription=o.subscribe(i=>this._renderData.next(i))}_filterData(t){return this.filteredData=this.filter==null||this.filter===""?t:t.filter(n=>this.filterPredicate(n,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 n=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(n,n+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{let n=this.paginator;if(n&&(n.length=t,n.pageIndex>0)){let u=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,u);r!==n.pageIndex&&(n.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;(t=this._renderChangesSubscription)==null||t.unsubscribe(),this._renderChangesSubscription=null}},f6e=["*"],p6e=(e,t,n,u,r)=>({"custom-content":e,circle:t,progress:n,"progress-dark":u,pulse:r});function m6e(e,t){e&1&&vr(0)}function C6e(e,t){if(e&1&&(Qt(0,"div",0),Eu(1,m6e,1,0),St()),e&2){let n=tu(),u=R2(0),r=R2(1);Du("ngClass",Aoe(5,p6e,u==="custom-content",u==="circle",r==="progress",r==="progress-dark",r==="pulse"))("ngStyle",n.styles()),zr("aria-label",n.ariaLabel())("aria-valuetext",n.loadingText()),It(),Qu(u==="custom-content"?1:-1)}}var NK=new Jt("ngx-skeleton-loader.config"),_K=(()=>{var t;const n=class n{constructor(){R8(this,t);var r,A,o,l,i,h;S8(this,t,Ie(NK,{optional:!0})),this.count=Sn(((r=$a(this,t))==null?void 0:r.count)||1,{transform:Na}),this.loadingText=Sn(((A=$a(this,t))==null?void 0:A.loadingText)||"Loading..."),this.appearance=Sn(((o=$a(this,t))==null?void 0:o.appearance)||"line"),this.animation=Sn(((l=$a(this,t))==null?void 0:l.animation)||"progress"),this.ariaLabel=Sn(((i=$a(this,t))==null?void 0:i.ariaLabel)||"loading"),this.theme=Sn(((h=$a(this,t))==null?void 0:h.theme)||null),this.items=Gi(()=>{let s=this.count()||1;return this.appearance()==="custom-content"&&xoe(),[...Array(s)].map((c,E)=>E)}),this.styles=Gi(()=>{var c,E,B;let s=this.theme();return(E=(c=$a(this,t))==null?void 0:c.theme)!=null&&E.extendsFromRoot?ru(ru({},(B=$a(this,t))==null?void 0:B.theme),s):s})}};t=new WeakMap,n.ɵfac=function(r){return new(r||n)},n.ɵcmp=Zu({type:n,selectors:[["ngx-skeleton-loader"]],inputs:{count:[1,"count"],loadingText:[1,"loadingText"],appearance:[1,"appearance"],animation:[1,"animation"],ariaLabel:[1,"ariaLabel"],theme:[1,"theme"]},ngContentSelectors:f6e,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(r,A){r&1&&(Ai(),jB(0)(1),vo(2,C6e,2,11,"div",0,GB)),r&2&&(Q2(A.appearance()),It(),Q2(A.animation()),It(),Mo(A.items()))},dependencies:[JB,Tse],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=n;return e})(),UK=(()=>{const t=class t{static forRoot(u){return{ngModule:t,providers:[{provide:NK,useValue:u}]}}};t.ɵfac=function(u){return new(u||t)},t.ɵmod=rn({type:t}),t.ɵinj=un({imports:[JC]});let e=t;return e})(),F6e=()=>({height:"47px",margin:"0px"});function D6e(e,t){if(e&1){let n=Zn();Qt(0,"th",22)(1,"mat-checkbox",23),Ku("click",function(u){wr(n);let r=tu();return yr(u?r.onSelectAllItems.emit():null)}),St()()}if(e&2){let n=tu();It(),Du("checked",n.selection.hasValue()&&n.isAllSelected)("indeterminate",n.selection.hasValue()&&!n.isAllSelected)("disabled",n.dataSource.data.length<=0)}}function w6e(e,t){if(e&1){let n=Zn();Qt(0,"mat-checkbox",26),Ku("click",function(u){return wr(n),yr(u.stopPropagation())})("change",function(u){wr(n);let r=tu().$implicit,A=tu();return yr(u?A.onSelectItem.emit(r):null)}),St()}if(e&2){let n=tu().$implicit,u=tu();Du("checked",u.selection.isSelected(n))}}function y6e(e,t){if(e&1&&(Qt(0,"td",24),Eu(1,w6e,1,1,"mat-checkbox",25),pu(2,"canDisplayPrescription"),St()),e&2){let n=t.$implicit;It(),Qu(Ru(2,1,n)?1:-1)}}function v6e(e,t){e&1&&(Qt(0,"th",27),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.validityDate")))}function M6e(e,t){if(e&1&&(Qt(0,"mat-chip",28),Fu(1),pu(2,"date"),St()),e&2){let n=tu();Du("disableRipple",!0),It(),Sr(" ",Fd(2,2,n,"dd/MM/yyyy")," ")}}function x6e(e,t){if(e&1&&(Fu(0),pu(1,"date")),e&2){let n=tu();Sr(" ",Fd(1,1,n,"dd/MM/yyyy")," ")}}function b6e(e,t){e&1&&(Eu(0,M6e,3,5,"mat-chip",28),pu(1,"expiresWithin2Weeks"),Eu(2,x6e,2,4)),e&2&&Qu(Ru(1,1,t)?0:2)}function I6e(e,t){if(e&1&&(Qt(0,"td",24),Eu(1,b6e,3,3),St()),e&2){let n,u=t.$implicit;It(),Qu((n=u.validityDate)?1:-1,n)}}function Q6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.medication")))}function R6e(e,t){if(e&1&&(Qt(0,"div",29),Fu(1),pu(2,"translateValue"),pu(3,"firstLetterUppercase"),St()),e&2){let n=tu(2).$implicit;It(),Sr(" ",Ru(3,3,Ru(2,1,n.name))," ")}}function S6e(e,t){if(e&1&&(Qt(0,"div",29),Fu(1),pu(2,"ingredientLabel"),St()),e&2){let n=t.$implicit;It(),Sr(" ",Ru(2,1,n)," ")}}function k6e(e,t){if(e&1&&(vo(0,S6e,3,3,"div",29,Cd),pu(2,"slice")),e&2){let n=tu(2).$implicit;Mo(Dd(2,0,n.ingredients,0,2))}}function T6e(e,t){if(e&1&&Eu(0,R6e,4,5,"div",29)(1,k6e,3,4),e&2){let n=tu().$implicit;Qu(n.name?0:1)}}function Y6e(e,t){if(e&1&&(Qt(0,"div",29)(1,"strong"),Fu(2),pu(3,"medicationInformation"),pu(4,"firstLetterUppercase"),St()(),Eu(5,T6e,2,1)),e&2){let n=t.$implicit;It(2),on(Ru(4,4,Ru(3,2,n))),It(3),Qu((n.identifier==null?null:n.identifier.type)==="compound"?5:-1)}}function z6e(e,t){if(e&1&&(Qt(0,"td",24),vo(1,Y6e,6,6,null,null,Cd),pu(3,"slice"),St()),e&2){let n=t.$implicit;It(),Mo(Dd(3,0,n.medications,0,2))}}function N6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.prescriber")))}function _6e(e,t){if(e&1&&(Qt(0,"td",24),Fu(1),pu(2,"fullname"),St()),e&2){let n=t.$implicit;It(),on(Ru(2,1,n.practitioner))}}function U6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.reservation.title")))}function P6e(e,t){if(e&1&&(Qt(0,"td",24),Fu(1),pu(2,"translate"),St()),e&2){let n=t.$implicit;It(),Sr(" ",Ru(2,1,"prescriptionList.table.reservation."+(n.reservation?"yes":"no"))," ")}}function G6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.visibility.title")))}function O6e(e,t){if(e&1&&(Qt(0,"div",30),_u(1,"mat-icon",31),Fu(2),pu(3,"translate"),St()),e&2){let n=tu().$implicit;It(),Du("fontIcon",n.visibilityPharmacy?"visibility_off":"visibility"),It(),Sr(" ",Ru(3,2,"prescriptionList.table.visibility.pharmacy")," ")}}function j6e(e,t){if(e&1&&(Qt(0,"td",24),Eu(1,O6e,4,4,"div",30),Qt(2,"div",30),_u(3,"mat-icon",31),Fu(4),pu(5,"translate"),St()()),e&2){let n=t.$implicit,u=tu();It(),Qu(u.isProfessional?-1:1),It(2),Du("fontIcon",n.visibilityPrescriber===u.visibilityPrescriber.OPEN?"visibility":"visibility_off"),It(),Sr(" ",Ru(5,3,"prescriptionList.table.visibility.prescriber")," ")}}function L6e(e,t){e&1&&_u(0,"th",22)}function W6e(e,t){if(e&1){let n=Zn();Qt(0,"td",24)(1,"a",32),Ku("click",function(){let u=wr(n).$implicit,r=tu();return yr(r.clickDetails.emit(u.ridCode))}),Fu(2),pu(3,"translate"),St()()}e&2&&(It(2),Sr(" ",Ru(3,1,"prescriptionList.table.open-detail")," "))}function H6e(e,t){if(e&1&&(Qt(0,"td",33),Fu(1),pu(2,"getPrescriptionErrorCode"),pu(3,"translate"),_u(4,"br"),Fu(5),St()),e&2){let n=t.$implicit,u=tu();zr("colspan",u.columns().length-2),It(),Sr(" ",Ru(3,5,"commons.errors."+Ru(2,3,n))," "),It(4),Sr(" ( ",n.ridCode," ) ")}}function V6e(e,t){e&1&&_u(0,"tr",34)}function J6e(e,t){if(e&1&&_u(0,"tr",35),e&2){let n=tu();Du("hidden",n.isLoading)}}function K6e(e,t){if(e&1&&_u(0,"tr",35),e&2){let n=tu();Du("hidden",n.isLoading)}}function Z6e(e,t){if(e&1&&_u(0,"ngx-skeleton-loader",20),e&2){let n=tu();Du("count",n.dataSource.data.length<=0?3:n.dataSource.data.length>n.data.pagination.pageSize?n.data.pagination.pageSize:n.dataSource.data.length)("theme",zC(2,F6e))}}function X6e(e,t){e&1&&(Qt(0,"p",21),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.noPrescriptions")))}var q6e=(()=>{const t=class t{constructor(){this.destroyRef=Ie(Oi),this.mandateService=Ie(MF),this.clickDetails=new Nu,this.clickPrint=new Nu,this.changeSort=new Nu,this.onSelectItem=new Nu,this.onSelectAllItems=new Nu,this.isPmhUser=f2e(this.mandateService.isPmhUser()),this.visibilityPrescriber=Yi,this.errorColumns=["selection","error","action"],this.columns=Gi(()=>{let u=["selection","validityDate","medicationName","prescriber"];return this.isProfessional||u.push("reservation"),this.isPmhUser()||u.push("visibility"),u.push("action"),u}),this.dataSource=new g6e([]),this.canDisplayPrescription=(u,r)=>Zl(r),this.canNotDisplayPrescription=(u,r)=>!Zl(r)}ngOnChanges(u){u.data&&this.data&&(this.dataSource.data=this.data.items)}ngAfterViewInit(){this.sort.sortChange.pipe(xc(this.destroyRef)).subscribe(u=>{this.changeSort.emit({page:0,order:u.direction})})}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-desktop"]],viewQuery:function(u,r){if(u&1&&kn(y5,5),u&2){let A;er(A=tr())&&(r.sort=A.first)}},inputs:{isLoading:"isLoading",data:"data",selection:"selection",isAllSelected:"isAllSelected",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",clickPrint:"clickPrint",changeSort:"changeSort",onSelectItem:"onSelectItem",onSelectAllItems:"onSelectAllItems"},features:[ua],decls:39,vars:20,consts:[[1,"options"],[1,"arrow"],[1,"selected-text"],["mat-flat-button","",1,"print-button",3,"click","disabled"],["fontIcon","print",1,"material-icons"],["mat-table","","matSort","","matSortDisableClear","","multiTemplateDataRows","",3,"dataSource","matSortActive","matSortDirection"],["matColumnDef","selection"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","validityDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","medicationName"],["matColumnDef","prescriber"],["matColumnDef","reservation"],["matColumnDef","visibility"],["matColumnDef","action"],["matColumnDef","error"],["mat-cell","","class","error-text",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"hidden",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["appearance","line",3,"count","theme"],[1,"no-content"],["mat-header-cell",""],[3,"click","checked","indeterminate","disabled"],["mat-cell",""],[3,"checked"],[3,"click","change","checked"],["mat-header-cell","","mat-sort-header",""],[1,"mh-orange","mh-no-overlay",3,"disableRipple"],[1,"textOverflow"],[1,"visibility"],[3,"fontIcon"],["mat-button","",3,"click"],["mat-cell","",1,"error-text"],["mat-header-row",""],["mat-row","",3,"hidden"]],template:function(u,r){u&1&&(Qt(0,"div",0),_u(1,"div",1),Qt(2,"div",2),Fu(3),pu(4,"translate"),St(),Qt(5,"button",3),Ku("click",function(){return r.clickPrint.emit(r.selection.selected)}),_u(6,"mat-icon",4),Fu(7),pu(8,"translate"),St()(),Qt(9,"table",5),pu(10,"translate"),xa(11,6),Eu(12,D6e,2,3,"th",7)(13,y6e,3,3,"td",8),ba(),xa(14,9),Eu(15,v6e,3,3,"th",10)(16,I6e,2,1,"td",8),ba(),xa(17,11),Eu(18,Q6e,3,3,"th",7)(19,z6e,4,4,"td",8),ba(),xa(20,12),Eu(21,N6e,3,3,"th",7)(22,_6e,3,3,"td",8),ba(),xa(23,13),Eu(24,U6e,3,3,"th",7)(25,P6e,3,3,"td",8),ba(),xa(26,14),Eu(27,G6e,3,3,"th",7)(28,j6e,6,5,"td",8),ba(),xa(29,15),Eu(30,L6e,1,0,"th",7)(31,W6e,4,3,"td",8),ba(),xa(32,16),Eu(33,H6e,6,7,"td",17),ba(),Eu(34,V6e,1,0,"tr",18)(35,J6e,1,1,"tr",19)(36,K6e,1,1,"tr",19),St(),Eu(37,Z6e,1,3,"ngx-skeleton-loader",20)(38,X6e,3,3,"p",21)),u&2&&(It(3),OB("",Ru(4,14,"prescriptionList.table.selection.selected"),": ",r.selection.selected.length,""),It(2),Du("disabled",r.selection.selected.length<=0),It(2),Sr(" ",Ru(8,16,"prescriptionList.table.selection.print")," "),It(2),Du("dataSource",r.dataSource)("matSortActive",r.data.pagination.order)("matSortDirection",r.data.pagination.order),zr("aria-label",Ru(10,18,"prescriptionList.all-prescriptions-title")),It(25),Du("matHeaderRowDef",r.columns()),It(),Du("matRowDefColumns",r.columns())("matRowDefWhen",r.canDisplayPrescription),It(),Du("matRowDefColumns",r.errorColumns)("matRowDefWhen",r.canNotDisplayPrescription),It(),Qu(r.isLoading?37:r.dataSource.data.length<=0?38:-1))},dependencies:[BK,E6e,n6e,a6e,l6e,A6e,i6e,c6e,o6e,s6e,h6e,d6e,bo,vde,yc,Pfe,y5,Ufe,bK,bc,Rg,Gs,UA,UK,_K,VC,cK,dK,CK,MK,hK,HC,mK,lK,FK],styles:[".options[_ngcontent-%COMP%]{display:flex}.options[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{clip-path:polygon(30% 26%,87% 26%,87% 27%,31% 27%,31% 84%,30% 84%);background-color:gray;width:50px;margin-left:16px;height:50px}.options[_ngcontent-%COMP%] .selected-text[_ngcontent-%COMP%]{line-height:27px;font-weight:700}.options[_ngcontent-%COMP%] .print-button[_ngcontent-%COMP%]{margin-left:20px}.options[_ngcontent-%COMP%] .print-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1rem;height:1rem;width:1rem;margin-right:8px}.error-text[_ngcontent-%COMP%]{color:#c41c0d}.visibility[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0});let e=t;return e})();function $6e(e,t){if(e&1&&(Qt(0,"mat-chip",6),Fu(1),pu(2,"date"),St()),e&2){let n=tu();Du("disableRipple",!0),It(),Sr(" ",Fd(2,2,n,"dd/MM/yyyy")," ")}}function epe(e,t){if(e&1&&(Qt(0,"span"),Fu(1),pu(2,"date"),St()),e&2){let n=tu();It(),Sr(" ",Fd(2,1,n,"dd/MM/yyyy")," ")}}function tpe(e,t){e&1&&(Eu(0,$6e,3,5,"mat-chip",6),pu(1,"expiresWithin2Weeks"),Eu(2,epe,3,4,"span")),e&2&&Qu(Ru(1,1,t)?0:2)}function upe(e,t){if(e&1){let n=Zn();Qt(0,"div",4)(1,"span")(2,"mat-checkbox",5),Ku("click",function(u){return wr(n),yr(u.stopPropagation())})("change",function(u){wr(n);let r=tu();return yr(u?r.onSelectItem.emit():null)}),St(),Qt(3,"span"),Fu(4),pu(5,"fullname"),St()(),Eu(6,tpe,3,3),St(),_u(7,"mat-divider")}if(e&2){let n,u=tu();It(2),Du("checked",u.isSelected),It(2),on(Ru(5,3,u.item.practitioner)),It(2),Qu((n=u.item.validityDate)?6:-1,n)}}function rpe(e,t){if(e&1&&(Qt(0,"div",7),Fu(1),pu(2,"translateValue"),pu(3,"firstLetterUppercase"),St()),e&2){let n=tu(2).$implicit;It(),Sr(" ",Ru(3,3,Ru(2,1,n.name))," ")}}function npe(e,t){if(e&1&&(Qt(0,"div",7),Fu(1),pu(2,"ingredientLabel"),St()),e&2){let n=t.$implicit;It(),Sr(" ",Ru(2,1,n)," ")}}function ipe(e,t){if(e&1&&(vo(0,npe,3,3,"div",7,Cd),pu(2,"slice")),e&2){let n=tu(2).$implicit;Mo(Dd(2,0,n.ingredients,0,2))}}function ape(e,t){if(e&1&&Eu(0,rpe,4,5,"div",7)(1,ipe,3,4),e&2){let n=tu().$implicit;Qu(n.name?0:1)}}function Ape(e,t){if(e&1&&(Qt(0,"ul")(1,"li")(2,"strong",7),Fu(3),pu(4,"medicationInformation"),pu(5,"firstLetterUppercase"),St()(),Eu(6,ape,2,1),St()),e&2){let n=t.$implicit;It(3),on(Ru(5,4,Ru(4,2,n))),It(3),Qu((n.identifier==null?null:n.identifier.type)==="compound"?6:-1)}}function ope(e,t){if(e&1&&(vo(0,Ape,7,6,"ul",null,Cd),pu(2,"slice")),e&2){let n=tu();Mo(Dd(2,0,n.item.medications,0,2))}}function spe(e,t){if(e&1&&(Qt(0,"ul",2)(1,"li"),Fu(2),pu(3,"getPrescriptionErrorCode"),pu(4,"translate"),_u(5,"br"),Fu(6),St()()),e&2){let n=tu();It(2),Sr(" ",Ru(4,4,"commons.errors."+Ru(3,2,n.item))," "),It(4),Sr(" ( ",n.item.ridCode," ) ")}}function lpe(e,t){if(e&1&&(Qt(0,"div",10),_u(1,"mat-icon",11),Fu(2),pu(3,"translate"),St()),e&2){let n=tu(3);It(),Du("fontIcon",n.item.visibilityPharmacy?"visibility_off":"visibility"),It(),Sr(" ",Ru(3,2,"prescriptionList.table.visibility.pharmacy")," ")}}function cpe(e,t){if(e&1&&(Qt(0,"span"),Eu(1,lpe,4,4,"div",10),Qt(2,"div",10),_u(3,"mat-icon",11),Fu(4),pu(5,"translate"),St()()),e&2){let n=tu(2);It(),Qu(n.isProfessional?-1:1),It(2),Du("fontIcon",n.item.visibilityPrescriber===n.visibilityPrescriber.OPEN?"visibility":"visibility_off"),It(),Sr(" ",Ru(5,3,"prescriptionList.table.visibility.prescriber")," ")}}function hpe(e,t){e&1&&(Qt(0,"div",10),_u(1,"mat-icon",12),Fu(2),pu(3,"translate"),St()),e&2&&(It(2),Sr(" ",Ru(3,1,"prescriptionList.table.reservation.reserved")," "))}function dpe(e,t){if(e&1&&(_u(0,"mat-divider"),Qt(1,"div",8),Eu(2,cpe,6,5,"span",9)(3,hpe,4,3,"div",10),St()),e&2){let n=tu();It(3),Qu(n.item.reservation&&!n.isProfessional?3:-1)}}var Epe=(()=>{const t=class t{constructor(){this.clickDetails=new Nu,this.onSelectItem=new Nu,this.visibilityPrescriber=Yi}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-card"]],inputs:{item:"item",isSelected:"isSelected",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",onSelectItem:"onSelectItem"},decls:13,vars:9,consts:[["role","button",1,"card__content",3,"click"],[1,"card__text"],[1,"error-text"],["aria-hidden","true","fontIcon","arrow_forward"],[1,"card__top"],[3,"click","change","checked"],[1,"mh-orange","mh-no-overlay",3,"disableRipple"],[1,"textOverflow"],[1,"card__bottom"],[4,"ifNotPmhUser"],[1,"visibility"],[3,"fontIcon"],["fontIcon","shopping_bag"]],template:function(u,r){u&1&&(Qt(0,"mat-card")(1,"mat-card-content"),Eu(2,upe,8,5),pu(3,"canDisplayPrescription"),Qt(4,"div",0),Ku("click",function(){return r.clickDetails.emit()}),Qt(5,"div",1),Eu(6,ope,3,4),pu(7,"canDisplayPrescription"),Eu(8,spe,7,6,"ul",2),St(),Qt(9,"span"),_u(10,"mat-icon",3),St()(),Eu(11,dpe,4,1),pu(12,"canDisplayPrescription"),St()()),u&2&&(It(2),Qu(Ru(3,3,r.item)?2:-1),It(4),Qu(Ru(7,5,r.item)?6:8),It(5),Qu(Ru(12,7,r.item)?11:-1))},dependencies:[BK,a2e,n2e,i2e,bo,Rg,Gs,bc,x2e,UA,dK,lK,cK,HC,CK,VC,MK,hK,mK,FK,mfe],styles:["mat-card[_ngcontent-%COMP%]{margin-bottom:10px}.card__top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;color:#8f8f8f}.card__text[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card__content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:0 8px}.card__content[_ngcontent-%COMP%] .error-text[_ngcontent-%COMP%]{color:#c41c0d}.card__content[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-inline:20px 0}.card__content[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] .ingredient[_ngcontent-%COMP%]{padding-left:16px}.card__bottom[_ngcontent-%COMP%]{padding-top:8px;display:flex;justify-content:space-between;align-items:end;color:#8f8f8f}.card__bottom[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1rem;height:1rem;width:1rem;margin-right:8px}.card__bottom[_ngcontent-%COMP%] .visibility[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0});let e=t;return e})();function Bpe(e,t){if(e&1){let n=Zn();Qt(0,"span",2),Fu(1),pu(2,"translate"),St(),Qt(3,"button",3),pu(4,"translate"),Ku("click",function(){wr(n);let u=tu();return yr(u.emitSortData(u.direction.descending))}),_u(5,"mat-icon",4),St()}if(e&2){let n=tu();It(),on(Ru(2,3,"commons.sortDropdown."+n.sortMode()+".asc")),It(2),Du("disabled",n.disabled()),zr("aria-label",Ru(4,5,"commons.sortDropdown.sorting-ascendant"))}}function gpe(e,t){if(e&1){let n=Zn();Qt(0,"span",2),Fu(1),pu(2,"translate"),St(),Qt(3,"button",3),pu(4,"translate"),Ku("click",function(){wr(n);let u=tu();return yr(u.emitSortData(u.direction.ascending))}),_u(5,"mat-icon",5),St()}if(e&2){let n=tu();It(),on(Ru(2,3,"commons.sortDropdown."+n.sortMode()+".desc")),It(2),Du("disabled",n.disabled()),zr("aria-label",Ru(4,5,"commons.sortDropdown.sorting-descendent"))}}var fpe=(()=>{const t=class t{constructor(){this.sortDirection=Nae.required(),this.sortMode=Sn.required(),this.disabled=Sn(!1),this.direction=Nd}emitSortData(u){this.sortDirection.set(u)}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-sort-toggler"]],inputs:{sortDirection:[1,"sortDirection"],sortMode:[1,"sortMode"],disabled:[1,"disabled"]},outputs:{sortDirection:"sortDirectionChange"},decls:6,vars:4,consts:[[1,"wrap"],[1,"prefix"],[1,"prefix","sort-value"],["mat-icon-button","",3,"click","disabled"],["fontIcon","swap_vert",1,"ascending"],["fontIcon","swap_vert"]],template:function(u,r){u&1&&(Qt(0,"div",0)(1,"span",1),Fu(2),pu(3,"translate"),St(),Eu(4,Bpe,6,7)(5,gpe,6,7),St()),u&2&&(It(2),Sr("",Ru(3,2,"commons.sortDropdown.sort"),":"),It(2),Qu(r.sortDirection()===r.direction.ascending?4:5))},dependencies:[bo,gg,Gs,UA],styles:[".wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.prefix[_ngcontent-%COMP%]{opacity:.6;margin-right:.25rem}.sort-value[_ngcontent-%COMP%]{margin-right:10px;white-space:nowrap}mat-icon.ascending[_ngcontent-%COMP%]{transform:scaleY(-1)}"]});let e=t;return e})(),PK=function(e){return e.expiration="expiration",e.alphabetical="alphabetical",e}(PK||{}),ppe=()=>({height:"47px",margin:"0px"});function mpe(e,t){if(e&1){let n=Zn();Qt(0,"vidis-prescriptions-card",9),Ku("clickDetails",function(){let u=wr(n).$implicit,r=tu();return yr(r.clickDetails.emit(u.ridCode))})("onSelectItem",function(){let u=wr(n).$implicit,r=tu();return yr(r.selection.toggle(u))}),St()}if(e&2){let n=t.$implicit,u=tu();Du("item",n)("isSelected",u.selection.isSelected(n))("isProfessional",u.isProfessional)}}function Cpe(e,t){if(e&1&&_u(0,"ngx-skeleton-loader",7),e&2){let n=tu();Du("count",(n.data==null||n.data.items==null?null:n.data.items.length)>0?(n.data==null||n.data.items==null?null:n.data.items.length)>(n.data==null||n.data.pagination==null?null:n.data.pagination.pageSize)?n.data.pagination.pageSize:n.data==null||n.data.items==null?null:n.data.items.length:3)("theme",zC(2,ppe))}}function Fpe(e,t){e&1&&(Qt(0,"p",8),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.noPrescriptions")))}var Dpe=(()=>{const t=class t{constructor(){this.clickDetails=new Nu,this.clickPrint=new Nu,this.changeSort=new Nu,this.onSelectItem=new Nu,this.onSelectAllItems=new Nu,this.visibilityPrescriber=Yi,this.SortMode=PK}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-mobile"]],inputs:{isLoading:"isLoading",data:"data",selection:"selection",isAllSelected:"isAllSelected",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",clickPrint:"clickPrint",changeSort:"changeSort",onSelectItem:"onSelectItem",onSelectAllItems:"onSelectAllItems"},decls:13,vars:11,consts:[[3,"sortDirectionChange","sortDirection","sortMode"],[1,"options"],[3,"click","checked","indeterminate","disabled"],[1,"selected-text"],["mat-icon-button","",1,"print-button",3,"click","disabled"],["fontIcon","print",1,"material-icons"],[3,"item","isSelected","isProfessional"],["appearance","line",3,"count","theme"],[1,"no-content"],[3,"clickDetails","onSelectItem","item","isSelected","isProfessional"]],template:function(u,r){u&1&&(Qt(0,"vidis-sort-toggler",0),Ku("sortDirectionChange",function(A){return r.changeSort.emit(A)}),St(),Qt(1,"div",1)(2,"span")(3,"mat-checkbox",2),Ku("click",function(A){return A?r.onSelectAllItems.emit():null}),St(),Qt(4,"span",3),Fu(5),pu(6,"translate"),St()(),Qt(7,"button",4),Ku("click",function(){return r.clickPrint.emit(r.selection.selected)}),_u(8,"mat-icon",5),St()(),vo(9,mpe,1,3,"vidis-prescriptions-card",6,GB),Eu(11,Cpe,1,3,"ngx-skeleton-loader",7)(12,Fpe,3,3,"p",8)),u&2&&(Du("sortDirection",r.data.pagination.order)("sortMode",r.SortMode.expiration),It(3),Du("checked",r.selection.hasValue()&&r.isAllSelected)("indeterminate",r.selection.hasValue()&&!r.isAllSelected)("disabled",(r.data==null||r.data.items==null?null:r.data.items.length)<=0),It(2),OB("",Ru(6,9,"prescriptionList.table.selection.selected")," : ",r.selection.selected.length,""),It(2),Du("disabled",r.selection.selected.length<=0),It(2),Mo(r.data.items),It(2),Qu(r.isLoading?11:(r.data==null||r.data.items==null?null:r.data.items.length)<=0?12:-1))},dependencies:[bo,gg,bK,bc,Rg,Gs,UA,UK,_K,Epe,fpe],styles:[".options[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-left:16px;margin-bottom:10px}.options[_ngcontent-%COMP%] .selected-text[_ngcontent-%COMP%]{font-weight:700}.options[_ngcontent-%COMP%] .print-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:auto;font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}"],changeDetection:0});let e=t;return e})();function wpe(e,t){e&1&&_u(0,"vidis-error-display",0)}var ype=(()=>{const t=class t{constructor(){this.clickDetails=new Nu,this.clickPrint=new Nu,this.changePagination=new Nu,this.selection=new o4(!0,[]),this.pageSizeOptions=[10,25,50]}get isAllSelected(){var A,o;let u=this.selection.selected.length,r=((o=(A=this.data)==null?void 0:A.items)==null?void 0:o.filter(Zl).length)||0;return u===r}onSelectAllItems(){if(this.isAllSelected){this.selection.clear();return}this.selection.select(...this.data.items.filter(Zl))}handlePageEvent(u){let r={page:u.pageIndex,pageSize:u.pageSize};this.changePagination.emit(r)}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-table"]],inputs:{isLoading:"isLoading",data:"data",hasHiddenPrescriptions:"hasHiddenPrescriptions",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",clickPrint:"clickPrint",changePagination:"changePagination"},decls:4,vars:16,consts:[["message","has-hidden-prescriptions",1,"vidis-error"],[3,"clickDetails","clickPrint","changeSort","onSelectItem","onSelectAllItems","isLoading","data","selection","isAllSelected","isProfessional"],["showFirstLastButtons","",3,"page","length","pageSize","pageIndex","pageSizeOptions","disabled"]],template:function(u,r){u&1&&(Eu(0,wpe,1,0,"vidis-error-display",0),Qt(1,"vidis-prescriptions-desktop",1),Ku("clickDetails",function(A){return r.clickDetails.emit(A)})("clickPrint",function(A){return r.clickPrint.emit(A)})("changeSort",function(A){return r.changePagination.emit(A)})("onSelectItem",function(A){return r.selection.toggle(A)})("onSelectAllItems",function(){return r.onSelectAllItems()}),St(),Qt(2,"vidis-prescriptions-mobile",1),Ku("clickDetails",function(A){return r.clickDetails.emit(A)})("clickPrint",function(A){return r.clickPrint.emit(A)})("changeSort",function(A){return r.changePagination.emit(A)})("onSelectItem",function(A){return r.selection.toggle(A)})("onSelectAllItems",function(){return r.onSelectAllItems()}),St(),Qt(3,"mat-paginator",2),Ku("page",function(A){return r.handlePageEvent(A)}),St()),u&2&&(Qu(r.hasHiddenPrescriptions?0:-1),It(),Du("isLoading",r.isLoading)("data",r.data)("selection",r.selection)("isAllSelected",r.isAllSelected)("isProfessional",r.isProfessional),It(),Du("isLoading",r.isLoading)("data",r.data)("selection",r.selection)("isAllSelected",r.isAllSelected)("isProfessional",r.isProfessional),It(),Du("length",r.data.totalItems)("pageSize",r.data.pagination.pageSize)("pageIndex",r.data.pagination.page)("pageSizeOptions",r.pageSizeOptions)("disabled",r.data.totalItems<=0))},dependencies:[zde,_4,Vle,q6e,Dpe,b2e],styles:["@media only screen and (max-width: 960px){vidis-prescriptions-desktop[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 960px){vidis-prescriptions-mobile[_ngcontent-%COMP%]{display:none}}.vidis-error[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0});let e=t;return e})();function vpe(e,t){e&1&&(Qt(0,"div"),Fu(1,"Component not properly initialized!"),St())}function Mpe(e,t){if(e&1&&_u(0,"vidis-status-message",0),e&2){let n=tu();Du("error",n.error)}}function xpe(e,t){if(e&1){let n=Zn();Qt(0,"vidis-prescriptions-table",2),Ku("clickDetails",function(u){wr(n);let r=tu(3);return yr(r.onSelectPrescription.emit(u))})("clickPrint",function(u){wr(n);let r=tu(3);return yr(r.print(u))})("changePagination",function(u){wr(n);let r=tu(3);return yr(r.changePagination(u))}),St()}if(e&2){let n=tu(),u=tu(2);Du("isLoading",n.status===u.loadingStatus.LOADING)("data",n==null?null:n.data)("hasHiddenPrescriptions",n==null?null:n.data.hasHiddenPrescriptions)("isProfessional",u.professional)}}function bpe(e,t){if(e&1&&Eu(0,Mpe,1,1,"vidis-status-message",0)(1,xpe,1,4,"vidis-prescriptions-table",1),e&2){let n=tu(2);Qu(t.status===n.loadingStatus.ERROR?0:1)}}function Ipe(e,t){if(e&1&&(Eu(0,bpe,2,1),pu(1,"async")),e&2){let n,u=tu();Qu((n=Ru(1,1,u.prescriptionsState$))?0:-1,n)}}var Qpe=(()=>{const t=class t extends ofe{constructor(){super(...arguments),this.pdfService=Ie(xfe),this.onSelectPrescription=new Nu,this.getTotalItems=new Nu,this.loadingStatus=Ui}fetchData(u){return An(this,null,function*(){return yield this.prescriptionService.fetchPrescription(u)})}print(u){return An(this,null,function*(){let r=yield this.pdfService.getBase64Pdf(u),A=this.pdfService.getFilename();this.onPrint.emit({title:A,content:r,mimeType:FF.BASE64})})}changePagination(u){this.prescriptionService.updatePagination(u)}injectService(){this.prescriptionService=this.injector.get(U6),this.prescriptionsState$=ts([this.prescriptionService.prescriptionsState$,this.prescriptionService.paginationState$]).pipe(jr(([u,r])=>Br(ru({},u),{data:Br(ru({},u.data),{pagination:r})}))),this.prescriptionService.prescriptionsState$.pipe(jr(u=>{var r;return((r=u==null?void 0:u.data)==null?void 0:r.totalItems)??0})).subscribe(u=>this.getTotalItems.emit(u)),this.prescriptionsState$.subscribe(u=>{this.checkError(u.error)})}};t.ɵfac=(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})(),t.ɵcmp=Zu({type:t,selectors:[["ng-component"]],outputs:{onSelectPrescription:"onSelectPrescription",getTotalItems:"getTotalItems"},features:[oi([U6,wK,yK,wfe]),Lr],decls:2,vars:1,consts:[[3,"error"],[3,"isLoading","data","hasHiddenPrescriptions","isProfessional"],[3,"clickDetails","clickPrint","changePagination","isLoading","data","hasHiddenPrescriptions","isProfessional"]],template:function(u,r){u&1&&Eu(0,vpe,2,0,"div")(1,Ipe,2,3),u&2&&Qu(r.isCorrectlySetup()?1:0)},dependencies:[ype,Pse,pfe],encapsulation:2,changeDetection:0});let e=t;return e})();ole({providers:[t2e]}).then(e=>{let t=ise(Qpe,{injector:e.injector});customElements.define("vidis-prescription-list",t)}).catch(e=>console.error(e));
|
|
311
|
+
`],encapsulation:2}));let e=t;return e})(),i6e=(()=>{const t=class t extends v5{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matCellDef",""]],features:[oi([{provide:v5,useExisting:t}]),Lr]}));let e=t;return e})(),a6e=(()=>{const t=class t extends M5{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matHeaderCellDef",""]],features:[oi([{provide:M5,useExisting:t}]),Lr]}));let e=t;return e})(),A6e=(()=>{const t=class t extends Xl{get name(){return this._name}set name(u){this._setNameInput(u)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[oi([{provide:Xl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Lr]}));let e=t;return e})(),o6e=(()=>{const t=class t extends Vfe{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Lr]}));let e=t;return e})(),s6e=(()=>{const t=class t extends Jfe{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Lr]}));let e=t;return e})(),l6e=(()=>{const t=class t extends Gh{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Ju]},features:[oi([{provide:Gh,useExisting:t}]),Lr]}));let e=t;return e})(),c6e=(()=>{const t=class t extends b5{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵdir",Pu({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[oi([{provide:b5,useExisting:t}]),Lr]}));let e=t;return e})(),h6e=(()=>{const t=class t extends O6{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵcmp",Zu({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:[oi([{provide:O6,useExisting:t}]),Lr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(u,r){u&1&&Pi(0,0)},dependencies:[ys],encapsulation:2}));let e=t;return e})(),d6e=(()=>{const t=class t extends j6{};d(t,"ɵfac",(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})()),d(t,"ɵcmp",Zu({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[oi([{provide:j6,useExisting:t}]),Lr],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(u,r){u&1&&Pi(0,0)},dependencies:[ys],encapsulation:2}));let e=t;return e})(),E6e=(()=>{const t=class t{};d(t,"ɵfac",function(u){return new(u||t)}),d(t,"ɵmod",rn({type:t})),d(t,"ɵinj",un({imports:[yn,qfe,yn]}));let e=t;return e})(),B6e=9007199254740991,g6e=class extends n0e{constructor(t=[]){super();d(this,"_data");d(this,"_renderData",new RA([]));d(this,"_filter",new RA(""));d(this,"_internalPageChanges",new xu);d(this,"_renderChangesSubscription",null);d(this,"filteredData");d(this,"_sort");d(this,"_paginator");d(this,"sortingDataAccessor",(t,n)=>{let u=t[n];if(C9(u)){let r=Number(u);return r<B6e?r:u}return u});d(this,"sortData",(t,n)=>{let u=n.active,r=n.direction;return!u||r==""?t:t.sort((A,o)=>{let l=this.sortingDataAccessor(A,u),i=this.sortingDataAccessor(o,u),h=typeof l,s=typeof i;h!==s&&(h==="number"&&(l+=""),s==="number"&&(i+=""));let c=0;return l!=null&&i!=null?l>i?c=1:l<i&&(c=-1):l!=null?c=1:i!=null&&(c=-1),c*(r=="asc"?1:-1)})});d(this,"filterPredicate",(t,n)=>{let u=n.trim().toLowerCase();return Object.values(t).some(r=>`${r}`.toLowerCase().includes(u))});this._data=new RA(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?da(this._sort.sortChange,this._sort.initialized):qr(null),n=this._paginator?da(this._paginator.page,this._internalPageChanges,this._paginator.initialized):qr(null),u=this._data,r=ts([u,this._filter]).pipe(jr(([i])=>this._filterData(i))),A=ts([r,t]).pipe(jr(([i])=>this._orderData(i))),o=ts([A,n]).pipe(jr(([i])=>this._pageData(i)));(l=this._renderChangesSubscription)==null||l.unsubscribe(),this._renderChangesSubscription=o.subscribe(i=>this._renderData.next(i))}_filterData(t){return this.filteredData=this.filter==null||this.filter===""?t:t.filter(n=>this.filterPredicate(n,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 n=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(n,n+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{let n=this.paginator;if(n&&(n.length=t,n.pageIndex>0)){let u=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,u);r!==n.pageIndex&&(n.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;(t=this._renderChangesSubscription)==null||t.unsubscribe(),this._renderChangesSubscription=null}},f6e=["*"],p6e=(e,t,n,u,r)=>({"custom-content":e,circle:t,progress:n,"progress-dark":u,pulse:r});function m6e(e,t){e&1&&vr(0)}function C6e(e,t){if(e&1&&(Qt(0,"div",0),Eu(1,m6e,1,0),St()),e&2){let n=tu(),u=R2(0),r=R2(1);Du("ngClass",Aoe(5,p6e,u==="custom-content",u==="circle",r==="progress",r==="progress-dark",r==="pulse"))("ngStyle",n.styles()),zr("aria-label",n.ariaLabel())("aria-valuetext",n.loadingText()),It(),Qu(u==="custom-content"?1:-1)}}var NK=new Jt("ngx-skeleton-loader.config"),_K=(()=>{var t;const n=class n{constructor(){R8(this,t);var r,A,o,l,i,h;S8(this,t,Ie(NK,{optional:!0})),this.count=Sn(((r=$a(this,t))==null?void 0:r.count)||1,{transform:Na}),this.loadingText=Sn(((A=$a(this,t))==null?void 0:A.loadingText)||"Loading..."),this.appearance=Sn(((o=$a(this,t))==null?void 0:o.appearance)||"line"),this.animation=Sn(((l=$a(this,t))==null?void 0:l.animation)||"progress"),this.ariaLabel=Sn(((i=$a(this,t))==null?void 0:i.ariaLabel)||"loading"),this.theme=Sn(((h=$a(this,t))==null?void 0:h.theme)||null),this.items=Gi(()=>{let s=this.count()||1;return this.appearance()==="custom-content"&&xoe(),[...Array(s)].map((c,E)=>E)}),this.styles=Gi(()=>{var c,E,B;let s=this.theme();return(E=(c=$a(this,t))==null?void 0:c.theme)!=null&&E.extendsFromRoot?ru(ru({},(B=$a(this,t))==null?void 0:B.theme),s):s})}};t=new WeakMap,n.ɵfac=function(r){return new(r||n)},n.ɵcmp=Zu({type:n,selectors:[["ngx-skeleton-loader"]],inputs:{count:[1,"count"],loadingText:[1,"loadingText"],appearance:[1,"appearance"],animation:[1,"animation"],ariaLabel:[1,"ariaLabel"],theme:[1,"theme"]},ngContentSelectors:f6e,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(r,A){r&1&&(Ai(),jB(0)(1),vo(2,C6e,2,11,"div",0,GB)),r&2&&(Q2(A.appearance()),It(),Q2(A.animation()),It(),Mo(A.items()))},dependencies:[JB,Tse],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=n;return e})(),UK=(()=>{const t=class t{static forRoot(u){return{ngModule:t,providers:[{provide:NK,useValue:u}]}}};t.ɵfac=function(u){return new(u||t)},t.ɵmod=rn({type:t}),t.ɵinj=un({imports:[JC]});let e=t;return e})(),F6e=()=>({height:"47px",margin:"0px"});function D6e(e,t){if(e&1){let n=Zn();Qt(0,"th",22)(1,"mat-checkbox",23),Ku("click",function(u){wr(n);let r=tu();return yr(u?r.onSelectAllItems.emit():null)}),St()()}if(e&2){let n=tu();It(),Du("checked",n.selection.hasValue()&&n.isAllSelected)("indeterminate",n.selection.hasValue()&&!n.isAllSelected)("disabled",n.dataSource.data.length<=0)}}function w6e(e,t){if(e&1){let n=Zn();Qt(0,"mat-checkbox",26),Ku("click",function(u){return wr(n),yr(u.stopPropagation())})("change",function(u){wr(n);let r=tu().$implicit,A=tu();return yr(u?A.onSelectItem.emit(r):null)}),St()}if(e&2){let n=tu().$implicit,u=tu();Du("checked",u.selection.isSelected(n))}}function y6e(e,t){if(e&1&&(Qt(0,"td",24),Eu(1,w6e,1,1,"mat-checkbox",25),pu(2,"canDisplayPrescription"),St()),e&2){let n=t.$implicit;It(),Qu(Ru(2,1,n)?1:-1)}}function v6e(e,t){e&1&&(Qt(0,"th",27),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.validityDate")))}function M6e(e,t){if(e&1&&(Qt(0,"mat-chip",28),Fu(1),pu(2,"date"),St()),e&2){let n=tu();Du("disableRipple",!0),It(),Sr(" ",Fd(2,2,n,"dd/MM/yyyy")," ")}}function x6e(e,t){if(e&1&&(Fu(0),pu(1,"date")),e&2){let n=tu();Sr(" ",Fd(1,1,n,"dd/MM/yyyy")," ")}}function b6e(e,t){e&1&&(Eu(0,M6e,3,5,"mat-chip",28),pu(1,"expiresWithin2Weeks"),Eu(2,x6e,2,4)),e&2&&Qu(Ru(1,1,t)?0:2)}function I6e(e,t){if(e&1&&(Qt(0,"td",24),Eu(1,b6e,3,3),St()),e&2){let n,u=t.$implicit;It(),Qu((n=u.validityDate)?1:-1,n)}}function Q6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.medication")))}function R6e(e,t){if(e&1&&(Qt(0,"div",29),Fu(1),pu(2,"translateValue"),pu(3,"firstLetterUppercase"),St()),e&2){let n=tu(2).$implicit;It(),Sr(" ",Ru(3,3,Ru(2,1,n.name))," ")}}function S6e(e,t){if(e&1&&(Qt(0,"div",29),Fu(1),pu(2,"ingredientLabel"),St()),e&2){let n=t.$implicit;It(),Sr(" ",Ru(2,1,n)," ")}}function k6e(e,t){if(e&1&&(vo(0,S6e,3,3,"div",29,Cd),pu(2,"slice")),e&2){let n=tu(2).$implicit;Mo(Dd(2,0,n.ingredients,0,2))}}function T6e(e,t){if(e&1&&Eu(0,R6e,4,5,"div",29)(1,k6e,3,4),e&2){let n=tu().$implicit;Qu(n.name?0:1)}}function Y6e(e,t){if(e&1&&(Qt(0,"div",29)(1,"strong"),Fu(2),pu(3,"medicationInformation"),pu(4,"firstLetterUppercase"),St()(),Eu(5,T6e,2,1)),e&2){let n=t.$implicit;It(2),on(Ru(4,4,Ru(3,2,n))),It(3),Qu((n.identifier==null?null:n.identifier.type)==="compound"?5:-1)}}function z6e(e,t){if(e&1&&(Qt(0,"td",24),vo(1,Y6e,6,6,null,null,Cd),pu(3,"slice"),St()),e&2){let n=t.$implicit;It(),Mo(Dd(3,0,n.medications,0,2))}}function N6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.prescriber")))}function _6e(e,t){if(e&1&&(Qt(0,"td",24),Fu(1),pu(2,"fullname"),St()),e&2){let n=t.$implicit;It(),on(Ru(2,1,n.practitioner))}}function U6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.reservation.title")))}function P6e(e,t){if(e&1&&(Qt(0,"td",24),Fu(1),pu(2,"translate"),St()),e&2){let n=t.$implicit;It(),Sr(" ",Ru(2,1,"prescriptionList.table.reservation."+(n.reservation?"yes":"no"))," ")}}function G6e(e,t){e&1&&(Qt(0,"th",22),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.table.visibility.title")))}function O6e(e,t){if(e&1&&(Qt(0,"div",30),_u(1,"mat-icon",31),Fu(2),pu(3,"translate"),St()),e&2){let n=tu().$implicit;It(),Du("fontIcon",n.visibilityPharmacy?"visibility_off":"visibility"),It(),Sr(" ",Ru(3,2,"prescriptionList.table.visibility.pharmacy")," ")}}function j6e(e,t){if(e&1&&(Qt(0,"td",24),Eu(1,O6e,4,4,"div",30),Qt(2,"div",30),_u(3,"mat-icon",31),Fu(4),pu(5,"translate"),St()()),e&2){let n=t.$implicit,u=tu();It(),Qu(u.isProfessional?-1:1),It(2),Du("fontIcon",n.visibilityPrescriber===u.visibilityPrescriber.OPEN?"visibility":"visibility_off"),It(),Sr(" ",Ru(5,3,"prescriptionList.table.visibility.prescriber")," ")}}function L6e(e,t){e&1&&_u(0,"th",22)}function W6e(e,t){if(e&1){let n=Zn();Qt(0,"td",24)(1,"a",32),Ku("click",function(){let u=wr(n).$implicit,r=tu();return yr(r.clickDetails.emit(u.ridCode))}),Fu(2),pu(3,"translate"),St()()}e&2&&(It(2),Sr(" ",Ru(3,1,"prescriptionList.table.open-detail")," "))}function H6e(e,t){if(e&1&&(Qt(0,"td",33),Fu(1),pu(2,"getPrescriptionErrorCode"),pu(3,"translate"),_u(4,"br"),Fu(5),St()),e&2){let n=t.$implicit,u=tu();zr("colspan",u.columns().length-2),It(),Sr(" ",Ru(3,5,"commons.errors."+Ru(2,3,n))," "),It(4),Sr(" ( ",n.ridCode," ) ")}}function V6e(e,t){e&1&&_u(0,"tr",34)}function J6e(e,t){if(e&1&&_u(0,"tr",35),e&2){let n=tu();Du("hidden",n.isLoading)}}function K6e(e,t){if(e&1&&_u(0,"tr",35),e&2){let n=tu();Du("hidden",n.isLoading)}}function Z6e(e,t){if(e&1&&_u(0,"ngx-skeleton-loader",20),e&2){let n=tu();Du("count",n.dataSource.data.length<=0?3:n.dataSource.data.length>n.data.pagination.pageSize?n.data.pagination.pageSize:n.dataSource.data.length)("theme",zC(2,F6e))}}function X6e(e,t){e&1&&(Qt(0,"p",21),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.noPrescriptions")))}var q6e=(()=>{const t=class t{constructor(){this.destroyRef=Ie(Oi),this.mandateService=Ie(MF),this.clickDetails=new Nu,this.clickPrint=new Nu,this.changeSort=new Nu,this.onSelectItem=new Nu,this.onSelectAllItems=new Nu,this.isPmhUser=f2e(this.mandateService.isPmhUser()),this.visibilityPrescriber=Yi,this.errorColumns=["selection","error","action"],this.columns=Gi(()=>{let u=["selection","validityDate","medicationName","prescriber"];return this.isProfessional||u.push("reservation"),this.isPmhUser()||u.push("visibility"),u.push("action"),u}),this.dataSource=new g6e([]),this.canDisplayPrescription=(u,r)=>Zl(r),this.canNotDisplayPrescription=(u,r)=>!Zl(r)}ngOnChanges(u){u.data&&this.data&&(this.dataSource.data=this.data.items)}ngAfterViewInit(){this.sort.sortChange.pipe(xc(this.destroyRef)).subscribe(u=>{this.changeSort.emit({page:0,order:u.direction})})}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-desktop"]],viewQuery:function(u,r){if(u&1&&kn(y5,5),u&2){let A;er(A=tr())&&(r.sort=A.first)}},inputs:{isLoading:"isLoading",data:"data",selection:"selection",isAllSelected:"isAllSelected",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",clickPrint:"clickPrint",changeSort:"changeSort",onSelectItem:"onSelectItem",onSelectAllItems:"onSelectAllItems"},features:[ua],decls:39,vars:19,consts:[[1,"options"],[1,"arrow"],[1,"selected-text"],["mat-flat-button","",1,"print-button",3,"click","disabled"],["fontIcon","print",1,"material-icons"],["mat-table","","matSort","","matSortActive","validityDate","matSortDisableClear","","multiTemplateDataRows","",3,"dataSource","matSortDirection"],["matColumnDef","selection"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","validityDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","medicationName"],["matColumnDef","prescriber"],["matColumnDef","reservation"],["matColumnDef","visibility"],["matColumnDef","action"],["matColumnDef","error"],["mat-cell","","class","error-text",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"hidden",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["appearance","line",3,"count","theme"],[1,"no-content"],["mat-header-cell",""],[3,"click","checked","indeterminate","disabled"],["mat-cell",""],[3,"checked"],[3,"click","change","checked"],["mat-header-cell","","mat-sort-header",""],[1,"mh-orange","mh-no-overlay",3,"disableRipple"],[1,"textOverflow"],[1,"visibility"],[3,"fontIcon"],["mat-button","",3,"click"],["mat-cell","",1,"error-text"],["mat-header-row",""],["mat-row","",3,"hidden"]],template:function(u,r){u&1&&(Qt(0,"div",0),_u(1,"div",1),Qt(2,"div",2),Fu(3),pu(4,"translate"),St(),Qt(5,"button",3),Ku("click",function(){return r.clickPrint.emit(r.selection.selected)}),_u(6,"mat-icon",4),Fu(7),pu(8,"translate"),St()(),Qt(9,"table",5),pu(10,"translate"),xa(11,6),Eu(12,D6e,2,3,"th",7)(13,y6e,3,3,"td",8),ba(),xa(14,9),Eu(15,v6e,3,3,"th",10)(16,I6e,2,1,"td",8),ba(),xa(17,11),Eu(18,Q6e,3,3,"th",7)(19,z6e,4,4,"td",8),ba(),xa(20,12),Eu(21,N6e,3,3,"th",7)(22,_6e,3,3,"td",8),ba(),xa(23,13),Eu(24,U6e,3,3,"th",7)(25,P6e,3,3,"td",8),ba(),xa(26,14),Eu(27,G6e,3,3,"th",7)(28,j6e,6,5,"td",8),ba(),xa(29,15),Eu(30,L6e,1,0,"th",7)(31,W6e,4,3,"td",8),ba(),xa(32,16),Eu(33,H6e,6,7,"td",17),ba(),Eu(34,V6e,1,0,"tr",18)(35,J6e,1,1,"tr",19)(36,K6e,1,1,"tr",19),St(),Eu(37,Z6e,1,3,"ngx-skeleton-loader",20)(38,X6e,3,3,"p",21)),u&2&&(It(3),OB("",Ru(4,13,"prescriptionList.table.selection.selected"),": ",r.selection.selected.length,""),It(2),Du("disabled",r.selection.selected.length<=0),It(2),Sr(" ",Ru(8,15,"prescriptionList.table.selection.print")," "),It(2),Du("dataSource",r.dataSource)("matSortDirection",r.data.pagination.order),zr("aria-label",Ru(10,17,"prescriptionList.all-prescriptions-title")),It(25),Du("matHeaderRowDef",r.columns()),It(),Du("matRowDefColumns",r.columns())("matRowDefWhen",r.canDisplayPrescription),It(),Du("matRowDefColumns",r.errorColumns)("matRowDefWhen",r.canNotDisplayPrescription),It(),Qu(r.isLoading?37:r.dataSource.data.length<=0?38:-1))},dependencies:[BK,E6e,n6e,a6e,l6e,A6e,i6e,c6e,o6e,s6e,h6e,d6e,bo,vde,yc,Pfe,y5,Ufe,bK,bc,Rg,Gs,UA,UK,_K,VC,cK,dK,CK,MK,hK,HC,mK,lK,FK],styles:[".options[_ngcontent-%COMP%]{display:flex}.options[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{clip-path:polygon(30% 26%,87% 26%,87% 27%,31% 27%,31% 84%,30% 84%);background-color:gray;width:50px;margin-left:16px;height:50px}.options[_ngcontent-%COMP%] .selected-text[_ngcontent-%COMP%]{line-height:27px;font-weight:700}.options[_ngcontent-%COMP%] .print-button[_ngcontent-%COMP%]{margin-left:20px}.options[_ngcontent-%COMP%] .print-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1rem;height:1rem;width:1rem;margin-right:8px}.error-text[_ngcontent-%COMP%]{color:#c41c0d}.visibility[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0});let e=t;return e})();function $6e(e,t){if(e&1&&(Qt(0,"mat-chip",6),Fu(1),pu(2,"date"),St()),e&2){let n=tu();Du("disableRipple",!0),It(),Sr(" ",Fd(2,2,n,"dd/MM/yyyy")," ")}}function epe(e,t){if(e&1&&(Qt(0,"span"),Fu(1),pu(2,"date"),St()),e&2){let n=tu();It(),Sr(" ",Fd(2,1,n,"dd/MM/yyyy")," ")}}function tpe(e,t){e&1&&(Eu(0,$6e,3,5,"mat-chip",6),pu(1,"expiresWithin2Weeks"),Eu(2,epe,3,4,"span")),e&2&&Qu(Ru(1,1,t)?0:2)}function upe(e,t){if(e&1){let n=Zn();Qt(0,"div",4)(1,"span")(2,"mat-checkbox",5),Ku("click",function(u){return wr(n),yr(u.stopPropagation())})("change",function(u){wr(n);let r=tu();return yr(u?r.onSelectItem.emit():null)}),St(),Qt(3,"span"),Fu(4),pu(5,"fullname"),St()(),Eu(6,tpe,3,3),St(),_u(7,"mat-divider")}if(e&2){let n,u=tu();It(2),Du("checked",u.isSelected),It(2),on(Ru(5,3,u.item.practitioner)),It(2),Qu((n=u.item.validityDate)?6:-1,n)}}function rpe(e,t){if(e&1&&(Qt(0,"div",7),Fu(1),pu(2,"translateValue"),pu(3,"firstLetterUppercase"),St()),e&2){let n=tu(2).$implicit;It(),Sr(" ",Ru(3,3,Ru(2,1,n.name))," ")}}function npe(e,t){if(e&1&&(Qt(0,"div",7),Fu(1),pu(2,"ingredientLabel"),St()),e&2){let n=t.$implicit;It(),Sr(" ",Ru(2,1,n)," ")}}function ipe(e,t){if(e&1&&(vo(0,npe,3,3,"div",7,Cd),pu(2,"slice")),e&2){let n=tu(2).$implicit;Mo(Dd(2,0,n.ingredients,0,2))}}function ape(e,t){if(e&1&&Eu(0,rpe,4,5,"div",7)(1,ipe,3,4),e&2){let n=tu().$implicit;Qu(n.name?0:1)}}function Ape(e,t){if(e&1&&(Qt(0,"ul")(1,"li")(2,"strong",7),Fu(3),pu(4,"medicationInformation"),pu(5,"firstLetterUppercase"),St()(),Eu(6,ape,2,1),St()),e&2){let n=t.$implicit;It(3),on(Ru(5,4,Ru(4,2,n))),It(3),Qu((n.identifier==null?null:n.identifier.type)==="compound"?6:-1)}}function ope(e,t){if(e&1&&(vo(0,Ape,7,6,"ul",null,Cd),pu(2,"slice")),e&2){let n=tu();Mo(Dd(2,0,n.item.medications,0,2))}}function spe(e,t){if(e&1&&(Qt(0,"ul",2)(1,"li"),Fu(2),pu(3,"getPrescriptionErrorCode"),pu(4,"translate"),_u(5,"br"),Fu(6),St()()),e&2){let n=tu();It(2),Sr(" ",Ru(4,4,"commons.errors."+Ru(3,2,n.item))," "),It(4),Sr(" ( ",n.item.ridCode," ) ")}}function lpe(e,t){if(e&1&&(Qt(0,"div",10),_u(1,"mat-icon",11),Fu(2),pu(3,"translate"),St()),e&2){let n=tu(3);It(),Du("fontIcon",n.item.visibilityPharmacy?"visibility_off":"visibility"),It(),Sr(" ",Ru(3,2,"prescriptionList.table.visibility.pharmacy")," ")}}function cpe(e,t){if(e&1&&(Qt(0,"span"),Eu(1,lpe,4,4,"div",10),Qt(2,"div",10),_u(3,"mat-icon",11),Fu(4),pu(5,"translate"),St()()),e&2){let n=tu(2);It(),Qu(n.isProfessional?-1:1),It(2),Du("fontIcon",n.item.visibilityPrescriber===n.visibilityPrescriber.OPEN?"visibility":"visibility_off"),It(),Sr(" ",Ru(5,3,"prescriptionList.table.visibility.prescriber")," ")}}function hpe(e,t){e&1&&(Qt(0,"div",10),_u(1,"mat-icon",12),Fu(2),pu(3,"translate"),St()),e&2&&(It(2),Sr(" ",Ru(3,1,"prescriptionList.table.reservation.reserved")," "))}function dpe(e,t){if(e&1&&(_u(0,"mat-divider"),Qt(1,"div",8),Eu(2,cpe,6,5,"span",9)(3,hpe,4,3,"div",10),St()),e&2){let n=tu();It(3),Qu(n.item.reservation&&!n.isProfessional?3:-1)}}var Epe=(()=>{const t=class t{constructor(){this.clickDetails=new Nu,this.onSelectItem=new Nu,this.visibilityPrescriber=Yi}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-card"]],inputs:{item:"item",isSelected:"isSelected",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",onSelectItem:"onSelectItem"},decls:13,vars:9,consts:[["role","button",1,"card__content",3,"click"],[1,"card__text"],[1,"error-text"],["aria-hidden","true","fontIcon","arrow_forward"],[1,"card__top"],[3,"click","change","checked"],[1,"mh-orange","mh-no-overlay",3,"disableRipple"],[1,"textOverflow"],[1,"card__bottom"],[4,"ifNotPmhUser"],[1,"visibility"],[3,"fontIcon"],["fontIcon","shopping_bag"]],template:function(u,r){u&1&&(Qt(0,"mat-card")(1,"mat-card-content"),Eu(2,upe,8,5),pu(3,"canDisplayPrescription"),Qt(4,"div",0),Ku("click",function(){return r.clickDetails.emit()}),Qt(5,"div",1),Eu(6,ope,3,4),pu(7,"canDisplayPrescription"),Eu(8,spe,7,6,"ul",2),St(),Qt(9,"span"),_u(10,"mat-icon",3),St()(),Eu(11,dpe,4,1),pu(12,"canDisplayPrescription"),St()()),u&2&&(It(2),Qu(Ru(3,3,r.item)?2:-1),It(4),Qu(Ru(7,5,r.item)?6:8),It(5),Qu(Ru(12,7,r.item)?11:-1))},dependencies:[BK,a2e,n2e,i2e,bo,Rg,Gs,bc,x2e,UA,dK,lK,cK,HC,CK,VC,MK,hK,mK,FK,mfe],styles:["mat-card[_ngcontent-%COMP%]{margin-bottom:10px}.card__top[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;color:#8f8f8f}.card__text[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card__content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:0 8px}.card__content[_ngcontent-%COMP%] .error-text[_ngcontent-%COMP%]{color:#c41c0d}.card__content[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-inline:20px 0}.card__content[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] .ingredient[_ngcontent-%COMP%]{padding-left:16px}.card__bottom[_ngcontent-%COMP%]{padding-top:8px;display:flex;justify-content:space-between;align-items:end;color:#8f8f8f}.card__bottom[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1rem;height:1rem;width:1rem;margin-right:8px}.card__bottom[_ngcontent-%COMP%] .visibility[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0});let e=t;return e})();function Bpe(e,t){if(e&1){let n=Zn();Qt(0,"span",2),Fu(1),pu(2,"translate"),St(),Qt(3,"button",3),pu(4,"translate"),Ku("click",function(){wr(n);let u=tu();return yr(u.emitSortData(u.direction.descending))}),_u(5,"mat-icon",4),St()}if(e&2){let n=tu();It(),on(Ru(2,3,"commons.sortDropdown."+n.sortMode()+".asc")),It(2),Du("disabled",n.disabled()),zr("aria-label",Ru(4,5,"commons.sortDropdown.sorting-ascendant"))}}function gpe(e,t){if(e&1){let n=Zn();Qt(0,"span",2),Fu(1),pu(2,"translate"),St(),Qt(3,"button",3),pu(4,"translate"),Ku("click",function(){wr(n);let u=tu();return yr(u.emitSortData(u.direction.ascending))}),_u(5,"mat-icon",5),St()}if(e&2){let n=tu();It(),on(Ru(2,3,"commons.sortDropdown."+n.sortMode()+".desc")),It(2),Du("disabled",n.disabled()),zr("aria-label",Ru(4,5,"commons.sortDropdown.sorting-descendent"))}}var fpe=(()=>{const t=class t{constructor(){this.sortDirection=Nae.required(),this.sortMode=Sn.required(),this.disabled=Sn(!1),this.direction=Nd}emitSortData(u){this.sortDirection.set(u)}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-sort-toggler"]],inputs:{sortDirection:[1,"sortDirection"],sortMode:[1,"sortMode"],disabled:[1,"disabled"]},outputs:{sortDirection:"sortDirectionChange"},decls:6,vars:4,consts:[[1,"wrap"],[1,"prefix"],[1,"prefix","sort-value"],["mat-icon-button","",3,"click","disabled"],["fontIcon","swap_vert",1,"ascending"],["fontIcon","swap_vert"]],template:function(u,r){u&1&&(Qt(0,"div",0)(1,"span",1),Fu(2),pu(3,"translate"),St(),Eu(4,Bpe,6,7)(5,gpe,6,7),St()),u&2&&(It(2),Sr("",Ru(3,2,"commons.sortDropdown.sort"),":"),It(2),Qu(r.sortDirection()===r.direction.ascending?4:5))},dependencies:[bo,gg,Gs,UA],styles:[".wrap[_ngcontent-%COMP%]{display:flex;justify-content:right;align-items:center;margin-bottom:10px}.prefix[_ngcontent-%COMP%]{opacity:.6;margin-right:.25rem}.sort-value[_ngcontent-%COMP%]{margin-right:10px;white-space:nowrap}mat-icon.ascending[_ngcontent-%COMP%]{transform:scaleX(-1)}"]});let e=t;return e})(),PK=function(e){return e.expiration="expiration",e.alphabetical="alphabetical",e}(PK||{}),ppe=()=>({height:"47px",margin:"0px"});function mpe(e,t){if(e&1){let n=Zn();Qt(0,"vidis-prescriptions-card",9),Ku("clickDetails",function(){let u=wr(n).$implicit,r=tu();return yr(r.clickDetails.emit(u.ridCode))})("onSelectItem",function(){let u=wr(n).$implicit,r=tu();return yr(r.selection.toggle(u))}),St()}if(e&2){let n=t.$implicit,u=tu();Du("item",n)("isSelected",u.selection.isSelected(n))("isProfessional",u.isProfessional)}}function Cpe(e,t){if(e&1&&_u(0,"ngx-skeleton-loader",7),e&2){let n=tu();Du("count",(n.data==null||n.data.items==null?null:n.data.items.length)>0?(n.data==null||n.data.items==null?null:n.data.items.length)>(n.data==null||n.data.pagination==null?null:n.data.pagination.pageSize)?n.data.pagination.pageSize:n.data==null||n.data.items==null?null:n.data.items.length:3)("theme",zC(2,ppe))}}function Fpe(e,t){e&1&&(Qt(0,"p",8),Fu(1),pu(2,"translate"),St()),e&2&&(It(),on(Ru(2,1,"prescriptionList.noPrescriptions")))}var Dpe=(()=>{const t=class t{constructor(){this.clickDetails=new Nu,this.clickPrint=new Nu,this.changeSort=new Nu,this.onSelectItem=new Nu,this.onSelectAllItems=new Nu,this.visibilityPrescriber=Yi,this.SortMode=PK}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-mobile"]],inputs:{isLoading:"isLoading",data:"data",selection:"selection",isAllSelected:"isAllSelected",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",clickPrint:"clickPrint",changeSort:"changeSort",onSelectItem:"onSelectItem",onSelectAllItems:"onSelectAllItems"},decls:13,vars:11,consts:[[3,"sortDirectionChange","sortDirection","sortMode"],[1,"options"],[3,"click","checked","indeterminate","disabled"],[1,"selected-text"],["mat-icon-button","",1,"print-button",3,"click","disabled"],["fontIcon","print",1,"material-icons"],[3,"item","isSelected","isProfessional"],["appearance","line",3,"count","theme"],[1,"no-content"],[3,"clickDetails","onSelectItem","item","isSelected","isProfessional"]],template:function(u,r){u&1&&(Qt(0,"vidis-sort-toggler",0),Ku("sortDirectionChange",function(A){return r.changeSort.emit({order:A})}),St(),Qt(1,"div",1)(2,"span")(3,"mat-checkbox",2),Ku("click",function(A){return A?r.onSelectAllItems.emit():null}),St(),Qt(4,"span",3),Fu(5),pu(6,"translate"),St()(),Qt(7,"button",4),Ku("click",function(){return r.clickPrint.emit(r.selection.selected)}),_u(8,"mat-icon",5),St()(),vo(9,mpe,1,3,"vidis-prescriptions-card",6,GB),Eu(11,Cpe,1,3,"ngx-skeleton-loader",7)(12,Fpe,3,3,"p",8)),u&2&&(Du("sortDirection",r.data.pagination.order)("sortMode",r.SortMode.expiration),It(3),Du("checked",r.selection.hasValue()&&r.isAllSelected)("indeterminate",r.selection.hasValue()&&!r.isAllSelected)("disabled",(r.data==null||r.data.items==null?null:r.data.items.length)<=0),It(2),OB("",Ru(6,9,"prescriptionList.table.selection.selected")," : ",r.selection.selected.length,""),It(2),Du("disabled",r.selection.selected.length<=0),It(2),Mo(r.data.items),It(2),Qu(r.isLoading?11:(r.data==null||r.data.items==null?null:r.data.items.length)<=0?12:-1))},dependencies:[bo,gg,bK,bc,Rg,Gs,UA,UK,_K,Epe,fpe],styles:[".options[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-left:16px;margin-bottom:10px}.options[_ngcontent-%COMP%] .selected-text[_ngcontent-%COMP%]{font-weight:700}.options[_ngcontent-%COMP%] .print-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:auto;font-size:1.5rem;line-height:1.5rem;height:1.5rem;width:1.5rem}"],changeDetection:0});let e=t;return e})();function wpe(e,t){e&1&&_u(0,"vidis-error-display",0)}var ype=(()=>{const t=class t{constructor(){this.clickDetails=new Nu,this.clickPrint=new Nu,this.changePagination=new Nu,this.selection=new o4(!0,[]),this.pageSizeOptions=[10,25,50]}get isAllSelected(){var A,o;let u=this.selection.selected.length,r=((o=(A=this.data)==null?void 0:A.items)==null?void 0:o.filter(Zl).length)||0;return u===r}onSelectAllItems(){if(this.isAllSelected){this.selection.clear();return}this.selection.select(...this.data.items.filter(Zl))}handlePageEvent(u){let r={page:u.pageIndex,pageSize:u.pageSize};this.changePagination.emit(r)}};t.ɵfac=function(u){return new(u||t)},t.ɵcmp=Zu({type:t,selectors:[["vidis-prescriptions-table"]],inputs:{isLoading:"isLoading",data:"data",hasHiddenPrescriptions:"hasHiddenPrescriptions",isProfessional:"isProfessional"},outputs:{clickDetails:"clickDetails",clickPrint:"clickPrint",changePagination:"changePagination"},decls:4,vars:16,consts:[["message","has-hidden-prescriptions",1,"vidis-error"],[3,"clickDetails","clickPrint","changeSort","onSelectItem","onSelectAllItems","isLoading","data","selection","isAllSelected","isProfessional"],["showFirstLastButtons","",3,"page","length","pageSize","pageIndex","pageSizeOptions","disabled"]],template:function(u,r){u&1&&(Eu(0,wpe,1,0,"vidis-error-display",0),Qt(1,"vidis-prescriptions-desktop",1),Ku("clickDetails",function(A){return r.clickDetails.emit(A)})("clickPrint",function(A){return r.clickPrint.emit(A)})("changeSort",function(A){return r.changePagination.emit(A)})("onSelectItem",function(A){return r.selection.toggle(A)})("onSelectAllItems",function(){return r.onSelectAllItems()}),St(),Qt(2,"vidis-prescriptions-mobile",1),Ku("clickDetails",function(A){return r.clickDetails.emit(A)})("clickPrint",function(A){return r.clickPrint.emit(A)})("changeSort",function(A){return r.changePagination.emit(A)})("onSelectItem",function(A){return r.selection.toggle(A)})("onSelectAllItems",function(){return r.onSelectAllItems()}),St(),Qt(3,"mat-paginator",2),Ku("page",function(A){return r.handlePageEvent(A)}),St()),u&2&&(Qu(r.hasHiddenPrescriptions?0:-1),It(),Du("isLoading",r.isLoading)("data",r.data)("selection",r.selection)("isAllSelected",r.isAllSelected)("isProfessional",r.isProfessional),It(),Du("isLoading",r.isLoading)("data",r.data)("selection",r.selection)("isAllSelected",r.isAllSelected)("isProfessional",r.isProfessional),It(),Du("length",r.data.totalItems)("pageSize",r.data.pagination.pageSize)("pageIndex",r.data.pagination.page)("pageSizeOptions",r.pageSizeOptions)("disabled",r.data.totalItems<=0))},dependencies:[zde,_4,Vle,q6e,Dpe,b2e],styles:["@media only screen and (max-width: 960px){vidis-prescriptions-desktop[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 960px){vidis-prescriptions-mobile[_ngcontent-%COMP%]{display:none}}.vidis-error[_ngcontent-%COMP%]{margin-bottom:10px}"],changeDetection:0});let e=t;return e})();function vpe(e,t){e&1&&(Qt(0,"div"),Fu(1,"Component not properly initialized!"),St())}function Mpe(e,t){if(e&1&&_u(0,"vidis-status-message",0),e&2){let n=tu();Du("error",n.error)}}function xpe(e,t){if(e&1){let n=Zn();Qt(0,"vidis-prescriptions-table",2),Ku("clickDetails",function(u){wr(n);let r=tu(3);return yr(r.onSelectPrescription.emit(u))})("clickPrint",function(u){wr(n);let r=tu(3);return yr(r.print(u))})("changePagination",function(u){wr(n);let r=tu(3);return yr(r.changePagination(u))}),St()}if(e&2){let n=tu(),u=tu(2);Du("isLoading",n.status===u.loadingStatus.LOADING)("data",n==null?null:n.data)("hasHiddenPrescriptions",n==null?null:n.data.hasHiddenPrescriptions)("isProfessional",u.professional)}}function bpe(e,t){if(e&1&&Eu(0,Mpe,1,1,"vidis-status-message",0)(1,xpe,1,4,"vidis-prescriptions-table",1),e&2){let n=tu(2);Qu(t.status===n.loadingStatus.ERROR?0:1)}}function Ipe(e,t){if(e&1&&(Eu(0,bpe,2,1),pu(1,"async")),e&2){let n,u=tu();Qu((n=Ru(1,1,u.prescriptionsState$))?0:-1,n)}}var Qpe=(()=>{const t=class t extends ofe{constructor(){super(...arguments),this.pdfService=Ie(xfe),this.onSelectPrescription=new Nu,this.getTotalItems=new Nu,this.loadingStatus=Ui}fetchData(u){return An(this,null,function*(){return yield this.prescriptionService.fetchPrescription(u)})}print(u){return An(this,null,function*(){let r=yield this.pdfService.getBase64Pdf(u),A=this.pdfService.getFilename();this.onPrint.emit({title:A,content:r,mimeType:FF.BASE64})})}changePagination(u){this.prescriptionService.updatePagination(u)}injectService(){this.prescriptionService=this.injector.get(U6),this.prescriptionsState$=ts([this.prescriptionService.prescriptionsState$,this.prescriptionService.paginationState$]).pipe(jr(([u,r])=>Br(ru({},u),{data:Br(ru({},u.data),{pagination:r})}))),this.prescriptionService.prescriptionsState$.pipe(jr(u=>{var r;return((r=u==null?void 0:u.data)==null?void 0:r.totalItems)??0})).subscribe(u=>this.getTotalItems.emit(u)),this.prescriptionsState$.subscribe(u=>{this.checkError(u.error)})}};t.ɵfac=(()=>{let u;return function(r){return(u||(u=sn(t)))(r||t)}})(),t.ɵcmp=Zu({type:t,selectors:[["ng-component"]],outputs:{onSelectPrescription:"onSelectPrescription",getTotalItems:"getTotalItems"},features:[oi([U6,wK,yK,wfe]),Lr],decls:2,vars:1,consts:[[3,"error"],[3,"isLoading","data","hasHiddenPrescriptions","isProfessional"],[3,"clickDetails","clickPrint","changePagination","isLoading","data","hasHiddenPrescriptions","isProfessional"]],template:function(u,r){u&1&&Eu(0,vpe,2,0,"div")(1,Ipe,2,3),u&2&&Qu(r.isCorrectlySetup()?1:0)},dependencies:[ype,Pse,pfe],encapsulation:2,changeDetection:0});let e=t;return e})();ole({providers:[t2e]}).then(e=>{let t=ise(Qpe,{injector:e.injector});customElements.define("vidis-prescription-list",t)}).catch(e=>console.error(e));
|
package/package.json
CHANGED
package/prescription-list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./assets/polyfills-CGYnV-49.js";import"./assets/main-
|
|
1
|
+
import"./assets/polyfills-CGYnV-49.js";import"./assets/main-CtFQw5Li.js";/* empty css */
|