1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8510],{13228:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mit-jobnet/tasks",function(){return t(45247)}])},45247:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>l});var n=t(37876),i=t(59444),r=t(67399);function l(){return(0,n.jsx)(r.r,{title:"Opgaver",children:(0,n.jsx)(i.Z,{})})}},59444:(e,s,t)=>{"use strict";t.d(s,{Z:()=>N});var n=t(37876),i=t(46817),r=t(77328),l=t.n(r),a=t(90486),c=t(67768),o=t(15039),d=t.n(o),u=t(14e3),k=t(14232),m=t(480),x=t(95226),h=t(77502),j=t.n(h);let T=({task:e})=>{let s=(0,u.usePathname)(),t=(0,c.jE)(),r=d()({"is-color-warning":e.isUrgent,"is-semibold":e.isUrgent}),l=e.callToAction?.url??"",a=["BookMeeting","ImmediateBooking","EnrollAndImmediateBooking"].includes(e.taskType),o="ConfirmMeeting"===e.taskType;if(a){let t=e.bookingType;l={pathname:s,query:{taskType:e.taskType,bookingType:t}}}o&&(l={pathname:s,query:{taskType:e.taskType,bookingIdentifier:e.bookingIdentifier}});let[h,T]=(0,k.useState)(!1);return(0,n.jsx)(i.Zp,{className:`flex-column ${j().taskCardStretch}`,children:(0,n.jsx)(i.Wu,{children:(0,n.jsxs)(i.fI,{align:"center",className:"w-percent-100 gap-xs-medium",children:[(0,n.jsx)(i.fv,{col:12,md:4,children:(0,n.jsx)(i.EY,{className:"is-semibold",children:e.title})}),(0,n.jsx)(i.fv,{col:12,md:5,children:(0,n.jsx)(i.EY,{className:r,children:e.description})}),(0,n.jsx)(i.fv,{col:12,md:3,className:"d-flex justify-content-md-end",children:e.callToAction&&("ScreeningRehab"===e.taskType?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.$n,{onClick:()=>{T(!0)},buttonType:i.VQ.Tertiary,children:e.callToAction.text}),(0,n.jsx)(m.n,{show:h,dismiss:()=>{t.refetchQueries({queryKey:["YourTasks"]}),T(!1)}})]}):(0,n.jsx)(x.I,{href:l,label:e.callToAction.text}))})]})})})},p=e=>{let{tasks:s}=e;return s?(0,n.jsx)(i.BJ,{direction:"column",gap:"large",className:"mb-5",children:s.map(e=>{let s;return(0,n.jsx)(T,{task:e},(s="ConfirmMeeting"===e.taskType?e.bookingIdentifier:null,[e.taskType,e.title,e.callToAction?.url,s].filter(Boolean).join("-")))})}):null};var f=t(12433),g=t(63886),y=t(7634),b=t(90767),_=t(72334);let N=()=>{let{content:e}=(0,f.H)(y.b.Tasks),{data:s,isLoading:t}=(0,g.N)(),r=(0,b.c)(e?.yourTasksTitle);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{children:(0,n.jsx)("title",{children:r})}),(0,n.jsx)(i.DZ,{tag:"h1",children:e?.yourTasksTitle}),(0,n.jsx)(a.A,{body:e?.yourTasksDescription,className:"mb-6"}),t?(0,n.jsx)(i.EA,{variant:"card"}):(0,n.jsx)(p,{tasks:s}),(0,n.jsx)(_.p,{})]})}},77502:e=>{e.exports={taskCardStretch:"TaskCard_taskCardStretch__kE2Z8"}}},e=>{e.O(0,[9720,5151,7628,958,5294,2817,480,636,6593,8792],()=>e(e.s=13228)),_N_E=e.O()}]);
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.