1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2817],{46063:(e,t,n)=>{n.d(t,{I:()=>a});var r=n(37876),s=n(46817),i=n(90486);let a=({title:e,items:t,id:n})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.DZ,{tag:"h3",children:e}),(0,r.jsx)(s.g,{items:t,id:n,accessorKey:"value",accessorLabel:"label",renderValue:({value:e})=>(0,r.jsx)(i.A,{body:e??""})})]})},51019:(e,t,n)=>{n.d(t,{B:()=>d});var r=n(89099),s=n(14232),i=n(25344),a=n(37969),o=n(71661),l=n(99365);function d(e,t){let n=(0,i.Yl)(),{bookingTexts:d,cancellationTexts:c}=(0,o.Q)(),{data:u,isLoading:m,isFetching:x,isError:b}=(0,l.KFY)({pathParams:{identifier:e}},{enabled:!!e}),[g,p]=(0,s.useState)(),{mutate:v,isSuccess:T,isPending:h,isError:E}=(0,l.Kjx)({onError:e=>{switch((0,a.j)(e)){case a.F.SystemErrorJobnetDfdg:p(c.deadlineExceededText);break;case a.F.BookingSystemUnavailable:p(c.systemUnavailableText);break;default:p(c.errorDescription)}}}),{mutate:j,isPending:f}=(0,l.O5J)({onSuccess:()=>{n("BookingConfirmed")},onError:e=>{switch((0,a.j)(e)){case a.F.SystemErrorJobnetDfdg:case a.F.MeetingNoLongerAvailable:case a.F.UnknownMeetingOffer:case a.F.UnknownInvitation:p(c.confirmExpiredText);break;case a.F.BookingSystemUnavailable:p(c.systemUnavailableText);break;default:p(c.errorDescription)}}}),k=(0,r.useRouter)();return{booking:u,bookingTexts:d,cancellationTexts:c,confirmBooking:t=>{e&&!f&&(p(void 0),j({pathParams:{bookingIdentifier:e}},{onSuccess:t?.onSuccess}))},isConfirmBookingLoading:f,isLoading:m,isFetching:x,isError:b,isSuccess:T,isCancelling:h,isCancelError:E,actionErrorMessage:g,confirmCancel:()=>{e&&!h&&(p(void 0),v({body:{bookingIdentifier:e}}))},handleEditButtonClicked:async()=>{await t();let n=k.asPath.split("?")[0];await k.push(`${n}?taskType=BookMeeting&bookingType=RescheduleBooking&bookingIdentifier=${e}`,void 0,{shallow:!0})}}}},61438:(e,t,n)=>{n.d(t,{L:()=>m,V:()=>x});var r=n(37876),s=n(46817),i=n(67768),a=n(61650),o=n(86242),l=n(51019),d=n(84507),c=n(87455),u=n(99365);let m=({taskId:e,onClose:t})=>{let{bookingTexts:n,booking:s,cancellationTexts:m,isLoading:b,isFetching:g,isCancelling:p,confirmCancel:v,confirmBooking:T,isConfirmBookingLoading:h,handleEditButtonClicked:E,isSuccess:j}=(0,l.B)(e,t),f=(0,i.jE)(),{invalidateCalendarQueries:k}=(0,d.l)(),{data:y}=(0,u.KD7)({queryParams:{isUnemploymentFundBooking:!1}});if(b||g)return(0,r.jsx)("div",{className:"spinner"});if(!s)return(0,r.jsx)(x,{notFoundText:n.bookingNotFoundMarkup});let{canBeCancelled:B,canBeRescheduled:A}=s,C=(0,c.L)(s,n);return j?(0,r.jsx)(a.N,{cancellationTexts:m,bookingProperties:C,onClose:t}):(0,r.jsx)(o.f,{bookingTexts:n,bookingProperties:C,rightsAndDutiesLabel:n.rightsAndDuties?n.rightsAndDuties:"Ret og Pligt overskrift mangler",rightsAndDutiesText:y?y.text:"Ret og Pligt tekst mangler",canBeCancelled:B,canBeRescheduled:A,isCancelling:p,onClose:t,onConfirmCancel:v,onEditClick:()=>void E(),title:s.meetingPurpose,canConfirm:!s.isConfirmedByCitizen,onConfirm:()=>{T({onSuccess:()=>{f.invalidateQueries({queryKey:["YourTasks"]}),f.invalidateQueries({queryKey:["JobnetBooking",e]}),k(),t()}})},isConfirmLoading:h})},x=({notFoundText:e})=>(0,r.jsx)(s.sD,{body:e})},61650:(e,t,n)=>{n.d(t,{N:()=>a});var r=n(37876),s=n(46817);n(14232);var i=n(71258);let a=({cancellationTexts:e,bookingProperties:t,onClose:n})=>{let a={title:"Information",items:t.map(e=>({label:e.label,value:e.text})),id:"meeting"};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.T,{alertTitle:e.successTitle,alertText:e.successText,alertVersion:s.q4.Success,header:e.modalTitle,descriptionRichText:e.modalDescription,receiptSection:a,buttonLabel:e.cancelButton}),(0,r.jsxs)(s.$n,{buttonType:s.VQ.Primary,onClick:n,children:[(0,r.jsx)(s.In,{icon:"arrow-forward"}),e.cancelButton]})]})}},71258:(e,t,n)=>{n.d(t,{T:()=>d});var r=n(37876),s=n(46817),i=n(48230),a=n.n(i),o=n(90486),l=n(46063);let d=e=>{let{alertTitle:t,alertText:n,alertVersion:i,header:d,descriptionRichText:c,receiptSection:u,buttonLinkUrl:m,buttonLabel:x,headingId:b}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Fc,{title:t,text:n,version:i}),(0,r.jsx)(s.DZ,{tag:"h3",id:b,children:d}),(0,r.jsx)(o.A,{body:c}),(0,r.jsx)(l.I,{...u}),(0,r.jsx)(s.gE,{children:m&&(0,r.jsx)(a(),{href:m.href,className:"button button-primary",children:x})})]})}},71661:(e,t,n)=>{n.d(t,{Q:()=>i});var r=n(12433),s=n(7634);let i=()=>{let{content:e}=(0,r.H)(s.b.CalendarAndMeetings);return{bookingTexts:{purpose:e?.calendarAndEventsBookingPurposeLabel,caseworker:e?.calendarAndEventsBookingCaseworkerLabel,meetingType:e?.calendarAndEventsBookingFormTypeLabel,startTime:e?.calendarAndEventsBookingStartTimeLabel,meetingDescription:e?.calendarAndEventsBookingMeetingDescription,editButton:e?.calendarAndEventsBookingEditButtonText,rescheduleButton:e?.rescheduleMeetingButtonText,cancelButton:e?.calendarAndEventsBookingCancelButtonText,confirmCancelButton:e?.calendarAndEventsBookingConfirmCancelButtonText,closeButton:e?.calendarAndEventsBookingCloseButtonText,confirmedDate:e?.calendarAndEventsConfirmedBookingDate,helperText:e?.calendarAndEventsHelperText,linkButtonText:e?.calendarAndEventsLinkButtonText,confirmButtonText:e?.calendarAndEventsConfirmButtonText,rightsAndDuties:e?.calendarAndEventsRigthsAndDutiesLabel},calendarTexts:{description:e?.calendarAndEventsDescription?.markup,descriptionNoSelfService:e?.calendarAndEventsDescriptionNoSelfService?.markup,description2:e?.calendarAndEventsDescription2?.markup,title:e?.calendarAndEventsTitle,bookNewMeetingButton:e?.calendarAndEventsBookNewMeetingButtonText},joblogTexts:{created:e?.calendarAndEventsJoblogCreated,title:e?.calendarAndEventsJoblogTitle,place:e?.calendarAndEventsJoblogPlace,adrress:e?.calendarAndEventsJoblogAddress,notes:e?.calendarAndEventsJoblogNotes,dialogTitle:e?.calendarAndEventsJoblogDialogTitle},deadlineTexts:{label:e?.calendarAndEventsDeadlineLabel,information:e?.calendarAndEventsDeadlineDescription,bookMeetingButton:e?.calendarAndEventsDeadlineCta},cancellationTexts:{modalTitle:e?.calendarAndEventsBookingCancelModalTitle,modalDescription:e?.calendarAndEventsBookingCancelModalText,re
1ceiptTitle:e?.calendarAndEventsBookingReceiptTitle,successTitle:e?.calendarAndEventsBookingCancelSuccessTitle,successText:e?.calendarAndEventsBookingCancelSuccessText,cancelButton:e?.calendarAndEventsBookingCancelSuccessButtonText,errorTitle:e?.calendarAndEventsBookingCancelErrorTitle,errorDescription:e?.calendarAndEventsBookingCancelErrorText,deadlineExceededText:e?.calendarAndEventsBookingCancelDeadlineExceededText,systemUnavailableText:e?.calendarAndEventsBookingCancelSystemUnavailableText,confirmExpiredText:e?.calendarAndEventsBookingConfirmExpiredText},interviewTexts:{startTime:e?.calendarAndEventsInterviewStartTimeLabel,interviewForm:e?.calendarAndEventsInterviewInterviewFormLabel,caseworker:e?.calendarAndEventsInterviewCaseworkerLabel,agreementDescription:e?.calendarAndEventsInterviewAgreementDescriptionLabel},illnessTexts:{illnessDescription:e?.calendarAndEventsIllnessDescription,illnessDatesLabelText:e?.calendarAndEventsIllnessDatesLabel,isEmployedLabelText:e?.calendarAndEventsIllnessIsEmployedLabel?.markup,employerLabelText:e?.calendarAndEventsIllnessEmployerLabel,noEmployerText:e?.calendarAndEventsIllnessNoEmployer,infoCurrentIllness:e?.calendarAndEventsIllnessInfoCurrentIllness?.markup},vacationTexts:{vacationTitle:e?.calendarAndEventsVacationTitle,vacationStartLabel:e?.calendarAndEventsVacationFirstDayLabel,vacationEndLabel:e?.vacationAndEventsVacationLastDayLabel,vacationCaseWorkerCommentLabel:e?.calendarAndEventsVacationCaseWorkerCommentLabel}}}},72334:(e,t,n)=>{n.d(t,{p:()=>Z});var r=n(37876),s=n(49458);let i=(0,n(73022).v)()((e,t)=>({actions:{reset:()=>{e({errorPayload:null,showErrorForm:!1,isSuccess:!1})},setErrorPayload:t=>{e({errorPayload:t,showErrorForm:!!t})},setShowErrorForm:n=>{e({showErrorForm:n,errorPayload:n?t().errorPayload:null})},setIsSuccess:t=>{e({isSuccess:t})}},errorPayload:null,showErrorForm:!1,isSuccess:!1}));var a=n(61438),o=n(63886),l=n(14e3),d=n(46817),c=n(88992),u=n(90486),m=n(12433),x=n(11280),b=n(7634);let g=({onSubmit:e,isLoading:t,isSuccess:n,error:s,description:a,onClose:o,title:l,label:c})=>{let{content:x}=(0,m.H)(b.b.SharedComponents),g=i(e=>e.showErrorForm),p=i(e=>e.actions.setShowErrorForm);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(r.Fragment,{children:n&&(0,r.jsx)(d.Fc,{title:x?.errorAlertTitle,version:d.q4.Success,text:x?.errorAlertBodyText})}),(0,r.jsx)(d.DZ,{tag:"h2",children:l}),(0,r.jsx)(u.A,{body:a,className:"mb-6"}),g&&!n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{onSubmit:e,setShowForm:p,isLoading:t,label:c}),s&&(0,r.jsx)(d.Fc,{version:d.q4.Error,text:JSON.stringify(s,null,2)})]}):null,n&&(0,r.jsxs)(d.$n,{buttonType:d.VQ.Primary,onClick:o,children:[(0,r.jsx)(d.In,{icon:"arrow-forward"}),x?.terminate]})]})},p=({text:e})=>{let{getValues:t}=(0,c.xW)(),{errorForm:{showFormButtonLabel:n}}=(0,x.Z)(),s=i(e=>e.actions.setErrorPayload);return i(e=>e.isSuccess)?null:(0,r.jsx)(d.gE,{children:(0,r.jsx)(d.$n,{buttonType:d.VQ.Link,onClick:e=>{e.preventDefault(),s(t())},children:e??n})})},v=({onSubmit:e,setShowForm:t,isLoading:n,label:s})=>{let{content:i}=(0,m.H)(b.b.SharedComponents),a=(0,c.mN)();return(0,r.jsx)("div",{className:"my-6",children:(0,r.jsx)(c.Op,{...a,children:(0,r.jsxs)("form",{onSubmit:a.handleSubmit(e),children:[(0,r.jsx)(d.fs,{name:"description",label:s,placeholder:i?.errorFormPlaceholder,showCharactersLeft:!0,rules:{required:i?.errorFormValidationText,maxLength:{message:"",value:500}},width:"full",rows:4}),(0,r.jsx)(d.gE,{children:(0,r.jsxs)(d.e2,{children:[(0,r.jsx)(d.$n,{type:"button",buttonType:d.VQ.Tertiary,onClick:e=>{e.preventDefault(),t(!1)},children:i?.backButtonText}),(0,r.jsxs)(d.$n,{type:"submit",buttonType:d.VQ.Primary,disabled:n,children:[(0,r.jsx)(d.In,{icon:"arrow-forward"}),i?.sendMessageButtonText]})]})})]})})})};var T=n(99365);let h=({onClose:e})=>{let t=(0,l.useSearchParams)().get("bookingIdentifier"),n=i(e=>e.errorPayload),s=i(e=>e.showErrorForm),a=i(e=>e.actions.setIsSuccess),{isPending:o,isSuccess:d,mutate:c,error:u}=(0,T.DeX)({onSuccess:()=>{a(!0)}}),{errorForm:{description:m,title:b,textareaLabel:p}}=(0,x.Z)();return s?(0,r.jsx)(g,{onSubmit:e=>{c({body:{bookingIdentifier:t,...e,...n}})},isLoading:o,isSuccess:d,error:u,description:m,title:b,onClose:e,label:p}):null};var E=n(490),j=n(72901),f=n(6602),k=n(88898),y=n(14232),B=n(37969),A=n(41828),C=n(25223);let I=({renderProgress:e,renderButtons:t,resources:n,noOptionsResources:i})=>{let a=(0,s.s)(),{query:{data:o,isError:l,isLoading:x,error:g}}=(0,A.b)(),{interviewOptions:p}=o??{},{watch:v,setValue:T}=(0,c.xW)(),h=v(E.e.SELECTED_INTERVIEW_OPTION),{content:j}=(0,m.H)(b.b.SharedComponents),f=p?.find(e=>
1e.identifier==h),k=f?.interviewFormTypes.filter(e=>e.selectable).map(e=>e.name).join(" / ");return((0,y.useEffect)(()=>{let e=v((e,{name:t})=>{t===E.e.SELECTED_INTERVIEW_OPTION&&(T(E.e.SELECTED_CASE_WORKER,void 0),T(E.e.SELECTED_INTERVIEW_FORM,void 0),T(E.e.SELECTED_TIME_SLOT,void 0))});return()=>{e.unsubscribe()}},[T,v]),x)?(0,r.jsx)("div",{className:"spinner"}):l?(0,r.jsxs)(r.Fragment,{children:[e?.(),(0,r.jsx)(d.Fc,{title:n?.errorGettingMeetingOffersTitle,text:(0,B.j)(g)===B.F.BookingSystemUnavailable?n?.bookingSystemUnavailableText:n?.errorGettingMeetingOffersText,version:d.q4.Error})]}):p?.length===0?(0,r.jsx)(C._,{resources:i}):(0,r.jsxs)(r.Fragment,{children:[e?.(),n?.title&&(0,r.jsx)(d.DZ,{tag:"h2",id:a,tabIndex:-1,children:n.title}),n?.description&&(0,r.jsx)(u.A,{body:n.description}),p?.length!==0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.z6,{rules:{required:j?.chooseAtLeastOneValidationMessage},label:n?.meetingOfferLabel,name:E.e.SELECTED_INTERVIEW_OPTION,options:p?.map(e=>({title:e.title,value:e.identifier}))}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsxs)(d.EY,{as:"strong",children:[n?.meetingDescriptionTitle,": "]}),(0,r.jsx)(d.EY,{as:"span",children:f&&(0,r.jsx)(u.A,{body:f.meetingDescription??""})})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsxs)(d.EY,{as:"strong",children:[n?.interviewFormTypeTitle,": "]}),(0,r.jsx)(d.EY,{as:"span",children:k})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsxs)(d.EY,{as:"strong",children:[n?.interviewDurationTitle,": "]}),(0,r.jsx)(d.EY,{as:"span",children:f&&`${f.meetingDuration} minutter`})]})]}),t?.()]})};var D=n(67768),S=n(48230),w=n.n(S);let F=({text:e,render:t})=>{let n=e?.split(/(\{[^}]+\})/);return n?.map(e=>{let n=/^\{(.+)\}$/.exec(e);if(!n)return(0,r.jsx)(y.Fragment,{children:e},e);let s=n[1].trim();if(s.startsWith("[")&&s.endsWith("]")){let e=s.slice(1,-1).split(",").map(e=>e.trim());return(0,r.jsx)(y.Fragment,{children:t?.(e)},s)}return(0,r.jsx)(y.Fragment,{children:t?.(s)},s)})};var L=n(25344),N=n(60394),P=n(84507),V=n(76217),O=n(90311);let M=({renderProgress:e,goForward:t,canEdit:n,resources:i,bookingIdentifier:a})=>{let o=(0,s.s)(),{getValues:m,formState:x}=(0,c.xW)(),b=m(),{query:{data:g}}=(0,A.b)(),v=(0,L.Yl)(),{invalidateCalendarQueries:h}=(0,P.l)(),E=(0,D.jE)(),[j,f]=(0,y.useState)(),k=(0,l.useSearchParams)(),{mutate:C,isPending:I,isError:S}=(0,T.JIz)({onSuccess:()=>{v("MeetingBooked"),h(),t?.()},onError:e=>{let t=e?.payload?.errorInformation;switch(t&&"errorCode"in t?t.errorCode:void 0){case B.F.BookingSystemUnavailable:f(i?.bookingSystemUnavailableText);break;case B.F.BookingSystemError:f(i?.bookingErrorText);break;case B.F.SystemErrorJobnetDfdg:f(i?.meetingExpiredText);break;case B.F.MeetingNoLongerAvailable:{E.invalidateQueries({queryKey:["JobnetBooking"]});let e=new URLSearchParams(k);e.set("step",Math.min(...Object.values(n)).toString());let t={pathname:globalThis.location.pathname,query:Object.fromEntries(e)};f((0,r.jsx)(F,{text:i?.timeslotNotAvalible,render:e=>(0,r.jsx)(w(),{href:t,children:e})}));break}case B.F.AlreadyHasJobsamtale:f(i?.alreadyHasJobsamtaleText);break;default:f(i?.errorMessageText)}}}),{selectedInterviewOption:M,caseWorker:R,interviewForm:_,humanFriendlyMeetingStartTime:q}=(0,O.Z)(b,g?.interviewOptions);return M&&(b.interviewOptionIdentifier=M.identifier),(0,r.jsxs)(r.Fragment,{children:[e?.(),(0,r.jsx)(d.DZ,{tag:"h2",id:o,tabIndex:-1,children:i?.title}),(0,r.jsx)(u.A,{body:i?.description,className:"mb-6"}),(0,r.jsx)(V.m,{title:i?.purposeSectionTitle??"",id:"formaal",items:[{label:M?.title}],step:n.formaal}),(0,r.jsx)(V.m,{title:i?.caseWorkerSectionTitle??"",id:"sagsbehandler",items:[{label:R?.name??i?.noSelectedCaseWorkerText}],step:n.sagsbehandler}),(0,r.jsx)(V.m,{title:i?.interviewSectionTitle??"",id:"moedeform",items:[{label:_?.name+" "+q}],step:n.moedeform}),j&&(0,r.jsx)(d.Fc,{title:i?.errorMessageTitle,text:j,version:d.q4.Error}),(0,r.jsx)(d.gE,{children:(0,r.jsxs)(d.$n,{onClick:e=>{e.preventDefault();let t=(0,N.z)(b,M);t&&C({body:{...t,interviewFormTypeId:t.interviewFormTypeId??null,bookingIdentifier:a}})},disabled:!x.isValid||I,isLoading:I,children:[!I&&"â"," ",i?.submitButtonText]})}),S&&(0,r.jsx)(p,{})]})};var R=n(71258);let _=({resources:e})=>{let t=(0,s.s)(),{bookingCalendarUrl:n,bookingHeader:i,bookingNoPreference:a,bookingSuccessText:o,bookingSuccessTitle:l,bookingTime:u,caseworkerTitle:m,interviewFormTypeTitle:x,purposeTitle:b,receiptText:g,receiptButtonLabel:p}=e,{getValues:v}=(0,c.xW)(),T=v(),{query:{data:h}}=(0,A.b)(),{selectedInterviewOption:E,caseWorker:j,interviewForm:f,humanFriendlyMeetingStartTime:k}=(0,O.Z)(T,h?.interviewOptions),y={title:"Information",id:"compact",items:[{label:b,value:E?.title},{label:m,value:j?.name??a}
1,{label:x,value:f?.name},{label:u,value:k}]};return(0,r.jsx)(R.T,{alertTitle:l,alertText:o,alertVersion:d.q4.Success,header:i,descriptionRichText:g,receiptSection:y,buttonLinkUrl:n,buttonLabel:p,headingId:t})},q=()=>{let{bookingReceiptResources:e,rightsAndDutiesResources:t,bookingCaseWorkerResources:n,bookingPurposeResources:s,bookingTimeSlotResources:i,bookingSummaryResources:a,bookingNoOptionsResources:o}=(0,x.Z)();return(0,r.jsxs)(d.iV,{defaultValues:{[E.e.RIGHT_AND_DUTIES]:!1},children:[(0,r.jsx)(I,{resources:{...s,description:s.descriptionForCitizenRequest},noOptionsResources:o}),(0,r.jsx)(f.B,{resources:n,noOptionsResources:o}),(0,r.jsx)(j.a,{resources:{...i,description:i.descriptionForCitizenRequest}}),(0,r.jsx)(k.N,{resources:t}),(0,r.jsx)(M,{canEdit:{formaal:1,sagsbehandler:2,moedeform:3},resources:{...a,submitButtonText:a.bookMeetingButtonText}},4),(0,r.jsx)(_,{resources:e})]})},Q=()=>{let{rightsAndDutiesResources:e,bookingCaseWorkerResources:t,bookingTimeSlotResources:n,bookingSummaryResources:s,bookingReceiptResources:i,bookingNoOptionsResources:a}=(0,x.Z)(),{query:{data:o}}=(0,A.b)(),{formattedInterviewDeadlineDate:l}=o??{},c=n.descriptionForInterviewDeadline?.replace("{0}",l??"");return(0,r.jsxs)(d.iV,{defaultValues:{[E.e.RIGHT_AND_DUTIES]:!1},children:[(0,r.jsx)(f.B,{resources:t,noOptionsResources:a,isImmediateBooking:!0}),(0,r.jsx)(j.a,{resources:{...n,description:c},isImmediateBooking:!0}),(0,r.jsx)(k.N,{resources:e}),(0,r.jsx)(M,{resources:{...s,submitButtonText:s.bookMeetingButtonText,timeslotNotAvalible:s.timeslotNotAvalibleNoOffer},canEdit:{sagsbehandler:2,moedeform:3}}),(0,r.jsx)(_,{resources:i})]})},U=()=>{let{rightsAndDutiesResources:e,bookingCaseWorkerResources:t,bookingTimeSlotResources:n,bookingSummaryResources:s,bookingReceiptResources:i,bookingPurposeResources:a,bookingNoOptionsResources:o}=(0,x.Z)(),{query:{data:l}}=(0,A.b)(),{formattedInterviewDeadlineDate:c}=l??{},u=a.descriptionForInterviewDeadline?.replace("{0}",c??""),m=n.descriptionForInterviewDeadline?.replace("{0}",c??"");return(0,r.jsxs)(d.iV,{defaultValues:{[E.e.RIGHT_AND_DUTIES]:!1},children:[(0,r.jsx)(I,{resources:{...a,description:u},noOptionsResources:o}),(0,r.jsx)(f.B,{resources:t,noOptionsResources:o}),(0,r.jsx)(j.a,{resources:{...n,description:m}}),(0,r.jsx)(k.N,{resources:e}),(0,r.jsx)(M,{resources:{...s,submitButtonText:s.bookMeetingButtonText},canEdit:{formaal:1,sagsbehandler:2,moedeform:3}}),(0,r.jsx)(_,{resources:i})]})},J=()=>{let{rightsAndDutiesResources:e,bookingCaseWorkerResources:t,bookingTimeSlotResources:n,bookingSummaryResources:s,bookingReceiptResources:i,bookingNoOptionsResources:a}=(0,x.Z)(),o=(0,l.useSearchParams)().get("bookingIdentifier");return(0,r.jsxs)(d.iV,{defaultValues:{[E.e.RIGHT_AND_DUTIES]:!1},children:[(0,r.jsx)(f.B,{resources:t,noOptionsResources:a}),(0,r.jsx)(j.a,{resources:{...n,description:n.descriptionForCitizenRequest}}),(0,r.jsx)(k.N,{resources:e}),(0,r.jsx)(M,{resources:{...s,submitButtonText:s.rescheduleMeetingButtonText,timeslotNotAvalible:s.timeslotNotAvalibleNoOffer},canEdit:{sagsbehandler:1,moedeform:2},bookingIdentifier:o}),(0,r.jsx)(_,{resources:i})]})};var W=n(55294);let $=({onGetFlowDirectivesError:e})=>{let t=(0,c.mN)();return(0,r.jsx)(c.Op,{...t,children:(0,r.jsx)(W.F,{onGetFlowDirectivesError:e})})},Z=()=>{let{closeTask:e,taskType:t,bookingType:n,bookingIdentifier:l}=(0,o.N)(),d=i(e=>e.showErrorForm),c=i(e=>e.actions.reset),u=()=>{e(),setTimeout(()=>{c()},500)};return(0,r.jsxs)(s.A,{hideFooter:!0,show:!!t,onClose:u,fullscreenOnMobile:!0,children:[d&&(0,r.jsx)(h,{onClose:u}),(0,r.jsx)("div",{style:{display:d?"none":"initial"},children:t&&(({taskType:e,bookingType:t,bookingIdentifier:n,closeTask:s})=>{switch(e){case"BookMeeting":if(!t)return null;switch(t){case"CitizenInitiatedBooking":return(0,r.jsx)(q,{});case"ImmediateBooking":return(0,r.jsx)(Q,{});case"InterviewDeadlineBooking":return(0,r.jsx)(U,{});case"RescheduleBooking":return(0,r.jsx)(J,{});default:return null}case"ConfirmMeeting":if(!n)return null;return(0,r.jsx)(a.L,{taskId:n,onClose:()=>{s()}});case"EnrollAndImmediateBooking":return(0,r.jsx)($,{onGetFlowDirectivesError:s});default:return null}})({taskType:t,bookingType:n,bookingIdentifier:l,closeTask:e})})]})}},84507:(e,t,n)=>{n.d(t,{l:()=>i});var r=n(67768),s=n(66909);function i(){let e=(0,r.jE)();
1return{invalidateCalendarQueries:()=>e.invalidateQueries({queryKey:["Calendar"]}),refetchCalendarQueries:()=>e.refetchQueries({queryKey:["Calendar"]}),invalidateByVariables:t=>e.invalidateQueries({queryKey:(0,s.w)({path:"/Calendar",operationId:"calendarGet",variables:t}),exact:!0})}}},86242:(e,t,n)=>{n.d(t,{f:()=>m});var r=n(37876),s=n(46817),i=n(48230),a=n.n(i),o=n(14232),l=n(29720),d=n(90486),c=n(88143),u=n.n(c);let m=({title:e,actionError:t,bookingTexts:n,bookingProperties:i,rightsAndDutiesLabel:c,rightsAndDutiesText:m,canBeCancelled:x,canBeRescheduled:b,isCancelling:g,onEditClick:p,onConfirmCancel:v,onClose:T,canConfirm:h,onConfirm:E,isConfirmLoading:j})=>{let[f,k]=o.useState(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.DZ,{id:"booking-details-heading",tag:"h2",children:e}),(0,r.jsx)(s.g,{ariaLabelledBy:"booking-details-heading",withBorders:!1,accessorKey:"text",accessorLabel:"label",id:"booking-details",items:i,renderValue:({text:e})=>(0,r.jsx)(d.A,{className:u().rte,body:e})}),(0,r.jsx)(s.nD,{className:"mt-7",testId:"timeslot-accordion",headingType:"h3",items:[{title:c,children:(0,r.jsx)(l.oz,{children:m})}]}),t,(0,r.jsxs)(s.fI,{className:"mt-8",children:[(0,r.jsx)(s.fv,{col:10,children:(0,r.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:[(0,r.jsxs)(s.$n,{buttonType:s.VQ.Tertiary,onClick:T,disabled:g,children:[(0,r.jsx)(s.In,{icon:"close"}),n.closeButton]}),f&&(0,r.jsxs)(s.$n,{buttonType:s.VQ.Primary,onClick:v,isLoading:g,children:[!g&&(0,r.jsx)(s.In,{icon:"arrow-forward"}),n.confirmCancelButton]}),x&&!f&&(0,r.jsx)(s.$n,{buttonType:s.VQ.Tertiary,onClick:()=>{k(!0)},children:n.cancelButton}),b&&(0,r.jsxs)(s.$n,{buttonType:s.VQ.Tertiary,onClick:p,disabled:g,children:[(0,r.jsx)(s.In,{icon:"edit"}),n.rescheduleButton]}),h&&(0,r.jsx)(s.$n,{buttonType:s.VQ.Primary,onClick:()=>{E({})},isLoading:j,disabled:g,children:n.confirmButtonText})]})}),(0,r.jsx)(s.fv,{col:12,children:(0,r.jsxs)(s.EY,{className:"mt-2 mb-0",children:[n.helperText,(0,r.jsx)(a(),{href:"/mit-jobnet/dine-planer-og-aftaler/kalender-og-moeder",children:n.linkButtonText})]})})]})]})}},87455:(e,t,n)=>{function r(e){return null==e?"":e}function s(e,t){return[{label:t.purpose,text:r(e.meetingPurpose)},{label:t.caseworker,text:r(e.caseworker)},{label:t.meetingType,text:r(e.interviewFormType)},{label:t.startTime,text:r(e.startTime)},{label:e.contactInfoLabelText??"",text:r(e.richTextContactInfo)},...e.richTextMeetingDescription?[{label:t.meetingDescription,text:`<p class="plain">${e.richTextMeetingDescription}</p>`}]:[],...e.bookingConfirmedTimestamp?[{label:t.confirmedDate,text:r(e.bookingConfirmedTimestamp)}]:[]]}n.d(t,{L:()=>s})},95226:(e,t,n)=>{n.d(t,{I:()=>d});var r=n(37876),s=n(46817),i=n(15039),a=n.n(i),o=n(48230),l=n.n(o);let d=({href:e,label:t,className:n,icon:i})=>{let o=a()("button",{"button-tertiary":!n?.includes("button")},n);return(0,r.jsxs)(l(),{className:o,href:e,shallow:!e,children:[i?(0,r.jsx)(s.In,{icon:i}):null,t]})}}}]);
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.