1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2ada7cd1-8121-5e2e-a88a-8391e53abc04")}catch(e){}}(); 3import{a as N,b as u,c as f}from"/build/_shared/chunk-ICHJ7QVB.js";import{a as b}from"/build/_shared/chunk-JHTLH4FL.js";import{a as c}from"/build/_shared/chunk-GYCXQAQI.js";import{a as d}from"/build/_shared/chunk-ERNBERLM.js";import{a as S}from"/build/_shared/chunk-54F6M2JV.js";import{c as O}from"/build/_shared/chunk-V7N4KQ7D.js";import{d as i}from"/build/_shared/chunk-MZ7LOFLQ.js";import{p as g}from"/build/_shared/chunk-UD7E76NL.js";import{a as h}from"/build/_shared/chunk-33YEX55G.js";import{a as y}from"/build/_shared/chunk-6VLJMAZL.js";import{e as p}from"/build/_shared/chunk-OFX6S7NS.js";var m=p(y());var e=p(h()),v=({onboarding:a})=>{let{t:s}=i(),[t,n]=(0,m.useState)(u.find(l=>l.label==a?.profession));return(0,e.jsx)(b,{options:u,selected:t,setSelected:n,name:"profession",placeholder:s("onboarding.profession.placeholder")})},x=({locale:a,onboarding:s})=>{let{t}=i(),n=a==="de"?f.de:f.en,[l,o]=(0,m.useState)(n.find(r=>r.label==s?.school));return(0,e.jsx)(b,{options:n,selected:l,setSelected:o,name:"school",placeholder:t("onboarding.school.placeholder")})},k=({onboarding:a,columns:s=4})=>{let{t}=i(),[n,l]=(0,m.useState)(N.map(o=>({label:o,checked:a?.subjects?.includes(o)??!1})));return(0,e.jsxs)("div",{className:`pt-2 grid grid-cols-2 sm:grid-cols-${s} gap-y-3 gap-x-3`,children:[n.map(o=>(0,e.jsx)("div",{onClick:()=>{l([...n].map(r=>({...r,checked:r.label==o.label?!r.checked:r.checked})))},className:`${o.checked?"border-indigo-500 ring-2 ring-indigo-500":""} relative flex cursor-pointer rounded-lg border bg-white px-3 py-2 shadow-sm focus:outline-none`,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"flex flex-1 items-center justify-center",children:(0,e.jsx)("span",{className:"block text-sm font-medium text-gray-900",children:t(`subjects.${o.label}`)})}),(0,e.jsx)("span",{className:`$${o.checked?"border-indigo-500":"border-transparent"} pointer-events-none absolute -inset-px rounded-lg`,"aria-hidden":"true"})]})},o.label)),n.filter(o=>o.checked).map((o,r)=>(0,e.jsx)("input",{type:"text",className:"hidden",name:`subjects[${r}]`,value:o.label},r+o.label))]})};function F({locale:a,showSkip:s=!0,onboarding:t}){let{t:n}=i();return(0,e.jsx)("div",{children:(0,e.jsxs)(g,{className:"flex-col space-y-6 mt-4",method:"post",children:[(0,e.jsxs)(d,{className:"text-gray-800",children:[(0,e.jsx)(c,{children:n("onboarding.profession.label")}),(0,e.jsx)(v,{onboarding:t})]}),(0,e.jsxs)(d,{className:"text-gray-800",children:[(0,e.jsx)(c,{children:n("onboarding.school.label")}),(0,e.jsx)(x,{locale:a,onboarding:t})]}),(0,e.jsxs)(d,{children:[(0,e.jsx)(c,{children:n("onboarding.subjects.label")}),(0,e.jsx)(k,{onboarding:t})]}),(0,e.jsxs)("div",{className:O("flex justify-end items-center",{"justify-between":s}),children:[s&&(0,e.jsx)("div",{children:(0,e.jsx)("button",{type:"submit",name:"_action",value:"skip",className:"hover:text-indigo-500",children:n("onboarding.skip")})}),(0,e.jsxs)(S,{name:"_action",value:"save",children:[" ",n("onboarding.save")]})]})]})})}export{v as a,x as b,k as c,F as d}; 4//# sourceMappingURL=/build/_shared/chunk-PNYDMBME.js.map 5 6//# debugId=2ada7cd1-8121-5e2e-a88a-8391e53abc04
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.