1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a0be7de9-78a1-b307-6e3b-0103fce3dcab")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,970065,e=>{"use strict";var t=e.i(474453),n=e.i(647163);e.s(["Card",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...i})},"CardContent",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",e),...i})},"CardDescription",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...i})},"CardFooter",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,n.cn)("flex items-center px-6 [.border-t]:pt-6",e),...i})},"CardHeader",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...i})},"CardTitle",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,n.cn)("leading-none font-semibold",e),...i})}])},51517,e=>{"use strict";var t=e.i(993761);e.s(["Loader2",()=>t.default])},553552,e=>{"use strict";let t=(0,e.i(801685).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],553552)},873865,e=>{"use strict";e.i(708916);var t=e.i(474453),n=e.i(581053),i=e.i(491525),s=e.i(668338),a=e.i(743334),r=e.i(516636),l=e.i(392511),o=n,c=e.i(268097);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,l.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,i=(0,l.isHTMLElement)(e)&&e.offsetHeight||0,s=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(s.height),a.width=parseFloat(s.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=i-a.height-a.top,a.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:i,anchorX:s,anchorY:a,root:r,pop:l}){let h=(0,o.useId)(),x=(0,o.useRef)(null),p=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:f}=(0,o.useContext)(c.MotionConfigContext),g=function(...e){return n.useCallback(function(...e){return t=>{let n=!1,i=e.map(e=>{let i=d(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}(x,!1!==l?e.props?.ref??e?.ref:void 0);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:o,right:c,bottom:d,direction:u}=p.current;if(i||!1===l||!x.current||!e||!t)return;let m="rtl"===u,g="left"===s?m?`right: ${c}`:`left: ${o}`:m?`left: ${o}`:`right: ${c}`,b="bottom"===a?`bottom: ${d}`:`top: ${n}`;x.current.dataset.motionPopId=h;let v=document.createElement("style");f&&(v.nonce=f);let j=r??document.head;return j.appendChild(v),v.sheet&&v.sheet.insertRule(` 3 [data-motion-pop-id="${h}"] { 4 position: absolute !important; 5 width: ${e}px !important; 6 height: ${t}px !important; 7 ${g}px !important; 8 ${b}px !important; 9 } 10 `),()=>{x.current?.removeAttribute("data-motion-pop-id"),j.contains(v)&&j.removeChild(v)}},[i]),(0,t.jsx)(u,{isPresent:i,childRef:x,sizeRef:p,pop:l,children:!1===l?e:o.cloneElement(e,{ref:g})})}let h=({children:e,initial:i,isPresent:l,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:u,anchorX:h,anchorY:p,root:f})=>{let g=(0,s.useConstant)(x),b=(0,n.useId)(),v=(0,n.useRef)(l),j=(0,n.useRef)(o);(0,a.useIsomorphicLayoutEffect)(()=>{v.current=l,j.current=o});let y=!0,w=(0,n.useMemo)(()=>(y=!1,{id:b,initial:i,isPresent:l,custom:c,onExitComplete:e=>
10{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>{g.delete(e),v.current||g.size||j.current?.()})}),[l,g,o]);return d&&y&&(w={...w}),(0,n.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[l]),n.useEffect(()=>{l||g.size||!o||o()},[l]),e=(0,t.jsx)(m,{pop:"popLayout"===u,isPresent:l,anchorX:h,anchorY:p,root:f,children:e}),(0,t.jsx)(r.PresenceContext.Provider,{value:w,children:e})};function x(){return new Map}var p=e.i(511728);let f=e=>e.key||"";function g(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:r,initial:l=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:m="left",anchorY:x="top",root:b})=>{let[v,j]=(0,p.usePresence)(u),y=(0,n.useMemo)(()=>g(e),[e]),w=u&&!v?[]:y.map(f),N=(0,n.useRef)(!0),k=(0,n.useRef)(y),C=(0,s.useConstant)(()=>new Map),S=(0,n.useRef)(new Set),[E,z]=(0,n.useState)(y),[M,A]=(0,n.useState)(y);(0,a.useIsomorphicLayoutEffect)(()=>{!u||v||M.length||j?.()},[v,u,M.length,j]),(0,a.useIsomorphicLayoutEffect)(()=>{N.current=!1,k.current=y;for(let e=0;e<M.length;e++){let t=f(M[e]);w.includes(t)?(C.delete(t),S.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[M,w.length,w.join("-")]);let I=[];if(y!==E){let e=[...y];for(let t=0;t<M.length;t++){let n=M[t],i=f(n);w.includes(i)||(e.splice(t,0,n),I.push(n))}return"wait"===d&&I.length&&(e=I),A(g(e)),z(y),null}let{forceRender:L}=(0,n.useContext)(i.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:M.map(e=>{let n=f(e),i=(!u||!!v)&&(y===M||w.includes(n));return(0,t.jsx)(h,{isPresent:i,initial:(!N.current||!!l)&&void 0,custom:r,presenceAffectsLayout:c,mode:d,root:b,onExitComplete:i?void 0:()=>{if(S.current.has(n)||!C.has(n))return;S.current.add(n),C.set(n,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(L?.(),A(k.current),u&&j?.(),o&&o())},anchorX:m,anchorY:x,children:e},n)})})}],873865)},979980,e=>{"use strict";var t=e.i(79833);e.s(["ChevronRight",()=>t.default])},378688,e=>{"use strict";let t=(0,e.i(801685).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],378688)},974532,e=>{"use strict";var t=e.i(474453),n=e.i(647163);let i="#3182CE",s=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};e.s(["CompanyAvatar",0,function({company:e,className:s}){return e.logo_url&&e.id?(0,t.jsx)("img",{src:`${n.BASE_PATH}/api/companies/${e.id}/logo?v=${encodeURIComponent(e.logo_url)}`,alt:"",className:(0,n.cn)("shrink-0 rounded-md bg-background object-contain p-0.5 outline outline-black/10 dark:outline-white/10",s)}):(0,t.jsx)("div",{"aria-hidden":!0,className:(0,n.cn)("flex shrink-0 items-center justify-center rounded-md font-bold text-white",s),style:{backgroundColor:e.brand_color||i},children:e.name.trim().charAt(0).toUpperCase()||"U"})},"DEFAULT_BRAND_COLOR",0,i,"readableForeground",0,function(e){let t=function(e){let t=/^#([0-9a-f]{6})$/i.exec(e.trim());if(!t)return null;let n=parseInt(t[1],16);return .2126*s(n>>16&255)+.7152*s(n>>8&255)+.0722*s(255&n)}(e);return null===t?"#ffffff":(t+.05)/.05>=1.05/(t+.05)?"#000000":"#ffffff"}])},549505,e=>{"use strict";let t=(0,e.i(801685).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],549505)},334779,e=>{"use strict";var t=e.i(474453),n=e.i(581053),i=e.i(973503),s=e.i(506703),a=e.i(546398),r=e.i(378688),l=e.i(549505),o=e.i(309823),c=e.i(167881),d=e.i(974532),u=e.i(187014),m=e.i(290738),h=e.i(132779),x=e.i(712984);e.s(["PendingInvitations",0,function({onAccepted:e}){let{data:p,mutate:f}=(0,i.default)("/api/invitations",()=>m.api.invitations.listMine()),[g,b]=(0,n.useState)(null),v=(0,x.useQueryClient)(),j=p?.invitations??[];if(0===j.length)return null;let y=async t=>{b(t);try{await m.api.invitations.accept(t),u.toast.success("Einladung angenommen"),await f(),v.invalidateQueries(),e?.()}catch(t){let e=t instanceof h.ApiError?t.message:"Fehler beim Annehmen der Einladung";u.toast.error(e)}finally{b(null)}},w=async e=>{b(e);try{await m.api.invitations.decline(e),u.toast.success("Einladung abgelehnt"),await f()}catch(t){let e=t instanceof h.ApiError?t.message:"Fehler beim Ablehnen der Einladung";u.toast.error(e)}finally{b(null)}};return(0,t.jsxs)("section",{"aria-label":"Offene Einladungen",children:[(0,t.jsxs)("div",{className:"flex min-h-[48px] items-center gap-2 px-1 pb-2",children:[(0,t.jsx)(r.Mail,{className:"size-4 shrink-0 text-primary","aria-hidden":!0}),(0,t.jsx)("h2",{className:"text-[15px] font-semibold text-foreground",children:"Offene Einladungen"}),(0,t.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-[11px] font-semibold tabular-nums text-primary",children:j.length})]}),(0,t.jsx)("ul",{className:"space-y-2",children:j.map(e=>{let n=g===e.token,i=e.is_expired,r=new Date(e.expires_at).toLocaleDateString("de-DE");return(0,t.jsx)("li",{className:"rounded-lg bg-muted/60 px-3.5 py-3 transition-colors",children:(0,t.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[(0,t.jsx)(d.
10CompanyAvatar,{company:{name:e.company.name,brand_color:e.company.brand_color},className:`size-9 shrink-0 rounded-md text-sm ${i?"opacity-50":""}`}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.company.name}),(0,t.jsxs)("p",{className:"flex flex-col gap-x-3 gap-y-0.5 text-xs text-muted-foreground sm:flex-row sm:flex-wrap sm:items-center",children:[(0,t.jsxs)("span",{children:["Rolle:"," ","admin"===e.role?"Admin":"Mitglied"]}),(0,t.jsx)("span",{className:`inline-flex items-center gap-1 ${i?"text-amber-600 dark:text-amber-500":""}`,children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.AlertTriangle,{className:"h-3 w-3 shrink-0"}),"Abgelaufen am ",r]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Clock,{className:"h-3 w-3 shrink-0"}),"Gültig bis ",r]})})]}),i&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Diese Einladung ist abgelaufen. Bitten Sie den Inhaber, die Einladung erneut zu senden."}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 pt-1.5",children:[(0,t.jsxs)(c.Button,{size:"sm",className:"h-7 text-xs",onClick:()=>y(e.token),disabled:n||i,title:i?"Einladung abgelaufen â bitte erneut senden lassen":void 0,children:[(0,t.jsx)(s.Check,{className:"mr-1.5 h-3.5 w-3.5"}),"Annehmen"]}),(0,t.jsxs)(c.Button,{size:"sm",variant:"ghost",className:"h-7 text-xs text-muted-foreground hover:text-foreground",onClick:()=>w(e.token),disabled:n,children:[(0,t.jsx)(a.X,{className:"mr-1.5 h-3.5 w-3.5"}),i?"Entfernen":"Ablehnen"]})]})]})]})},e.id)})})]})}])},270441,e=>{"use strict";let t=(0,e.i(801685).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],270441)},549498,e=>{"use strict";let t=(0,e.i(801685).default)("calendar-x",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]]);e.s(["CalendarX",0,t],549498)},729129,e=>{"use strict";let t=(0,e.i(801685).default)("receipt",[["path",{d:"M12 17V7",key:"pyj7ub"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8",key:"1elt7d"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]]);e.s(["Receipt",0,t],729129)},917428,e=>{"use strict";let t=(0,e.i(801685).default)("file-down",[["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:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);e.s(["FileDown",0,t],917428)},150312,e=>{"use strict";let t=(0,e.i(801685).default)("server-cog",[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]]);e.s(["ServerCog",0,t],150312)},509062,e=>{"use strict";e.s(["OMR_RATING",0,4.8,"OMR_REVIEW_URL",0,"https://omr.com/de/reviews/product/ams-pro","OMR_TIME_SAVED_QUOTE",0,{quote:"Den gröÃten Vorteil sehen wir bei der Erstellung von Gefährdungsbeurteilungen. Hier haben wir Minimum 60% Zeitersparnis im Vergleich zu konventionellen Lösungen (z.B. Excel).",name:"Tobias",role:"Geschäftsführer, EXBERA"}])},817994,e=>{"use strict";e.i(708916);var t=e.i(474453),n=e.i(581053),i=e.i(177439),s=e.i(553552),a=e.i(506703),r=e.i(979980),l=e.i(51517);let o=(0,e.i(801685).default)("mail-check",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);var c=e.i(873865),d=e.i(621081),u=e.i(450369),m=e.i(549498),h=e.i(917428),x=e.i(729129),p=e.i(150312),f=e.i(270441),g=e.i(191011),b=e.i(509062);let v=[{icon:m.CalendarX,label:"Monatlich kündbar"},{icon:x.Receipt,label:"Keine Kreditkarte nötig"},{icon:p.ServerCog,label:"Server in der EU"},{icon:h.FileDown,label:"Datenexport jederzeit"}];function j({wide:e=!1}){return(0,t.jsxs)("section",{"aria-label":"Warum AMS-Pro",className:`relative h-full overflow-hidden bg-primary/[0.05] ${e?"flex flex-col justify-center p-10 sm:p-12 lg:p-14":"p-8 sm:p-10"}
10`,children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-48 bg-[radial-gradient(50%_100%_at_50%_0%,var(--color-primary)_0%,transparent_70%)] opacity-[0.08]"}),(0,t.jsxs)("div",{className:`relative flex flex-col ${e?"max-w-xl gap-6":"gap-5"}`,children:[(0,t.jsxs)("p",{className:"inline-flex w-fit items-center gap-1.5 rounded-full border border-border bg-card px-3 py-1 text-xs font-medium text-muted-foreground",children:[(0,t.jsx)(f.ShieldCheck,{className:"size-3.5 text-primary","aria-hidden":!0}),"Rechtssicherer dokumentiert, auch ohne Vorwissen"]}),(0,t.jsxs)("h2",{className:`font-bold tracking-tight text-foreground text-balance ${e?"max-w-xl text-3xl sm:text-4xl":"max-w-md text-2xl sm:text-3xl"}`,children:["Ihre Gefährdungsbeurteilung"," ",(0,t.jsx)("span",{className:"text-primary",children:"in Minuten"})," statt in Stunden"]}),(0,t.jsx)("p",{className:`leading-relaxed text-muted-foreground text-pretty ${e?"max-w-xl text-base sm:text-lg":"max-w-md text-sm sm:text-base"}`,children:"Beschreiben Sie die Tätigkeit. Die KI erstellt in rund 20 Sekunden einen Entwurf mit Gefährdungen, SchutzmaÃnahmen und Risikobewertung. Sie prüfen, geben frei und exportieren als PDF."}),(0,t.jsxs)("a",{href:b.OMR_REVIEW_URL,target:"_blank",rel:"noopener noreferrer",className:"inline-flex w-fit items-center gap-2 rounded-md text-sm font-medium text-foreground hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)("span",{className:"flex items-center gap-0.5","aria-hidden":!0,children:[1,2,3,4,5].map(e=>(0,t.jsx)(g.Star,{className:"size-3.5 fill-amber-400 text-amber-400"},e))}),b.OMR_RATING.toString().replace(".",",")," von 5 · verifizierte Bewertungen"]}),(0,t.jsx)("ul",{className:"flex flex-wrap gap-x-6 gap-y-3 border-t border-foreground
10/10 pt-5",children:v.map(e=>(0,t.jsxs)("li",{className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsx)(e.icon,{className:"size-4 shrink-0 text-primary","aria-hidden":!0}),e.label]},e.label))})]})]})}var y=e.i(920755),w=e.i(647163),N=e.i(558249),k=e.i(290738),C=e.i(167881),S=e.i(970065),E=e.i(23750),z=e.i(10708),M=e.i(712984),A=e.i(953062),I=e.i(515480),L=e.i(466826),_=e.i(836554),R=e.i(334779);let $=[{value:"none",label:"Keine"},{value:"intern",label:L.SIFA_TYPE_LABELS.intern},{value:"extern",label:L.SIFA_TYPE_LABELS.extern}];function P({label:e,selected:n,onClick:i}){return(0,t.jsxs)("button",{type:"button",onClick:i,"aria-pressed":n,className:`flex items-center gap-3 rounded-lg border px-4 py-3 text-sm text-left transition-colors w-full ${n?"border-primary bg-primary/5 text-foreground":"border-border bg-background text-muted-foreground hover:border-primary/40 hover:bg-muted/50"}`,children:[(0,t.jsx)("span",{className:`flex size-4 shrink-0 items-center justify-center rounded-full border ${n?"border-primary":"border-muted-foreground/40"}`,children:n&&(0,t.jsx)("span",{className:"size-2 rounded-full bg-primary"})}),e]})}let B=[.2,0,0,1];function K(e){let t=e.toLowerCase();return t.includes("invalid login credentials")||t.includes("invalid email or password")?"E-Mail oder Passwort ist falsch. Prüfen Sie Ihre Eingabe oder setzen Sie Ihr Passwort zurück.":t.includes("email not confirmed")?"Bitte bestätigen Sie zuerst Ihre E-Mail-Adresse. Prüfen Sie Ihr Postfach.":t.includes("password should be")||t.includes("password must be")?"Das Passwort muss mindestens 6 Zeichen lang sein.":t.includes("rate limit")||t.includes("too many requests")||t.includes("email rate limit exceeded")?"Zu viele Versuche. Bitte warten Sie einen Moment und versuchen Sie es erneut.":t.includes("user already registered")?"Für diese E-Mail-Adresse gibt es bereits ein Konto. Melden Sie sich an.":t.includes("network")||t.includes("fetch")?"Keine Verbindung. Prüfen Sie Ihr Internet und versuchen Sie es erneut.":/[äöüÃ]/i.test(e)?e:"Das hat nicht geklappt. Prüfen Sie Ihre Eingabe und versuchen Sie es erneut."}function F({stepKey:e,children:n}){return(0,u.useReducedMotion)()?(0,t.jsx)(t.Fragment,{children:n}):(0,t.jsx)(d.motion.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.25,ease:B},children:n},e)}function U({children:e,className:n}){return(0,u.useReducedMotion)()?(0,t.jsx)("div",{className:n,children:e}):(0,t.jsx)(d.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25,ease:B},className:`overflow-hidden ${n??""}`,children:e})}function T({current:e}){return(0,t.jsx)("ol",{"aria-label":"Fortschritt der Einrichtung",className:"mb-3 flex items-center justify-center gap-2",children:Array.from({length:3},(n,i)=>{let s=i+1,r=s<e,l=s===e;return(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{...l?{"aria-current":"step"}:{},className:`flex size-6 items-center justify-center rounded-full text-[11px] font-semibold ${r||l?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:[r?(0,t.jsx)(a.Check,{className:"size-3.5","aria-hidden":!0}):(0,t.jsx)("span",{"aria-hidden":!0,children:s}),(0,t.jsxs)("span",{className:"sr-only",children:["Schritt ",s," von ",3,l?" (aktuell)":r?" (abgeschlossen)":""]})]}),s<3&&(0,t.jsx)("span",{className:"h-px w-8 bg-border","aria-hidden":!0})]},s)})})}function D({children:e,wide:n=!1}){return(0,t.jsxs)("div",{className:`grid overflow-hidden rounded-2xl border border-border bg-card shadow-sm ${n?"lg:grid-cols-[2fr_3fr]":"lg:grid-cols-[1fr_1.05fr]"}`,children:[(0,t.jsx)("div",{className:`flex min-w-0 flex-col justify-center ${n?"p-6 sm:p-10 lg:p-12":"p-2 sm:p-4 lg:p-6"}`,children:e}),(0,t.jsx)("div",{className:"hidden min-w-0 lg:block",children:(0,t.jsx)(j,{wide:n})})]})}let H={pdf:{title:"Konto erstellen und exportieren",description:"Für den PDF-Export reicht ein kostenloses Konto. Kein Abo · keine Zahlungs- oder Unternehmensdaten."},betriebsanweisung:{title:"Betriebsanweisung exportieren",description:"Für den PDF-Export reicht ein kostenloses Konto. Kein Abo · keine Zahlungs- oder Unternehmensdaten."},share:{title:"Beurteilung teilen",description:"Legen Sie ein kostenloses Konto an. Kein Abo · keine Zahlungs- oder Unternehmensdaten."},save:{title:"Beurteilung dauerhaft speichern",description:"Legen Sie ein kostenloses Konto an. Kein Abo · keine Zahlungs- oder Unternehmensdaten."},upgrade:{title:"Premium freischalten",description:"Erstellen Sie ein kostenloses Konto, um Ihr Unternehmen auf Premium upzugraden."},kanban:{title:"MaÃnahmen-Board nutzen",description:"Legen Sie ein kostenloses Konto an, um MaÃnahmen zu verschieben und zu filtern. Kein Abo · keine Zahlungs- oder Unternehmensdaten."},invitation:{title:"Einladung annehmen",description:"Melden Sie sich an oder erstellen Sie ein kostenloses Konto, um Ihrer Einladung zu folgen."}},O={title:"Kostenloses Konto erstellen",description:"Registrieren Sie sich kostenlos, um eine Gefährdungsbeurteilung dauerhaft zu speichern, zu teilen und zu exportieren."};e.s(["LoginForm",0,function({nextPath:e,onLoginSuccess:a,intent:d,defaultEmail:u,authAside:m,wide:h=!1,initialMode:x}){let p="border-transparent bg-transparent shadow-none",[f,g]=(0,n.use
10State)(u||""),[b,v]=(0,n.useState)(""),[j,B]=(0,n.useState)(!1),[V,G]=(0,n.useState)(null),[q,W]=(0,n.useState)(x??"signup"),[Z,Q]=(0,n.useState)(!1),[X,Y]=(0,n.useState)(null),[J,ee]=(0,n.useState)(!1),[et,en]=(0,n.useState)("auth"),[ei,es]=(0,n.useState)(null),[ea,er]=(0,n.useState)(null),{activeCompany:el}=(0,I.useAppContext)(),[eo,ec]=(0,n.useState)(""),[ed,eu]=(0,n.useState)(""),[em,eh]=(0,n.useState)(!1),[ex,ep]=(0,n.useState)("none"),[ef,eg]=(0,n.useState)(""),[eb,ev]=(0,n.useState)(null),[ej,ey]=(0,n.useState)(!1),[ew,eN]=(0,n.useState)(""),[ek,eC]=(0,n.useState)(""),[eS,eE]=(0,n.useState)(""),[ez,eM]=(0,n.useState)(!1),eA=(0,y.createClient)(),eI=(0,i.useSearchParams)(),eL=(0,n.useId)(),e_=(0,M.useQueryClient)(),eR=(0,n.useRef)(!1);function e$(e){eR.current=!0,B(!0),window.location.assign(e)}let eP=(0,n.useRef)(null),eB=(0,n.useRef)(null),eK=(0,n.useRef)(null),eF=(0,n.useRef)(null);function eU(e){G(null),Y(null),W(e)}let eT=(0,n.useRef)(!0);(0,n.useEffect)(()=>{if(eT.current){eT.current=!1;return}eP.current?.focus()},[q,et]),(0,n.useEffect)(()=>{V&&eB.current?.focus()},[V]),(0,n.useEffect)(()=>{X&&eK.current?.focus()},[X]);let eD=`${w.BASE_PATH}/dashboard`,eH=e||eI.get("next")||eD;async function eO(e){B(!0),G(null);let{data:{user:t}}=await eA.auth.getUser(),n={provider:e,options:{redirectTo:`https://www.ams-pro.de/auth/callback${t?.is_anonymous?`?link=1&provider=${e}`:""}`}},{error:i}=t?.is_anonymous?await eA.auth.linkIdentity(n):await eA.auth.signInWithOAuth(n);i&&(G(K(i.message)),B(!1))}async function eV(e){e.preventDefault(),Q(!0),Y(null);let t=window.location.origin,{error:n}=await eA.auth.resetPasswordForEmail(f,{redirectTo:`${t}${w.BASE_PATH}/auth/reset-password`});n?Y(K(n.message)):ee(!0),Q(!1)}let eG=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!eG.current&&el){if(el&&el.description&&el.description?.length!=0)return void eu(el.description);eG.current=!0,(async()=>{try{let{description:e}=await k.api.companies.generateDescription(el.id);if(!e)return;eu(t=>em||t?t:e)}catch{}})()}},[et,el]);let eq=(0,n.useRef)(!1);async function eW(e){e.preventDefault(),B(!0),G(null);let t=async()=>{let{data:e,error:t}=await eA.auth.signInWithPassword({email:f,password:b});t?G(K(t.message)):(e.user&&(0,N.identify)(e.user.id,{email:e.user.email,createdAt:e.user.created_at}),(0,N.track)("User Logged In",{method:"email"},{traits:{email:e.user?.email,createdAt:e.user?.created_at}}),k.api.tracking.trackLogin().catch(()=>{}),a?a():e$(eH))};if("signup"===q){let{data:{user:e}}=await eA.auth.getUser(),{data:n,error:i}=e?.is_anonymous?await eA.auth.updateUser({email:f,password:b},{emailRedirectTo:`https://www.ams-pro.de/auth/callback?next=${encodeURIComponent(eH)}`}):await eA.auth.signUp({email:f,password:b,options:{emailRedirectTo:`https://www.ams-pro.de/auth/callback?next=${encodeURIComponent(eH)}`}});if(i){if("User already registered"==i.message||"A user with this email address has already been registered"==i.message)try{await t(),B(!1);return}catch{}G(K(i.message))}else{e?.is_anonymous&&await eA.auth.refreshSession();let t=n.user?.id,i=n.user?.email??f,s=n.user?.created_at??new Date().toISOString();if(t){(0,N.track)("User Signed Up",{method:"email"},{traits:{email:f}},!0);try{await k.api.tracking.trackSignup({userId:t,email:i,createdAt:s,provider:"email"})}catch{}}es(t??null),er(f),await eZ(t??null)}}else await t();eR.current||(e_.invalidateQueries({queryKey:A.userQueryKey}),B(!1))}async function eZ(e){if(a&&"invitation"===d)return void a();try{let{invitations:e}=await k.api.invitations.listMine();if(e.length>0)return void en("invitation")}catch{}await eQ(e)}async function eQ(e){try{let{companies:t}=await k.api.companies.list();0===t.length&&await k.api.companies.create({name:"Mein Unternehmen"}),await e_.refetchQueries({queryKey:(0,A.companiesQueryKey)(e??void 0)})}catch{}en("company")}function eX(){a?a():e$(eH)}async function eY(){let e=eo.trim();if(e&&el){ey(!0);try{let t=ed.trim();await k.api.companies.update(el.id,{name:e,description:t||null,sifa_type:"none"===ex?null:ex,sifa_name:"none"===ex?null:ef.trim()||null,employee_count:eb}
10),e_.invalidateQueries({queryKey:["companies"]}),e_.refetchQueries({queryKey:(0,A.activitySuggestionsQueryKey)(el.id)})}catch{}ey(!1),en("segmentation")}}async function eJ(){eM(!0),ei&&(await eA.auth.updateUser({data:{gbu_for:ew||void 0,company_size:"own"===ew&&ek||void 0,client_count:("clients"===ew||"both"===ew)&&eS||void 0}}),(0,N.identify)(ei,{email:ea??void 0,gbuFor:ew||void 0,companySize:"own"===ew&&ek||void 0,clientCount:("clients"===ew||"both"===ew)&&eS||void 0})),eM(!1),eX()}if((0,n.useEffect)(()=>{if(eq.current||"1"!==eI.get("identity_taken"))return;let e=eI.get("provider");("google"===e||"github"===e||"linkedin_oidc"===e)&&(eq.current=!0,(async()=>{await eA.auth.signOut(),eO(e)})())},[eI]),"invitation"===et)return(0,t.jsx)(D,{wide:h,children:(0,t.jsx)(F,{stepKey:"invitation",children:(0,t.jsxs)(S.Card,{className:p,children:[(0,t.jsxs)(S.CardHeader,{className:"text-center",children:[(0,t.jsx)(S.CardTitle,{className:"text-xl text-balance text-foreground",children:"Sie wurden eingeladen"}),(0,t.jsx)(S.CardDescription,{children:"Treten Sie dem Unternehmen bei, das Sie eingeladen hat, oder erstellen Sie stattdessen Ihr eigenes."})]}),(0,t.jsxs)(S.CardContent,{className:"flex flex-col gap-4",children:[(0,t.jsx)(R.PendingInvitations,{onAccepted:eX}),(0,t.jsx)(C.Button,{type:"button",variant:"outline",className:"w-full",onClick:()=>void eQ(ei),children:"Stattdessen eigenes Unternehmen erstellen"})]})]})})});if("company"===et)return(0,t.jsx)(D,{wide:h,children:(0,t.jsx)(F,{stepKey:"company",children:(0,t.jsxs)(S.Card,{className:p,children:[(0,t.jsxs)(S.CardHeader,{className:"text-center pb-2",children:[(0,t.jsx)(T,{current:2}),(0,t.jsx)(S.CardTitle,{className:"text-xl text-balance text-foreground",children:"Ihr Unternehmen"}),(0,t.jsx)(S.CardDescription,{children:"Der Name erscheint in PDFs und Beurteilungen."})]}),(0,t.jsx)(S.CardContent,{className:"flex flex-col gap-4 pt-4",children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),eY()},className:"flex flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(z.Label,{htmlFor:`${eL}-company-name`,className:"text-foreground",children:"Unternehmensname"}),(0,t.jsx)(E.Input,{id:`${eL}-company-name`,type:"text",placeholder:"z.B. Mustermann GmbH",value:eo,onChange:e=>ec(e.target.value),required:!0,autoFocus:!0})]}),(0,t.jsx)(c.AnimatePresence,{initial:!1,children:eo.trim().length>0&&(0,t.jsxs)(U,{className:"flex flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(z.Label,{className:"text-foreground",children:["Sicherheitsfachkraft (SiFa)"," ",(0,t.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"(optional)"})]}),(0,t.jsx)(_.RadioCardGroup,{options:$,value:ex,onChange:ep,columns:3}),(0,t.jsx)(c.AnimatePresence,{initial:!1,children:"none"!==ex&&(0,t.jsx)(U,{children:(0,t.jsx)(E.Input,{id:`${eL}-sifa`,type:"text",placeholder:"Name der zuständigen SiFa",value:ef,onChange:e=>eg(e.target.value),className:"mt-3"})},"sifa-name")})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(z.Label,{className:"text-foreground",children:["Mitarbeiterzahl"," ",(0,t.jsx)("span",{className:"text-xs font-normal text-muted-foreground",children:"(optional)"})]}),(0,t.jsx)(_.RadioCardGroup,{options:L.EMPLOYEE_COUNT_RANGES.map(e=>({value:e,label:L.EMPLOYEE_COUNT_LABELS[e]})),value:eb,onChange:ev,columns:2})]})]},"company-details")}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 pt-1",children:[(0,t.jsxs)(C.Button,{type:"submit",disabled:ej||!eo.trim(),className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",children:[ej?"Speichert...":"Weiter",!ej&&(0,t.jsx)(r.ChevronRight,{className:"ml-1 size-4"})]}),(0,t.jsx)("button",{type:"button",className:"min-h-9 rounded-md px-4 py-2 text-xs text-muted-foreground underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>en("segmentation"),children:"Ãberspringen"})]})]})})]})})});if("segmentation"===et)return(0,t.jsx)(D,{wide:h,children:(0,t.jsx)(F,{stepKey:"segmentation",children:(0,t.jsxs)(S.Card,{className:p,children:[(0,t.jsxs)(S.CardHeader,{className:"text-center pb-2",children:[(0,t.jsx)(T,{current:3}),(0,t.jsx)(S.CardTitle,{className:"text-xl text-balance text-foreground",children:"Fast fertig!"}),(0,t.jsx)(S.CardDescription,{children:"Helfen Sie uns, das Tool besser für Sie anzupassen. Diese Angaben sind freiwillig."})]}),(0,t.jsxs)(S.CardContent,{className:"flex flex-col gap-5 pt-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(z.Label,{className:"text-sm font-medium",children:"Für wen erstellen Sie die GBUs?"}),(0,t.jsx)("div",{className:"flex flex-col gap-2 mt-1",children:[{value:"own",label:"Für mein eigenes Unternehmen"},{value:"clients",label:"Für meine Kunden"},{value:"both",label:"Beides"}].map(e=>(0,t.jsx)(P,{label:e.label,selected:ew===e.value,onClick:()=>{eN(e.value),eC(""),eE("")}},e.value))})]}
10),(0,t.jsx)(c.AnimatePresence,{initial:!1,children:"own"===ew&&(0,t.jsx)(U,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(z.Label,{className:"text-sm font-medium",children:"Wie viele Mitarbeiter hat Ihr Unternehmen?"}),(0,t.jsx)("div",{className:"flex flex-col gap-2 mt-1",children:[{value:"<20",label:"Weniger als 20"},{value:"20-50",label:"20â50"},{value:">50",label:"Mehr als 50"}].map(e=>(0,t.jsx)(P,{label:e.label,selected:ek===e.value,onClick:()=>eC(e.value)},e.value))})]})},"seg-company-size")}),(0,t.jsx)(c.AnimatePresence,{initial:!1,children:("clients"===ew||"both"===ew)&&(0,t.jsx)(U,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(z.Label,{className:"text-sm font-medium",children:"Wie viele Kunden betreuen Sie?"}),(0,t.jsx)("div",{className:"flex flex-col gap-2 mt-1",children:[{value:"<10",label:"Weniger als 10"},{value:"10-30",label:"10â30"},{value:">30",label:"Mehr als 30"}].map(e=>(0,t.jsx)(P,{label:e.label,selected:eS===e.value,onClick:()=>eE(e.value)},e.value))})]})},"seg-client-count")}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 pt-1",children:[(0,t.jsxs)(C.Button,{onClick:eJ,disabled:ez,className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",children:[ez?"Speichert...":"Weiter",!ez&&(0,t.jsx)(r.ChevronRight,{className:"ml-1 size-4"})]}),(0,t.jsx)("button",{type:"button",className:"min-h-9 rounded-md px-4 py-2 text-xs text-muted-foreground underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:eX,children:"Ãberspringen"})]})]})]})})});let e0=d?H[d]:O;return"auth"===et&&"forgot"===q&&J?(0,t.jsx)(D,{wide:h,children:(0,t.jsx)(F,{stepKey:"forgot-sent",children:(0,t.jsxs)(S.Card,{className:p,children:[(0,t.jsxs)(S.CardHeader,{className:"text-center",children:[(0,t.jsx)("div",{className:"mb-3 flex justify-center",children:(0,t.jsx)("div",{className:"flex size-12 items-center justify-center rounded-full bg-primary/10",children:(0,t.jsx)(o,{className:"size-6 text-primary","aria-hidden":!0})})}),(0,t.jsx)(S.CardTitle,{ref:eP,tabIndex:-1,className:"text-xl text-balance text-foreground outline-none",children:"E-Mail gesendet"}),(0,t.jsxs)(S.CardDescription,{className:"text-pretty",children:["Wir haben einen Link zum Zurücksetzen Ihres Passworts an"," ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:f})," ","gesendet. Bitte überprüfen Sie auch Ihren Spam-Ordner."]})]}),(0,t.jsxs)(S.CardContent,{className:"flex flex-col gap-2",children:[(0,t.jsx)(C.Button,{type:"button",className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",onClick:()=>{eU("login"),requestAnimationFrame(()=>eF.current?.focus())},children:"Zurück zur Anmeldung"}),(0,t.jsxs)(C.Button,{type:"button",variant:"outline",className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",disabled:Z,onClick:eV,children:[Z&&(0,t.jsx)(l.Loader2,{className:"size-4 animate-spin","aria-hidden":!0}),Z?"Link wird gesendetâ¦":"Link erneut senden"]})]})]})})}):"auth"===et&&"forgot"===q?(0,t.jsx)(D,{wide:h,children:(0,t.jsx)(F,{stepKey:"forgot",children:(0,t.jsxs)(S.Card,{className:p,children:[(0,t.jsx)(S.CardContent,{className:"pt-1 pb-0",children:(0,t.jsxs)(C.Button,{type:"button",variant:"ghost",size:"sm",className:"-ml-2 min-h-9 text-muted-foreground hover:text-foreground",onClick:()=>{eU("login"),requestAnimationFrame(()=>eF.current?.focus())},children:[(0,t.jsx)(s.ArrowLeft,{className:"size-4","aria-hidden":!0}),"Zurück zur Anmeldung"]})}),(0,t.jsxs)(S.CardHeader,{className:"text-center pt-2",children:[(0,t.jsx)(S.CardTitle,{ref:eP,tabIndex:-1,className:"text-xl text-balance text-foreground outline-none",children:"Passwort vergessen"}),(0,t.jsx)(S.CardDescription,{className:"text-pretty",children:"Geben Sie Ihre E-Mail-Adresse ein. Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können."})]}),(0,t.jsxs)(S.CardContent,{className:"flex flex-col gap-4",children:[(0,t.jsxs)("form",{id:`${eL}-forgot`,onSubmit:eV,className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(z.Label,{htmlFor:`${eL}-forgot-email`,className:"text-foreground",children:"E-Mail"}),(0,t.jsx)(E.Input,{id:`${eL}-forgot-email`,name:"email",type:"email",autoComplete:"email",placeholder:"[email protected]",value:f,onChange:e=>g(e.target.value),required:!0,"aria-invalid":!!X||void 0,"aria-describedby":X?`${eL}-forgot-error`:void 0})]}),X&&(0,t.jsx)("p",{ref:eK,tabIndex:-1,id:`${eL}-forgot-error`,role:"alert",className:"text-sm text-destructive outline-none",children:X})]}),(0,t.jsxs)(C.Button,{type:"submit",form:`${eL}-forgot`,disabled:Z,className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",children:[Z&&(0,t.jsx)(l.L
10oader2,{className:"size-4 animate-spin","aria-hidden":!0}),Z?"Link wird gesendetâ¦":"Link senden"]})]})]})})}):(0,t.jsx)(D,{wide:h,children:(0,t.jsxs)(t.Fragment,{children:[m,(0,t.jsxs)(S.Card,{className:p,children:[(0,t.jsxs)(S.CardHeader,{className:`text-center ${"signup"===q?"pb-2":""}`,children:["signup"===q&&(0,t.jsx)(T,{current:1}),(0,t.jsx)(S.CardTitle,{ref:eP,tabIndex:-1,className:"text-xl text-balance text-foreground outline-none",children:"login"===q?"Anmelden":e0.title}),(0,t.jsx)(S.CardDescription,{className:"text-pretty",children:"login"===q?"Melden Sie sich an, um Ihre Beurteilungen zu verwalten, zu teilen und zu exportieren.":e0.description})]}),(0,t.jsxs)(S.CardContent,{className:`flex flex-col gap-4 ${"signup"===q?"pt-4":""}`,children:[(0,t.jsxs)("form",{id:eL,onSubmit:eW,className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(z.Label,{htmlFor:`${eL}-email`,className:"text-foreground",children:"E-Mail"}),(0,t.jsx)(E.Input,{id:`${eL}-email`,name:"email",type:"email",autoComplete:"email",placeholder:"[email protected]",value:f,onChange:e=>g(e.target.value),required:!0,"aria-invalid":!!V||void 0,"aria-describedby":V?`${eL}-error`:void 0})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(z.Label,{htmlFor:`${eL}-password`,className:"text-foreground",children:"Passwort"}),"login"===q&&(0,t.jsx)("button",{ref:eF,type:"button",onClick:()=>eU("forgot"),className:"inline-flex min-h-6 cursor-pointer items-center rounded-sm px-1 text-xs text-primary underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"Passwort vergessen?"})]}),(0,t.jsx)(E.Input,{id:`${eL}-password`,name:"password",type:"password",autoComplete:"login"===q?"current-password":"new-password",placeholder:"Mindestens 6 Zeichen",value:b,onChange:e=>v(e.target.value),required:!0,minLength:6,"aria-invalid":!!V||void 0,"aria-describedby":V?`${eL}-error`:void 0})]}),V&&(0,t.jsx)("p",{ref:eB,tabIndex:-1,id:`${eL}-error`,role:"alert",className:"text-sm text-destructive outline-none",children:V})]}),(0,t.jsxs)(C.Button,{type:"submit",form:eL,disabled:j,className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",children:[j&&(0,t.jsx)(l.Loader2,{className:"size-4 animate-spin","aria-hidden":!0}),j?"login"===q?"Anmeldenâ¦":"Konto wird erstelltâ¦":"login"===q?"Anmelden":"pdf"===d?"Konto erstellen und exportieren":"Kostenloses Konto erstellen"]}),"signup"===q&&(0,t.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:"Kein Abo · keine Zahlungs- oder Unternehmensdaten"}),(0,t.jsxs)("div",{className:"relative my-1",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("span",{className:"w-full border-t"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,t.jsx)("span",{className:"bg-card px-2 text-muted-foreground",children:"oder"})})]}),"login"===q&&(0,t.jsx)(C.Button,{type:"button",variant:"outline",className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",onClick:()=>eU("signup"),children:"Kostenloses Konto erstellen"}),"signup"===q&&(0,t.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:["Bereits ein Konto?"," ",(0,t.jsx)("button",{type:"button",className:"inline-flex min-h-6 cursor-pointer items-center rounded-sm px-1 font-medium text-primary underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>eU("login"),children:"Anmelden"})]}),(0,t.jsxs)(C.Button,{type:"button",variant:"outline",className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",onClick:()=>eO("google"),disabled:j,children:[(0,t.jsxs)("svg",{className:"mr-2 size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,t.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,t.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,t.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Mit Google anmelden"]}),(0,t.jsxs)(C.Button,{type:"button",variant:"outline",className:"w-full active:scale-[0.96] motion-reduce:active:scale-100",onClick:()=>eO("linkedin_oidc"),disabled:j,children:[(0,t.jsx)("svg",{className:"mr-2 size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
10currentColor",children:(0,t.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),"Mit LinkedIn anmelden"]})]})]})]})})}],817994)}]); 11 12//# debugId=a0be7de9-78a1-b307-6e3b-0103fce3dcab
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.