1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26579],{127:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(90425).A)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},26579:(e,a,s)=>{s.r(a),s.d(a,{default:()=>A});var t=s(95155),l=s(35625),r=s(26708),i=s(48934),c=s(98500),d=s.n(c),n=s(93219),m=s(11919),o=s(48368),h=s(59320);let p=(0,s(90425).A)("images",[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]);var y=s(92564),x=s(91958),u=s(127),k=s(44071),g=s(90629),f=s(86901);let j="#d4a843",v={Activity:n.A,Dumbbell:m.A,FileText:o.A,Flag:h.A,Images:p,MessageCircle:y.A,RefreshCw:x.A,Target:u.A,TrendingUp:k.A,Utensils:g.A};function A({userId:e,size:a,isPreview:s}){let c=(0,l.jE)(),{data:d,isLoading:n}=(0,r.I)({queryKey:["current-mission",e],queryFn:()=>fetch("/api/missions/current").then(e=>e.json()),staleTime:3e4,enabled:!s}),m=(0,i.n)({mutationFn:async()=>{let e=await fetch("/api/missions/dismiss",{method:"POST"});if(!e.ok)throw Error("dismiss_failed");return e.json()},onSuccess:()=>c.invalidateQueries({queryKey:["current-mission"]})}),o=d?.mission??null;return(0,t.jsxs)("div",{className:"forge-plate p-5",style:{minHeight:"small"===a?140:"large"===a?260:200,opacity:s?.7:1},"data-testid":"day1-missions-widget",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3.5",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-sm shrink-0",style:{background:j}}),(0,t.jsx)("span",{className:"text-[10px] uppercase font-medium shrink-0",style:{letterSpacing:"1.5px",color:j},children:"Missions"})]}),n||s?(0,t.jsx)("div",{className:"animate-pulse h-24 rounded-lg",style:{background:"rgba(255,255,255,0.03)"}}):o?(0,t.jsx)(b,{current:o,onDismiss:()=>m.mutate(),dismissing:m.isPending}):(0,t.jsxs)("div",{className:"flex flex-col items-center text-center py-4",children:[(0,t.jsx)(f.A,{className:"w-5 h-5 mb-2",style:{color:j}}),(0,t.jsx)("p",{className:"text-sm font-medium",style:{color:"var(--color-text-primary, #e5e5e5)"},children:"Klaar met alle missions"}),(0,t.jsx)("p",{className:"text-[11px] mt-1",style:{color:"#8a8580"},children:"Je kent Formari nu goed. Blijf loggen."})]})]})}function b({current:e,onDismiss:a,dismissing:s}){let{mission:l,progress:r,isReengagement:i}=e,c=l.metadata?.icon?v[l.metadata.icon]??f.A:f.A;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,t.jsx)(c,{className:"w-5 h-5 shrink-0 mt-0.5",style:{color:j}}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h3",{className:"text-sm font-medium",style:{color:"var(--color-text-primary, #e5e5e5)"},"data-testid":"mission-title",children:l.template}),l.metadata?.description&&(0,t.jsx)("p",{className:"text-[12px] mt-1",style:{color:"#8a8580"},children:l.metadata.description})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[l.metadata?.cta&&(0,t.jsxs)(d(),{href:l.metadata.cta.route,className:"px-3 py-1.5 rounded-md text-[12px] font-medium",style:{background:j,color:"#0a0a0f"},"data-testid":"mission-cta",children:[l.metadata.cta.label," â"]}),!i&&(0,t.jsx)("button",{type:"button",onClick:a,disabled:s,className:"px-3 py-1.5 rounded-md text-[12px]",style:{background:"transparent",color:"#8a8580",border:"1px solid rgba(255,255,255,0.08)"},"data-testid":"mission-dismiss",children:"Niet nu"})]}),r&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex gap-1",children:Array.from({length:r.total}).map((e,a)=>(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:a<r.current?j:"rgba(255,255,255,0.1)"}},a))}),(0,t.jsxs)("span",{className:"text-[10px]",style:{color:"#8a8580"},children:[r.current," van ",r.total]})]})]})}},48368:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(90425).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},59320:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(90425).A)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-
15-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]])},86901:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(90425).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},90629:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(90425).A)("utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]])},91958:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(90425).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},92564:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(90425).A)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]])}}]);
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.