PageSourceSearch

https://hap.healthconnected.nl/452.d0c42face64e353c.js

js healthconnected.nl collected 2026-10-08 20:45:55 UTC 14,498 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhapis=self.webpackChunkhapis||[]).push([[452],{18452:(qt,K,o)=>{o.r(K),o.d(K,{UrgencyDeadlineContainerComponent:()=>W});var t=o(94650),P=o(4859),J=o(78087),mt=o(92216),k=o(10266),gt=o(82910),q=o(73546),c=o(53626),_=o(53166);const y=class{transform(e){return e===_.i.Hour?"uur":"minuten"}};let M=y;y.\u0275fac=function(n){return new(n||y)},y.\u0275pipe=t.Yjl({name:"deadlineUnit",type:y,pure:!0,standalone:!0});var x=o(36895);const v=class{};let A=v;function ft(a,e){1&a&&(t.TgZ(0,"mat-header-cell"),t._uU(1,"Urgentie"),t.qZA())}function pt(a,e){if(1&a&&(t.TgZ(0,"mat-cell"),t._UZ(1,"hc-urgency-label",7),t.qZA()),2&a){const n=e.$implicit;t.xp6(1),t.Q6J("urgency",n.urgency)}}function ht(a,e){1&a&&(t.TgZ(0,"mat-header-cell"),t._uU(1,"Termijn van beoordelen"),t.qZA())}function yt(a,e){if(1&a&&(t.ynx(0),t._uU(1),t.ALo(2,"deadlineUnit"),t.BQk()),2&a){const n=t.oxw().$implicit;t.xp6(1),t.AsE(" Binnen ",n.value," ",t.lcZ(2,2,n.unit)," ")}}function vt(a,e){1&a&&t._uU(0,"Advies")}function Tt(a,e){if(1&a&&(t.TgZ(0,"mat-cell"),t.YNc(1,yt,3,4,"ng-container",8),t.YNc(2,vt,1,0,"ng-template",null,9,t.W1O),t.qZA()),2&a){const n=e.$implicit,i=t.MAs(3);t.xp6(1),t.Q6J("ngIf",null!==n.value)("ngIfElse",i)}}function Dt(a,e){1&a&&t._UZ(0,"mat-header-row")}function Ut(a,e){if(1&a&&t._UZ(0,"mat-row"),2&a){const n=t.oxw();t.uIk("colspan",n.displayedColumns.length)}}v.\u0275fac=function(n){return new(n||v)},v.\u0275cmp=t.Xpm({type:v,selectors:[["hc-urgency-label"]],inputs:{urgency:"urgency"},standalone:!0,features:[t.jDz],decls:3,vars:4,consts:[[1,"d-flex","align-items-center"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t._UZ(1,"div"),t._uU(2),t.qZA()),2&n&&(t.xp6(1),t.Gre("bg-urgency-",i.urgency," rounded-circle urgency-circle me-1"),t.xp6(1),t.hij(" ",i.urgency,"\n"))},styles:[".urgency-circle[_ngcontent-%COMP%]{width:14px;height:14px}"]});const T=class{constructor(){this.displayedColumns=["urgency","term"]}};let B=T;T.\u0275fac=function(n){return new(n||T)},T.\u0275cmp=t.Xpm({type:T,selectors:[["hc-urgency-table"]],inputs:{urgencyDeadlines:"urgencyDeadlines"},standalone:!0,features:[t.jDz],decls:9,vars:3,consts:[[1,"w-100",3,"dataSource"],["matColumnDef","urgency"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","term"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"urgency"],[4,"ngIf","ngIfElse"],["advice",""]],template:function(n,i){1&n&&(t.TgZ(0,"mat-table",0),t.ynx(1,1),t.YNc(2,ft,2,0,"mat-header-cell",2),t.YNc(3,pt,2,1,"mat-cell",3),t.BQk(),t.ynx(4,4),t.YNc(5,ht,2,0,"mat-header-cell",2),t.YNc(6,Tt,4,2,"mat-cell",3),t.BQk(),t.YNc(7,Dt,1,0,"mat-header-row",5),t.YNc(8,Ut,1,1,"mat-row",6),t.qZA()),2&n&&(t.Q6J("dataSource",i.urgencyDeadlines),t.xp6(7),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns))},dependencies:[c.p0,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,M,x.O5,A],styles:[".mat-column-name[_ngcontent-%COMP%]{width:200px;
1min-width:200px;justify-content:left}.mat-column-term[_ngcontent-%COMP%]{width:200px;min-width:200px;justify-content:right}"]});var tt=o(11503),Zt=o(68959),et=o(49095),r=o(24006);new r.qu,new r.qu;var s=(()=>{return(a=s||(s={}))[a.NoAppointment=0]="NoAppointment",a[a.WithinCertainTime=1]="WithinCertainTime",s;var a})(),S=o(74278);const l=class extends S.AB{transform(e,n){const{urgencies:i}=e.controls;return{id:n.id,urgencies:i.controls.map(I=>{const{id:Pt,urgency:kt,unit:ut,amount:dt}=I.controls;return{id:Pt.value,urgency:kt.value,value:dt.enabled?dt.value:null,unit:ut.enabled?ut.value:null}})}}};let w=l;l.\u0275fac=function(){let e;return function(i){return(e||(e=t.n5z(l)))(i||l)}}(),l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"});var ot=o(25887);const u=class extends S.uI{transform(e,n){return{id:n.id,urgencyCategoryResponseTimes:e.urgencies.map(i=>({id:i.id,urgencyCode:i.urgency,value:i.value,timeUnitType:null!==i.unit?ot.s.getMnemonicByType(i.unit):null}))}}};let Y=u;u.\u0275fac=function(){let e;return function(i){return(e||(e=t.n5z(u)))(i||u)}}(),u.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"});const m=class extends S.B7{constructor(e,n,i){super(e,n,i),this.urgencyDeadlineFormTransformerService=e,this.urgencyDeadlinePatchTransformerService=n,this.patchComparatorService=i}};let z=m;m.\u0275fac=function(n){return new(n||m)(t.LFG(w),t.LFG(Y),t.LFG(S.yH))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"});var it=o(81042),at=o(81848);const g=class{constructor(){this.formBuilder=(0,t.f3M)(r.j3),this.buildForm()}checkValidity(){return at.C.checkValidityRecursive(this.form)}fillForm(e){e.forEach(n=>{this.urgencyFormArray.push(this.buildUrgencyDeadlineForm(n))})}buildForm(){this.form=this.formBuilder.group({id:it.Z(),urgencies:this.formBuilder.array([])}),this.urgencyFormArray=this.form.controls.urgencies}buildUrgencyDeadlineForm(e){return this.formBuilder.group({id:e.id,urgency:[e.urgency],followUp:[null!==e.value?s.WithinCertainTime:s.NoAppointment],amount:[{value:e.value,disabled:!e.value}],unit:this.formBuilder.control({value:e.unit,disabled:null===e.unit})})}};let F=g;g.\u0275fac=function(n){return new(n||g)},g.\u0275prov=t.Yz7({token:g,factory:g.\u0275fac});var N=o(59549),j=o(84385),rt=o(47873),Ct=o(60960),xt=o(41204);const D=class{constructor(){this.controlContainer=(0,t.f3M)(r.gN),this.urgencyUnitEnum=_.i,this.urgencyFollowUpEnum=s}ngOnInit(){this.controlContainer.control&&(this.form=this.controlContainer.control),this.followUpSubscription=this.subscribeToFollowUpValueChanges()}ngOnDestroy(){this.followUpSubscription.unsubscribe()}subscribeToFollowUpValueChanges(){return(0,Ct.t)(this.form.controls.followUp).subscribe(e=>{at.cy.toggleDisabledStates(this.form,e===s.NoAppointment,["unit","amount"])})}};let O=D;D.\u0275fac=function(n){return new(n||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["hc-urgency-deadline-form"]],standalone:!0,features:[t.jDz],decls:22,vars:6,consts:[[3,"formGroup"],[1,"row"],[1,"col-6"],[1,"w-100","mat-form-field-appearance-legacy"],["formControlName","followUp"],[3,"value"],[1,"col-3"],["formGroupName","amount","label","Aantal",3,"min"],["formControlName","unit"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),t._uU(5,"Vervolg"),t.qZA(),t.TgZ(6,"mat-select",4)(7,"mat-option",5),t._uU(8,"Geen afspraak"),t.qZA(),t.TgZ(9,"mat-option",5),t._uU(10,"Binnen bepaalde tijd"),t.qZA()()()(),t.TgZ(11,"div",6),t._UZ(12,"hc-number",7),t.qZA(),t.TgZ(13,"div",6)(14,"mat-form-field",3)(15,"mat-label"),t._uU(16,"Eenheid"),t.qZA(),t.TgZ(17,"mat-select",8)(18,"mat-option",5),t._uU(19,"Uur"),t.qZA(),t.TgZ(20,"mat-option",5),t._uU(21,"Minuten"),t.qZA()()()()()()),2&n&&(t.Q6J("formGroup",i.form),t.xp6(7),t.Q6J("value",i.urgencyFollowUpEnum.NoAppointment),t.xp6(2),t.Q6J("value",i.urgencyFollowUpEnum.WithinCertainTime),t.xp6(3),t.Q6J("min",1),t.xp6(6),t.Q6J("value",i.urgencyUnitEnum.Hour),t.xp6(2),t.Q6J("value",i.urgencyUnitEnum.Minute))},dependencies:[x.ez,N.lN,N.KE,N.hX,rt.Ng,rt.ey,j.LD,j.gD,r.UX,r._Y,r.JJ,r.JL,r.sg,r.u,r.x0,J.jb,xt.D],encapsulation:2});var Ft=o(65929);function At(a,e){if(1&a&&(t.TgZ(0,"div"),t._UZ(1,"hc-urgency-label",3)(2,"hc-urgency-deadline-form",4),t.qZA()),2&a){const n=e.$implicit,i=e.index;t.xp6(1),t.Q6J("urgency",n.controls.urgency.value),t.xp6(1),t.Q6J("formGroupName",i)}}const U=class{constructor(){this.urgencyOverviewFormService=(0,t.f3M)(F),this.form=this.urgencyOverviewFormService.form,this.urgencyFollowUpEnum=s}};let b=U;U.\u0275fac=function(n){return new(n||U)},U.\u0275cmp=t.Xpm({type:U,selectors:[["hc-urgency-overview-form"]],standalone:!0,features:[t.jDz],decls:3,vars:2,consts:[[3,"formGroup"],["formArrayName","urgencie
1s"],[4,"ngFor","ngForOf"],[3,"urgency"],[3,"formGroupName"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0)(1,"div",1),t.YNc(2,At,3,2,"div",2),t.qZA()()),2&n&&(t.Q6J("formGroup",i.form),t.xp6(2),t.Q6J("ngForOf",i.urgencyOverviewFormService.urgencyFormArray.controls))},dependencies:[k.AV,x.sg,r.UX,r._Y,r.JL,r.sg,r.x0,r.CE,J.jb,A,N.lN,j.LD,O,Ft.QQ],encapsulation:2});var St=o(29054);const Z=class{constructor(){this.urgencyDeadlineFormService=(0,t.f3M)(F),this.urgencyDeadlines=(0,t.f3M)(et.eJ),this.matDialogRef=(0,t.f3M)(et.hV)}ngOnInit(){this.urgencyDeadlineFormService.fillForm(this.urgencyDeadlines)}onSaveButtonClick(){!this.urgencyDeadlineFormService.checkValidity()||this.matDialogRef.close(this.urgencyDeadlineFormService.form)}};let G=Z;Z.\u0275fac=function(n){return new(n||Z)},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["hc-urgency-deadline-edit-dialog"]],standalone:!0,features:[t._Bn([F]),t.jDz],decls:6,vars:0,consts:[[3,"submitClicked"],[1,"dialog-title"],[1,"m-0"],[1,"dialog-content"]],template:function(n,i){1&n&&(t.TgZ(0,"hc-dialog-template",0),t.NdJ("submitClicked",function(){return i.onSaveButtonClick()}),t.TgZ(1,"div",1)(2,"h3",2),t._uU(3,"Urgentie aanpassen"),t.qZA()(),t.TgZ(4,"div",3),t._UZ(5,"hc-urgency-overview-form"),t.qZA()())},dependencies:[tt.Dd,St._,b],encapsulation:2});const f=class{constructor(){this.dialogService=(0,t.f3M)(tt.xA)}open(e){return this.dialogService.open(G,{width:Zt.PW.Large,autoFocus:!1,data:e}).afterClosed()}};let L=f;f.\u0275fac=function(n){return new(n||f)},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"});var Nt=o(46537),Qt=o(53269),R=o(54004),$=o(70262),ct=o(62843),It=o(97705);const d=class extends It.F{transform(e){return{id:e.id,urgency:e.urgencyCode,value:e.value,unit:null!==e.timeUnitType?ot.s.getTypeByMnemonic(e.timeUnitType):null}}};let V=d;d.\u0275fac=function(){let e;return function(i){return(e||(e=t.n5z(d)))(i||d)}}(),d.\u0275prov=t.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"});const p=class{constructor(){this.loggerService=(0,t.f3M)(Nt.mQ),this.httpApiService=(0,t.f3M)(Qt.OG),this.urgencyDeadlineResponseTransformer=(0,t.f3M)(V)}patchUrgencyDeadlines(e){return this.httpApiService.patch("organisation/settings",e,null).pipe((0,R.U)(()=>!0),(0,$.K)(n=>(this.loggerService.error("Failed to patch urgency deadlines",{error:n}),(0,ct._)(()=>n))))}getUrgencyDeadlines(){return this.httpApiService.get("organisation/settings").pipe((0,R.U)(e=>this.urgencyDeadlineResponseTransformer.transformMultiple(e.urgencyCategoryResponseTimes)),(0,$.K)(e=>(this.loggerService.error("Failed to get urgency deadlines",{error:e}),(0,ct._)(()=>e))))}};let Q=p;p.\u0275fac=function(n){return new(n||p)},p.\u0275prov=t.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"});const Jt={urgencyDeadlines:[]};var Mt=o(63787),X=o(63900),Bt=o(18505),Et=o(60515),wt=o(28746),Yt=o(17758),st=o(85867);const h=class extends Mt.m1{constructor(){super(Jt),this.urgencyDeadlinesApiService=(0,t.f3M)(Q),this.apiStatusStoreFactoryService=(0,t.f3M)(Yt.v),this.urgencyDeadlineApiStatusStore=this.apiStatusStoreFactoryService.getClassInstance({status:st.B.Idle}),this.urgencyDeadlines$=this.select(({urgencyDeadlines:e})=>e),this.setUrgencyDeadlines=this.updater((e,n)=>({...e,urgencyDeadlines:n})),this.loadUrgencyDeadlines=this.effect(e=>e.pipe((0,X.w)(()=>(this.urgencyDeadlineApiStatusStore.startLoading(),this.urgencyDeadlinesApiService.getUrgencyDeadlines().pipe((0,Bt.b)(n=>{this.setUrgencyDeadlines(n)}),(0,wt.x)(()=>this.urgencyDeadlineApiStatusStore.stopLoading()),(0,$.K)(()=>(this.urgencyDeadlineApiStatusStore.startCorruption(),Et.E)))))))}};let H=h;h.\u0275fac=function(n){return new(n||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"});var lt=o(95698),zt=o(77005),jt=o(69521),Ot=o(94270),bt=o(86527),Gt=o(47150),Lt=o(62484),Rt=o(87039),$t=o(83675);function Vt(a,e){1&a&&t._UZ(0,"hc-skeleton",6),2&a&&t.Q6J("count",1)}function Xt(a,e){if(1&a){const n=t.EpF();t.TgZ(0,"hc-card")(1,"hc-card-header",7)(2,"div",8)(3,"button",9),t.NdJ("click",function(){t.CHM(n);const I=t.oxw(2);return t.KtG(I.onEditUrgency())}),t._UZ(4,"hc-icon",10),t.qZA()()(),t.TgZ(5,"mat-card-content"),t._UZ(6,"hc-urgency-table",11),t.ALo(7,"async"),t.qZA()()}if(2&a){const n=t.oxw(2);t.xp6(4),t.Q6J("icon",n.editIcon),t.xp6(2),t.Q6J("urgencyDeadlines",t.lcZ(7,2,n.urgencyDeadlines$))}}function Ht(a,e){1&a&&(t.TgZ(0,"hc-no-data",12),t._uU(1," Er is iets misgegaan bij het inladen van de NTS urgenties. "),t.qZA()),2&a&&t.Q6J("doShowIcon",!1)}function Wt(a,e){if(1&a&&(t.ynx(0),t.YNc(1,Vt,1,1,"hc-skeleton",4),t.YNc(2,Xt,8,4,"hc-card",3),t.YNc(3,Ht,2,1,"hc-no-data",5),t.BQk()),2&a){const n=e.ngIf,i=t.oxw();
1t.xp6(1),t.Q6J("ngIf",n.status===i.apiStatusEnum.Loading),t.xp6(1),t.Q6J("ngIf",n.status!==i.apiStatusEnum.Loading),t.xp6(1),t.Q6J("ngIf",n.status===i.apiStatusEnum.Corrupted)}}const Kt=function(a){return{status:a}},C=class{constructor(){this.urgencyDeadlineStore=(0,t.f3M)(H),this.urgencyDeadlinesApiService=(0,t.f3M)(Q),this.urgencyDeadlineEditDialogService=(0,t.f3M)(L),this.urgencyDeadlinePatchBuilderService=(0,t.f3M)(z),this.urgencyDeadlines$=this.urgencyDeadlineStore.urgencyDeadlines$,this.apiStatus$=this.urgencyDeadlineStore.urgencyDeadlineApiStatusStore.state$.pipe((0,R.U)(e=>e.status)),this.editIcon=gt.TzT,this.apiStatusEnum=st.B}ngOnInit(){this.urgencyDeadlineStore.loadUrgencyDeadlines()}onEditUrgency(){this.urgencyDeadlines$.pipe((0,lt.q)(1),(0,X.w)(e=>this.urgencyDeadlineEditDialogService.open(e))).subscribe(e=>{e&&this.patchUrgencyDeadlines(e)})}patchUrgencyDeadlines(e){this.urgencyDeadlines$.pipe((0,lt.q)(1),(0,X.w)(n=>{const i=this.urgencyDeadlinePatchBuilderService.build(e,{id:it.Z(),urgencies:n});return this.urgencyDeadlinesApiService.patchUrgencyDeadlines(i)})).subscribe(()=>{this.urgencyDeadlineStore.loadUrgencyDeadlines()})}};let W=C;C.\u0275fac=function(n){return new(n||C)},C.\u0275cmp=t.Xpm({type:C,selectors:[["hc-urgency-deadline-container-component"]],standalone:!0,features:[t.jDz],decls:6,vars:5,consts:[["headerTitle","Urgenties"],[1,"row"],[1,"col-6"],[4,"ngIf"],["height","288px",3,"count",4,"ngIf"],["titleText","Fout opgetreden","class","pt-5",3,"doShowIcon",4,"ngIf"],["height","288px",3,"count"],["title","NTS urgenties"],["action-button",""],["action-button","","mat-icon-button","",3,"click"],[3,"icon"],[3,"urgencyDeadlines"],["titleText","Fout opgetreden",1,"pt-5",3,"doShowIcon"]],template:function(n,i){1&n&&(t.TgZ(0,"hc-page-container"),t._UZ(1,"hc-page-header",0),t.TgZ(2,"div",1)(3,"div",2),t.YNc(4,Wt,4,3,"ng-container",3),t.ALo(5,"async"),t.qZA()()()),2&n&&(t.xp6(4),t.Q6J("ngIf",t.VKq(3,Kt,t.lcZ(5,1,i.apiStatus$))))},dependencies:[P.ot,P.RK,J.jb,jt.n,Ot.q,bt.G,Gt.o,Lt.d,Rt.A,mt.uH,k.AV,q.QW,q.dn,B,x.Ov,x.O5,zt.R,$t._],encapsulation:2})}}]);

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.