1import{c as N,v as P,q as I,p as y,r as v,j as e,w as D,T as F,a as k,b as B,B as L,U as $,l as S,S as J,x as X,M as ee,y as se,z as te,s as E,m as ae,D as g}from"./index-D8d0swLk.js";import{N as z}from"./NotificationsPopover-Kc_F5pSZ.js";import{u as K}from"./useProperties-BvhuQ65i.js";import{L as R}from"./log-out-Cq4Zj-XP.js";import{M as C}from"./message-square-Sb1K3afx.js";import{F as W}from"./file-text-BLT9exXs.js";import{C as G}from"./calendar-days-C7nayRfo.js";import{C as U}from"./chart-column-BDJktsHl.js";import{S as V}from"./sparkles-FSA44k1S.js";import{S as x}from"./skeleton-D_usCj7n.js";import{u as ne}from"./useMutation-B2EBFxUK.js";import{U as re}from"./user-BJHZR_b8.js";import{B as ie}from"./bell-CYRw4Irn.js";import{M as le}from"./mail-BgdBQUzC.js";import{B as oe}from"./bot-CQivWBDZ.js";import{C as ce}from"./calendar-CfIPgoQu.js";import{S as _}from"./shield-DknB_7IR.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const H=N("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Q=N("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Y=N("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const de=N("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),T="/assets/valtis-logo-CCyFG1Fs.png",xe=a=>[{items:[{icon:Q,label:"Ãbersicht",to:"/cockpit"},{icon:L,label:"Objekte",to:"/properties"}]},{items:[{icon:H,label:"Finanzen",to:"/finances"},{icon:$,label:a?"Eigentümer":"Mieter",to:"/tenants"}]},{items:[{icon:C,label:"Kommunikation",to:"/communication"},{icon:W,label:"Dokumente",to:"/documents"},{icon:G,label:"Termine",to:"/calendar"}]},{items:[{icon:U,label:"Auswertungen",to:"/analytics"},{icon:V,label:"Empfehlungen",to:"/recommendations"}]}],me=()=>{const{pathname:a}=P(),i=I(),{user:l,signOut:n}=y(),t=l!=null&&l.email?l.email[0].toUpperCase():"?",{data:o}=K(),d=v.useMemo(()=>!o||o.length===0?!1:o.every(p=>p.bewirtschaftungstyp==="stwe"),[o]),h=v.useMemo(()=>xe(d),[d]),u=async()=>{await n(),i("/auth")};return e.jsxs("aside",{className:"hidden lg:flex flex-col items-center w-[72px] shrink-0 sticky top-0 h-screen bg-white border-r border-[#E5E7EB]/40",children:[e.jsx("div",{className:"flex items-center justify-center h-16 w-full",children:e.jsx("div",{className:"w-9 h-9 rounded-[10px] bg-[#1D4ED8] flex items-center justify-center",children:e.jsx("span",{className:"text-white text-[13px] font-bold tracking-tight",children:"iP"})})}),e.jsx("div",{className:"w-8 h-px bg-[#E5E7EB]/60 mb-2"}),e.jsx("nav",{className:"flex flex-col items-center gap-0.5 flex-1 py-1",children:e.jsx(D,{delayDuration:100,children:h.map((p,b)=>e.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[b>0&&e.jsx("div",{className:"w-8 h-px bg-[#E5E7EB]/60 my-1.5"}),p.items.map(c=>{const s=c.to?a.startsWith(c.to):!1,r=c.icon;return e.jsxs(F,{children:[e.jsx(k,{asChild:!0,children:e.jsxs("button",{onClick:()=>{c.to&&!c.disabled&&i(c.to)},disabled:c.disabled,className:` 22 relative w-11 h-11 rounded-[10px] flex items-center justify-center transition-colors duration-150
23 ${s?"bg-[#EDEFFA] text-[#1D4ED8]":c.disabled?"text-[#E5E7EB] cursor-default":"text-[#6B7280] hover:text-[#10111D] hover:bg-[#EDEFFA]"} 24 `,children:[e.jsx(r,{className:"w-[18px] h-[18px]",strokeWidth:s?2.2:1.8}),s&&e.jsx("span",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-5 rounded-r-full bg-[#1D4ED8]"})]})}),e.jsx(B,{side:"right",sideOffset:14,className:"bg-[#10111D] text-white text-xs px-3 py-1.5 rounded-lg font-medium",children:c.label})]},c.label)})]},b))})}),e.jsxs("div",{className:"flex flex-col items-center gap-2 pb-4",children:[e.jsx("div",{className:"w-8 h-px bg-[#E5E7EB]/60 mb-1"}),e.jsx(D,{delayDuration:100,children:e.jsxs(F,{children:[e.jsx(k,{asChild:!0,children:e.jsxs("button",{onClick:()=>i("/settings"),className:` 25 relative w-11 h-11 rounded-[10px] flex items-center justify-center transition-colors duration-150 26 ${a.startsWith("/settings")?"bg-[#EDEFFA] text-[#1D4ED8]":"text-[#6B7280] hover:text-[#10111D] hover:bg-[#EDEFFA]"} 27 `,children:[e.jsx(Y,{className:"w-[18px] h-[18px]",strokeWidth:a.startsWith("/settings")?2.2:1.8}),a.startsWith("/settings")&&e.jsx("span",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-5 rounded-r-full bg-[#1D4ED8]"})]})}),e.jsx(B,{side:"right",sideOffset:14,className:"bg-[#10111D] text-white text-xs px-3 py-1.5 rounded-lg font-medium",children:"Einstellungen"})]})}),e.jsx(z,{}),e.jsx(D,{delayDuration:100,children:e.jsxs(F,{children:[e.jsx(k,{asChild:!0,children:e.jsx("button",{onClick:u,className:"w-11 h-11 rounded-[10px] flex items-center justify-center text-[#6B7280] hover:text-red-500 hover:bg-red-50 transition-colors duration-150",children:e.jsx(R,{className:"w-[18px] h-[18px]",strokeWidth:1.8})})}),e.jsx(B,{side:"right",sideOffset:14,className:"bg-[#10111D] text-white text-xs px-3 py-1.5 rounded-lg font-medium",children:"Abmelden"})]})}),e.jsx("button",{className:"w-10 h-10 rounded-full bg-[#EDEFFA] border-2 border-[#1D4ED8]/15 flex items-center justify-center hover:border-[#1D4ED8]/30 transition-colors duration-150",children:e.jsx("span",{className:"text-[13px] font-semibold text-[#1D4ED8]",children:t})})]})]})},he=a=>[{icon:Q,label:"Ãbersicht",to:"/cockpit"},{icon:L,label:"Objekte",to:"/properties"},{icon:H,label:"Finanzen",to:"/finances"},{icon:$,label:a?"Eigentümer":"Mieter",to:"/tenants"},{icon:C,label:"Kommunikation",to:"/communication"},{icon:W,label:"Dokumente",to:"/documents"},{icon:G,label:"Termine",to:"/calendar"},{icon:U,label:"Auswertungen",to:"/analytics"},{icon:V,label:"Empfehlungen",to:"/recommendations"},{icon:Y,label:"Einstellungen",to:"/settings"}],pe=({children:a})=>{const[i,l]=v.useState(!1),{pathname:n}=P(),t=I(),{signOut:o}=y(),{data:d}=S({queryKey:["my-role"],queryFn:async()=>{const{data:s,error:r}=await E.rpc("get_my_role");if(r)throw r;return s},staleTime:5*60*1e3}),{data:h}=K(),u=v.useMemo(()=>!h||h.length===0?!1:h.every(s=>s.bewirtschaftungstyp==="stwe"),[h]),p=v.useMemo(()=>he(u),[u]),b=s=>{t(s),l(!1)},c=async()=>{l(!1),await o(),t("/auth")};return e.jsxs("div",{className:"min-h-screen bg-[#F7F8FB] flex",children:[e.jsx(me,{}),e.jsxs("div",{className:"flex-1 min-w-0 p-3 md:p-6 overflow-auto relative",children:[e.jsxs(J,{open:i,onOpenChange:l,children:[e.jsx("div",{className:"sticky top-0 z-30 bg-[#F7F8FB]/90 backdrop-blur-md -mx-3 px-3 pt-3 pb-2 lg:hidden",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-10 flex items-center shrink-0",children:e.jsx("img",{src:T,alt:"Valtis",className:"h-7 w-auto object-contain"})}),e.jsx("div",{className:"flex-1"}),e.jsx(z,{}),e.jsx(X,{asChild:!0,children:e.jsx("button",{className:"w-11 h-11 rounded-[10px] bg-white border border-[#E5E7EB]/40 flex items-center justify-center",children:e.jsx(ee,{className:"w-5 h-5 text-[#10111D]"})})})]})}),e.jsxs(se,{side:"left",className:"w-[272px] p-0 flex flex-col bg-white",children:[e.jsx(te,{className:"sr-only",children:"Navigation"}),e.jsx("div",{className:"flex items-center gap-3 px-5 pt-5 pb-3",children:e.jsx("img",{src:T,alt:"Valtis",className:"h-6"})}),e.jsx("nav",{className:"flex flex-col gap-0.5 px-3 mt-2 flex-1",children:p.map(s=>{const r=s.to?n.startsWith(s.to):!1,m=s.icon;return e.jsxs("button",{onClick:()=>s.to&&b(s.to),className:` 28 relative flex items-center gap-3 px-3 py-2.5 rounded-[10px] text-sm font-medium transition-colors duration-150
29 ${r?"bg-[#EDEFFA] text-[#1D4ED8]":"text-[#6B7280] hover:text-[#10111D] hover:bg-[#EDEFFA]"} 30 `,children:[r&&e.jsx("span",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-5 rounded-r-full bg-[#1D4ED8]"}),e.jsx(m,{className:"w-[18px] h-[18px] shrink-0"}),e.jsx("span",{children:s.label})]},s.label)})}),e.jsx("div",{className:"px-3 pb-5 pt-2 border-t border-[#E5E7EB]/40",children:e.jsxs("button",{onClick:c,className:"flex items-center gap-3 px-3 py-2.5 rounded-[10px] text-sm font-medium text-[#6B7280] hover:text-red-500 hover:bg-red-50 transition-colors duration-150 w-full",children:[e.jsx(R,{className:"w-[18px] h-[18px]"}),e.jsx("span",{children:"Abmelden"})]})})]})]}),a]})]})};function ue(){const{user:a}=y();return S({queryKey:["owner-profile",a==null?void 0:a.id],queryFn:async()=>{const i=E,{data:l,error:n}=await E.from("users").select("id, name, email, phone, address, language").eq("id",a.id).single();if(n)throw n;const{data:t,error:o}=await i.from("owner_profiles").select("*").eq("user_id",a.id).maybeSingle();if(o)throw o;return{user:l,profile:t??null}},enabled:!!a,staleTime:5*60*1e3})}function be(){const{user:a}=y(),i=ae();return ne({mutationFn:async l=>{const n=E,{error:t}=await n.from("owner_profiles").update(l).eq("user_id",a.id);if(t)throw t},onSuccess:()=>{i.invalidateQueries({queryKey:["owner-profile"]})}})}function ge(a){return a?a.split(" ").map(i=>i[0]).join("").toUpperCase().slice(0,2):"?"}function M(a){return a?new Date(a).toLocaleDateString("de-CH",{day:"2-digit",month:"2-digit",year:"numeric"}):null}function fe(a){return a==null?"â":new Intl.NumberFormat("de-CH",{style:"currency",currency:"CHF",maximumFractionDigits:0}).format(a)}const je=[{value:"immediate",label:"Sofort"},{value:"daily",label:"Taeglich"},{value:"weekly",label:"Woechentlich"}],O={immediate:"Sofort",daily:"Taeglich",weekly:"Woechentlich"},ve=[{value:"email",label:"E-Mail",icon:le},{value:"sms",label:"SMS",icon:C},{value:"push",label:"Push",icon:de}],q={conservative:"Konservativ",balanced:"Ausgewogen",aggressive:"Aggressiv"},Ee={conservative:"Sicherheit und Werterhalt stehen im Vordergrund",balanced:"Ausgewogenes Verhaeltnis zwischen Sicherheit und Rendite",aggressive:"Maximale Rendite bei hoeherem Risiko"};function f({icon:a,title:i}){return e.jsxs("div",{className:"flex items-center gap-2.5 mb-5",children:[e.jsx("div",{className:"w-8 h-8 rounded-[10px] bg-[#EDEFFA] flex items-center justify-center",children:e.jsx(a,{className:"w-4 h-4 text-[#1D4ED8]"})}),e.jsx("h2",{className:"text-[15px] font-semibold text-[#10111D]",children:i})]})}function j({label:a,value:i}){return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold",children:a}),e.jsx("span",{className:"text-[14px] text-[#10111D] font-medium",children:i||"â"})]})}function Ne(){return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(x,{className:"h-3 w-16"}),e.jsx(x,{className:"h-4 w-32"})]})}const $e=()=>{const{data:a,isLoading:i}=ue(),l=be(),n=a==null?void 0:a.user,t=a==null?void 0:a.profile,o=(t==null?void 0:t.vacation_delegate_user_id)??null,{data:d}=S({queryKey:["delegate-user",o],queryFn:async()=>{const{data:s}=await E.from("users").select("name, email").eq("id",o).single();return s},enabled:!!o,staleTime:10*60*1e3}),h=(d==null?void 0:d.name)||(d==null?void 0:d.email)||o,u=s=>{l.mutate({notification_frequency:s},{onSuccess:()=>g({title:"Gespeichert",description:`Benachrichtigungshaeufigkeit auf â${O[s]??s}â gesetzt.`}),onError:()=>g({title:"Fehler",description:"Einstellung konnte nicht gespeichert werden.",variant:"destructive"})})},p=s=>{const m=((t==null?void 0:t.preferred_channel)??"").split(",").map(w=>w.trim()).filter(Boolean),Z=(m.includes(s)?m.filter(w=>w!==s):[...m,s]).join(",");l.mutate({preferred_channel:Z},{onSuccess:()=>g({title:"Gespeichert",description:"Kanal aktualisiert."}),onError:()=>g({title:"Fehler",description:"Einstellung konnte nicht gespeichert werden.",variant:"destructive"})})},b=((t==null?void 0:t.preferred_channel)??"").split(",").map(s=>
30s.trim()).filter(Boolean),c=(t==null?void 0:t.decision_style)??"";return e.jsx(pe,{children:e.jsx("div",{className:"min-h-screen bg-[#F7F8FB]",children:e.jsxs("div",{className:"max-w-[1440px] mx-auto w-full flex flex-col gap-5 px-4 md:px-6 lg:px-8 py-6 md:py-8 pb-12",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-[26px] md:text-[28px] font-bold text-[#10111D] leading-tight",children:"Einstellungen"}),e.jsx("p",{className:"text-[13px] text-[#6B7280] mt-1",children:"Profil, Benachrichtigungen & Praeferenzen"})]}),e.jsxs("section",{className:"rounded-[14px] bg-white border border-[#E5E7EB]/40 p-6",children:[e.jsx(f,{icon:re,title:"Profil"}),i?e.jsxs("div",{className:"flex items-start gap-6",children:[e.jsx(x,{className:"w-16 h-16 rounded-full shrink-0"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-4 flex-1",children:Array.from({length:5}).map((s,r)=>e.jsx(Ne,{},r))})]}):e.jsxs("div",{className:"flex items-start gap-6",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-[#EDEFFA] flex items-center justify-center shrink-0",children:e.jsx("span",{className:"text-[20px] font-bold text-[#1D4ED8]",children:ge(n==null?void 0:n.name)})}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-4 flex-1",children:[e.jsx(j,{label:"Name",value:n==null?void 0:n.name}),e.jsx(j,{label:"E-Mail",value:n==null?void 0:n.email}),e.jsx(j,{label:"Telefon",value:n==null?void 0:n.phone}),e.jsx(j,{label:"Adresse",value:n!=null&&n.address?String(n.address):null}),e.jsx(j,{label:"Sprache",value:n==null?void 0:n.language})]})]})]}),e.jsxs("section",{className:"rounded-[14px] bg-white border border-[#E5E7EB]/40 p-6",children:[e.jsx(f,{icon:ie,title:"Benachrichtigungen"}),i?e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"flex gap-3",children:[1,2,3].map(s=>e.jsx(x,{className:"h-14 w-[140px] rounded-[10px]"},s))}),e.jsx("div",{className:"flex gap-3",children:[1,2,3].map(s=>e.jsx(x,{className:"h-11 w-[120px] rounded-[10px]"},s))})]}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold mb-3 block",children:"Kanaele"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:ve.map(s=>{const r=b.includes(s.value),m=s.icon;return e.jsxs("button",{onClick:()=>p(s.value),disabled:l.isPending,className:`flex items-center gap-2.5 px-4 py-2.5 rounded-[10px] border cursor-pointer transition-all ${r?"border-[#1D4ED8] bg-[#EDEFFA] text-[#1D4ED8]":"border-[#E5E7EB] text-[#10111D] hover:border-[#1D4ED8]/30 bg-[#F7F8FB]"}`,children:[e.jsx(m,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[13px] font-medium",children:s.label}),e.jsx("div",{className:`w-8 h-[18px] rounded-full transition-colors ml-1 relative ${r?"bg-[#1D4ED8]":"bg-[#E5E7EB]"}`,children:e.jsx("div",{className:`w-3.5 h-3.5 rounded-full bg-white absolute top-[2px] transition-all ${r?"left-[17px]":"left-[2px]"}`})})]},s.value)})})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold mb-3 block",children:"Haeufigkeit"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:je.map(s=>{const r=(t==null?void 0:t.notification_frequency)===s.value;return e.jsx("button",{onClick:()=>u(s.value),disabled:l.isPending,className:`min-w-[130px] p-3.5 rounded-[10px] border cursor-pointer transition-all text-left ${r?"border-[#1D4ED8] bg-[#EDEFFA]":"border-[#E5E7EB] bg-[#F7F8FB] hover:border-[#1D4ED8]/30"}`,children:e.jsx("span",{className:`text-[13px] font-semibold block ${r?"text-[#1D4ED8]":"text-[#10111D]"}`,children:O[s.value]})},s.value)})})]})]})]}),e.jsxs("section",{className:"rounded-[14px] bg-white border border-[#E5E7EB]/40 p-6",children:[e.jsx(f,{icon:oe,title:"Finanzen & Risikoprofil"}),i?e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[1,2,3].map(s=>e.jsx(x,{className:"h-24 rounded-[10px]"},s))}):e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold mb-3 block",children:"Risikoprofil"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:["conservative","balanced","aggressive"].map(s=>{const r=c===s;return e.jsxs("button",{onClick:()=>{l.mutate({decision_style:s},{onSuccess:()=>g({title:"Gespeichert",description:`Risikoprofil auf â${q[s]}â gesetzt.`}),onError:()=>g({title:"Fehler",description:"Einstellung konnte nicht gespeichert werden.",variant:"destructive"})})},disabled:l.isPending,className:`rounded-[10px] border p-4 text-left cursor-pointer transition-all ${r?"border-[#1D4ED8] bg-[#EDE
30FFA]":"border-[#E5E7EB] bg-[#F7F8FB] hover:border-[#1D4ED8]/30"}`,children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-1.5",children:[e.jsx("div",{className:`w-4 h-4 rounded-full border-2 flex items-center justify-center ${r?"border-[#1D4ED8]":"border-[#E5E7EB]"}`,children:r&&e.jsx("div",{className:"w-2 h-2 rounded-full bg-[#1D4ED8]"})}),e.jsx("span",{className:`text-[14px] font-semibold ${r?"text-[#1D4ED8]":"text-[#10111D]"}`,children:q[s]})]}),e.jsx("p",{className:"text-[12px] text-[#6B7280] leading-relaxed ml-[26px]",children:Ee[s]})]},s)})})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"rounded-[10px] bg-[#F7F8FB] border border-[#E5E7EB]/60 p-4",children:[e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold block mb-1",children:"AI-Vertrauensschwelle"}),e.jsx("span",{className:"text-[18px] font-bold text-[#10111D] font-mono",children:(t==null?void 0:t.agent_confidence)!=null?`${t.agent_confidence}%`:"â"})]}),e.jsxs("div",{className:"rounded-[10px] bg-[#F7F8FB] border border-[#E5E7EB]/60 p-4",children:[e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold block mb-1",children:"Auto-Genehmigung bis"}),e.jsx("span",{className:"text-[18px] font-bold text-[#10111D] font-mono",children:(t==null?void 0:t.approval_threshold_chf)!=null?fe(t.approval_threshold_chf):"â"})]})]})]})]}),e.jsxs("section",{className:"rounded-[14px] bg-white border border-[#E5E7EB]/40 p-6",children:[e.jsx(f,{icon:ce,title:"Stellvertretung"}),i?e.jsxs("div",{className:"space-y-2",children:[e.jsx(x,{className:"h-4 w-64"}),e.jsx(x,{className:"h-4 w-48"})]}):(()=>{const s=t==null?void 0:t.vacation_from,r=t==null?void 0:t.vacation_until,m=t==null?void 0:t.vacation_delegate_user_id,A=s&&r;return e.jsx("div",{className:"space-y-2 text-[14px] text-[#10111D]",children:A?e.jsx(e.Fragment,{children:e.jsxs("div",{className:"rounded-[10px] bg-[#EDEFFA] border border-[#1D4ED8]/20 p-4",children:[e.jsxs("p",{className:"font-medium text-[#1D4ED8]",children:["Urlaubsmodus aktiv: ",M(s)," - ",M(r)]}),m&&e.jsxs("p",{className:"text-[#6B7280] text-[13px] mt-1",children:["Stellvertreter: ",h]})]})}):e.jsx("div",{className:"rounded-[10px] bg-[#F7F8FB] border border-[#E5E7EB]/60 p-4",children:e.jsx("p",{className:"text-[#6B7280] text-[13px]",children:"Kein Urlaubsmodus aktiv"})})})})()]}),e.jsxs("section",{className:"rounded-[14px] bg-white border border-[#E5E7EB]/40 p-6",children:[e.jsx(f,{icon:_,title:"Konto & Sicherheit"}),i?e.jsxs("div",{className:"space-y-3",children:[e.jsx(x,{className:"h-10 w-48 rounded-xl"}),e.jsx(x,{className:"h-4 w-56"})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{disabled:!0,className:"px-5 py-2.5 rounded-xl bg-[#1D4ED8] text-white text-[13px] font-semibold cursor-not-allowed opacity-50",children:"Passwort aendern"}),e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold",children:"Kommt bald"})]}),e.jsx("div",{className:"h-px bg-[#E5E7EB]/40"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(_,{className:"w-4 h-4 text-[#6B7280]"}),e.jsx("span",{className:"text-[14px] text-[#10111D] font-medium",children:"Zwei-Faktor-Authentifizierung"})]}),e.jsx("span",{className:"text-[11px] uppercase tracking-[0.06em] text-[#6B7280] font-semibold bg-[#F7F8FB] border border-[#E5E7EB]/60 rounded-full px-3 py-1",children:"Nicht aktiviert"})]})]})]})]})})})};export{$e as default};
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.