1"use strict";(self.webpackChunkhapis=self.webpackChunkhapis||[]).push([[713],{33713:(he,$,c)=>{c.r($),c.d($,{DirectingDashboardContainerComponent:()=>ue,DirectingDetailContainerComponent:()=>pe,HapisDirectingFeatureModule:()=>Re});var l=c(36895),d=c(19132),B=c(11520),M=c(39300),Z=c(39841),u=c(90072),f=c(82910),p=c(87629),D=c(98743),Jt=c(5392),t=c(94650);const z=class{static groupContacts(e){const n=(0,Jt.ru)(e,i=>i.columnType);return Object.keys(n).map(i=>{const o=n[i];return{statusName:parseInt(i),contacts:o}})}};let ge=z;z.\u0275fac=function(n){return new(n||z)},z.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"});var S=c(17489),_=c(77354),h=c(8972),x=(()=>{return(s=x||(x={})).PLANNED="planned",s.IDLE="idle",s.IN_TREATMENT="in-treatment",s.FINISHED="finished",x;var s})();const F=class{static getGroupStatusIdForType(e,n){return e===x.IDLE?F.getIdleStatusId(n):e===x.IN_TREATMENT?F.getInTreatmentStatusId(n):e===x.FINISHED?F.getFinishedStatusId(n):F.getPlannedStatusId(n)}static getPlannedStatusId(e){switch(e){default:case _.r.CONSULT_ID:return h.b.PATIENT_ON_THE_WAY;case _.r.VISIT_ID:return h.b.AWAITING_VISIT;case _.r.PHONECALL_ID:case _.r.VIDEOCALL_ID:return h.b.AWAITING_PHONECALL}}static getIdleStatusId(e){switch(e){default:case _.r.CONSULT_ID:return h.b.PATIENT_IN_WAITING_ROOM;case _.r.VISIT_ID:return h.b.CAR_ON_THE_WAY;case _.r.PHONECALL_ID:case _.r.VIDEOCALL_ID:return h.b.PREPARING_PHONECALL}}static getInTreatmentStatusId(e){switch(e){default:case _.r.CONSULT_ID:return h.b.PATIENT_BEING_TREATED;case _.r.VISIT_ID:return h.b.CAR_HAS_ARRIVED;case _.r.PHONECALL_ID:case _.r.VIDEOCALL_ID:return h.b.ON_THE_PHONE}}static getFinishedStatusId(e){switch(e){default:case _.r.CONSULT_ID:return h.b.CONTACT_FINISHED;case _.r.VISIT_ID:return h.b.VISIT_FINISHED;case _.r.PHONECALL_ID:case _.r.VIDEOCALL_ID:return h.b.PHONECALL_FINISHED;case _.r.TRIAGE_CONSULT_ID:case _.r.POSTPONED_TRIAGE_ID:return h.b.CONTACT_FINISHED}}static isFinished(e){return this.callStatusGroups[x.FINISHED].statusIds.includes(e)}static isBeingAuthorized(e){return h.b.CONTACT_BEING_AUTHORIZED===e}static isInTreatment(e){return this.callStatusGroups[x.IN_TREATMENT].statusIds.includes(e)}static isPlanned(e){return this.callStatusGroups[x.PLANNED].statusIds.includes(e)}static isIdle(e){return this.callStatusGroups[x.IDLE].statusIds.includes(e)}static getStatusGroupSlug(e){const i=Object.values(F.callStatusGroups).find(o=>o.statusIds.includes(e));return i?i.slug:null}static getStatusGroupName(e){return Object.values(F.callStatusGroups).find(o=>o.statusIds.includes(e))?.name||"Afspraak ingepland"}static getStatusNames(){return Object.values(F.callStatusGroups).map(e=>e.name)}static canWriteDossier(e,n,i){return F.isInTreatment(e)&&i===n||F.isFinished(e)}};let fe=F;F.callStatusGroups={planned:{name:"Afspraak ingepland",slug:x.PLANNED,orderBy:e=>e,statusIds:[h.b.PATIENT_ON_THE_WAY,h.b.AWAITING_VISIT,h.b.AWAITING_PHONECALL],enableWeekdayIndicator:!0},idle:{name:"Wachtkamer",slug:x.IDLE,orderBy:e=>e,statusIds:[h.b.PATIENT_IN_WAITING_ROOM,h.b.CAR_ON_THE_WAY,h.b.PREPARING_PHONECALL],enableWeekdayIndicator:!1},"in-treatment":{name:"In behandeling",slug:x.IN_TREATMENT,orderBy:e=>e,statusIds:[h.b.PATIENT_BEING_TREATED,h.b.CAR_HAS_ARRIVED,h.b.ON_THE_PHONE],enableWeekdayIndicator:!1},finished:{name:"Afgerond",slug:x.FINISHED,orderBy:e=>e,statusIds:[h.b.PHONECALL_FINISHED,h.b.VISIT_FINISHED,h.b.CONTACT_FINISHED,h.b.CONTACT_BEING_AUTHORIZED],enableWeekdayIndicator:!1}};class Sn{static getUrgencyTotal(e){const n=Object.values(fe.callStatusGroups).map(a=>a.name),i=["U0","U1","U2","U3","U4","U5"],o=(0,S.groupBy)(e,"columnType");return Object.keys(o).sort((a,r)=>n.indexOf(a)-n.indexOf(r)).map(a=>{const r=o[a],m=(0,S.groupBy)(r,"urgency");return{statusName:parseInt(a),urgencyDetails:Object.keys(m).sort((C,Vt)=>i.indexOf(C)-i.indexOf(Vt)).map(C=>({urgencyNumber:C,total:m[C].length,percentage:m[C].length/r.length*100}))}})}}class mt{static getTimeSlotTypeListGroupby(e,n){return e.map(i=>mt.getTimeSlotTypeGroupBy(i,n))}static getTimeSlotTypeGroupBy(e,n){const i=(0,S.groupBy)(e.slots,"type.n
1ame"),o=Object.keys(i).map(a=>{const r=i[a],m=n.filter(Vt=>Vt.assigneeId===e.id);return{type:a,timeSlots:mt.timeSlotList(r,m)}});return{assigneeId:e.id,timeSlotsTypeList:o}}static timeSlotList(e,n){return e.map(i=>{let o=[];return n&&(o=mt.filterScheduleAdjustment(n,i)),{startTime:i.startTime||null,endTime:i.endTime||null,isOccupied:i.occupiedAmount>=i.capacity.totalAmount,isClosed:0===i.capacity.schemaAmount&&i.capacity.adjustmentAmount<=0,scheduleAdjustments:o.map(a=>({name:a.type.name,capacity:a.capacity}))}})}static filterScheduleAdjustment(e,n){return e.filter(i=>{const o=p.ou.fromISO(n.start).set({second:0,millisecond:0}),a=p.ou.fromISO(n.end).set({second:0,millisecond:0});return o>i.startTime&&o<i.endTime||a>i.startTime&&a<i.endTime||o>i.startTime&&a<i.endTime})}}const N=class{static getGraphStartTime(){let e;const n=p.ou.fromISO(p.ou.local().toISO());return e=n.set(n.minute>=30?{minute:30}:{minute:0}),e}static toTimeFormat(e){return p.ou.fromFormat(e.toString(),u.i0.asInt).toFormat(u.i0.hourMinute)}static parseDateTimeToInt(e){return parseInt(e.toFormat(u.i0.asInt),10)}static getGraphTimeSpan(){const e=[];let n=N.getGraphStartTime(),i=N.getGraphStartTime().plus({minutes:30}),o=0;for(;o<30;)n=n.plus({minutes:30}),i=i.plus({minutes:30}),e.push({startTime:N.parseDateTimeToInt(n),endTime:N.parseDateTimeToInt(i)}),o++;return e}};let w=N;N.\u0275fac=function(n){return new(n||N)},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"});var xn=c(61135);const We=class{static getChartDataList(e){const n=w.getGraphTimeSpan();return e.map(i=>{this.storeOverOccupationMinutes.next(0);const o=n.map((a,r)=>{const m=this.filteredSlots(i.slots,a),C=this.filteredAppointments(i.contacts,a,0===r);return this.calculateGraphData(a,m,C)});return{assigneeId:i.id,graphCalculationData:o}})}static getChartDataSelectedAssignee(e){if(!e)return null;const n=w.getGraphTimeSpan();return this.storeOverOccupationMinutes.next(0),n.map((i,o)=>{const a=this.filteredSlots(e.slots,i),r=this.filteredAppointments(e.contacts,i,0===o);return this.calculateGraphData(i,a,r)})}static filteredSlots(e,n){return e.filter(i=>i.startAsInt&&i.startAsInt>=n.startTime&&i.startAsInt<n.endTime)}static filteredAppointments(e,n,i){return e.filter(o=>o.columnType!==D.g8.InTreatment&&this.isWithinTimeSpan(w.parseDateTimeToInt(o.appointment),n,i))}static isWithinTimeSpan(e,n,i){return(i||e>=n.startTime)&&e<n.endTime}static calculateGraphData(e,n,i){const o=Object.values((0,S.groupBy)(n,"startAsInt")).map(J=>(0,S.maxBy)(J,"capacity.totalAmount")),r=o.map(J=>J?.capacity.totalAmount||0).reduce((J,qe)=>J+qe,0)/o.length||0,m=p.ou.fromFormat(`${e.startTime}`,u.i0.asInt),C=p.ou.local(),Vt=m<C?C:m,Rt=r*p.ou.fromFormat(`${e.endTime}`,u.i0.asInt).diff(Vt,"minutes").minutes,so=this.storeOverOccupationMinutes.getValue();this.storeOverOccupationMinutes.next(0);let pt=i.map(J=>J.duration).reduce((J,qe)=>J+qe,0)+so,me=0;return pt>Rt&&(me=pt-Rt,pt-=me,this.storeOverOccupationMinutes.next(me)),{timeSpans:e,capacityDegree:r,capacityMinutes:Rt||0,occupationMinutes:pt,occupationDegree:pt/Rt*r||0,occupationPercentage:pt/Rt*100||0,overOccupationMinutes:me}}};let Wt=We;We.storeOverOccupationMinutes=new xn.X(0);class ht{static combineSlotsAndContacts(e,n){return e.map(i=>{const o=n.find(a=>a.id===i.id);return{...i,locationId:o?.locationId?o.locationId:"",location:o?.location?o.location:"",contacts:o?.contacts?o.contacts:[]}})}static getAssigneeInfo(e,n){return e.map(i=>({id:i.id,name:i.name,location:i.location,contactTypeIds:(0,S.uniq)((0,S.flatten)(i.contacts.map(o=>o.id))),chartData:Wt.getChartDataList(e).find(o=>o.assigneeId===i.id)?.graphCalculationData||[]})).filter(i=>ht.determineIfShouldShowGraphDataItem(i,n))}static getContacts(e){return e.map(n=>({assigneeId:n.id,contacts:n.contacts}))}static getLocationsWithAssignees(e){const n=(0,S.groupBy)(e,"locationId");return Object.keys(n).map(i=>({id:i,name:n[i][0].location,assignees:n[i].map(o=>({id:o.id,name:o.name}))}))}static determineIfShouldShowGraphDataItem(e,n){return!(n.selectedLocations.length&&!n.selectedLocations.includes(e.location)||n.selectedAssignees.length&&!n.selectedAssignees.includes(e.name)||n.selectedContactTypes.length&&!n.selectedContactTypes.some(i=>e.contactTypeIds.indexOf(i)>=0))}}const V=class{static setupLocationsFilter(e){return(0,S.uniq)(e.map(i=>i.location)).map(i=>({label:i,value:i,selected:!1}))}static setupAgendasPerLocation(e){const n=(0,S.groupBy)(e,"location"),i=[];
1return Object.keys(n).forEach(o=>{i.push({title:o,options:n[o].map(a=>({label:a.name,value:a.name,selected:!1}))})}),i}static setupContactTypes(){return _.r.getTypes().map(e=>({label:e.name,value:e.id,selected:!1}))}static toggleSelectedMultiSelectFilterOption(e,n){return e.map(i=>n.find(o=>o.value===i.value)?(i.selected=!0,i):(i.selected=!1,i))}};let P=V;V.\u0275fac=function(n){return new(n||V)},V.\u0275prov=t.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"});class _e{static getAssigneeInfo(e){return e?{id:e.id,name:e.name,location:e.location,contactTypeIds:(0,S.uniq)((0,S.flatten)(e.contacts.map(n=>n.id))),chartData:Wt.getChartDataSelectedAssignee(e)||[]}:null}static getContact(e){return e?e.contacts.sort((n,i)=>n.columnType-i.columnType):null}static getScheduleAdjustmentPayload(e){return e?{selectedAssigneeId:e.id,selectedIbId:e.locationId,locations:[{id:e.locationId,name:e.location,assignees:[{id:e.id,name:e.name}]}]}:null}}var In=c(54826);class Zn{static build(e,n){const i=n.triageSubContacts[0]?.lines.find(o=>o.type===In.$.Complaint)?.text;return{patientName:e.patient.name,appointment:e.appointment,contactedOn:e.contactedOn?e.contactedOn:null,subjective:i||"",remainingWaitingTimeMinutes:e.remainingWaitingMinutes.toString()||"",entryComplaints:e.entryComplaints||[],birthdate:e.patient.birthDate?p.ou.fromFormat(e.patient.birthDate.toString(),u.i0.yearMonthDay):null}}}
1var qt=c(63787),Ln=c(9795),gt=c(63900),y=c(54004),U=c(18505);const bn={callsAssignees:[],assigneeWithSlots:[],scheduleAdjustments:[],assigneeId:null,lastUpdatedStatus:p.ou.local(),isTwoColumnView:!1,isDetailedView:!1};var ft=c(32759);const Ke={selectedLocations:[],selectedAssignees:[],selectedContactTypes:[],locations:[],assignees:[],contactTypes:[]},R=class extends qt.m1{constructor(){super(Ke),this.selectedFilters$=this.select(({selectedLocations:e,selectedAssignees:n,selectedContactTypes:i})=>({selectedLocations:e,selectedContactTypes:i,selectedAssignees:n})),this.locations$=this.select(({locations:e})=>e),this.assignees$=this.select(({assignees:e})=>e),this.contactTypes$=this.select(({contactTypes:e})=>e),this.setSelectedLocations=this.updater((e,n)=>({...e,selectedLocations:n.map(i=>i.value),locations:P.toggleSelectedMultiSelectFilterOption(e.locations,n)})),this.setSelectedAssignees=this.updater((e,n)=>({...e,selectedAssignees:n.map(i=>i.value),assignees:e.assignees.map(i=>({...i,options:P.toggleSelectedMultiSelectFilterOption(i.options,n)}))})),this.setSelectedContactTypes=this.updater((e,n)=>({...e,selectedContactTypes:n.map(i=>i.value),contactTypes:P.toggleSelectedMultiSelectFilterOption(e.contactTypes,n)})),this.setDefaultFilterOptions=this.updater((e,n)=>({...e,locations:P.setupLocationsFilter(n),assignees:P.setupAgendasPerLocation(n),contactTypes:P.setupContactTypes()})),this.clearFilters=this.updater(e=>({...Ke,locations:ft.qr.deselectOptions(e.locations),assignees:e.assignees.map(n=>({...n,options:ft.qr.deselectOptions(n.options)})),contactTypes:ft.qr.deselectOptions(e.contactTypes)}))}};let Te=R;R.\u0275fac=function(n){return new(n||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"});var _t=c(39646),Xe=c(69718),Kt=c(70262),tn=c(53269),Fn=c(81042);const W=class{create(e,n,i,o,a,r,m,C){return{id:Fn.Z(),ibId:e.id,ibName:e.name,assigneeId:n.id,assigneeName:n.name,capacity:i,endDate:r,endTime:p.ou.fromJSDate(m),startDate:o,startTime:p.ou.fromJSDate(a),type:C}}};let Ce=W;W.\u0275fac=function(n){return new(n||W)},W.\u0275prov=t.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"});var On=c(97705);const Q=class extends On.F{transform(e){const n=p.ou.fromISO(e.startDate),i=p.ou.fromISO(e.endDate),o=p.ou.fromFormat(`${n.toFormat(u.i0.yearMonthDay)} ${e.startTime}`,u.i0.yearMonthDayHourMinuteSeconds),a=p.ou.fromFormat(`${i.toFormat(u.i0.yearMonthDay)} ${e.endTime}`,u.i0.yearMonthDayHourMinuteSeconds);return{...e,startDate:n,startTime:o,endDate:i,endTime:a}}};let ye=Q;Q.\u0275fac=function(){let e;return function(i){return(e||(e=t.n5z(Q)))(i||Q)}}(),Q.\u0275prov=t.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"});const q=class{static setupLocationFilter(e){return e.map(n=>({value:n.id,label:n.name,selected:!1}))}static setupAgendaFilter(e){return e.map(n=>({title:n.name,options:n.assignees.map(i=>({label:i.name,value:i.id,selected:!1}))}))}};let Xt=q;q.\u0275fac=function(n){return new(n||q)},q.\u0275prov=t.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"});const K=class{constructor(e,n){this.httpApiService=e,this.transformer=n}getList(e){const n=p.ou.fromFormat(p.ou.fromJSDate(new Date).toFormat(u.i0.yearMonthDay),u.i0.yearMonthDay),i=new URLSearchParams;return i.append("From",e?p.ou.fromJSDate(e).toISO():n.toISO()),this.httpApiService.get("profiles/schema-adjustments",i).pipe((0,y.U)(o=>o.data.map(this.transformer.transform)))}getPaginatedList(e,n){const i=p.ou.fromFormat(p.ou.fromJSDate(new Date).toFormat(u.i0.yearMonthDay),u.i0.yearMonthDay),o=new URLSearchParams;return o.append("From",n?.startDate?n.startDate.toISO():i.toISO()),o.append("Page",(e||1).toString()),n?.selectedLocation&&n.selectedLocation.forEach(a=>{o.append("ib",a.value)}),n?.endDate&&o.append("to",n.endDate.toISO()),n?.selectedAssignee&&n.selectedAssignee.forEach(a=>{o.append("a",a)}),this.httpApiService.get("profiles/schema-adjustments",o).pipe((0,y.U)(a=>({paging:a.paging,data:a.data.map(this.transformer.transform)})))}delete(e){return this.httpApiService.delete(`profiles/schema-adjustments/${e}`).pipe((0,Xe.h)(!0),(0,Kt.K)(()=>(0,_t.of)(!1)))}create(e){const n=e.endTime.toFormat(u.i0.hourMinuteSeconds),i={assigneeId:e.assigneeId,typeId:e.type.id,capacity:e.capacity,startTime:e.startTime.toFormat(u.i0.hourMinuteSeconds),endTime:"00:00:00"===n?"23:59:59":n,startDate:e.startDate.toISO(),endDate:e.endDate.toISO()};return this.httpApiService.post("profiles/schema-adjustments",i).pipe((0,Xe.h)(!0),(0,Kt.K)(()=>(0,_t.of)(!1)))}};let $t=K;
1K.\u0275fac=function(n){return new(n||K)(t.LFG(tn.OG),t.LFG(ye))},K.\u0275prov=t.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"});const wn={adjustments:[],locations:[],selectedLocationId:null,selectedAssigneeId:null,types:[{id:"01f232c4-8d60-45c1-ad7c-60167a44c201",code:1,mnemonic:"P",name:"Pauze"},{id:"01f232c4-8d60-45c1-ad7c-60167a44c202",code:2,mnemonic:"B",name:"Blokkade"},{id:"01f232c4-8d60-45c1-ad7c-60167a44c203",code:3,mnemonic:"U",name:"Uitbreiding capaciteit"},{id:"01f232c4-8d60-45c1-ad7c-60167a44c204",code:4,mnemonic:"WO",name:"Werkoverdracht"},{id:"01f232c4-8d60-45c1-ad7c-60167a44c205",code:5,mnemonic:"AU",name:"Autorisatie"}]};var en=c(11365),Nn=c(28746),Tt=c(60515),te=c(85867);const nn={queryParams:{selectedLocation:[],selectedAssignee:[],endDate:null,startDate:null},locationOptions:[],assigneeOptions:[]},X=class extends qt.m1{constructor(){super(nn),this.queryParams$=this.select(({queryParams:e})=>e),this.startDate$=this.select(({queryParams:e})=>e.startDate),this.endDate$=this.select(({queryParams:e})=>e.endDate),this.locationOptions$=this.select(({locationOptions:e})=>e),this.assigneeOptions$=this.select(({assigneeOptions:e})=>e),this.setFilterOptions=this.updater((e,n)=>({...e,locationOptions:Xt.setupLocationFilter(n),assigneeOptions:Xt.setupAgendaFilter(n)})),this.setDateFilter=this.updater((e,n)=>({...e,queryParams:{...e.queryParams,startDate:n.startDate,endDate:n.endDate||n.startDate}})),this.clearDateFilters=this.updater(e=>({...e,queryParams:{...e.queryParams,startDate:null,endDate:null}})),this.selectLocationFilter=this.updater((e,n)=>{const i=ft.LD.setFilterOptions(e.locationOptions,n);return{...e,locationOptions:i,queryParams:{...e.queryParams,selectedLocation:i.filter(o=>o.selected)}}}),this.selectAssigneeFilter=this.updater((e,n)=>{const i=e.assigneeOptions.map(o=>({...o,options:P.toggleSelectedMultiSelectFilterOption(o.options,n)}));return{...e,assigneeOptions:i,queryParams:{...e.queryParams,selectedAssignee:n.map(o=>o.value)}}}),this.clearFilters=this.updater(e=>({...e,locationOptions:ft.qr.deselectOptions(e.locationOptions),assigneeOptions:e.assigneeOptions.map(n=>({...n,options:ft.qr.deselectOptions(n.options)})),queryParams:nn.queryParams}))}};let Ct=X;X.\u0275fac=function(n){return new(n||X)},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac});var sn=c(5203),on=c(17758);const tt=class extends qt.m1{constructor(e,n,i,o){super(wn),this.pagingService=e,this.scheduleAdjustmentFilterStore=n,this.scheduleAdjustmentService=i,this.apiStatusStoreFactoryService=o,this.adjustments$=this.select(({adjustments:a})=>a),this.locations$=this.select(({locations:a})=>a),this.selectedLocationId$=this.select(({selectedLocationId:a})=>a),this.selectedAssigneeId$=this.select(({selectedAssigneeId:a})=>a),this.types$=this.select(({types:a})=>a),this.addAdjustments=this.updater((a,r)=>({...a,adjustments:[...a.adjustments,...r]})),this.setLocations=this.updater((a,r)=>({...a,locations:r})),this.setSelectedLocationId=this.updater((a,r)=>({...a,selectedLocationId:r})),this.setSelectedAssigneeId=this.updater((a,r)=>({...a,selectedAssigneeId:r})),this.loadAdjustments=this.effect(a=>a.pipe((0,en.M)(this.scheduleAdjustmentFilterStore.queryParams$),(0,gt.w)(([r,m])=>(this.resetAdjustments(),this.handleAdjustments(r,m))))),this.loadMoreAdjustments=this.effect(a=>a.pipe((0,en.M)(this.scheduleAdjustmentFilterStore.queryParams$),(0,gt.w)(([r,m])=>this.handleAdjustments(r,m)))),this.resetAdjustments=this.updater(a=>({...a,adjustments:[]})),this.apiStatusStore=o.getClassInstance({status:te.B.Idle})}handleAdjustments(e,n){return this.apiStatusStore.startLoading(),this.scheduleAdjustmentService.getPaginatedList(e,n).pipe((0,U.b)(i=>{this.addAdjustments(i.data),this.pagingService.setPaging(i.paging)}),(0,Nn.x)(()=>this.apiStatusStore.stopLoading()),(0,Kt.K)(()=>(this.apiStatusStore.startCorruption(),Tt.E)))}};let kt=tt;tt.\u0275fac=function(n){return new(n||tt)(t.LFG(sn.d),t.LFG(Ct),t.LFG($t),t.LFG(on.v))},tt.\u0275prov=t.Yz7({token:tt,factory:tt.\u0275fac});var Mn=c(10587);const et=class extends qt.m1{constructor(e,n,i,o){super(bn),this.filterStore=e,this.callBoardApiService=n,this.agendaService=i,this.scheduleAdjustmentDataService=o,this.callsAssignees$=this.select(({callsAssignees:a})=>a),this.assigneeWithSlots$=this.select(({assigneeWithSlots:a})=>a),this.scheduleAdjustments$=this.select(({scheduleAdjustments:a})=>a),this.assigneesWithSlotsAndContacts$=this.select(this.callsAssignees$,this.assigneeWithSlots$,(a,r)=>ht.combineSlotsAndContacts(r,a)),this.selectedAssigneeId$=this.select(({assigneeId:a})=>a),this.selectedAssigneeWithSlotsAndContacts$=this.select(this.selectedAssigneeId$,this.assigneesWithSlotsAndContacts$,(a,r)=>r.find(m=>m.id===a)),this.assigneeInfo$=this.select(this.assigneesWithSlotsAndContacts$,this.filterStore.selectedFilters$,(a,r)=>ht.getAssigneeInfo(a,r)),this.lastUpdatedStatus$=this.select(({lastUpdatedStatus:a})=>a),this.isTwoColumnView$=this.select(({isTwoColumnView:a})=>a),this.isDetailedView$=this.select(({isDetailedView:a})=>a),this.toggleTwoColumnView=this.updater(a=>({...a,isTwoColumnView:!a.isTwoColumnView})),this.toggleDetailedView=this.updater(a=>({...a,isDetailedView:!a.isDetailedView})),this.setAssigneeId=this.updater((a,r)=>({...a,assigneeId:r})),this.setCallsAssignees=this.updater((a,r)=>({...a,callsAssignees:r})),this.setAssigneesWithSlots=this.updater((a,r)=>({...a,assigneeWithSlots:r})),this.setScheduleAdjustments=this.updater((a,r)=>({...a,scheduleAdjustments:r})),this.setLastUpdatedStatus=this.updater((a,r)=>({...a,lastUpdatedStatus:r})),this.fetchAllCalls=this.effect(a=>a.pipe((0,gt.w)(()=>this.callBoardApiService.getCalls({})),(0,y.U)(r=>(0,S.flatten)(r.map(m=>m.assignees))),(0,U.b)(r=>{this.setCallsAssignees(r),this.filterStore.setDefaultFilterOptions(r)}))),this.fetchAssigneeWithSlots=this.effect(a=>a.pipe((0,gt.w)(r=>{const m=w.getGraphStartTime().toJSDate(),C=p.ou.fromJSDate(m).plus({hours:r,minutes:10}).toJSDate();return this.agendaService.getAvailableSlots(m,C)}),(0,y.U)(r=>(0,S.flatten)(r.map(m=>m.assignees))),(0,U.b)(this.setAssigneesWithSlots))),this.fetchScheduleAdjustments=this.effect(a=>a.pipe((0,gt.w)(()=>this.scheduleAdjustmentDataService.getList()),(0,U.b)(this.setScheduleAdjustments)))}};let yt=et;et.\u0275fac=function(n){return new(n||et)(t.LFG(Te),t.LFG(Mn.PH),t.LFG(Ln.im),t.LFG($t))},et.\u0275prov=t.Yz7({token:et,factory:et.\u0275fac});var b=c(56913),En=c(45282),jn=c(65853),At=c(93830),ee=(()=>{return(s=ee||(ee={}))[s.FullName=0]="FullName",s[s.Age=1]="Age",s[s.EntryComplaint=2]="EntryComplaint",s[s.Subjective=3]="Subjective",s[s.ContactedOn=4]="ContactedOn",s[s.Appointment=5]="Appointment",s[s.RemainingMinutes=6]="RemainingMinutes",ee;var s})();const nt=class{constructor(e,n,i){this.stringSeparationPipe=e,this.dateTimePipe=n,this.agePipe=i}getDescriptionList(e){return[{label:"Naam",value:e.patientName},{label:"Leeftijd",value:e.birthdate?this.getBirthDate(e.birthdate):""},{label:"Ingangsklacht",value:this.stringSeparationPipe.transform(e.entryComplaints)||""},{label:"Subjectief",value:e.subjective||"",slug:ee.Subjective},{label:"Contact",value:e.contactedOn?this.transformDate(e.contactedOn):""},{label:"Afspraak",value:e.appointment?this.transformDate(e.appointment):""},{label:"Resterende tijd",value:e.remainingWaitingTimeMinutes}]}getBirthDate(e){return`${this.agePipe.transform(e,!0)} (${this.dateTimePipe.transform(e,u.i0.dayMonthYear)})`}transformDate(e){return this.dateTimePipe.transform(e,u.i0.dayMonthYearHourMinute)}};let Ae=nt;nt.\u0275fac=function(n){return new(n||nt)(t.LFG(At.yS),t.LFG(At.id),t.LFG(At.CQ))},nt.\u0275prov=t.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"});var Un=c(30698),Pn=c(30795);const it=class{constructor(e,n,i){this.contactService=e,this.contactsDescriptionListFactoryService=n,this.dossierDialogHelper=i}onOpenDossier(e){this.dossierDialogHelper.open({strategy:En.y.FromContact,title:"Dossier",icon:f.e_0,patientId:e.patient.id,contactId:e.id,publicId:null,activeTab:jn.W.Journaal,isFromTriage:!1})}onOpenContactMenu(e){return this.contactService.getDetails(e.id).pipe((0,y.U)(n=>{const i=Zn.build(e,n);return this.contactsDescriptionListFactoryService.getDescriptionList(i)}))}};let ne=it;it.\u0275fac=function(n){return new(n||it)(t.LFG(Pn.D),t.LFG(Ae),t.LFG(Un.UU))},it.\u0275prov=t.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"});var ve=c(31476),T=c(24006),De=c(78087),g=c(62710),Se=c(29203),xe=c(85208),Qt=c(99602),an=c(27686),L=c(99818),I=c(43239),Ie=c(28493);const st=class{};let Ze=st;st.\u0275fac=function(n){return new(n||st)},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({imports:[l.ez,T.UX,At.jp,De.jb,g.U5,Se.x4,xe.uw,Qt.FA,an.gf,L.yu,I.jT,Ie.Rq]});var k=c(47150),ie=c(55581);function Jn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Locatie"),t.qZA())}function $n(s,e){if(1&s&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.Oqu(n.ibName)}}function kn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Agenda"),t.qZA())}function Qn(s,e){if(1&s&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.Oqu(n.assigneeName)}}function Yn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Capaciteit"),t.qZA())}function Bn(s,e){if(1&s&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.Oqu(n.capacity)}}function Hn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Type"),t.qZA())}function Gn(s,e){if(1&s&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.Oqu(n.type.name)}
1}function zn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Startdatum"),t.qZA())}function Vn(s,e){if(1&s&&(t.TgZ(0,"td",16),t._uU(1),t.ALo(2,"dateTime"),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,n.startDate,i.luxonFormatsEnum.dayMonthYear)," ")}}function Rn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Starttijd"),t.qZA())}function Wn(s,e){if(1&s&&(t.TgZ(0,"td",16),t._uU(1),t.ALo(2,"dateTime"),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,n.startTime,i.luxonFormatsEnum.hourMinute)," ")}}function qn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Einddatum"),t.qZA())}function Kn(s,e){if(1&s&&(t.TgZ(0,"td",16),t._uU(1),t.ALo(2,"dateTime"),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,n.endDate,i.luxonFormatsEnum.dayMonthYear)," ")}}function Xn(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"Eindtijd"),t.qZA())}function ti(s,e){if(1&s&&(t.TgZ(0,"td",16),t._uU(1),t.ALo(2,"dateTime"),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,n.endTime,i.luxonFormatsEnum.hourMinute)," ")}}function ei(s,e){1&s&&(t.TgZ(0,"th",15),t._uU(1,"\xa0"),t.qZA())}function ni(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"td",16)(1,"button",18),t.NdJ("click",function(){const a=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.onDelete(a))}),t._UZ(2,"hc-icon",19),t.qZA()()}if(2&s){const n=t.oxw();t.xp6(2),t.Q6J("icon",n.icons.trash)}}function ii(s,e){1&s&&t._UZ(0,"tr",20)}function si(s,e){1&s&&t._UZ(0,"tr",21)}const vt=class{constructor(){this.deleteCapacity=new t.vpe,this.icons={trash:f.Vui},this.displayedColumns=["location","assignee","type","capacity","startDate","startTime","endDate","endTime","actions"],this.luxonFormatsEnum=u.i0}onDelete(e){this.deleteCapacity.emit(e)}};let Le=vt;vt.\u0275fac=function(n){return new(n||vt)},vt.\u0275cmp=t.Xpm({type:vt,selectors:[["hc-capacity-list"]],inputs:{adjustments:"adjustments",paging:"paging"},outputs:{deleteCapacity:"deleteCapacity"},decls:31,vars:3,consts:[["mat-table","",1,"h-100","w-100",3,"dataSource"],["matColumnDef","location"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","assignee"],["matColumnDef","capacity"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","startDate"],["matColumnDef","startTime"],["matColumnDef","endDate"],["matColumnDef","endTime"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"text-center"],["mat-icon-button","",3,"click"],[1,"text-dimmed",3,"icon"],["mat-header-row",""],["mat-row",""]],template:function(n,i){1&n&&(t.TgZ(0,"div")(1,"table",0),t.ynx(2,1),t.YNc(3,Jn,2,0,"th",2),t.YNc(4,$n,2,1,"td",3),t.BQk(),t.ynx(5,4),t.YNc(6,kn,2,0,"th",2),t.YNc(7,Qn,2,1,"td",3),t.BQk(),t.ynx(8,5),t.YNc(9,Yn,2,0,"th",2),t.YNc(10,Bn,2,1,"td",6),t.BQk(),t.ynx(11,7),t.YNc(12,Hn,2,0,"th",2),t.YNc(13,Gn,2,1,"td",3),t.BQk(),t.ynx(14,8),t.YNc(15,zn,2,0,"th",2),t.YNc(16,Vn,3,4,"td",3),t.BQk(),t.ynx(17,9),t.YNc(18,Rn,2,0,"th",2),t.YNc(19,Wn,3,4,"td",3),t.BQk(),t.ynx(20,10),t.YNc(21,qn,2,0,"th",2),t.YNc(22,Kn,3,4,"td",3),t.BQk(),t.ynx(23,11),t.YNc(24,Xn,2,0,"th",2),t.YNc(25,ti,3,4,"td",3),t.BQk(),t.ynx(26,12),t.YNc(27,ei,2,0,"th",2),t.YNc(28,ni,3,1,"td",3),t.BQk(),t.YNc(29,ii,1,0,"tr",13),t.YNc(30,si,1,0,"tr",14),t.qZA()()),2&n&&(t.xp6(1),t.Q6J("dataSource",i.adjustments),t.xp6(28),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[k.o,g.ty,g.wO,g.S4,g.t3,g.R3,g.Al,g.L7,g.ML,g.fg,g.Zw,L.eB,ie.i],encapsulation:2,changeDetection:0});var Yt=c(18455),oi=c(24363),be=c(36235);function ai(s,e){if(1&s&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n.name)}}function ci(s,e){if(1&s&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n.name)}}function ri(s,e){1&s&&(t.TgZ(0,"mat-hint"),t._uU(1,"Selecteer eerst een locatie"),t.qZA())}function li(s,e){if(1&s&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n.name)}}function di(s,e){if(1&s&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"date"),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(t.xi3(2,2,n,i.dateFormats.hourMinutes))}}function ui(s,e){if(1&s&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"date"),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.Q6J("value",n),t.xp6(1),t.Oqu(t.xi3(2,2,n,i.dateFormats.hourMinutes))}}const Dt=class{constructor(e,n){this.fb=e,this.adjustmentsFactory=n,this.submitted=new t.vpe,this.locations=[],this.types=[],this.selectedAssigneeId=null,this.selectedLocationId=null,this.now=new Date,this.dateFormats=u.C2,this.times=u.Ov.getTimeList(15),this.form=this.fb.group({location:[null,T.kI.required],assignee:[null,T.kI.required],type:[null,T.kI.required],capacity:[null,T.kI.required],startDate:[null,T.kI.required],startTime:[null,T.kI.required],endTime:[null,T.kI.required]})}ngOnChanges(e){(e.selectedLocationId||e.locations)&&this.selectedLocationId&&this.locations&&this.patchLocation(),(e.selectedAssigneeId||e.locations)&&this.selectedAssigneeId&&this.locations&&this.patchAssignee()}onSubmit(){this.form.valid&&this.submitted.emit(this.adjustmentsFactory.create(this.form.value.location,this.form.value.assignee,this.form.value.capacity,this.form.value.startDate,this.form.value.startTime,this.form.value.startDate,this.form.value.endTime,this.form.value.type))}onMenuClick(e){e.stopPropagation()}patchLocation(){this.form.controls.location.patchValue(this.findSelectedLocation())}patchAssignee(){this.form.controls.assignee.patchValue(this.findSelectedLocation()?.assignees.find(e=>e.id===this.selectedAssigneeId)||null)}findSelectedLocation(){return this.locations.find(e=>e.id===this.selectedLocationId)||null}};let Fe=Dt;Dt.\u0275fac=function(n){return new(n||Dt)(t.Y36(T.QS),t.Y36(Ce))},Dt.\u0275cmp=t.Xpm({type:Dt,selectors:[["hc-schedule-adjustment-form"]],inputs:{locations:"locations",types:"types",selectedAssigneeId:"selectedAssigneeId",selectedLocationId:"selectedLocationId"},outputs:{submitted:"submitted"},features:[t._Bn([u.Bh]),t.TTD],decls:47,vars:11,consts:[[3,"click","keydown.tab"],[1,"d-block","w-100",3,"formGroup","ngSubmit"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["formControlName","assignee",3,"disabled"],[4,"ngIf"],[1,"col-6"],["formControlName","type"],["matInput","","type","number","formControlName","capacity"],["matInput","","formControlName","startDate",3,"min","matDatepicker"],["matSuffix","",3,"for"],["startDatePicker",""],["formControlName","startTime"],["formControlName","endTime"],[1,"d-flex","justify-content-end"],["mat-button","","color","primary"],[3,"value"]],template:function(n,i){if
1(1&n&&(t.TgZ(0,"div",0),t.NdJ("click",function(a){return i.onMenuClick(a)})("keydown.tab",function(a){return i.onMenuClick(a)}),t.TgZ(1,"form",1),t.NdJ("ngSubmit",function(){return i.onSubmit()}),t.TgZ(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),t._uU(6,"Locatie"),t.qZA(),t.TgZ(7,"mat-select",5),t.YNc(8,ai,2,2,"mat-option",6),t.qZA()()(),t.TgZ(9,"div",3)(10,"mat-form-field",4)(11,"mat-label"),t._uU(12,"Agenda"),t.qZA(),t.TgZ(13,"mat-select",7),t.YNc(14,ci,2,2,"mat-option",6),t.qZA(),t.YNc(15,ri,2,0,"mat-hint",8),t.qZA()(),t.TgZ(16,"div",3)(17,"mat-form-field",9)(18,"mat-label"),t._uU(19,"Type"),t.qZA(),t.TgZ(20,"mat-select",10),t.YNc(21,li,2,2,"mat-option",6),t.qZA()(),t.TgZ(22,"mat-form-field",9)(23,"mat-label"),t._uU(24,"Capaciteit"),t.qZA(),t._UZ(25,"input",11),t.qZA()(),t.TgZ(26,"div",3)(27,"mat-form-field",4)(28,"mat-label"),t._uU(29,"Datum"),t.qZA(),t._UZ(30,"input",12)(31,"mat-datepicker-toggle",13)(32,"mat-datepicker",null,14),t.qZA(),t.TgZ(34,"mat-form-field",9)(35,"mat-label"),t._uU(36,"Starttijd"),t.qZA(),t.TgZ(37,"mat-select",15),t.YNc(38,di,3,5,"mat-option",6),t.qZA()(),t.TgZ(39,"mat-form-field",9)(40,"mat-label"),t._uU(41,"Eindtijd"),t.qZA(),t.TgZ(42,"mat-select",16),t.YNc(43,ui,3,5,"mat-option",6),t.qZA()()()(),t.TgZ(44,"div",17)(45,"button",18),t._uU(46,"Toevoegen"),t.qZA()()()()),2&n){const o=t.MAs(33);t.xp6(1),t.Q6J("formGroup",i.form),t.xp6(7),t.Q6J("ngForOf",i.locations),t.xp6(5),t.Q6J("disabled",!i.form.get("location").value),t.xp6(1),t.Q6J("ngForOf",null==i.form.get("location").value?null:i.form.get("location").value.assignees),t.xp6(1),t.Q6J("ngIf",!i.form.get("location").value),t.xp6(6),t.Q6J("ngForOf",i.types),t.xp6(9),t.Q6J("min",i.now)("matDatepicker",o),t.xp6(1),t.Q6J("for",o),t.xp6(7),t.Q6J("ngForOf",i.times),t.xp6(5),t.Q6J("ngForOf",i.times)}},dependencies:[l.sg,l.O5,T._Y,T.Fj,T.wV,T.JJ,T.JL,T.sg,T.u,Yt.v_,Yt.pH,Yt.$V,Yt.nX,Se.k0,xe.x8,oi.CK,Qt.Mq,Qt.hl,Qt.nW,L.eB,be.F],encapsulation:2,changeDetection:0});const pi=["formMenuTrigger"];function mi(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"h5",8),t._uU(3,"Capaciteit toevoegen"),t.qZA(),t.TgZ(4,"button",9),t._UZ(5,"hc-icon",2),t.qZA()(),t.TgZ(6,"hc-schedule-adjustment-form",10),t.NdJ("submitted",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onSubmit(o))}),t.qZA()()}if(2&s){const n=t.oxw();t.xp6(5),t.Q6J("icon",n.icons.close),t.xp6(1),t.Q6J("selectedAssigneeId",n.selectedAssigneeId)("selectedLocationId",n.selectedLocationId)("types",n.types)("locations",n.locations)}}const St=class{constructor(){this.selectedAssigneeId=null,this.selectedLocationId=null,this.types=[],this.locations=[],this.submitted=new t.vpe,this.icons={plus:f.r8p,close:f.NBC}}onSubmit(e){this.submitted.emit(e),this.formMenuTrigger.closeMenu()}};let Oe=St;St.\u0275fac=function(n){return new(n||St)},St.\u0275cmp=t.Xpm({type:St,selectors:[["hc-capacity-button"]],viewQuery:function(n,i){if(1&n&&t.Gf(pi,5),2&n){let o;t.iGM(o=t.CRH())&&(i.formMenuTrigger=o.first)}},inputs:{selectedAssigneeId:"selectedAssigneeId",selectedLocationId:"selectedLocationId",types:"types",locations:"locations"},outputs:{submitted:"submitted"},decls:8,vars:4,consts:[["mat-button","","color","primary",3,"matMenuTriggerFor"],["formMenuTrigger","matMenuTrigger"],[3,"icon"],[1,"min-w-fixed-400","mw-none",3,"xPosition","hasBackdrop"],["formMenu","matMenu"],["matMenuContent",""],[1,"p-2"],[1,"d-flex","justify-content-between","align-items-center","px-2"],[1,"m-0"],["mat-icon-button",""],[3,"selectedAssigneeId","selectedLocationId","types","locations","submitted"]],template:function(n,i){if(1&n&&(t.TgZ(0,"div")(1,"button",0,1),t._UZ(3,"hc-icon",2),t._uU(4," Capaciteit "),t.qZA(),t.TgZ(5,"mat-menu",3,4),t.YNc(7,mi,7,5,"ng-template",5),t.qZA()()),2&n){const o=t.MAs(6);t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(2),t.Q6J("icon",i.icons.plus),t.xp6(2),t.Q6J("xPosition","before")("hasBackdrop",!1)}},dependencies:[k.o,L.eB,I.W0,I.D8,I.hd,Fe],encapsulation:2,changeDetection:0});var se=c(92793),G=c(11503),cn=c(41605),rn=c(90181);const ot=class{};ot.\u0275fac=function(n){return new(n||ot)},ot.\u0275mod=t.oAB({type:ot}),ot.\u0275inj=t.cJS({imports:[l.ez,Ze,se.Wd,L.yu,G.Dd,cn.qv,Ie.Rq,rn.OJ]});var Bt=c(49095),oe=c(68959),dn=c(95698),Ht=c(92216);const at=class{};at.\u0275fac=function(n){return new(n||at)},at.\u0275mod=t.oAB({type:at}),at.\u0275inj=t.cJS({imports:[l.ez,Ht.uH,T.UX,L.yu,G.Dd,Bt.yj]});var hi=c(46537);const ct=class{constructor(){this.loggerService=(0,t.f3M)(hi.mQ),this.httpApiService=(0,t.f3M)(tn.OG)}getPostponedTriageSetting(){return this.httpApiService.get("organisation/abc
1d_callback_mode")}setPostponedTriageSetting(e){return this.httpApiService.post("organisation/abcd_callback_mode",e).pipe((0,y.U)(()=>!0),(0,Kt.K)(n=>(this.loggerService.error("Failed to set postponed triage settings",{error:n}),Tt.E)))}};let we=ct;ct.\u0275fac=function(n){return new(n||ct)},ct.\u0275prov=t.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"});var gi=c(10573),fi=c(29054),pn=c(47645),mn=c(58161),_i=c(98690),hn=c(35989);const xt=class{constructor(e,n,i,o){this.dialogInput=e,this.scheduleAdjustmentStore=n,this.scheduleAdjustmentFilterStore=i,this.dialogService=o,this.filtersCleared=null}ngOnInit(){this.scheduleAdjustmentFilterStore.setFilterOptions(this.dialogInput.locations)}onSelectedDate(e){this.setPaging(1),e.length?this.scheduleAdjustmentFilterStore.setDateFilter(e[0].value):this.scheduleAdjustmentFilterStore.clearDateFilters()}onSelectedLocation(e){this.setPaging(1),this.scheduleAdjustmentFilterStore.selectLocationFilter(e)}onSelectedAssignee(e){this.setPaging(1),this.scheduleAdjustmentFilterStore.selectAssigneeFilter(e)}clearFilters(){this.setPaging(1),this.filtersCleared=p.ou.local(),this.scheduleAdjustmentFilterStore.clearFilters()}setPaging(e){this.scheduleAdjustmentStore.pagingService.setPaging({currentPage:e,nextPage:null,itemsPerPage:25,previousPage:null,pageCount:null,total:null})}};let Ne=xt;xt.\u0275fac=function(n){return new(n||xt)(t.Y36(Bt.eJ),t.Y36(kt),t.Y36(Ct),t.Y36(G.xA))},xt.\u0275cmp=t.Xpm({type:xt,selectors:[["hc-schedule-adjustment-filter-container"]],decls:8,vars:12,consts:[[3,"filtersCleared"],["label","Locatie","slug","location",3,"options","selected"],["label","Agenda","slug","assignee",3,"groups","selected"],["label","Datum","slug","date",3,"startDate","endDate","selected"]],template:function(n,i){1&n&&(t.TgZ(0,"hc-filter-bar",0),t.NdJ("filtersCleared",function(){return i.clearFilters()}),t.TgZ(1,"hc-multi-select-filter",1),t.NdJ("selected",function(a){return i.onSelectedLocation(a)}),t.ALo(2,"async"),t.qZA(),t.TgZ(3,"hc-multi-select-group-filter",2),t.NdJ("selected",function(a){return i.onSelectedAssignee(a)}),t.ALo(4,"async"),t.qZA(),t.TgZ(5,"hc-date-time-filter",3),t.NdJ("selected",function(a){return i.onSelectedDate(a)}),t.ALo(6,"async"),t.ALo(7,"async"),t.qZA()()),2&n&&(t.xp6(1),t.Q6J("options",t.lcZ(2,4,i.scheduleAdjustmentFilterStore.locationOptions$)),t.xp6(2),t.Q6J("groups",t.lcZ(4,6,i.scheduleAdjustmentFilterStore.assigneeOptions$)),t.xp6(2),t.Q6J("startDate",t.lcZ(6,8,i.scheduleAdjustmentFilterStore.startDate$))("endDate",t.lcZ(7,10,i.scheduleAdjustmentFilterStore.endDate$)))},dependencies:[pn.I,mn.$,_i.f,hn.Z,l.Ov],encapsulation:2});var Ti=c(14313);function Ci(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"div",11)(1,"h5",12),t._uU(2,"Triage"),t.qZA(),t.TgZ(3,"div",12)(4,"mat-slide-toggle",13),t.NdJ("change",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.setPostponedTriageSetting(o.checked))}),t.ALo(5,"async"),t.TgZ(6,"span",14),t._uU(7,"Bij minder urgente triages de optie aanbieden om de pati\xebnt terug te bellen."),t.qZA()()()()}if(2&s){const n=t.oxw();t.xp6(4),t.Q6J("checked",t.lcZ(5,1,n.postponedTriageSetting$))}}const It=class{constructor(e,n,i,o,a,r,m){this.dialogRef=e,this.dialogInput=n,this.scheduleAdjustmentStore=i,this.scheduleAdjustmentDataService=o,this.scheduleAdjustmentFilterStore=a,this.dialogService=r,this.postponedTriageService=m,this.apiStatusEnum=te.B,this.luxonFormatsEnum=u.i0,this.dateFormats=u.C2,this.hapPermissionsEnum=gi.g,this.icons={plus:b.r8p,close:b.NBC,trash:b.I7k}}ngOnInit(){this.scheduleAdjustmentStore.setLocations(this.dialogInput.locations),this.scheduleAdjustmentStore.setSelectedAssigneeId(this.dialogInput.selectedAssigneeId),this.scheduleAdjustmentStore.setSelectedLocationId(this.dialogInput.selectedIbId),this.postponedTriageSetting$=this.postponedTriageService.getPostponedTriageSetting(),this.adjustment$=this.scheduleAdjustmentStore.adjustments$,this.paging$=this.scheduleAdjustmentStore.pagingService.paging$,this.filterSubscription=this.scheduleAdjustmentFilterStore.queryParams$.subscribe(()=>{this.getAdjustments()}),this.selectedAssigneeId$=this.scheduleAdjustmentStore.selectedAssigneeId$,this.selectedLocationId$=this.scheduleAdjustmentStore.selectedLocationId$,this.types$=this.scheduleAdjustmentStore.types$,this.locations$=this.scheduleAdjustmentStore.locations$,this.apiStatus$=this.scheduleAdjustmentStore.apiStatusStore.state$.pipe((0,y.U)(e=>e.status))}ngOnDestroy(){this.filterSubscription.unsubscribe()}setPostponedTriageSetting(e){this.postponedTriageService.setPostponedTriageSetting(e).subscribe()}onPageScroll(){this.paging$.pipe((0,dn.q)(1)).subscribe(e=>this.scheduleAdjustmentStore.loadMoreAdjustments(e.currentPage+1))}getAdjustments(e=null){this.paging$.pipe((0,dn.q)(1)).subscribe(n=>this.scheduleAdjustmentStore.loadAdjustments(e||n.currentPage))}onSubmit(e){this.scheduleAdjustmentDataService.create(e).subscribe(n=>{n&&this.getAdjustments()})}onDelete(e){this.dialogService.open(G.$5,{width:oe.PW.Medium,autoF
1ocus:!1,type:oe.iR.CONFIRM,data:{title:"Bevestig verwijderen",confirmText:"Verwijder"}}).afterClosed().subscribe(i=>{i&&this.scheduleAdjustmentDataService.delete(e.id).subscribe(o=>{o&&this.getAdjustments()})})}};let Me=It;It.\u0275fac=function(n){return new(n||It)(t.Y36(Bt.hV),t.Y36(Bt.eJ),t.Y36(kt),t.Y36($t),t.Y36(Ct),t.Y36(G.xA),t.Y36(we))},It.\u0275cmp=t.Xpm({type:It,selectors:[["hc-schedule-adjustments-dialog"]],features:[t._Bn([kt,Ct,sn.d])],decls:25,vars:29,consts:[[1,"d-block","h-100",3,"hasDefaultActionButtons"],[1,"dialog-title"],["infiniteScroll","",1,"dialog-content","d-block","h-100","w-100","overflow-auto","me-0",3,"infiniteScrollDistance","infiniteScrollDisabled","scrollWindow","scrolled"],["class","row pb-5 me-0",4,"ngIf"],[1,"row","me-0"],[1,"col-12","d-flex","justify-content-between","align-items-center"],[1,"pt-2"],[3,"selectedAssigneeId","selectedLocationId","types","locations","submitted"],[3,"adjustments","paging","deleteCapacity"],[1,"dialog-actions"],["mat-button","","mat-dialog-close",""],[1,"row","pb-5","me-0"],[1,"col-12"],["color","primary",3,"checked","change"],[1,"mx-2","ps-0"]],template:function(n,i){1&n&&(t.TgZ(0,"hc-dialog-template",0)(1,"div",1)(2,"h3"),t._uU(3,"Capaciteit beheren"),t.qZA()(),t.TgZ(4,"div",2),t.NdJ("scrolled",function(){return i.onPageScroll()}),t.ALo(5,"async"),t.YNc(6,Ci,8,3,"div",3),t.ALo(7,"async"),t.ALo(8,"hasPermission"),t.TgZ(9,"div",4)(10,"div",5)(11,"h5",6),t._uU(12,"Capaciteit"),t.qZA(),t.TgZ(13,"hc-capacity-button",7),t.NdJ("submitted",function(a){return i.onSubmit(a)}),t.ALo(14,"async"),t.ALo(15,"async"),t.ALo(16,"async"),t.ALo(17,"async"),t.qZA()(),t._UZ(18,"hc-schedule-adjustment-filter-container"),t.qZA(),t.TgZ(19,"hc-capacity-list",8),t.NdJ("deleteCapacity",function(a){return i.onDelete(a)}),t.ALo(20,"async"),t.ALo(21,"async"),t.qZA()(),t.TgZ(22,"div",9)(23,"button",10),t._uU(24,"Sluiten"),t.qZA()()()),2&n&&(t.Q6J("hasDefaultActionButtons",!1),t.xp6(4),t.Q6J("infiniteScrollDistance",3)("infiniteScrollDisabled",t.lcZ(5,11,i.apiStatus$)===i.apiStatusEnum.Corrupted)("scrollWindow",!1),t.xp6(2),t.Q6J("ngIf",t.lcZ(7,13,t.lcZ(8,15,i.hapPermissionsEnum.ScheduleAdjustments))),t.xp6(7),t.Q6J("selectedAssigneeId",t.lcZ(14,17,i.selectedAssigneeId$))("selectedLocationId",t.lcZ(15,19,i.selectedLocationId$))("types",t.lcZ(16,21,i.types$))("locations",t.lcZ(17,23,i.locations$)),t.xp6(6),t.Q6J("adjustments",t.lcZ(20,25,i.adjustment$))("paging",t.lcZ(21,27,i.paging$)))},dependencies:[l.O5,Le,Oe,se.iZ,L.eB,fi._,Bt.aO,Ie.Ry,Ne,l.Ov,Ti.j],encapsulation:2});const Y=class extends G.uh{open(e){return this.dialogService.open(Me,{width:oe.PW.ExtraLarge,height:oe.PW.InContainerHeight,autoFocus:!0,data:{...e}}).afterClosed()}};let ae=Y;Y.\u0275fac=function(){let e;return function(i){return(e||(e=t.n5z(Y)))(i||Y)}}(),Y.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"});var yi=c(1807),Ai=c(14682),gn=c(99633),ce=c(37661),fn=c(24600),vi=c(39863),Ee=c(15861),Di=c(46758),Si=c(34986),xi=c(69751),Ii=c(59468);class je{constructor(e){this.changes=e}static of(e){return new je(e)}notEmpty(e){if(this.changes[e]){const n=this.changes[e].currentValue;if(null!=n)return(0,_t.of)(n)}return Tt.E}has(e){return this.changes[e]?(0,_t.of)(this.changes[e].currentValue):Tt.E}notFirst(e){return this.changes[e]&&!this.changes[e].isFirstChange()?(0,_t.of)(this.changes[e].currentValue):Tt.E}notFirstAndEmpty(e){if(this.changes[e]&&!this.changes[e].isFirstChange()){const n=this.changes[e].currentValue;if(null!=n)return(0,_t.of)(n)}return Tt.E}}const _n=new t.OlP("NGX_ECHARTS_CONFIG");let Zi=(()=>{class s{constructor(n,i,o){this.el=i,this.ngZone=o,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.resize$=new Di.x,this.echarts=n.echarts}ngOnChanges(n){const i=je.of(n);i.notFirstAndEmpty("options").subscribe(o=>this.onOptionsChange(o)),i.notFirstAndEmpty("merge").subscribe(o=>this.setOption(o)),i.has("loading").subscribe(o=>this.toggleLoading(!!o)),i.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe((0,Ii.p)(100,Si.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}
1dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(n,i){if(this.chart)try{this.chart.setOption(n,i)}catch(o){console.error(o),this.optionsError.emit(o)}}refreshChart(){var n=this;return(0,Ee.Z)(function*(){n.dispose(),yield n.initChart()})()}createChart(){const n=this.el.nativeElement;if(window&&window.getComputedStyle){const i=window.getComputedStyle(n,null).getPropertyValue("height");(!i||"0px"===i)&&(!n.style.height||"0px"===n.style.height)&&(n.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:o})=>o(n,this.theme,this.initOpts)))}initChart(){var n=this;return(0,Ee.Z)(function*(){yield n.onOptionsChange(n.options),n.merge&&n.chart&&n.setOption(n.merge)})()}onOptionsChange(n){var i=this;return(0,Ee.Z)(function*(){!n||(i.chart||(i.chart=yield i.createChart(),i.chartInit.emit(i.chart)),i.setOption(i.options,!0))})()}createLazyEvent(n){return this.chartInit.pipe((0,gt.w)(i=>new xi.y(o=>(i.on(n,a=>this.ngZone.run(()=>o.next(a))),()=>{this.chart&&(this.chart.isDisposed()||i.off(n))}))))}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(_n),t.Y36(t.SBq),t.Y36(t.R0b))},s.\u0275dir=t.lG2({type:s,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[t.TTD]}),s})(),Li=(()=>{class s{static forRoot(n){return{ngModule:s,providers:[{provide:_n,useValue:n}]}}static forChild(){return{ngModule:s}}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({}),s})();const Zt=class{constructor(e){this.elementRef=e,this.halfHourTimeSpan=7}ngOnChanges(e){(e.directingGraphData&&e.directingGraphData.currentValue||e.halfHourTimeSpan&&this.directingGraphData)&&(this.directingCalculationValues=this.directingGraphData.slice(0,this.halfHourTimeSpan),this.getDirectingGraph())}getDataset(){return this.directingCalculationValues.map(e=>{const n=p.ou.fromFormat(`${e.timeSpans.startTime}`,u.i0.asInt),i=p.ou.fromFormat(`${e.timeSpans.endTime}`,u.i0.asInt),o=i.minus({minutes:i.diff(n,"minutes").minutes/2});return{startTime:w.toTimeFormat(e.timeSpans.startTime),endTime:w.toTimeFormat(e.timeSpans.endTime),plotTime:w.toTimeFormat(w.parseDateTimeToInt(o)),capacityDegree:e.capacityDegree,occupationDegree:e.occupationDegree,occupationPercentage:e.occupationPercentage}})}getColumns(){const e=p.ou.fromFormat(`${this.directingCalculationValues[0].timeSpans.startTime}`,u.i0.asInt),n=p.ou.fromFormat(`${this.directingCalculationValues[this.directingCalculationValues.length-1].timeSpans.endTime}`,u.i0.asInt),a=4*p.Xp.fromDateTimes(e,n).length("hours"),r=[];for(let m=0;m<a-1;m++)r.push(parseInt(e.plus({minutes:15*m}).toFormat(u.i0.asInt),10));return r}getDirectingGraph(){const e=vi.z.getHcThemeVariables(this.elementRef.nativeElement),n=this.getDataset(),i=this.getColumns();this.chartOption={autoResize:!0,textStyle:{fontFamily:e.fontFamily},grid:{left:"3%",right:"5%",bottom:"3%",top:"3%",height:this.graphHeight,containLabel:!0},xAxis:{type:"category",data:i.map(o=>w.toTimeFormat(o)),boundaryGap:!1,axisLabel:{interval:1}},yAxis:{type:"value",minInterval:1,maxInterval:1,max:function(o){return Math.round(o.max)+1}},series:[{name:"Capaciteit",type:"line",color:e.primary,symbol:"none",silent:!0,step:"end",data:n.map(o=>[o.startTime,o.capacityDegree])},{name:"Bezetting",type:"bar",silent:!0,data:n.map(o=>({value:[o.plotTime,o.occupationDegree],itemStyle:{color:o.occupationPercentage>80?e.red400:e.blue100}}))}]}}};let re=Zt;Zt.\u0275fac=function(n){return new(n||Zt)(t.Y36(t.SBq))},Zt.\u0275cmp=t.Xpm({type:Zt,selectors:[["hc-directing-graph"]],inputs:{directingGraphData:"directingGraphData",halfHourTimeSpan:"halfHourTimeSpan",graphHeight:"graphHeight"},features:[t.TTD],decls:1,vars:1,consts:[["echarts","",3,"options"]],template:function(n,i){1&n&&t._UZ(0,"div",0),2&n&&t.Q6J("options",i.chartOption)},dependencies:[Zi],encapsulation:2,changeDetection:0});var Tn=c(62484),Ue=c(35421),bi=c(52476),Gt=c(10266),Cn=c(10798),Fi=c(70434),Pe=c(45877
1),yn=c(12144);const Oi=function(s){return{contact:s}};function wi(s,e){if(1&s&&(t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"span",11),t._UZ(4,"hc-icon",12),t.ALo(5,"contactTypeIcon"),t.qZA(),t.TgZ(6,"div",13)(7,"div")(8,"span"),t._uU(9),t.TgZ(10,"span",14),t._uU(11,"( "),t._UZ(12,"hc-gender-icon",15),t._uU(13),t.qZA()()(),t.TgZ(14,"div",14),t._uU(15),t.ALo(16,"stringSeparation"),t.qZA()()(),t.TgZ(17,"div",16)(18,"div",17)(19,"div",18),t.ALo(20,"date"),t._uU(21),t.ALo(22,"date"),t.qZA(),t.TgZ(23,"hc-pill-indicator",19),t._uU(24),t.qZA()()()(),t.BQk()),2&s){const n=e.$implicit,i=e.last,o=t.oxw(3),a=t.MAs(4);t.xp6(1),t.ekj("border-bottom",!i),t.Q6J("matMenuTriggerFor",a)("matMenuTriggerData",t.VKq(25,Oi,n)),t.xp6(3),t.Q6J("icon",t.lcZ(5,15,n.contactType)),t.xp6(5),t.hij(" ",n.patient.name," "),t.xp6(3),t.Q6J("fixedWidth",!1)("typeMnemonic",n.patient.genderType),t.xp6(1),t.hij(" ",n.patient.age,")"),t.xp6(2),t.Oqu(t.lcZ(16,17,n.entryComplaints)),t.xp6(4),t.Q6J("matTooltip",t.xi3(20,19,n.appointment,o.dateFormats.shortDateTime)),t.xp6(2),t.hij(" ",t.xi3(22,22,n.appointment,o.dateFormats.hourMinutes)," "),t.xp6(2),t.Q6J("textClass","text-urgency-"+n.urgency)("bgClass","bg-urgency-"+n.urgency),t.xp6(1),t.hij(" ",n.urgency," ")}}function Ni(s,e){if(1&s&&(t.TgZ(0,"div",6)(1,"div",7),t._uU(2),t.ALo(3,"contactColumnTypeName"),t.qZA(),t.YNc(4,wi,25,27,"ng-container",8),t.qZA()),2&s){const n=e.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,2,n.statusName)," "),t.xp6(2),t.Q6J("ngForOf",n.contacts)}}function Mi(s,e){if(1&s&&(t.ynx(0),t.YNc(1,Ni,5,4,"div",5),t.BQk()),2&s){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",n.groupedContacts)}}function Ei(s,e){1&s&&t._UZ(0,"hc-no-data",20)}function ji(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"hc-call-detail",21),t.NdJ("closeDetailClicked",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.menuTrigger.closeMenu())})("openDossierClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onOpenDossier(o))})("editAppointmentClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onEditAppointment(o))})("printPatientStickerClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.printPatientStickerClicked.emit(o))}),t.qZA()}if(2&s){const n=e.contact;t.Q6J("contact",n)("isHigherUrgencyPresent",n.isHigherUrgency)("complaintCourse",n.entryComplaints)("isShowingDiscreetWaitingRoomToggle",!1)("isShowingPatientIsolationToggle",!1)}}const Lt=class{constructor(){this.isTwoColumnView=!1,this.openContactMenu=new t.vpe,this.openDossierClicked=new t.vpe,this.printPatientStickerClicked=new t.vpe,this.editAppointmentClicked=new t.vpe,this.icons={nearDeadline:b.RLE,higherUrgency:f.mAj},this.dateFormats=u.C2}ngOnChanges(e){e.contacts&&e.contacts.currentValue&&(this.groupedContacts=ge.groupContacts(this.contacts))}onOpenDossier(e){this.menuTrigger.closeMenu(),this.openDossierClicked.emit(e)}onEditAppointment(e){this.menuTrigger.closeMenu(),this.editAppointmentClicked.emit(e)}};let Je=Lt;Lt.\u0275fac=function(n){return new(n||Lt)},Lt.\u0275cmp=t.Xpm({type:Lt,selectors:[["hc-cards-contact-list"]],viewQuery:function(n,i){if(1&n&&t.Gf(I.D8,5),2&n){let o;t.iGM(o=t.CRH())&&(i.menuTrigger=o.first)}},inputs:{isTwoColumnView:"isTwoColumnView",contacts:"contacts",contactDescriptionList:"contactDescriptionList"},outputs:{openContactMenu:"openContactMenu",openDossierClicked:"openDossierClicked",printPatientStickerClicked:"printPatientStickerClicked",editAppointmentClicked:"editAppointmentClicked"},features:[t.TTD],decls:6,vars:2,consts:[[4,"ngIf","ngIfElse"],["noData",""],["overlapTrigger","true",1,"min-h-fixed-360","min-w-fixed-400","max-w-fixed-500"],["formMenu","matMenu"],["matMenuContent",""],["class","px-2",4,"ngFor","ngForOf"],[1,"px-2"],[1,"p-2","fw-bold"],[4,"ngFor","ngForOf"],[1,"w-100","bg-body","row","mx-0","px-2","py-2","cursor-pointer",3,"matMenuTriggerFor","matMenuTriggerData"],[1,"d-flex","px-0","text-truncate","col-9"],[1,"pe-2"],[3,"icon"],[1,"d-flex","flex-column"],[1,"text-dimmed"],[3,"fixedWidth","typeMnemonic"],[1,"col-3","text-end","px-0"],[1,"d-flex","justify-content-end"],[1,"text-end","pe-2",3,"matTooltip"],[3,"textClass","bgClass"],["titleText","Geen contacten gevonden"],[3,"contact","isHigherUrgencyPresent","complaintCourse","isShowingDiscreetWaitingRoomToggle","isShowingPatientIsolationToggle","closeDetailClicked","openDossierClicked","editAppointmentClicked","printPatientStickerClicked"]],template:function(n,i){if
1(1&n&&(t.YNc(0,Mi,2,1,"ng-container",0),t.YNc(1,Ei,1,0,"ng-template",null,1,t.W1O),t.TgZ(3,"mat-menu",2,3),t.YNc(5,ji,1,5,"ng-template",4),t.qZA()),2&n){const o=t.MAs(2);t.Q6J("ngIf",i.groupedContacts.length)("ngIfElse",o)}},dependencies:[l.sg,l.O5,k.o,Tn.d,Ue.t,bi.t,Gt.gM,I.W0,I.D8,I.hd,Cn.m,be.F,Fi.y,Pe.s,yn.A],encapsulation:2,changeDetection:0});var An=c(28377),Ui=c(69521),Pi=c(87039),zt=c(15754);function Ji(s,e){1&s&&(t.TgZ(0,"div")(1,"mat-tab-group",4)(2,"mat-tab",5)(3,"div",6),t.Hsn(4,1),t.qZA()(),t.TgZ(5,"mat-tab",7),t.Hsn(6,2),t.qZA()()())}const $i=[[["","chart-component",""]],[["","time-slots",""]],[["","contacts",""]]],bt=class{constructor(){this.goToDetailedContent=new t.vpe}};let $e=bt;bt.\u0275fac=function(n){return new(n||bt)},bt.\u0275cmp=t.Xpm({type:bt,selectors:[["hc-assignee-card"]],inputs:{assigneeInfo:"assigneeInfo",isTwoColumnView:"isTwoColumnView",isDetailedView:"isDetailedView"},outputs:{goToDetailedContent:"goToDetailedContent"},ngContentSelectors:["[chart-component]","[time-slots]","[contacts]"],decls:8,vars:4,consts:[[1,"cursor-pointer",3,"title","click"],["subtitle","",1,"text-dimmed"],[1,"h-fixed-200"],[4,"ngIf"],["selectedIndex","1","mat-stretch-tabs","",1,"h-fixed-600"],["label","Tijdsloten"],[1,"h-100"],["label","Contacten"]],template:function(n,i){1&n&&(t.F$t($i),t.TgZ(0,"hc-card")(1,"hc-card-header",0),t.NdJ("click",function(){return i.goToDetailedContent.emit(i.assigneeInfo.id)}),t.TgZ(2,"div",1),t._uU(3),t.qZA()(),t.TgZ(4,"mat-card-content")(5,"div",2),t.Hsn(6),t.qZA(),t.YNc(7,Ji,7,0,"div",3),t.qZA()()),2&n&&(t.xp6(1),t.Q6J("title",i.assigneeInfo.name),t.xp6(2),t.Oqu(i.assigneeInfo.location),t.xp6(1),t.Q6J("@detailedView",i.isDetailedView),t.xp6(3),t.Q6J("ngIf",i.isDetailedView))},dependencies:[l.O5,An.Qi,Ui.n,Pi.A,zt.SK,zt.R7],encapsulation:2,data:{animation:[(0,ve.y4)(),(0,ve.W)()]},changeDetection:0});var ke=c(89923);function Qi(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"mat-chip",8),t.NdJ("click",function(){const a=t.CHM(n).$implicit,r=t.oxw(2);return t.KtG(r.selectedTimeSlotTypeChange.emit(a.type))}),t._uU(1),t.qZA()}if(2&s){const n=e.$implicit,i=t.oxw(2);t.Q6J("selected",n.type===i.selectedTimeSlotType),t.xp6(1),t.hij(" ",n.type," ")}}function Yi(s,e){if(1&s&&t._UZ(0,"hc-icon",16),2&s){const n=t.oxw(5);t.Q6J("icon",n.icons.lock)}}function Bi(s,e){if(1&s&&(t.TgZ(0,"hc-pill-indicator",17),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.lnq(" ",n.name," ",n.capacity>=0?"+":"","",n.capacity," ")}}function Hi(s,e){if(1&s&&(t.TgZ(0,"div",11)(1,"div",12),t.YNc(2,Yi,1,1,"hc-icon",13),t._uU(3),t.qZA(),t.TgZ(4,"div",14),t.YNc(5,Bi,2,3,"hc-pill-indicator",15),t.qZA()()),2&s){const n=e.$implicit;t.xp6(1),t.ekj("text-dimmed",n.isOccupied),t.xp6(1),t.Q6J("ngIf",n.isClosed),t.xp6(1),t.AsE(" ",n.startTime," - ",n.endTime," "),t.xp6(2),t.Q6J("ngForOf",n.scheduleAdjustments)}}function Gi(s,e){if(1&s&&(t.ynx(0),t.YNc(1,Hi,6,6,"div",10),t.BQk()),2&s){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",n.timeSlots)}}function zi(s,e){if(1&s&&(t.ynx(0),t.YNc(1,Gi,2,1,"ng-container",9),t.BQk()),2&s){const n=e.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",i.selectedTimeSlotType===n.type)}}function Vi(s,e){if(1&s&&(t.TgZ(0,"div",2)(1,"div",3)(2,"mat-chip-list",4),t.YNc(3,Qi,2,2,"mat-chip",5),t.qZA(),t.TgZ(4,"div",6),t.YNc(5,zi,2,1,"ng-container",7),t.qZA()()()),2&s){const n=t.oxw();t.xp6(3),t.Q6J("ngForOf",n.timeSlots),t.xp6(2),t.Q6J("ngForOf",n.timeSlots)}}function Ri(s,e){1&s&&t._UZ(0,"hc-no-data",18)}const Ft=class{constructor(){this.selectedTimeSlotTypeChange=new t.vpe,this.icons={lock:f.__}}};let le=Ft;Ft.\u0275fac=function(n){return new(n||Ft)},Ft.\u0275cmp=t.Xpm({type:Ft,selectors:[["hc-time-slot-list"]],inputs:{timeSlots:"timeSlots",selectedTimeSlotType:"selectedTimeSlotType"},outputs:{selectedTimeSlotTypeChange:"selectedTimeSlotTypeChange"},decls:3,vars:2,consts:[["class","w-100 h-100 overflow-hidden",4,"ngIf","ngIfElse"],["noData",""],[1,"w-100","h-100","overflow-hidden"],[1,"p-3","h-100"],["selectable","true"],["class","cursor-pointer d-inline-block",3,"selected","click",4,"ngFor","ngForOf"],[1,"p-3","h-100","overflow-auto"],[4,"ngFor","ngForOf"],[1,"curs
1or-pointer","d-inline-block",3,"selected","click"],[4,"ngIf"],["class","d-flex",4,"ngFor","ngForOf"],[1,"d-flex"],[1,"py-1","w-fixed-120","d-flex"],["size","1x","class","pe-1",3,"icon",4,"ngIf"],[1,"flex-grow-1"],["bgClass","bg-dimmed-800","textClass","text-dimmed-100","class","pe-1",4,"ngFor","ngForOf"],["size","1x",1,"pe-1",3,"icon"],["bgClass","bg-dimmed-800","textClass","text-dimmed-100",1,"pe-1"],["titleText","Geen tijdsloten gevonden"]],template:function(n,i){if(1&n&&(t.YNc(0,Vi,6,2,"div",0),t.YNc(1,Ri,1,0,"ng-template",null,1,t.W1O)),2&n){const o=t.MAs(2);t.Q6J("ngIf",i.timeSlots.length)("ngIfElse",o)}},dependencies:[l.sg,l.O5,k.o,Tn.d,Ue.t,ke.ir,ke.lw],styles:[".w-fixed-120[_ngcontent-%COMP%]{width:120px}"],changeDetection:0});var vn=c(94270),Dn=c(86527);const Ot=class{constructor(){this.reloadData=new t.vpe,this.reload=b.tmN}};let de=Ot;Ot.\u0275fac=function(n){return new(n||Ot)},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["hc-reload-button"]],outputs:{reloadData:"reloadData"},decls:2,vars:1,consts:[["mat-icon-button","","matTooltip","Data opnieuw inladen",1,"cursor-pointer",3,"click"],["size","lg",3,"icon"]],template:function(n,i){1&n&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return i.reloadData.emit()}),t._UZ(1,"fa-icon",1),t.qZA()),2&n&&(t.xp6(1),t.Q6J("icon",i.reload))},dependencies:[Ht.BN,Gt.gM,L.eB],encapsulation:2,changeDetection:0});var Wi=c(83675);function qi(s,e){if(1&s&&(t.TgZ(0,"span",22),t._uU(1),t.ALo(2,"dateTime"),t.qZA()),2&s){const n=e.ngIf,i=t.oxw();t.xp6(1),t.hij("- Laatst bijgewerkt om ",t.xi3(2,1,n,i.luxonFormats.hourMinute),"")}}function Ki(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){const a=t.CHM(n).ngIf,r=t.oxw();return t.KtG(r.editSchedule(a))}),t._UZ(1,"hc-icon",24),t._uU(2," Beheer "),t.qZA()}if(2&s){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.icons.editSchedule)}}function Xi(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"button",25)(1,"hc-icon",26),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.store.toggleTwoColumnView())}),t.qZA()()}if(2&s){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.icons.twoColumnView)}}function ts(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"button",25)(1,"hc-icon",26),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.store.toggleTwoColumnView())}),t.qZA()()}if(2&s){const n=t.oxw();t.xp6(1),t.Q6J("icon",n.icons.fourColumnView)}}function es(s,e){if(1&s&&(t._UZ(0,"hc-directing-graph",35),t.ALo(1,"async")),2&s){const n=t.oxw().$implicit,i=t.oxw(3);t.Q6J("directingGraphData",n.chartData)("halfHourTimeSpan",t.lcZ(1,2,i.store.isTwoColumnView$)?13:7)}}function ns(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"hc-time-slot-list",38),t.NdJ("selectedTimeSlotTypeChange",function(o){t.CHM(n);const a=t.oxw(3).$implicit,r=t.oxw(3);return t.KtG(r.onChangeTimeSlotType(a.id,o))}),t.qZA()}if(2&s){const n=e.ngIf,i=t.oxw(3).$implicit,o=t.oxw(3);t.Q6J("timeSlots",n)("selectedTimeSlotType",o.selectedTimeSlotMap.get(i.id))}}function is(s,e){if(1&s&&(t.ynx(0),t.YNc(1,ns,1,2,"hc-time-slot-list",37),t.BQk()),2&s){const n=t.oxw(2).$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.timeSlotTypeListMap.get(n.id))}}function ss(s,e){if(1&s&&(t.TgZ(0,"div",36),t.YNc(1,is,2,1,"ng-container",21),t.ALo(2,"async"),t.qZA()),2&s){const n=t.oxw(4);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,n.timeSlotAssignees$))}}function os(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"hc-cards-contact-list",41),t.NdJ("openContactMenu",function(o){t.CHM(n);const a=t.oxw(6);return t.KtG(a.onOpenContactMenu(o))})("openDossierClicked",function(o){t.CHM(n);const a=t.oxw(6);return t.KtG(a.onOpenDossier(o))})("editAppointmentClicked",function(o){t.CHM(n);const a=t.oxw(6);return t.KtG(a.openEditAppointment(o))})("printPatientStickerClicked",function(o){t.CHM(n);const a=t.oxw(6);return t.KtG(a.onPrintPatientSticker(o))}),t.ALo(1,"async"),t.ALo(2,"async"),t.qZA()}if(2&s){const n=e.ngIf,i=t.oxw(6);t.Q6J("contacts",n)("isTwoColumnView",t.lcZ(1,3,i.store.isTwoColumnView$))("contactDescriptionList",t.lcZ(2,5,i.contactDescriptionList$))}}function as(s,e){if(1&s&&(t.ynx(0),t.YNc(1,os,3,7,"hc-cards-contact-list",40),t.BQk()),2&s){const n=t.oxw(2).$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.contactDataMap.get(n.id))}}function cs(s,e){if(1&s&&(t.TgZ(0,"div",39),t.YNc(1,as,2,1,"ng-container",21),t.ALo(2,"async"),t.qZA()),2&s){const n=t.oxw(4);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,n.contacts$))}}function rs(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"div"),t.ALo(1,"async"),t.TgZ(2,"hc-assignee-card",30),t.NdJ("goToDetailedContent",function(o){t.CHM(n);const a=t.oxw(3);return t.KtG(a.goToDetailedContent(o))}),t.ALo(3,"async"),t.ALo(4,"async"),t.TgZ(5,"div",31),t.YNc(6,es,2,4,"hc-directing-graph",32),t.qZA(),t.YNc(7,ss,3,3,"div",33),t.ALo(8,"async"),t.YNc(9,cs,3,3,"div",34),t.ALo(10,"async"),t.qZA()()}if(2&s){const n=e.$implicit,i=t.oxw(3);t.Q6J("@expandWidth",t.lcZ(1,7,i.store.isTwoColumnView$)),t.xp6(2),t.Q6J("assigneeInfo",n)("isTwoColumnView",t.lcZ(3,9,i.store.isTwoColumnView$))("isDetailedView",t.lcZ(4,11,i.store.isDetailedView$)),t.xp6(4),t.Q6J("ngIf",n.chartData),t.xp6(1),t.Q6J("ngIf",t.lcZ(8,13,i.store.isDetailedView$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(10,15,i.store.isDetailedView$))}}function ls(s,e){if(1&s&&(t.ynx(0),t.YNc(1,rs,11,17,"div",29),t.BQk()),2&s){const n=t.oxw().ngIf,i=t.oxw();
1t.xp6(1),t.Q6J("ngForOf",n.assigneesInfo)("ngForTrackBy",i.trackByAssigneeId)}}function ds(s,e){1&s&&(t.TgZ(0,"div",43),t._UZ(1,"hc-skeleton",44),t.qZA()),2&s&&(t.xp6(1),t.Q6J("count",1))}const us=function(){return[1,2,3,4]};function ps(s,e){1&s&&t.YNc(0,ds,2,1,"div",42),2&s&&t.Q6J("ngForOf",t.DdM(1,us))}function ms(s,e){if(1&s&&(t.ynx(0),t.YNc(1,ls,2,2,"ng-container",27),t.ALo(2,"async"),t.YNc(3,ps,1,2,"ng-template",null,28,t.W1O),t.BQk()),2&s){const n=t.MAs(4),i=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,i.apiStatus$)===i.apiStatusEnum.Idle)("ngIfElse",n)}}const hs=function(s){return{assigneesInfo:s}},wt=class{constructor(e,n,i,o,a,r,m,C){this.store=e,this.contactAppointmentDialogService=n,this.patientStickerDialogService=i,this.route=o,this.router=a,this.scheduleAdjustmentsDialogHelper=r,this.contactDialogOpenerHelperService=m,this.apiStatusStoreFactoryService=C,this.trackByAssigneeId=(0,yi.U)(),this.contactDataMap=new Map,this.timeSlotTypeListMap=new Map,this.selectedTimeSlotMap=new Map,this.icons={editSchedule:f.clv,setting:f.b7W,fourColumnView:b.Toy,twoColumnView:b.szN},this.luxonFormats=u.i0,this.apiStatusEnum=te.B,this.directingApiStatusStore=C.getClassInstance({status:te.B.Loading})}ngOnInit(){this.fetchDataItems(),this.apiStatus$=this.directingApiStatusStore.state$.pipe((0,y.U)(e=>e.status)),this.locationWithAssignees$=this.getLocationWithAssignee(),this.assigneeInfo$=this.getAssigneeInfo(),this.contacts$=this.getContacts(),this.timeSlotAssignees$=this.getTimeSlots()}fetchDataItems(){this.store.fetchScheduleAdjustments(),this.store.fetchAssigneeWithSlots(7),this.store.fetchAllCalls()}goToDetailedContent(e){this.router.navigate(["..",e.toLowerCase()],{relativeTo:this.route})}onOpenContactMenu(e){this.contactDescriptionList$=this.contactDialogOpenerHelperService.onOpenContactMenu(e)}reloadPage(){this.store.setLastUpdatedStatus(p.ou.local()),this.fetchDataItems()}editSchedule(e){this.scheduleAdjustmentsDialogHelper.open({locations:e}).subscribe(()=>{this.reloadPage()})}onOpenDossier(e){this.contactDialogOpenerHelperService.onOpenDossier(e)}onChangeTimeSlotType(e,n){this.selectedTimeSlotMap.set(e,n)}clearFilters(){this.store.filterStore.clearFilters()}openEditAppointment(e){this.contactAppointmentDialogService.open({strategy:fn.PT.EditAppointment,contactId:e.id,patientId:e.patient.id}).subscribe(n=>{n&&this.fetchDataItems()})}onPrintPatientSticker(e){this.patientStickerDialogService.open(e).subscribe()}getAssigneeInfo(){return this.directingApiStatusStore.startLoading(),this.store.assigneeInfo$.pipe((0,B.G)(),(0,M.h)(([e,n])=>!(0,Ai.Xy)(e,n)),(0,y.U)(([,e])=>e),(0,U.b)(()=>{this.directingApiStatusStore.stopLoading()}))}getContacts(){return this.store.assigneesWithSlotsAndContacts$.pipe((0,y.U)(e=>ht.getContacts(e)),(0,U.b)(e=>e.forEach(n=>this.contactDataMap.set(n.assigneeId,n.contacts))))}getTimeSlots(){return(0,Z.a)([this.store.assigneesWithSlotsAndContacts$,this.store.scheduleAdjustments$]).pipe((0,y.U)(([e,n])=>mt.getTimeSlotTypeListGroupby(e,n)),(0,U.b)(e=>e.forEach(n=>{this.timeSlotTypeListMap.set(n.assigneeId,n.timeSlotsTypeList),this.selectedTimeSlotMap.set(n.assigneeId,n.timeSlotsTypeList[0]?.type)})))}getLocationWithAssignee(){return this.store.callsAssignees$.pipe((0,y.U)(e=>ht.getLocationsWithAssignees(e)))}};let ue=wt;wt.\u0275fac=function(n){return new(n||wt)(t.Y36(yt),t.Y36(ce.H),t.Y36(gn.W),t.Y36(d.gz),t.Y36(d.F0),t.Y36(ae),t.Y36(ne),t.Y36(on.v))},wt.\u0275cmp=t.Xpm({type:wt,selectors:[["hc-directing-dashboard-container"]],features:[t._Bn([yt,ce.H])],decls:34,vars:28,consts:[["headerTitle","Regie"],["text-after-title","","class","text-dimmed",4,"ngIf"],["actions",""],[3,"reloadData"],["mat-raised-button","","type","button","color","primary",3,"click",4,"ngIf"],[1,"row","mb-4"],[1,"col-12"],[3,"doShowSettingsButton","filtersCleared"],["label","Locatie","slug","location",3,"options","selected"],["label","Agenda","slug","agenda",3,"groups","selected"],["label","Contacttype","slug","type",3,"options","selected"],["action-buttons",""],["mat-icon-button","",4,"ngIf","ngIfElse"],["fourColumnView",""],["settings-menu","",1,"px-4","py-3"],[1,"pe-5"],[1,"fw-bold","pb-3"],["color","primary",3,"checked","click","toggleChange"],[1,"ms-2"],[1,"w-100","h-100"],[1,"row"],[4,"ngIf"],["text-after-title","",1,"text-dimmed"],["mat-raised-button","","type","button","color","primary",3,"click"],[1,"pe-1",3,"icon"],["mat-icon-button",""],[3,"icon","click"],[4,"ngIf","ngIfElse"],["loading",""],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"assigneeInfo","isTwoColumnView","isDetailedView","goToDetailedContent"],["chart
1-component",""],["graphHeight","160px",3,"directingGraphData","halfHourTimeSpan",4,"ngIf"],["time-slots","","class","h-100",4,"ngIf"],["contacts","",4,"ngIf"],["graphHeight","160px",3,"directingGraphData","halfHourTimeSpan"],["time-slots","",1,"h-100"],[3,"timeSlots","selectedTimeSlotType","selectedTimeSlotTypeChange",4,"ngIf"],[3,"timeSlots","selectedTimeSlotType","selectedTimeSlotTypeChange"],["contacts",""],["class","overflow-auto",3,"contacts","isTwoColumnView","contactDescriptionList","openContactMenu","openDossierClicked","editAppointmentClicked","printPatientStickerClicked",4,"ngIf"],[1,"overflow-auto",3,"contacts","isTwoColumnView","contactDescriptionList","openContactMenu","openDossierClicked","editAppointmentClicked","printPatientStickerClicked"],["class","col",4,"ngFor","ngForOf"],[1,"col"],["height","280px","marginTop","mt-3",3,"count"]],template:function(n,i){if(1&n&&(t.TgZ(0,"hc-page-container")(1,"hc-page-header",0),t.YNc(2,qi,3,4,"span",1),t.ALo(3,"async"),t.TgZ(4,"div",2)(5,"hc-reload-button",3),t.NdJ("reloadData",function(){return i.reloadPage()}),t.qZA(),t.YNc(6,Ki,3,1,"button",4),t.ALo(7,"async"),t.qZA()(),t.TgZ(8,"div",5)(9,"div",6)(10,"hc-filter-bar",7),t.NdJ("filtersCleared",function(){return i.clearFilters()}),t.TgZ(11,"hc-multi-select-filter",8),t.NdJ("selected",function(a){return i.store.filterStore.setSelectedLocations(a)}),t.ALo(12,"async"),t.qZA(),t.TgZ(13,"hc-multi-select-group-filter",9),t.NdJ("selected",function(a){return i.store.filterStore.setSelectedAssignees(a)}),t.ALo(14,"async"),t.qZA(),t.TgZ(15,"hc-multi-select-filter",10),t.NdJ("selected",function(a){return i.store.filterStore.setSelectedContactTypes(a)}),t.ALo(16,"async"),t.qZA(),t.TgZ(17,"div",11),t.YNc(18,Xi,2,1,"button",12),t.ALo(19,"async"),t.YNc(20,ts,2,1,"ng-template",null,13,t.W1O),t.qZA(),t.TgZ(22,"div",14)(23,"div",15)(24,"div",16),t._uU(25,"Weergave"),t.qZA(),t.TgZ(26,"mat-slide-toggle",17),t.NdJ("click",function(a){return a.stopPropagation()})("toggleChange",function(){return i.store.toggleDetailedView()}),t.ALo(27,"async"),t.TgZ(28,"div",18),t._uU(29,"Toon details"),t.qZA()()()()()()(),t.TgZ(30,"div",19)(31,"div",20),t.YNc(32,ms,5,4,"ng-container",21),t.ALo(33,"async"),t.qZA()()()),2&n){const o=t.MAs(21);t.xp6(2),t.Q6J("ngIf",t.lcZ(3,10,i.store.lastUpdatedStatus$)),t.xp6(4),t.Q6J("ngIf",t.lcZ(7,12,i.locationWithAssignees$)),t.xp6(4),t.Q6J("doShowSettingsButton",!0),t.xp6(1),t.Q6J("options",t.lcZ(12,14,i.store.filterStore.locations$)),t.xp6(2),t.Q6J("groups",t.lcZ(14,16,i.store.filterStore.assignees$)),t.xp6(2),t.Q6J("options",t.lcZ(16,18,i.store.filterStore.contactTypes$)),t.xp6(3),t.Q6J("ngIf",t.lcZ(19,20,i.store.isTwoColumnView$))("ngIfElse",o),t.xp6(8),t.Q6J("checked",t.lcZ(27,22,i.store.isDetailedView$)),t.xp6(6),t.Q6J("ngIf",t.VKq(26,hs,t.lcZ(33,24,i.assigneeInfo$)))}},dependencies:[l.sg,l.O5,re,Je,$e,le,pn.I,mn.$,hn.Z,se.iZ,vn.q,Dn.G,k.o,de,L.eB,Wi._,l.Ov,ie.i],encapsulation:2,data:{animation:[(0,ve.W)()]}});const gs=function(s){return{width:s}};function fs(s,e){if(1&s&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.Q6J("ngClass","bg-urgency-"+n.urgencyNumber)("ngStyle",t.VKq(3,gs,n.percentage+"%")),t.xp6(1),t.hij(" ",n.total," ")}}function _s(s,e){if(1&s&&(t.TgZ(0,"div",2)(1,"h4"),t._uU(2),t.ALo(3,"contactColumnTypeName"),t.qZA(),t.TgZ(4,"div",3),t.YNc(5,fs,2,5,"div",4),t.qZA()()),2&s){const n=e.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,2,n.statusName)),t.xp6(3),t.Q6J("ngForOf",n.urgencyDetails)}}const Nt=class{};let Qe=Nt;Nt.\u0275fac=function(n){return new(n||Nt)},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["hc-urgency-totals"]],inputs:{urgencyTotals:"urgencyTotals"},decls:2,vars:1,consts:[[1,"row"],["class","col",4,"ngFor","ngForOf"],[1,"col"],[1,"w-100","rounded","overflow-hidden"],["class","d-inline-block text-center text-dimmed-800",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"d-inline-block","text-center","text-dimmed-800",3,"ngClass","ngStyle"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t.YNc(1,_s,6,4,"div",1),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",i.urgencyTotals))},dependencies:[l.mk,l.sg,l.PC,Pe.s],encapsulation:2,changeDetection:0});const Mt=class{constructor(){this.icons={square:b.pL1,arrowLeft:b.acZ,line:b.ZC5}}};let Ye=Mt;Mt.\u0275fac=function(n){return new(n||Mt)},Mt.\u0275cmp=t.Xpm({type:Mt,selectors:[["hc-graph-legenda"]],decls:13,vars:3,consts:[[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-between","px-3","m-0"],[1,"text-accent-100",3,"icon"],[1,"px-1"],[1,"d-flex","justify-content-between","px-3"],[1,"text-warn-400",3,"icon"],[1,"text-primary-500",3,"icon"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"hc-icon",2),t.TgZ(3,"div",3),t._uU(4,"Ingepland"),t.qZA()(),t.TgZ(5,"div",4),t._UZ(6,"hc-icon",5),t.TgZ(7,"div",3),t._uU(8,"Vol"),t.qZA()(),t.TgZ(9,"div",4),t._UZ(10,"hc-icon",6),t.TgZ(11,"div",3),t._uU(12,"Capaciteit"),t.qZA()()()),2&n&&(t.xp6(2),t.Q6J("icon",i.icons.square),t.xp6(4),t.Q6J("icon",i.icons.square),t.xp6(4),t.Q6J("icon",i.icons.line))},dependencies:[k.o],encapsulation:2,changeDetection:0});
1const Ts=[[["","chart-component",""]],[["","urgency-totals-component",""]],[["","time-slots",""]],[["","contacts",""]]],Et=class{};let Be=Et;Et.\u0275fac=function(n){return new(n||Et)},Et.\u0275cmp=t.Xpm({type:Et,selectors:[["hc-detailed-assignee"]],ngContentSelectors:["[chart-component]","[urgency-totals-component]","[time-slots]","[contacts]"],decls:19,vars:0,consts:[[1,"w-100","py-2"],[1,"row"],[1,"col-12"],[1,"row","pt-5"],[1,"row","py-2"],[1,"col-12","py-5"],["selectedIndex","2"],["label","Tijdsloten"],["label","Contacten"]],template:function(n,i){1&n&&(t.F$t(Ts),t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",2),t._UZ(5,"hc-graph-legenda"),t.qZA()(),t.TgZ(6,"div",4)(7,"div",2),t.Hsn(8),t.qZA()()()(),t.TgZ(9,"div",1)(10,"div",2),t.Hsn(11,1),t.qZA()(),t.TgZ(12,"div",1)(13,"div",5)(14,"mat-tab-group",6)(15,"mat-tab",7),t.Hsn(16,2),t.qZA(),t.TgZ(17,"mat-tab",8),t.Hsn(18,3),t.qZA()()()()())},dependencies:[zt.SK,zt.R7,Ye],encapsulation:2,changeDetection:0});var ys=c(33329),As=c(28614);function vs(s,e){1&s&&t._UZ(0,"th",22)}function Ds(s,e){if(1&s&&(t.TgZ(0,"td",23),t._UZ(1,"hc-icon",24),t.ALo(2,"contactTypeIcon"),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.Q6J("icon",t.lcZ(2,1,n.contactType))}}function Ss(s,e){1&s&&(t.TgZ(0,"th",25),t._uU(1,"Pati\xebnt"),t.qZA())}function xs(s,e){if(1&s&&(t.TgZ(0,"td",26),t._UZ(1,"hc-icon",27),t.ALo(2,"genderIcon"),t._uU(3),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.Q6J("icon",t.lcZ(2,2,n.patient.genderType)),t.xp6(2),t.hij(" ",null==n.patient?null:n.patient.name," ")}}function Is(s,e){1&s&&(t.TgZ(0,"th",25),t._uU(1,"Geboortedatum"),t.qZA())}function Zs(s,e){if(1&s&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"age"),t.qZA()),2&s){const n=t.oxw().$implicit;t.xp6(1),t.hij(" (",t.xi3(2,1,n.patient.birthDate,!0),") ")}}function Ls(s,e){if(1&s&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"dateTime"),t.YNc(3,Zs,3,4,"span",28),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,2,n.patient.birthDate,i.luxonFormatsEnum.dayMonthYear)," "),t.xp6(2),t.Q6J("ngIf",n.patient.age)}}function bs(s,e){1&s&&(t.TgZ(0,"th",29),t._uU(1,"Ingangsklacht"),t.qZA())}function Fs(s,e){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.hij(" ",n," ")}}function Os(s,e){if(1&s&&(t.TgZ(0,"td",30),t.YNc(1,Fs,2,1,"div",31),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.Q6J("ngForOf",n.entryComplaints)}}function ws(s,e){1&s&&t._UZ(0,"th",32)}function Ns(s,e){if(1&s&&t._UZ(0,"hc-icon",24),2&s){const n=t.oxw(3);t.Q6J("icon",n.icons.nearDeadline)}}function Ms(s,e){if(1&s&&t._UZ(0,"hc-icon",24),2&s){const n=t.oxw(3);t.Q6J("icon",n.icons.higherUrgency)}}const Es=function(s){return{"text-danger":s}};function js(s,e){if(1&s&&(t.TgZ(0,"span",35),t.YNc(1,Ns,1,1,"hc-icon",36),t._uU(2),t.YNc(3,Ms,1,1,"hc-icon",36),t.qZA()),2&s){const n=t.oxw().$implicit;t.Q6J("ngClass",t.VKq(4,Es,n.remainingWaitingMinutes<=15||n.isHigherUrgency)),t.xp6(1),t.Q6J("ngIf",n.remainingWaitingMinutes<=15),t.xp6(1),t.hij(" ",n.remainingWaitingMinutes," min "),t.xp6(1),t.Q6J("ngIf",n.isHigherUrgency)}}function Us(s,e){if(1&s&&(t.TgZ(0,"td",33),t.YNc(1,js,4,6,"span",34),t.qZA()),2&s){const n=e.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf",n.remainingWaitingMinutes&&n.columnType===i.callBoardColumnTypeEnum.InWaitingRoom)}}function Ps(s,e){1&s&&(t.TgZ(0,"th",32),t._uU(1,"Afspraaktijd"),t.qZA())}function Js(s,e){if(1&s&&(t.TgZ(0,"hc-pill-indicator"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&s){const n=t.oxw().$implicit,i=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,n.appointment,i.luxonFormatsEnum.longWeekday))}}function $s(s,e){if(1&s&&(t.TgZ(0,"td",33)(1,"div",37),t.ALo(2,"date"),t.YNc(3,Js,3,4,"hc-pill-indicator",28),t._uU(4),t.ALo(5,"date"),t.qZA()()),2&s){const n=e.$implicit,i=t.oxw();t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,3,n.appointment)),t.xp6(2),t.Q6J("ngIf",n.isCallWeekdayIndicatorVisible),t.xp6(1),t.hij(" ",t.xi3(5,5,n.appointment,i.luxonFormatsEnum.hourMinute)," ")}}function ks(s,e){1&s&&(t.TgZ(0,"th",32),t._uU(1,"Status"),t.qZA())}function Qs(s,e){if(1&s&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"contactColumnTypeName"),t.qZA()),2&s){const n=e.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,n.columnType)," ")}}function Ys(s,e){1&s&&t._UZ(0,"th",32)}function Bs(s,e){if(1&s&&(t.TgZ(0,"td",33)(1,"hc-pill-indicator",38),t._uU(2),t.qZA()()),2&s){const n=e.$implicit;t.xp6(1),t.Q6J("textClass","bg-urgency-"+n.urgency)("bgClass","bg-urgency-"+n.urgency),t.xp6(1),t.hij(" ",n.urgency," ")}}function Hs(s,e){1&s&&t._UZ(0,"tr",39)}const Gs=function(s){return{contact:s}};function zs(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"tr",40),t.NdJ("click",function(){const a=t.CHM(n).$implicit,r=t.oxw();return t.KtG(r.openContactMenu.emit(a))}),t.qZA()}if(2&s){const n=e.$implicit;t.oxw();const i=t.MAs(28);t.Q6J("matMenuTriggerFor",i)("matMenuTriggerData",t.VKq(2,Gs,n))}}function Vs(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"hc-call-detail",41),t.NdJ("closeDetailClicked",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.menuTrigger.closeMenu())})("openDossierClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onOpenDossier(o))})("editAppointmentClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onEditAppointment(o))})("printPatientStickerClicked",function(o){t.CHM(n);const a=t.oxw();
1return t.KtG(a.printPatientStickerClicked.emit(o))}),t.qZA()}if(2&s){const n=e.contact;t.Q6J("contact",n)("isHigherUrgencyPresent",n.isHigherUrgency)("complaintCourse",n.entryComplaints)("isShowingDiscreetWaitingRoomToggle",!1)("isShowingPatientIsolationToggle",!1)}}const jt=class{constructor(){this.openContactMenu=new t.vpe,this.openDossierClicked=new t.vpe,this.printPatientStickerClicked=new t.vpe,this.editAppointmentClicked=new t.vpe,this.luxonFormatsEnum=u.i0,this.callBoardColumnTypeEnum=D.g8,this.displayedColumns=["contactType","patient","birthDate","entryComplaint","remainingMinutes","startTime","state","urgency"],this.icons={nearDeadline:b.RLE,higherUrgency:f.mAj}}onOpenDossier(e){this.menuTrigger.closeMenu(),this.openDossierClicked.emit(e)}onEditAppointment(e){this.menuTrigger.closeMenu(),this.editAppointmentClicked.emit(e)}};let He=jt;function Rs(s,e){if(1&s&&(t.TgZ(0,"span",16),t._uU(1),t.ALo(2,"dateTime"),t.qZA()),2&s){const n=e.ngIf,i=t.oxw(2);t.xp6(1),t.hij("- Laatst bijgewerkt om ",t.xi3(2,1,n,i.luxonFormats.hourMinute),"")}}function Ws(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const o=t.oxw(2);return t.KtG(o.editSchedule())}),t._UZ(1,"hc-icon",18),t._uU(2," Beheer "),t.qZA()}if(2&s){const n=t.oxw(2);t.xp6(1),t.Q6J("icon",n.icons.editSchedule)}}function qs(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"hc-time-slot-list",19),t.NdJ("selectedTimeSlotTypeChange",function(o){t.CHM(n);const a=t.oxw(2);return t.KtG(a.onChangeTimeSlotType(o))}),t.qZA()}if(2&s){const n=e.ngIf,i=t.oxw(2);t.Q6J("timeSlots",n.timeSlotsTypeList)("selectedTimeSlotType",i.selectedTimeSlotType)}}function Ks(s,e){if(1&s){const n=t.EpF();t.TgZ(0,"hc-page-container")(1,"hc-page-header",1),t.NdJ("backButtonClicked",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.goToDashboard())}),t.YNc(2,Rs,3,4,"span",2),t.ALo(3,"async"),t.TgZ(4,"div",3)(5,"hc-reload-button",4),t.NdJ("reloadData",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.reloadData())}),t.qZA(),t.YNc(6,Ws,3,1,"button",5),t.ALo(7,"async"),t.qZA()(),t.TgZ(8,"div",6)(9,"div",7)(10,"hc-detailed-assignee")(11,"div",8),t._UZ(12,"hc-directing-graph",9),t.qZA(),t.TgZ(13,"div",10),t._UZ(14,"hc-urgency-totals",11),t.ALo(15,"async"),t.qZA(),t.TgZ(16,"div",12),t.YNc(17,qs,1,2,"hc-time-slot-list",13),t.ALo(18,"async"),t.qZA(),t.TgZ(19,"div",14)(20,"hc-detailed-contacts-list",15),t.NdJ("openContactMenu",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onOpenContactMenu(o))})("editAppointmentClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onChangeAppointment(o))})("openDossierClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onOpenDossier(o))})("printPatientStickerClicked",function(o){t.CHM(n);const a=t.oxw();return t.KtG(a.onPrintPatientSticker(o))}),t.ALo(21,"async"),t.ALo(22,"async"),t.qZA()()()()()()}if(2&s){const n=e.ngIf,i=t.oxw();t.xp6(1),t.Q6J("headerTitle",null==n.info?null:n.info.name)("subTitle",null==n.info?null:n.info.location)("doShowBackButton",!0),t.xp6(1),t.Q6J("ngIf",t.lcZ(3,11,i.store.lastUpdatedStatus$)),t.xp6(4),t.Q6J("ngIf",t.lcZ(7,13,i.scheduleAdjustments$)),t.xp6(6),t.Q6J("directingGraphData",null==n.info?null:n.info.chartData)("halfHourTimeSpan",i.GRAPH_TIME_SPAN_LENGTH),t.xp6(2),t.Q6J("urgencyTotals",t.lcZ(15,15,i.urgencyTotals$)),t.xp6(3),t.Q6J("ngIf",t.lcZ(18,17,i.timeSlotAssignees$)),t.xp6(3),t.Q6J("contacts",t.lcZ(21,19,i.contacts$))("contactDescriptionList",t.lcZ(22,21,i.contactDescriptionList$))}}jt.\u0275fac=function(n){return new(n||jt)},jt.\u0275cmp=t.Xpm({type:jt,selectors:[["hc-detailed-contacts-list"]],viewQuery:function(n,i){if(1&n&&t.Gf(I.D8,5),2&n){let o;t.iGM(o=t.CRH())&&(i.menuTrigger=o.first)}},inputs:{contacts:"contacts",contactDescriptionList:"contactDescriptionList"},outputs:{openContactMenu:"openContactMenu",openDossierClicked:"openDossierClicked",printPatientStickerClicked:"printPatientStickerClicked",editAppointmentClicked:"editAppointmentClicked"},decls:30,vars:3,consts:[["mat-table","",1,"w-100","h-100","overflow-auto",3,"dataSource"],["matColumnDef","contactType"],["mat-header-cell","","class","w-fixed-56",4,"matHeaderCellDef"],["mat-cell","","class","w-fixed-56",4,"matCellDef"],["matColumnDef","patient"],["mat-header-cell","","class","col-2",4,"matHeaderCellDef"],["mat-cell","","class","col-2",4,"matCellDef"],["matColumnDef","birthDate"],["matColumnDef","entryComplaint"],["mat-header-cell","","class","col-3",4,"matHeaderCellDef"],["mat-cell","","class","col-3",4,"matCellDef"],["matColumnDef","remainingMinutes"],["mat-header-cell","","class","text-end",4,"matHeaderCellDef"],["mat-cell","","class","text-end",4,"matCellDef"],["matColumnDef","startTime"],["matColumnDef","state"],["matColumnDef","urgency"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","cursor-pointer",3,"matMenuTriggerFor","matMenuTriggerData","click",4,"matRowDef","matRowDefColumns"],["overlapTrigger","true",1,"min-h-fixed-360","min-w-fixed-400","max-w-fixed-500"],["formMenu","matMenu"],["matMenuContent",""],["mat-header-cell","",1,"w-fixed-56"],["mat-cell","",1,"w-fixed-56"],[3,"icon"],["mat-header-cell","",1,"col-2"],["mat-cell","",1,"col-2"],[1,"pe-1",3,"icon"],[4,"ngIf"],["mat-header-cell","",1,"col-3"],["mat-cell","",1,"col-3"],[4,"ngFor","ngForOf"],["mat-header-cell","",1,"text-end"],["mat-cell","",1,"text-end"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"icon",4,"ngIf"],[3,"matTooltip"],[3,"textClass","bgClass"],["mat-header-row",""],["mat-row","",1,"curs
1or-pointer",3,"matMenuTriggerFor","matMenuTriggerData","click"],[3,"contact","isHigherUrgencyPresent","complaintCourse","isShowingDiscreetWaitingRoomToggle","isShowingPatientIsolationToggle","closeDetailClicked","openDossierClicked","editAppointmentClicked","printPatientStickerClicked"]],template:function(n,i){1&n&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,vs,1,0,"th",2),t.YNc(3,Ds,3,3,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,Ss,2,0,"th",5),t.YNc(6,xs,4,4,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,Is,2,0,"th",5),t.YNc(9,Ls,4,5,"td",6),t.BQk(),t.ynx(10,8),t.YNc(11,bs,2,0,"th",9),t.YNc(12,Os,2,1,"td",10),t.BQk(),t.ynx(13,11),t.YNc(14,ws,1,0,"th",12),t.YNc(15,Us,2,1,"td",13),t.BQk(),t.ynx(16,14),t.YNc(17,Ps,2,0,"th",12),t.YNc(18,$s,6,8,"td",13),t.BQk(),t.ynx(19,15),t.YNc(20,ks,2,0,"th",12),t.YNc(21,Qs,3,3,"td",13),t.BQk(),t.ynx(22,16),t.YNc(23,Ys,1,0,"th",12),t.YNc(24,Bs,3,3,"td",13),t.BQk(),t.YNc(25,Hs,1,0,"tr",17),t.YNc(26,zs,1,4,"tr",18),t.qZA(),t.TgZ(27,"mat-menu",19,20),t.YNc(29,Vs,1,5,"ng-template",21),t.qZA()),2&n&&(t.Q6J("dataSource",i.contacts),t.xp6(25),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[l.mk,l.sg,l.O5,g.ty,g.wO,g.S4,g.t3,g.R3,g.Al,g.L7,g.ML,g.fg,g.Zw,k.o,Ue.t,Gt.gM,I.W0,I.D8,I.hd,Cn.m,ys.C,be.F,ie.i,Pe.s,As.A,yn.A],encapsulation:2,changeDetection:0});const Xs=function(s){return{info:s}},Ut=class{constructor(e,n,i,o,a,r,m){this.store=e,this.route=n,this.router=i,this.scheduleAdjustmentsDialogHelper=o,this.contactDialogOpenerHelperService=a,this.contactAppointmentDialogService=r,this.patientStickerDialogService=m,this.luxonFormats=u.i0,this.icons={arrowLeft:b.acZ,reload:f.tmN,editSchedule:f.clv},this.GRAPH_TIME_SPAN_LENGTH=30}ngOnInit(){this.route.paramMap.pipe((0,y.U)(e=>e.get("detailed")),(0,U.b)(this.store.setAssigneeId)).subscribe(),this.fetchDataItems(),this.assigneeInfo$=this.getAssigneeInfo(),this.contacts$=this.getContacts(),this.urgencyTotals$=this.getUrgencyTotals(),this.timeSlotAssignees$=this.getTimeSlots(),this.scheduleAdjustments$=this.getScheduleAdjustmentsPayload()}goToDashboard(){this.router.navigate([".."],{relativeTo:this.route})}reloadData(){this.store.setLastUpdatedStatus(p.ou.local()),this.fetchDataItems()}fetchDataItems(){this.store.fetchScheduleAdjustments(),this.store.fetchAssigneeWithSlots(15),this.store.fetchAllCalls()}onOpenContactMenu(e){this.contactDescriptionList$=this.contactDialogOpenerHelperService.onOpenContactMenu(e)}onOpenDossier(e){this.contactDialogOpenerHelperService.onOpenDossier(e)}onChangeAppointment(e){this.contactAppointmentDialogService.open({strategy:fn.PT.EditAppointment,contactId:e.id,patientId:e.patient.id}).subscribe(n=>{n&&this.store.setLastUpdatedStatus(p.ou.local()),this.fetchDataItems()})}onChangeTimeSlotType(e){this.selectedTimeSlotType=e}editSchedule(){this.scheduleAdjustmentsDialogHelper.open(this.scheduleAdjustments).subscribe(()=>{this.reloadData()})}onPrintPatientSticker(e){this.patientStickerDialogService.open(e).subscribe()}getScheduleAdjustmentsPayload(){return this.store.selectedAssigneeWithSlotsAndContacts$.pipe((0,y.U)(e=>_e.getScheduleAdjustmentPayload(e)),(0,U.b)(e=>this.scheduleAdjustments=e))}getAssigneeInfo(){return this.store.selectedAssigneeWithSlotsAndContacts$.pipe((0,y.U)(e=>_e.getAssigneeInfo(e)))}getContacts(){return this.store.selectedAssigneeWithSlotsAndContacts$.pipe((0,y.U)(e=>_e.getContact(e)))}getUrgencyTotals(){return this.store.selectedAssigneeWithSlotsAndContacts$.pipe((0,y.U)(e=>Sn.getUrgencyTotal(e?.contacts)))}getTimeSlots(){return(0,Z.a)([this.store.selectedAssigneeWithSlotsAndContacts$,this.store.scheduleAdjustments$]).pipe((0,y.U)(([e,n])=>e?mt.getTimeSlotTypeGroupBy(e,n):null),(0,U.b)(e=>this.selectedTimeSlotType=e?.timeSlotsTypeList[0].type))}};let pe=Ut;Ut.\u0275fac=function(n){return new(n||Ut)(t.Y36(yt),t.Y36(d.gz),t.Y36(d.F0),t.Y36(ae),t.Y36(ne),t.Y36(ce.H),t.Y36(gn.W))},Ut.\u0275cmp=t.Xpm({type:Ut,selectors:[["hc-directing-detail-container"]],features:[t._Bn([yt,ce.H])],decls:2,vars:5,consts:[[4,"ngIf"],[3,"headerTitle","subTitle","doShowBackButton","backButtonClicked"],["text-after-title","","class","text-dimmed",4,"ngIf"],["actions",""],[3,"reloadData"],["mat-raised-button","","type","button","color","primary",3,"click",4,"ngIf"],[1,"row"],[1,"col-12"],["chart
1-component",""],["graphHeight","300px",3,"directingGraphData","halfHourTimeSpan"],["urgency-totals-component",""],[3,"urgencyTotals"],["time-slots","",1,"h-100"],[3,"timeSlots","selectedTimeSlotType","selectedTimeSlotTypeChange",4,"ngIf"],["contacts",""],[3,"contacts","contactDescriptionList","openContactMenu","editAppointmentClicked","openDossierClicked","printPatientStickerClicked"],["text-after-title","",1,"text-dimmed"],["mat-raised-button","","type","button","color","primary",3,"click"],[1,"pe-1",3,"icon"],[3,"timeSlots","selectedTimeSlotType","selectedTimeSlotTypeChange"]],template:function(n,i){1&n&&(t.YNc(0,Ks,23,23,"hc-page-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.VKq(3,Xs,t.lcZ(1,1,i.assigneeInfo$)))},dependencies:[l.O5,Qe,re,Be,He,le,vn.q,Dn.G,k.o,de,L.eB,l.Ov,ie.i],encapsulation:2});const rt=class{};let Ge=rt;rt.\u0275fac=function(n){return new(n||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({imports:[d.Bz.forChild([{path:"",pathMatch:"full",redirectTo:"dashboard"},{path:"dashboard",component:ue},{path:":detailed",component:pe}]),d.Bz]});const lt=class{};let ze=lt;lt.\u0275fac=function(n){return new(n||lt)},lt.\u0275mod=t.oAB({type:lt}),lt.\u0275inj=t.cJS({imports:[l.ez,Ht.uH,Gt.AV,L.yu]});var to=c(39069),eo=c(30747);const dt=class{};let Ve=dt;dt.\u0275fac=function(n){return new(n||dt)},dt.\u0275mod=t.oAB({type:dt}),dt.\u0275inj=t.cJS({imports:[l.ez,An.IF,Yt.wp,Se.x4,Li.forRoot({echarts:()=>c.e(386).then(c.bind(c,77386))}),Ht.uH,g.U5,De.jb,Gt.AV,At.jp,L.yu,xe.uw,Qt.FA,T.u5,T.UX,zt.Nn,I.jT,ke.yD,to.ne,D.KY,eo.Cf]});var no=c(77005);const ut=class{};let Re=ut;ut.\u0275fac=function(n){return new(n||ut)},ut.\u0275mod=t.oAB({type:ut}),ut.\u0275inj=t.cJS({imports:[l.ez,Ge,Ve,rn.OJ,g.U5,se.Wd,I.jT,De.jb,G.Dd,At.jp,Ht.uH,ze,L.yu,an.gf,cn.qv,no.R]})},69521:(he,$,c)=>{c.d($,{n:()=>u});var l=c(94650),d=c(36895);function B(E,A){if(1&E&&(l.TgZ(0,"p",4),l._uU(1),l.qZA()),2&E){const v=l.oxw();l.xp6(1),l.Oqu(v.count)}}const M=[[["","card-title",""]],[["","status-pill",""]],[["","subtitle",""]],[["","action-button",""]]],f=class{constructor(){this.customClass="mb-3",this.headerHeight="h-fixed-40"}set headerTitle(A){this.title=A}get headerTitle(){return this.title}};let u=f;f.\u0275fac=function(v){return new(v||f)},f.\u0275cmp=l.Xpm({type:f,selectors:[["hc-card-header"]],inputs:{title:"title",headerTitle:"headerTitle",count:"count",customClass:"customClass",headerHeight:"headerHeight"},ngContentSelectors:["[card-title]","[status-pill]","[subtitle]","[action-button]"],decls:10,vars:6,consts:[[3,"ngClass"],[1,"flex-grow-1","d-flex","align-items-center"],[1,"fw-bolder","m-0","d-inline-block"],["class","d-inline-block my-2 px-3",4,"ngIf"],[1,"d-inline-block","my-2","px-3"]],template:function(v,p){1&v&&(l.F$t(M),l.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"h3",2),l._uU(4),l.Hsn(5),l.Hsn(6,1),l.qZA(),l.Hsn(7,2),l.YNc(8,B,2,1,"p",3),l.qZA()(),l.Hsn(9,3),l.qZA()),2&v&&(l.Gre("d-flex align-items-center ",p.headerHeight,""),l.Q6J("ngClass",p.customClass),l.xp6(4),l.hij(" ",p.title," "),l.xp6(4),l.Q6J("ngIf",p.count))},dependencies:[d.mk,d.O5],encapsulation:2,changeDetection:0})},87039:(he,$,c)=>{c.d($,{A:()=>p});var l=c(82910),d=c(94650),B=c(99818),M=c(36895),Z=c(28377),u=c(47150);function f(Pt,O){if(1&Pt){const D=d.EpF();d.ynx(0),d.TgZ(1,"div",2),d.NdJ("click",function(Jt){d.CHM(D);const t=d.oxw();return d.KtG(t.collapseContent(Jt))}),d.Hsn(2),d.TgZ(3,"button",3),d.NdJ("click",function(Jt){d.CHM(D);const t=d.oxw();return d.KtG(t.collapseContent(Jt))}),d._UZ(4,"hc-icon",4),d.qZA()(),d.BQk()}if(2&Pt){const D=d.oxw();d.xp6(4),d.Q6J("icon",D.chevronIcon)("flip",D.flipIcon)}}function E(Pt,O){1&Pt&&(d.ynx(0),d.Hsn(1,1),d.BQk())}const A=[[["","collapsable-card-header",""]],"*"],H=class{constructor(){this.showElevation=!0,this.customClass="mb-3",this.isCollapsable=!1,this.shouldShowContent=!0,this.flipIcon="vertical",this.chevronIcon=l.ptq}ngOnChanges(O){O.shouldShowContent&&(this.flipIcon=this.determineFlipIcon(O.shouldShowContent.currentValue))}collapseContent(O){O.stopPropagation(),this.shouldShowContent=!this.shouldShowContent,this.flipIcon=this.determineFlipIcon(this.shouldShowContent)}determineFlipIcon(O){return O?"vertical":"horizontal"}};let p=H;H.\u0275fac=function(D){return new(D||H)},H.\u0275cmp=d.Xpm({type:H,selectors:[["hc-card"]],inputs:{showElevation:"showElevation",customClass:"customClass",isCollapsable:"isCollapsable",shouldShowContent:"shouldShowContent"},features:[d.TTD],ngContentSelectors:["[collapsable-card-header]","*"],decls:3,vars:9,consts:[[1,"hc-card","px-4",3,"ngClass"],[4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between","cursor-pointer",3,"click"],["mat-icon-button","",3,"click"],[3,"icon","flip"]],template:function(D,j){1&D&&(d.F$t(A),d.TgZ(0,"mat-card",0),d.YNc(1,f,5,2,"ng-container",1),d.YNc(2,E,2,0,"ng-container",1),d.qZA()),2&D&&(d.ekj("collapsable",j.isCollapsable)("collapsed",j.isCollapsable&&!j.shouldShowContent)("mat-elevation-z0",!j.showElevation),d.Q6J("ngClass",j.customClass),d.xp6(1),d.Q6J("ngIf",j.isCollapsable),d.xp6(1),d.Q6J("ngIf",j.shouldShowContent))},dependencies:[B.eB,M.mk,M.O5,Z.S$,u.o],styles:[".hc-card.collapsable hc-card-header h3{font-size:14px}.hc-card.collapsable{padding-top:0;backface-visibility:hidden;transform:translateZ(0)}.hc-card.collapsable.collapsed{padding-bottom:0}\n"],encapsulation:2,changeDetection:0})},86527:(he,$,c)=>{c.d($,{G:()=>M});var l=c(94650);const Z=class{constructor(E,A){this.element=E,this.renderer=A}
1ngOnChanges(){this.hcPaddingBottomPageContent?this.renderer.addClass(this.element.nativeElement,"padding-bottom-page-content-160"):this.renderer.removeClass(this.element.nativeElement,"padding-bottom-page-content-160")}};let d=Z;Z.\u0275fac=function(A){return new(A||Z)(l.Y36(l.SBq),l.Y36(l.Qsj))},Z.\u0275dir=l.lG2({type:Z,selectors:[["","hcPaddingBottomPageContent",""]],inputs:{hcPaddingBottomPageContent:"hcPaddingBottomPageContent"},features:[l.TTD]});const u=class{constructor(){this.hasPaddingBottom=!0,this.containerClass=""}};let M=u;u.\u0275fac=function(A){return new(A||u)},u.\u0275cmp=l.Xpm({type:u,selectors:[["hc-page-container"]],inputs:{hasPaddingBottom:"hasPaddingBottom",containerClass:"containerClass"},ngContentSelectors:["*"],decls:2,vars:4,consts:[[3,"hcPaddingBottomPageContent"]],template:function(A,v){1&A&&(l.F$t(),l.TgZ(0,"div",0),l.Hsn(1),l.qZA()),2&A&&(l.Gre("h-100 p-6 container-fluid ",v.containerClass,""),l.Q6J("hcPaddingBottomPageContent",v.hasPaddingBottom))},dependencies:[d],encapsulation:2,changeDetection:0})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.