1import{c as Wi}from"./chunk-E7A5VR64.js";import{a as Ii}from"./chunk-6YJEB5M2.js";import{a as Hi,b as Ni}from"./chunk-OCVSECKC.js";import{a as ji}from"./chunk-GBLCZSRV.js";import{a as zi}from"./chunk-MYCL55IK.js";import{a as qi}from"./chunk-T36LH7G6.js";import{a as Li}from"./chunk-RFD32NS2.js";import{c as Oi,d as qe,i as We}from"./chunk-XCZL6A3K.js";import"./chunk-OX5MHQ2O.js";import{a as Ui}from"./chunk-LN3AAEXA.js";import{a as Ai}from"./chunk-JPTUSWQX.js";import"./chunk-ISMWR2HP.js";import{c as Pi}from"./chunk-2IIH3EEI.js";import{a as Ne}from"./chunk-R3G4ZQOM.js";import"./chunk-GR7UVCTI.js";import{a as vi,b as bi,c as Ci,d as xi,e as yi,f as wi,g as Si,h as Ti,i as ki,j as Ei,k as Di,m as Mi,n as Vi,o as Fi,p as Ri,r as gt,s as He}from"./chunk-QMLTAY6B.js";import"./chunk-SCNXV6NK.js";import{a as Bi}from"./chunk-LIZAEGQW.js";import"./chunk-UUJVRX65.js";import"./chunk-5FU5W3BC.js";import"./chunk-5T4S6PXQ.js";import"./chunk-VAOZPW7J.js";import"./chunk-Z7476GR7.js";import{a as Ue}from"./chunk-V6YZQMFN.js";import"./chunk-BUCHB65V.js";import{a as Yt}from"./chunk-JWLPIGXX.js";import"./chunk-JPHCT3GZ.js";import"./chunk-BXD5XKLL.js";import"./chunk-57P3ZUEX.js";import"./chunk-NOT75SZ7.js";import"./chunk-LLBB3WF6.js";import"./chunk-WGTDG3LI.js";import{a as Zt}from"./chunk-3MOKT7CT.js";import"./chunk-J7GMBPFM.js";import"./chunk-YOKCO37S.js";import"./chunk-NKFRWZ4U.js";import"./chunk-YD7IYLSD.js";import"./chunk-OHYYJJTI.js";import{a as fi,b as hi}from"./chunk-DOE4PH7M.js";import"./chunk-SZEQYB2N.js";import{a as ze}from"./chunk-T4C3IJMX.js";import{a as _i}from"./chunk-74OKPVH7.js";import{a as Oe,b as je,c as Le}from"./chunk-ZDQPO5IB.js";import{a as ui}from"./chunk-SDKVQGOK.js";import{a as gi}from"./chunk-47XWEBWY.js";import"./chunk-XQ3Z7VLS.js";import"./chunk-4SAM5PWY.js";import{c as si,d as ci,i as Pe}from"./chunk-NVVIWNP4.js";import{a as di,b as pi,c as mi,d as Ae}from"./chunk-JTYRW7OL.js";import{a as li}from"./chunk-BM4ZWDFR.js";import{a as J}from"./chunk-2ROSWDJI.js";import{a as Ie}from"./chunk-PYX3ALJS.js";import"./chunk-CR66LWIL.js";import"./chunk-EUG24UY6.js";import{f as Kt}from"./chunk-2557C34D.js";import"./chunk-4J6NN255.js";import{a as Z}from"./chunk-Q5ENNLIN.js";import"./chunk-3XQQVIVE.js";import"./chunk-C5MVMQHI.js";import{a as $}from"./chunk-3WQ3ER3Y.js";import"./chunk-2FFH5JCW.js";import"./chunk-HE5UEEFV.js";import"./chunk-J5QVRNVG.js";import{a as ei,b as fe,c as Re,e as he,f as ti,g as ii,i as ut,j as Be,k as ni,m as oi,p as ri,v as re,w as ai,x as ve}from"./chunk-SFIP4PYL.js";import{a as mt}from"./chunk-EFYFO5VD.js";import{a as Fe}from"./chunk-BQXBZNSG.js";import{c as G}from"./chunk-ARPSV4CN.js";import"./chunk-HWSKWFK6.js";import{c as Ve}from"./chunk-CFMEKB3S.js";import"./chunk-EJ6MUWLF.js";import"./chunk-JO6NCRH5.js";import"./chunk-OLQMAZXA.js";import{a as xe}from"./chunk-MEYXH3PK.js";import{a as be}from"./chunk-BUPZIJN6.js";import{a as Ce}from"./chunk-LOQ7C2L2.js";import{h as Xt,i as Qt}from"./chunk-UABZWY4S.js";import"./chunk-HELN4YUO.js";import"./chunk-TDEDFCDK.js";import{c as Gt,d as ct,f as dt,h as pt}from"./chunk-F2X3VGZZ.js";import"./chunk-LB3X5EEC.js";import{b as Wt,g as $t,h as Jt,m as H}from"./chunk-VS5ACRJZ.js";import{$ as lt,H as zt,da as F,ea as Ht,i as Ot,ia as Nt,ja as st,l as jt,m as Lt,ma as Ut,pa as qt}from"./chunk-CDDZ63PW.js";import{f as De,g as Pt,h as Me}from"./chunk-DPW4HH75.js";import"./chunk-2GFUZ2HS.js";import{l as _e,o as Ft,p as Rt,q as Bt,t as pe,v as Ee,w as It,z as At}from"./chunk-T5KFAHAS.js";import{$b as r,Aa as ae,Bb as ke,Da as me,Db as h,Dc as T,Ea as Te,Ec as k,Fc as E,Ga as C,Jc as U,Kc as v,Lc as at,Mc as oe,Nb as Y,Nc as Et,Ob as p,Pb as te,Qb as Tt,Rb as L,Sb as z,Tb as kt,Uc as B,Vb as b,Wb as ie,Wc as q,Yb as A,Yc as ge,Zb as P,Zc as D,_b as o,aa as xt,ac as _,ba as yt,bb as wt,dc as j,ec as x,gb as s,ha as y,jc as f,kc as d,lb as St,ld as ye,md as Dt,nd as Mt,od as W,pa as m,pd as Vt,qa as u,qc as le,rc as se,sb as ue,sc as ce,ta as Se,u as ne,wc as de,xb as w,xc as c,yc as S,zc as R}from"./chunk-NZECY5HQ.js";import{a as I,b as Q,k as ee}from"./chunk-J4XOFOAH.js";var Ge=class t{selectedTab="profile";tabs=[{label:"Je profiel",value:"profile",routerLink:"/settings/profile"},{label:"Beveiliging",value:"security",routerLink:"/settings/security"},{label:"Team",value:"team",routerLink:"/settings/team"},{label:"Notificaties",value:"notifications",routerLink:"/settings/notifications"},{label:"Organisatie",value:"organization",routerLink:"/settings/organization",state:{userType:[1]}},{label:"Thema's",value:"themes",routerLink:"/settings/themes",state:{userType:[1]}},{label:"Facturering",value:"billing",routerLink:"/settings/billing",state:{userType:[1]}}];static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-settings-overview"]],decls:6,vars:1,consts:[["title","Instellingen","subtitle","Beheer je accountinstellingen","leading","normal"],[1,"flex","flex-col"],[1,"w-full","mb-6"],[3,"tabs"],[1,"w-full","pb-12"]],template:function(e,i){e&1&&(_(0,"app-page-title",0),o(1,"div",1)(2,"div",2),_(3,"app-select-button-nav",3),r(),o(4,"div",4),_(5,"router-outlet"),r()()),e&2&&(s(3),p("tabs",i.tabs))},dependencies:[Pt,Li,re,li],encapsulation:2})};var $e=class t{authService=y(G);user=this.authService.userInfoSignal;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-settings-profile"]],decls:21,vars:3,consts:[[1,"flex","flex-col","lg:flex-row","gap-4"],[1,"lg:max-w-[320px]","w-full"],[1,"text-color","font-medium","leading-normal"],[1,"text-muted-color","font-normal","leading-normal"],["styleClass","secondary",1,"flex-1","max-w-[800px]"],[1,"flex","gap-3"],[1,"flex","w-1/2","flex-col","gap-2"],["for","firstname",1,"p-formlabel"],["pInputText","","id","firstname","aria-describedby","firstname-help",3,"ngModel"],["for","lastname",1,"p-formlabel"],["pInputText","","id","lastname","aria-describedby","lastname-help",3,"ngModel"],[1,"flex","mt-4"],[1,"flex","w-full","flex-col","gap-2"],["for","email",1,"p-formlabel"],["pInputText","","id","email","disabled","","aria-describedby","email-help",3,"ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"p-card",1)(2,"div",2),c(3,"Algemeen"),r(),o(4,"div",3),c(5,"Beheer je accountinstellingen"),r()(),o(6,"p-card",4)(7,"div",5)(8,"div",6)(9,"label",7),c(10,"Voornaam"),r(),_(11,"input",8),r(),o(12,"div",6)(13,"label",9),c(14,"Achternaam"),r(),_(15,"input",10),r()(),o(16,"div",11)(17,"div",12)(18,"label",13),c(19,"E-mailadres"),r(),_(20,"input",14),r()()()()),e&2){let a,l,g;s(11),p("ngModel",(a=i.user())==null||a.user==null?null:a.user.firstName),s(4),p("ngModel",(l=i.user())==null||l.user==null?null:l.user.lastName),s(5),p("ngModel",(g=i.user())==null||g.user==null?null:g.user.email)}},dependencies:[$,ve,re,fe,he,Be],encapsulation:2})};var _t=()=>({width:"600px",maxWidth:"90vw",maxHeight:"90vh"}),Zi=()=>["create:users"];function en(t,n){if(t&1&&(o(0,"span",26),c(1),B(2,"currency"),r(),c(3," per extra gebruiker (incl. BTW), jaarlijks tarief maandelijks gefactureerd. Een evenredig deel voor de resterende dagen van de huidige factuurperiode wordt in rekening gebracht. Dit verhoogt je minimale afname voor de rest van het lopende contractjaar. ")),t&2){let e=d();s(),R("+ ",ge(2,1,e.seatPrice,"EUR","symbol","1.0-0"),"/maand")}}function tn(t,n){if(t&1&&(o(0,"span",26),c(1),B(2,"currency"),r(),c(3," per extra gebruiker (incl. BTW). Een evenredig deel voor de resterende dagen van de huidige factuurperiode wordt in rekening gebracht. ")),t&2){let e=d();s(),R("+ ",ge(2,1,e.seatPrice,"EUR","symbol","1.0-0"),"/maand")}}function nn(t,n){if(t&1){let e=x();o(0,"p-button",27),f("onClick",function(){m(e);let a=d();return u(a.inviteDialogVisible.set(!1))}),r(),o(1,"p-button",28),f("onClick",function(){m(e);let a=d();return u(a.confirmInvite())}),r()}if(t&2){let e=d();p("outlined",!0),s(),p("loading",e.inviting())}}function on(t,n){if(t&1&&(c(0," ("),o(1,"span",26),c(2),r(),c(3,") ")),t&2){let e=d(3);
1s(2),S(e.annualRenewalDate)}}function rn(t,n){if(t&1&&(c(0," Je hebt een jaarcontract. Je facturering blijft ongewijzigd voor de rest van het lopende contractjaar \u2014 de verlaging van je gebruikersaantal wordt pas verwerkt bij de volgende contractverlenging "),h(1,on,4,1),c(2,". ")),t&2){let e=d(2);s(),b(e.annualRenewalDate?1:-1)}}function an(t,n){if(t&1&&(c(0," Je gebruikersaantal wordt verlaagd. De besparing van "),o(1,"span",26),c(2),B(3,"currency"),r(),c(4," gaat in bij het begin van de volgende factuurperiode. Er wordt geen creditnota uitgegeven voor de lopende maand. ")),t&2){let e=d(2);s(2),R("",ge(3,1,e.seatPrice,"EUR","symbol","1.0-0"),"/maand")}}function ln(t,n){if(t&1&&(o(0,"div",8),_(1,"i",9),o(2,"div",10),h(3,rn,3,1)(4,an,5,6),r()()),t&2){let e=d();s(3),b(e.isAnnual?3:4)}}function sn(t,n){if(t&1){let e=x();o(0,"p-button",27),f("onClick",function(){m(e);let a=d();return u(a.deleteDialogVisible.set(!1))}),r(),o(1,"p-button",29),f("onClick",function(){m(e);let a=d();return u(a.confirmDelete())}),r()}if(t&2){let e=d();p("outlined",!0),s(),p("loading",e.pendingDelete()!==null&&e.deletingUserIds().includes(e.pendingDelete().id))}}function cn(t,n){t&1&&c(0," Weet je zeker dat je de beheerdersrol van deze gebruiker wilt intrekken? ")}function dn(t,n){t&1&&c(0," Weet je zeker dat je deze gebruiker beheerder wilt maken? ")}function pn(t,n){t&1&&c(0," De gebruiker verliest toegang tot beheerdersfuncties, zoals het beheren van teamleden, facturering en instellingen. Hun API-rechten worden automatisch aangepast. ")}function mn(t,n){t&1&&c(0," Beheerders hebben toegang tot alle functies, waaronder het uitnodigen en verwijderen van teamleden, facturering en organisatie-instellingen. Hun API-rechten worden automatisch bijgewerkt. ")}function un(t,n){if(t&1){let e=x();o(0,"p-button",27),f("onClick",function(){m(e);let a=d();return u(a.roleChangeDialogVisible.set(!1))}),r(),o(1,"p-button",30),f("onClick",function(){m(e);let a=d();return u(a.confirmRoleChange())}),r()}if(t&2){let e,i,a,l=d();p("outlined",!0),s(),p("label",((e=l.pendingRoleChange())==null?null:e.type)===l.UserType.Admin?"Beheerdersrol intrekken":"Maak beheerder")("icon",(((i=l.pendingRoleChange())==null?null:i.type)===l.UserType.Admin,"pi pi-shield"))("severity",((a=l.pendingRoleChange())==null?null:a.type)===l.UserType.Admin?"warn":"primary")("loading",l.pendingRoleChange()!==null&&l.changingRoleUserIds().includes(l.pendingRoleChange().id))}}function gn(t,n){if(t&1){let e=x();o(0,"form",31),f("ngSubmit",function(){m(e);let a=d();return u(a.sendInvite())}),o(1,"div",32)(2,"p-iconfield",33),_(3,"p-inputicon",34)(4,"input",35),r(),_(5,"p-select",36),r(),_(6,"p-button",37),r()}if(t&2){let e=d();p("formGroup",e.inviteForm),s(5),p("options",e.userTypes),s(),p("loading",e.inviting())}}var Je=class t extends Ai{tenantsService=y(gi);activatedRoute=y(De);usersService=y(ji);authService=y(G);messageService=y(F);billingService=y(Oe);SubscriptionTier=Le;SubscriptionStatus=je;UserType=mt;userTypes=[{name:"Gebruiker",value:2},{name:"Admin",value:1}];deletingUserIds=C([]);resendingInvitationForUserIds=C([]);inviting=C(!1);subscription=C(null);pendingDelete=C(null);deleteDialogVisible=C(!1);inviteDialogVisible=C(!1);pendingRoleChange=C(null);roleChangeDialogVisible=C(!1);changingRoleUserIds=C([]);pendingTwoFactorReset=C(null);twoFactorResetDialogVisible=C(!1);inviteForm=new ii({email:new ut("",[Re.required,Re.email]),userType:new ut(2,[Re.required])});get isCocreator(){return this.authService.userInfoSignal()?.tenant?.isCocreator??!1}get isAnnual(){return this.subscription()?.tier===1}get seatPrice(){return this.isCocreator?19:this.isAnnual?42:47}get annualRenewalDate(){let n=this.subscription();return n?.tier!==1||!n.scheduledCancelAt?null:new Date(n.scheduledCancelAt).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})}get hasActivePaidSubscription(){let n=this.subscription()?.status;return n===0||n===1}ngOnInit(){super.ngOnInit?.(),this.authService.authorized(["read:billing"])&&this.billingService.getSubscription().subscribe({next:n=>this.subscription.set(n),error:()=>this.subscription.set(null)})}fetchData(n,e,i,a){this.usersService.getAll(n,e).subscribe(l=>{this.data.set(l),this.loading.set(!1)})}
1sendInvite(){if(this.inviteForm.invalid){this.inviteForm.markAllAsTouched();return}if(this.hasActivePaidSubscription){this.inviteDialogVisible.set(!0);return}this.submitInvite()}confirmInvite(){this.inviteDialogVisible.set(!1),this.submitInvite()}submitInvite(){let n={invites:[{email:this.inviteForm.value.email,userType:this.inviteForm.value.userType}]};this.inviting.set(!0),this.usersService.invite(n).subscribe({next:()=>{this.inviting.set(!1),this.messageService.add({severity:"success",summary:"Uitnodiging verstuurd",detail:"De gebruiker heeft een uitnodiging ontvangen.",life:3e3,icon:void 0,closable:!1,styleClass:"p-no-icon"}),this.inviteForm.reset({userType:2})},error:()=>{this.inviting.set(!1)}})}onDeleteUserRequested(n){this.pendingDelete.set(n),this.deleteDialogVisible.set(!0)}confirmDelete(){let n=this.pendingDelete();n&&(this.deleteDialogVisible.set(!1),this.deletingUserIds.update(e=>[...e,n.id]),this.usersService.delete(n.id).subscribe({next:()=>{this.pendingDelete.set(null),this.deletingUserIds.set(this.deletingUserIds().filter(e=>e!==n.id)),this.data.set(Q(I({},this.data()),{items:this.data()?.items?.filter(e=>e.id!==n.id)??[]})),this.messageService.add({severity:"success",summary:"Gebruiker verwijderd",detail:"De gebruiker is verwijderd.",life:3e3,icon:void 0,closable:!1,styleClass:"p-no-icon"})},error:()=>{this.pendingDelete.set(null),this.deletingUserIds.set(this.deletingUserIds().filter(e=>e!==n.id)),this.messageService.add({severity:"error",summary:"Fout bij verwijderen gebruiker",detail:"Er is een fout opgetreden bij het verwijderen van de gebruiker.",life:3e3,icon:void 0,closable:!1,styleClass:"p-no-icon"})}}))}onChangeRoleRequested(n){this.pendingRoleChange.set(n),this.roleChangeDialogVisible.set(!0)}get pendingRoleChangeTarget(){return this.pendingRoleChange()?.type===1?2:1}confirmRoleChange(){let n=this.pendingRoleChange();if(!n)return;let e=this.pendingRoleChangeTarget;this.roleChangeDialogVisible.set(!1),this.changingRoleUserIds.update(i=>[...i,n.id]),this.usersService.update(n.id,{type:e}).subscribe({next:i=>{this.changingRoleUserIds.update(l=>l.filter(g=>g!==n.id)),this.pendingRoleChange.set(null),this.data.update(l=>l&&Q(I({},l),{items:l.items?.map(g=>g.id===i.id?i:g)??[]}));let a=e===1;this.messageService.add({severity:"success",summary:a?"Beheerdersrol toegewezen":"Beheerdersrol ingetrokken",detail:a?`${n.fullName||n.email} is nu beheerder.`:`${n.fullName||n.email} is nu een reguliere gebruiker.`,life:3e3,closable:!1,styleClass:"p-no-icon"})},error:()=>{this.changingRoleUserIds.update(i=>i.filter(a=>a!==n.id)),this.pendingRoleChange.set(null),this.messageService.add({severity:"error",summary:"Fout bij wijzigen rol",detail:"De rol van de gebruiker kon niet worden gewijzigd.",life:3e3,closable:!1,styleClass:"p-no-icon"})}})}onResetTwoFactorRequested(n){this.pendingTwoFactorReset.set(n),this.twoFactorResetDialogVisible.set(!0)}onTwoFactorReset(n){this.pendingTwoFactorReset.set(null),this.data.update(e=>e&&Q(I({},e),{items:e.items?.map(i=>i.id===n.id?Q(I({},i),{twoFactorEnabledAt:null}):i)??[]})),this.messageService.add({severity:"success",summary:"Tweestapsverificatie gereset",detail:`${n.fullName||n.email} is uitgelogd en kan opnieuw inloggen.`,life:3e3,closable:!1,styleClass:"p-no-icon"})}onResendInvitationRequested(n){this.resendingInvitationForUserIds.update(e=>[...e,n.id]),this.usersService.resendInvite(n.id).subscribe({next:()=>{this.resendingInvitationForUserIds.set(this.resendingInvitationForUserIds().filter(e=>e!==n.id)),this.messageService.add({severity:"success",summary:"Uitnodiging verstuurd",detail:"Er is een nieuwe uitnodiging verstuurd naar de gebruiker.",life:3e3,icon:void 0,closable:!1,styleClass:"p-no-icon"})},error:()=>{this.messageService.add({severity:"error",summary:"Fout bij versturen uitnodiging",detail:"Er is een fout opgetreden bij het versturen van de uitnodiging.",life:3e3,icon:void 0,closable:!1,styleClass:"p-no-icon"})}})}static \u0275fac=(()=>{let n;return function(i){return(n||(n=Se(t)))(i||t)}})();static \u0275cmp=w({type:t,selectors:[["app-settings-team"]],features:[U([F]),ke],decls:56,vars:48,consts:[["footer",""],["header","Gebruiker uitnodigen",3,"visibleChange","visible","modal","closable","draggable","resizable"],[1,"flex","items-start","gap-3","mb-5"],[1,"flex","items-center","justify-center","w-9","h-9","rounded-full","bg-primary-100","dark:bg-primary-900/30","shrink-0","mt-0.5"],[1,"pi","pi-user-plus","text-primary","text-sm"],[1,"text-sm","text-color","leading-relaxed"],[1,"font-semibold","mb-1"],[1,"text-muted-color"],[1,"flex","items-start","gap-3","rounded-lg","bg-surface-50","dark:bg-surface-800","border","border-surface-200","dark:border-surface-700","p-4"],[1,"pi","pi-credit-card","text-muted-color","mt-0.5","shrink-0"],[1,"text-sm","text-muted-color","leading-relaxed"],["header","Gebruiker verwijderen",3,"visibleChange","visible","modal","closable","draggable","resizable"],[1,"flex","items-center","justify-center","w-9","h-9","rounded-full","bg-red-100","dark:bg-red-900/30","shrink-0","mt-0.5"],[1,"pi","pi-trash","text-red-500","text-sm"],[3,"visibleChange","visible","modal","closable","draggable","resizable","header"],[1,"flex","items-center","justify-center","w-9","h-9","rounded-full","shrink-0","mt-0.5"],[1,"text-sm"],[1,"text-muted-color","mt-0.5","shrink-0"],[1,"flex","flex-col","lg:flex-row","gap-4"],[1,"lg:max-w-[320px]","w-full"],[1,"text-color","font-medium","leading-normal"],[1,"text-muted-color","font-normal","leading-normal"],["styleClass","secondary",1,"flex-1","max-w-[800px]"],["class","flex flex-wrap w-full mb-4 gap-2 flex-col md:flex-row",3,"formGroup","ngSubmit",4,"appRoles"],[3,"lazyLoadEvent","resendInvitationRequested","deleteUserRequested","changeRoleRequested","resetTwoFactorRequested","page","loading","resendingInvitationForUserIds","deletingUserIds","changingRoleUserIds","pageSizeOptions"],[3,"visibleChange","reset","visible","user"],[1,"text-color","font-medium"],["label","Annuleren","severity","secondary",3,"onClick","outlined"],["label","Uitnodiging versturen","icon","pi pi-send",3,"onClick","loading"],["label","Verwijderen","icon","pi pi-trash","severity","danger",3,"onClick","loading"],[3,"onClick","label","icon","severity","loading"],[1,"flex","flex-wrap","w-full","mb-4","gap-2","flex-col","md:flex-row",3,"ngSubmit","formGroup"],[1,"flex-1","flex","gap-2","flex-col","md:flex-row"],["iconPosition","left",1,"flex-1"],[1,"pi","pi-at"],["type","text","pInputText","","placeholder","E-mailadres...","formControlName","email",1,"w-full"],["o
1ptionLabel","name","optionValue","value","placeholder","Rol","formControlName","userType",1,"w-full","md:w-40",3,"options"],["label","Verstuur uitnodiging","styleClass","w-full","type","submit","icon","pi pi-send",3,"loading"]],template:function(e,i){if(e&1){let a=x();_(0,"p-toast"),o(1,"p-dialog",1),E("visibleChange",function(g){return m(a),k(i.inviteDialogVisible,g)||(i.inviteDialogVisible=g),u(g)}),o(2,"div",2)(3,"div",3),_(4,"i",4),r(),o(5,"div",5)(6,"p",6),c(7),r(),o(8,"p",7),c(9," Je nodigt een nieuwe gebruiker uit. Dit verhoogt je gebruikersaantal met 1. "),r()()(),o(10,"div",8),_(11,"i",9),o(12,"div",10),h(13,en,4,6)(14,tn,4,6),r()(),h(15,nn,2,2,"ng-template",null,0,D),r(),o(17,"p-dialog",11),E("visibleChange",function(g){return m(a),k(i.deleteDialogVisible,g)||(i.deleteDialogVisible=g),u(g)}),o(18,"div",2)(19,"div",12),_(20,"i",13),r(),o(21,"div",5)(22,"p",6),c(23),r(),o(24,"p",7),c(25," Weet je zeker dat je deze gebruiker wilt verwijderen? Dit kan niet ongedaan worden gemaakt. "),r()()(),h(26,ln,5,1,"div",8)(27,sn,2,2,"ng-template",null,0,D),r(),o(29,"p-dialog",14),E("visibleChange",function(g){return m(a),k(i.roleChangeDialogVisible,g)||(i.roleChangeDialogVisible=g),u(g)}),o(30,"div",2)(31,"div",15),_(32,"i",16),r(),o(33,"div",5)(34,"p",6),c(35),r(),o(36,"p",7),h(37,cn,1,0)(38,dn,1,0),r()()(),o(39,"div",8),_(40,"i",17),o(41,"div",10),h(42,pn,1,0)(43,mn,1,0),r()(),h(44,un,2,5,"ng-template",null,0,D),r(),o(46,"div",18)(47,"p-card",19)(48,"div",20),c(49,"Team"),r(),o(50,"div",21),c(51,"Beheer je team"),r()(),o(52,"p-card",22),h(53,gn,7,3,"form",23),o(54,"app-users-table",24),f("lazyLoadEvent",function(g){return m(a),u(i.onLazyLoad(g))})("resendInvitationRequested",function(g){return m(a),u(i.onResendInvitationRequested(g))})("deleteUserRequested",function(g){return m(a),u(i.onDeleteUserRequested(g))})("changeRoleRequested",function(g){return m(a),u(i.onChangeRoleRequested(g))})("resetTwoFactorRequested",function(g){return m(a),u(i.onResetTwoFactorRequested(g))}),r()()(),o(55,"app-two-factor-reset-dialog",25),E("visibleChange",function(g){return m(a),k(i.twoFactorResetDialogVisible,g)||(i.twoFactorResetDialogVisible=g),u(g)}),f("reset",function(g){return m(a),u(i.onTwoFactorReset(g))}),r()}if(e&2){let a,l,g,O,V,X,we,Ct;s(),L(v(44,_t)),T("visible",i.inviteDialogVisible),p("modal",!0)("closable",!0)("draggable",!1)("resizable",!1),s(6),S(i.inviteForm.value.email),s(6),b(i.isAnnual?13:14),s(4),L(v(45,_t)),T("visible",i.deleteDialogVisible),p("modal",!0)("closable",!0)("draggable",!1)("resizable",!1),s(6),R(" ",!((a=i.pendingDelete())==null||a.fullName==null)&&a.fullName.length?(a=i.pendingDelete())==null?null:a.fullName:(a=i.pendingDelete())==null?null:a.email," "),s(3),b(i.hasActivePaidSubscription?26:-1),s(3),L(v(46,_t)),T("visible",i.roleChangeDialogVisible),p("modal",!0)("closable",!0)("draggable",!1)("resizable",!1)("header",((l=i.pendingRoleChange())==null?null:l.type)===i.UserType.Admin?"Beheerdersrol intrekken":"Beheerdersrol toewijzen"),s(2),z(((g=i.pendingRoleChange())==null?null:g.type)===i.UserType.Admin?"bg-orange-100 dark:bg-orange-900/30":"bg-primary-100 dark:bg-primary-900/30"),s(),z(((O=i.pendingRoleChange())==null?null:O.type)===i.UserType.Admin?"pi pi-arrow-down text-orange-500":"pi pi-arrow-up text-primary"),s(3),R(" ",!((V=i.pendingRoleChange())==null||V.fullName==null)&&V.fullName.length?(V=i.pendingRoleChange())==null?null:V.fullName:(V=i.pendingRoleChange())==null?null:V.email," "),s(2),b(((X=i.pendingRoleChange())==null?null:X.type)===i.UserType.Admin?37:38),s(3),z(((we=i.pendingRoleChange())==null?null:we.type)===i.UserType.Admin?"pi pi-info-circle":"pi pi-shield"),s(2),b(((Ct=i.pendingRoleChange())==null?null:Ct.type)===i.UserType.Admin?42:43),s(11),p("appRoles",v(47,Zi)),s(),p("page",i.data())("loading",i.loading())("resendingInvitationForUserIds",i.resendingInvitationForUserIds())("deletingUserIds",i.deletingUserIds())("changingRoleUserIds",i.changingRoleUserIds())("pageSizeOptions",i.pageSizeOptions),s(),T("visible",i.twoFactorResetDialogVisible),p("user",i.pendingTwoFactorReset())}}
1,dependencies:[$,Hi,H,si,ci,Pe,ai,ni,fe,he,ti,oi,ri,Ue,Z,J,ve,Ae,Ee,Ni],encapsulation:2})};var Ke=class t{authService=y(G);user=this.authService.userInfoSignal;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-settings-notifications"]],decls:7,vars:0,consts:[[1,"flex","flex-col","lg:flex-row","gap-4"],[1,"lg:max-w-[320px]","w-full"],[1,"text-color","font-medium","leading-normal"],[1,"text-muted-color","font-normal","leading-normal"],[1,"flex-1","max-w-[800px]"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"p-card",1)(2,"div",2),c(3,"Notificaties"),r(),o(4,"div",3),c(5,"Beheer je notificatieinstellingen"),r()(),_(6,"app-settings-notifications-checklist",4),r())},dependencies:[$,re,Ii],encapsulation:2})};var _n=()=>({width:"520px",maxWidth:"90vw"});function fn(t,n){t&1&&c(0," Je zit nog binnen de 12-maanden contractperiode. ")}function hn(t,n){t&1&&c(0," Je abonnement stopt aan het einde van de huidige betaalperiode. ")}function vn(t,n){if(t&1&&(o(0,"div",14)(1,"span",15),c(2,"Abonnement annuleren"),r(),o(3,"span",16),h(4,fn,1,0)(5,hn,1,0),r()()),t&2){let e=d();s(4),b(e.withinContractTerm?4:5)}}function bn(t,n){if(t&1&&(o(0,"p-message",4)(1,"div",17),c(2," Je zit nog binnen de 12-maanden contractperiode. Je wordt "),o(3,"span",18),c(4),B(5,"date"),r(),c(6," \u2014 de einddatum van je contractperiode. Na die datum stopt de facturering en vervalt je toegang. "),r()()),t&2){let e=d();s(4),R("maandelijks gefactureerd tot ",q(5,1,e.accessEndsAt,"d MMMM yyyy"),"")}}function Cn(t,n){if(t&1&&(o(0,"div",5),_(1,"i",19),o(2,"div",20),c(3," Je toegang blijft actief tot "),o(4,"span",21),c(5),B(6,"date"),r(),c(7,". Na die datum wordt het abonnement "),o(8,"span",21),c(9,"niet automatisch verlengd"),r(),c(10," en stopt de facturering. "),r()()),t&2){let e=d();s(5),S(q(6,1,e.accessEndsAt,"d MMMM yyyy"))}}function xn(t,n){if(t&1){let e=x();o(0,"div",22)(1,"p-button",23),f("onClick",function(){m(e);let a=d();return u(a.close())}),r(),o(2,"p-button",24),f("onClick",function(){m(e);let a=d();return u(a.onConfirm())}),r()()}if(t&2){let e=d();s(),p("outlined",!0)("disabled",e.loading),s(),p("loading",e.loading)}}var Xe=class t{visible=!1;visibleChange=new ae;accessEndsAt=null;commitmentEndsAt=null;withinContractTerm=!1;loading=!1;confirm=new ae;close(){this.visible=!1,this.visibleChange.emit(!1)}onConfirm(){this.confirm.emit()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-cancel-subscription-dialog"]],inputs:{visible:"visible",accessEndsAt:"accessEndsAt",commitmentEndsAt:"commitmentEndsAt",withinContractTerm:"withinContractTerm",loading:"loading"},outputs:{visibleChange:"visibleChange",confirm:"confirm"},decls:27,vars:9,consts:[["header",""],["footer",""],[3,"visibleChange","onHide","modal","closable","resizable","draggable","visible"],[1,"flex","flex-col","gap-5"],["severity","warn","styleClass","mt-1"],[1,"flex","items-start","gap-3","rounded-lg","border","border-surface-200","dark:border-surface-700","bg-surface-50","dark:bg-surface-800","p-4"],[1,"flex","flex-col","gap-3","justify-center"],[1,"font-semibold","text-color"],[1,"flex","items-start","gap-2","text-color"],[1,"pi","pi-times-circle","text-red-500","mt-0.5","shrink-0"],[1,"pi","pi-check-circle","text-green-500","mt-0.5","shrink-0"],[1,"text-muted-color","leading-relaxed","mt-3","mb-3"],["href","mailto:[email protected]",1,"text-primary","underline"],["href","tel:+31850608060",1,"text-primary","underline"],[1,"flex","flex-col","gap-1"],[1,"font-medium","text-lg"],[1,"text-muted-color"],[1,"inline!","font-normal!"],[1,"font-medium"],[1,"pi","pi-calendar","text-color-secondary","text-base","mt-0.5","shrink-0"],[1,"text-color","leading-relaxed"],[1,"font-semibold"],[1,"flex","justify-between","w-full","gap-2"],["label","Terug","severity","secondary",3,"onClick","outlined","disabled"],["label","Bevestig annulering","severity","danger",3,"onClick","loading"]],template:function(e,i){if(e&1){let a=x();o(0,"p-dialog",2),E("visibleChange",function(g){return m(a),k(i.visible,g)||(i.visible=g),u(g)}),f("onHide",function(){return m(a),u(i.visibleChange.emit(!1))}),h(1,vn,6,1,"ng-template",null,0,D),o(3,"div",3),h(4,bn,7,4,"p-message",4)(5,Cn,11,4,"div",5),o(6,"div",6)(7,"p",7),c(8,"Wat verandert er na de einddatum?"),r(),o(9,"div",8),_(10,"i",9),o(11,"span"),c(12,"Je verliest toegang tot alle Advey Premium functionaliteiten"),r()(),o(13,"div",8),_(14,"i",10),o(15,"span"),c(16,"Je data blijft een korte periode bewaard: bij heractivering heb je direct weer toegang"),r()()(),o(17,"div",11),c(18," Vragen of wil je bespreken wat Advey voor je kantoor kan betekenen? Neem contact op via "),o(19,"a",12),c(20,"[email protected]"),r(),c(21," of bel "),o(22,"a",13),c(23,"085 060 8060"),r(),c(24,". "),r()(),h(25,xn,3,3,"ng-template",null,1,D),r()}e&2&&(L(v(8,_n)),p("modal",!0)("closable",!i.loading)("resizable",!1)("draggable",!1),T("visible",i.visible),s(4),b(i.withinContractTerm?4:5))},dependencies:[J,H,pe,be],encapsulation:2})};var kn=()=>({icon:"pi-microphone",label:"Gespreksopnames",desc:"Neem gesprekken op en laat ze automatisch samenvatten."}),En=()=>({icon:"pi-file-edit",label:"AI-samenvattingen",desc:"Automatische rapportages op basis van je gesprekken."}),Dn=()=>({icon:"pi-users",label:"Volledig teambeheer",desc:"Nodig teamleden uit en beheer hun toegang."}),Mn=(t,n,e)=>[t,n,e],Vn=()=>[0,1,2,3],$i=()=>[0,1,2,3,4],Fn=()=>[0,1,2],Rn=(t,n)=>n.label;function Bn(t,n){t&1&&c(0," Je betaling wordt verwerkt. ")}function In(t,n){t&1&&c(0," Je abonnement is geactiveerd. ")}function An(t,n){t&1&&(o(0,"div",8),_(1,"div",9),o(2,"div",10),c(3,"Betaling verwerken..."),r(),o(4,"div",11),c(5,"Een moment geduld, wij verwerken je betaling."),r()())}function Pn(t,n){if(t&1&&(o(0,"div",18)(1,"div",21),_(2,"i"),r(),o(3,"div")(4,"div",22),c(5),r(),o(6,"div",23),c(7),r()()()),t&2){let e=n.$implicit;s(2),kt("pi ",e.icon," text-primary text-sm"),s(3),S(e.label),s(2),S(e.desc)}}function On(t,n){if(t&1){let e=x();o(0,"div",12)(1,"div",13),_(2,"i",14),r(),o(3,"div",15),c(4,"Welkom bij Advey Premium!"),r(),o(5,"div",16),c(6," Je betaling is verwerkt. Alle Premium functies zijn nu beschikbaar voor je team. "),r()(),o(7,"div",17),A(8,Pn,8,5,"div",18,Rn),r(),o(10,"div",19)(11,"p-button",20),f("onClick",function(){m(e);let a=d(2);
1return u(a.dismissCheckoutSuccess())}),r()()}t&2&&(s(8),P(Et(3,Mn,v(0,kn),v(1,En),v(2,Dn))))}function jn(t,n){if(t&1&&(o(0,"div",3)(1,"p-card",4)(2,"div",5),c(3,"Facturering"),r(),o(4,"div",6),h(5,Bn,1,0)(6,In,1,0),r()(),o(7,"p-card",7),h(8,An,6,0,"div",8)(9,On,12,7),r()()),t&2){let e=d();s(5),b(e.checkoutReady()?6:5),s(3),b(e.checkoutReady()?9:8)}}function Ln(t,n){t&1&&(o(0,"div",28),_(1,"p-skeleton",36)(2,"p-skeleton",37),r())}function zn(t,n){if(t&1&&_(0,"p-skeleton",34),t&2){let e=n.$index;p("width",e===0?"8rem":e===4?"3rem":"6rem")}}function Hn(t,n){if(t&1&&_(0,"p-skeleton",38),t&2){let e=n.$index;p("width",e===0?"8rem":e===4?"3rem":"6rem")}}function Nn(t,n){t&1&&(o(0,"div",35),A(1,Hn,1,1,"p-skeleton",38,ie),r()),t&2&&(s(),P(v(0,$i)))}function Un(t,n){t&1&&(o(0,"div",3)(1,"p-card",4)(2,"div",5),c(3,"Facturering"),r(),o(4,"div",6),c(5,"Beheer je abonnement en betalingen."),r()(),o(6,"p-card",7)(7,"div",27),A(8,Ln,3,0,"div",28,ie),r(),o(10,"div",29),_(11,"p-skeleton",30)(12,"p-skeleton",30),r()()(),o(13,"div",31)(14,"p-card",4)(15,"div",5),c(16,"Factuurgeschiedenis"),r(),o(17,"div",6),c(18,"Download gemakkelijk je facturen."),r()(),o(19,"p-card",7)(20,"div",32)(21,"div",33),A(22,zn,1,1,"p-skeleton",34,ie),r(),A(24,Nn,3,1,"div",35,ie),r()()()),t&2&&(s(8),P(v(0,Vn)),s(14),P(v(1,$i)),s(2),P(v(2,Fn)))}function qn(t,n){if(t&1){let e=x();o(0,"div",3)(1,"p-card",4)(2,"div",5),c(3,"Facturering"),r(),o(4,"div",6),c(5," Je betaling is nog niet voltooid. Rond de betaling af om toegang te krijgen tot Advey Premium. "),r()(),o(6,"p-card",7)(7,"div",39)(8,"div",40),_(9,"i",41),r(),o(10,"div")(11,"div",42),c(12,"Betaling niet afgerond"),r(),o(13,"div",43),c(14," Je abonnement is aangemaakt maar de betaling is nog niet ontvangen. Klik op de knop hieronder om verder te gaan met de betaling en je abonnement te activeren. "),r()()(),o(15,"div",19)(16,"p-button",44),f("onClick",function(){m(e);let a=d(2);return u(a.startCheckout())}),r()()()()}if(t&2){let e=d(2);s(16),p("loading",e.checkingOut())}}function Wn(t,n){t&1&&(o(0,"div",26)(1,"p-card",45)(2,"div",5),c(3,"Facturering"),r(),o(4,"div",6),c(5," Geen installatiekosten of verborgen tarieven. Na betaling heb je direct toegang tot alle functies. "),r()(),_(6,"app-billing-checkout",46),r())}function Gn(t,n){if(t&1&&(c(0," Je abonnement loopt door tot het einde van de contractperiode op "),o(1,"span",73),c(2),B(3,"date"),r(),c(4,". Tot die datum word je maandelijks gefactureerd. Daarna vervalt je toegang. ")),t&2){let e=d(4);s(2),S(q(3,1,e.accessEndsAt,"d MMMM yyyy"))}}function $n(t,n){if(t&1&&(c(0," Je abonnement wordt be\xEBindigd op "),o(1,"span",73),c(2),B(3,"date"),r(),c(4,". Je behoudt toegang tot die datum. ")),t&2){let e=d(4);s(2),S(q(3,1,e.accessEndsAt,"d MMMM yyyy"))}}function Jn(t,n){if(t&1&&(o(0,"p-message",47)(1,"span",72),h(2,Gn,5,4)(3,$n,5,4),r()()),t&2){let e=d(3);s(2),b(e.withinContractTerm?2:3)}}function Kn(t,n){t&1&&(o(0,"p-message",48),c(1," Betaling mislukt. Werk je betaalmethode bij om je toegang te behouden. "),r())}function Xn(t,n){t&1&&(o(0,"span",52),c(1,"Co-creator tarief"),r())}function Qn(t,n){t&1&&(o(0,"span",53),c(1,"Jaarlijks tarief"),r())}function Yn(t,n){t&1&&(o(0,"span",54),c(1,"Maandelijks tarief"),r())}function Zn(t,n){t&1&&_(0,"p-tag",56)}function eo(t,n){t&1&&_(0,"p-tag",57)}function to(t,n){t&1&&_(0,"p-tag",58)}function io(t,n){t&1&&_(0,"p-tag",59)}function no(t,n){t&1&&_(0,"p-tag",60)}function oo(t,n){t&1&&_(0,"p-tag",61),t&2&&p("rounded",!0)}function ro(t,n){if(t&1&&(o(0,"div",63)(1,"span",11),c(2,"Volgende factuur"),r(),o(3,"span",64),c(4),B(5,"date"),r()()),t&2){let e=d(3);s(4),S(q(5,1,e.subscription().currentPeriodEnd,"d MMMM yyyy"))}}function ao(t,n){if(t&1&&(o(0,"div",63)(1,"span",11),c(2,"Contractperiode t/m"),r(),o(3,"span",64),c(4),B(5,"date"),r()()),t&2){let e=d(3);s(4),S(q(5,1,e.commitmentEndsAt,"d MMMM yyyy"))}}function lo(t,n){if(t&1){let e=x();o(0,"p-button",74),f("onClick",function(){m(e);let a=d(3);return u(a.reactivateSubscription())}),r()}if(t&2){let e=d(3);p("loading",e.reactivating())}}function so(t,n){if(t&1){let e=x();o(0,"p-button",75),f("onClick",function(){m(e);let a=d(3);return u(a.switchTier(a.SubscriptionTier.Monthly))}),r()}if(t&2){let e=d(3);p("outlined",!0)("loading",e.switchingTier())}}function co(t,n){if(t&1){let e=x();o(0,"p-button",76),f("onClick",function(){m(e);let a=d(3);return u(a.cancelDialogVisible.set(!0))}),r()}if(t&2){let e=d(3);p("outlined",!0)("loading",e.cancelling())}}function po(t,n){t&1&&_(0,"app-empty-state",70)}function mo(t,n){t&1&&(o(0,"tr")(1,"th"),c(2,"Factuurnummer"),r(),o(3,"th"),c(4,"Periode"),r(),o(5,"th"),c(6,"Bedrag"),r(),o(7,"th"),c(8,"Status"),r(),_(9,"th"),r())}function uo(t,n){if(t&1&&(o(0,"a",80),_(1,"p-button",81),r()),t&2){let e=d().$implicit;p("href",e.invoicePdf,wt),s(),p("text",!0)}}function go(t,n){if(t&1&&(o(0,"tr")(1,"td",77),c(2),r(),o(3,"td"),c(4),B(5,"date"),r(),o(6,"td"),c(7),B(8,"currency"),r(),o(9,"td"),_(10,"p-tag",78),r(),o(11,"td",79),h(12,uo,2,2,"a",80),r()()),t&2){let e=n.$implicit,i=d(4);s(2),S(e.number||e.id),s(2),S(q(5,6,e.periodEnd,"MMMM yyyy")),s(3),S(q(8,9,i.centsToEuros(e.amountDue),"EUR")),s(3),p("value",i.invoiceStatusLabel(e.status))("severity",i.invoiceStatusSeverity(e.status)),s(2),b(e.invoicePdf?12:-1)}}function _o(t,n){t&1&&(o(0,"tr")(1,"td",82),c(2,"Geen facturen gevonden."),r()())}function fo(t,n){if(t&1&&(o(0,"p-table",71),h(1,mo,10,0,"ng-template",null,0,D)(3,go,13,12,"ng-template",null,1,D)(5,_o,3,0,"ng-template",null,2,D),r()),t&2){let e=d(3);p("value",e.invoices())("loading",e.invoicesLoading())("rows",10)("paginator",e.invoices().length>10)("rowHover",!0)}}function ho(t,n){if(t&1){let e=x();h(0,Jn,4,1,"p-message",47)(1,Kn,2,0,"p-message",48),o(2,"div",3)(3,"p-card",4)(4,"div",5),c(5,"Facturering"),r(),o(6,"div",6),c(7,"Beheer je abonnement en betalingen."),r()(),o(8,"p-card",7)(9,"div",49)(10,"div")(11,"div",50)(12,"span",51),c(13,"Advey Premium"),r(),h(14,Xn,2,0,"span",52)(15,Qn,2,0,"span",53)(16,Yn,2,0,"span",54),r(),o(17,"div",11),c(18),B(19,"currency"),r()(),o(20,"div",55),h(21,Zn,1,0,"p-tag",56)(22,eo,1,0,"p-tag",57)(23,to,1,0,"p-tag",58)(24,io,1,0,"p-tag",59)(25,no,1,0,"p-tag",60)(26,oo,1,1,"p-tag",61),r()(),o(27,"div",62)(28,"div",63)(29,"span",11),c(30,"Gebruikers"),r(),o(31,"span",64),c(32),r()(),h(33,ro,6,4,"div",63)(34,ao,6,4,"div",63),r(),o(35,"div",65),h(36,lo,
11,1,"p-button",66)(37,so,1,2,"p-button",67),o(38,"p-button",68),f("onClick",function(){m(e);let a=d(2);return u(a.openPortal())}),r(),h(39,co,1,2,"p-button",69),r()()(),o(40,"div",3)(41,"p-card",4)(42,"div",5),c(43,"Factuurgeschiedenis"),r(),o(44,"div",6),c(45,"Download gemakkelijk je facturen."),r()(),o(46,"p-card",7),h(47,po,1,0,"app-empty-state",70)(48,fo,7,5,"p-table",71),r()()}if(t&2){let e,i=d(2);b(i.isCancellationPending?0:-1),s(),b(i.subscription().status===i.SubscriptionStatus.PastDue?1:-1),s(13),b(i.isCocreator?14:i.subscription().tier===i.SubscriptionTier.Annual?15:16),s(4),R(" ",ge(19,15,i.estimatedMonthlyTotal,"EUR","symbol","1.0-0")," / maand incl. BTW \xB7 maandelijks gefactureerd "),s(3),b((e=i.subscription().status)===i.SubscriptionStatus.Active?21:e===i.SubscriptionStatus.PastDue?22:e===i.SubscriptionStatus.Unpaid?23:e===i.SubscriptionStatus.Canceled?24:e===i.SubscriptionStatus.Incomplete?25:-1),s(5),b(i.isCancellationPending?26:-1),s(6),S(i.subscription().seatCount),s(),b(i.subscription().currentPeriodEnd?33:-1),s(),b(i.commitmentEndsAt&&!i.isCancellationPending?34:-1),s(2),b(i.isCancellationPending?36:-1),s(),b(i.canSwitchToMonthly?37:-1),s(),p("outlined",!0)("loading",i.openingPortal()),s(),b(!i.isCancellationPending&&i.subscription().status!==i.SubscriptionStatus.Canceled?39:-1),s(8),b(!i.invoices().length&&!i.invoicesLoading()?47:48)}}function vo(t,n){if(t&1){let e=x();o(0,"app-cancel-subscription-dialog",24),E("visibleChange",function(a){m(e);let l=d();return k(l.cancelDialogVisible,a)||(l.cancelDialogVisible=a),u(a)}),f("confirm",function(){m(e);let a=d();return u(a.cancelSubscription())}),r(),o(1,"div",25),h(2,Un,26,3)(3,qn,17,1,"div",3)(4,Wn,7,0,"div",26)(5,ho,49,20),r()}if(t&2){let e,i=d();T("visible",i.cancelDialogVisible),p("accessEndsAt",i.accessEndsAt)("commitmentEndsAt",i.commitmentEndsAt)("withinContractTerm",i.withinContractTerm)("loading",i.cancelling()),s(2),b(i.loading()?2:((e=i.subscription())==null?null:e.status)===i.SubscriptionStatus.Incomplete?3:i.subscription()?5:4)}}var Qe=class t{billingService=y(Oe);messageService=y(F);authService=y(G);route=y(De);router=y(Me);SubscriptionStatus=je;SubscriptionTier=Le;monthlyBasePrice=155;monthlySeatPrice=47;annualBasePrice=140;annualSeatPrice=42;cocreatorBasePrice=40;cocreatorSeatPrice=19;get isCocreator(){return this.authService.userInfoSignal()?.tenant?.isCocreator??!1}subscription=C(null);invoices=C([]);loading=C(!0);invoicesLoading=C(!0);checkingOut=C(!1);cancelling=C(!1);reactivating=C(!1);openingPortal=C(!1);switchingTier=C(!1);termsAccepted=C(!1);cancelDialogVisible=C(!1);selectedTier=C(1);checkoutSuccess=C(!1);checkoutReady=C(!1);get additionalSeats(){return Math.max(0,(this.subscription()?.committedSeatCount??1)-1)}get estimatedMonthlyTotal(){if(this.isCocreator)return this.cocreatorBasePrice+this.additionalSeats*this.cocreatorSeatPrice;let n=this.subscription()?.tier??this.selectedTier(),e=n===1?this.annualBasePrice:this.monthlyBasePrice,i=n===1?this.annualSeatPrice:this.monthlySeatPrice;return e+this.additionalSeats*i}get previewMonthlyTotal(){if(this.isCocreator)return this.cocreatorBasePrice+this.additionalSeats*this.cocreatorSeatPrice;let n=this.selectedTier()===1?this.annualBasePrice:this.monthlyBasePrice,e=this.selectedTier()===1?this.annualSeatPrice:this.monthlySeatPrice;return n+this.additionalSeats*e}get withinContractTerm(){let n=this.subscription();if(n?.tier!==1)return!1;if(n?.scheduledCancelAt)return!0;if(!n?.activatedAt)return!1;let e=new Date(n.activatedAt);return e.setMonth(e.getMonth()+12),e>new Date}get accessEndsAt(){let n=this.subscription();return n?.tier===1&&this.withinContractTerm?n.scheduledCancelAt??null:n?.currentPeriodEnd??null}get commitmentEndsAt(){let n=this.subscription();if(n?.tier!==1)return null;if(n?.scheduledCancelAt)return n.scheduledCancelAt;if(n?.activatedAt){let e=new Date(n.activatedAt);return e.setMonth(e.getMonth()+12),e.toISOString()}return null}get isCancellationPending(){return this.subscription()?.cancelAtPeriodEnd??!1}get canSwitchToAnnual(){let n=this.subscription();return n?.status===0&&n?.tier===0&&!this.isCancellationPending}get canSwitchToMonthly(){let n=this.subscription();if(n?.tier!==1||!n.activatedAt)return!1;let e=new Date(n.activatedAt);return e.setMonth(e.getMonth()+12),e<=new Date&&!this.isCancellationPending}
1ngOnInit(){this.route.snapshot.queryParamMap.get("checkout")==="success"&&(this.checkoutSuccess.set(!0),this.router.navigate([],{replaceUrl:!0,queryParams:{}}),setTimeout(()=>this.checkoutReady.set(!0),3e3)),this.loadSubscription(),this.loadInvoices()}dismissCheckoutSuccess(){this.checkoutSuccess.set(!1),this.checkoutReady.set(!1)}loadSubscription(){this.loading.set(!0),this.billingService.getSubscription().subscribe({next:n=>{this.subscription.set(n),this.loading.set(!1)},error:()=>{this.subscription.set(null),this.loading.set(!1)}})}refreshSubscription(){this.billingService.getSubscription().subscribe({next:n=>this.subscription.set(n)})}loadInvoices(){this.invoicesLoading.set(!0),this.billingService.getInvoices().subscribe({next:n=>{this.invoices.set(n),this.invoicesLoading.set(!1)},error:()=>{this.invoicesLoading.set(!1)}})}startCheckout(){!(this.subscription()?.status===4)&&!this.termsAccepted()||(this.checkingOut.set(!0),this.billingService.createCheckoutSession(!0,this.selectedTier()).subscribe({next:e=>{window.location.href=e.checkoutUrl},error:()=>{this.checkingOut.set(!1),this.messageService.add({severity:"error",summary:"Fout",detail:"Betaalpagina kon niet worden geopend. Probeer het opnieuw.",life:5e3,icon:void 0,closable:!1,styleClass:"p-no-icon"})}}))}switchTier(n){this.switchingTier.set(!0),this.billingService.switchTier(n).subscribe({next:()=>{this.switchingTier.set(!1);let e=n===1?"Jaarlijks":"Maandelijks";this.messageService.add({severity:"success",summary:"Abonnement bijgewerkt",detail:`Je abonnement is gewijzigd naar het ${e} tarief.`,life:5e3,icon:void 0,closable:!1,styleClass:"p-no-icon"}),this.refreshSubscription()},error:()=>{this.switchingTier.set(!1),this.messageService.add({severity:"error",summary:"Fout",detail:"Tarief kon niet worden gewijzigd. Probeer het opnieuw.",life:5e3,icon:void 0,closable:!1,styleClass:"p-no-icon"})}})}openPortal(){this.openingPortal.set(!0),this.billingService.getPortalUrl().subscribe({next:n=>{this.openingPortal.set(!1),window.open(n.portalUrl,"_blank")},error:()=>{this.openingPortal.set(!1)}})}cancelSubscription(){this.cancelling.set(!0),this.billingService.cancelSubscription().subscribe({next:()=>{this.cancelling.set(!1),this.cancelDialogVisible.set(!1);let n=this.subscription();n&&this.subscription.set(Q(I({},n),{cancelAtPeriodEnd:!0}));let e=this.accessEndsAt,i=e?`Je toegang blijft actief tot ${new pe("nl-NL").transform(e,"d MMMM yyyy")}.`:"Je abonnement wordt be\xEBindigd aan het einde van de contractperiode.";this.messageService.add({severity:"success",summary:"Annulering ingediend",detail:i,life:6e3,icon:void 0,closable:!1,styleClass:"p-no-icon"}),this.refreshSubscription()},error:()=>{this.cancelling.set(!1)}})}reactivateSubscription(){this.reactivating.set(!0),this.billingService.reactivateSubscription().subscribe({next:()=>{this.reactivating.set(!1);let n=this.subscription();n&&this.subscription.set(Q(I({},n),{cancelAtPeriodEnd:!1})),this.messageService.add({severity:"success",summary:"Abonnement hersteld",detail:"De geplande annulering is ongedaan gemaakt. Je abonnement wordt automatisch verlengd.",life:5e3,icon:void 0,closable:!1,styleClass:"p-no-icon"}),this.refreshSubscription()},error:()=>{this.reactivating.set(!1),this.messageService.add({severity:"error",summary:"Fout",detail:"Annulering kon niet ongedaan worden gemaakt. Probeer het opnieuw.",life:5e3,icon:void 0,closable:!1,styleClass:"p-no-icon"})}})}invoiceStatusLabel(n){switch(n){case"paid":return"Betaald";case"open":return"Openstaand";case"void":return"Vervallen";case"uncollectible":return"Oninbaar";case"draft":return"Concept";default:return n??"-"}}invoiceStatusSeverity(n){switch(n){case"paid":return"success";case"open":return"warn";case"void":case"uncollectible":return"danger";default:return"secondary"}}centsToEuros(n){return n/100}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-settings-billing"]],features:[U([F])],decls:3,vars:1,consts:[["header",""],["body",""],["empty",""],[1,"flex","flex-col","lg:flex-row","gap-4"],[1,"lg:max-w-[320px]","w-full"],[1,"text-color","font-medium","leading-normal"],[1,"text-muted-color","font-normal","leading-normal","mt-1"],["styleClass","secondary",1,"flex-1","max-w-[800px]"],[1,"flex","flex-col","items-center","text-center","py-10"],[1,"w-12","h-12","rounded-full","border-4","border-surface-200","dark:border-surface-700","border-t-primary","animate-spin","mb-5"],[1,"text-base","font-semibold","text-color","mb-1"],[1,"text-sm","text-muted-color"],[1,"flex","flex-col","items-center","text-center","mb-8","pt-4"],[1,"w-14","h-14","rounded-full","bg-green-100","dark:bg-green-900/30","flex","items-center","justify-center","mb-5"],[1,"pi","pi-check","text-green-600","dark:text-green-400","text-xl"],[1,"text-lg","font-semibold","text-color","mb-1"],[1,"text-sm","text-muted-color","leading-relaxed","max-w-sm"],[1,"flex","flex-col","gap-3","mb-6"],[1,"flex","items-start","gap-3","rounded-xl","bg-surface-50","dark:bg-surface-800","border","border-surface-200","dark:border-surface-700","p-4"],[1,"flex","justify-end"],["label","Ga
1naar facturering","icon","pi pi-arrow-right","size","small","iconPos","right",3,"onClick"],[1,"w-8","h-8","rounded-lg","bg-primary-50","dark:bg-primary-900/40","flex","items-center","justify-center","shrink-0"],[1,"text-sm","font-medium","text-color","mb-0.5"],[1,"text-xs","text-muted-color"],[3,"visibleChange","confirm","visible","accessEndsAt","commitmentEndsAt","withinContractTerm","loading"],[1,"flex","flex-col","gap-6"],[1,"flex","flex-col","xl:flex-row","gap-4"],[1,"grid","grid-cols-2","gap-x-6","gap-y-5","mb-6"],[1,"flex","flex-col","gap-2"],[1,"flex","gap-2"],["height","2rem","width","10rem","borderRadius","6px"],[1,"flex","flex-col","md:flex-row","gap-4"],[1,"flex","flex-col","gap-3"],[1,"flex","gap-4","border-b","border-surface-200","dark:border-surface-700","pb-3"],["height","0.75rem",3,"width"],[1,"flex","gap-4","py-1"],["height","0.7rem","width","5rem"],["height","1rem","width","8rem"],["height","0.85rem",3,"width"],[1,"flex","items-start","gap-4","mb-6"],[1,"flex","items-center","justify-center","w-10","h-10","rounded-full","bg-amber-100","dark:bg-amber-900/30","shrink-0","mt-0.5"],[1,"pi","pi-exclamation-triangle","text-amber-600","dark:text-amber-400"],[1,"font-semibold","text-color","mb-1"],[1,"text-sm","text-muted-color","leading-relaxed"],["label","Doorgaan naar betaling","iconPos","right","icon","pi pi-arrow-right",3,"onClick","loading"],[1,"xl:max-w-[320px]","w-full"],[1,"flex-1","max-w-[800px]"],["severity","warn","styleClass","max-w-[1136px]"],["severity","error","styleClass","max-w-[1136px]"],[1,"flex","items-start","justify-between","gap-4","mb-5"],[1,"flex","items-center","gap-2","mb-1","flex-wrap"],[1,"text-base","font-semibold","text-color"],[1,"text-xs","font-medium","px-2","py-0.5","rounded-full","bg-amber-100","dark:bg-amber-900/40","text-amber-700","dark:text-amber-300"],[1,"text-xs","font-medium","px-2","py-0.5","rounded-full","bg-primary-50","dark:bg-primary-900/40","text-primary-700","dark:text-primary-300"],[1,"text-xs","font-medium","px-2","py-0.5","rounded-full","bg-surface-50","dark:bg-surface-700","text-muted-color"],[1,"flex","items-center","gap-2","flex-wrap","justify-end","shrink-0","pt-0.5"],["value","Actief","severity","success"],["value","Betaling mislukt","severity","danger"],["value","Niet betaald","severity","danger"],["value","Geannuleerd","severity","secondary"],["value","Incompleet","severity","warn"],["value","Annulering gepland","severity","warn",3,"rounded"],[1,"flex","flex-col","divide-y","divide-surface-100","dark:divide-surface-700","mb-6","-mx-4","px-4","border-t","border-surface-100","dark:border-surface-700"],[1,"flex","items-center","justify-between","py-3"],[1,"text-sm","font-medium","text-color"],[1,"flex","flex-wrap","gap-2"],["label","Heractiveren","size","small",3,"loading"],["label","Overstappen naar maandelijks","size","small","severity","secondary",3,"outlined","loading"],["label","Betaalmethode beheren","size","small","icon","pi pi-external-link","iconPos","right","severity","secondary",3,"onClick","outlined","loading"],["label","Abonnement annuleren","size","small","severity","danger",3,"outlined","loading"],["title","Nog geen facturen","description","Er zijn nog geen facturen beschikbaar."],["styleClass","p-datatable-sm",3,"value","loading","rows","paginator","rowHover"],[1,"font-normal!"],[1,"font-medium"],["label","Heractiveren","size","small",3,"onClick","loading"],["label","Overstappen naar maandelijks","size","small","severity","secondary",3,"onClick","outlined","loading"],["label","Abonnement annuleren","size","small","severity","danger",3,"onClick","outlined","loading"],[1,"font-mono","text-sm"],[3,"value","severity"],[1,"text-right"],["target","_blank","rel","noopener noreferrer",3,"href"],["icon","pi pi-download","size","small","severity","secondary",3,"text"],["colspan","5",1,"text-center","text-muted-color","py-4"]],template:function(e,i){e&1&&(_(0,"p-toast"),h(1,jn,10,2,"div",3)(2,vo,6,6)),e&2&&(s(),b(i.checkoutSuccess()?1:2))},dependencies:[$,H,We,qe,Ie,Z,be,pe,Ee,Ce,Ui,Xe,_i],encapsulation:2})};var bo=()=>({width:"520px",maxWidth:"94vw"});function Co(t,n){if(t&1){let e=x();o(0,"app-two-factor-enrollment",1),f("enrolled",function(){m(e);let a=d();return u(a.onEnrolled())}),r()}}var Ye=class t{visible=ue(!1);enrolled=me();onEnrolled(){this.visible.set(!1),this.enrolled.emit()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-two-factor-enrollment-dialog"]],inputs:{visible:[1,"visible"]},outputs:{visible:"visibleChange",enrolled:"enrolled"},decls:2,vars:9,consts:[["header","Tweestapsverificatie instellen",3,"visibleChange","visible","modal","draggable","resizable","dismissableMask"],[3,"enrolled"]],template:function(e,i){e&1&&(o(0,"p-dialog",0),E("visibleChange",function(l){return k(i.visible,l)||(i.visible=l),l}),h(1,Co,1,0,"app-two-factor-enrollment"),r()),e&2&&(L(v(8,bo)),T("visible",i.visible),p("modal",!0)("draggable",!1)("resizable",!1)("dismissableMask",!1),s(),b(i.visible()?1:-1))},dependencies:[J,hi],encapsulation:2,changeDetection:0})};var xo=()=>({width:"520px",maxWidth:"94vw"});function yo(t,n){t&1&&c(0," Je organisatie verplicht tweestapsverificatie. Na het verwijderen word je uitgelogd en koppel je bij het inloggen direct een nieuwe authenticator-app, bijvoorbeeld o
1p je nieuwe telefoon. ")}function wo(t,n){t&1&&c(0," Zonder authenticator-app log je alleen nog in met je wachtwoord. Je account is dan minder goed beveiligd. ")}function So(t,n){if(t&1&&(o(0,"p-message",4),c(1),r()),t&2){let e=d(2);s(),S(e.error())}}function To(t,n){t&1&&(o(0,"div",5),_(1,"i",7),c(2," Authenticator-app verwijderen\u2026 "),r())}function ko(t,n){if(t&1){let e=x();o(0,"app-two-factor-reauthenticate",8),f("confirmed",function(){m(e);let a=d(2);return u(a.remove())}),r()}}function Eo(t,n){if(t&1&&(o(0,"div",1),_(1,"i",2),o(2,"p",3),h(3,yo,1,0)(4,wo,1,0),r()(),h(5,So,2,1,"p-message",4)(6,To,3,0,"div",5)(7,ko,1,0,"app-two-factor-reauthenticate",6)),t&2){let e=d();s(3),b(e.required()?3:4),s(2),b(e.error()?5:-1),s(),b(e.removing()?6:7)}}var Ze=class t{twoFactorService=y(xe);visible=ue(!1);required=Te(!1);removed=me();removing=C(!1);error=C(null);remove(){return ee(this,null,function*(){this.removing.set(!0),this.error.set(null);try{yield this.twoFactorService.removeAll(),this.done()}catch(n){if(Qt(n)==="auth/user-token-expired"){this.done();return}this.error.set(Xt(n))}finally{this.removing.set(!1)}})}done(){this.visible.set(!1),this.removed.emit()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-two-factor-removal-dialog"]],inputs:{visible:[1,"visible"],required:[1,"required"]},outputs:{visible:"visibleChange",removed:"removed"},decls:2,vars:8,consts:[["header","Authenticator-app verwijderen",3,"visibleChange","visible","modal","draggable","resizable"],[1,"mb-6","flex","items-start","gap-3","rounded-lg","border","border-surface-200","bg-surface-50","p-4","dark:border-surface-700","dark:bg-surface-800"],[1,"pi","pi-info-circle","mt-0.5","shrink-0","text-muted-color"],[1,"text-sm","leading-relaxed","text-muted-color"],["severity","error","styleClass","mb-4"],[1,"flex","items-center","gap-3","py-2","text-sm","text-muted-color"],["intro","Bevestig met je wachtwoord en de code uit je app dat jij dit bent.","confirmLabel","Verwijderen"],[1,"pi","pi-spin","pi-spinner"],["intro","Bevestig met je wachtwoord en de code uit je app dat jij dit bent.","confirmLabel","Verwijderen",3,"confirmed"]],template:function(e,i){e&1&&(o(0,"p-dialog",0),E("visibleChange",function(l){return k(i.visible,l)||(i.visible=l),l}),h(1,Eo,8,3),r()),e&2&&(L(v(7,xo)),T("visible",i.visible),p("modal",!0)("draggable",!1)("resizable",!1),s(),b(i.visible()?1:-1))},dependencies:[J,be,fi],encapsulation:2,changeDetection:0})};var Do=(t,n)=>({"pi-check-circle text-green-600":t,"pi-times-circle text-muted-color":n});function Mo(t,n){t&1&&(o(0,"div",0),_(1,"i",4),o(2,"div",5)(3,"span"),c(4,"Tweestapsverificatie"),r(),o(5,"span",6),c(6," Je logt in via de identiteitsprovider van je organisatie (SSO). Tweestapsverificatie regel je daar, niet in Advey. "),r()()())}function Vo(t,n){t&1&&(o(0,"div",0),_(1,"p-skeleton",7),o(2,"div",8),_(3,"p-skeleton",9)(4,"p-skeleton",10),r()())}function Fo(t,n){t&1&&(c(0),B(1,"date")),t&2&&R(" Aan sinds ",q(1,1,n,"d MMMM yyyy"),". Bij het inloggen vraagt Advey ook om een code uit je authenticator-app. ")}function Ro(t,n){t&1&&c(0," Log naast je wachtwoord in met een code uit een authenticator-app op je telefoon. ")}function Bo(t,n){t&1&&c(0," Verplicht voor je account. ")}function Io(t,n){if(t&1){let e=x();o(0,"div",1)(1,"div",0),_(2,"i",11),o(3,"div",5)(4,"span"),c(5,"Tweestapsverificatie"),r(),o(6,"span",6),h(7,Fo,2,4)(8,Ro,1,0)(9,Bo,1,0),r()()(),o(10,"p-button",12),f("click",function(){m(e);let a=d();return u(a.enabledAt()?a.removalDialogVisible.set(!0):a.enrollDialogVisible.set(!0))}),r()()}if(t&2){let e,i=d();s(2),p("ngClass",oe(5,Do,i.enabledAt(),!i.enabledAt())),s(5),b((e=i.enabledAt())?7:8,e),s(2),b(i.required()?9:-1),s(),p("rounded",!0)("label",i.enabledAt()?"Verwijderen":"Instellen")}}var et=class t{twoFactorService=y(xe);twoFactorApiService=y(ze);authService=y(G);messageService=y(F);router=y(Me);usesPassword=this.twoFactorService.usesPassword();loading=C(!0);enabledAt=C(null);required=W(()=>this.authService.userInfoSignal()?.twoFactor?.required??!1);enrollDialogVisible=C(!1);removalDialogVisible=C(!1);ngOnInit(){this.usesPassword?this.loadStatus():this.loading.set(!1)}onEnrolled(){return ee(this,null,function*(){yield this.syncAndReload(),this.messageService.add({severity:"success",summary:"Tweestapsverificatie staat aan",detail
1:"Vanaf nu vraagt Advey bij het inloggen ook om een code uit je authenticator-app.",life:4e3,closable:!1,styleClass:"p-no-icon"})})}onRemoved(){return ee(this,null,function*(){if(this.required()){yield ne(this.twoFactorApiService.sync()).catch(()=>null),yield ne(this.authService.logout()),yield this.router.navigate(["/auth","login"],{queryParams:{reason:"two-factor-removed"}});return}yield this.syncAndReload(),this.messageService.add({severity:"success",summary:"Authenticator-app verwijderd",detail:"Je logt nu alleen nog in met je wachtwoord.",life:4e3,closable:!1,styleClass:"p-no-icon"})})}syncAndReload(){return ee(this,null,function*(){yield ne(this.twoFactorApiService.sync()).catch(()=>null),yield ne(this.authService.loadUserContext()).catch(()=>null),yield this.loadStatus()})}loadStatus(){return ee(this,null,function*(){this.loading.set(!0);try{let n=yield this.twoFactorService.loadEnrolledFactors();this.enabledAt.set(n[0]?.enrollmentTime??null)}catch{this.enabledAt.set(this.authService.userInfoSignal()?.user?.twoFactorEnabledAt??null)}finally{this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-two-factor-account-settings"]],hostAttrs:[1,"block"],decls:5,vars:4,consts:[[1,"flex","items-center","gap-4"],[1,"flex","items-center","justify-between","gap-3"],[3,"visibleChange","enrolled","visible"],[3,"visibleChange","removed","visible","required"],[1,"pi","pi-building","text-muted-color"],[1,"flex","flex-col","gap-1"],[1,"text-muted-color","text-sm"],["shape","circle","size","1rem"],[1,"flex","flex-1","flex-col","gap-2"],["width","10rem","height","1rem"],["width","16rem","height","0.875rem"],[1,"pi",3,"ngClass"],["size","small","severity","secondary",3,"click","rounded","label"]],template:function(e,i){e&1&&(h(0,Mo,7,0,"div",0)(1,Vo,5,0,"div",0)(2,Io,11,8,"div",1),o(3,"app-two-factor-enrollment-dialog",2),E("visibleChange",function(l){return k(i.enrollDialogVisible,l)||(i.enrollDialogVisible=l),l}),f("enrolled",function(){return i.onEnrolled()}),r(),o(4,"app-two-factor-removal-dialog",3),E("visibleChange",function(l){return k(i.removalDialogVisible,l)||(i.removalDialogVisible=l),l}),f("removed",function(){return i.onRemoved()}),r()),e&2&&(b(i.usesPassword?i.loading()?1:2:0),s(3),T("visible",i.enrollDialogVisible),s(),T("visible",i.removalDialogVisible),p("required",i.required()))},dependencies:[pe,_e,H,Ce,Ye,Ze],encapsulation:2,changeDetection:0})};var Ao=(t,n)=>({"pi-check-circle text-green-600":t,"pi-users text-muted-color":n}),Po=()=>({width:"600px",maxWidth:"90vw"});function Oo(t,n){t&1&&c(0," Iedereen die inlogt met e-mail en wachtwoord gebruikt een authenticator-app. ")}function jo(t,n){t&1&&c(0," Nu kiest ieder teamlid zelf. ")}function Lo(t,n){t&1&&(o(0,"span",6),c(1," Stel eerst zelf tweestapsverificatie in. Daarna kun je het voor je team verplicht maken. "),r())}function zo(t,n){t&1&&c(0," Tweestapsverificatie wordt weer vrijwillig. Collega's die het al gebruiken, houden het aan en kunnen het zelf uitzetten in hun instellingen. ")}function Ho(t,n){if(t&1&&c(0),t&2){let e,i=d();R(" Iedereen in ",(e=i.tenant())==null?null:e.name," die inlogt met e-mail en wachtwoord moet dan een authenticator-app gebruiken. Wie dat nog niet heeft, wordt bij de volgende actie in Advey gevraagd het in te stellen en kan pas daarna verder. ")}}function No(t,n){if(t&1){let e=x();o(0,"p-button",12),f("onClick",function(){m(e);let a=d();return u(a.confirmVisible.set(!1))}),r(),o(1,"p-button",13),f("onClick",function(){m(e);let a=d();return u(a.save())}),r()}if(t&2){let e=d();p("outlined",!0),s(),p("label",e.required()?"Niet meer verplichten":"Verplicht maken")("severity",e.required()?"warn":"primary")("loading",e.saving())}}var tt=class t{twoFactorService=y(xe);twoFactorApiService=y(ze);authService=y(G);messageService=y(F);tenant=W(()=>this.authService.userInfoSignal()?.tenant??null);required=W(()=>this.tenant()?.twoFactorRequired??!1);canRequire=W(()=>!this.twoFactorService.usesPassword()||!!this.authService.userInfoSignal()?.user?.twoFactorEnabledAt);confirmVisible=C(!1);saving=C(!1);save(){return ee(this,null,function*(){let n=this.tenant();if(!n||this.saving())return;let e=!this.required();this.saving.set(!0);
1try{yield ne(this.twoFactorApiService.updateTenantRequirement(n.id,e)),this.confirmVisible.set(!1),yield ne(this.authService.loadUserContext()).catch(()=>null),this.messageService.add({severity:"success",summary:e?"Tweestapsverificatie verplicht":"Tweestapsverificatie niet meer verplicht",detail:e?"Collega's zonder authenticator-app stellen die in bij hun volgende actie in Advey.":"Collega's die het al gebruiken, houden het aan.",life:4e3,closable:!1,styleClass:"p-no-icon"})}catch{this.messageService.add({severity:"error",summary:"Opslaan mislukt",detail:"De instelling kon niet worden opgeslagen. Probeer het opnieuw.",life:4e3,closable:!1,styleClass:"p-no-icon"})}finally{this.saving.set(!1)}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-two-factor-policy-settings"]],hostAttrs:[1,"block"],decls:21,vars:18,consts:[["footer",""],[1,"flex","flex-col","gap-2"],[1,"flex","items-center","justify-between","gap-3"],[1,"flex","items-center","gap-4"],[1,"pi",3,"ngClass"],[1,"flex","flex-col","gap-1"],[1,"text-muted-color","text-sm"],["size","small","severity","secondary",3,"click","rounded","label","disabled"],[3,"visibleChange","visible","header","modal","draggable","resizable"],[1,"flex","items-start","gap-3","rounded-lg","border","border-surface-200","bg-surface-50","p-4","dark:border-surface-700","dark:bg-surface-800"],[1,"pi","pi-info-circle","mt-0.5","shrink-0","text-muted-color"],[1,"text-sm","leading-relaxed","text-muted-color"],["label","Annuleren","severity","secondary",3,"onClick","outlined"],[3,"onClick","label","severity","loading"]],template:function(e,i){if(e&1){let a=x();o(0,"div",1)(1,"div",2)(2,"div",3),_(3,"i",4),o(4,"div",5)(5,"span"),c(6,"Verplicht voor je team"),r(),o(7,"span",6),h(8,Oo,1,0)(9,jo,1,0),c(10," Wie inlogt via SSO, regelt dit via jullie eigen identiteitsprovider. "),r(),h(11,Lo,2,0,"span",6),r()(),o(12,"p-button",7),f("click",function(){return m(a),u(i.confirmVisible.set(!0))}),r()()(),o(13,"p-dialog",8),E("visibleChange",function(g){return m(a),k(i.confirmVisible,g)||(i.confirmVisible=g),u(g)}),o(14,"div",9),_(15,"i",10),o(16,"p",11),h(17,zo,1,0)(18,Ho,1,1),r()(),h(19,No,2,4,"ng-template",null,0,D),r()}e&2&&(s(3),p("ngClass",oe(14,Ao,i.required(),!i.required())),s(5),b(i.required()?8:9),s(3),b(!i.required()&&!i.canRequire()?11:-1),s(),p("rounded",!0)("label",i.required()?"Uitzetten":"Verplicht maken")("disabled",!i.required()&&!i.canRequire()),s(),L(v(17,Po)),T("visible",i.confirmVisible),p("header",i.required()?"Tweestapsverificatie niet meer verplichten":"Tweestapsverificatie verplicht maken")("modal",!0)("draggable",!1)("resizable",!1),s(4),b(i.required()?17:18))},dependencies:[_e,H,J],encapsulation:2,changeDetection:0})};var Uo=()=>["update:users"];function qo(t,n){t&1&&_(0,"app-two-factor-policy-settings")}var it=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-settings-security"]],features:[U([F])],decls:11,vars:2,consts:[[1,"flex","flex-col","lg:flex-row","gap-4"],[1,"lg:max-w-[320px]","w-full"],[1,"text-color","font-medium","leading-normal"],[1,"text-muted-color","font-normal","leading-normal"],["styleClass","secondary",1,"flex-1","max-w-[800px]"],[1,"flex","flex-col","gap-5"],[4,"appRoles"]],template:function(e,i){e&1&&(_(0,"p-toast"),o(1,"div",0)(2,"p-card",1)(3,"div",2),c(4,"Beveiliging"),r(),o(5,"div",3),c(6,"Beheer de beveiliging van je account"),r()(),o(7,"p-card",4)(8,"div",5),_(9,"app-two-factor-account-settings"),h(10,qo,1,0,"app-two-factor-policy-settings",6),r()()()),e&2&&(s(10),p("appRoles",v(1,Uo)))},dependencies:[$,Z,Ue,et,tt],encapsulation:2})};var Wo=["container"],Go=["input"],$o=["colorSelector"],Jo=["colorHandle"],Ko=["hue"],Xo=["hueHandle"],Qo=(t,n)=>({"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":n}),Yo=t=>({"p-disabled":t}),Zo=(t,n)=>({"p-colorpicker-panel":!0,"p-colorpicker-panel-inline":t,"p-disabled":n}),er=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),tr=t=>({value:"visible",params:t});function ir(t,n){if(t&1){let e=x();
1o(0,"input",9,1),f("click",function(){m(e);let a=d();return u(a.onInputClick())})("keydown",function(a){m(e);let l=d();return u(l.onInputKeydown(a))})("focus",function(){m(e);let a=d();return u(a.onInputFocus())}),r()}if(t&2){let e=d();te("background-color",e.inputBgColor),p("ngClass",at(9,Yo,e.disabled))("disabled",e.disabled)("pAutoFocus",e.autofocus),Y("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")("aria-label",e.ariaLabel)}}function nr(t,n){if(t&1){let e=x();o(0,"div",10),f("click",function(a){m(e);let l=d();return u(l.onOverlayClick(a))})("@overlayAnimation.start",function(a){m(e);let l=d();return u(l.onOverlayAnimationStart(a))})("@overlayAnimation.done",function(a){m(e);let l=d();return u(l.onOverlayAnimationEnd(a))}),o(1,"div",11)(2,"div",12,2),f("touchstart",function(a){m(e);let l=d();return u(l.onColorDragStart(a))})("touchmove",function(a){m(e);let l=d();return u(l.onDrag(a))})("touchend",function(){m(e);let a=d();return u(a.onDragEnd())})("mousedown",function(a){m(e);let l=d();return u(l.onColorMousedown(a))}),o(4,"div",13),_(5,"div",14,3),r()(),o(7,"div",15,4),f("mousedown",function(a){m(e);let l=d();return u(l.onHueMousedown(a))})("touchstart",function(a){m(e);let l=d();return u(l.onHueDragStart(a))})("touchmove",function(a){m(e);let l=d();return u(l.onDrag(a))})("touchend",function(){m(e);let a=d();return u(a.onDragEnd())}),_(9,"div",16,5),r()()()}if(t&2){let e=d();p("ngClass",oe(10,Zo,e.inline,e.disabled))("@overlayAnimation",at(16,tr,oe(13,er,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0),Y("data-pc-section","panel"),s(),Y("data-pc-section","content"),s(),Y("data-pc-section","selector"),s(2),Y("data-pc-section","color"),s(),Y("data-pc-section","colorHandle"),s(2),Y("data-pc-section","hue"),s(2),Y("data-pc-section","hueHandle")}}var or=({dt:t})=>` 2.p-colorpicker { 3 display: inline-block; 4 position: relative; 5} 6 7.p-colorpicker-dragging { 8 cursor: pointer; 9} 10 11.p-colorpicker-preview { 12 width: ${t("colorpicker.preview.width")}; 13 height: ${t("colorpicker.preview.height")}; 14 padding: 0; 15 border: 0 none; 16 border-radius: ${t("colorpicker.preview.border.radius")}; 17 transition: background ${t("colorpicker.transition.duration")}, color ${t("colorpicker.transition.duration")}, border-color ${t("colorpicker.transition.duration")}, outline-color ${t("colorpicker.transition.duration")}, box-shadow ${t("colorpicker.transition.duration")}; 18 outline-color: transparent; 19 cursor: pointer; 20} 21 22.p-colorpicker-preview:enabled:focus-visible { 23 border-color: ${t("colorpicker.preview.focus.border.color")}; 24 box-shadow: ${t("colorpicker.preview.focus.ring.shadow")}; 25 outline: ${t("colorpicker.preview.focus.ring.width")} ${t("colorpicker.preview.focus.ring.style")} ${t("colorpicker.preview.focus.ring.color")}; 26 outline-offset: ${t("colorpicker.preview.focus.ring.offset")}; 27} 28 29.p-colorpicker-panel { 30 background: ${t("colorpicker.panel.background")}; 31 border: 1px solid ${t("colorpicker.panel.border.color")}; 32 border-radius: ${t("colorpicker.panel.border.radius")}; 33 box-shadow: ${t("colorpicker.panel.shadow")}; 34 width: 193px; 35 height: 166px; 36 position: absolute; 37 top: 0; 38 left: 0; 39} 40 41.p-colorpicker-panel:dir(rtl) { 42 left: auto; 43 right: 0; 44} 45 46.p-colorpicker-panel-inline { 47 box-shadow: none; 48 position: static; 49} 50 51.p-colorpicker-content { 52 position: relative; 53} 54 55.p-colorpicker-color-selector { 56 width: 150px; 57 height: 150px; 58 top: 8px; 59 left: 8px; 60 position: absolute; 61} 62 63.p-colorpicker-color-selector:dir(rtl) { 64 left: auto; 65 right: 8px; 66} 67 68.p-colorpicker-color-background { 69 width: 100%; 70 height: 100%; 71 background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%); 72} 73 74.p-colorpicker-color-handle { 75 position: absolute; 76 top: 0px; 77 left: 150px; 78 border-radius: 100%; 79 width: 10px; 80 height: 10px; 81 border-width: 1px; 82 border-style: solid; 83 margin: -5px 0 0 -5px; 84 cursor: pointer; 85 opacity: 0.85; 86 border-color: ${t("colorpicker.handle.color")}; 87} 88 89.p-colorpicker-color-handle:dir(rtl) { 90 left: auto; 91 right: 150px; 92 margin: -5px -5px 0 0; 93} 94 95.p-colorpicker-hue { 96 width: 17px; 97 height: 150px; 98 top: 8px; 99 left: 167px; 100 position: absolute; 101 opacity: 0.85; 102 background: linear-gradient(0deg, 103 red 0, 104 #ff0 17%, 105 #0f0 33%, 106 #0ff 50%, 107 #00f 67%, 108 #f0f 83%, 109 red); 110} 111 112.p-colorpicker-hue:dir(rtl) { 113 left: auto; 114 right: 167px; 115} 116 117.p-colorpicker-hue-handle { 118 position: absolute; 119 top: 150px; 120 left: 0px; 121 width: 21px; 122 margin-left: -2px; 123 margin-top: -5px; 124 height: 10px; 125 border-width: 2px; 126 border-style: solid; 127 opacity: 0.85; 128 cursor: pointer; 129 border-color: ${t("colorpicker.handle.color")}; 130} 131 132.p-colorpicker-hue-handle:dir(rtl) { 133 left: auto; 134 right: 0px; 135 margin-left: 0; 136 margin-right: -2px; 137} 138`,rr={root:"p-colorpicker p-component",preview:({props:t})=>["p-colorpicker-preview",{"p-disabled":t.disabled}],panel:({props:t})=>["p-colorpicker-panel",{"p-colorpicker-panel-inline":t.inline,"p-disabled":t.disabled}],content:"p-colorpicker-content",colorSelector:"p-colorpicker-color-selector",colorBackgroun
138d:"p-colorpicker-color-background",colorHandle:"p-colorpicker-color-handle",hue:"p-colorpicker-hue",hueHandle:"p-colorpicker-hue-handle"},Ji=(()=>{class t extends Ut{name="colorpicker";theme=or;classes=rr;static \u0275fac=(()=>{let e;return function(a){return(e||(e=Se(t)))(a||t)}})();static \u0275prov=yt({token:t,factory:t.\u0275fac})}return t})();var ar={provide:ei,useExisting:xt(()=>bt),multi:!0},bt=(()=>{class t extends qt{overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;onChange=new ae;onShow=new ae;onHide=new ae;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;_componentStyle=y(Ji);constructor(e){super(),this.overlayService=e}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}get ariaLabel(){return this.config?.getTranslation(st.ARIA)[st.SELECT_COLOR]}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,i){let a=i?i.pageY:e.pageY,l=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,a-l)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,i){let a=i?i.pageX:e.pageX,l=i?i.pageY:e.pageY,g=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),O=g.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),V=g.left+this.document.body.scrollLeft,X=Math.floor(100*Math.max(0,Math.min(150,a-V))/150),we=Math.floor(100*(150-Math.max(0,Math.min(150,l-O)))/150);this.value=this.validateHSB({h:this.value.h,s:X,b:we}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value;break}return e}updateModel(){this.onModelChange(this.getValueToUpdate()),this.cd.markForCheck()}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e;break}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){let e={};e.s=100,e.b=100,e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inl
138ine||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&Ve.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide();break}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&Ve.clear(e.element),this.onHide.emit({});break}}appendOverlay(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.overlay):Lt(this.appendTo,this.overlay))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?Ot(this.overlay,this.inputViewChild?.nativeElement):jt(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide();break;default:break}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){if(!this.documentClickListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){if(!this.documentMousemoveListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentMousemoveListener=this.renderer.listen(e,"mousemove",i=>{this.colorDragging&&this.pickColor(i),this.hueDragging&&this.pickHue(i)})}}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){if(!this.documentMouseupListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentMouseupListener=this.renderer.listen(e,"mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()})}}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){At(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!zt()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Wt(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var i=6-e.length;if(i>0){for(var a=[],l=0;l<i;l++)a.push("0");a.push(e),e=a.join("")}return e}HEXtoRGB(e){let i=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:i>>16,g:(i&65280)>>8,b:i&255}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var i={h:0,s:0,b:0},a=Math.min(e.r,e.g,e.b),l=Math.max(e.r,e.g,e.b),g=l-a;return i.b=l,i.s=l!=0?255*g/l:0,i.s!=0?e.r==l?i.h=(e.g-e.b)/g:e.g==l?i.h=2+(e.b-e.r)/g:i.h=4+(e.r-e.g)/g:i.h=-1,i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i}HSBtoRGB(e){var i={r:0,g:0,b:0};let a=e.h,l=e.s*255/100,g=e.b*255/100;if(l==0)i={r:g,g,b:g};else{let O=g,V=(255-l)*g/255,X=(O-V)*(a%60)/60;a==360&&(a=0),a<60?(i.r=O,i.b=V,i.g=V+X):a<120?(i.g=O,i.b=V,i.r=O-X):a<180?(i.g=O,i.r=V,i.b=V+X):a<240?(i.b=O,i.r=V,i.g=O-X):a<300?(i.b=O,i.g=V,i.r=V+X):a<360?(i.r=O,i.g=V,i.b=O-X):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}}RGBtoHEX(e){var i=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];
138for(var a in i)i[a].length==1&&(i[a]="0"+i[a]);return i.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&Ve.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(i){return new(i||t)(St(Ht))};static \u0275cmp=w({type:t,selectors:[["p-colorPicker"],["p-colorpicker"],["p-color-picker"]],viewQuery:function(i,a){if(i&1&&(le(Wo,5),le(Go,5),le($o,5),le(Jo,5),le(Ko,5),le(Xo,5)),i&2){let l;se(l=ce())&&(a.containerViewChild=l.first),se(l=ce())&&(a.inputViewChild=l.first),se(l=ce())&&(a.colorSelector=l.first),se(l=ce())&&(a.colorHandle=l.first),se(l=ce())&&(a.hue=l.first),se(l=ce())&&(a.hueHandle=l.first)}},inputs:{style:"style",styleClass:"styleClass",inline:[2,"inline","inline",ye],format:"format",appendTo:"appendTo",disabled:[2,"disabled","disabled",ye],tabindex:"tabindex",inputId:"inputId",autoZIndex:[2,"autoZIndex","autoZIndex",ye],baseZIndex:[2,"baseZIndex","baseZIndex",Dt],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[2,"autofocus","autofocus",ye]},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[U([ar,Ji]),ke],decls:4,vars:11,consts:[["container",""],["input",""],["colorSelector",""],["colorHandle",""],["hue",""],["hueHandle",""],[3,"ngStyle","ngClass"],["type","text","class","p-colorpicker-preview","readonly","readonly",3,"ngClass","disabled","backgroundColor","pAutoFocus","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview",3,"click","keydown","focus","ngClass","disabled","pAutoFocus"],[3,"click","ngClass"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],[1,"p-colorpicker-color-background"],[1,"p-colorpicker-color-handle"],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],[1,"p-colorpicker-hue-handle"]],template:function(i,a){i&1&&(o(0,"div",6,0),h(2,ir,2,11,"input",7)(3,nr,11,18,"div",8),r()),i&2&&(z(a.styleClass),p("ngStyle",a.style)("ngClass",oe(8,Qo,!a.inline,a.colorDragging||a.hueDragging)),Y("data-pc-name","colorpicker")("data-pc-section","root"),s(2),p("ngIf",!a.inline),s(),p("ngIf",a.inline||a.overlayVisible))},dependencies:[It,_e,Ft,Rt,Jt,$t,Nt],encapsulation:2,data:{animation:[Gt("overlayAnimation",[pt(":enter",[dt({opacity:0,transform:"scaleY(0.8)"}),ct("{{showTransitionParams}}")]),pt(":leave",[ct("{{hideTransitionParams}}",dt({opacity:0}
138))])])]},changeDetection:0})}return t})();var lr=()=>({width:"96vw",maxWidth:"1600px"}),M=()=>({standalone:!0}),sr=()=>({key:"colorPrimaryAccent",label:"Primaire accentkleur",hint:""}),cr=()=>({key:"colorHeading",label:"Kleur van headings",hint:""}),dr=()=>({key:"colorBody",label:"Kleur van bodytekst",hint:""}),Xi=()=>({key:"colorLink",label:"Linkkleur",hint:""}),Qi=()=>({key:"colorButton",label:"Knopkleur",hint:""}),pr=()=>({key:"colorBlockBackground",label:"Achtergrondkleur",hint:"Achtergrond van kaders en kaarten."}),mr=()=>({key:"pageBackgroundColor",label:"Kleur",hint:""}),ur=()=>({key:"pageBackgroundGradientStart",label:"Van",hint:""}),gr=()=>({key:"pageBackgroundGradientEnd",label:"Naar",hint:""}),_r=()=>({key:"colorHeading",label:"Tekstkleur",hint:""}),fr=()=>({key:"colorBody",label:"Tekstkleur",hint:""}),hr=()=>({key:"blockCustomFillColor",label:"Eigen vulkleur",hint:""}),Yi=(t,n)=>n.key,nt=(t,n)=>n.value;function vr(t,n){t&1&&(o(0,"small",15),c(1,"Geef het thema een naam."),r())}function br(t,n){if(t&1){let e=x();o(0,"div",11)(1,"div",12)(2,"p-inputGroup")(3,"p-inputGroupAddon",13),c(4,"Naam"),r(),o(5,"input",14),f("ngModelChange",function(a){m(e);let l=d();return u(l.patch({name:a}))}),r()(),h(6,vr,2,0,"small",15),r(),o(7,"label",16)(8,"p-toggleswitch",17),f("ngModelChange",function(a){m(e);let l=d();return u(l.patch({isDefault:a}))}),r(),o(9,"span",18),c(10," Standaardthema "),r()()()}if(t&2){let e=d();s(5),p("ngModel",e.draft().name)("ngModelOptions",v(5,M)),s(),b(e.nameMissing()?6:-1),s(2),p("ngModel",e.draft().isDefault)("ngModelOptions",v(6,M))}}function Cr(t,n){if(t&1){let e=x();o(0,"button",19),f("click",function(){let a=m(e).$implicit,l=d();return u(l.section.set(a.key))}),_(1,"i",20),c(2),r()}if(t&2){let e=n.$implicit,i=d();z(i.section()===e.key?"bg-primary-50 text-primary-700 dark:bg-primary-500/15 dark:text-primary-200":"text-color/80 hover:bg-surface-100 dark:hover:bg-surface-800"),s(),z(e.icon),Tt("text-primary-500",i.section()===e.key),s(),R(" ",e.label," ")}}function xr(t,n){t&1&&j(0)}function yr(t,n){if(t&1){let e=x();o(0,"div",35)(1,"p-colorpicker",36),f("ngModelChange",function(a){let l=m(e).$index,g=d(3);return u(g.setSecondaryAccent(l,a))}),r(),o(2,"input",37),f("ngModelChange",function(a){let l=m(e).$index,g=d(3);return u(g.setSecondaryAccent(l,a))}),r(),o(3,"button",38),f("click",function(){let a=m(e).$index,l=d(3);return u(l.removeSecondaryAccent(a))}),_(4,"i",39),r()()}if(t&2){let e=n.$implicit;s(),p("ngModel",e)("ngModelOptions",v(4,M)),s(),p("ngModel",e)("ngModelOptions",v(5,M))}}function wr(t,n){if(t&1&&(o(0,"div",32),A(1,yr,5,6,"div",35,ie),r()),t&2){let e=d(2);s(),P(e.draft().secondaryAccentColors)}}function Sr(t,n){t&1&&j(0)}function Tr(t,n){t&1&&j(0)}function kr(t,n){t&1&&j(0)}function Er(t,n){t&1&&j(0)}function Dr(t,n){t&1&&j(0)}function Mr(t,n){t&1&&j(0)}function Vr(t,n){if(t&1&&h(0,Mr,1,0,"ng-container",27),t&2){d(2);let e=de(18);p("ngTemplateOutlet",e)("ngTemplateOutletContext",v(2,mr))}}function Fr(t,n){t&1&&j(0)}function Rr(t,n){t&1&&j(0)}function Br(t,n){if(t&1){let e=x();o(0,"div",40),h(1,Fr,1,0,"ng-container",27)(2,Rr,1,0,"ng-container",27),r(),o(3,"div",41)(4,"label",42),c(5,"Hoek (graden)"),r(),o(6,"p-inputnumber",43),f("ngModelChange",function(a){let l;m(e);let g=d(2);
138return u(g.patch({pageBackgroundGradientAngle:(l=a)!==null&&l!==void 0?l:0}))}),r()()}if(t&2){let e=d(2),i=de(18);s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(12,ur)),s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(13,gr)),s(4),p("fluid",!0)("showButtons",!0)("step",5)("min",0)("max",360)("useGrouping",!1)("ngModel",e.draft().pageBackgroundGradientAngle)("ngModelOptions",v(14,M))}}function Ir(t,n){if(t&1){let e=x();o(0,"header",21)(1,"h2",22),c(2,"Kleuren"),r(),o(3,"p",23),c(4,"Het palet waarmee het thema wordt opgemaakt."),r()(),o(5,"div",24)(6,"section",25)(7,"h3",26),c(8,"Themapalet"),r(),h(9,xr,1,0,"ng-container",27),o(10,"div",28)(11,"label",29),c(12,"Secundaire accentkleuren "),o(13,"span",30),c(14,"(optioneel)"),r()(),o(15,"p",31),c(16,"Dit zijn alternatieve kleuren die AI mag gebruiken bij het genereren van het rapport."),r(),h(17,wr,3,0,"div",32),o(18,"p-button",33),f("onClick",function(){m(e);let a=d();return u(a.addSecondaryAccent())}),r()()(),o(19,"section",25)(20,"h3",26),c(21,"Tekst"),r(),h(22,Sr,1,0,"ng-container",27)(23,Tr,1,0,"ng-container",27)(24,kr,1,0,"ng-container",27)(25,Er,1,0,"ng-container",27),r(),o(26,"section",25)(27,"h3",26),c(28,"Achtergrond"),r(),h(29,Dr,1,0,"ng-container",27),o(30,"div",28)(31,"label",29),c(32,"Pagina-achtergrond"),r(),o(33,"p-selectbutton",34),f("ngModelChange",function(a){m(e);let l=d();
138return u(l.patch({pageBackground:a}))}),r(),h(34,Vr,1,3,"ng-container")(35,Br,7,15),r()()()}if(t&2){let e=d(),i=de(18);s(9),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(20,sr)),s(8),b(e.draft().secondaryAccentColors.length?17:-1),s(),p("outlined",!0)("rounded",!0),s(4),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(21,cr)),s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(22,dr)),s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(23,Xi)),s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(24,Qi)),s(4),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(25,pr)),s(4),p("allowEmpty",!1)("options",e.pageBackgroundOptions)("ngModel",e.draft().pageBackground)("ngModelOptions",v(26,M)),s(),b(e.draft().pageBackground===e.PageBackground.Solid?34:35)}}function Ar(t,n){t&1&&j(0)}function Pr(t,n){t&1&&j(0)}function Or(t,n){if(t&1){let e=x();o(0,"header",21)(1,"h2",22),c(2,"Lettertypen"),r(),o(3,"p",23),c(4,"Lettertype, groottes en fijnafstelling voor koppen en tekst."),r()(),o(5,"div",24)(6,"section",44)(7,"h3",26),c(8,"Headings"),r(),o(9,"div",40)(10,"div",45)(11,"label",46),c(12,"Lettertype"),r(),o(13,"p-select",47),f("ngModelChange",function(a){m(e);let l=d();return u(l.patch({headingFontFamily:a}))}),r()(),h(14,Ar,1,0,"ng-container",27),r(),o(15,"div",48)(16,"div",45)(17,"label",49),c(18,"Kop 1 (pt)"),r(),o(19,"p-inputnumber",50),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({heading1SizePt:(l=a)!==null&&l!==void 0?l:26}))}),r()(),o(20,"div",45)(21,"label",51),c(22,"Kop 2 (pt)"),r(),o(23,"p-inputnumber",52),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({heading2SizePt:(l=a)!==null&&l!==void 0?l:19}))}),r()(),o(24,"div",45)(25,"label",53),c(26,"Kop 3 (pt)"),r(),o(27,"p-inputnumber",54),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({heading3SizePt:(l=a)!==null&&l!==void 0?l:15}))}),r()()(),o(28,"div",55)(29,"div",45)(30,"label",56),c(31,"Regelhoogte"),r(),o(32,"p-inputnumber",57),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({headingLineHeight:(l=a)!==null&&l!==void 0?l:1.2}))}),r()(),o(33,"div",45)(34,"label",58),c(35,"Letterafstand"),r(),o(36,"p-inputnumber",59),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({headingLetterSpacingEm:(l=a)!==null&&l!==void 0?l:0}))}),r()()()(),o(37,"section",60)(38,"h3",26),c(39,"Bodytekst"),r(),o(40,"div",40)(41,"div",45)(42,"label",61),c(43,"Lettertype"),r(),o(44,"p-select",62),f("ngModelChange",function(a){m(e);let l=d();return u(l.patch({bodyFontFamily:a}))}),r()(),h(45,Pr,1,0,"ng-container",27),r(),o(46,"div",48)(47,"div",45)(48,"label",63),c(49,"Grootte (pt)"),r(),o(50,"p-inputnumber",64),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({bodySizePt:(l=a)!==null&&l!==void 0?l:11}))}),r()(),o(51,"div",45)(52,"label",65),c(53,"Regelhoogte"),r(),o(54,"p-inputnumber",66),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({bodyLineHeight:(l=a)!==null&&l!==void 0?l:1.5}))}),r()(),o(55,"div",45)(56,"label",67),c(57,"Letterafstand"),r(),o(58,"p-inputnumber",68),f("ngModelChange",function(a){let l;m(e);let g=d();return u(g.patch({bodyLetterSpacingEm:(l=a)!==null&&l!==void 0?l:0}))}),r()()()(),o(59,"p",69),c(60," De tekstkleur die je hier kiest is dezelfde als onder Kleuren; wijzig je er \xE9\xE9n, dan volgt de ander. "),r()()}if(t&2){let e=d(),i=de(18);s(13),p("filter",!0)("options",e.fontOptions)("ngModel",e.draft().headingFontFamily)("ngModelOptions",v(84,M)),s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(85,_r)),s(5),p("fluid",!0)("showButtons",!0)("min",10)("max",48)("step",.5)("minFractionDigits",0)("maxFractionDigits",1)("ngModel",e.draft().heading1SizePt)("ngModelOptions",v(86,M)),s(4),p("fluid",!0)("showButtons",!0)("min",9)("max",40)("step",.5)("minFractionDigits",0)("maxFractionDigits",1)("ngModel",e.draft().heading2SizePt)("ngModelOptions",v(87,M)),s(4),p("fluid",!0)("showButtons",!0)("min",8)("max",32)("step",.5)("minFractionDigits",0)("maxFractionDigits",1)("ngModel",e.draft().heading3SizePt)("ngModelOptions",v(88,M)),s(5),p("fluid",!0)("showButtons",!0)("min",.8)("max",3)("step",.05)("minFractionDigits",1)("maxFractionDigits",2)("ngModel",e.draft().headingLineHeight)("ngModelOptions",v(89,M)),s(4),p("fluid",!0)("showButtons",!0)("min",-.5)("max",1)("step",.01)("minFractionDigits",0)("maxFractionDigits",2)("ngModel",e.draft().headingLetterSpacingEm)("ngModelOptions",v(90,M)),s(8),p("filter",!0)("options",e.fontOptions)("ngModel",e.draft().bodyFontFamily)("ngModelOptions",v(91,M)),s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(92,fr)),s(5),p("fluid",!0)("showButtons",!0)("min",7)("max",16)("step",.5)("minFractionDigits",0)("maxFractionDigits",1)("ngModel",e.draft().bodySizePt)("ngModelOptions",v(93,M)),s(4),p("fluid",!0)("showButtons",!0)("min",.8)("max",3)("step",.05)("minFractionDigits",1)("maxFractionDigits",2)("ngModel",e.draft().bodyLineHeight)("ngModelOptions",v(94,M)),s(4),p("fluid",!0)("showButtons",!0)("min",-.5)("max",1)("step",.01)("minFractionDigits",0)("maxFractionDigits",2)("ngModel",e.draft().bodyLetterSpacingEm)("ngModelOptions",v(95,M))}}function jr(t,n){if(t&1){let e=x();o(0,"button",75),f("click",function(){let a=m(e).$implicit,l=d(2);return u(l.designTab.set(a.key))}),c(1),r()}if(t&2){let e=n.$implicit,i=d(2);z(i.designTab()===e.key?"bg-primary-50 text-primary-700 dark:bg-primary-500/15 dark:text-primary-200":"text-muted-color hover:bg-surface-100 dar
138k:hover:bg-surface-800"),s(),R(" ",e.label," ")}}function Lr(t,n){if(t&1){let e=x();o(0,"button",82),f("click",function(){let a=m(e).$implicit,l=d(3);return u(l.patch({roundness:a.value}))}),_(1,"span",83),r()}if(t&2){let e=n.$implicit,i=d(3);z(i.draft().roundness===e.value?"border-primary ring-primary-400/40 ring-2":"border-surface-300 dark:border-surface-600 hover:border-surface-400"),p("pTooltip",e.label),s(),te("border-radius",i.roundnessRadius(e.value),"px")}}function zr(t,n){if(t&1){let e=x();o(0,"div",79)(1,"p-radiobutton",84),f("ngModelChange",function(a){m(e);let l=d(3);return u(l.patch({blockFill:a}))}),r(),_(2,"span",85),o(3,"label",86),c(4),r()()}if(t&2){let e=n.$implicit,i=d(3);s(),p("inputId","block-fill-"+e.value)("value",e.value)("ngModel",i.draft().blockFill)("ngModelOptions",v(8,M)),s(),te("background",i.blockFillDot(e.value)),s(),p("for","block-fill-"+e.value),s(),S(e.label)}}function Hr(t,n){t&1&&j(0)}function Nr(t,n){if(t&1&&(o(0,"div",80),h(1,Hr,1,0,"ng-container",27),r()),t&2){d(3);let e=de(18);s(),p("ngTemplateOutlet",e)("ngTemplateOutletContext",v(2,hr))}}function Ur(t,n){if(t&1){let e=x();o(0,"button",87),f("click",function(){let a=m(e).$implicit,l=d(3);return u(l.patch({blockShadow:a.value}))}),_(1,"span",88),r()}if(t&2){let e=n.$implicit,i=d(3);z(i.draft().blockShadow===e.value?"border-primary ring-primary-400/40 ring-2":"border-surface-300 dark:border-surface-600 hover:border-surface-400"),p("pTooltip",e.label),s(),te("box-shadow",i.blockShadowFor(e.value))}}function qr(t,n){if(t&1){let e=x();o(0,"div",74)(1,"div",28)(2,"label",29),c(3,"Afronding"),r(),o(4,"p",31),c(5,"Geldt voor alle kaarten: kerncijfers, tabellen, aanbevelingen en meldingen."),r(),o(6,"div",76),A(7,Lr,2,5,"button",77,nt),r()(),o(9,"div",28)(10,"label",29),c(11,"Vulkleur van blokken"),r(),o(12,"div",78),A(13,zr,5,9,"div",79,nt),r(),h(15,Nr,2,3,"div",80),r(),o(16,"div",28)(17,"label",29),c(18,"Vulstijl"),r(),o(19,"p-selectbutton",34),f("ngModelChange",function(a){m(e);let l=d(2);return u(l.patch({blockFillStyle:a}))}),r()(),o(20,"div",28)(21,"label",29),c(22,"Rand"),r(),o(23,"p-selectbutton",34),f("ngModelChange",function(a){m(e);let l=d(2);return u(l.patch({blockBorderWidth:a}))}),r()(),o(24,"div",28)(25,"label",29),c(26,"Schaduw"),r(),o(27,"div",76),A(28,Ur,2,5,"button",81,nt),r()()()}if(t&2){let e=d(2);s(7),P(e.roundnessOptions),s(6),P(e.blockFillOptions),s(2),b(e.draft().blockFill===e.BlockFill.Custom?15:-1),s(4),p("allowEmpty",!1)("options",e.blockFillStyleOptions)("ngModel",e.draft().blockFillStyle)("ngModelOptions",v(9,M)),s(4),p("allowEmpty",!1)("options",e.borderOptions)("ngModel",e.draft().blockBorderWidth)("ngModelOptions",v(10,M)),s(5),P(e.blockShadowOptions)}}function Wr(t,n){t&1&&j(0)}function Gr(t,n){if(t&1){let e=x();o(0,"button",91),f("click",function(){let a=m(e).$implicit,l=d(3);return u(l.patch({buttonShape:a.value}))}),o(1,"span",92),c(2,"Knop"),r()()}if(t&2){let e=n.$implicit,i=d(3);z(i.draft().buttonShape===e.value?"border-primary ring-primary-400/40 ring-2":"border-surface-300 dark:border-surface-600 hover:border-surface-400"),p("pTooltip",e.label),s(),te("background",i.draft().colorButton)("border-radius",i.buttonRadius(e.value),"px")}}function $r(t,n){t&1&&j(0)}function Jr(t,n){if(t&1&&(o(0,"div",74),h(1,Wr,1,0,"ng-container",27),o(2,"div",28)(3,"label",29),c(4,"Knopvorm"),r(),o(5,"div",89),A(6,Gr,3,7,"button",90,nt),r()(),h(8,$r,1,0,"ng-container",27),r()),t&2){let e=d(2),i=de(18);s(),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(4,Qi)),s(5),P(e.buttonShapeOptions),s(2),p("ngTemplateOutlet",i)("ngTemplateOutletContext",v(5,Xi))}}function Kr(t,n){if(t&1&&(o(0,"header",70)(1,"h2",22),c(2,"Design"),r(),o(3,"p",23),c(4,"Fijnere controle over specifieke elementen in het thema."),r()(),o(5,"div",71),A(6,jr,2,3,"button",72,Yi),r(),o(8,"div",73),h(9,qr,30,11,"div",74)(10,Jr,9,6,"div",74),r()),t&2){let e,i=d();s(6),P(i.designTabs),s(3),b((e=i.designTab())==="blocks"?9:e==="buttons"?10:-1)}}function Xr(t,n){if(t&1){let e=x();o(0,"div",93)(1,"p-button",94),f("onClick",function(){m(e);let a=d();return u(a.close())}),r(),o(2,"span",95)(3,"p-button",96),f("onClick",function(){m(e);let a=d();return u(a.save())}),r()()()}if(t&2){let e=d();s(),p("outlined",!0)("disabled",e.saving()),s(),p("pTooltip",e.saveBlockedReason())("tooltipDisabled",e.canSave()),s(),p("label",e.isEditing()?"Opslaan":"Thema aanmaken")("loading",e.saving())("disabled",!e.canSave())}}function Qr(t,n){if(t&1){let e=x();o(0,"button",103),f("click",function(){m(e);let a=d().key,l=d();return u(l.resetColor(a))}),_(1,"i",104),r()}}function Yr(t,n){t&1&&(o(0,"span",101),c(1,"(standaard)"),r())}function Zr(t,n){t&1&&(o(0,"small",15),c(1,"Geen geldige hexcode."),r())}
138function ea(t,n){if(t&1&&(o(0,"small",102),c(1),r()),t&2){let e=d().hint;s(),S(e)}}function ta(t,n){if(t&1){let e=x();o(0,"div",45)(1,"div",97)(2,"label",29),c(3),r(),h(4,Qr,2,0,"button",98),r(),o(5,"div",99)(6,"p-colorpicker",36),f("ngModelChange",function(a){let l=m(e).key,g=d();return u(g.patchColor(l,a))}),r(),o(7,"input",100),f("ngModelChange",function(a){let l=m(e).key,g=d();return u(g.patchColor(l,a))}),r(),h(8,Yr,2,0,"span",101),r(),h(9,Zr,2,0,"small",15)(10,ea,2,1,"small",102),r()}if(t&2){let e=n.key,i=n.label,a=n.hint,l=d();s(3),S(i),s(),b(l.isColorDefault(e)?-1:4),s(),z(l.isValidHex(l.colorValue(e))?"border-surface-300 dark:border-surface-600":"border-red-400"),s(),p("ngModel",l.colorValue(e))("ngModelOptions",v(10,M)),s(),p("ngModel",l.colorValue(e))("ngModelOptions",v(11,M)),s(),b(l.isColorDefault(e)?8:-1),s(),b(l.isValidHex(l.colorValue(e))?a?10:-1:9)}}var Ki=/^#(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,ot=class t{themesService=y(Ne);messageService=y(F);visible=ue(!1);theme=Te(null);saved=me();fontOptions=Di;
138pageBackgroundOptions=Ei;roundnessOptions=xi;borderOptions=yi;blockFillOptions=wi;blockFillStyleOptions=Si;blockShadowOptions=Ti;buttonShapeOptions=ki;PageBackground=vi;BlockFill=bi;BlockFillStyle=Ci;roundnessRadius=Mi;buttonRadius=Vi;borderPx=Fi;blockShadowFor=Ri;defaults=gt();designTabs=[{key:"blocks",label:"Blokken & kaarten"},{key:"buttons",label:"Knoppen & links"}];navItems=[{key:"colors",label:"Kleuren",icon:"pi pi-palette"},{key:"fonts",label:"Lettertypen",icon:"pi pi-language"},{key:"design",label:"Design",icon:"pi pi-sliders-h"}];section=C("colors");designTab=C("blocks");draft=C(this.blank());saving=C(!1);isEditing=W(()=>this.theme()!==null);invalidColors=W(()=>{let n=this.draft();return[n.colorPrimaryAccent,n.colorHeading,n.colorBody,n.colorLink,n.colorButton,n.colorBlockBackground,n.pageBackgroundColor,n.pageBackgroundGradientStart,n.pageBackgroundGradientEnd,n.blockCustomFillColor,...n.secondaryAccentColors].filter(i=>!Ki.test(i)).length});nameMissing=W(()=>this.draft().name.trim().length===0);canSave=W(()=>!this.nameMissing()&&this.invalidColors()===0&&!this.saving());saveBlockedReason=W(()=>this.nameMissing()?"Geef het thema een naam.":this.invalidColors()>0?"Alle kleuren moeten een geldige hexcode zijn.":"");constructor(){Vt(()=>{this.visible()&&Mt(()=>{let n=this.theme();this.draft.set(n?I({name:n.name,isDefault:n.isDefault},He(n)):this.blank()),this.section.set("colors"),this.designTab.set("blocks")})})}patch(n){this.draft.update(e=>I(I({},e),n))}patchField(n,e){this.patch({[n]:e})}colorValue(n){return this.draft()[n]}patchColor(n,e){let i=(e??"").trim(),a=i.length>0&&!i.startsWith("#")?`#${i}`:i;this.patch({[n]:a})}isValidHex(n){return Ki.test(n??"")}isColorDefault(n){return this.draft()[n].toLowerCase()===this.defaults[n].toLowerCase()}resetColor(n){this.patch({[n]:this.defaults[n]})}blockFillDot(n){let e=this.draft();return n===1?e.colorPrimaryAccent:n===2?e.blockCustomFillColor:e.colorBlockBackground}addSecondaryAccent(){this.patch({secondaryAccentColors:[...this.draft().secondaryAccentColors,"#17795e"]})}setSecondaryAccent(n,e){let i=(e??"").trim(),a=i.length>0&&!i.startsWith("#")?`#${i}`:i,l=[...this.draft().secondaryAccentColors];l[n]=a,this.patch({secondaryAccentColors:l})}removeSecondaryAccent(n){this.patch({secondaryAccentColors:this.draft().secondaryAccentColors.filter((e,i)=>i!==n)})}save(){if(!this.canSave())return;let n=Q(I({},this.draft()),{name:this.draft().name.trim()}),e=this.theme();this.saving.set(!0),(e?this.themesService.update(e.id,n):this.themesService.create(n)).subscribe({next:a=>{this.saving.set(!1),this.saved.emit(a),this.visible.set(!1),this.messageService.add({severity:"success",summary:"Opgeslagen",detail:`Thema "${a.name}" is opgeslagen.`,life:2500,styleClass:"p-no-icon"})},error:()=>{this.saving.set(!1),this.toastError("Het thema kon niet worden opgeslagen.")}})}close(){this.visible.set(!1)}blank(){return I({name:"",isDefault:!1},gt())}toastError(n){this.messageService.add({severity:"error",summary:"Fout",detail:n,life:4e3,styleClass:"p-no-icon"})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-theme-editor-dialog"]],inputs:{visible:[1,"visible"],theme:[1,"theme"]},outputs:{visible:"visibleChange",saved:"saved"},features:[U([F])],decls:19,vars:11,consts:[["header",""],["footer",""],["colorField",""],["styleClass","[&_.p-dialog-content]:p-0!",3,"visibleChange","visible","modal","draggable","closable","resizable","dismissableMask"],[1,"flex","h-[70vh]","min-h-0","flex-col","lg:flex-row"],[1,"border-surface-200","dark:border-surface-700","flex","shrink-0","gap-1","overflow-x-auto","border-b","p-3","lg:w-56","lg:flex-col","lg:overflow-visible","lg:border-r","lg:border-b-0"],["type","button",1,"flex","shrink-0","cursor-pointer","items-center","gap-3","rounded-xl","px-3","py-2.5","text-left","text-sm","font-medium","transition-colors",3,"class"],[1,"min-h-0","flex-1","overflow-y-auto","px-8","py-4"],[1,"hidden","md:block","border-surface-200","dark:border-surface-700","min-h-[16rem]","shrink-0","border-t","lg:min-h-0","lg:w-[40%]","xl:w-[50%]","lg:border-t-0","lg:border-l"],[1,"h-full","overflow-y-auto","p-5"],[3,"themeOverride"],[1,"flex","flex-1","flex-wrap","items-center","gap-4"],[1,"flex","min-w-[14rem]","flex-1","flex-col","gap-1"],[1,"pl-5!","pr-5!"],["pInputText","","placeholder","Naam van het thema","autocomplete","off",1,"w-full","text-base!","font-medium!",3,"ngModelChange","ngModel","ngModelOptions"],[1,"text-red-500"],["for","theme-default",1,"flex","cursor-pointer","items-center","gap-2"],["inputId","theme-default",3,"ngModelChange","ngModel","ngModelOptions"],["pTooltip","Rapporten zonder eigen thema gebruiken dit thema.","tooltipPosition","bottom",1,"text-color","text-sm","font-medium"],["type","button",1,"flex","shrink-0","cursor-pointer","items-center","gap-3","rounded-xl","px-3","py-2.5","text-left","text-sm","font-medium","transition-colors",3,"click"],[1,"text-sm!"],[1,"mb-7"],[1,"text-color","text-xl","font-semibold"],[1,"text-muted-color","mt-1","text-sm"],[1,"flex","max-w-lg","flex-col","gap-8"],[1,"flex","flex-col","gap-5"],[1,"text-color","text-sm","font-semibold"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex","flex-col","gap-3"],[1,"p-formlabel","text-sm"],[1,"text-muted-color","font-normal"],[1,"text-muted-color","-mt-1","text-xs"],[1,"flex","flex-col","gap-2"],["label","Kleur toevoegen","icon","pi pi-plus","severity","secondary","size","small","styleClass","w-fit",3,"onClick","outlined","rounded"],["optionLabel","label","optionValue","value",3,"ngModelChange","allowEmpty","options","ngModel","ngModelOptions"],[1,"border-surface-300","dark:border-surface-600","flex","items-center","gap-2.5","rounded-lg","border","px-2.5","py-2"],[3,"ngModelChange","ngModel","ngModelOptions"],["spellcheck","fal
138se",1,"text-color","min-w-0","flex-1","border-0","bg-transparent","p-0","font-mono","text-sm","outline-none",3,"ngModelChange","ngModel","ngModelOptions"],["type","button","aria-label","Kleur verwijderen",1,"text-muted-color","hover:text-color",3,"click"],[1,"pi","pi-times","text-xs"],[1,"grid","gap-4","sm:grid-cols-2"],[1,"flex","max-w-[12rem]","flex-col","gap-1.5"],["for","grad-angle",1,"p-formlabel","text-sm"],["inputId","grad-angle","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","step","min","max","useGrouping","ngModel","ngModelOptions"],[1,"flex","flex-col","gap-4"],[1,"flex","flex-col","gap-1.5"],["for","heading-family",1,"p-formlabel","text-sm"],["inputId","heading-family","styleClass","w-full","appendTo","body","optionLabel","label","optionValue","value","filterBy","label",3,"ngModelChange","filter","options","ngModel","ngModelOptions"],[1,"grid","grid-cols-3","gap-4"],["for","h1-size",1,"p-formlabel","text-sm"],["inputId","h1-size","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],["for","h2-size",1,"p-formlabel","text-sm"],["inputId","h2-size","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],["for","h3-size",1,"p-formlabel","text-sm"],["inputId","h3-size","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],[1,"grid","grid-cols-2","gap-4"],["for","heading-lh",1,"p-formlabel","text-sm"],["inputId","heading-lh","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],["for","heading-ls",1,"p-formlabel","text-sm"],["inputId","heading-ls","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],[1,"border-surface-200","dark:border-surface-700","flex","flex-col","gap-4","border-t","pt-7"],["for","body-family",1,"p-formlabel","text-sm"],["inputId","body-family","styleClass","w-full","appendTo","body","optionLabel","label","optionValue","value","filterBy","label",3,"ngModelChange","filter","options","ngModel","ngModelOptions"],["for","body-size",1,"p-formlabel","text-sm"],["inputId","body-size","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],["for","body-lh",1,"p-formlabel","text-sm"],["inputId","body-lh","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],["for","body-ls",1,"p-formlabel","text-sm"],["inputId","body-ls","buttonLayout","horizontal","incrementButtonIcon","pi pi-plus","decrementButtonIcon","pi pi-minus",3,"ngModelChange","fluid","showButtons","min","max","step","minFractionDigits","maxFractionDigits","ngModel","ngModelOptions"],[1,"bg-surface-100","dark:bg-surface-800","text-muted-color","rounded-lg","px-4","py-3","text-xs","leading-relaxed"],[1,"mb-6"],[1,"mb-7","flex","flex-wrap","gap-2"],["type","button",1,"cursor-pointer","rounded-full","px-4","py-1.5","text-sm","font-medium","transition-colors",3,"class"],[1,"max-w-lg"],[1,"flex","flex-col","gap-7"],["type","button",1,"cursor-pointer","rounded-full","px-4","py-1.5","text-sm","font-medium","transition-colors",3,"click"],[1,"flex","gap-3"],["type","button","tooltipPosition","top",1,"curs
138or-pointer","flex","h-14","w-14","items-center","justify-center","rounded-xl","border","transition-all",3,"pTooltip","class"],[1,"flex","flex-col","gap-2.5"],[1,"flex","items-center","gap-3"],[1,"pt-1"],["type","button","tooltipPosition","top",1,"flex","cursor-pointer","h-14","w-14","items-center","justify-center","rounded-xl","border","transition-all",3,"pTooltip","class"],["type","button","tooltipPosition","top",1,"cursor-pointer","flex","h-14","w-14","items-center","justify-center","rounded-xl","border","transition-all",3,"click","pTooltip"],[1,"bg-surface-200","dark:bg-surface-600","border-surface-400","dark:border-surface-500","h-7","w-7","border"],["name","blockFill",3,"ngModelChange","inputId","value","ngModel","ngModelOptions"],[1,"border-surface-300","dark:border-surface-600","h-5","w-5","rounded-full","border"],[1,"text-color","cursor-pointer","text-sm",3,"for"],["type","button","tooltipPosition","top",1,"flex","cursor-pointer","h-14","w-14","items-center","justify-center","rounded-xl","border","transition-all",3,"click","pTooltip"],[1,"h-7","w-7","rounded-md","bg-white"],[1,"flex","flex-wrap","gap-3"],["type","button","tooltipPosition","top",1,"flex","h-14","items-center","justify-center","rounded-xl","border","px-3","transition-all",3,"pTooltip","class"],["type","button","tooltipPosition","top",1,"flex","h-14","items-center","justify-center","rounded-xl","border","px-3","transition-all",3,"click","pTooltip"],[1,"px-3","py-1.5","text-xs","font-semibold","text-white"],[1,"pt-4","flex","justify-end","gap-4"],["label","Annuleren","severity","secondary",3,"onClick","outlined","disabled"],["tooltipPosition","top",3,"pTooltip","tooltipDisabled"],[3,"onClick","label","loading","disabled"],[1,"flex","items-center","justify-between"],["type","button","pTooltip","Terug naar standaard","tooltipPosition","left","aria-label","Terug naar standaard",1,"text-muted-color","hover:text-color"],[1,"flex","items-center","gap-2.5","rounded-lg","border","px-2.5","py-2","transition-colors"],["autocomplete","off","spellcheck","false","placeholder","#07274c",1,"text-color","min-w-0","flex-1","border-0","bg-transparent","p-0","font-mono","text-sm","outline-none",3,"ngModelChange","ngModel","ngModelOptions"],[1,"text-muted-color","shrink-0","text-xs"],[1,"text-muted-color"],["type","button","pTooltip","Terug naar standaard","tooltipPosition","left","aria-label","Terug naar standaard",1,"text-muted-color","hover:text-color",3,"click"],[1,"pi","pi-replay","text-xs"]],template:function(e,i){if(e&1){let a=x();_(0,"p-toast"),o(1,"p-dialog",3),E("visibleChange",function(g){return m(a),k(i.visible,g)||(i.visible=g),u(g)}),h(2,br,11,7,"ng-template",null,0,D),o(4,"div",4)(5,"nav",5),A(6,Cr,3,7,"button",6,Yi),r(),o(8,"div",7),h(9,Ir,36,27)(10,Or,61,96)(11,Kr,11,1),r(),o(12,"div",8)(13,"div",9),_(14,"app-template-rendered-preview",10),r()()(),h(15,Xr,4,7,"ng-template",null,1,D),r(),h(17,ta,11,12,"ng-template",null,2,D)}if(e&2){let a;s(),L(v(10,lr)),T("visible",i.visible),p("modal",!0)("draggable",!1)("closable",!1)("resizable",!1)("dismissableMask",!1),s(5),P(i.navItems),s(3),b((a=i.section())==="colors"?9:a==="fonts"?10:a==="design"?11:-1),s(5),p("themeOverride",i.draft())}},dependencies:[Bt,re,fe,he,Be,H,bt,J,Pi,ve,Pe,zi,Z,Fe,Oi,ui,Wi,Ae,mi,pi,di],encapsulation:2,changeDetection:0})};var ia=()=>[0,1,2];function na(t,n){if(t&1){let e=x();o(0,"div",8)(1,"p-button",13),f("onClick",function(){m(e);let a=d();return u(a.openCreate())}),r()()}}function oa(t,n){t&1&&_(0,"p-skeleton",14)}function ra(t,n){t&1&&(o(0,"div",9),A(1,oa,1,0,"p-skeleton",14,ie),r()),t&2&&(s(),P(v(0,ia)))}function aa(t,n){if(t&1){let e=x();o(0,"div",10),_(1,"i",15),o(2,"div",16),c(3,"De thema's konden niet worden geladen."),r(),o(4,"p-button",17),f("onClick",function(){m(e);let a=d();return u(a.load())}),r()()}t&2&&(s(4),p("outlined",!0))}function la(t,n){t&1&&(o(0,"tr")(1,"th"),c(2,"Naam"),r(),_(3,"th",18),o(4,"th",19),c(5,"Acties"),r()())}function sa(t,n){t&1&&_(0,"p-tag",22),t&2&&p("rounded",!0)}function ca(t,n){if(t&1){let e=x();o(0,"span",24)(1,"p-button",29),f("onClick",function(){m(e);let a=d().$implicit,l=d(2);return u(l.setDefault(a))}),r()()}if(t&2){let e=d().$implicit,i=d(2);s(),p("text",!0)("rounded",!0)("loading",i.settingDefaultId()===e.id)}}function da(t,n){if(t&1){let e=x();o(0,"tr")(1,"td")(2,"div",20),_(3,"span",21),o(4,"span",16),c(5),r()()(),o(6,"td"),h(7,sa,1,1,"p-tag",22),r(),o(8,"td")(9,"div",23),h(10,ca,2,3,"span",24),o(11,"span",25)(12,"p-button",26),f("onClick",function(){let a=m(e).$implicit,l=d(2);return u(l.openEdit(a))}),r()(),o(13,"span",27)(14,"p-button",28),f("onClick",function(a){let l=m(e).$implicit,g=d(2);return u(g.confirmDelete(l,a))}),r()()()()()}if(t&2){let e=n.$implicit,i=d(2);s(3),te("background",e.colorPrimaryAccent),s(2),S(e.name),s(2),b(e.isDefault?7:-1),s(3),b(e.isDefault?-1:10),s(2),p("text",!0)("rounded",!0),s(2),p("text",!0)("rounded",!0)("loading",i.deletingId()===e.id)}}function pa(t,n){if(t&1){let e=x();o(0,"tr")(1,"td",30)(2,"div",31)(3,"div",32),_(4,"i",33),r(),o(5,"div",16),c(6,"Nog geen thema's"),r(),o(7,"p",34),c(8," Maak je eerste thema om rapporten je eigen uitstraling te geven. "),r(),o(9,"p-button",13),f("onClick",function(){m(e);let a=d(2);return u(a.openCreate())}),r()()()()}}function ma(t,n){if(t&1&&(o(0,"p-table",11),h(1,la,6,0,"ng-template",null,0,D)(3,da,15,10,"ng-template",null,1,D)(5,pa,10,0,"ng-template",null,2,D),r()),t&2){let e=d();p("value",e.themes())}}var rt=class t{themesService=y(Ne);messageService=y(F);confirmationService=y(lt);themes=C([]);loading=C(!0);loadFailed=C(!1);editorTheme=C(null);editorVisible=C(!1);deletingId=C(null);settingDefaultId=C(null);constructor(){this.load()}load(){this.loading.set(!0),this.loadFailed.set(!1),this.themesService.getAll().subscribe({next:n=>{this.themes.set(n),this.loading.set(!1)},error:()=>{this.loading.set(!1),this.loadFailed.set(!0)}})}openCreate(){this.editorTheme.set(null),this.editorVisible.set(!0)}openEdit(n){this.editorTheme.set(n),this.editorVisible.set(!0)}onSaved(){this.load()}setDefault(n){if(n.isDefault)return;this.settingDefaultId.set(n.id);let e=I({name:n.name,isDefault:!0},He(n));this.themesService.update(n.id,e).subscribe({next:()=>{this.settingDefaultId.set(null),this.load()},error:()=>{this.settingDefaultId.set(null),this.toastError("Het standaardthema kon niet worden gewijzigd.")}})}confirmDelete(n,e){this.confirmationService.confirm({target:e.currentTarget,header:"Thema verwijderen",message:`"${n.name}" wordt verwijderd. Rapporten die er al mee zijn gemaakt, behouden hun opmaak.`,icon:"pi pi-exclamation-triangle text-sm text-muted-color",closable:!1,closeOnEscape:!0,acceptButtonProps:{label:"Verwijderen",severity:"danger"},rejectButtonProps:{label:"Annuleren",severity:"secondary"},accept:()=>this.deleteTheme(n)})}deleteTheme(n){this.deletingId.set(n.id),this.themesService.delete(n.id).subscribe({next:()=>{this.deletingId.set(null),this.themes.update(e=>e.filter(i=>
138i.id!==n.id))},error:()=>{this.deletingId.set(null),this.toastError(`"${n.name}" kon niet worden verwijderd.`)}})}toastError(n){this.messageService.add({severity:"error",summary:"Fout",detail:n,life:4e3,styleClass:"p-no-icon"})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-report-themes-overview"]],features:[U([F,lt])],decls:14,vars:4,consts:[["header",""],["body",""],["emptymessage",""],[1,"flex","flex-col","gap-4","lg:flex-row"],[1,"lg:max-w-[320px]","w-full"],[1,"text-color","font-medium","leading-normal"],[1,"text-muted-color","font-normal","leading-normal"],["styleClass","secondary",1,"flex-1","max-w-[800px]"],[1,"mb-4","flex","justify-end"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col","items-center","gap-4","py-12","text-center"],["styleClass","p-datatable-sm",3,"value"],[3,"visibleChange","saved","visible","theme"],["label","Nieuw thema","icon","pi pi-plus","size","small",3,"onClick"],["height","3rem","borderRadius","8px"],[1,"pi","pi-exclamation-triangle","text-muted-color","text-2xl"],[1,"text-color","font-medium"],["label","Opnieuw proberen","icon","pi pi-refresh","severity","secondary",3,"onClick","outlined"],[1,"w-32"],[1,"w-40","text-right"],[1,"flex","items-center","gap-3"],[1,"border-surface-200","dark:border-surface-700","inline-block","h-6","w-6","shrink-0","rounded-full","border"],["value","Standaard","severity","success","styleClass","p-tag-small",3,"rounded"],[1,"flex","items-center","justify-end","gap-1"],["pTooltip","Als standaard instellen","tooltipPosition","top"],["pTooltip","Bewerken","tooltipPosition","top"],["icon","pi pi-pencil","severity","secondary","size","small","ariaLabel","Bewerken",3,"onClick","text","rounded"],["pTooltip","Verwijderen","tooltipPosition","top"],["icon","pi pi-trash","severity","danger","size","small","ariaLabel","Verwijderen",3,"onClick","text","rounded","loading"],["icon","pi pi-star","severity","secondary","size","small","ariaLabel","Als standaard instellen",3,"onClick","text","rounded","loading"],["colspan","3",1,"border-none!"],[1,"flex","flex-col","items-center","gap-3","py-10","text-center"],[1,"bg-surface-100","dark:bg-surface-800","flex","h-12","w-12","items-center","justify-center","rounded-full"],[1,"pi","pi-palette","text-muted-color","text-lg"],[1,"text-muted-color","max-w-sm","text-sm","mb-4"]],template:function(e,i){if(e&1&&(_(0,"p-toast")(1,"p-confirmdialog"),o(2,"div",3)(3,"p-card",4)(4,"div",5),c(5,"Thema's"),r(),o(6,"div",6),c(7," De opmaak waarmee rapporten worden gerenderd: kleuren, typografie, logo en de stijl van blokken en knoppen. Kies bij het genereren welk thema je gebruikt. "),r()(),o(8,"p-card",7),h(9,na,2,0,"div",8)(10,ra,3,1,"div",9)(11,aa,5,1,"div",10)(12,ma,7,1,"p-table",11),r()(),o(13,"app-theme-editor-dialog",12),E("visibleChange",function(l){return k(i.editorVisible,l)||(i.editorVisible=l),l}),f("saved",function(){return i.onSaved()}),r()),e&2){let a;s(9),b((a=i.themes())!=null&&a.length?9:-1),s(),b(i.loading()?10:i.loadFailed()?11:12),s(3),T("visible",i.editorVisible),p("theme",i.editorTheme())}},dependencies:[H,$,qi,Ce,We,qe,Ie,Z,Fe,ot],encapsulation:2,changeDetection:0})};var hd=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"document-archive",canActivate:[Kt],data:{roles:["read:documents"]},loadComponent:()=>import("./chunk-RHYURUSE.js").then(t=>t.DocumentArchiveComponent)},{path:"",component:Ge,children:[{path:"profile",component:$e},{path:"security",component:it},{path:"team",component:Je},{path:"notifications",component:Ke},{path:"organization",component:Bi,canActivate:[Zt,Yt]},{path:"themes",component:rt},{path:"billing",component:Qe}]}];export{hd as default};
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.