@smals-belgium-shared/vidis-diarynote 3.4.1-snapshot.4 → 3.4.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.
@@ -51,7 +51,7 @@ ${t.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
51
51
  `],encapsulation:2,changeDetection:0}));let e=t;return e})(),eE=new $("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let e=S(Si);return()=>e.scrollStrategies.reposition()}});function vme(e){return()=>e.scrollStrategies.reposition()}var bme={provide:eE,deps:[Si],useFactory:vme},tE=(()=>{const t=class t{constructor(){o(this,"_elementRef",S(ze));o(this,"_animationsDisabled",S(Ui,{optional:!0})==="NoopAnimations");o(this,"_changeDetectorRef",S(Lt));o(this,"_globalModel",S(As));o(this,"_dateAdapter",S(Gi));o(this,"_ngZone",S(Ne));o(this,"_rangeSelectionStrategy",S(ZS,{optional:!0}));o(this,"_stateChanges");o(this,"_model");o(this,"_eventCleanups");o(this,"_animationFallback");o(this,"_calendar");o(this,"color");o(this,"datepicker");o(this,"comparisonStart");o(this,"comparisonEnd");o(this,"startDateAccessibleName");o(this,"endDateAccessibleName");o(this,"_isAbove");o(this,"_animationDone",new ce);o(this,"_isAnimating",!1);o(this,"_closeButtonText");o(this,"_closeButtonFocused");o(this,"_actionsPortal",null);o(this,"_dialogLabelId");o(this,"_handleAnimationEvent",i=>{let a=this._elementRef.nativeElement;i.target!==a||!i.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=i.type==="animationstart",a.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())});if(S(Vi).load(Tr),this._closeButtonText=S(Ro).closeCalendarLabel,!this._animationsDisabled){let i=this._elementRef.nativeElement,a=S(ra);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[a.listen(i,"animationstart",this._handleAnimationEvent),a.listen(i,"animationend",this._handleAnimationEvent),a.listen(i,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){var i,a;clearTimeout(this._animationFallback),(i=this._eventCleanups)==null||i.forEach(r=>r()),(a=this._stateChanges)==null||a.unsubscribe(),this._animationDone.complete()}_handleUserSelection(i){let a=this._model.selection,r=i.value,s=a instanceof Fa;if(s&&this._rangeSelectionStrategy){let l=this._rangeSelectionStrategy.selectionFinished(r,a,i.event);this._model.updateSelection(l,this)}else r&&(s||!this._dateAdapter.sameDate(r,a))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(i){this._model.updateSelection(i.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(i,a){this._model=i?this._globalModel.clone():this._globalModel,this._actionsPortal=i,a&&this._changeDetectorRef.detectChanges()}};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵcmp",Ce({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,a){if(i&1&&mt(Ip,5),i&2){let r;Re(r=Fe())&&(a._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,a){i&2&&(Sr(a.color?"mat-"+a.color:""),We("mat-datepicker-content-touch",a.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!a._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,a){if(i&1&&(I(0,"div",0)(1,"mat-calendar",1),de("yearSelected",function(r){return a.datepicker._selectYear(r)})("monthSelected",function(r){return a.datepicker._selectMonth(r)})("viewChanged",function(r){return a.datepicker._viewChanged(r)})("_userSelection",function(r){return a._handleUserSelection(r)})("_userDragDrop",function(r){return a._handleUserDragDrop(r)}),T(),ne(2,ome,0,0,"ng-template",2),I(3,"button",3),de("focus",function(){return a._closeButtonFocused=!0})("blur",function(){return a._closeButtonFocused=!1})("click",function(){return a.datepicker.close()}),B(4),T()()),i&2){let r;We("mat-datepicker-content-container-with-custom-header",a.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",a._actionsPortal),_e("aria-modal",!0)("aria-labelledby",(r=a._dialogLabelId)!==null&&r!==void 0?r:void 0),D(),Sr(a.datepicker.panelClass),W("id",a.datepicker.id)("startAt",a.datepicker.startAt)("startView",a.datepicker.startView)("minDate",a.datepicker._getMinDate())("maxDate",a.datepicker._getMaxDate())("dateFilter",a.datepicker._getDateFilter())("headerComponent",a.datepicker.calendarHeaderComponent)("selected",a._getSelected())("dateClass",a.datepicker.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName),D(),W("cdkPortalOutlet",a._actionsPortal),D(),We("cdk-visually-hidden",!a._closeButtonFocused),W("color",a.color||"primary"),D(),we(a._closeButtonText)}},dependencies:[soe,Ip,kr,xa],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}
52
52
  `],encapsulation:2,changeDetection:0}));let e=t;return e})(),Zb=(()=>{const t=class t{constructor(){o(this,"_overlay",S(Si));o(this,"_viewContainerRef",S(bn));o(this,"_dateAdapter",S(Gi,{optional:!0}));o(this,"_dir",S(qi,{optional:!0}));o(this,"_model",S(As));o(this,"_scrollStrategy",S(eE));o(this,"_inputStateChanges",ct.EMPTY);o(this,"_document",S(et));o(this,"calendarHeaderComponent");o(this,"_startAt");o(this,"startView","month");o(this,"_color");o(this,"touchUi",!1);o(this,"_disabled");o(this,"xPosition","start");o(this,"yPosition","below");o(this,"restoreFocus",!0);o(this,"yearSelected",new le);o(this,"monthSelected",new le);o(this,"viewChanged",new le(!0));o(this,"dateClass");o(this,"openedStream",new le);o(this,"closedStream",new le);o(this,"_panelClass");o(this,"_opened",!1);o(this,"id",S(wi).getId("mat-datepicker-"));o(this,"_overlayRef");o(this,"_componentRef");o(this,"_focusedElementBeforeOpen",null);o(this,"_backdropHarnessClass",`${this.id}-backdrop`);o(this,"_actionsPortal");o(this,"datepickerInput");o(this,"stateChanges",new ce);o(this,"_injector",S(lt));o(this,"_changeDetectorRef",S(Lt));this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(i){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(i){this._color=i}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(i){i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(i){this._panelClass=voe(i)}get opened(){return this._opened}set opened(i){i?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(i){let a=i.xPosition||i.yPosition;if(a&&!a.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof Ew&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(i){this._model.add(i)}_selectYear(i){this.yearSelected.emit(i)}_selectMonth(i){this.monthSelected.emit(i)}_viewChanged(i){this.viewChanged.emit(i)}registerInput(i){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=i,this._inputStateChanges=i.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(i){var a;this._actionsPortal,this._actionsPortal=i,(a=this._componentRef)==null||a.instance._assignActions(i,!0)}removeActions(i){var a;i===this._actionsPortal&&(this._actionsPortal=null,(a=this._componentRef)==null||a.instance._assignActions(null,!0))}open(){var i;this._opened||this.disabled||(i=this._componentRef)!=null&&i.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=to(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){var r;if(!this._opened||(r=this._componentRef)!=null&&r.instance._isAnimating)return;let i=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",a=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:s,location:l}=this._componentRef;s._animationDone.pipe(mi(1)).subscribe(()=>{let c=this._document.activeElement;i&&(!c||c===this._document.activeElement||l.nativeElement.contains(c))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),s._startExitAnimation()}i?setTimeout(a):a()}_applyPendingSelection(){var i,a;(a=(i=this._componentRef)==null?void 0:i.instance)==null||a._applyPendingSelection()}_forwardContentValues(i){i.datepicker=this,i.color=this.color,i._dialogLabelId=this.datepickerInput.getOverlayLabelId(),i._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let i=this.touchUi,a=new jn(tE,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new ol({positionStrategy:i?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[i?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:i?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${i?"dialog":"popup"}`}));this._getCloseStream(r).subscribe(s=>{s&&s.preventDefault(),this.close()}),r.keydownEvents().subscribe(s=>{let l=s.keyCode;(l===38||l===40||l===37||l===39||l===33||l===34)&&s.preventDefault()}),this._componentRef=r.attach(a),this._forwardContentValues(this._componentRef.instance),i||xr(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let i=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(i)}_setConnectedPositions(i){let a=this.xPosition==="end"?"end":"start",r=a==="start"?"end":"start",s=this.yPosition==="above"?"bottom":"top",l=s==="top"?"bottom":"top";return i.withPositions([{originX:a,originY:l,overlayX:a,overlayY:s},{originX:a,originY:s,overlayX:a,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:l}])}_getCloseStream(i){let a=["ctrlKey","shiftKey","metaKey"];return Ji(i.backdropClick(),i.detachments(),i.keydownEvents().pipe(oi(r=>r.keyCode===27&&!Ii(r)||this.datepickerInput&&Ii(r,"altKey")&&r.keyCode===38&&a.every(s=>!Ii(r,s)))))}};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵdir",Se({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",qe],disabled:[2,"disabled","disabled",qe],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",qe],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",qe]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[bi]}));let e=t;return e})(),yme=(()=>{const t=class t extends Zb{};o(t,"ɵfac",(()=>{let i;return function(a){return(i||(i=Qt(t)))(a||t)}})()),o(t,"ɵcmp",Ce({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[xi([KS,{provide:Zb,useExisting:t}]),Ft],decls:0,vars:0,template:function(i,a){},encapsulation:2,changeDetection:0}));let e=t;return e})(),Gl=class{constructor(e,t){o(this,"target");o(this,"targetElement");o(this,"value");this.target=e,this.targetElement=t,this.value=this.target.value}},_me=(()=>{const t=class t{constructor(){o(this,"_elementRef",S(ze));o(this,"_dateAdapter",S(Gi,{optional:!0}));o(this,"_dateFormats",S(Po,{optional:!0}));o(this,"_isInitialized");o(this,"_model");o(this,"_disabled");o(this,"dateChange",new le);o(this,"dateInput",new le);o(this,"stateChanges",new ce);o(this,"_onTouched",()=>{});o(this,"_validatorOnChange",()=>{});o(this,"_cvaOnChange",()=>{});o(this,"_valueChangesSubscription",ct.EMPTY);o(this,"_localeSubscription",ct.EMPTY);o(this,"_pendingValue");o(this,"_parseValidator",()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}});o(this,"_filterValidator",i=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}});o(this,"_minValidator",i=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i.value)),r=this._getMinDate();return!r||!a||this._dateAdapter.compareDate(r,a)<=0?null:{matDatepickerMin:{min:r,actual:a}}});o(this,"_maxValidator",i=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(i.value)),r=this._getMaxDate();return!r||!a||this._dateAdapter.compareDate(r,a)>=0?null:{matDatepickerMax:{max:r,actual:a}}});o(this,"_lastValueValid",!1);this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(i){this._assignValueProgrammatically(i)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(i){let a=i,r=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0)),a&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(i){this._model=i,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(a=>{if(this._shouldHandleChangeEvent(a)){let r=this._getValueFromModel(a.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Gl(this,this._elementRef.nativeElement)),this.dateChange.emit(new Gl(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(i){xme(i,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(i){this._validatorOnChange=i}validate(i){return this._validator?this._validator(i):null}writeValue(i){this._assignValueProgrammatically(i)}registerOnChange(i){this._cvaOnChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}_onKeydown(i){let a=["ctrlKey","shiftKey","metaKey"];Ii(i,"altKey")&&i.keyCode===40&&a.every(r=>!Ii(i,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),i.preventDefault())}_onInput(i){let a=this._lastValueValid,r=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let s=!this._dateAdapter.sameDate(r,this.value);!r||s?this._cvaOnChange(r):(i&&!this.value&&this._cvaOnChange(r),a!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(r),this.dateInput.emit(new Gl(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Gl(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(i){this._elementRef.nativeElement.value=i!=null?this._dateAdapter.format(i,this._dateFormats.display.dateInput):""}_assignValue(i){this._model?(this._assignValueToModel(i),this._pendingValue=null):this._pendingValue=i}_isValidValue(i){return!i||this._dateAdapter.isValid(i)}_parentDisabled(){return!1}_assignValueProgrammatically(i){i=this._dateAdapter.deserialize(i),this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._assignValue(i),this._formatValue(i)}_matchesFilter(i){let a=this._getDateFilter();return!a||a(i)}};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵdir",Se({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",qe]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[bi]}));let e=t;return e})();function xme(e,t){let n=Object.keys(e);for(let i of n){let{previousValue:a,currentValue:r}=e[i];if(t.isDateInstance(a)&&t.isDateInstance(r)){if(!t.sameDate(a,r))return!0}else return!0}return!1}var wme={provide:mf,useExisting:mn(()=>Pf),multi:!0},Sme={provide:ul,useExisting:mn(()=>Pf),multi:!0},Pf=(()=>{const t=class t extends _me{constructor(){super();o(this,"_formField",S(Kd,{optional:!0}));o(this,"_closedSubscription",ct.EMPTY);o(this,"_openedSubscription",ct.EMPTY);o(this,"_datepicker");o(this,"_ariaOwns",Pa(null));o(this,"_min");o(this,"_max");o(this,"_dateFilter");o(this,"_validator");this._validator=bf.compose(super._getValidators())}set matDatepicker(a){a&&(this._datepicker=a,this._ariaOwns.set(a.opened?a.id:null),this._closedSubscription=a.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=a.openedStream.subscribe(()=>{this._ariaOwns.set(a.id)}),this._registerModel(a.registerInput(this)))}get min(){return this._min}set min(a){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a));this._dateAdapter.sameDate(r,this._min)||(this._min=r,this._validatorOnChange())}get max(){return this._max}set max(a){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a));this._dateAdapter.sameDate(r,this._max)||(this._max=r,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(a){let r=this._matchesFilter(this.value);this._dateFilter=a,this._matchesFilter(this.value)!==r&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(a){return a}_assignValueToModel(a){this._model&&this._model.updateSelection(a,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(a){return a.source!==this}};o(t,"ɵfac",function(a){return new(a||t)}),o(t,"ɵdir",Se({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,r){a&1&&de("input",function(s){return r._onInput(s.target.value)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(s){return r._onKeydown(s)}),a&2&&(yn("disabled",r.disabled),_e("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[xi([wme,Sme,{provide:US,useExisting:t}]),Ft]}));let e=t;return e})(),Eme=(()=>{const t=class t{};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵdir",Se({type:t,selectors:[["","matDatepickerToggleIcon",""]]}));let e=t;return e})(),iE=(()=>{const t=class t{constructor(){o(this,"_intl",S(Ro));o(this,"_changeDetectorRef",S(Lt));o(this,"_stateChanges",ct.EMPTY);o(this,"datepicker");o(this,"tabIndex");o(this,"ariaLabel");o(this,"_disabled");o(this,"disableRipple");o(this,"_customIcon");o(this,"_button");let i=S(new gm("tabindex"),{optional:!0}),a=Number(i);this.tabIndex=a||a===0?a:null}get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(i){this._disabled=i}ngOnChanges(i){i.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(i){this.datepicker&&!this.disabled&&(this.datepicker.open(),i.stopPropagation())}_watchStateChanges(){let i=this.datepicker?this.datepicker.stateChanges:ft(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ft(),r=this.datepicker?Ji(this.datepicker.openedStream,this.datepicker.closedStream):ft();this._stateChanges.unsubscribe(),this._stateChanges=Ji(this._intl.changes,i,a,r).subscribe(()=>this._changeDetectorRef.markForCheck())}};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵcmp",Ce({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,a,r){if(i&1&&pi(r,Eme,5),i&2){let s;Re(s=Fe())&&(a._customIcon=s.first)}},viewQuery:function(i,a){if(i&1&&mt(sme,5),i&2){let r;Re(r=Fe())&&(a._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,a){i&1&&de("click",function(r){return a._open(r)}),i&2&&(_e("tabindex",null)("data-mat-calendar",a.datepicker?a.datepicker.id:null),We("mat-datepicker-toggle-active",a.datepicker&&a.datepicker.opened)("mat-accent",a.datepicker&&a.datepicker.color==="accent")("mat-warn",a.datepicker&&a.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",qe],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[bi],ngContentSelectors:cme,decls:4,vars:7,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,a){i&1&&(Li(lme),I(0,"button",1,0),ne(2,dme,2,0,":svg:svg",2),dt(3),T()),i&2&&(W("disabled",a.disabled)("disableRipple",a.disableRipple),_e("aria-haspopup",a.datepicker?"dialog":null)("aria-label",a.ariaLabel||a._intl.openCalendarLabel)("tabindex",a.disabled?-1:a.tabIndex)("aria-expanded",a.datepicker?a.datepicker.opened:null),D(2),se(a._customIcon?-1:2))},dependencies:[Io],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}
53
53
  `],encapsulation:2,changeDetection:0}));let e=t;return e})(),kme=(()=>{const t=class t{};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵmod",kt({type:t})),o(t,"ɵinj",Et({providers:[Ro,bme],imports:[Ao,Wd,hw,Es,ai,tE,iE,JS,$c]}));let e=t;return e})();function Cme(e,t){e&1&&(I(0,"mat-error"),B(1),H(2,"translate"),T()),e&2&&(D(),we(K(2,1,"commons.errors.invalid_date_format")))}function Dme(e,t){e&1&&(I(0,"mat-error"),B(1),H(2,"translate"),T()),e&2&&(D(),we(K(2,1,"diaryNotesPage.filters.errFrom")))}function Ime(e,t){e&1&&(I(0,"mat-error"),B(1),H(2,"translate"),T()),e&2&&(D(),we(K(2,1,"commons.errors.invalid_date_format")))}function Ame(e,t){e&1&&(I(0,"mat-error"),B(1),H(2,"translate"),T()),e&2&&(D(),we(K(2,1,"diaryNotesPage.filters.errUntil")))}function Ome(e,t){e&1&&he(0,"mat-option",18)}function Tme(e,t){if(e&1&&(I(0,"mat-option",19),B(1),T()),e&2){let n=t.$implicit;jd("value",n),_e("translate","no"),D(),we(n)}}function Nme(e,t){if(e&1){let n=Ke();I(0,"button",21),H(1,"translate"),H(2,"translate"),de("click",function(i){ge(n);let a=P(2);return a.filter.author="",ve(i.stopPropagation())}),he(3,"mat-icon",22),T()}e&2&&(W("title",K(1,2,"diaryNotesPage.filters.deleteSelection")),_e("aria-label",K(2,4,"diaryNotesPage.filters.deleteSelection")))}function Mme(e,t){if(e&1){let n=Ke();I(0,"div",6)(1,"label",16),B(2),H(3,"translate"),T(),I(4,"mat-form-field",8)(5,"mat-select",17),$a("ngModelChange",function(i){ge(n);let a=P();return pn(a.filter.author,i)||(a.filter.author=i),ve(i)}),ne(6,Ome,1,0,"mat-option",18),Ri(7,Tme,2,3,"mat-option",19,ba),T(),ne(9,Nme,4,6,"button",20),T()()}if(e&2){let n=P();D(2),we(K(3,4,"diaryNotesPage.filters.author")),D(3),Ha("ngModel",n.filter.author),D(),se(n.filter.author?6:-1),D(),Fi(t),D(2),se(n.filter.author?9:-1)}}function Pme(e,t){e&1&&he(0,"mat-option",18)}function Rme(e,t){if(e&1&&(I(0,"mat-option",19),B(1),H(2,"translate"),H(3,"firstLetterUppercase"),T()),e&2){let n=t.$implicit;jd("value",n),_e("translate","no"),D(),Ie("",K(3,5,K(2,3,"commons.roles."+n.toLowerCase()))," ")}}function Fme(e,t){if(e&1){let n=Ke();I(0,"button",21),H(1,"translate"),H(2,"translate"),de("click",function(i){ge(n);let a=P(2);return a.filter.role=void 0,ve(i.stopPropagation())}),he(3,"mat-icon",22),T()}e&2&&(W("title",K(1,2,"diaryNotesPage.filters.deleteSelection")),_e("aria-label",K(2,4,"diaryNotesPage.filters.deleteSelection")))}function Lme(e,t){if(e&1){let n=Ke();I(0,"div",6)(1,"label",23),B(2),H(3,"translate"),T(),I(4,"mat-form-field",8)(5,"mat-select",24),$a("ngModelChange",function(i){ge(n);let a=P();return pn(a.filter.role,i)||(a.filter.role=i),ve(i)}),ne(6,Pme,1,0,"mat-option",18),Ri(7,Rme,4,7,"mat-option",19,ba),T(),ne(9,Fme,4,6,"button",20),T()()}if(e&2){let n=P();D(2),we(K(3,4,"diaryNotesPage.filters.role")),D(3),Ha("ngModel",n.filter.role),D(),se(n.filter.role?6:-1),D(),Fi(t),D(2),se(n.filter.role?9:-1)}}function Vme(e,t){if(e&1&&(I(0,"mat-option",19),B(1),H(2,"translate"),H(3,"firstLetterUppercase"),T()),e&2){let n=t.$implicit;jd("value",n),D(),Ie(" ",K(3,4,K(2,2,"commons.tags."+n.toLowerCase()))," ")}}function zme(e,t){if(e&1){let n=Ke();I(0,"button",21),H(1,"translate"),H(2,"translate"),de("click",function(i){ge(n);let a=P(2);return a.filter.tags=[],ve(i.stopPropagation())}),he(3,"mat-icon",22),T()}e&2&&(W("title",K(1,2,"diaryNotesPage.filters.deleteSelection")),_e("aria-label",K(2,4,"diaryNotesPage.filters.deleteSelection")))}function jme(e,t){if(e&1){let n=Ke();I(0,"div",6)(1,"label",25),B(2),H(3,"translate"),T(),I(4,"mat-form-field",8)(5,"mat-select",26),$a("ngModelChange",function(i){ge(n);let a=P();return pn(a.filter.tags,i)||(a.filter.tags=i),ve(i)}),Ri(6,Vme,4,6,"mat-option",19,ba),T(),ne(8,zme,4,6,"button",20),T()()}if(e&2){let n=P();D(2),we(K(3,3,"diaryNotesPage.filters.tags")),D(3),Ha("ngModel",n.filter.tags),D(),Fi(t),D(2),se((n.filter==null||n.filter.tags==null?null:n.filter.tags.length)>0?8:-1)}}var Bme=(()=>{const t=class t{constructor(){this.translateService=S(Yn),this.dateAdapter=S(Gi),this.destroyRef=S($i),this.data=S(uf),this.today=new Date,this.filter={dateRange:{from:null,until:null}},this.setActiveFilters=i=>{this.filter=Qe(Q({},i),{dateRange:{from:i.dateRange.from?new Date(i.dateRange.from):null,until:i.dateRange.until?new Date(i.dateRange.until):null}})}}ngOnInit(){this.dateAdapter.setLocale(this.translateService.currentLang),this.filterOptions=this.data.filterOptions,this.authors=this.filterOptions.authors,this.roles=this.filterOptions.roles,this.tags=this.filterOptions.tags,this.data.activeFilters$.pipe(FZ()).subscribe(this.setActiveFilters),this.translateService.onLangChange.pipe(Do(this.destroyRef)).subscribe(({lang:i})=>{this.dateAdapter.setLocale(i)})}onSelectFromDate(i){this.filter.dateRange.from=i.value}onSelectUntilDate(i){this.filter.dateRange.until=i.value}};t.ɵfac=function(i){return new(i||t)},t.ɵcmp=Ce({type:t,selectors:[["ng-component"]],decls:40,vars:33,consts:[["dateRangeFrom","ngModel"],["fromPicker",""],["dateRangeUntil","ngModel"],["untilPicker",""],["mat-dialog-title",""],[1,"date-range"],[1,"mh-form-field"],["for","fromFilter"],["appearance","outline"],["id","fromFilter","matInput","","name","fromPicker","placeholder","dd/mm/yyyy",3,"ngModelChange","dateChange","ngModel","matDatepicker","max"],["matSuffix","",3,"for"],["startView","month",3,"startAt"],["for","untilDate"],["id","untilDate","matInput","","name","untilPicker","placeholder","dd/mm/yyyy",3,"ngModelChange","dateChange","ngModel","matDatepicker","min","max"],["mat-button","","mat-dialog-close",""],["mat-flat-button","","type","button",3,"disabled","mat-dialog-close"],["for","author"],["id","author","name","author",3,"ngModelChange","ngModel"],["value",""],[3,"value"],["matSuffix","","mat-icon-button","",3,"title"],["matSuffix","","mat-icon-button","",3,"click","title"],["aria-hidden","true","fontIcon","close"],["for","role"],["id","role","name","role",3,"ngModelChange","ngModel"],["for","tags"],["id","tags","name","tags","multiple","",3,"ngModelChange","ngModel"]],template:function(i,a){if(i&1){let r=Ke();I(0,"h2",4),B(1),H(2,"translate"),T(),I(3,"mat-dialog-content")(4,"form")(5,"div",5)(6,"div",6)(7,"label",7),B(8),H(9,"translate"),T(),I(10,"mat-form-field",8)(11,"input",9,0),$a("ngModelChange",function(s){return ge(r),pn(a.filter.dateRange.from,s)||(a.filter.dateRange.from=s),ve(s)}),de("dateChange",function(s){return ge(r),ve(a.onSelectFromDate(s))}),T(),he(13,"mat-datepicker-toggle",10)(14,"mat-datepicker",11,1),ne(16,Cme,3,3,"mat-error")(17,Dme,3,3,"mat-error"),T()(),I(18,"div",6)(19,"label",12),B(20),H(21,"translate"),T(),I(22,"mat-form-field",8)(23,"input",13,2),$a("ngModelChange",function(s){return ge(r),pn(a.filter.dateRange.until,s)||(a.filter.dateRange.until=s),ve(s)}),de("dateChange",function(s){return ge(r),ve(a.onSelectUntilDate(s))}),T(),he(25,"mat-datepicker-toggle",10)(26,"mat-datepicker",11,3),ne(28,Ime,3,3,"mat-error")(29,Ame,3,3,"mat-error"),T()()(),ne(30,Mme,10,6,"div",6)(31,Lme,10,6,"div",6)(32,jme,9,5,"div",6),T()(),I(33,"mat-dialog-actions")(34,"button",14),B(35),H(36,"translate"),T(),I(37,"button",15),B(38),H(39,"translate"),T()()}if(i&2){let r,s,l,c=Qi(12),d=Qi(15),u=Qi(24),m=Qi(27);D(),we(K(2,23,"diaryNotesPage.filters.filter")),D(7),we(K(9,25,"diaryNotesPage.filters.from")),D(3),Ha("ngModel",a.filter.dateRange.from),W("matDatepicker",d)("max",a.filter.dateRange.until?a.filter.dateRange.until:a.today),D(2),W("for",d),D(),W("startAt",a.today),D(2),se(c.hasError("matDatepickerParse")?16:c.hasError("matDatepickerMax")?17:-1),D(4),we(K(21,27,"diaryNotesPage.filters.until")),D(3),Ha("ngModel",a.filter.dateRange.until),W("matDatepicker",m)("min",a.filter.dateRange.from)("max",a.today),D(2),W("for",m),D(),W("startAt",a.today),D(2),se(u.hasError("matDatepickerParse")?28:u.hasError("matDatepickerMin")?29:-1),D(2),se((r=a.authors)?30:-1,r),D(),se((s=a.roles)?31:-1,s),D(),se((l=a.tags)?32:-1,l),D(3),Ie(" ",K(36,29,"diaryNotesPage.cancel")," "),D(2),W("disabled",c.invalid||u.invalid)("mat-dialog-close",a.filter),D(),Ie(" ",K(39,31,"diaryNotesPage.confirm")," ")}},dependencies:[cl,Zd,iE,yme,Cf,tu,dl,sl,sS,Rle,Xd,Zw,vle,Sf,eu,Io,Pf,GS,ll,hf,Cs,Pw,Xse,Vpe,kme,hS,yp,Ao,xa,_a,Nf,Un,xse],styles:["@media only screen and (min-width: 960px){.date-range[_ngcontent-%COMP%]{display:flex;gap:16px}.date-range[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%}}"]});let e=t;return e})();function Hme(e,t){if(e&1){let n=Ke();I(0,"mat-chip",4),de("removed",function(){ge(n);let i=P(2);return ve(i.onClearFilter("author"))}),B(1),H(2,"translate"),I(3,"span"),B(4),H(5,"firstLetterUppercase"),T(),I(6,"button",5),he(7,"mat-icon",6),T()()}if(e&2){let n=P(),i=P();W("removable",!0)("disabled",i.disabled),D(),Ie(" ",K(2,5,"diaryNotesPage.filters.author"),": "),D(2),_e("translate","no"),D(),we(K(5,7,n.author))}}function $me(e,t){if(e&1){let n=Ke();I(0,"mat-chip",4),de("removed",function(){ge(n);let i=P(2);return ve(i.onClearFilter("role"))}),B(1),H(2,"translate"),I(3,"span"),B(4),H(5,"translate"),H(6,"firstLetterUppercase"),T(),I(7,"button",5),he(8,"mat-icon",6),T()()}if(e&2){let n=P(),i=P();W("removable",!0)("disabled",i.disabled),D(),Ie(" ",K(2,5,"diaryNotesPage.filters.role"),": "),D(2),_e("translate","no"),D(),Ie("",K(6,9,K(5,7,"commons.roles."+n.role.toLowerCase()))," ")}}function qme(e,t){e&1&&B(0," , ")}function Yme(e,t){if(e&1&&(B(0),H(1,"translate"),H(2,"firstLetterUppercase"),ne(3,qme,1,0)),e&2){let n=t.$implicit,i=t.$index,a=t.$count;Ie(" ",K(2,4,K(1,2,"commons.tags."+n.toLowerCase()))," "),D(3),se(i!==a-1?3:-1)}}function Ume(e,t){if(e&1){let n=Ke();I(0,"mat-chip",4),de("removed",function(){ge(n);let i=P(2);return ve(i.onClearFilter("tags"))}),B(1),H(2,"translate"),I(3,"span"),Ri(4,Yme,4,6,null,null,ba),T(),I(6,"button",5),he(7,"mat-icon",6),T()()}if(e&2){let n=P(),i=P();W("removable",!0)("disabled",i.disabled),D(),Ie(" ",K(2,4,"diaryNotesPage.filters.tags"),":"),D(2),_e("translate","no"),D(),Fi(n==null?null:n.tags)}}function Gme(e,t){if(e&1&&(B(0),H(1,"translate"),H(2,"date")),e&2){let n=P(2);Er(" ",K(1,2,"diaryNotesPage.filters.from")," : ",qn(2,4,n==null?null:n.dateRange.from,"dd/MM/yyyy")," ")}}function Wme(e,t){if(e&1&&(B(0),H(1,"translate"),H(2,"date")),e&2){let n=P(2);Er(" ",K(1,2,"diaryNotesPage.filters.until")," : ",qn(2,4,n==null?null:n.dateRange.until,"dd/MM/yyyy")," ")}}function Kme(e,t){if(e&1){let n=Ke();I(0,"mat-chip",4),de("removed",function(){ge(n);let i=P(2);return ve(i.onClearFilter("range"))}),ne(1,Gme,3,7)(2,Wme,3,7),I(3,"button",5),he(4,"mat-icon",6),T()()}if(e&2){let n=P(),i=P();W("removable",!0)("disabled",i.disabled),D(),se(n.dateRange.from?1:-1),D(),se(n!=null&&n.dateRange.until?2:-1)}}function Zme(e,t){if(e&1&&(I(0,"mat-chip-set"),ne(1,Hme,8,9,"mat-chip",3)(2,$me,9,11,"mat-chip",3)(3,Ume,8,6,"mat-chip",3)(4,Kme,5,4,"mat-chip",3),T()),e&2){let n=t;D(),se(n!=null&&n.author&&n.author!==""?1:-1),D(),se(n!=null&&n.role&&n.role!==""?2:-1),D(),se(n!=null&&n.tags&&n.tags.length>0?3:-1),D(),se(n.dateRange.from||n!=null&&n.dateRange.until?4:-1)}}var Xme=(()=>{const t=class t{constructor(){this.diarynoteService=S(Is),this.destroyRef=S($i),this.dialog=S(Nr),this.activeFilters$=this.diarynoteService.filterState$.pipe(bc({refCount:!0,bufferSize:1}))}onShowFilterDialog(){this.dialog.open(Bme,{data:{filterOptions:this.filterOptions,activeFilters$:this.activeFilters$}}).beforeClosed().pipe(oi(i=>i),Do(this.destroyRef)).subscribe(i=>{this.diarynoteService.updateFilter(i)})}onClearFilter(i){this.diarynoteService.clearFilterByKey(i)}};t.ɵfac=function(i){return new(i||t)},t.ɵcmp=Ce({type:t,selectors:[["vidis-diarynotes-filter-block"]],inputs:{filterOptions:"filterOptions",services:"services",disabled:"disabled"},decls:7,vars:7,consts:[[1,"filter-container"],["mat-stroked-button","",3,"click","disabled"],["fontIcon","tune"],[3,"removable","disabled"],[3,"removed","removable","disabled"],["matChipRemove",""],["fontIcon","close"]],template:function(i,a){if(i&1&&(I(0,"div",0)(1,"button",1),de("click",function(){return a.onShowFilterDialog()}),he(2,"mat-icon",2),B(3),H(4,"translate"),T(),ne(5,Zme,5,4,"mat-chip-set"),H(6,"async"),T()),i&2){let r;D(),W("disabled",a.disabled),D(2),Ie(" ",K(4,3,"diaryNotesPage.filters.filter")," "),D(2),se((r=K(6,5,a.activeFilters$))?5:-1,r)}},dependencies:[_a,Nf,D1,C1,xa,Un,YS,ru,$S,qS],styles:[".filter-container[_ngcontent-%COMP%]{margin-bottom:1rem;display:flex;align-items:center}"]});let e=t;return e})(),Qme=["*"],Jme=new $("MAT_CARD_CONFIG"),efe=(()=>{const t=class t{constructor(){o(this,"appearance");let i=S(Jme,{optional:!0});this.appearance=(i==null?void 0:i.appearance)||"raised"}};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵcmp",Ce({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,a){i&2&&We("mat-mdc-card-outlined",a.appearance==="outlined")("mdc-card--outlined",a.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Qme,decls:1,vars:0,template:function(i,a){i&1&&(Li(),dt(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}
54
- `],encapsulation:2,changeDetection:0}));let e=t;return e})(),tfe=(()=>{const t=class t{};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵdir",Se({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}));let e=t;return e})(),ife=(()=>{const t=class t{constructor(){o(this,"align","start")}};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵdir",Se({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,a){i&2&&We("mat-mdc-card-actions-align-end",a.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]}));let e=t;return e})(),afe=(()=>{const t=class t{constructor(){this.rolesMapData={patient:"patient",physician:"persphysician",midwife:"persmidwife",nurse:"persnurse",dentist:"persdentist",pharmacist:"perspharmacist"}}transform(i,a){return this.diaryNote!==i&&(this.diaryNote=i,this.user=a,this.setCanDelete()),this.canDelete}setCanDelete(){this.canDelete=this.diaryNote&&this.user?this.canDeleteDiaryNote(this.diaryNote):!1}canDeleteDiaryNote(i){var r,s,l,c,d,u,m,v,g;let a=this.user.organization?(r=this.user.organization[this.getOrganizationType(this.user.organization)])==null?void 0:r.nihii:void 0;return((s=i==null?void 0:i.source)==null?void 0:s.toLowerCase())==="vitalink"&&(i==null?void 0:i.status)==="completed"&&this.equalsCheck((l=i==null?void 0:i.author)==null?void 0:l.role,this.mapRole(this.user.role))&&(this.equalsCheck((c=i==null?void 0:i.author)==null?void 0:c.ssin,(d=this.user)==null?void 0:d.ssin)||this.equalsCheck((u=i==null?void 0:i.author)==null?void 0:u.nihdi,(m=this.user.professional)==null?void 0:m.nihii11)||this.equalsCheck((g=(v=i==null?void 0:i.author)==null?void 0:v.organization)==null?void 0:g.nihdi,a))}mapRole(i){return this.rolesMapData[i]||"patient"}equalsCheck(i,a){return i===a&&!!i}getOrganizationType(i){let a=["pharmacy"],r=null;return a.forEach(s=>{i[s]&&(r=s)}),r}};t.ɵfac=function(i){return new(i||t)},t.ɵpipe=Co({name:"canDeleteDiarynote",type:t,pure:!0});let e=t;return e})(),nfe=(()=>{const t=class t{};t.ɵfac=function(i){return new(i||t)},t.ɵcmp=Ce({type:t,selectors:[["ng-component"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-button","","type","button",3,"mat-dialog-close"],["mat-flat-button","","type","button",3,"mat-dialog-close"]],template:function(i,a){i&1&&(I(0,"h2",0),B(1),H(2,"translate"),T(),I(3,"mat-dialog-content")(4,"p"),B(5),H(6,"translate"),T()(),I(7,"mat-dialog-actions")(8,"button",1),B(9),H(10,"translate"),T(),I(11,"button",2),B(12),H(13,"translate"),T()()),i&2&&(D(),we(K(2,6,"diaryNotesPage.delete-dialog.title")),D(4),we(K(6,8,"diaryNotesPage.delete-dialog.message")),D(3),W("mat-dialog-close",!1),D(),Ie(" ",K(10,10,"diaryNotesPage.delete-dialog.cancel")," "),D(2),W("mat-dialog-close",!0),D(),Ie(" ",K(13,12,"diaryNotesPage.delete-dialog.confirm")," "))},dependencies:[cl,dl,_a,xa,sl,ll],encapsulation:2});let e=t;return e})(),aE=e=>({"strike-through":e}),rfe=e=>({count:e});function ofe(e,t){if(e&1&&(I(0,"span",1),B(1),H(2,"translate"),T()),e&2){let n=P().$implicit;D(),Er("",K(2,2,"diaryNotesPage.table.error")," ( ",n.id," )")}}function sfe(e,t){if(e&1&&(I(0,"mat-chip",5),B(1),H(2,"translate"),T()),e&2){let n=t.$implicit;W("disableRipple",!0),D(),Ie(" ",K(2,2,"commons.tags."+n)," ")}}function lfe(e,t){if(e&1&&(he(0,"dt",4),I(1,"dd")(2,"mat-chip-set"),Ri(3,sfe,3,4,"mat-chip",5,ba),T()()),e&2){let n=P(2).$implicit;D(3),Fi(n.tags)}}function cfe(e,t){if(e&1){let n=Ke();I(0,"mat-chip",8),de("click",function(){let i=ge(n).$index,a=P(3).$implicit,r=P();return ve(r.onDownloadFile(a,i))}),he(1,"mat-icon",9),B(2),H(3,"attachementFilename"),T()}if(e&2){let n=t.$implicit,i=t.$index,a=P(4);W("disabled",a.isOffline),D(2),Ie(" ",qn(3,2,n.contentType,i)," ")}}function dfe(e,t){if(e&1&&(I(0,"dt"),B(1),H(2,"translate"),T(),I(3,"dd",6),Ri(4,cfe,4,5,"mat-chip",7,ba),T()),e&2){let n=P(2).$implicit,i=P();D(),we(qn(2,2,"diaryNotesPage.table.attachment",Fc(5,rfe,n.attachments.length))),D(2),W("ngClass",Fc(7,aE,!i.diaryNoteCompleted(n.status))),D(),Fi(n.attachments)}}function ufe(e,t){if(e&1){let n=Ke();I(0,"button",12),de("click",function(){ge(n);let i=P(3).$implicit,a=P();return ve(a.onDeleteNote(i))}),he(1,"mat-icon",13),T()}}function hfe(e,t){if(e&1&&(I(0,"mat-card-actions",10),ne(1,ufe,2,0,"button",11),H(2,"canDeleteDiarynote"),T()),e&2){let n=P(2).$implicit,i=P();D(),se(qn(2,1,n,i.userInfo)?1:-1)}}function pfe(e,t){if(e&1&&(I(0,"dl"),ne(1,lfe,5,0),I(2,"dt"),B(3),H(4,"translate"),T(),I(5,"dd"),B(6),H(7,"date"),T(),I(8,"dt"),B(9),H(10,"translate"),T(),I(11,"dd"),B(12),H(13,"firstLetterUppercase"),H(14,"firstLetterUppercase"),H(15,"translate"),H(16,"firstLetterUppercase"),T(),I(17,"dt"),B(18),H(19,"translate"),T(),he(20,"dd",2),H(21,"firstLetterUppercase"),ne(22,dfe,6,9),T(),ne(23,hfe,3,4,"mat-card-actions",3)),e&2){let n=P().$implicit,i=P();D(),se((n.tags==null?null:n.tags.length)>0?1:-1),D(2),we(K(4,12,"diaryNotesPage.table.date")),D(3),we(qn(7,14,n.creation,"dd/MM/yyyy, HH:mm")),D(3),we(K(10,17,"diaryNotesPage.table.author")),D(2),_e("translate","no"),D(),r1(" ",K(13,19,n.author.lastName)," ",K(14,21,n.author.firstName)," (",K(16,25,K(15,23,"commons.roles."+n.author.role.toLowerCase())),") "),D(6),we(K(19,27,"diaryNotesPage.table.note")),D(2),W("ngClass",Fc(31,aE,!i.diaryNoteCompleted(n.status)))("innerHTML",K(21,29,n.content),pJ),D(2),se((n.attachments==null?null:n.attachments.length)>0?22:-1)}}function mfe(e,t){if(e&1&&(I(0,"mat-card")(1,"mat-card-content")(2,"div",0),ne(3,ofe,3,4,"span",1)(4,pfe,24,33),T()()()),e&2){let n=t.$implicit;D(3),se(n!=null&&n.error?3:4)}}var ffe=(()=>{const t=class t{constructor(){this.authService=S(Cr).getInstance(),this.diarynoteService=S(Is),this.dialog=S(Nr),this.destroyRef=S($i),this.downloadRequested=new le}get isOffline(){return this.authService.isOfflineAuthenticated}diaryNoteCompleted(i){return Is.isDiaryNoteCompleted(i)}onDeleteNote(i){this.dialog.open(nfe).beforeClosed().pipe(oi(a=>a),Do(this.destroyRef)).subscribe(()=>{this.diarynoteService.deleteDiaryNote(i.id,i.version,i.source,i.subject.ssin)})}onDownloadFile(i,a){this.downloadRequested.emit({id:i.id,version:i.version,source:i.source,patientSsin:i.subject.ssin,attachmentIndex:a})}};t.ɵfac=function(i){return new(i||t)},t.ɵcmp=Ce({type:t,selectors:[["vidis-diarynotes-table"]],inputs:{diaryNoteDataItems:"diaryNoteDataItems",services:"services",userInfo:"userInfo"},outputs:{downloadRequested:"downloadRequested"},decls:2,vars:0,consts:[[1,"content-wrapper"],[1,"error-text"],[3,"ngClass","innerHTML"],["align","end",4,"hideIfOffline"],[1,"no-colon"],[1,"mh-black","mh-no-overlay",3,"disableRipple"],[3,"ngClass"],["clickable","",3,"disabled"],["clickable","",3,"click","disabled"],["aria-hidden","true","fontIcon","insert_drive_file"],["align","end"],["mat-icon-button","","aria-label","Delete"],["mat-icon-button","","aria-label","Delete",3,"click"],["fontIcon","delete"]],template:function(i,a){i&1&&Ri(0,mfe,5,1,"mat-card",null,ba),i&2&&Fi(a.diaryNoteDataItems)},dependencies:[Js,D1,_a,Nf,efe,tfe,Un,Io,ife,qpe,afe,YS,ru,qS,RS],styles:['mat-card[_ngcontent-%COMP%]{margin-bottom:10px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}mat-card-actions[_ngcontent-%COMP%]{margin:0;padding:0;display:flex;align-items:center}.strike-through[_ngcontent-%COMP%], .strike-through[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{text-decoration:line-through!important}dl[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr;column-gap:16px;row-gap:6px;align-items:center}dt[_ngcontent-%COMP%]{font-weight:700;margin:0;position:relative}dt[_ngcontent-%COMP%]:not(.no-colon):after{content:":";position:absolute;right:-8px}dd[_ngcontent-%COMP%]{margin:0}']});let e=t;return e})(),gfe=()=>[10,25,50],vfe=e=>({addNote:e}),bfe=()=>({height:"47px",margin:"0"});function yfe(e,t){e&1&&(I(0,"div"),B(1,"Component not properly initialized!"),T())}function _fe(e,t){if(e&1){let n=Ke();I(0,"div")(1,"button",4),de("click",function(){ge(n);let i=P(3);return ve(i.onAddNote())}),I(2,"mat-icon",5),B(3,"add_circle"),T(),B(4),H(5,"translate"),T()()}if(e&2){let n=P(),i=P(2);D(),W("disabled",n.status===i.loadingStatus.LOADING),D(3),Ie(" ",K(5,2,"diaryNotesPage.table.addNote")," ")}}function xfe(e,t){if(e&1&&he(0,"vidis-diarynotes-filter-block",8),e&2){let n=P(2),i=P(2);W("filterOptions",n.data==null?null:n.data.availableFilters)("services",i.services)("disabled",n.status===i.loadingStatus.LOADING)}}function wfe(e,t){if(e&1){let n=Ke();I(0,"vidis-sort-dropdown",9),de("sortDataChange",function(i){ge(n);let a=P(4);return ve(a.handleSortEvent(i))}),T()}if(e&2){let n=P(2),i=P(2);W("sortItems",i.sortDropdownData)("sortData",i.sortDataState())("disabled",n.status===i.loadingStatus.LOADING)}}function Sfe(e,t){e&1&&(I(0,"div",1),ne(1,xfe,1,3,"vidis-diarynotes-filter-block",6)(2,wfe,1,3,"vidis-sort-dropdown",7),T())}function Efe(e,t){if(e&1&&he(0,"vidis-status-message",2),e&2){let n=P();W("error",n.error)}}function kfe(e,t){if(e&1&&he(0,"vidis-error-display",11),e&2){let n=t.$implicit;W("message",n.code)}}function Cfe(e,t){if(e&1&&Ri(0,kfe,1,1,"vidis-error-display",11,ba),e&2){let n=P(2);Fi(n.data==null?null:n.data.errors)}}function Dfe(e,t){if(e&1){let n=Ke();I(0,"vidis-diarynotes-table",12),de("downloadRequested",function(i){ge(n);let a=P(4);return ve(a.onDownloadRequested(i))}),T(),I(1,"mat-paginator",13),H(2,"async"),de("page",function(i){ge(n);let a=P(4);return ve(a.handlePageEvent(i))}),T()}if(e&2){let n=P(2),i=P(2);W("diaryNoteDataItems",n.data==null?null:n.data.items)("services",i.services)("userInfo",i.userInfo),D(),W("length",n.data==null?null:n.data.totalItems)("pageSize",K(2,8,i.paginationState$).pageSize)("pageIndex",n.data==null?null:n.data.page)("pageSizeOptions",l1(10,gfe))("disabled",(n.data==null?null:n.data.totalItems)<=0)}}function Ife(e,t){e&1&&(I(0,"h3"),B(1),H(2,"translate"),T(),I(3,"div",14)(4,"p",15),B(5),H(6,"translate"),he(7,"br"),B(8),H(9,"translate"),H(10,"translate"),T(),I(11,"p",15),B(12),H(13,"translate"),he(14,"br"),B(15),H(16,"translate"),he(17,"br"),B(18),H(19,"translate"),he(20,"br"),B(21),H(22,"translate"),T()()),e&2&&(D(),we(K(2,7,"diaryNotesPage.noDiaryNotes")),D(4),Ie(" ",K(6,9,"diaryNotesPage.noNote.part1"),""),D(3),Ie(" ",qn(10,13,"diaryNotesPage.noNote.part2",Fc(24,vfe,K(9,11,"diaryNotesPage.table.addNote")))," "),D(4),Ie(" ",K(13,16,"diaryNotesPage.noNote.part3")," :"),D(3),Ie(" ",K(16,18,"diaryNotesPage.noNote.part4"),""),D(3),Ie(" ",K(19,20,"diaryNotesPage.noNote.part5"),""),D(3),Ie(" ",K(22,22,"diaryNotesPage.noNote.part6")," "))}function Afe(e,t){if(e&1){let n=Ke();I(0,"p",10)(1,"span"),B(2),H(3,"translate"),T(),I(4,"button",16),de("click",function(){ge(n);let i=P(4);return ve(i.clearAllFilters())}),B(5),H(6,"translate"),T()()}e&2&&(D(2),we(K(3,2,"diaryNotesPage.filters.nonefound")),D(3),Ie(" ",K(6,4,"diaryNotesPage.filters.clearfilters")," "))}function Ofe(e,t){if(e&1&&(ne(0,Cfe,2,0)(1,Dfe,3,11),H(2,"async"),ne(3,Ife,23,26)(4,Afe,7,6,"p",10)),e&2){let n=P(),i=P(2);se(!(n.data==null||n.data.errors==null)&&n.data.errors.length?0:-1),D(),se((n.data==null?null:n.data.totalItems)>0?1:K(2,2,i.isFilterEmpty$)?3:4)}}function Tfe(e,t){e&1&&he(0,"ngx-skeleton-loader",3),e&2&&W("count",10)("theme",l1(2,bfe))}function Nfe(e,t){if(e&1&&(ne(0,_fe,6,4,"div",0)(1,Sfe,3,0,"div",1),H(2,"async"),ne(3,Efe,1,1,"vidis-status-message",2)(4,Ofe,5,4)(5,Tfe,1,3,"ngx-skeleton-loader",3)),e&2){let n,i=t,a=P(2);D(),se((i.data==null?null:i.data.totalItems)>0||K(2,2,a.isFilterEmpty$)===!1?1:-1),D(2),se((n=i.status)===a.loadingStatus.ERROR?3:n===a.loadingStatus.SUCCESS?4:n===a.loadingStatus.LOADING?5:-1)}}function Mfe(e,t){if(e&1&&(ne(0,Nfe,6,4),H(1,"async"),I(2,"span"),B(3),H(4,"translate"),T()),e&2){let n,i=P();se((n=K(1,2,i.diarynotesState$))?0:-1,n),D(3),we(K(4,4,"diaryNotesPage.disclaimer"))}}var Pfe=(()=>{const t=class t extends jhe{constructor(){super(...arguments),this.dialog=S(Nr),this.getTotalItems=new le,this.onDownload=new le,this.extraRequiredFields=["professional","ssin","offlineDataStorageEnabled","isOfflineAuthenticated","exchangeClientId"],this.loadingStatus=Fn,this.sortDropdownData=["date","author","role"]}fetchData(i){return _t(this,null,function*(){return this.diarynoteService.setClientId(this.exchangeClientId),this.diarynoteService.fetchDiarynotes(i)})}onAddNote(){this.dialog.open($pe).beforeClosed().pipe(oi(i=>i),Do(this.destroyRef)).subscribe(i=>{this.diarynoteService.postDiarynote(i.text,i.file)})}clearAllFilters(){this.diarynoteService.clearFilter()}handlePageEvent(i){let a={page:i.pageIndex,pageSize:i.pageSize};this.diarynoteService.updatePagination(a)}handleSortEvent(i){this.diarynoteService.updateSorting(i)}onDownloadRequested(i){this.diarynoteService.downloadAttachment$(i).pipe(mi(1)).subscribe(a=>{a&&this.onDownload.emit(a)})}injectService(){this.authServiceSelector.getInstance().resolveUserInfo().then(i=>{this.userInfo=i}).catch(i=>console.error("Failed to load user info",i)),this.diarynoteService=this.injector.get(Is),this.diarynotesState$=this.diarynoteService.diarynotesState$,this.paginationState$=this.diarynoteService.paginationState$,yd(this.injector,()=>{this.sortDataState=Rre(this.diarynoteService.sortState$)}),this.isFilterEmpty$=this.diarynoteService.filterState$.pipe(xt(i=>!i.dateRange.from&&!i.dateRange.until&&!i.author&&!i.role&&(!i.tags||i.tags.length===0))),this.diarynoteService.diarynotesState$.pipe(xt(i=>{var a;return((a=i==null?void 0:i.data)==null?void 0:a.totalItems)??0})).subscribe(i=>this.getTotalItems.emit(i)),this.diarynotesState$.subscribe(i=>{this.checkError(i.error)})}};t.ɵfac=(()=>{let i;return function(a){return(i||(i=Qt(t)))(a||t)}})(),t.ɵcmp=Ce({type:t,selectors:[["ng-component"]],inputs:{exchangeClientId:"exchangeClientId"},outputs:{getTotalItems:"getTotalItems",onDownload:"onDownload"},features:[xi([Is,jS,BS,kpe]),Ft],decls:2,vars:1,consts:[[4,"hideIfOffline"],[1,"filter-container"],[3,"error"],[3,"count","theme"],["mat-button","","color","primary",3,"click","disabled"],[1,"mr-2"],[3,"filterOptions","services","disabled",4,"hideIfOffline"],[3,"sortItems","sortData","disabled","sortDataChange",4,"hideIfOffline"],[3,"filterOptions","services","disabled"],[3,"sortDataChange","sortItems","sortData","disabled"],[1,"text-center"],[3,"message"],[3,"downloadRequested","diaryNoteDataItems","services","userInfo"],["showFirstLastButtons","",3,"page","length","pageSize","pageIndex","pageSizeOptions","disabled"],[1,"no-diary-notes__content"],[1,"description"],["mat-button","",3,"click"]],template:function(i,a){i&1&&ne(0,yfe,2,0,"div")(1,Mfe,5,6),i&2&&se(a.isCorrectlySetup()?1:0)},dependencies:[Tce,xa,Un,ffe,Xme,qhe,gpe,fpe,_a,C1,dpe,Nce,RS],styles:["@media only screen and (min-width: 960px){.filter-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}}.text-center[_ngcontent-%COMP%]{text-align:center}.no-diary-notes[_ngcontent-%COMP%]{background:#fff;padding:40px;border-radius:8px;position:relative}.no-diary-notes__content[_ngcontent-%COMP%]{margin-top:30px;border-left:8px solid #2473db;padding-left:30px}.no-diary-notes__content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{max-width:50%}"]});let e=t;return e})(),nE={};Ae(nE,{default:()=>Rfe,friday:()=>cE,monday:()=>rE,saturday:()=>dE,sunday:()=>uE,thursday:()=>lE,tuesday:()=>oE,wednesday:()=>sE});var rE="Montag",oE="Dienstag",sE="Mittwoch",lE="Donnerstag",cE="Freitag",dE="Samstag",uE="Sonntag",Rfe={monday:rE,tuesday:oE,wednesday:sE,thursday:lE,friday:cE,saturday:dE,sunday:uE},hE={};Ae(hE,{default:()=>Ffe,friday:()=>vE,monday:()=>pE,saturday:()=>bE,sunday:()=>yE,thursday:()=>gE,tuesday:()=>mE,wednesday:()=>fE});var pE="Monday",mE="Tuesday",fE="Wednesday",gE="Thursday",vE="Friday",bE="Saturday",yE="Sunday",Ffe={monday:pE,tuesday:mE,wednesday:fE,thursday:gE,friday:vE,saturday:bE,sunday:yE},_E={};Ae(_E,{default:()=>Lfe,friday:()=>kE,monday:()=>xE,saturday:()=>CE,sunday:()=>DE,thursday:()=>EE,tuesday:()=>wE,wednesday:()=>SE});var xE="Lundi",wE="Mardi",SE="Mercredi",EE="Jeudi",kE="Vendredi",CE="Samedi",DE="Dimanche",Lfe={monday:xE,tuesday:wE,wednesday:SE,thursday:EE,friday:kE,saturday:CE,sunday:DE},IE={};Ae(IE,{default:()=>Vfe,friday:()=>ME,monday:()=>AE,saturday:()=>PE,sunday:()=>RE,thursday:()=>NE,tuesday:()=>OE,wednesday:()=>TE});var AE="Maandag",OE="Dinsdag",TE="Woensdag",NE="Donderdag",ME="Vrijdag",PE="Zaterdag",RE="Zondag",Vfe={monday:AE,tuesday:OE,wednesday:TE,thursday:NE,friday:ME,saturday:PE,sunday:RE},zfe={nl:IE,fr:_E,de:nE,en:hE},FE={};Ae(FE,{VIDIS_0035:()=>LE,VIDIS_0050:()=>VE,VIDIS_0090:()=>zE,VIDIS_0100:()=>fk,VIDIS_0110:()=>vk,VIDIS_0120:()=>gk,VIDIS_0121:()=>jE,VIDIS_0122:()=>BE,VIDIS_0123:()=>HE,VIDIS_0124:()=>$E,VIDIS_0125:()=>qE,VIDIS_0126:()=>YE,VIDIS_0131:()=>UE,VIDIS_0132:()=>GE,VIDIS_0133:()=>WE,VIDIS_0134:()=>KE,VIDIS_0135:()=>ZE,VIDIS_0136:()=>XE,VIDIS_0190:()=>QE,VIDIS_0200:()=>bk,VIDIS_0210:()=>JE,VIDIS_0211:()=>ek,VIDIS_0230:()=>tk,VIDIS_0290:()=>ik,VIDIS_0330:()=>ak,VIDIS_0340:()=>yk,VIDIS_0341:()=>_k,VIDIS_0400:()=>pk,VIDIS_04001:()=>xk,VIDIS_0435:()=>nk,VIDIS_0440:()=>rk,VIDIS_3030:()=>mk,VIDIS_3090:()=>ck,VIDIS_3100:()=>uk,VIDIS_3120:()=>hk,VIDIS_3140:()=>dk,VIDIS_3150:()=>lk,VIDIS_5000:()=>ok,VIDIS_7000:()=>sk,"action-not-authorized-close-button":()=>Hk,"action-not-authorized-title":()=>Bk,"data-not-available-title":()=>jk,default:()=>jfe,general:()=>Sk,"has-hidden-prescriptions":()=>Tk,"incorrect-elements-ms-detail":()=>qk,"incorrect-elements-ms-list":()=>$k,invalid_date_format:()=>Ik,myHealth:()=>kk,myHealthUrl:()=>Ck,network_error:()=>Dk,"no-access":()=>Ek,prescriptionList:()=>wk,"report-message-confirm-toast":()=>zk,"report-message-content":()=>Pk,"report-message-explanation":()=>Mk,"report-message-ignore-button":()=>Vk,"report-message-link":()=>Fk,"report-message-report-button":()=>Lk,"report-message-term-use":()=>Rk,"report-message-title":()=>Nk,"status-message-content":()=>Ok,"status-message-title":()=>Ak});var LE="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0035)",VE="Die Patienten-INSS fehlt. (VIDIS_0050)",zE="Die angegebenen persönlichen Daten wurden nicht erkannt. (VIDIS_0090)",jE="Die Einsichtnahme in die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",BE="Die Einsichtnahme in die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",HE="Die Einsichtnahme in die Daten eines Brüsseler Kinder von einem Elternteil ist derzeit nicht erlaubt.",$E="Die Einsichtnahme in die Daten eines wallonischen Kinder von einem Elternteil ist derzeit nicht erlaubt.",qE="Die Einsichtnahme in die Daten eines Brüsseler Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",YE="Die Einsichtnahme in die Daten eines wallonischen Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",UE="Der Zugriff auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",GE="Der Zugriff auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",WE="Der Zugriff eines Elternteils auf die Daten eines Brüsseler Kindes ist derzeit nicht erlaubt.",KE="Der Zugriff eines Elternteils auf die Daten eines wallonischen Kindes ist derzeit nicht erlaubt.",ZE="Der Zugriff eines Bevollmächtigten auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",XE="Der Zugriff eines Bevollmächtigten auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",QE="Ungültige INSS-Patientennummer. (VIDIS_0190)",JE="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0210)",ek="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0211)",tk="Der Vorgang ist ungültig (VIDIS_0230)",ik='Die Benutzerrolle muss "Bürger" sein. (VIDIS_0290)',ak="Ihre Authentifizierungsstufe erlaubt keinen Zugriff auf diese Seite. Bitte melden Sie sich mit einem anderen Authentifizierungsmittel an (itsme, eID oder mit einem per E-Mail oder App verschickten Sicherheitscode). (VIDIS_0330)",nk="Die Speicherregion für den Medikamentenplan kann nicht bestimmt werden. (VIDIS_0435)",rk="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0440)",ok="Leider konnten wir Ihre Daten nicht abrufen. Versuchen Sie es bitte noch einmal? (VIDIS_5000)",sk="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_7000)",lk="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",ck="Das Rezept ist abgelaufen.",dk="Reservierungen müssen bei derselben Apotheke erfolgen wie die, bei der das Visi-Flag gesetzt wurde. Sie können das Visi-Flag auch offen lassen.",uk="Das Visi-Flag muss auf dieselbe Apotheke gesetzt sein, bei der Sie reserviert haben.",hk="Der Patient in der Sitzung ist nicht derselbe wie der Patient in der Anfrage.",pk="Der Benutzer ist nicht berechtigt, die Anfrage zu stellen.",mk="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",fk="Vorgang nicht erlaubt.",gk="Es besteht keine therapeutische Beziehung zwischen Anfragendem und Patient.",vk="Keine Zustimmung zur Weitergabe von Gesundheitsdaten.",bk="Der Benutzer darf die Bearbeitung nicht vornehmen, da Antragsteller und Patient sich ausschließen.",yk="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, da Ihr Visum nicht aktiv ist. Bitte wenden Sie sich per E-Mail unter visa@health.belgium.be an den FÖD Gesundheit.",_k="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, entweder weil Ihr Visum nicht aktiv ist, bitte wenden Sie sich in diesem Fall per E-Mail an den FÖD Gesundheit unter visa@health.belgium.be, oder weil die LIKIV-Nummer der Apotheke ungültig ist, bitte kontaktieren Sie in diesem Fall das LIKIV per E-Mail unter dossierpharma@riziv-inami.fgov.be.",xk="Ihre Anfrage ist ungültig. Bitte versuchen Sie es später erneut.",wk="Leider war es nicht möglich, die Details der Verschreibung abzurufen. Versuchen Sie es erneut?",Sk="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",Ek="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",kk="Zurück zum Portal Meine Gesundheit",Ck="https://wwwint.meinegesundheit.belgien.be/#/",Dk="Es ist leider ein Netzwerkfehler aufgetreten. Bitte wenden Sie sich an Ihren Netzwerkadministrator, wenn das Problem weiterhin besteht.",Ik="Ungültiges Datumsformat.",Ak="Dienst vorübergehend nicht verfügbar",Ok=`Wir haben derzeit ein Problem mit der Verbindung zum Server.
54
+ `],encapsulation:2,changeDetection:0}));let e=t;return e})(),tfe=(()=>{const t=class t{};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵdir",Se({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}));let e=t;return e})(),ife=(()=>{const t=class t{constructor(){o(this,"align","start")}};o(t,"ɵfac",function(i){return new(i||t)}),o(t,"ɵdir",Se({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,a){i&2&&We("mat-mdc-card-actions-align-end",a.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]}));let e=t;return e})(),afe=(()=>{const t=class t{constructor(){this.rolesMapData={patient:"patient",physician:"persphysician",midwife:"persmidwife",nurse:"persnurse",dentist:"persdentist",pharmacist:"perspharmacist"}}transform(i,a){return this.diaryNote!==i&&(this.diaryNote=i,this.user=a,this.setCanDelete()),this.canDelete}setCanDelete(){this.canDelete=this.diaryNote&&this.user?this.canDeleteDiaryNote(this.diaryNote):!1}canDeleteDiaryNote(i){var r,s,l,c,d,u,m,v,g;let a=this.user.organization?(r=this.user.organization[this.getOrganizationType(this.user.organization)])==null?void 0:r.nihii:void 0;return((s=i==null?void 0:i.source)==null?void 0:s.toLowerCase())==="vitalink"&&(i==null?void 0:i.status)==="completed"&&this.equalsCheck((l=i==null?void 0:i.author)==null?void 0:l.role,this.mapRole(this.user.role))&&(this.equalsCheck((c=i==null?void 0:i.author)==null?void 0:c.ssin,(d=this.user)==null?void 0:d.ssin)||this.equalsCheck((u=i==null?void 0:i.author)==null?void 0:u.nihdi,(m=this.user.professional)==null?void 0:m.nihii11)||this.equalsCheck((g=(v=i==null?void 0:i.author)==null?void 0:v.organization)==null?void 0:g.nihdi,a))}mapRole(i){return this.rolesMapData[i]||"patient"}equalsCheck(i,a){return i===a&&!!i}getOrganizationType(i){let a=["pharmacy"],r=null;return a.forEach(s=>{i[s]&&(r=s)}),r}};t.ɵfac=function(i){return new(i||t)},t.ɵpipe=Co({name:"canDeleteDiarynote",type:t,pure:!0});let e=t;return e})(),nfe=(()=>{const t=class t{};t.ɵfac=function(i){return new(i||t)},t.ɵcmp=Ce({type:t,selectors:[["ng-component"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-button","","type","button",3,"mat-dialog-close"],["mat-flat-button","","type","button",3,"mat-dialog-close"]],template:function(i,a){i&1&&(I(0,"h2",0),B(1),H(2,"translate"),T(),I(3,"mat-dialog-content")(4,"p"),B(5),H(6,"translate"),T()(),I(7,"mat-dialog-actions")(8,"button",1),B(9),H(10,"translate"),T(),I(11,"button",2),B(12),H(13,"translate"),T()()),i&2&&(D(),we(K(2,6,"diaryNotesPage.delete-dialog.title")),D(4),we(K(6,8,"diaryNotesPage.delete-dialog.message")),D(3),W("mat-dialog-close",!1),D(),Ie(" ",K(10,10,"diaryNotesPage.delete-dialog.cancel")," "),D(2),W("mat-dialog-close",!0),D(),Ie(" ",K(13,12,"diaryNotesPage.delete-dialog.confirm")," "))},dependencies:[cl,dl,_a,xa,sl,ll],encapsulation:2});let e=t;return e})(),aE=e=>({"strike-through":e}),rfe=e=>({count:e});function ofe(e,t){if(e&1&&(I(0,"span",1),B(1),H(2,"translate"),T()),e&2){let n=P().$implicit;D(),Er("",K(2,2,"diaryNotesPage.table.error")," ( ",n.id," )")}}function sfe(e,t){if(e&1&&(I(0,"mat-chip",5),B(1),H(2,"translate"),T()),e&2){let n=t.$implicit;W("disableRipple",!0),D(),Ie(" ",K(2,2,"commons.tags."+n)," ")}}function lfe(e,t){if(e&1&&(he(0,"dt",4),I(1,"dd")(2,"mat-chip-set"),Ri(3,sfe,3,4,"mat-chip",5,ba),T()()),e&2){let n=P(2).$implicit;D(3),Fi(n.tags)}}function cfe(e,t){if(e&1){let n=Ke();I(0,"mat-chip",8),de("click",function(){let i=ge(n).$index,a=P(3).$implicit,r=P();return ve(r.onDownloadFile(a,i))}),he(1,"mat-icon",9),B(2),H(3,"attachementFilename"),T()}if(e&2){let n=t.$implicit,i=t.$index,a=P(4);W("disabled",a.isOffline),D(2),Ie(" ",qn(3,2,n.contentType,i)," ")}}function dfe(e,t){if(e&1&&(I(0,"dt"),B(1),H(2,"translate"),T(),I(3,"dd",6),Ri(4,cfe,4,5,"mat-chip",7,ba),T()),e&2){let n=P(2).$implicit,i=P();D(),we(qn(2,2,"diaryNotesPage.table.attachment",Fc(5,rfe,n.attachments.length))),D(2),W("ngClass",Fc(7,aE,!i.diaryNoteCompleted(n.status))),D(),Fi(n.attachments)}}function ufe(e,t){if(e&1){let n=Ke();I(0,"button",12),de("click",function(){ge(n);let i=P(3).$implicit,a=P();return ve(a.onDeleteNote(i))}),he(1,"mat-icon",13),T()}}function hfe(e,t){if(e&1&&(I(0,"mat-card-actions",10),ne(1,ufe,2,0,"button",11),H(2,"canDeleteDiarynote"),T()),e&2){let n=P(2).$implicit,i=P();D(),se(qn(2,1,n,i.userInfo)?1:-1)}}function pfe(e,t){if(e&1&&(I(0,"dl"),ne(1,lfe,5,0),I(2,"dt"),B(3),H(4,"translate"),T(),I(5,"dd"),B(6),H(7,"date"),T(),I(8,"dt"),B(9),H(10,"translate"),T(),I(11,"dd"),B(12),H(13,"firstLetterUppercase"),H(14,"firstLetterUppercase"),H(15,"translate"),H(16,"firstLetterUppercase"),T(),I(17,"dt"),B(18),H(19,"translate"),T(),he(20,"dd",2),H(21,"firstLetterUppercase"),ne(22,dfe,6,9),T(),ne(23,hfe,3,4,"mat-card-actions",3)),e&2){let n=P().$implicit,i=P();D(),se((n.tags==null?null:n.tags.length)>0?1:-1),D(2),we(K(4,12,"diaryNotesPage.table.date")),D(3),we(qn(7,14,n.creation,"dd/MM/yyyy, HH:mm")),D(3),we(K(10,17,"diaryNotesPage.table.author")),D(2),_e("translate","no"),D(),r1(" ",K(13,19,n.author.lastName)," ",K(14,21,n.author.firstName)," (",K(16,25,K(15,23,"commons.roles."+n.author.role.toLowerCase())),") "),D(6),we(K(19,27,"diaryNotesPage.table.note")),D(2),W("ngClass",Fc(31,aE,!i.diaryNoteCompleted(n.status)))("innerHTML",K(21,29,n.content),pJ),D(2),se((n.attachments==null?null:n.attachments.length)>0?22:-1)}}function mfe(e,t){if(e&1&&(I(0,"mat-card")(1,"mat-card-content")(2,"div",0),ne(3,ofe,3,4,"span",1)(4,pfe,24,33),T()()()),e&2){let n=t.$implicit;D(3),se(n!=null&&n.error?3:4)}}var ffe=(()=>{const t=class t{constructor(){this.authService=S(Cr).getInstance(),this.diarynoteService=S(Is),this.dialog=S(Nr),this.destroyRef=S($i),this.downloadRequested=new le}get isOffline(){return this.authService.isOfflineAuthenticated}diaryNoteCompleted(i){return Is.isDiaryNoteCompleted(i)}onDeleteNote(i){this.dialog.open(nfe).beforeClosed().pipe(oi(a=>a),Do(this.destroyRef)).subscribe(()=>{this.diarynoteService.deleteDiaryNote(i.id,i.version,i.source,i.subject.ssin)})}onDownloadFile(i,a){this.downloadRequested.emit({id:i.id,version:i.version,source:i.source,patientSsin:i.subject.ssin,attachmentIndex:a})}};t.ɵfac=function(i){return new(i||t)},t.ɵcmp=Ce({type:t,selectors:[["vidis-diarynotes-table"]],inputs:{diaryNoteDataItems:"diaryNoteDataItems",services:"services",userInfo:"userInfo"},outputs:{downloadRequested:"downloadRequested"},decls:2,vars:0,consts:[[1,"content-wrapper"],[1,"error-text"],[3,"ngClass","innerHTML"],["align","end",4,"hideIfOffline"],[1,"no-colon"],[1,"mh-black","mh-no-overlay",3,"disableRipple"],[3,"ngClass"],["clickable","",3,"disabled"],["clickable","",3,"click","disabled"],["aria-hidden","true","fontIcon","insert_drive_file"],["align","end"],["mat-icon-button","","aria-label","Delete"],["mat-icon-button","","aria-label","Delete",3,"click"],["fontIcon","delete"]],template:function(i,a){i&1&&Ri(0,mfe,5,1,"mat-card",null,ba),i&2&&Fi(a.diaryNoteDataItems)},dependencies:[Js,D1,_a,Nf,efe,tfe,Un,Io,ife,qpe,afe,YS,ru,qS,RS],styles:['mat-card[_ngcontent-%COMP%]{margin-bottom:10px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}mat-card-actions[_ngcontent-%COMP%]{margin:0;padding:0;display:flex;align-items:center}.strike-through[_ngcontent-%COMP%], .strike-through[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{text-decoration:line-through!important}dl[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr;column-gap:16px;row-gap:6px;align-items:center}dt[_ngcontent-%COMP%]{font-weight:700;margin:0;position:relative}dt[_ngcontent-%COMP%]:not(.no-colon):after{content:":";position:absolute;right:-8px}dd[_ngcontent-%COMP%]{margin:0}']});let e=t;return e})(),gfe=()=>[10,25,50],vfe=e=>({addNote:e}),bfe=()=>({height:"47px",margin:"0"});function yfe(e,t){e&1&&(I(0,"div"),B(1,"Component not properly initialized!"),T())}function _fe(e,t){if(e&1){let n=Ke();I(0,"div")(1,"button",4),de("click",function(){ge(n);let i=P(3);return ve(i.onAddNote())}),I(2,"mat-icon",5),B(3,"add_circle"),T(),B(4),H(5,"translate"),T()()}if(e&2){let n=P(),i=P(2);D(),W("disabled",n.status===i.loadingStatus.LOADING),D(3),Ie(" ",K(5,2,"diaryNotesPage.table.addNote")," ")}}function xfe(e,t){if(e&1&&he(0,"vidis-diarynotes-filter-block",8),e&2){let n=P(2),i=P(2);W("filterOptions",n.data==null?null:n.data.availableFilters)("services",i.services)("disabled",n.status===i.loadingStatus.LOADING)}}function wfe(e,t){if(e&1){let n=Ke();I(0,"vidis-sort-dropdown",9),de("sortDataChange",function(i){ge(n);let a=P(4);return ve(a.handleSortEvent(i))}),T()}if(e&2){let n=P(2),i=P(2);W("sortItems",i.sortDropdownData)("sortData",i.sortDataState())("disabled",n.status===i.loadingStatus.LOADING)}}function Sfe(e,t){e&1&&(I(0,"div",1),ne(1,xfe,1,3,"vidis-diarynotes-filter-block",6)(2,wfe,1,3,"vidis-sort-dropdown",7),T())}function Efe(e,t){if(e&1&&he(0,"vidis-status-message",2),e&2){let n=P();W("error",n.error)}}function kfe(e,t){if(e&1&&he(0,"vidis-error-display",11),e&2){let n=t.$implicit;W("message",n.code)}}function Cfe(e,t){if(e&1&&Ri(0,kfe,1,1,"vidis-error-display",11,ba),e&2){let n=P(2);Fi(n.data==null?null:n.data.errors)}}function Dfe(e,t){if(e&1){let n=Ke();I(0,"vidis-diarynotes-table",12),de("downloadRequested",function(i){ge(n);let a=P(4);return ve(a.onDownloadRequested(i))}),T(),I(1,"mat-paginator",13),H(2,"async"),de("page",function(i){ge(n);let a=P(4);return ve(a.handlePageEvent(i))}),T()}if(e&2){let n=P(2),i=P(2);W("diaryNoteDataItems",n.data==null?null:n.data.items)("services",i.services)("userInfo",i.userInfo),D(),W("length",n.data==null?null:n.data.totalItems)("pageSize",K(2,8,i.paginationState$).pageSize)("pageIndex",n.data==null?null:n.data.page)("pageSizeOptions",l1(10,gfe))("disabled",(n.data==null?null:n.data.totalItems)<=0)}}function Ife(e,t){e&1&&(I(0,"h3"),B(1),H(2,"translate"),T(),I(3,"div",14)(4,"p",15),B(5),H(6,"translate"),he(7,"br"),B(8),H(9,"translate"),H(10,"translate"),T(),I(11,"p",15),B(12),H(13,"translate"),he(14,"br"),B(15),H(16,"translate"),he(17,"br"),B(18),H(19,"translate"),he(20,"br"),B(21),H(22,"translate"),T()()),e&2&&(D(),we(K(2,7,"diaryNotesPage.noDiaryNotes")),D(4),Ie(" ",K(6,9,"diaryNotesPage.noNote.part1"),""),D(3),Ie(" ",qn(10,13,"diaryNotesPage.noNote.part2",Fc(24,vfe,K(9,11,"diaryNotesPage.table.addNote")))," "),D(4),Ie(" ",K(13,16,"diaryNotesPage.noNote.part3")," :"),D(3),Ie(" ",K(16,18,"diaryNotesPage.noNote.part4"),""),D(3),Ie(" ",K(19,20,"diaryNotesPage.noNote.part5"),""),D(3),Ie(" ",K(22,22,"diaryNotesPage.noNote.part6")," "))}function Afe(e,t){if(e&1){let n=Ke();I(0,"p",10)(1,"span"),B(2),H(3,"translate"),T(),I(4,"button",16),de("click",function(){ge(n);let i=P(4);return ve(i.clearAllFilters())}),B(5),H(6,"translate"),T()()}e&2&&(D(2),we(K(3,2,"diaryNotesPage.filters.nonefound")),D(3),Ie(" ",K(6,4,"diaryNotesPage.filters.clearfilters")," "))}function Ofe(e,t){if(e&1&&(ne(0,Cfe,2,0)(1,Dfe,3,11),H(2,"async"),ne(3,Ife,23,26)(4,Afe,7,6,"p",10)),e&2){let n=P(),i=P(2);se(!(n.data==null||n.data.errors==null)&&n.data.errors.length?0:-1),D(),se((n.data==null?null:n.data.totalItems)>0?1:K(2,2,i.isFilterEmpty$)?3:4)}}function Tfe(e,t){e&1&&he(0,"ngx-skeleton-loader",3),e&2&&W("count",10)("theme",l1(2,bfe))}function Nfe(e,t){if(e&1&&(ne(0,_fe,6,4,"div",0)(1,Sfe,3,0,"div",1),H(2,"async"),ne(3,Efe,1,1,"vidis-status-message",2)(4,Ofe,5,4)(5,Tfe,1,3,"ngx-skeleton-loader",3)),e&2){let n,i=t,a=P(2);D(),se((i.data==null?null:i.data.totalItems)>0||K(2,2,a.isFilterEmpty$)===!1?1:-1),D(2),se((n=i.status)===a.loadingStatus.ERROR?3:n===a.loadingStatus.SUCCESS?4:n===a.loadingStatus.LOADING?5:-1)}}function Mfe(e,t){if(e&1&&(ne(0,Nfe,6,4),H(1,"async"),I(2,"span"),B(3),H(4,"translate"),T()),e&2){let n,i=P();se((n=K(1,2,i.diarynotesState$))?0:-1,n),D(3),we(K(4,4,"diaryNotesPage.disclaimer"))}}var Pfe=(()=>{const t=class t extends jhe{constructor(){super(...arguments),this.dialog=S(Nr),this.getTotalItems=new le,this.onDownload=new le,this.extraRequiredFields=["professional","ssin","offlineDataStorageEnabled","isOfflineAuthenticated","exchangeClientId"],this.loadingStatus=Fn,this.sortDropdownData=["date","author","role"]}fetchData(i){return _t(this,null,function*(){return this.diarynoteService.setClientId(this.exchangeClientId),this.diarynoteService.fetchDiarynotes(i)})}onAddNote(){this.dialog.open($pe).beforeClosed().pipe(oi(i=>i),Do(this.destroyRef)).subscribe(i=>{this.diarynoteService.postDiarynote(i.text,i.file)})}clearAllFilters(){this.diarynoteService.clearFilter()}handlePageEvent(i){let a={page:i.pageIndex,pageSize:i.pageSize};this.diarynoteService.updatePagination(a)}handleSortEvent(i){this.diarynoteService.updateSorting(i)}onDownloadRequested(i){this.diarynoteService.downloadAttachment$(i).pipe(mi(1)).subscribe(a=>{console.log("downloadEvent from list component ",a),a&&this.onDownload.emit(a)})}injectService(){this.authServiceSelector.getInstance().resolveUserInfo().then(i=>{this.userInfo=i}).catch(i=>console.error("Failed to load user info",i)),this.diarynoteService=this.injector.get(Is),this.diarynotesState$=this.diarynoteService.diarynotesState$,this.paginationState$=this.diarynoteService.paginationState$,yd(this.injector,()=>{this.sortDataState=Rre(this.diarynoteService.sortState$)}),this.isFilterEmpty$=this.diarynoteService.filterState$.pipe(xt(i=>!i.dateRange.from&&!i.dateRange.until&&!i.author&&!i.role&&(!i.tags||i.tags.length===0))),this.diarynoteService.diarynotesState$.pipe(xt(i=>{var a;return((a=i==null?void 0:i.data)==null?void 0:a.totalItems)??0})).subscribe(i=>this.getTotalItems.emit(i)),this.diarynotesState$.subscribe(i=>{this.checkError(i.error)})}};t.ɵfac=(()=>{let i;return function(a){return(i||(i=Qt(t)))(a||t)}})(),t.ɵcmp=Ce({type:t,selectors:[["ng-component"]],inputs:{exchangeClientId:"exchangeClientId"},outputs:{getTotalItems:"getTotalItems",onDownload:"onDownload"},features:[xi([Is,jS,BS,kpe]),Ft],decls:2,vars:1,consts:[[4,"hideIfOffline"],[1,"filter-container"],[3,"error"],[3,"count","theme"],["mat-button","","color","primary",3,"click","disabled"],[1,"mr-2"],[3,"filterOptions","services","disabled",4,"hideIfOffline"],[3,"sortItems","sortData","disabled","sortDataChange",4,"hideIfOffline"],[3,"filterOptions","services","disabled"],[3,"sortDataChange","sortItems","sortData","disabled"],[1,"text-center"],[3,"message"],[3,"downloadRequested","diaryNoteDataItems","services","userInfo"],["showFirstLastButtons","",3,"page","length","pageSize","pageIndex","pageSizeOptions","disabled"],[1,"no-diary-notes__content"],[1,"description"],["mat-button","",3,"click"]],template:function(i,a){i&1&&ne(0,yfe,2,0,"div")(1,Mfe,5,6),i&2&&se(a.isCorrectlySetup()?1:0)},dependencies:[Tce,xa,Un,ffe,Xme,qhe,gpe,fpe,_a,C1,dpe,Nce,RS],styles:["@media only screen and (min-width: 960px){.filter-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}}.text-center[_ngcontent-%COMP%]{text-align:center}.no-diary-notes[_ngcontent-%COMP%]{background:#fff;padding:40px;border-radius:8px;position:relative}.no-diary-notes__content[_ngcontent-%COMP%]{margin-top:30px;border-left:8px solid #2473db;padding-left:30px}.no-diary-notes__content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{max-width:50%}"]});let e=t;return e})(),nE={};Ae(nE,{default:()=>Rfe,friday:()=>cE,monday:()=>rE,saturday:()=>dE,sunday:()=>uE,thursday:()=>lE,tuesday:()=>oE,wednesday:()=>sE});var rE="Montag",oE="Dienstag",sE="Mittwoch",lE="Donnerstag",cE="Freitag",dE="Samstag",uE="Sonntag",Rfe={monday:rE,tuesday:oE,wednesday:sE,thursday:lE,friday:cE,saturday:dE,sunday:uE},hE={};Ae(hE,{default:()=>Ffe,friday:()=>vE,monday:()=>pE,saturday:()=>bE,sunday:()=>yE,thursday:()=>gE,tuesday:()=>mE,wednesday:()=>fE});var pE="Monday",mE="Tuesday",fE="Wednesday",gE="Thursday",vE="Friday",bE="Saturday",yE="Sunday",Ffe={monday:pE,tuesday:mE,wednesday:fE,thursday:gE,friday:vE,saturday:bE,sunday:yE},_E={};Ae(_E,{default:()=>Lfe,friday:()=>kE,monday:()=>xE,saturday:()=>CE,sunday:()=>DE,thursday:()=>EE,tuesday:()=>wE,wednesday:()=>SE});var xE="Lundi",wE="Mardi",SE="Mercredi",EE="Jeudi",kE="Vendredi",CE="Samedi",DE="Dimanche",Lfe={monday:xE,tuesday:wE,wednesday:SE,thursday:EE,friday:kE,saturday:CE,sunday:DE},IE={};Ae(IE,{default:()=>Vfe,friday:()=>ME,monday:()=>AE,saturday:()=>PE,sunday:()=>RE,thursday:()=>NE,tuesday:()=>OE,wednesday:()=>TE});var AE="Maandag",OE="Dinsdag",TE="Woensdag",NE="Donderdag",ME="Vrijdag",PE="Zaterdag",RE="Zondag",Vfe={monday:AE,tuesday:OE,wednesday:TE,thursday:NE,friday:ME,saturday:PE,sunday:RE},zfe={nl:IE,fr:_E,de:nE,en:hE},FE={};Ae(FE,{VIDIS_0035:()=>LE,VIDIS_0050:()=>VE,VIDIS_0090:()=>zE,VIDIS_0100:()=>fk,VIDIS_0110:()=>vk,VIDIS_0120:()=>gk,VIDIS_0121:()=>jE,VIDIS_0122:()=>BE,VIDIS_0123:()=>HE,VIDIS_0124:()=>$E,VIDIS_0125:()=>qE,VIDIS_0126:()=>YE,VIDIS_0131:()=>UE,VIDIS_0132:()=>GE,VIDIS_0133:()=>WE,VIDIS_0134:()=>KE,VIDIS_0135:()=>ZE,VIDIS_0136:()=>XE,VIDIS_0190:()=>QE,VIDIS_0200:()=>bk,VIDIS_0210:()=>JE,VIDIS_0211:()=>ek,VIDIS_0230:()=>tk,VIDIS_0290:()=>ik,VIDIS_0330:()=>ak,VIDIS_0340:()=>yk,VIDIS_0341:()=>_k,VIDIS_0400:()=>pk,VIDIS_04001:()=>xk,VIDIS_0435:()=>nk,VIDIS_0440:()=>rk,VIDIS_3030:()=>mk,VIDIS_3090:()=>ck,VIDIS_3100:()=>uk,VIDIS_3120:()=>hk,VIDIS_3140:()=>dk,VIDIS_3150:()=>lk,VIDIS_5000:()=>ok,VIDIS_7000:()=>sk,"action-not-authorized-close-button":()=>Hk,"action-not-authorized-title":()=>Bk,"data-not-available-title":()=>jk,default:()=>jfe,general:()=>Sk,"has-hidden-prescriptions":()=>Tk,"incorrect-elements-ms-detail":()=>qk,"incorrect-elements-ms-list":()=>$k,invalid_date_format:()=>Ik,myHealth:()=>kk,myHealthUrl:()=>Ck,network_error:()=>Dk,"no-access":()=>Ek,prescriptionList:()=>wk,"report-message-confirm-toast":()=>zk,"report-message-content":()=>Pk,"report-message-explanation":()=>Mk,"report-message-ignore-button":()=>Vk,"report-message-link":()=>Fk,"report-message-report-button":()=>Lk,"report-message-term-use":()=>Rk,"report-message-title":()=>Nk,"status-message-content":()=>Ok,"status-message-title":()=>Ak});var LE="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0035)",VE="Die Patienten-INSS fehlt. (VIDIS_0050)",zE="Die angegebenen persönlichen Daten wurden nicht erkannt. (VIDIS_0090)",jE="Die Einsichtnahme in die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",BE="Die Einsichtnahme in die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",HE="Die Einsichtnahme in die Daten eines Brüsseler Kinder von einem Elternteil ist derzeit nicht erlaubt.",$E="Die Einsichtnahme in die Daten eines wallonischen Kinder von einem Elternteil ist derzeit nicht erlaubt.",qE="Die Einsichtnahme in die Daten eines Brüsseler Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",YE="Die Einsichtnahme in die Daten eines wallonischen Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",UE="Der Zugriff auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",GE="Der Zugriff auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",WE="Der Zugriff eines Elternteils auf die Daten eines Brüsseler Kindes ist derzeit nicht erlaubt.",KE="Der Zugriff eines Elternteils auf die Daten eines wallonischen Kindes ist derzeit nicht erlaubt.",ZE="Der Zugriff eines Bevollmächtigten auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",XE="Der Zugriff eines Bevollmächtigten auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",QE="Ungültige INSS-Patientennummer. (VIDIS_0190)",JE="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0210)",ek="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0211)",tk="Der Vorgang ist ungültig (VIDIS_0230)",ik='Die Benutzerrolle muss "Bürger" sein. (VIDIS_0290)',ak="Ihre Authentifizierungsstufe erlaubt keinen Zugriff auf diese Seite. Bitte melden Sie sich mit einem anderen Authentifizierungsmittel an (itsme, eID oder mit einem per E-Mail oder App verschickten Sicherheitscode). (VIDIS_0330)",nk="Die Speicherregion für den Medikamentenplan kann nicht bestimmt werden. (VIDIS_0435)",rk="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0440)",ok="Leider konnten wir Ihre Daten nicht abrufen. Versuchen Sie es bitte noch einmal? (VIDIS_5000)",sk="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_7000)",lk="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",ck="Das Rezept ist abgelaufen.",dk="Reservierungen müssen bei derselben Apotheke erfolgen wie die, bei der das Visi-Flag gesetzt wurde. Sie können das Visi-Flag auch offen lassen.",uk="Das Visi-Flag muss auf dieselbe Apotheke gesetzt sein, bei der Sie reserviert haben.",hk="Der Patient in der Sitzung ist nicht derselbe wie der Patient in der Anfrage.",pk="Der Benutzer ist nicht berechtigt, die Anfrage zu stellen.",mk="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",fk="Vorgang nicht erlaubt.",gk="Es besteht keine therapeutische Beziehung zwischen Anfragendem und Patient.",vk="Keine Zustimmung zur Weitergabe von Gesundheitsdaten.",bk="Der Benutzer darf die Bearbeitung nicht vornehmen, da Antragsteller und Patient sich ausschließen.",yk="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, da Ihr Visum nicht aktiv ist. Bitte wenden Sie sich per E-Mail unter visa@health.belgium.be an den FÖD Gesundheit.",_k="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, entweder weil Ihr Visum nicht aktiv ist, bitte wenden Sie sich in diesem Fall per E-Mail an den FÖD Gesundheit unter visa@health.belgium.be, oder weil die LIKIV-Nummer der Apotheke ungültig ist, bitte kontaktieren Sie in diesem Fall das LIKIV per E-Mail unter dossierpharma@riziv-inami.fgov.be.",xk="Ihre Anfrage ist ungültig. Bitte versuchen Sie es später erneut.",wk="Leider war es nicht möglich, die Details der Verschreibung abzurufen. Versuchen Sie es erneut?",Sk="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",Ek="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",kk="Zurück zum Portal Meine Gesundheit",Ck="https://wwwint.meinegesundheit.belgien.be/#/",Dk="Es ist leider ein Netzwerkfehler aufgetreten. Bitte wenden Sie sich an Ihren Netzwerkadministrator, wenn das Problem weiterhin besteht.",Ik="Ungültiges Datumsformat.",Ak="Dienst vorübergehend nicht verfügbar",Ok=`Wir haben derzeit ein Problem mit der Verbindung zum Server.
55
55
  Bitte versuchen Sie es zu einem späteren Zeitpunkt erneut.`,Tk="Der Patient hat ein oder mehrere Verschreibungen ausgeblendet.",Nk="Technisches Problem",Mk="Bitte versuchen Sie es später noch einmal.",Pk="Helfen Sie uns, das Problem zu identifizieren und zu lösen. Mit dem Melden akzeptieren Sie ",Rk="unsere Nutzungsbedingungen",Fk="https://www.riziv.fgov.be/nl/pagina/datenschutzerklarung-der-mobilen-anwendung-meinegesundheit",Lk="Problem melden",Vk="Nicht melden",zk="Das Problem wurde gemeldet",jk="Daten nicht verfügbar",Bk="Aktion nicht erlaubt",Hk="Schließen",$k="Ein Warnzeichen weist auf fehlerhafte Angaben in Ihrem Medikamentenplan hin. Bitte wenden Sie sich an den verschreibenden Arzt.",qk="Bitten Sie {prescriber}, die mit einem Warnzeichen gekennzeichneten fehlerhaften Angaben zu korrigieren.",jfe={VIDIS_0035:LE,VIDIS_0050:VE,VIDIS_0090:zE,VIDIS_0121:jE,VIDIS_0122:BE,VIDIS_0123:HE,VIDIS_0124:$E,VIDIS_0125:qE,VIDIS_0126:YE,VIDIS_0131:UE,VIDIS_0132:GE,VIDIS_0133:WE,VIDIS_0134:KE,VIDIS_0135:ZE,VIDIS_0136:XE,VIDIS_0190:QE,VIDIS_0210:JE,VIDIS_0211:ek,VIDIS_0230:tk,VIDIS_0290:ik,VIDIS_0330:ak,VIDIS_0435:nk,VIDIS_0440:rk,VIDIS_5000:ok,VIDIS_7000:sk,VIDIS_3150:lk,VIDIS_3090:ck,VIDIS_3140:dk,VIDIS_3100:uk,VIDIS_3120:hk,VIDIS_0400:pk,VIDIS_3030:mk,VIDIS_0100:fk,VIDIS_0120:gk,VIDIS_0110:vk,VIDIS_0200:bk,VIDIS_0340:yk,VIDIS_0341:_k,VIDIS_04001:xk,prescriptionList:wk,general:Sk,"no-access":Ek,myHealth:kk,myHealthUrl:Ck,network_error:Dk,invalid_date_format:Ik,"status-message-title":Ak,"status-message-content":Ok,"has-hidden-prescriptions":Tk,"report-message-title":Nk,"report-message-explanation":Mk,"report-message-content":Pk,"report-message-term-use":Rk,"report-message-link":Fk,"report-message-report-button":Lk,"report-message-ignore-button":Vk,"report-message-confirm-toast":zk,"data-not-available-title":jk,"action-not-authorized-title":Bk,"action-not-authorized-close-button":Hk,"incorrect-elements-ms-list":$k,"incorrect-elements-ms-detail":qk},Yk={};Ae(Yk,{VIDIS_0035:()=>Uk,VIDIS_0050:()=>Gk,VIDIS_0090:()=>Wk,VIDIS_0100:()=>EC,VIDIS_0110:()=>CC,VIDIS_0120:()=>kC,VIDIS_0121:()=>Kk,VIDIS_0122:()=>Zk,VIDIS_0123:()=>Xk,VIDIS_0124:()=>Qk,VIDIS_0125:()=>Jk,VIDIS_0126:()=>eC,VIDIS_0131:()=>tC,VIDIS_0132:()=>iC,VIDIS_0133:()=>aC,VIDIS_0134:()=>nC,VIDIS_0135:()=>rC,VIDIS_0136:()=>oC,VIDIS_0190:()=>sC,VIDIS_0200:()=>DC,VIDIS_0210:()=>lC,VIDIS_0211:()=>cC,VIDIS_0230:()=>dC,VIDIS_0290:()=>uC,VIDIS_0330:()=>hC,VIDIS_0340:()=>IC,VIDIS_0341:()=>AC,VIDIS_0400:()=>wC,VIDIS_04001:()=>OC,VIDIS_0435:()=>pC,VIDIS_0440:()=>mC,VIDIS_3030:()=>SC,VIDIS_3090:()=>bC,VIDIS_3100:()=>_C,VIDIS_3120:()=>xC,VIDIS_3140:()=>yC,VIDIS_3150:()=>vC,VIDIS_5000:()=>fC,VIDIS_7000:()=>gC,"action-not-authorized-close-button":()=>XC,"action-not-authorized-title":()=>ZC,"data-not-available-title":()=>KC,default:()=>Bfe,general:()=>NC,"has-hidden-prescriptions":()=>jC,"incorrect-elements-ms-detail":()=>JC,"incorrect-elements-ms-list":()=>QC,invalid_date_format:()=>LC,myHealth:()=>PC,myHealthUrl:()=>RC,network_error:()=>FC,"no-access":()=>MC,prescriptionList:()=>TC,"report-message-confirm-toast":()=>WC,"report-message-content":()=>$C,"report-message-explanation":()=>HC,"report-message-ignore-button":()=>GC,"report-message-link":()=>YC,"report-message-report-button":()=>UC,"report-message-term-use":()=>qC,"report-message-title":()=>BC,"status-message-content":()=>zC,"status-message-title":()=>VC});var Uk="Unfortunately, this did not succeed. Please try again. (VIDIS_0035)",Gk="The patient's NISS number is missing (VIDIS_0050)",Wk="The personal information provided was not recognised. (VIDIS_0090)",Kk="Consulting data of a Brussels patient is currently not authorised.",Zk="Consulting data of a Walloon patient is currently not authorised.",Xk="Consulting data of a Brussels child by a parent is currently not authorised.",Qk="Consulting data of a Walloon child by a parent is currently not authorised.",Jk="Consulting data of a Brussels patient by a power of attorney is currently not authorised.",eC="Consulting data of a Walloon patient by a power of attorney is currently not authorised.",tC="Access to the data of a Brussels patient is currently not permitted.",iC="Access to the data of a Walloon patient is currently not permitted.",aC="A parent’s access to the data of a Brussels child is currently not permitted.",nC="A parent’s access to the data of a Walloon child is currently not permitted.",rC="A representative’s access to the data of a Brussels patient is currently not permitted.",oC="A representative’s access to the data of a Walloon patient is currently not permitted.",sC="The patient's NISS number is invalid. (VIDIS_0190)",lC="The login was unsuccessful. Please try again. (VIDIS_0210)",cC="The login was unsuccessful. Please try again. (VIDIS_0211)",dC="The request is invalid. (VIDIS_0230)",uC="User role must be citizen. (VIDIS_0290)",hC="Your authentication level is insufficient to access this page. Please authenticate by using other means (itsme, eID or a security code sent via email or an app). (VIDIS_0330)",pC="Cannot determine the storage region of the medication scheme. (VIDIS_0435)",mC="Unfortunately, this did not succeed. Please try again. (VIDIS_0440)",fC="Unfortunately your data could not be retrieved. Please try again. (VIDIS_5000)",gC="Unfortunately, this did not succeed. Please try again. (VIDIS_7000)",vC="No mandate found between patient and mandateholder.",bC="Prescription has expired.",yC="Reservations must be made at the same pharmacy as the pharmacy for which you have set your visi-flag to be able to collect your medication. You can also leave your visi-flag unset or open.",_C="The vision-flag must be set to the same pharmacy as the pharmacy where you have reserved.",xC="The patient in the session is different from the patient in the request.",wC="User is not authorized to make the request.",SC="No mandate found between patient and mandateholder.",EC="Operation is not allowed.",kC="A therapeutic relation between the requester and the patient is not available.",CC="There is no consent to share personal health information.",DC="User is not allowed to perform the operation due to an exclusion between requester and patient.",IC="You are not authorized to consult this patient’s data because your visa is not active. Please contact the FPS Public Health at: visa@health.belgium.be",AC="You are not authorized to consult this patient’s data. - Either your visa is not active. Please contact the FPS Public Health via: visa@health.belgium.be - Or the NIHDI number of the pharmacy is invalid. In that case, please contact NIHDI via: dossierpharma@riziv-inami.fgov.be",OC="Your request is invalid. Please try again later.",TC="Unfortunately the details of the prescription could not be retrieved. Please try again.",NC="An internal technical error has occured. Please try again later.",MC="An internal technical error has occured. Please try again later.",PC="Back to the MyHealth portal.",RC="https://www.myhealth.belgium.be/",FC="A network error unfortunately has occured. Please contact your network manager if the problem persists.",LC="Invalid date format.",VC="Service temporarily unavailable",zC=`We are currently having a problem connecting to the server.
56
56
  Please try again later.`,jC="The patient has hidden one or more prescriptions.",BC="Technical problem",HC="Please try again later.",$C="Help us identify and resolve the issue. By reporting it, you accept ",qC="our terms of use",YC="https://www.riziv.fgov.be/nl/pagina/privacy-statement-for-the-mobile-application-myhealth",UC="Report the problem",GC="Don't report",WC="The problem has been reported",KC="Data not available",ZC="Action not authorized",XC="Close",QC="An alert indicates the incorrect elements in your medical scheme. Please contact the prescriber.",JC="Please ask {prescriber} to amend the incorrect elements signalled by an alert.",Bfe={VIDIS_0035:Uk,VIDIS_0050:Gk,VIDIS_0090:Wk,VIDIS_0121:Kk,VIDIS_0122:Zk,VIDIS_0123:Xk,VIDIS_0124:Qk,VIDIS_0125:Jk,VIDIS_0126:eC,VIDIS_0131:tC,VIDIS_0132:iC,VIDIS_0133:aC,VIDIS_0134:nC,VIDIS_0135:rC,VIDIS_0136:oC,VIDIS_0190:sC,VIDIS_0210:lC,VIDIS_0211:cC,VIDIS_0230:dC,VIDIS_0290:uC,VIDIS_0330:hC,VIDIS_0435:pC,VIDIS_0440:mC,VIDIS_5000:fC,VIDIS_7000:gC,VIDIS_3150:vC,VIDIS_3090:bC,VIDIS_3140:yC,VIDIS_3100:_C,VIDIS_3120:xC,VIDIS_0400:wC,VIDIS_3030:SC,VIDIS_0100:EC,VIDIS_0120:kC,VIDIS_0110:CC,VIDIS_0200:DC,VIDIS_0340:IC,VIDIS_0341:AC,VIDIS_04001:OC,prescriptionList:TC,general:NC,"no-access":MC,myHealth:PC,myHealthUrl:RC,network_error:FC,invalid_date_format:LC,"status-message-title":VC,"status-message-content":zC,"has-hidden-prescriptions":jC,"report-message-title":BC,"report-message-explanation":HC,"report-message-content":$C,"report-message-term-use":qC,"report-message-link":YC,"report-message-report-button":UC,"report-message-ignore-button":GC,"report-message-confirm-toast":WC,"data-not-available-title":KC,"action-not-authorized-title":ZC,"action-not-authorized-close-button":XC,"incorrect-elements-ms-list":QC,"incorrect-elements-ms-detail":JC},eD={};Ae(eD,{VIDIS_0035:()=>tD,VIDIS_0050:()=>iD,VIDIS_0090:()=>aD,VIDIS_0100:()=>MD,VIDIS_0110:()=>RD,VIDIS_0120:()=>PD,VIDIS_0121:()=>nD,VIDIS_0122:()=>rD,VIDIS_0123:()=>oD,VIDIS_0124:()=>sD,VIDIS_0125:()=>lD,VIDIS_0126:()=>cD,VIDIS_0131:()=>dD,VIDIS_0132:()=>uD,VIDIS_0133:()=>hD,VIDIS_0134:()=>pD,VIDIS_0135:()=>mD,VIDIS_0136:()=>fD,VIDIS_0190:()=>gD,VIDIS_0200:()=>FD,VIDIS_0210:()=>vD,VIDIS_0211:()=>bD,VIDIS_0230:()=>yD,VIDIS_0290:()=>_D,VIDIS_0330:()=>xD,VIDIS_0340:()=>LD,VIDIS_0341:()=>VD,VIDIS_0400:()=>TD,VIDIS_04001:()=>zD,VIDIS_0435:()=>wD,VIDIS_0440:()=>SD,VIDIS_3030:()=>ND,VIDIS_3090:()=>DD,VIDIS_3100:()=>AD,VIDIS_3120:()=>OD,VIDIS_3140:()=>ID,VIDIS_3150:()=>CD,VIDIS_5000:()=>ED,VIDIS_7000:()=>kD,"action-not-authorized-close-button":()=>oI,"action-not-authorized-title":()=>rI,"data-not-available-title":()=>nI,default:()=>Hfe,general:()=>BD,"has-hidden-prescriptions":()=>KD,"incorrect-elements-ms-detail":()=>lI,"incorrect-elements-ms-list":()=>sI,invalid_date_format:()=>UD,myHealth:()=>$D,myHealthUrl:()=>qD,network_error:()=>YD,"no-access":()=>HD,prescriptionList:()=>jD,"report-message-confirm-toast":()=>aI,"report-message-content":()=>QD,"report-message-explanation":()=>XD,"report-message-ignore-button":()=>iI,"report-message-link":()=>eI,"report-message-report-button":()=>tI,"report-message-term-use":()=>JD,"report-message-title":()=>ZD,"status-message-content":()=>WD,"status-message-title":()=>GD});var tD="Malheureusement, cela ne s'est pas bien passé. Voulez-vous réessayer ? (VIDIS_0035)",iD="Le NISS du patient est manquant. (VIDIS_0050)",aD="Les informations personnelles fournies n'ont pas été reconnues. (VIDIS_0090)",nD="La consultation des données d'un(e) patient(e) bruxellois(e) n'est pas autorisée pour le moment.",rD="La consultation des données d'un(e) patient(e) wallon(ne) n'est pas autorisée pour le moment.",oD="La consultation des données d'un(e) enfant bruxellois(e) par un parent n'est pas autorisée pour le moment.",sD="La consultation des données d'un(e) enfant wallon(ne) par un parent n'est pas autorisée pour le moment.",lD="La consultation des données d'un(e) patient(e) bruxellois(e) par un(e) mandataire n'est pas autorisée pour le moment.",cD="La consultation des données d'un(e) patient(e) wallon(ne) par un(e) mandataire n'est pas autorisée pour le moment.",dD="La consultation des données d'un(e) patient(e) bruxellois(e) n'est pas autorisée pour le moment.",uD="La consultation des données d'un(e) patient(e) wallon(ne) n'est pas autorisée pour le moment.",hD="La consultation des données d'un(e) enfant bruxellois(e) par un parent n'est pas autorisée pour le moment.",pD="La consultation des données d'un(e) enfant wallon(ne) par un parent n'est pas autorisée pour le moment.",mD="La consultation des données d'un(e) patient(e) bruxellois(e) par un(e) mandataire n'est pas autorisée pour le moment.",fD="La consultation des données d'un(e) patient(e) wallon(ne) par un(e) mandataire n'est pas autorisée pour le moment.",gD="Le NISS du patient n’est pas valide. (VIDIS_0190)",vD="La connexion a échoué. Essayez-vous à nouveau? (VIDIS_0210)",bD="La connexion a échoué. Essayez-vous à nouveau? (VIDIS_0211)",yD="L’opération n’est pas valide. (VIDIS_0230)",_D="Le rôle d’utilisateur doit être citoyen (VIDIS_0290)",xD="Votre niveau d’authentification ne vous permet pas d’accéder à cette page. Veuillez vous connecter avec un autre moyen d’authentification (itsme, eID ou code de sécurité envoyé par e-mail ou via app). (VIDIS_0330)",wD="Impossible de déterminer la région de stockage du schéma de médication. (VIDIS_0435)",SD="Malheureusement, cela ne s'est pas bien passé. Voulez-vous réessayer ? (VIDIS_0440)",ED="Malheureusement, nous n'avons pas pu récupérer vos données. Voulez-vous réessayer ? (VIDIS_5000)",kD="Malheureusement, cela ne s'est pas bien passé. Voulez-vous réessayer ? (VIDIS_7000)",CD="Aucun mandat trouvé entre le patient et le mandataire.",DD="L’ordonnance est expirée.",ID="Les réservations doivent être faites auprès de la même pharmacie que celle pour laquelle vous avez défini votre visi-flag. Vous pouvez également laisser le visi-flag vide ou ouvert.",AD="Le visi-flag doit être défini pour la même pharmacie que celle auprès de laquelle vous avez réservé.",OD="Le patient dans la session est différent de celui dans la demande.",TD="L’utilisateur n’est pas autorisé à effectuer la requête.",ND="Aucun mandat trouvé entre le patient et le mandataire.",MD="Opération non autorisée.",PD="Aucune relation thérapeutique entre le demandeur et le patient.",RD="Aucun consentement au partage des données de santé.",FD="L’utilisateur n’est pas autorisé à effectuer l’opération en raison d’une exclusion entre le demandeur et le patient",LD="Vous n’êtes pas autorisé à consulter les données de ce patient parce que votre visa n’est pas actif. Veuillez prendre contact avec le SPF Santé publique à l’adresse e-mail suivante : visa@health.belgium.be",VD="Vous n’êtes pas autorisé à consulter les données de ce patient. - Soit votre visa n’est pas actif. Veuillez prendre contact avec le SPF Santé publique via l’adresse e-mail suivante : visa@health.belgium.be - Soit le numéro INAMI de la pharmacie n’est pas valide. Veuillez dans ce cas contacter l’INAMI à l’adresse e-mail dossierpharma@riziv-inami.fgov.be",zD="Votre requête est invalide. Veuillez réessayer plus tard.",jD="Malheureusement, il n’a pas été possible de retrouver les détails de la prescription. Essayez-vous à nouveau?",BD="Une erreur technique interne s'est produite. Veuillez réessayer plus tard.",HD="Une erreur technique interne s'est produite. Veuillez réessayer plus tard.",$D="Revenir au portail MaSanté",qD="https://wwwint.masante.belgique.be/#/",YD="Désolé, une erreur réseau s'est produite. Veuillez contacter votre administrateur réseau si le problème persiste.",UD="Le format de date est invalide.",GD="Service temporairement indisponible",WD=`Nous rencontrons actuellement un problème de connexion au serveur.
57
57
  Veuillez réessayer plus tard.`,KD="Le patient a masqué une ou plusieurs prescriptions.",ZD="Problème technique",XD="Veuillez réessayer plus tard.",QD="Aidez-nous à identifier et résoudre le problème. En le signalant vous acceptez nos ",JD="conditions d'utilisation",eI="https://www.riziv.fgov.be/fr/page/declaration-de-confidentialite-application-mobile-masante",tI="Signaler le problème",iI="Ignorer",aI="Le problème a été signalé",nI="Données non disponibles",rI="Action non autorisée",oI="Fermer",sI="Un signal d’alerte indique des éléments incorrects dans votre schéma de médication. Veuillez contacter le prescripteur.",lI="Veuillez demander à {prescriber} de revoir le contenu des éléments indiqués par un signal d’alerte.",Hfe={VIDIS_0035:tD,VIDIS_0050:iD,VIDIS_0090:aD,VIDIS_0121:nD,VIDIS_0122:rD,VIDIS_0123:oD,VIDIS_0124:sD,VIDIS_0125:lD,VIDIS_0126:cD,VIDIS_0131:dD,VIDIS_0132:uD,VIDIS_0133:hD,VIDIS_0134:pD,VIDIS_0135:mD,VIDIS_0136:fD,VIDIS_0190:gD,VIDIS_0210:vD,VIDIS_0211:bD,VIDIS_0230:yD,VIDIS_0290:_D,VIDIS_0330:xD,VIDIS_0435:wD,VIDIS_0440:SD,VIDIS_5000:ED,VIDIS_7000:kD,VIDIS_3150:CD,VIDIS_3090:DD,VIDIS_3140:ID,VIDIS_3100:AD,VIDIS_3120:OD,VIDIS_0400:TD,VIDIS_3030:ND,VIDIS_0100:MD,VIDIS_0120:PD,VIDIS_0110:RD,VIDIS_0200:FD,VIDIS_0340:LD,VIDIS_0341:VD,VIDIS_04001:zD,prescriptionList:jD,general:BD,"no-access":HD,myHealth:$D,myHealthUrl:qD,network_error:YD,invalid_date_format:UD,"status-message-title":GD,"status-message-content":WD,"has-hidden-prescriptions":KD,"report-message-title":ZD,"report-message-explanation":XD,"report-message-content":QD,"report-message-term-use":JD,"report-message-link":eI,"report-message-report-button":tI,"report-message-ignore-button":iI,"report-message-confirm-toast":aI,"data-not-available-title":nI,"action-not-authorized-title":rI,"action-not-authorized-close-button":oI,"incorrect-elements-ms-list":sI,"incorrect-elements-ms-detail":lI},cI={};Ae(cI,{VIDIS_0035:()=>dI,VIDIS_0050:()=>uI,VIDIS_0090:()=>hI,VIDIS_0100:()=>HI,VIDIS_0110:()=>qI,VIDIS_0120:()=>$I,VIDIS_0121:()=>pI,VIDIS_0122:()=>mI,VIDIS_0123:()=>fI,VIDIS_0124:()=>gI,VIDIS_0125:()=>vI,VIDIS_0126:()=>bI,VIDIS_0131:()=>yI,VIDIS_0132:()=>_I,VIDIS_0133:()=>xI,VIDIS_0134:()=>wI,VIDIS_0135:()=>SI,VIDIS_0136:()=>EI,VIDIS_0190:()=>kI,VIDIS_0200:()=>YI,VIDIS_0210:()=>CI,VIDIS_0211:()=>DI,VIDIS_0230:()=>II,VIDIS_0290:()=>AI,VIDIS_0330:()=>OI,VIDIS_0340:()=>UI,VIDIS_0341:()=>GI,VIDIS_0400:()=>jI,VIDIS_04001:()=>WI,VIDIS_0435:()=>TI,VIDIS_0440:()=>NI,VIDIS_3030:()=>BI,VIDIS_3090:()=>FI,VIDIS_3100:()=>VI,VIDIS_3120:()=>zI,VIDIS_3140:()=>LI,VIDIS_3150:()=>RI,VIDIS_5000:()=>MI,VIDIS_7000:()=>PI,"action-not-authorized-close-button":()=>f2,"action-not-authorized-title":()=>m2,"data-not-available-title":()=>p2,default:()=>$fe,general:()=>ZI,"has-hidden-prescriptions":()=>n2,"incorrect-elements-ms-detail":()=>v2,"incorrect-elements-ms-list":()=>g2,invalid_date_format:()=>t2,myHealth:()=>QI,myHealthUrl:()=>JI,network_error:()=>e2,"no-access":()=>XI,prescriptionList:()=>KI,"report-message-confirm-toast":()=>h2,"report-message-content":()=>s2,"report-message-explanation":()=>o2,"report-message-ignore-button":()=>u2,"report-message-link":()=>c2,"report-message-report-button":()=>d2,"report-message-term-use":()=>l2,"report-message-title":()=>r2,"status-message-content":()=>a2,"status-message-title":()=>i2});var dI="Dit ging jammer genoeg niet goed. Probeert u het even opnieuw? (VIDIS_0035)",uI="Het INSZ-patiëntnummer ontbreekt. (VIDIS_0050)",hI="De persoonlijke informatie verstrekt werd niet herkend. (VIDIS_0090)",pI="Het raadplegen van gegevens van een Brusselse patiënt is momenteel niet toegelaten.",mI="Het raadplegen van gegevens van een Waalse patiënt is op dit moment niet toegelaten.",fI="Het raadplegen van gegevens van een Brusselse kind door een ouder is momenteel niet toegelaten.",gI="Het raadplegen van gegevens van een Waalse kind door een ouder is momenteel niet toegelaten.",vI="Het raadplegen van gegevens van een Brusselse patiënt door een volmacht is momenteel niet toegelaten.",bI="Het raadplegen van gegevens van een Waalse patiënt door een volmacht is momenteel niet toegelaten.",yI="Het raadplegen van de gegevens van een Brusselse patiënt is momenteel niet toegestaan.",_I="Het raadplegen van de gegevens van een Waalse patiënt is momenteel niet toegestaan.",xI="Het raadplegen van de gegevens van een Brussels kind door een ouder is momenteel niet toegestaan.",wI="Het raadplegen van de gegevens van een Waals kind door een ouder is momenteel niet toegestaan.",SI="Het raadplegen van de gegevens van een Brusselse patiënt door een gemachtigde is momenteel niet toegestaan.",EI="Het raadplegen van de gegevens van een Waalse patiënt door een gemachtigde is momenteel niet toegestaan.",kI="Het INSZ-patiëntnummer is ongeldig. (VIDIS_0190)",CI="Het inloggen is niet geslaagd. Probeert u het even opnieuw? (VIDIS_0210)",DI="Het inloggen is niet geslaagd. Probeert u het even opnieuw? (VIDIS_0211)",II="Het verzoek is ongeldig. (VIDIS_0230)",AI="Gebruikersrol moet burger zijn. (VIDIS_0290)",OI="Uw authenticatieniveau is onvoldoende om toegang te krijgen tot deze pagina. Gelieve u op een andere manier te authenticeren (itsme, eID of een beveiligingscode verstuurd via email of een app). (VIDIS_0330)",TI="Kan de opslagregio van het medicatieschema niet bepalen. (VIDIS_0435)",NI="Dit ging jammer genoeg niet goed. Probeert u het even opnieuw? (VIDIS_0440)",MI="Het is jammer genoeg niet gelukt uw gegevens op te halen. Probeert u het even opnieuw? (VIDIS_5000)",PI="Dit ging jammer genoeg niet goed. Probeert u het even opnieuw? (VIDIS_7000)",RI="Geen mandaat gevonden tussen patiënt en mandataris.",FI="Voorschrift is verlopen.",LI="Reservaties moeten gebeuren bij dezelfde apotheek als waar de visivlag is ingesteld om medicatie te kunnen afhalen. U kunt de visivlag ook leeg of open laten.",VI="De visivlag moet ingesteld zijn op dezelfde apotheek als waar u gereserveerd heeft.",zI="De patiënt in de sessie is anders dan de patiënt in de aanvraag.",jI="De gebruiker is niet gemachtigd om de aanvraag te doen.",BI="Geen mandaat gevonden tussen patiënt en mandataris.",HI="Bewerking is niet toegestaan.",$I="Er bestaat geen therapeutische relatie tussen aanvrager en patiënt.",qI="Er is geen toestemming om gezondheidsgegevens te delen.",YI="De gebruiker mag de bewerking niet uitvoeren omdat er een uitsluiting bestaat tussen de aanvrager en de patiënt.",UI="U bent niet bevoegd om de gegevens van deze patiënt te bekijken omdat uw visum niet actief is. Gelieve contact op te nemen met de FOD Volksgezondheid via het e-mailadres visa@health.fgov.be",GI="U bent niet bevoegd om de gegevens van deze patiënt te bekijken omdat - ofwel uw visum niet actief is. Gelieve contact op te nemen met de FOD Volksgezondheid via het e-mailadres visa@health.fgov.be - ofwel het RIZIV nummer van de apotheek niet geldig is. Gelieve contact op te nemen met het RIZIV via het e-mailadres dossierpharma@riziv-inami.fgov.be",WI="Uw verzoek is ongeldig. Probeer later opnieuw.",KI="Het is jammer genoeg niet gelukt de details van het voorschrift op te halen. Probeert u het even opnieuw?",ZI="Er is een interne technische fout opgetreden. Probeer het later opnieuw.",XI="Er is een interne technische fout opgetreden. Probeer het later opnieuw.",QI="Terug naar het MijnGezondheid portaal",JI="http://wwwint.mijngezondheid.belgie.be/",e2="Er is helaas een netwerkfout opgetreden. Neem contact op met uw netwerkbeheerder als het probleem aanhoudt.",t2="Ongeldig datumformaat.",i2="Service tijdelijk niet beschikbaar",a2=`Er is momenteel een probleem met de verbinding met de server.
package/diarynote.js CHANGED
@@ -1 +1 @@
1
- import"./assets/polyfills-CGYnV-49.js";import"./assets/main-DI7hQ1OL.js";/* empty css */
1
+ import"./assets/polyfills-CGYnV-49.js";import"./assets/main-DQhM5Opi.js";/* empty css */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smals-belgium-shared/vidis-diarynote",
3
- "version": "3.4.1-snapshot.4",
3
+ "version": "3.4.1",
4
4
  "description": "Diary notes web component",
5
5
  "main": "diarynote.js",
6
6
  "author": "smals",