const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-CB5shxrf.js","assets/react-core-lkHtAB4F.js","assets/content-rendering-8LECY7UC.js","assets/vendor-d-100-DUwYIYiB.js","assets/vendor-b-98-FqpXQuLt.js","assets/vendor-e-101-D7dDjsNb.js","assets/vendor-i-105-DLPNJOh-.js","assets/vendor-t-116-CEUFdAEd.js","assets/vendor-v-118-B42bNtZ1.js","assets/vendor-u-117-DC4Cwaa0.js","assets/vendor-m-109-Du2052Hq.js","assets/vendor-misc-bJru-SXh.js","assets/monitoring-ujEZdQJ7.js","assets/vendor-c-99-Gw4UEZta.js","assets/utilities-DzfkJJIA.js","assets/vendor-l-108-biR2a0RG.js","assets/vendor-h-104-DCFH7znV.js","assets/vendor-p-112-kISQk9cd.js","assets/vendor-s-115-HsCUIFCF.js","assets/vendor-k-107-l3izQsJJ.js","assets/vendor-w-119-DEalYQv-.js","assets/vendor-z-122-C2o2j-tx.js","assets/data-management-CSLZJBZl.js","assets/supabase-CKDg3fzJ.js","assets/routing-bPD8jJPt.js","assets/ui-components-BynZGDZK.js","assets/vendor-r-114-CLOL6tQd.js","assets/vendor-g-103-C-Z93AgS.js","assets/vendor-o-111-DqGjtsCy.js","assets/vendor-a-97-DQ5UC2Eg.js","assets/animations-BEWJQp7A.js","assets/forms-CpJGTZPH.js","assets/Settings-ucKNCtar.js","assets/NotFound-C36kn2Es.js","assets/Portfolio-aljwwD8k.js","assets/BusinessTools-DPhGtQan.js"])))=>i.map(i=>d[i]); var Ht=Object.defineProperty;var Wt=(s,t,a)=>t in s?Ht(s,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[t]=a;var xs=(s,t,a)=>Wt(s,typeof t!="symbol"?t+"":t,a);import{r as n,j as e,R as Cs,d as Vt}from"./react-core-lkHtAB4F.js";import{B as Ut}from"./vendor-misc-bJru-SXh.js";import{u as H,c as Gt,Q as Yt}from"./data-management-CSLZJBZl.js";import{c as Ts,S as Kt,T as Xt,A as Zt,_ as me}from"./supabase-CKDg3fzJ.js";import{u as G,L as v,a as $,b as Fe,O as Jt,B as Qt,R as ea,c as k,N as sa}from"./routing-bPD8jJPt.js";import{u as K,$ as ta}from"./vendor-s-115-HsCUIFCF.js";import{m as Is,M as ss,r as aa,b as ra}from"./content-rendering-8LECY7UC.js";import{O as Ps,P as ia,C as As,a as _s,T as Ms,D as Es,R as na,b as oa,S as la,c as Ls,L as Rs,I as ca,d as Fs,e as Ds,V as zs,f as da,g as Os,h as $s,F as Bs,i as qs,j as ma,k as Hs,l as Ws,m as Vs,n as Us,o as ua,p as Gs,q as Ys,r as ha,s as Ks,t as Xs,u as Zs,v as Js,w as Qs,x as et,y as st,z as xa,A as pa,B as tt}from"./ui-components-BynZGDZK.js";import{a as ue}from"./vendor-c-99-Gw4UEZta.js";import{t as ga,c as fa,f as at}from"./utilities-DzfkJJIA.js";import{X as ie,M as rt,C as ja,S as q,a as he,U as we,P as ts,T as Ee,G as it,L as Le,b as ke,N as ba,c as De,D as ze,d as Ne,E as as,A as ya,e as Se,f as rs,g as va,h as nt,i as ot,j as ee,k as Na,H as lt,B as ct,m as is,n as Oe,o as xe,p as ns,q as dt,r as se,s as mt,t as oe,u as pe,v as Qe,w as le,x as wa,y as ut,z as os,I as ka,F as Sa,J as ls,K as Ca,O as Ta,Q as Ia,R as Pa,V as ht,W as ce,Y as ps,Z as gs,_ as de,$ as Aa,a0 as _a,a1 as Ma,a2 as Ea,a3 as La,a4 as Ra,a5 as Fa,a6 as $e,a7 as Da,a8 as za,a9 as Oa,aa as $a,ab as xt,ac as pt,ad as Ba,ae as qa,af as Ha,ag as Wa,ah as Va,ai as Ua,aj as Ga,ak as Ya,al as Ka,am as Xa,an as Za,ao as Ye,ap as gt,aq as Ja,ar as Qa,as as er,at as sr,au as tr}from"./vendor-l-108-biR2a0RG.js";import{m as U,A as ft}from"./animations-BEWJQp7A.js";import{z as L,u as ar,t as rr}from"./forms-CpJGTZPH.js";import{H as jt}from"./vendor-r-114-CLOL6tQd.js";import{C as ir,D as nr}from"./monitoring-ujEZdQJ7.js";import"./vendor-i-105-DLPNJOh-.js";import"./vendor-k-107-l3izQsJJ.js";import"./vendor-e-101-D7dDjsNb.js";import"./vendor-d-100-DUwYIYiB.js";import"./vendor-b-98-FqpXQuLt.js";import"./vendor-t-116-CEUFdAEd.js";import"./vendor-v-118-B42bNtZ1.js";import"./vendor-u-117-DC4Cwaa0.js";import"./vendor-m-109-Du2052Hq.js";import"./vendor-h-104-DCFH7znV.js";import"./vendor-p-112-kISQk9cd.js";import"./vendor-w-119-DEalYQv-.js";import"./vendor-z-122-C2o2j-tx.js";import"./vendor-a-97-DQ5UC2Eg.js";import"./vendor-g-103-C-Z93AgS.js";import"./vendor-o-111-DqGjtsCy.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function a(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=a(r);fetch(r.href,o)}})();class or extends n.Component{constructor(){super(...arguments);xs(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,i){console.error("Uncaught error:",a,i)}render(){return this.state.hasError?e.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:e.jsx("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden",children:e.jsxs("div",{className:"p-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-red-600 dark:text-red-400 mb-4",children:"Something went wrong"}),e.jsx("div",{className:"bg-red-50 dark:bg-red-900/30 p-4 rounded-md mb-4",children:e.jsx("p",{className:"text-sm text-red-800 dark:text-red-300 overflow-auto max-h-40",children:this.state.error?.message||"An unknown error occurred"})}),e.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:"The application encountered an unexpected error. Please try refreshing the page."}),e.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2 px-4 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md transition-colors",children:"Reload Page"})]})})}):this.props.children}}async function bt(s){try{console.log(`[content-client] Loading content from: ${s}`);const t=s.startsWith("/")?s:`/${s}`,a=await fetch(t,{cache:"no-cache",headers:{"Content-Type":"text/plain","Cache-Control":"no-cache"}});if(!a.ok)throw console.error(`[content-client] Failed to load content at ${t}: ${a.status} ${a.statusText}`),new Error(`Failed to load content at ${t}: ${a.status} ${a.statusText}`);const i=await a.text();console.log(`[content-client] Content loaded successfully, length: ${i.length} characters`);try{console.log(`[content-client] Content starts with: "${i.substring(0,50).replace(/\n/g,"\\n")}..."`);let r={},o=i;if(i.trimStart().startsWith("---"))try{const c=Is(i);console.log("[content-client] Frontmatter parsed successfully:",c.data),r=c.data,o=c.content}catch(c){console.error("[content-client] Error using gray-matter:",c),console.log("[content-client] Falling back to manual frontmatter parsing");const l=i.split("---");if(l.length>=3)try{const u=l[1].trim(),m={};u.split(` `).forEach(d=>{const j=d.indexOf(":");if(j>0){const y=d.substring(0,j).trim();let b=d.substring(j+1).trim();(b.startsWith("'")&&b.endsWith("'")||b.startsWith('"')&&b.endsWith('"'))&&(b=b.substring(1,b.length-1)),m[y]=b}}),console.log("[content-client] Manual frontmatter parsing result:",m),r=m,o=l.slice(2).join("---")}catch(u){console.error("[content-client] Manual frontmatter parsing failed:",u)}}return Object.keys(r).length===0&&(r={title:"HabitusNet",description:"IT Security & Digital Transformation"}),{frontmatter:r,content:o,path:s}}catch(r){return console.error("[content-client] Error in frontmatter processing:",r),{frontmatter:{title:"HabitusNet",description:"IT Security & Digital Transformation"},content:i,path:s}}}catch(t){return console.error("[content-client] Error loading content:",t),{frontmatter:{title:"HabitusNet",description:"IT Security & Digital Transformation"},content:`# Welcome to HabitusNet Content is currently unavailable. Please try again later.`,path:s}}}function x(...s){return ga(fa(s))}const lr=na,cr=oa,dr=_s,mr=ia,yt=n.forwardRef(({className:s,...t},a)=>e.jsx(Ps,{className:x("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...t,ref:a}));yt.displayName=Ps.displayName;const ur=ue("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),vt=n.forwardRef(({side:s="right",className:t,children:a,...i},r)=>e.jsxs(mr,{children:[e.jsx(yt,{}),e.jsxs(As,{ref:r,className:x(ur({side:s}),t),...i,children:[a,e.jsxs(_s,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(ie,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));vt.displayName=As.displayName;const hr=n.forwardRef(({className:s,...t},a)=>e.jsx(Ms,{ref:a,className:x("text-lg font-semibold text-foreground",s),...t}));hr.displayName=Ms.displayName;const xr=n.forwardRef(({className:s,...t},a)=>e.jsx(Es,{ref:a,className:x("text-sm text-muted-foreground",s),...t}));xr.displayName=Es.displayName;const pr=ue("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",swiss:"bg-swissRed text-white hover:bg-swissRed/90",midnight:"bg-midnightBlue text-white hover:bg-midnightBlue/90",steel:"bg-steelGrey text-white hover:bg-steelGrey/90",pale:"bg-paleBlue text-midnightBlue hover:bg-paleBlue/90",outline_swiss:"border border-swissRed text-swissRed hover:bg-swissRed/10",outline_midnight:"border border-midnightBlue text-midnightBlue hover:bg-midnightBlue/10"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),p=n.forwardRef(({className:s,variant:t,size:a,asChild:i=!1,...r},o)=>{const c=i?la:"button";return e.jsx(c,{className:x(pr({variant:t,size:a,className:s})),ref:o,...r})});p.displayName="Button";const gr=()=>{const s=G(),[t,a]=n.useState(!1),i=n.useRef(null);n.useEffect(()=>{a(!1)},[s.pathname]);const r={Solutions:[{title:"For Enterprise",href:"/solutions/enterprise"},{title:"For SMBs",href:"/solutions/smb"}],Industries:[{title:"Family Offices",href:"/industries/family-offices"},{title:"Asset Management",href:"/industries/asset-management"},{title:"Trust Companies",href:"/industries/trust-companies"}],Services:[{title:"Managed Security",href:"/services/managed-security"},{title:"Cloud Solutions",href:"/services/cloud-solutions"},{title:"Security Consulting",href:"/services/security-consulting"},{title:"Support Services",href:"/services/support"}],Resources:[{title:"Blog",href:"/resources/blog"},{title:"Case Studies",href:"/resources/case-studies"},{title:"Knowledge Base",href:"/resources/knowledge-base"}],Company:[{title:"About Us",href:"/about"},{title:"Team",href:"/team"},{title:"Careers",href:"/careers"},{title:"Contact",href:"/contact"}]};return e.jsxs(lr,{open:t,onOpenChange:a,children:[e.jsx(cr,{asChild:!0,children:e.jsx(p,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":"Open mobile menu","aria-expanded":t,"aria-controls":"mobile-menu",children:e.jsx(rt,{className:"h-6 w-6","aria-hidden":"true"})})}),e.jsxs(vt,{side:"right",className:"w-[300px] sm:w-[400px] p-0 pt-12",id:"mobile-menu","aria-label":"Mobile navigation menu",children:[e.jsxs("div",{className:"flex justify-between items-center p-4 border-b",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Menu"}),e.jsx(dr,{ref:i,asChild:!0,children:e.jsx(p,{variant:"ghost",size:"icon","aria-label":"Close menu",className:"rounded-full hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:e.jsx(ie,{className:"h-5 w-5","aria-hidden":"true"})})})]}),e.jsx("nav",{className:"flex flex-col gap-4 p-4 overflow-y-auto max-h-[80vh]","aria-label":"Mobile navigation",children:Object.entries(r).map(([o,c])=>e.jsxs("div",{className:"py-2",children:[e.jsx("h3",{id:`mobile-category-${o.toLowerCase()}`,className:"text-sm font-medium text-foreground mb-2 uppercase tracking-wider",children:o}),e.jsx("ul",{className:"flex flex-col gap-2 pl-4",role:"menu","aria-labelledby":`mobile-category-${o.toLowerCase()}`,children:c.map(l=>{const u=s.pathname===l.href;return e.jsx("li",{role:"menuitem",children:e.jsx(v,{to:l.href,className:x("text-base px-2 py-1.5 rounded-md block focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-colors",u?"text-primary font-medium bg-accent/50":"text-muted-foreground hover:text-foreground hover:bg-accent/30"),"aria-current":u?"page":void 0,onClick:()=>a(!1),children:l.title})},l.href)})})]},o))})]})]})},Nt=n.forwardRef(({className:s,children:t,...a},i)=>e.jsx(Ls,{ref:i,className:x("relative z-50 flex max-w-max flex-1 items-center justify-center",s),...a,children:t}));Nt.displayName=Ls.displayName;const wt=n.forwardRef(({className:s,...t},a)=>e.jsx(Rs,{ref:a,className:x("group flex flex-1 list-none items-center justify-center space-x-1",s),...t}));wt.displayName=Rs.displayName;const Ce=ca,ge=n.forwardRef(({className:s,...t},a)=>e.jsx(Fs,{ref:a,className:x("absolute top-0 left-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:w-auto",s),...t}));ge.displayName=Fs.displayName;const fr=ue("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),fe=n.forwardRef(({className:s,children:t,...a},i)=>e.jsxs(Ds,{ref:i,className:x(fr(),"group",s),...a,children:[t," ",e.jsx(ja,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));fe.displayName=Ds.displayName;const kt=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{className:x("absolute left-0 top-full flex justify-center"),children:e.jsx(zs,{className:x("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",s),ref:a,...t})}));kt.displayName=zs.displayName;const Te=da,jr=({isActive:s=!1})=>{const t=G(),a=t.pathname.includes("/solutions"),i=[{title:"HN-SecuWatch 365",description:"Comprehensive security monitoring and threat detection",href:"/solutions/secuwatch"},{title:"Modern Workplace",description:"Transform your business with intelligent workplace solutions",href:"/solutions/modern-workplace"}];return e.jsxs(Ce,{children:[e.jsx(fe,{className:`bg-transparent text-foreground/90 font-medium hover:text-foreground transition-colors duration-200 ${s||a?"text-foreground font-semibold":""}`,"aria-expanded":"false","aria-haspopup":"true","aria-label":"Solutions menu","aria-current":s||a?"page":void 0,children:"Solutions"}),e.jsx(ge,{children:e.jsx("div",{className:"w-[400px] bg-background/98 backdrop-blur-md p-4 rounded-lg border shadow-lg",children:e.jsx("ul",{className:"grid gap-3",role:"menu","aria-label":"Solutions submenu",children:i.map(r=>e.jsx("li",{className:"hover-lift",role:"menuitem",children:e.jsx(Te,{asChild:!0,children:e.jsxs(v,{to:r.href,className:"block p-4 rounded-lg hover:bg-accent transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none","aria-current":t.pathname===r.href?"page":void 0,children:[e.jsx("h3",{className:"text-foreground font-medium mb-1",children:r.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:r.description})]})})},r.title))})})})]})},br=({isActive:s=!1})=>{const t=G(),a=[{title:"Family Offices",description:"Tailored solutions for family office operations",href:"/industries/family-offices"},{title:"Asset Management",description:"Secure infrastructure for asset managers",href:"/industries/asset-management"},{title:"Trust Companies",description:"Compliance and security solutions for trust companies",href:"/industries/trust-companies"},{title:"Supply Chain",description:"End-to-end supply chain security",href:"/industries/supply-chain"},{title:"Legal Services",description:"IT solutions for legal professionals",href:"/industries/legal"},{title:"Accounting",description:"Secure systems for accounting firms",href:"/industries/accounting"}],i=t.pathname.includes("/industries")||a.some(r=>t.pathname===r.href);return e.jsxs(Ce,{children:[e.jsx(fe,{className:`bg-transparent text-foreground/90 font-medium hover:text-foreground transition-colors duration-200 ${s||i?"text-foreground font-semibold":""}`,"aria-expanded":"false","aria-haspopup":"true","aria-label":"Industries menu","aria-current":s||i?"page":void 0,children:"Industries"}),e.jsx(ge,{children:e.jsx("ul",{className:"grid w-[400px] gap-3 p-4 bg-background/98 backdrop-blur-md rounded-lg border shadow-lg",role:"menu","aria-label":"Industries submenu",children:a.map(r=>{const o=t.pathname===r.href;return e.jsx("li",{role:"menuitem",children:e.jsx(Te,{asChild:!0,children:e.jsxs(v,{to:r.href,className:`block p-4 rounded-lg hover:bg-accent transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none ${o?"bg-accent/50":""}`,"aria-current":o?"page":void 0,children:[e.jsx("h3",{className:`font-medium mb-1 ${o?"text-primary":"text-foreground"}`,children:r.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:r.description})]})})},r.title)})})})]})},yr=({isActive:s=!1})=>{const t=G(),a=[{title:"Managed Security",description:"24/7 security monitoring and incident response",href:"/services/managed-security",icon:q},{title:"Cloud Solutions",description:"Secure cloud infrastructure and migration",href:"/services/cloud-solutions",icon:he},{title:"Security Consulting",description:"Expert security assessment and strategy",href:"/services/security-consulting",icon:we},{title:"Support Services",description:"Technical support and maintenance",href:"/services/support",icon:ts}],i=a.some(r=>t.pathname===r.href);return e.jsxs(Ce,{children:[e.jsx(fe,{className:`bg-transparent text-foreground/90 font-medium hover:text-foreground transition-colors duration-200 ${s||i?"text-foreground font-semibold":""}`,"aria-expanded":"false","aria-haspopup":"true","aria-label":"Services menu","aria-current":s||i?"page":void 0,children:"Services"}),e.jsx(ge,{children:e.jsx("ul",{className:"grid w-[600px] grid-cols-2 gap-4 p-6 bg-background/98 backdrop-blur-md rounded-lg border shadow-lg list-none m-0",role:"menu","aria-label":"Services submenu",children:a.map(r=>{const o=t.pathname===r.href,c=r.icon;return e.jsx("li",{role:"menuitem",children:e.jsx(Te,{asChild:!0,children:e.jsx(v,{to:r.href,className:`block p-4 rounded-lg hover:bg-accent transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none ${o?"bg-accent/50":""}`,"aria-current":o?"page":void 0,children:e.jsxs("div",{className:"flex items-start gap-3",children:[c&&e.jsx("span",{className:"mt-0.5 text-primary","aria-hidden":"true",children:e.jsx(c,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:`font-medium mb-1 ${o?"text-primary":"text-foreground"}`,children:r.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r.description})]})]})})})},r.href)})})})]})},vr=({isActive:s=!1})=>{const t=G(),a=t.pathname.includes("/resources")||t.pathname.includes("/blog"),i=[{title:"Blog",description:"Latest insights and updates",href:"/resources/blog"},{title:"Case Studies",description:"Real-world success stories",href:"/resources/case-studies"},{title:"Whitepapers",description:"In-depth technical resources",href:"/resources/whitepapers"},{title:"Webinars",description:"Educational online sessions",href:"/resources/webinars"}];return e.jsxs(Ce,{children:[e.jsx(fe,{className:`bg-transparent text-foreground/90 font-medium hover:text-foreground transition-colors duration-200 ${s||a?"text-foreground font-semibold":""}`,"aria-expanded":"false","aria-haspopup":"true","aria-label":"Resources menu","aria-current":s||a?"page":void 0,children:"Resources"}),e.jsx(ge,{children:e.jsx("ul",{className:"grid w-[400px] gap-3 p-4 bg-background/98 backdrop-blur-md rounded-lg border shadow-lg",role:"menu","aria-label":"Resources submenu",children:i.map(r=>e.jsx("li",{role:"menuitem",children:e.jsx(Te,{asChild:!0,children:e.jsxs(v,{to:r.href,className:"block p-4 rounded-lg hover:bg-accent transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none","aria-current":t.pathname===r.href?"page":void 0,children:[e.jsx("h3",{className:`font-medium mb-1 ${t.pathname===r.href?"text-primary":"text-foreground"}`,children:r.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:r.description})]})})},r.title))})})]})},Nr=({isActive:s=!1})=>{const t=G(),a=t.pathname.includes("/about")||t.pathname.includes("/team")||t.pathname.includes("/careers")||t.pathname.includes("/contact"),i=[{title:"About Us",description:"Our story, mission, and values",href:"/about"},{title:"Team",description:"Meet our leadership and experts",href:"/team"},{title:"Careers",description:"Join our growing team",href:"/careers"},{title:"Contact",description:"Get in touch with us",href:"/contact"}];return e.jsxs(Ce,{children:[e.jsx(fe,{className:`bg-transparent text-foreground/90 font-medium hover:text-foreground transition-colors duration-200 ${s||a?"text-foreground font-semibold":""}`,"aria-expanded":"false","aria-haspopup":"true","aria-label":"Company menu","aria-current":s||a?"page":void 0,children:"Company"}),e.jsx(ge,{children:e.jsx("div",{className:"grid w-[400px] gap-3 p-4 bg-background/98 backdrop-blur-md rounded-lg border shadow-lg",children:e.jsx("ul",{className:"grid gap-3",role:"menu","aria-label":"Company submenu",children:i.map(r=>{const o=t.pathname===r.href;return e.jsx("li",{role:"menuitem",children:e.jsx(Te,{asChild:!0,children:e.jsxs(v,{to:r.href,className:`block p-4 rounded-lg hover:bg-accent transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none ${o?"bg-accent/50":""}`,"aria-current":o?"page":void 0,children:[e.jsx("h3",{className:`font-medium mb-1 ${o?"text-primary":"text-foreground"}`,children:r.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r.description})]})})},r.href)})})})})]})},wr=()=>{const s=G(),[t,a]=n.useState(null);return n.useEffect(()=>{const i=s.pathname;i.includes("/solutions")?a("solutions"):i.includes("/industries")?a("industries"):i.includes("/services")?a("services"):i.includes("/resources")||i.includes("/blog")?a("resources"):i.includes("/about")||i.includes("/contact")?a("company"):a(null)},[s.pathname]),e.jsx("div",{className:"hidden md:flex justify-center w-full",children:e.jsxs(Nt,{className:"relative z-10","aria-label":"Main navigation",delayDuration:100,skipDelayDuration:0,children:[e.jsxs(wt,{className:"gap-2",children:[e.jsx(jr,{isActive:t==="solutions"}),e.jsx(br,{isActive:t==="industries"}),e.jsx(yr,{isActive:t==="services"}),e.jsx(vr,{isActive:t==="resources"}),e.jsx(Nr,{isActive:t==="company"})]}),e.jsx(kt,{className:"origin-top-center"})]})})},X=n.forwardRef(({className:s,type:t,...a},i)=>e.jsx("input",{type:t,className:x("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),ref:i,...a}));X.displayName="Input";const kr=1,Sr=1e6;let Ke=0;function Cr(){return Ke=(Ke+1)%Number.MAX_SAFE_INTEGER,Ke.toString()}const Xe=new Map,fs=s=>{if(Xe.has(s))return;const t=setTimeout(()=>{Xe.delete(s),ve({type:"REMOVE_TOAST",toastId:s})},Sr);Xe.set(s,t)},Tr=(s,t)=>{switch(t.type){case"ADD_TOAST":return{...s,toasts:[t.toast,...s.toasts].slice(0,kr)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=t;return a?fs(a):s.toasts.forEach(i=>{fs(i.id)}),{...s,toasts:s.toasts.map(i=>i.id===a||a===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return t.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(a=>a.id!==t.toastId)}}},Ae=[];let _e={toasts:[]};function ve(s){_e=Tr(_e,s),Ae.forEach(t=>{t(_e)})}function Ir({...s}){const t=Cr(),a=r=>ve({type:"UPDATE_TOAST",toast:{...r,id:t}}),i=()=>ve({type:"DISMISS_TOAST",toastId:t});return ve({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:r=>{r||i()}}}),{id:t,dismiss:i,update:a}}function Be(){const[s,t]=n.useState(_e);return n.useEffect(()=>(Ae.push(t),()=>{const a=Ae.indexOf(t);a>-1&&Ae.splice(a,1)}),[s]),{...s,toast:Ir,dismiss:a=>ve({type:"DISMISS_TOAST",toastId:a})}}const Pr=()=>e.jsxs("div",{className:"flex space-x-4",children:[e.jsx(p,{variant:"ghost",size:"icon",className:"hover:bg-white/10",children:e.jsx(Ee,{className:"w-5 h-5"})}),e.jsx(p,{variant:"ghost",size:"icon",className:"hover:bg-white/10",children:e.jsx(it,{className:"w-5 h-5"})}),e.jsx(p,{variant:"ghost",size:"icon",className:"hover:bg-white/10",children:e.jsx(Le,{className:"w-5 h-5"})})]}),Ar=[{name:"CloudFlare",url:"https://cloudflare.com",icon:e.jsx(he,{className:"w-4 h-4"})},{name:"MarketPlace",url:"https://marketplace.habitusnet.ch",icon:e.jsx(ba,{className:"w-4 h-4"})},{name:"ToolMan",url:"https://toolman.ch",icon:e.jsx(De,{className:"w-4 h-4"})},{name:"DNS Prop",url:"https://dnsprop.ch",icon:e.jsx(ke,{className:"w-4 h-4"})}],_r=({onToolClick:s})=>e.jsxs("div",{className:"space-y-4",children:[e.jsxs("h3",{className:"text-lg font-semibold text-foreground/80 flex items-center gap-2",children:[e.jsx(ke,{className:"w-5 h-5"}),"Network Tools"]}),e.jsx("div",{className:"flex flex-wrap gap-3",children:Ar.map(t=>e.jsxs(p,{variant:"outline",size:"sm",className:"bg-background/50 hover:bg-accent/10 border-foreground/10",onClick:()=>s(t.url,t.name),children:[t.icon,e.jsx("span",{className:"ml-2",children:t.name})]},t.name))})]}),Mr=[{name:"Compliance",url:"https://compliance.microsoft.com",icon:e.jsx(ze,{className:"w-4 h-4"})},{name:"Security",url:"https://security.microsoft.com",icon:e.jsx(q,{className:"w-4 h-4"})},{name:"Admin",url:"https://admin.microsoft.com",icon:e.jsx(Ne,{className:"w-4 h-4"})},{name:"Learning",url:"https://learning.microsoft.com",icon:e.jsx(as,{className:"w-4 h-4"})}],Er=({onToolClick:s})=>e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-foreground/80",children:"M365"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:Mr.map(t=>e.jsxs(p,{variant:"outline",size:"sm",className:"bg-background/50 hover:bg-accent/10 border-foreground/10",onClick:()=>s(t.url,t.name),children:[t.icon,e.jsx("span",{className:"ml-2",children:t.name})]},t.name))})]}),Lr=[{name:"HN-GPT",url:"https://chat.habitusnet.ch"},{name:"HN-CIAAP",url:"https://hnciaap.habitusnet.ch"},{name:"HN-CLOUD",url:"#"},{name:"HN-WAAdmin",url:"#",icon:e.jsx(De,{className:"w-4 h-4"})}],Rr=({onPlatformClick:s})=>e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-foreground/80",children:"Platforms"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:Lr.map(t=>e.jsxs(p,{variant:"outline",size:"sm",className:"bg-background/50 hover:bg-accent/10 border-foreground/10",onClick:()=>s(t.url,t.name),children:[t.icon||e.jsx(as,{className:"w-4 h-4 mr-2"}),t.name]},t.name))})]}),St=()=>{const s=$(),t=(a,i)=>{if(console.log(`Attempting to open ${i} at URL: ${a}`),i==="HN-WAAdmin"){console.log("Navigating to admin login"),s("/admin/login");return}if(!a||a==="#"){console.log(`Invalid URL for ${i}`),K.error(`The link for ${i} is not available yet`);return}try{const r=new URL(a);window.open(r.href,"_blank","noopener,noreferrer"),console.log(`Successfully opened ${i} in new window`)}catch(r){console.error(`Invalid URL format for ${i}:`,r),K.error(`Unable to open ${i}. Invalid URL format.`)}};return e.jsxs("footer",{className:"py-12 px-4 bg-background relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-accent/5 backdrop-blur-3xl"}),e.jsx("div",{className:"max-w-7xl mx-auto relative z-10 space-y-8",children:e.jsxs("div",{className:"grid gap-8 md:gap-12 lg:gap-16",children:[e.jsx(_r,{onToolClick:t}),e.jsx("div",{className:"h-px bg-foreground/10"}),e.jsx(Er,{onToolClick:t}),e.jsx("div",{className:"h-px bg-foreground/10"}),e.jsx(Rr,{onPlatformClick:t})]})})]})},I=()=>{const s=G(),{toast:t}=Be(),a=new Date().getFullYear(),[i,r]=n.useState(""),[o,c]=n.useState(!1);if(s.pathname==="/admin/login")return e.jsx(St,{});const l=j=>{r(j.target.value)},u=j=>{if(j.preventDefault(),!i){t({title:"Email Required",description:"Please enter your email address to subscribe.",variant:"destructive"});return}c(!0),setTimeout(()=>{t({title:"Subscription Successful",description:"You've been added to our newsletter list."}),r(""),c(!1)},1e3)},m=()=>{window.scrollTo({top:0,behavior:"smooth"})},d="text-foreground/70 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary rounded-sm px-2 py-1 -mx-2 -my-1";return e.jsxs("footer",{className:"bg-background border-t border-border relative",role:"contentinfo","aria-label":"Site footer",children:[e.jsx("button",{onClick:m,className:"absolute -top-6 left-1/2 transform -translate-x-1/2 bg-background border border-border rounded-full p-2 shadow-md hover:shadow-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","aria-label":"Back to top",children:e.jsx(ya,{className:"h-5 w-5 text-primary","aria-hidden":"true"})}),e.jsxs("div",{className:"container mx-auto px-4 py-12 md:py-16",children:[e.jsx("div",{className:"mb-12 pb-10 border-b border-border",children:e.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Stay Updated"}),e.jsx("p",{className:"text-foreground/70 mb-6",children:"Subscribe to our newsletter for cybersecurity tips, industry news, and updates on our services."}),e.jsxs("form",{onSubmit:u,className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto","aria-label":"Newsletter subscription",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx("label",{htmlFor:"email-input",className:"sr-only",children:"Email address"}),e.jsx(X,{id:"email-input",type:"email",placeholder:"Enter your email",value:i,onChange:l,className:"w-full h-11","aria-required":"true"})]}),e.jsx(p,{type:"submit",disabled:o,className:"h-11 px-6","aria-label":"Subscribe to newsletter",children:o?"Subscribing...":e.jsxs(e.Fragment,{children:[e.jsx(Se,{className:"mr-2 h-4 w-4","aria-hidden":"true"}),"Subscribe"]})})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 md:gap-12",children:[e.jsxs("nav",{"aria-labelledby":"footer-services-heading",children:[e.jsx("h2",{id:"footer-services-heading",className:"text-lg font-semibold text-foreground mb-4",children:"Services"}),e.jsxs("ul",{className:"space-y-3",role:"list",children:[e.jsx("li",{children:e.jsx(v,{to:"/services/security-consulting",className:d,children:"Security Consulting"})}),e.jsx("li",{children:e.jsx(v,{to:"/services/managed-security",className:d,children:"Managed Security"})}),e.jsx("li",{children:e.jsx(v,{to:"/services/cloud-solutions",className:d,children:"Cloud Solutions"})}),e.jsx("li",{children:e.jsx(v,{to:"/services/support",className:d,children:"Support Services"})})]})]}),e.jsxs("nav",{"aria-labelledby":"footer-industries-heading",children:[e.jsx("h2",{id:"footer-industries-heading",className:"text-lg font-semibold text-foreground mb-4",children:"Industries"}),e.jsxs("ul",{className:"space-y-3",role:"list",children:[e.jsx("li",{children:e.jsx(v,{to:"/industries/family-offices",className:d,children:"Family Offices"})}),e.jsx("li",{children:e.jsx(v,{to:"/industries/asset-management",className:d,children:"Asset Management"})}),e.jsx("li",{children:e.jsx(v,{to:"/industries/trust-companies",className:d,children:"Trust Companies"})}),e.jsx("li",{children:e.jsx(v,{to:"/industries/supply-chain",className:d,children:"Supply Chain"})})]})]}),e.jsxs("nav",{"aria-labelledby":"footer-resources-heading",children:[e.jsx("h2",{id:"footer-resources-heading",className:"text-lg font-semibold text-foreground mb-4",children:"Resources"}),e.jsxs("ul",{className:"space-y-3",role:"list",children:[e.jsx("li",{children:e.jsx(v,{to:"/resources/case-studies",className:d,children:"Case Studies"})}),e.jsx("li",{children:e.jsx(v,{to:"/resources/blog",className:d,children:"Blog"})}),e.jsx("li",{children:e.jsx(v,{to:"/resources/whitepapers",className:d,children:"Whitepapers"})}),e.jsx("li",{children:e.jsx(v,{to:"/resources/webinars",className:d,children:"Webinars"})})]})]}),e.jsxs("nav",{"aria-labelledby":"footer-about-heading",children:[e.jsx("h2",{id:"footer-about-heading",className:"text-lg font-semibold text-foreground mb-4",children:"About Us"}),e.jsxs("ul",{className:"space-y-3",role:"list",children:[e.jsx("li",{children:e.jsx(v,{to:"/about",className:d,children:"Our Story"})}),e.jsx("li",{children:e.jsx(v,{to:"/contact",className:d,children:"Contact Us"})}),e.jsx("li",{children:e.jsx(v,{to:"/careers",className:d,children:"Careers"})})]})]})]}),e.jsx("div",{className:"mt-12 pt-8 border-t border-border",children:e.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-center space-y-6 lg:space-y-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(rs,{className:"h-5 w-5 text-primary/70","aria-hidden":"true"}),e.jsxs("p",{className:"text-sm text-foreground/60",children:["© ",a," HabitusNet. All rights reserved."]})]}),e.jsx("nav",{"aria-label":"Legal pages",children:e.jsxs("ul",{className:"flex flex-wrap justify-center gap-x-8 gap-y-2 text-sm text-foreground/60",children:[e.jsx("li",{children:e.jsx(v,{to:"/privacy-policy",className:"hover:text-foreground/80 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary rounded-sm px-1",children:"Privacy Policy"})}),e.jsx("li",{children:e.jsx(v,{to:"/terms-of-service",className:"hover:text-foreground/80 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary rounded-sm px-1",children:"Terms of Service"})}),e.jsx("li",{children:e.jsx(v,{to:"/cookie-policy",className:"hover:text-foreground/80 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary rounded-sm px-1",children:"Cookie Policy"})})]})}),e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsx(Pr,{}),e.jsx(v,{to:"/admin/login",className:"text-foreground/40 hover:text-foreground/60 transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary rounded-full p-1","aria-label":"Admin Login",children:e.jsx(va,{className:"w-4 h-4","aria-hidden":"true"})})]})]})})]})]})},js={id:"default",name:"Habitusnet Theme",colors:{primary:{light:"#0B1736",dark:"#EBF2FA"},secondary:{light:"#585C6D",dark:"#A0AEC0"},accent:{light:"#EBF2FA",dark:"#1E2C3C"},background:{light:"#FFFFFF",dark:"#0B1736"},text:{light:"#0B1736",dark:"#FFFFFF"},muted:{light:"#F3F4F6",dark:"#1E2C3C"},mutedForeground:{light:"#585C6D",dark:"#A0AEC0"},border:{light:"#D3D3D3",dark:"#2E2E2E"},input:{light:"#F8F9FA",dark:"#1E2C3C"},success:{light:"#10B981",dark:"#34D399"},error:{light:"#F5313E",dark:"#F87171"},foreground:{light:"#0B1736",dark:"#FFFFFF"},swissRed:{light:"#F5313E",dark:"#F5313E"},midnightBlue:{light:"#0B1736",dark:"#0B1736"},steelGrey:{light:"#585C6D",dark:"#585C6D"},paleBlue:{light:"#EBF2FA",dark:"#EBF2FA"}},typography:{fontFamily:"'Open Sans', sans-serif",fonts:{sans:"'Open Sans', sans-serif",serif:"Georgia, serif",mono:"Menlo, monospace"},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1.125rem",lg:"1.25rem",xl:"1.5rem","2xl":"1.875rem","3xl":"2.25rem","4xl":"3rem"},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{none:"1",tight:"1.25",normal:"1.5",relaxed:"1.75",loose:"2"}},spacing:{container:{default:"max-w-7xl",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-full"},padding:{default:"1rem",xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"2rem",xl:"4rem"},section:{default:"4rem",xs:"1rem",sm:"2rem",md:"4rem",lg:"6rem",xl:"8rem"},component:{default:"1rem",xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem"}},borderRadius:{sm:"0.125rem",md:"0.25rem",lg:"0.5rem",full:"9999px"},shadows:{sm:"0 1px 2px rgba(0, 0, 0, 0.05)",md:"0 4px 6px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px rgba(0, 0, 0, 0.15)",none:"none"},animation:{default:"all 0.3s ease",fast:"all 0.15s ease",normal:"all 0.3s ease",slow:"all 0.5s ease"},is_active:!0,created_at:new Date().toISOString(),updated_at:new Date().toISOString()},Ct=n.createContext(void 0),Tt=()=>{const s=n.useContext(Ct);if(!s)throw new Error("useTheme must be used within a ThemeProvider");return s},Fr=({children:s})=>{const[t,a]=n.useState(()=>{const c=localStorage.getItem("themeMode"),l=window.matchMedia("(prefers-color-scheme: dark)").matches;return c==="dark"||!c&&l?"dark":"light"}),[i,r]=n.useState(js);n.useEffect(()=>{window.document.documentElement.setAttribute("data-theme",t),localStorage.setItem("themeMode",t)},[t]);const o={theme:t,setTheme:c=>a(c),themeConfig:i,updateTheme:c=>{i&&r({...i,...c})},resetTheme:()=>{r(js)}};return e.jsx(Ct.Provider,{value:o,children:s})},R=({children:s})=>{const{theme:t,setTheme:a}=Tt(),i=n.useRef(null),r=n.useRef(null),o=G(),[c,l]=n.useState("Home");n.useEffect(()=>{let d="Home";o.pathname.includes("/services")?d="Services":o.pathname.includes("/industries")?d="Industries":o.pathname.includes("/about")?d="About":o.pathname.includes("/contact")?d="Contact":o.pathname.includes("/resources")&&(d="Resources"),l(d)},[o]);const u=()=>{const d=t==="dark"?"light":"dark";a(d),r.current&&(r.current.textContent=`Theme changed to ${d} mode`)},m=d=>{d.preventDefault(),i.current?.focus(),i.current?.scrollIntoView({behavior:"smooth",block:"start"})};return e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx("a",{href:"#main-content",onClick:m,onKeyDown:d=>d.key==="Enter"&&m(d),className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-primary focus:text-primary-foreground rounded-b-md shadow-lg",children:"Skip to main content"}),e.jsx("div",{ref:r,"aria-live":"polite",className:"sr-only"}),e.jsx("header",{className:"bg-background/90 backdrop-blur-sm border-b sticky top-0 z-50 shadow-sm",role:"banner",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(v,{to:"/",className:"text-2xl font-bold text-primary flex items-center gap-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary rounded-sm","aria-label":"HabitusNet - Home",children:[e.jsx(rs,{className:"h-6 w-6 text-primary","aria-hidden":"true"}),e.jsx("span",{children:"HabitusNet"})]}),e.jsx("span",{className:"sr-only",children:"Current page:"}),e.jsx("span",{"aria-hidden":"true",className:"hidden md:inline-block text-muted-foreground text-sm px-2 py-1 rounded border-l-2 border-primary/30 ml-2",children:c})]}),e.jsx("nav",{"aria-label":"Main navigation",className:"hidden md:block",children:e.jsx(wr,{})}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(p,{variant:"outline",size:"icon",onClick:u,"aria-label":t==="dark"?"Switch to light mode":"Switch to dark mode",className:"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary rounded-full",children:t==="dark"?e.jsx(nt,{className:"h-[1.2rem] w-[1.2rem]","aria-hidden":"true"}):e.jsx(ot,{className:"h-[1.2rem] w-[1.2rem]","aria-hidden":"true"})}),e.jsx(gr,{})]})]})})}),e.jsx("main",{id:"main-content",ref:i,className:"flex-grow",role:"main",tabIndex:-1,style:{outline:"none"},children:s}),e.jsx(I,{})]})},Dr="",zr="";console.warn("Supabase URL or Anonymous Key not found in environment variables");const _=Ts(Dr,zr),Or=Object.freeze(Object.defineProperty({__proto__:null,supabase:_},Symbol.toStringTag,{value:"Module"})),$r=({slides:s,currentSlide:t,onSlideChange:a}={})=>{const[i,r]=n.useState(0),{data:o,isLoading:c}=H({queryKey:["hero-slides"],queryFn:async()=>{const{data:g,error:h}=await _.from("hero_slides").select("*").order("order_index");if(h)throw h;return g}}),l=s||o||[],u=t??i,m=a||r,d=n.useCallback(()=>{const g=(u+1)%l.length;m(g)},[u,l.length,m]),j=n.useCallback(()=>{const g=(u-1+l.length)%l.length;m(g)},[u,l.length,m]),y=n.useCallback(g=>{m(g)},[m]);if(n.useEffect(()=>{const g=setInterval(d,5e3);return()=>clearInterval(g)},[d]),c)return e.jsx("div",{className:"h-[500px] sm:h-[600px] bg-gray-100 animate-pulse"});if(!l.length)return e.jsx("div",{className:"relative w-full h-full bg-gradient-to-r from-gray-800 to-gray-900",children:e.jsx("img",{src:"/mountains-background.jpg",alt:"Mountains background",className:"object-cover w-full h-full opacity-60"})});const b=g=>{const h=g.touches[0].clientX;g.currentTarget.setAttribute("data-touch-start",h.toString())},S=g=>{const h=parseInt(g.currentTarget.getAttribute("data-touch-start")||"0"),C=g.changedTouches[0].clientX-h;C>50?j():C<-50&&d()};return e.jsxs("div",{className:"relative w-full h-full",children:[e.jsx("div",{className:"relative h-full",role:"region","aria-label":"Image carousel",onTouchStart:b,onTouchEnd:S,children:l.map((g,h)=>h===u?e.jsx("div",{className:"transition-opacity duration-1000 absolute top-0 left-0 w-full h-full opacity-100",children:e.jsx("img",{src:g.image_url,alt:g.headline||"Hero image",className:"object-cover w-full h-full",loading:"eager",fetchPriority:"high"})},g.id):e.jsx("div",{className:"transition-opacity duration-1000 absolute top-0 left-0 w-full h-full opacity-0","aria-hidden":"true",children:e.jsx("img",{src:g.image_url,alt:"",className:"object-cover w-full h-full",loading:"lazy"})},g.id))}),l.length>1&&e.jsx("div",{className:"absolute bottom-4 left-1/2 transform -translate-x-1/2 flex space-x-3 z-30",children:l.map((g,h)=>{const N=h===u;return e.jsx("button",{className:`h-3 w-3 sm:h-4 sm:w-4 rounded-full transition-colors duration-300 ${N?"bg-white":"bg-gray-500/50"} touch-manipulation`,onClick:()=>y(h),"aria-label":`Go to slide ${h+1}`,"aria-current":N?"true":"false",style:{minWidth:"12px",minHeight:"12px"}},h)})}),e.jsxs("div",{className:"hidden md:block",children:[e.jsx("button",{className:"absolute left-4 top-1/2 transform -translate-y-1/2 bg-black/30 hover:bg-black/50 text-white rounded-full p-2 z-30",onClick:j,"aria-label":"Previous slide",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M15 18l-6-6 6-6"})})}),e.jsx("button",{className:"absolute right-4 top-1/2 transform -translate-y-1/2 bg-black/30 hover:bg-black/50 text-white rounded-full p-2 z-30",onClick:d,"aria-label":"Next slide",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M9 18l6-6-6-6"})})})]})]})},Br=({title:s="Securing Your Digital Future",subtitle:t="Transform your business with enterprise-grade IT security and innovative digital solutions."})=>{const[a,i]=n.useState(0);n.useEffect(()=>{const l=()=>{i(window.scrollY)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]);const r=Math.max(0,Math.min(1,1-a/500)),o=Math.max(0,Math.min(1,1-(a-100)/400)),c=Math.max(0,Math.min(1,1-(a-200)/300));return e.jsxs("section",{className:"relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 z-0",children:e.jsx($r,{})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/30 via-black/20 to-black/30 z-10"}),e.jsxs("div",{className:"relative min-h-[500px] sm:min-h-[600px] pt-20 sm:pt-24 pb-24 sm:pb-32 px-4 flex flex-col justify-center z-20",children:[e.jsx("div",{className:"container mx-auto max-w-6xl",children:e.jsxs(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},className:"flex flex-col items-center",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12 backdrop-blur-md bg-white/20 dark:bg-black/30 p-5 sm:p-8 rounded-xl shadow-lg border border-white/30",style:{opacity:r,transform:`translateY(${Math.max(0,a*.1)}px)`,transition:"opacity 0.3s ease-out, transform 0.3s ease-out"},children:[e.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-4 sm:mb-6 drop-shadow-md",children:s}),e.jsx("p",{className:"text-base sm:text-lg md:text-xl text-white font-medium max-w-3xl mx-auto leading-relaxed drop-shadow",style:{opacity:o,transition:"opacity 0.4s ease-out, transform 0.4s ease-out"},children:t})]}),e.jsx(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},style:{opacity:c,transition:"opacity 0.3s ease-out"},children:e.jsxs(p,{size:"lg",className:"px-6 sm:px-8 py-5 sm:py-6 text-base sm:text-lg font-medium hover:bg-primary/90 rounded-md shadow-md min-w-[160px] touch-manipulation",onClick:()=>{document.querySelector("#contact-section")?.scrollIntoView({behavior:"smooth"})},"aria-label":"Get Started",children:["Get Started ",e.jsx(ee,{className:"ml-2 h-5 w-5"})]})})]})}),e.jsxs("div",{className:"hidden md:flex flex-col items-center gap-4 absolute right-8 top-1/2 transform -translate-y-1/2",style:{opacity:Math.min(1,1-a/300),transition:"opacity 0.3s ease-out"},children:[e.jsx("div",{className:"w-1 h-16 bg-primary shadow-md"}),e.jsx("div",{className:"w-2 h-2 rounded-full bg-primary shadow-sm"}),e.jsx("div",{className:"w-2 h-2 rounded-full bg-gray-400 shadow-sm"}),e.jsx("div",{className:"w-2 h-2 rounded-full bg-gray-400 shadow-sm"})]}),e.jsxs("div",{className:"flex md:hidden flex-col items-center absolute bottom-8 left-1/2 transform -translate-x-1/2 animate-bounce",children:[e.jsx("div",{className:"text-white text-xs font-medium mb-2",children:"Scroll Down"}),e.jsx(ee,{className:"text-white h-5 w-5 transform rotate-90"})]}),e.jsx("div",{className:"absolute bottom-10 left-10 text-white/70 hidden lg:block",children:e.jsx(Na,{size:48})})]})]})},A=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:x("rounded-lg border bg-card text-card-foreground shadow-sm",s),...t}));A.displayName="Card";const M=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:x("p-6 pt-0",s),...t}));M.displayName="CardContent";const Q=n.forwardRef(({className:s,...t},a)=>e.jsx("p",{ref:a,className:x("text-sm text-muted-foreground",s),...t}));Q.displayName="CardDescription";const ae=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:x("flex items-center p-6 pt-0",s),...t}));ae.displayName="CardFooter";const E=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:x("flex flex-col space-y-1.5 p-6",s),...t}));E.displayName="CardHeader";const z=n.forwardRef(({className:s,...t},a)=>e.jsx("h3",{ref:a,className:x("text-2xl font-semibold leading-none tracking-tight",s),...t}));z.displayName="CardTitle";const qr=[{title:"HN-SecuWatch 365",description:"Comprehensive monitoring and threat detection for Microsoft 365 environments.",icon:q,link:"/services/security",features:["24/7 Security Monitoring","Threat Detection & Response","Compliance Reporting","Security Assessment","Incident Response Support"]},{title:"Modern Workplace",description:"Transform your workplace with M365 & Dynamics with CoPilot integration.",icon:he,link:"/services/cloud",features:["Microsoft 365 Integration","Dynamics 365 Setup","CoPilot Implementation","Cloud Migration","User Training"]},{title:"Outsourcing & Support",description:"Comprehensive IT management and support services for your business.",icon:lt,link:"/services/support",features:["24/7 Technical Support","IT Infrastructure Management","Help Desk Services","Network Monitoring","System Maintenance"]},{title:"AI & ML Solutions",description:"Leverage the power of AI and Machine Learning for your business processes.",icon:ct,link:"/services/ai",features:["Custom AI Solutions","ML Model Development","Process Automation","Data Analytics","AI Integration Services"]}],Hr=()=>{const s=$();return e.jsx("section",{className:"py-20 bg-background",children:e.jsxs("div",{className:"container px-4 mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[e.jsx(is,{className:"w-6 h-6 text-accent"}),e.jsx("h2",{className:"text-4xl font-bold text-foreground",children:"Featured Services"})]}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Discover our comprehensive range of IT solutions designed to enhance your business operations and security."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:qr.map((t,a)=>{const i=t.icon;return e.jsxs(A,{className:"relative overflow-hidden transition-all duration-300 hover:shadow-lg hover:-translate-y-1 cursor-pointer animate-fade-in bg-card",style:{animationDelay:`${a*150}ms`},onClick:()=>s(t.link),children:[e.jsxs(E,{children:[e.jsx("div",{className:"flex items-center gap-4 mb-4",children:e.jsx("div",{className:"p-3 rounded-lg bg-accent/10",children:e.jsx(i,{className:"w-6 h-6 text-accent"})})}),e.jsx(z,{className:"text-xl mb-2",children:t.title}),e.jsx(Q,{children:t.description})]}),e.jsxs(M,{children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-medium text-sm text-muted-foreground mb-2",children:"Key Features:"}),e.jsx("ul",{className:"space-y-2",children:t.features.map((r,o)=>e.jsxs("li",{className:"flex items-center gap-2 text-sm animate-fade-in",style:{animationDelay:`${(a*5+o)*100}ms`},children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-accent"}),r]},o))})]}),e.jsx(p,{variant:"ghost",className:"w-full mt-6 hover:bg-accent hover:text-white",children:"Learn More"})]})]},a)})})]})})},Wr=ue("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-600",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-600",swiss:"border-transparent bg-swissRed text-white hover:bg-swissRed/80",midnight:"border-transparent bg-midnightBlue text-white hover:bg-midnightBlue/80",steel:"border-transparent bg-steelGrey text-white hover:bg-steelGrey/80",pale:"border-transparent bg-paleBlue text-midnightBlue hover:bg-paleBlue/80"}},defaultVariants:{variant:"default"}});function D({className:s,variant:t,...a}){return e.jsx("div",{className:x(Wr({variant:t}),s),...a})}const qe=n.forwardRef(({className:s,...t},a)=>e.jsx(Os,{ref:a,className:x("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...t}));qe.displayName=Os.displayName;const He=n.forwardRef(({className:s,...t},a)=>e.jsx($s,{ref:a,className:x("aspect-square h-full w-full",s),...t}));He.displayName=$s.displayName;const We=n.forwardRef(({className:s,...t},a)=>e.jsx(Bs,{ref:a,className:x("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...t}));We.displayName=Bs.displayName;const ne=({post:s,variant:t="default",className:a})=>{const i=t==="featured",r=t==="compact";return e.jsxs(A,{className:x("overflow-hidden transition-all h-full flex flex-col",i?"md:flex-row":"",a),children:[s.featured_image&&e.jsxs(v,{to:`/resources/blog/${s.slug}`,className:x("block overflow-hidden relative",i?"md:w-2/5 min-h-48":"aspect-video",r?"h-32":""),children:[e.jsx("img",{src:s.featured_image,alt:s.title,className:"object-cover w-full h-full transition-transform hover:scale-105 duration-300"}),s.category_name&&!r&&e.jsx("div",{className:"absolute top-3 left-3",children:e.jsx(v,{to:`/resources/blog/category/${s.category_name.toLowerCase().replace(/\s+/g,"-")}`,children:e.jsx(D,{className:"bg-primary hover:bg-primary/90 text-xs",children:s.category_name})})})]}),e.jsxs("div",{className:x("flex flex-col flex-grow",i?"md:w-3/5":""),children:[e.jsxs(E,{className:x("flex flex-col gap-2",r?"p-4":""),children:[s.category_name&&(s.featured_image===null||r)&&e.jsx(v,{to:`/resources/blog/category/${s.category_name.toLowerCase().replace(/\s+/g,"-")}`,className:"text-xs font-medium text-primary hover:underline",children:s.category_name}),e.jsx(v,{to:`/resources/blog/${s.slug}`,children:e.jsx("h3",{className:x("font-bold transition-colors hover:text-primary",i?"text-2xl":"text-lg",r?"text-base":""),children:s.title})}),!r&&s.excerpt&&e.jsx("p",{className:x("text-muted-foreground line-clamp-2",i?"mt-2":""),children:s.excerpt})]}),e.jsx(M,{className:x("flex-grow",r?"p-4 pt-0":""),children:r&&s.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:s.excerpt})}),e.jsx(ae,{className:x("text-xs text-muted-foreground",r?"p-4 pt-0":""),children:e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 w-full",children:[s.author_name&&e.jsxs("div",{className:"flex items-center",children:[s.author_image?e.jsxs(qe,{className:"h-6 w-6 mr-2",children:[e.jsx(He,{src:s.author_image,alt:s.author_name}),e.jsx(We,{children:s.author_name.split(" ").map(o=>o[0]).join("")})]}):e.jsx(Oe,{className:"h-3 w-3 mr-1"}),e.jsx("span",{children:s.author_name})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(xe,{className:"h-3 w-3 mr-1"}),e.jsx("time",{dateTime:s.created_at,children:at(new Date(s.created_at),"MMM d, yyyy")})]}),!r&&s.tags&&s.tags.length>0&&e.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[e.jsx(ns,{className:"h-3 w-3"}),s.tags.slice(0,2).map((o,c)=>e.jsx(v,{to:`/resources/blog/tag/${o.toLowerCase().replace(/\s+/g,"-")}`,children:e.jsx(D,{variant:"outline",className:"px-2 py-0 text-xs font-normal",children:o})},o)),s.tags.length>2&&e.jsxs(D,{variant:"outline",className:"px-2 py-0 text-xs font-normal",children:["+",s.tags.length-2]})]})]})})]})]})};function f({className:s,...t}){return e.jsx("div",{className:x("animate-pulse rounded-md bg-muted",s),...t})}const Vr=()=>e.jsx("section",{className:"py-20 bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[e.jsx(is,{className:"w-6 h-6 text-accent animate-pulse"}),e.jsx("h2",{className:"text-4xl font-bold text-white",children:"Latest Insights"})]}),e.jsx("p",{className:"text-xl text-white/60",children:"Loading latest posts..."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx("div",{className:"animate-pulse",style:{animationDelay:`${s*150}ms`},children:e.jsxs("div",{className:"bg-primary/5 rounded-lg overflow-hidden",children:[e.jsx(f,{className:"aspect-video w-full"}),e.jsxs("div",{className:"p-6 space-y-4",children:[e.jsx(f,{className:"h-4 w-1/3"}),e.jsx(f,{className:"h-6 w-full"}),e.jsx(f,{className:"h-4 w-full"}),e.jsx(f,{className:"h-4 w-2/3"}),e.jsx(f,{className:"h-4 w-24"})]})]})},s))})]})}),Ur=()=>{const{data:s,isLoading:t}=H({queryKey:["recentPosts"],queryFn:async()=>{console.log("Fetching recent blog posts...");const{data:a,error:i}=await _.from("blog_posts").select("id, title, excerpt, created_at, featured_image, slug").eq("status","published").order("created_at",{ascending:!1}).limit(3);if(i)throw console.error("Error fetching blog posts:",i),i;return console.log("Fetched blog posts:",a),a}});return t?e.jsx(Vr,{}):e.jsxs("section",{className:"py-20 bg-background relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/50 to-background pointer-events-none"}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[e.jsx(is,{className:"w-6 h-6 text-accent"}),e.jsx("h2",{className:"text-4xl font-bold text-white",children:"Latest Insights"})]}),e.jsx("p",{className:"text-xl text-white/60 max-w-2xl mx-auto",children:"Stay updated with our latest thoughts on technology, security, and digital transformation"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12",children:s?.map((a,i)=>e.jsx("div",{className:"animate-fade-in",style:{animationDelay:`${i*150}ms`},children:e.jsx(ne,{post:a})},a.id))}),e.jsx("div",{className:"text-center",children:e.jsxs(p,{size:"lg",className:"bg-accent text-white hover:bg-accent/90 transition-all duration-300 hover:scale-105 group",onClick:()=>window.location.href="/blog",children:["View All Posts",e.jsx(ee,{className:"w-5 h-5 ml-2 transition-transform group-hover:translate-x-1"})]})})]})]})};function Gr({className:s}){const{data:t,isLoading:a}=H({queryKey:["success-stories"],queryFn:async()=>{const{data:r,error:o}=await _.from("success_stories").select("*").order("created_at",{ascending:!1});if(o)throw o;return r}});if(a)return e.jsx("div",{children:"Loading..."});if(!t?.length)return null;const i=r=>{const o=r.results?.metrics||{};return Object.entries(o).map(([c,l])=>({key:c,value:l.toString()}))};return e.jsx("div",{className:x("grid gap-8",s),children:t.map(r=>e.jsxs("div",{className:"border rounded-lg p-6",children:[e.jsx("h3",{className:"text-2xl font-bold",children:r.title}),e.jsx("p",{className:"mt-2",children:r.summary}),e.jsx("div",{className:"mt-4 grid gap-4",children:i(r).map(({key:o,value:c})=>e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("span",{children:[o,":"]}),e.jsx("span",{children:c})]},o))})]},r.id))})}const Yr=()=>{const{data:s=[],isLoading:t}=H({queryKey:["statistics"],queryFn:async()=>{console.log("Fetching statistics...");const{data:i,error:r}=await _.from("statistics").select("*").eq("is_active",!0).order("order_index",{ascending:!0});if(r)throw console.error("Error fetching statistics:",r),r;return console.log("Fetched statistics:",i),i}}),a=i=>{const r={className:"w-8 h-8 text-primary",strokeWidth:1.5};switch(i){case 0:return e.jsx(mt,{...r});case 1:return e.jsx(q,{...r});case 2:return e.jsx(se,{...r});case 3:return e.jsx(dt,{...r});default:return e.jsx(q,{...r})}};return t?e.jsx("section",{className:"py-20 bg-background relative overflow-hidden",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[1,2,3,4].map(i=>e.jsx("div",{className:"animate-pulse",children:e.jsx("div",{className:"h-48 bg-accent/10 rounded-xl"})},i))})})}):e.jsx("section",{className:"relative py-20 bg-background",children:e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:s.map((i,r)=>e.jsxs(U.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},viewport:{once:!0},className:"bg-card hover:bg-accent/5 transition-all duration-300 p-8 rounded-xl flex flex-col items-center text-center group border border-border shadow-sm",children:[e.jsx("div",{className:"mb-4 p-3 rounded-full bg-primary/5 group-hover:bg-primary/10 transition-colors duration-300",children:a(r)}),e.jsx("div",{className:"flex items-baseline justify-center gap-1 mb-3",children:e.jsx("span",{className:"text-3xl font-bold text-foreground",children:i.value})}),e.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:i.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:i.description})]},i.id))})})})},bs=L.object({name:L.string().min(2,"Name must be at least 2 characters").max(100),email:L.string().email("Please enter a valid email address"),phone:L.string().optional(),company:L.string().optional(),message:L.string().min(10,"Message must be at least 10 characters").max(1e3)});function Kr(s,t,a){try{const i={[s]:t};return a.parse(i),""}catch(i){return i instanceof L.ZodError&&i.errors.find(o=>String(o.path[0])===String(s))?.message||""}}const Xr=async s=>{console.log("Submitting form data:",s);const{error:t}=await _.from("contact_submissions").insert({name:s.name,email:s.email,phone:s.phone||null,company:s.company||null,message:s.message,status:"pending"});if(t)throw console.error("Error submitting form:",t),t;return{success:!0}},It=n.forwardRef(({className:s,...t},a)=>e.jsx("textarea",{className:x("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),ref:a,...t}));It.displayName="Textarea";const be=({type:s,name:t,label:a,placeholder:i,value:r,onChange:o,error:c,icon:l,required:u=!1,className:m,description:d,autoComplete:j,id:y})=>{const b=y||`input-${t}`,S=`error-${b}`,g=d?`desc-${b}`:void 0;let h="";c&&(h+=S),d&&(h+=(h?" ":"")+g);const B=x("w-full bg-background/50 border-border focus:border-primary/50 focus:ring-1 focus:ring-primary/50",l?"pl-10":"",c?"border-destructive focus:border-destructive focus:ring-destructive":"",m);return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("label",{htmlFor:b,className:"text-sm font-medium text-foreground flex items-center gap-1",children:[a,u&&e.jsx("span",{className:"text-destructive ml-1","aria-hidden":"true",children:"*"}),u&&e.jsx("span",{className:"sr-only",children:"required"})]}),d&&e.jsx("p",{id:g,className:"text-sm text-muted-foreground mt-1",children:d}),e.jsxs("div",{className:"relative",children:[s==="textarea"?e.jsx(It,{id:b,name:t,placeholder:i,value:r,onChange:o,required:u,className:x("min-h-[120px] resize-y",B),"aria-invalid":!!c,"aria-describedby":h||void 0,"aria-required":u}):e.jsx(X,{id:b,type:s,name:t,placeholder:i,value:r,onChange:o,required:u,className:B,"aria-invalid":!!c,"aria-describedby":h||void 0,"aria-required":u,autoComplete:j}),l&&e.jsx(l,{className:"w-4 h-4 text-foreground/60 absolute left-3 top-1/2 -translate-y-1/2","aria-hidden":"true"})]}),c&&e.jsxs("div",{className:"flex items-start gap-2 mt-1",children:[e.jsx(oe,{className:"w-4 h-4 text-destructive mt-0.5 flex-shrink-0","aria-hidden":"true"}),e.jsx("p",{id:S,className:"text-sm text-destructive",role:"alert",children:c})]})]})},Pt=n.forwardRef(({className:s,...t},a)=>e.jsx(qs,{ref:a,className:x("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...t,children:e.jsx(ma,{className:x("flex items-center justify-center text-current"),children:e.jsx(pe,{className:"h-4 w-4"})})}));Pt.displayName=qs.displayName;const Zr=({startTransition:s})=>{const{toast:t}=Be(),[a,i]=n.useState({name:"",email:"",phone:"",company:"",message:"",privacyConsent:!1}),[r,o]=n.useState({}),[c,l]=n.useState(!1),[u,m]=n.useState(!1),d=n.useRef(null),j=n.useRef(null),y=g=>{const{name:h,value:N}=g.target;s(()=>{i(T=>({...T,[h]:N}));const C=Kr(h,N,bs);o(T=>({...T,[h]:C}))})},b=g=>{i(h=>({...h,privacyConsent:g})),o(g?h=>{const N={...h};return delete N.privacyConsent,N}:h=>({...h,privacyConsent:"You must agree to our privacy policy"}))},S=async g=>{g.preventDefault();const h={};let N=!1;if(a.name||(h.name="Name is required",N=!0),a.email||(h.email="Email is required",N=!0),a.message||(h.message="Message is required",N=!0),a.privacyConsent||(h.privacyConsent="You must agree to our privacy policy",N=!0),N){o(h),t({title:"Please fix the errors",description:"There are some issues with your submission.",variant:"destructive"});return}l(!0);const C=document.getElementById("form-status");C&&(C.textContent="Sending your message, please wait...");try{bs.parse(a),s(async()=>{try{await Xr(a),C&&(C.textContent="Message sent successfully! We will contact you soon."),t({title:"Message Sent Successfully",description:"We'll get back to you as soon as possible.",icon:e.jsx(Qe,{className:"h-5 w-5 text-green-500"})}),m(!0),i({name:"",email:"",phone:"",company:"",message:"",privacyConsent:!1}),o({}),j.current&&setTimeout(()=>{j.current?.focus()},100)}catch{C&&(C.textContent="There was an error sending your message. Please try again."),t({title:"Error Sending Message",description:"Please try again later or contact us directly.",variant:"destructive",icon:e.jsx(oe,{className:"h-5 w-5 text-red-500"})})}finally{l(!1)}})}catch(T){console.error("Error submitting form:",T),C&&(C.textContent="There was an error with your form submission. Please check all fields and try again."),T instanceof Error&&t({title:"Error Validating Form",description:"Please check the form for errors and try again.",variant:"destructive",icon:e.jsx(oe,{className:"h-5 w-5 text-red-500"})}),l(!1)}};return e.jsx("div",{className:"container-width section-padding",children:e.jsxs("div",{className:"max-w-3xl mx-auto bg-background/50 backdrop-blur-sm rounded-lg shadow-lg p-8 border border-border",children:[e.jsx("h2",{className:"heading-2 mb-6 text-center",id:"contact-form-title",children:"Get in Touch"}),e.jsx("p",{className:"text-foreground/80 text-center mb-8",id:"contact-form-description",children:"We're here to help with your IT consulting needs. Fill out the form below and we'll get back to you shortly."}),e.jsx("div",{id:"form-status",className:"sr-only","aria-live":"polite","aria-atomic":"true"}),u?e.jsxs("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-6 text-center","aria-live":"polite",children:[e.jsx(Qe,{className:"h-12 w-12 text-green-500 mx-auto mb-4","aria-hidden":"true"}),e.jsx("h3",{className:"text-xl font-medium mb-2",children:"Thank You!"}),e.jsx("p",{className:"text-foreground/80 mb-6",children:"Your message has been sent successfully. One of our team members will get back to you shortly."}),e.jsx(p,{ref:j,onClick:()=>m(!1),variant:"outline",className:"mx-auto",children:"Send Another Message"})]}):e.jsxs("form",{ref:d,onSubmit:S,className:"space-y-6","aria-labelledby":"contact-form-title","aria-describedby":"contact-form-description",noValidate:!0,children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx(be,{type:"text",name:"name",label:"Your Name",placeholder:"John Doe",value:a.name,onChange:y,error:r.name,icon:Oe,required:!0,className:"glass-effect",autoComplete:"name"}),e.jsx(be,{type:"email",name:"email",label:"Email Address",placeholder:"you@example.com",value:a.email,onChange:y,error:r.email,icon:Se,required:!0,className:"glass-effect",autoComplete:"email"}),e.jsx(be,{type:"tel",name:"phone",label:"Phone Number",placeholder:"+41 XX XXX XX XX",value:a.phone,onChange:y,error:r.phone,icon:ts,className:"glass-effect",autoComplete:"tel"}),e.jsx(be,{type:"text",name:"company",label:"Company Name",placeholder:"Your Company Ltd.",value:a.company,onChange:y,error:r.company,icon:se,className:"glass-effect",autoComplete:"organization"})]}),e.jsx(be,{type:"textarea",name:"message",label:"Your Message",placeholder:"How can we help you? Please provide details about your inquiry.",value:a.message,onChange:y,error:r.message,required:!0,className:"glass-effect min-h-[120px]"}),e.jsxs("div",{className:"flex items-start gap-2 mt-4",children:[e.jsx(Pt,{id:"privacy-consent",checked:a.privacyConsent,onCheckedChange:b,"aria-describedby":"privacy-consent-error","aria-invalid":!!r.privacyConsent}),e.jsxs("div",{className:"grid gap-1.5 leading-none",children:[e.jsxs("label",{htmlFor:"privacy-consent",className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:["I agree to the processing of my personal data in accordance with the",e.jsx(v,{to:"/privacy-policy",className:"text-primary hover:underline ml-1 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary rounded-sm",children:"Privacy Policy"})]}),r.privacyConsent&&e.jsx("p",{id:"privacy-consent-error",className:"text-sm text-red-500",children:r.privacyConsent})]})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(p,{ref:j,type:"submit",disabled:c,className:"bg-primary hover:bg-primary/90 text-primary-foreground px-8 py-2.5 rounded-md transition-all duration-200 shadow-lg hover:shadow-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary","aria-live":"polite",children:c?e.jsxs(e.Fragment,{children:[e.jsx(le,{className:"w-4 h-4 mr-2 animate-spin","aria-hidden":"true"}),e.jsx("span",{className:"sr-only",children:"Sending your message, please wait"}),e.jsx("span",{"aria-hidden":"true",children:"Sending..."})]}):e.jsxs(e.Fragment,{children:["Send Message",e.jsx(wa,{className:"w-4 h-4 ml-2","aria-hidden":"true"})]})})})]})]})})},Jr=()=>e.jsxs("div",{className:"space-y-6 text-foreground/80",children:[e.jsxs("div",{className:"flex items-center gap-3 hover-lift",children:[e.jsx(ut,{className:"w-5 h-5 text-accent"}),e.jsx("a",{href:"tel:+41435000770",className:"hover:text-foreground transition-colors",children:"+41 43 500 0770"})]}),e.jsxs("div",{className:"flex items-center gap-3 hover-lift",children:[e.jsx(Se,{className:"w-5 h-5 text-accent"}),e.jsx("a",{href:"mailto:swiss-sales@habitusnet.com",className:"hover:text-foreground transition-colors",children:"swiss-sales@habitusnet.com"})]}),e.jsxs("div",{className:"flex items-start gap-3 hover-lift",children:[e.jsx(os,{className:"w-5 h-5 text-accent mt-1"}),e.jsxs("a",{href:"https://maps.google.com/?q=Stampfenbachstrasse+32,+CH-8006+Zurich",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:["Stampfenbachstrasse 32,",e.jsx("br",{}),"CH-8006 Zurich"]})]})]}),Qr=({title:s="Ready to Transform Your IT Infrastructure?",description:t="Get in touch with our experts to discuss how we can help secure and optimize your business technology."})=>{const[a,i]=n.useTransition(),[r,o]=n.useState(!0),c=$();return e.jsxs("section",{className:"relative py-20 px-4 overflow-hidden",id:"contact-section","aria-labelledby":"contact-heading",children:[e.jsx("div",{className:"absolute inset-0 bg-primary/10 dark:bg-primary/5","aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 bg-grid-small-white/[0.05] dark:bg-grid-small-white/[0.02]","aria-hidden":"true"}),e.jsxs("div",{className:"max-w-7xl mx-auto relative z-10",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{id:"contact-heading",className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:s}),e.jsx("p",{className:"text-lg md:text-xl text-foreground/80 max-w-2xl mx-auto",children:t})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-center lg:justify-start items-center gap-6",children:[e.jsxs(p,{size:"lg",className:"bg-accent hover:bg-accent/90 text-accent-foreground font-semibold px-8 w-full sm:w-auto shadow-lg hover:shadow-xl transition-all focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:outline-none",onClick:()=>c("/contact"),"aria-label":"Get in touch - go to contact page",children:[e.jsx(ut,{className:"w-5 h-5 mr-2","aria-hidden":"true"}),e.jsx("span",{children:"Get in Touch"})]}),e.jsxs(p,{size:"lg",variant:"outline",className:"border-2 border-accent/20 hover:border-accent/30 text-foreground hover:bg-accent/5 font-semibold px-8 w-full sm:w-auto focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:outline-none",onClick:()=>c("/schedule"),"aria-label":"Schedule a consultation - go to scheduling page",children:[e.jsx(xe,{className:"w-5 h-5 mr-2","aria-hidden":"true"}),e.jsx("span",{children:"Schedule Consultation"})]})]}),e.jsxs("div",{className:"bg-background/40 backdrop-blur-md p-6 rounded-lg shadow-md border border-border hover:shadow-lg transition-shadow duration-300","aria-labelledby":"contact-info-heading",children:[e.jsxs("h3",{id:"contact-info-heading",className:"text-xl font-semibold mb-4 flex items-center gap-2",children:[e.jsx(ka,{className:"w-5 h-5 text-primary","aria-hidden":"true"}),"Contact Information"]}),e.jsx(Jr,{})]}),e.jsxs("div",{className:"glass-effect rounded-lg overflow-hidden shadow-lg hover:shadow-xl transition-shadow duration-300","aria-labelledby":"office-location-heading",children:[e.jsxs("div",{className:"bg-background/80 p-4 border-b border-border",children:[e.jsxs("h3",{id:"office-location-heading",className:"text-lg font-medium flex items-center gap-2",children:[e.jsx(os,{className:"h-4 w-4 text-primary","aria-hidden":"true"}),"Our Zurich Office"]}),e.jsx("address",{className:"text-sm text-foreground/70 not-italic",children:"Bahnhofstrasse 21, 8001 Zürich, Switzerland"})]}),e.jsx("div",{className:"h-[300px] bg-muted flex items-center justify-center p-4 text-center",children:e.jsxs("div",{children:[e.jsx("p",{className:"text-muted-foreground mb-2",children:"Map view unavailable"}),e.jsxs("a",{href:"https://maps.google.com/?q=Bahnhofstrasse+21,+8001+Zürich,+Switzerland",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-primary hover:underline focus:outline-none focus:ring-2 focus:ring-primary rounded-sm px-1",children:["View on Google Maps",e.jsx(as,{className:"h-3 w-3","aria-hidden":"true"})]})]})}),e.jsxs("div",{className:"sr-only",children:[e.jsx("p",{children:"Our office is located at Bahnhofstrasse 21, 8001 Zürich, Switzerland."}),e.jsx("p",{children:"For directions, please call us at +41 44 123 45 67 or email info@habitusnet.com"}),e.jsx("a",{href:"https://maps.google.com/?q=Bahnhofstrasse+21,+8001+Zürich,+Switzerland",children:"View our location on Google Maps"})]})]})]}),e.jsx("div",{className:"glass-effect rounded-lg p-8 shadow-lg border border-border/50 hover:shadow-xl transition-shadow duration-300","aria-labelledby":"contact-form-title",children:e.jsx(Zr,{startTransition:i})})]})]})]})},ei=()=>{const[s,t]=n.useTransition(),[a,i]=n.useState(""),[r,o]=n.useState({title:"HabitusNet",description:"IT Security & Digital Transformation"});return n.useEffect(()=>{(async()=>{try{const{frontmatter:l,content:u}=await bt("/content/pages/home/index.md");if(l){const m=l,d=m.title||"HabitusNet",j=m.description||"IT Security & Digital Transformation";o({title:typeof d=="string"?d:"HabitusNet",description:typeof j=="string"?j:"IT Security & Digital Transformation"})}u&&i(u)}catch(l){console.error("Error loading home content:",l)}})()},[]),e.jsxs(R,{children:[e.jsx(Br,{title:r.title,subtitle:r.description}),e.jsx("section",{className:"bg-white dark:bg-gray-900 py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"prose dark:prose-invert max-w-none mx-auto",children:e.jsx(ss,{children:a})})})}),e.jsx(Yr,{}),e.jsx(Hr,{}),e.jsx(Gr,{}),e.jsx(Ur,{}),e.jsx(Qr,{})]})},si=ue("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ve=n.forwardRef(({className:s,variant:t,...a},i)=>e.jsx("div",{ref:i,role:"alert",className:x(si({variant:t}),s),...a}));Ve.displayName="Alert";const ti=n.forwardRef(({className:s,...t},a)=>e.jsx("h5",{ref:a,className:x("mb-1 font-medium leading-none tracking-tight",s),...t}));ti.displayName="AlertTitle";const Ue=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:x("text-sm [&_p]:leading-relaxed",s),...t}));Ue.displayName="AlertDescription";const ai=()=>{let s="http://localhost:3000";return window.location.hostname.includes("lovableproject.com")&&(s=window.location.origin),s=s.trim().replace(/\/+$/,""),s=s.replace(/:\/*$/,""),s=s.replace(/:{2,}/,":"),!s.startsWith("http://")&&!s.startsWith("https://")&&(s=`https://${s}`),console.log("Current site URL:",s),s},At=()=>{const s=window.location.hash;if(s){const t=new URLSearchParams(s.substring(1)),a=t.get("error_code"),i=t.get("error_description");if(a?.startsWith("4"))return console.error("Auth error:",i),i}return null};function cs({className:s}){return e.jsx("div",{className:"flex items-center justify-center",children:e.jsx("div",{className:x("animate-spin rounded-full h-8 w-8 border-4 border-primary border-t-transparent",s),children:e.jsx("span",{className:"sr-only",children:"Loading..."})})})}const ri=()=>{const s=$(),{toast:t}=Be(),[a,i]=n.useState(null),[r,o]=n.useState(!1),c=!1,[l,u]=n.useState("");return n.useEffect(()=>{const m=At();m&&(i(m),t({variant:"destructive",title:"Authentication Error",description:m}));const{data:{subscription:d}}=_.auth.onAuthStateChange(async(j,y)=>{if(y?.user){o(!0);try{const{data:b,error:S}=await _.from("admin_users").select("id").eq("id",y.user.id).single();if(S){t({variant:"destructive",title:"Access Denied",description:"Error verifying admin privileges. Please try again."}),await _.auth.signOut();return}if(!b){t({variant:"destructive",title:"Access Denied",description:"Your account needs admin privileges. Please contact the system administrator."}),await _.auth.signOut();return}s("/admin")}catch{t({variant:"destructive",title:"Error",description:"An error occurred while verifying admin access."}),await _.auth.signOut()}finally{o(!1)}}});return()=>{d.unsubscribe()}},[s,t]),e.jsx("div",{className:"admin-auth-container",children:e.jsxs(A,{className:"admin-auth-card",children:[r&&e.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx(cs,{className:"h-8 w-8"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Verifying admin credentials..."})]})}),e.jsxs(E,{className:"admin-auth-header",children:[e.jsx("div",{className:"mx-auto bg-accent/10 w-12 h-12 rounded-full flex items-center justify-center",children:e.jsx(q,{className:"w-6 h-6 text-accent"})}),e.jsx(z,{className:"text-2xl",children:"Admin Login"}),e.jsx(Q,{children:"Please sign in with your admin credentials to access the management system."})]}),e.jsxs(M,{className:"admin-auth-content",children:[a&&e.jsx(Ve,{variant:"destructive",className:"mb-4",children:e.jsx(Ue,{children:a})}),e.jsx(Kt,{supabaseClient:_,appearance:{theme:Xt,variables:{default:{colors:{brand:"hsl(var(--primary))",brandAccent:"hsl(var(--primary))",brandButtonText:"hsl(var(--primary-foreground))",defaultButtonBackground:"hsl(var(--secondary))",defaultButtonBackgroundHover:"hsl(var(--secondary))",defaultButtonBorder:"hsl(var(--border))",defaultButtonText:"hsl(var(--secondary-foreground))",dividerBackground:"hsl(var(--border))",inputBackground:"transparent",inputBorder:"hsl(var(--border))",inputBorderHover:"hsl(var(--border))",inputBorderFocus:"hsl(var(--ring))",inputText:"hsl(var(--foreground))",inputPlaceholder:"hsl(var(--muted-foreground))"}}},className:{button:"admin-button-primary w-full",container:"admin-form-section",label:"admin-form-label",input:"bg-background border-input"}},providers:[],view:"sign_in",showLinks:!1,redirectTo:`${window.location.origin}/admin`}),c]})]})})},ii=({children:s,className:t})=>e.jsx(U.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut"},className:x("w-full max-w-md mx-auto overflow-hidden","rounded-xl border border-border/50","shadow-[0_8px_30px_rgb(0,0,0,0.12)]","backdrop-blur-xl bg-background/60",t),children:e.jsx("div",{className:"p-6 sm:p-8",children:s})}),ni=({number:s=20})=>{const[t,a]=n.useState([]);return n.useEffect(()=>{const i=Array.from({length:s},(r,o)=>({id:o,top:`${Math.random()*100}%`,left:`${Math.random()*100}%`,size:Math.floor(Math.random()*3)+1,delay:Math.random()*3,duration:Math.random()*3+3}));a(i)},[s]),e.jsx(e.Fragment,{children:t.map(i=>e.jsx("div",{className:x("absolute h-0.5 w-0.5 rounded-full bg-primary opacity-0 shadow-[0_0_0_1px_#ffffff10] rotate-[215deg]","animate-meteor pointer-events-none"),style:{top:i.top,left:i.left,animationDelay:`${i.delay}s`,animationDuration:`${i.duration}s`,width:`${i.size}px`,height:`${i.size*30}px`},children:e.jsx("div",{className:"absolute top-0 -right-[2px] h-[3px] w-[100px] rounded-full bg-gradient-to-r from-primary/10 to-primary blur-[2px] transform -rotate-45",style:{animationDelay:`${i.delay}s`,animationDuration:`${i.duration}s`}})},i.id))})},oi=({number:s=50})=>{const[t,a]=n.useState([]);return n.useEffect(()=>{const i=Array.from({length:s},(r,o)=>({id:o,x:`${Math.random()*100}%`,y:`${Math.random()*100}%`,scale:.2+Math.random()*.8,opacity:.2+Math.random()*.5,speed:.5+Math.random()*1.5}));a(i)},[s]),e.jsx("div",{className:"fixed inset-0 z-0 pointer-events-none overflow-hidden",children:t.map(i=>e.jsx(U.div,{className:"absolute w-1 h-1 rounded-full bg-primary/20 backdrop-blur-sm",style:{left:i.x,top:i.y,scale:i.scale,opacity:i.opacity},animate:{y:["0%","-100%"],opacity:[i.opacity,0]},transition:{duration:10*i.speed,repeat:1/0,ease:"linear",delay:Math.random()*5}},i.id))})},li=({scrollY:s,variant:t="default"})=>{const a=t==="auth",i=s*.2;return e.jsxs("div",{className:"fixed inset-0 flex items-center justify-center overflow-hidden -z-10",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/90 to-background/80"}),e.jsx(U.div,{className:"absolute top-1/3 -left-40 w-96 h-96 rounded-full bg-primary/20 blur-3xl",animate:{y:[0,20,0],x:[0,10,0],scale:[1,1.05,1]},transition:{duration:15,repeat:1/0,ease:"easeInOut"},style:{y:a?0:-i}}),e.jsx(U.div,{className:"absolute bottom-1/4 -right-20 w-80 h-80 rounded-full bg-secondary/10 blur-3xl",animate:{y:[0,-30,0],x:[0,-15,0],scale:[1,1.1,1]},transition:{duration:20,repeat:1/0,ease:"easeInOut",delay:2},style:{y:a?0:i*.8}}),e.jsx(U.div,{className:"absolute top-1/2 left-1/3 w-64 h-64 rounded-full bg-accent/15 blur-3xl",animate:{y:[0,25,0],x:[0,-10,0],scale:[1,.9,1]},transition:{duration:18,repeat:1/0,ease:"easeInOut",delay:1},style:{y:a?0:i*.5}}),e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:20px_20px] opacity-[0.15]",style:{transform:`translateY(${a?0:i*.1}px)`}}),a&&e.jsxs(e.Fragment,{children:[e.jsx(ni,{number:12}),e.jsx(oi,{number:30})]})]})},ci=({children:s,scrollY:t})=>e.jsxs("div",{className:"relative min-h-screen flex flex-col items-center justify-center p-4",children:[e.jsx(li,{scrollY:t,variant:"auth"}),e.jsx(ft,{children:e.jsx(U.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"relative z-10 w-full max-w-md",children:s})})]}),di=ue("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ye=n.forwardRef(({className:s,...t},a)=>e.jsx(Hs,{ref:a,className:x(di(),s),...t}));ye.displayName=Hs.displayName;const mi=L.object({email:L.string().email({message:"Please enter a valid email address"}),password:L.string().min(8,{message:"Password must be at least 8 characters"})}),ui=L.object({name:L.string().min(2,{message:"Name must be at least 2 characters"}),email:L.string().email({message:"Please enter a valid email address"}),password:L.string().min(8,{message:"Password must be at least 8 characters"}),confirmPassword:L.string()}).refine(s=>s.password===s.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]}),hi=L.object({email:L.string().email({message:"Please enter a valid email address"})});function xi({mode:s,onToggleMode:t,onSubmit:a,isLoading:i=!1}){const[r,o]=n.useState(!1),c=s==="signin"?mi:s==="signup"?ui:hi,{register:l,handleSubmit:u,formState:{errors:m}}=ar({resolver:rr(c),defaultValues:{email:"",password:"",confirmPassword:"",name:""}}),d={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.4}},exit:{opacity:0,y:-20,transition:{duration:.3}}};return e.jsx(ft,{mode:"wait",children:e.jsx(U.div,{initial:"hidden",animate:"visible",exit:"exit",variants:d,children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2 text-center",children:[e.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:s==="signin"?"Welcome back":s==="signup"?"Create an account":"Reset your password"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s==="signin"?"Enter your credentials to sign in":s==="signup"?"Enter your details to create your account":"Enter your email to reset your password"})]}),e.jsxs("form",{onSubmit:u(a),className:"space-y-4",children:[s==="signup"&&e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(ye,{htmlFor:"name",children:"Name"}),e.jsxs("div",{className:"relative",children:[e.jsx(Oe,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(X,{id:"name",placeholder:"John Doe",className:x("pl-10",m.name&&"border-destructive focus-visible:ring-destructive"),...l("name")})]}),m.name&&e.jsx("p",{className:"text-xs text-destructive",children:m.name.message})]})}),e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(ye,{htmlFor:"email",children:"Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(Se,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(X,{id:"email",placeholder:"example@example.com",type:"email",autoCapitalize:"none",autoComplete:"email",autoCorrect:"off",className:x("pl-10",m.email&&"border-destructive focus-visible:ring-destructive"),...l("email")})]}),m.email&&e.jsx("p",{className:"text-xs text-destructive",children:m.email.message})]})}),s!=="reset"&&e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(ye,{htmlFor:"password",children:"Password"}),s==="signin"&&e.jsx(p,{variant:"link",className:"px-0 text-xs text-muted-foreground",type:"button",onClick:()=>t("reset"),children:"Forgot password?"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Ne,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(X,{id:"password",type:r?"text":"password",placeholder:"••••••••",className:x("pl-10",m.password&&"border-destructive focus-visible:ring-destructive"),...l("password")}),e.jsxs(p,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7 p-0",onClick:()=>o(!r),children:[e.jsx("span",{className:"sr-only",children:r?"Hide password":"Show password"}),r?e.jsx("svg",{className:"h-4 w-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}):e.jsxs("svg",{className:"h-4 w-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})]})]}),m.password&&e.jsx("p",{className:"text-xs text-destructive",children:m.password.message})]})}),s==="signup"&&e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(ye,{htmlFor:"confirmPassword",children:"Confirm Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(Ne,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(X,{id:"confirmPassword",type:r?"text":"password",placeholder:"••••••••",className:x("pl-10",m.confirmPassword&&"border-destructive focus-visible:ring-destructive"),...l("confirmPassword")})]}),m.confirmPassword&&e.jsx("p",{className:"text-xs text-destructive",children:m.confirmPassword.message})]})}),e.jsxs(p,{className:"w-full",disabled:i,type:"submit",children:[i&&e.jsx(le,{className:"mr-2 h-4 w-4 animate-spin"}),s==="signin"?"Sign In":s==="signup"?"Create Account":"Send Reset Link"]})]}),e.jsx("div",{className:"text-center text-sm",children:s==="signin"?e.jsxs("p",{children:["Don't have an account?"," ",e.jsx(p,{variant:"link",className:"p-0 text-primary",onClick:()=>t("signup"),children:"Sign up"})]}):s==="signup"?e.jsxs("p",{children:["Already have an account?"," ",e.jsx(p,{variant:"link",className:"p-0 text-primary",onClick:()=>t("signin"),children:"Sign in"})]}):e.jsxs("p",{children:["Remember your password?"," ",e.jsx(p,{variant:"link",className:"p-0 text-primary",onClick:()=>t("signin"),children:"Sign in"})]})}),s!=="reset"&&e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("span",{className:"w-full border-t border-border"})}),e.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:e.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),s!=="reset"&&e.jsxs("div",{className:"flex flex-col space-y-2",children:[e.jsxs(p,{variant:"outline",type:"button",disabled:i,children:[e.jsxs("svg",{className:"mr-2 h-4 w-4",viewBox:"0 0 24 24",children:[e.jsx("path",{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",fill:"#4285F4"}),e.jsx("path",{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",fill:"#34A853"}),e.jsx("path",{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",fill:"#FBBC05"}),e.jsx("path",{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",fill:"#EA4335"})]}),"Google"]}),e.jsxs(p,{variant:"outline",type:"button",disabled:i,children:[e.jsx("svg",{className:"mr-2 h-4 w-4",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"})}),"Facebook"]}),e.jsxs(p,{variant:"outline",type:"button",disabled:i,children:[e.jsx("svg",{className:"mr-2 h-4 w-4",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M20.283 10.356h-8.327v3.451h4.792c-.446 2.193-2.313 3.453-4.792 3.453a5.27 5.27 0 0 1-5.279-5.28 5.27 5.27 0 0 1 5.279-5.279c1.259 0 2.397.447 3.29 1.178l2.6-2.599c-1.584-1.381-3.615-2.233-5.89-2.233a8.908 8.908 0 0 0-8.934 8.934 8.907 8.907 0 0 0 8.934 8.934c4.467 0 8.529-3.249 8.529-8.934 0-.528-.081-1.097-.202-1.625z"})}),"GitHub"]})]})]})},s)})}const _t={supabaseUrl:"https://qmulvrukxufxxyrjgkrv.supabase.co",supabaseAnonKey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFtdWx2cnVreHVmeHh5cmpna3J2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzkzNzg5ODgsImV4cCI6MjA1NDk1NDk4OH0.c4q8EdG7RaN9GcHdxk8nCnB_LUw1gigOkG0bP2qtHXM"},ys=_t.supabaseUrl,vs=_t.supabaseAnonKey;let Mt;try{Mt=Ts(ys,vs,{auth:{persistSession:!0,storageKey:"habitusnet-auth",autoRefreshToken:!0,detectSessionInUrl:!0}})}catch(s){throw console.error("Error initializing Supabase client:",s),s}const Pe=Mt;function pi(){const[s,t]=n.useState("portal-selection"),[a,i]=n.useState("signin"),[r,o]=n.useState(null),[c,l]=n.useState(!1),u=$(),[m,d]=n.useState(0);n.useEffect(()=>{const b=At();b&&K.error(`Authentication error: ${b}`);const{data:{subscription:S}}=Pe.auth.onAuthStateChange((g,h)=>{h&&(K.success("Signed in successfully"),u("/dashboard"))});return()=>S.unsubscribe()},[u]);const j=async b=>{l(!0);try{if(a==="signin"){const{error:S}=await Pe.auth.signInWithPassword({email:b.email,password:b.password});if(S)throw S}else if(a==="signup"){const{error:S}=await Pe.auth.signUp({email:b.email,password:b.password,options:{data:{full_name:b.name,portal_type:r}}});if(S)throw S;K.success("Account created successfully. Please check your email for verification."),i("signin")}else if(a==="reset"){const{error:S}=await Pe.auth.resetPasswordForEmail(b.email,{redirectTo:`${ai()}/reset-password`});if(S)throw S;K.success("Password reset link sent to your email"),i("signin")}}catch(S){console.error("Authentication error:",S),S instanceof Zt?K.error(S.message):K.error("Authentication failed. Please try again.")}finally{l(!1)}},y=b=>{o(b),t("auth-form")};return s==="portal-selection"?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("div",{className:"bg-accent/10 p-4",children:e.jsxs("div",{className:"container max-w-7xl mx-auto flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-accent",children:[e.jsx(ts,{className:"h-5 w-5"}),e.jsx("span",{className:"font-medium",children:"Emergency IT Support"})]}),e.jsx(p,{variant:"outline",className:"bg-accent text-white hover:bg-accent/90",children:"Contact Support"})]})}),e.jsx("div",{className:"container max-w-7xl mx-auto py-16 px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx("h1",{className:"text-4xl font-bold text-foreground",children:"Welcome to HabitusNet"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Please select your login portal"})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[e.jsxs(A,{className:"hover-lift glass-effect",children:[e.jsxs(E,{children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-accent/10 flex items-center justify-center mb-4",children:e.jsx(we,{className:"w-6 h-6 text-accent"})}),e.jsx(z,{children:"Customers & Client Projects"}),e.jsx(Q,{children:"Access your project dashboard and resources"})]}),e.jsx(M,{children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Secure portal for clients to track projects and access documentation"})}),e.jsx(ae,{children:e.jsx(p,{onClick:()=>y("client"),className:"w-full",variant:"outline",children:"Client Login"})})]}),e.jsxs(A,{className:"hover-lift glass-effect",children:[e.jsxs(E,{children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-accent/10 flex items-center justify-center mb-4",children:e.jsx(se,{className:"w-6 h-6 text-accent"})}),e.jsx(z,{children:"Vendors & Suppliers"}),e.jsx(Q,{children:"Partner portal access"})]}),e.jsx(M,{children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Dedicated portal for vendors and service providers"})}),e.jsx(ae,{children:e.jsx(p,{onClick:()=>y("partner"),className:"w-full",variant:"outline",children:"Partner Login"})})]}),e.jsxs(A,{className:"hover-lift glass-effect",children:[e.jsxs(E,{children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-accent/10 flex items-center justify-center mb-4",children:e.jsx(Sa,{className:"w-6 h-6 text-accent"})}),e.jsx(z,{children:"Employee Portal"}),e.jsx(Q,{children:"HabitusNet staff access"})]}),e.jsx(M,{children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Internal systems and resources for HabitusNet employees"})}),e.jsx(ae,{children:e.jsx(p,{onClick:()=>y("staff"),className:"w-full",variant:"outline",children:"Staff Login"})})]})]}),e.jsx("div",{className:"text-center text-sm text-muted-foreground",children:e.jsxs("p",{children:["By accessing these portals, you agree to our"," ",e.jsx(v,{to:"/terms",className:"text-accent hover:underline",children:"Terms of Service"})," ","and"," ",e.jsx(v,{to:"/privacy",className:"text-accent hover:underline",children:"Privacy Policy"})]})})]})}),e.jsx(St,{})]}):e.jsx(ci,{scrollY:m,children:e.jsxs(ii,{children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsxs("div",{className:"relative h-10 w-10",children:[e.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-br from-primary to-primary-foreground opacity-70 blur"}),e.jsx("div",{className:"relative flex h-full w-full items-center justify-center rounded-full bg-background/90 text-lg font-bold",children:"H"})]})}),r&&e.jsx("div",{className:"mb-4 text-center",children:e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:r==="client"?"Client Portal":r==="partner"?"Partner Portal":"Staff Portal"})}),e.jsx(xi,{mode:a,onToggleMode:i,onSubmit:j,isLoading:c}),e.jsx(p,{variant:"ghost",className:"w-full mt-4",onClick:()=>t("portal-selection"),children:"Back to portal selection"})]})})}const P=()=>{const{theme:s,setTheme:t}=Tt(),a=()=>{t(s==="dark"?"light":"dark")};return e.jsx("nav",{className:"bg-background border-b sticky top-0 z-50",children:e.jsxs("div",{className:"container mx-auto px-4 py-3 flex items-center justify-between",children:[e.jsx(v,{to:"/",className:"text-2xl font-bold text-primary",children:"HabitusNet"}),e.jsxs("div",{className:"hidden md:flex space-x-6",children:[e.jsx(v,{to:"/",className:"text-gray-700 hover:text-primary transition-colors duration-200",children:"Home"}),e.jsx(v,{to:"/about",className:"text-gray-700 hover:text-primary transition-colors duration-200",children:"About"}),e.jsx(v,{to:"/services",className:"text-gray-700 hover:text-primary transition-colors duration-200",children:"Services"}),e.jsx(v,{to:"/contact",className:"text-gray-700 hover:text-primary transition-colors duration-200",children:"Contact"})]}),e.jsxs(p,{variant:"outline",size:"icon",onClick:a,"aria-label":"Toggle theme",children:[s==="dark"?e.jsx(nt,{className:"h-[1.2rem] w-[1.2rem]"}):e.jsx(ot,{className:"h-[1.2rem] w-[1.2rem]"}),e.jsx("span",{className:"sr-only",children:"Toggle theme"})]})]})})},Ge=({content:s,contentType:t,slug:a,className:i,renderComponent:r,fields:o={includeContent:!0,includeFrontmatter:!0,includeHtml:!1}})=>{const[c,l]=n.useState(null),[u,m]=n.useState(null),[d,j]=n.useState(!!(t&&a)),[y,b]=n.useState(null);return n.useEffect(()=>{if(s){m(s),l({slug:"inline-content",content:s});return}t&&a&&(async()=>{try{j(!0);const g=`/content/${t}/${a}.md`,h=await bt(g);l({slug:a,frontmatter:h.frontmatter,content:h.content}),m(h.content),j(!1)}catch(g){console.error(`Error loading ${t} content for ${a}:`,g);let h="Failed to load content";g instanceof Error&&(h=`${h}: ${g.message}`),b(h),j(!1)}})()},[s,t,a,o]),d?e.jsxs("div",{className:x("animate-pulse space-y-2",i),children:[e.jsx(f,{className:"h-4 w-3/4"}),e.jsx(f,{className:"h-4 w-full"}),e.jsx(f,{className:"h-4 w-5/6"}),e.jsx(f,{className:"h-4 w-2/3"})]}):y?e.jsx("div",{className:x("text-destructive p-2 border border-destructive/50 rounded",i),children:e.jsx("p",{className:"text-sm",children:y})}):!u&&!c?null:r&&c?e.jsx(r,{...c}):e.jsxs("div",{className:x("prose dark:prose-invert max-w-none",i),children:[c?.frontmatter?.title&&e.jsx("h1",{children:c.frontmatter.title}),e.jsx(ss,{remarkPlugins:[ra],rehypePlugins:[aa],children:u||""})]})},gi=()=>e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx(P,{}),e.jsxs("main",{className:"flex-grow",children:[e.jsx("div",{className:"bg-muted",children:e.jsxs("div",{className:"container mx-auto py-16 px-4",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"About HabitusNet"}),e.jsx("p",{className:"text-xl text-muted-foreground",children:"Learn about our company and mission"})]})}),e.jsx("div",{className:"container mx-auto px-4 py-12",children:e.jsx(Ge,{contentPath:"pages/about/index.md"})})]}),e.jsx(I,{})]}),fi=s=>({id:String(s.id||""),title:s.title||"",description:s.description||null,content:s.content||"",features:Array.isArray(s.features)?s.features:[],icon:s.icon||null,image_url:s.image_url||null,category:s.category||null,is_active:s.is_active!==void 0?!!s.is_active:!0,order_index:typeof s.order_index=="number"?s.order_index:0,created_at:s.created_at||new Date().toISOString(),updated_at:s.updated_at||new Date().toISOString()}),ji=()=>{const{data:s,isLoading:t}=H({queryKey:["services"],queryFn:async()=>{const{data:a,error:i}=await _.from("service_content").select("*").order("order_index",{ascending:!0});if(i)throw i;return a.map(r=>fi(r))}});return t?e.jsx("div",{children:"Loading services..."}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:s?.map(a=>e.jsxs(A,{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:a.title}),a.description&&e.jsx("p",{className:"text-muted-foreground mb-4",children:a.description}),a.features&&a.features.length>0&&e.jsx("ul",{className:"mt-4 list-disc list-inside",children:a.features.map((i,r)=>e.jsx("li",{className:"text-sm",children:String(i)},r))}),a.category&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-4",children:["Category: ",a.category]})]},a.id))})},bi=()=>{const{data:s,isLoading:t}=H({queryKey:["service-slides"],queryFn:async()=>{const{data:a,error:i}=await _.from("service_content").select("*").eq("is_active",!0).order("order_index");if(i)throw i;return(a||[]).map(r=>({id:r.id,title:r.title,subtitle:r.description,description:r.content||"",image_url:r.image_url||"",cta:{text:"Learn More",link:`/services/${r.id}`}}))}});return t?e.jsx("div",{children:"Loading..."}):e.jsx("div",{className:"relative overflow-hidden",children:s?.map(a=>e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:a.image_url,alt:a.title,className:"w-full h-96 object-cover"}),e.jsxs("div",{className:"absolute inset-0 bg-black bg-opacity-50 p-8",children:[e.jsx("h2",{className:"text-white text-3xl mb-4",children:a.title}),a.subtitle&&e.jsx("p",{className:"text-white text-xl mb-4",children:a.subtitle}),e.jsx("p",{className:"text-white mb-8",children:a.description}),e.jsx("a",{href:a.cta.link,className:"bg-primary text-white px-6 py-2 rounded",children:a.cta.text})]})]},a.id))})},yi=()=>{const s=$(),t=["24/7 Swiss-based support","Microsoft certified experts","Industry-leading security","AI-powered solutions"];return e.jsx("section",{className:"py-20 bg-accent/5",children:e.jsx("div",{className:"container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsx(A,{className:"p-8 md:p-12 bg-card",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold text-foreground mb-6",children:"Ready to Transform Your IT Infrastructure?"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Contact us for a personalized consultation and discover how our services can benefit your organization."}),e.jsx("ul",{className:"space-y-4 mb-8",children:t.map((a,i)=>e.jsxs("li",{className:"flex items-center text-muted-foreground",children:[e.jsx(Qe,{className:"w-5 h-5 mr-3 text-primary"}),a]},i))}),e.jsxs(p,{size:"lg",onClick:()=>s("/contact"),className:"bg-primary hover:bg-primary/90",children:["Schedule a Consultation",e.jsx(ee,{className:"ml-2 h-5 w-5"})]})]}),e.jsx("div",{className:"hidden md:block",children:e.jsx("div",{className:"aspect-square rounded-xl bg-primary/10"})})]})})})})},vi=()=>e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx(P,{}),e.jsxs("main",{className:"flex-grow",children:[e.jsx("div",{className:"bg-muted",children:e.jsxs("div",{className:"container mx-auto py-16 px-4",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Our Services"}),e.jsx("p",{className:"text-xl text-muted-foreground",children:"Comprehensive solutions for your business needs"})]})}),e.jsx("div",{className:"container mx-auto px-4 py-12",children:e.jsx(Ge,{contentPath:"pages/services/index.md"})}),e.jsx(bi,{}),e.jsx(ji,{}),e.jsx(yi,{})]}),e.jsx(I,{})]}),Ni=({variant:s="default",className:t})=>{const a=s==="featured",i=s==="compact";return e.jsxs(A,{className:x("overflow-hidden transition-all h-full flex flex-col",a?"md:flex-row":"",t),children:[e.jsxs("div",{className:x("block overflow-hidden relative",a?"md:w-2/5 min-h-48":"aspect-video",i?"h-32":""),children:[e.jsx(f,{className:"w-full h-full"}),!i&&e.jsx("div",{className:"absolute top-3 left-3",children:e.jsx(f,{className:"h-5 w-20"})})]}),e.jsxs("div",{className:x("flex flex-col flex-grow",a?"md:w-3/5":""),children:[e.jsxs(E,{className:x("flex flex-col gap-2",i?"p-4":""),children:[i&&e.jsx(f,{className:"h-4 w-16 mb-1"}),e.jsx(f,{className:x("w-full",a?"h-8":"h-6",i?"h-5":"")}),!i&&e.jsxs("div",{className:"space-y-2 mt-2",children:[e.jsx(f,{className:"h-4 w-full"}),e.jsx(f,{className:"h-4 w-4/5"})]})]}),e.jsx(M,{className:x("flex-grow",i?"p-4 pt-0":""),children:i&&e.jsxs("div",{className:"space-y-1",children:[e.jsx(f,{className:"h-3 w-full"}),e.jsx(f,{className:"h-3 w-4/5"})]})}),e.jsx(ae,{className:x(i?"p-4 pt-0":""),children:e.jsxs("div",{className:"flex flex-wrap items-center gap-4 w-full",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(f,{className:"h-6 w-6 rounded-full mr-2"}),e.jsx(f,{className:"h-3 w-24"})]}),e.jsx("div",{className:"flex items-center",children:e.jsx(f,{className:"h-3 w-20"})}),!i&&e.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[e.jsx(f,{className:"h-5 w-12"}),e.jsx(f,{className:"h-5 w-12"})]})]})})]})]})},Et=ua,ds=n.forwardRef(({className:s,...t},a)=>e.jsx(Ws,{ref:a,className:x("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",s),...t}));ds.displayName=Ws.displayName;const Z=n.forwardRef(({className:s,...t},a)=>e.jsx(Vs,{ref:a,className:x("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",s),...t}));Z.displayName=Vs.displayName;const J=n.forwardRef(({className:s,...t},a)=>e.jsx(Us,{ref:a,className:x("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...t}));J.displayName=Us.displayName;const wi=xa,ki=pa,Si=n.forwardRef(({className:s,inset:t,children:a,...i},r)=>e.jsxs(Gs,{ref:r,className:x("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",s),...i,children:[a,e.jsx(ls,{className:"ml-auto h-4 w-4"})]}));Si.displayName=Gs.displayName;const Ci=n.forwardRef(({className:s,...t},a)=>e.jsx(Ys,{ref:a,className:x("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t}));Ci.displayName=Ys.displayName;const Lt=n.forwardRef(({className:s,sideOffset:t=4,...a},i)=>e.jsx(ha,{children:e.jsx(Ks,{ref:i,sideOffset:t,className:x("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...a})}));Lt.displayName=Ks.displayName;const es=n.forwardRef(({className:s,inset:t,...a},i)=>e.jsx(Xs,{ref:i,className:x("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",s),...a}));es.displayName=Xs.displayName;const Ti=n.forwardRef(({className:s,children:t,checked:a,...i},r)=>e.jsxs(Zs,{ref:r,className:x("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:a,...i,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Js,{children:e.jsx(pe,{className:"h-4 w-4"})})}),t]}));Ti.displayName=Zs.displayName;const Ii=n.forwardRef(({className:s,children:t,...a},i)=>e.jsxs(Qs,{ref:i,className:x("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Js,{children:e.jsx(Ca,{className:"h-2 w-2 fill-current"})})}),t]}));Ii.displayName=Qs.displayName;const Pi=n.forwardRef(({className:s,inset:t,...a},i)=>e.jsx(et,{ref:i,className:x("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",s),...a}));Pi.displayName=et.displayName;const Ai=n.forwardRef(({className:s,...t},a)=>e.jsx(st,{ref:a,className:x("-mx-1 my-1 h-px bg-muted",s),...t}));Ai.displayName=st.displayName;function _i(s){const t=/^---\n([\s\S]*?)\n---\n/,a=s.match(t);if(!a)return{metadata:{},content:s};const i=a[1],r=s.replace(t,""),o={},c=i.split(` `);for(const l of c){const u=l.indexOf(":");if(u!==-1){const m=l.slice(0,u).trim();let d=l.slice(u+1).trim();if(d.startsWith("[")&&d.endsWith("]"))try{d=JSON.parse(d.replace(/'/g,'"'))}catch(j){console.error("Error parsing array value:",j)}if(m.includes(".")){const j=m.split(".");let y=o;for(let b=0;b{try{const r=await Rt("blog/published/2024-01-15-ai-security-landscape.md"),o={id:"1",slug:"ai-security-landscape",title:r.metadata.title||"AI Security Landscape",excerpt:r.metadata.description||"An overview of AI security challenges",content:r.content,created_at:r.metadata.date||"2024-01-15",updated_at:r.metadata.lastUpdated||"2024-01-15",featured_image:r.metadata.featured_image||"/public/content/blog/ai-security.jpg",author_id:"1",author_name:r.metadata.author||"Jane Smith",author_image:r.metadata.author_image||"",category_name:r.metadata.category||"Security",category_id:"1",tags:r.metadata.tags||["AI","Security","Technology"],status:"published",metadata:{},published_at:r.metadata.date||"2024-01-15"};let l=Array(12).fill(null).map((j,y)=>({...o,id:(y+1).toString(),slug:`${o.slug}-${y+1}`,title:`${o.title} ${y+1}`,created_at:new Date(new Date(o.created_at).getTime()-y*864e5).toISOString().split("T")[0],category_name:y%3===0?"Security":y%3===1?"Technology":"Industry",tags:y%2===0?[...o.tags]:["Cloud","Enterprise","Governance"]}));if(i){const j=i.toLowerCase();l=l.filter(y=>y.title.toLowerCase().includes(j)||y.excerpt.toLowerCase().includes(j)||y.content.toLowerCase().includes(j)||y.tags.some(b=>b.toLowerCase().includes(j)))}t&&(l=l.filter(j=>j.category_name.toLowerCase()===t.toLowerCase())),a&&(l=l.filter(j=>j.tags.some(y=>y.toLowerCase()===a.toLowerCase())));const u=(s-1)*Re,m=u+Re;return{posts:l.slice(u,m),total:l.length}}catch(r){return console.error("Error loading blog posts:",r),{posts:[],total:0}}},Ei=async()=>["Security","Technology","Industry","Research","Insights"],Li=async()=>["AI","Security","Technology","Cloud","Enterprise","Governance","Data","Risk Management"],Ns=()=>{G();const s=$(),{category:t,tag:a}=Fe(),[i,r]=n.useState(""),[o,c]=n.useState(""),[l,u]=n.useState([]),[m,d]=n.useState([]),[j,y]=n.useState([]),[b,S]=n.useState(!0),[g,h]=n.useState(1),[N,C]=n.useState(0),[T,B]=n.useState(t),[O,Ie]=n.useState(a),[ms,Ot]=n.useState(!1),[Y,us]=n.useState("grid");n.useEffect(()=>{(async()=>{S(!0);const{posts:W,total:F}=await Mi(g,T,O,o);u(W),C(F),S(!1)})()},[g,T,O,o]),n.useEffect(()=>{(async()=>{const W=await Ei(),F=await Li();d(W),y(F)})()},[]);const $t=w=>{w.preventDefault(),c(i),h(1),re()},Bt=w=>{B(T===w?void 0:w),h(1),re()},qt=w=>{Ie(O===w?void 0:w),h(1),re()},re=()=>{let w="/resources/blog";T&&(w+=`/category/${T.toLowerCase()}`),O&&(w+=`/tag/${O.toLowerCase()}`),o&&(w+=`?search=${encodeURIComponent(o)}`),s(w)},hs=()=>{B(void 0),Ie(void 0),c(""),r(""),h(1),s("/resources/blog")},je=Math.ceil(N/Re);return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsxs(jt,{children:[e.jsx("title",{children:"Blog - HabitusNet"}),e.jsx("meta",{name:"description",content:"Explore the latest insights, trends, and expertise in security, technology, and industry from HabitusNet professionals."})]}),e.jsx(P,{}),e.jsx("main",{className:"flex-grow py-12 md:py-16",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-4xl mx-auto mb-12",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold tracking-tight mb-4",children:"Insights & Expertise"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:"Explore our latest articles, insights, and thought leadership on security, technology, and industry trends."}),e.jsx(Ge,{contentPath:"blog/intro.md",className:"mb-6"})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-4 mb-6",children:[e.jsx("form",{onSubmit:$t,className:"flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(Ta,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(X,{type:"search",placeholder:"Search articles...",value:i,onChange:w=>r(w.target.value),className:"pl-10 w-full"}),e.jsx(p,{type:"submit",size:"sm",variant:"ghost",className:"absolute right-1 top-1/2 -translate-y-1/2 h-7",children:"Search"})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(wi,{children:[e.jsx(ki,{asChild:!0,children:e.jsxs(p,{variant:"outline",className:"flex items-center",children:[e.jsx(Ia,{className:"mr-2 h-4 w-4"}),e.jsx("span",{className:"hidden md:inline",children:"View Options"})]})}),e.jsxs(Lt,{align:"end",children:[e.jsx(es,{onClick:()=>us("grid"),children:"Grid View"}),e.jsx(es,{onClick:()=>us("list"),children:"List View"})]})]}),e.jsxs(p,{variant:"outline",onClick:()=>Ot(!ms),className:"flex items-center",children:[e.jsx(Pa,{className:"mr-2 h-4 w-4"}),e.jsx("span",{className:"hidden md:inline",children:"Filters"}),(T||O||o)&&e.jsx(D,{variant:"secondary",className:"ml-2 px-1.5",children:[T?1:0,O?1:0,o?1:0].reduce((w,W)=>w+W,0)})]}),(T||O||o)&&e.jsxs(p,{variant:"ghost",onClick:hs,className:"flex items-center",children:[e.jsx(ie,{className:"mr-2 h-4 w-4"}),e.jsx("span",{className:"hidden md:inline",children:"Clear"})]})]})]}),ms&&e.jsx("div",{className:"p-4 border rounded-lg mb-6 bg-card",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"font-medium mb-3 flex items-center",children:[e.jsx(ns,{className:"mr-2 h-4 w-4"}),"Categories"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:m.map(w=>e.jsx(D,{variant:T===w?"default":"outline",className:"cursor-pointer",onClick:()=>Bt(w),children:w},w))})]}),e.jsxs("div",{children:[e.jsxs("h3",{className:"font-medium mb-3 flex items-center",children:[e.jsx(xe,{className:"mr-2 h-4 w-4"}),"Tags"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:j.map(w=>e.jsx(D,{variant:O===w?"default":"outline",className:"cursor-pointer",onClick:()=>qt(w),children:w},w))})]})]})}),(T||O||o)&&e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Active filters:"}),T&&e.jsxs(D,{variant:"secondary",className:"flex items-center gap-1",children:[e.jsxs("span",{children:["Category: ",T]}),e.jsx(ie,{className:"h-3 w-3 cursor-pointer",onClick:()=>{B(void 0),re()}})]}),O&&e.jsxs(D,{variant:"secondary",className:"flex items-center gap-1",children:[e.jsxs("span",{children:["Tag: ",O]}),e.jsx(ie,{className:"h-3 w-3 cursor-pointer",onClick:()=>{Ie(void 0),re()}})]}),o&&e.jsxs(D,{variant:"secondary",className:"flex items-center gap-1",children:[e.jsxs("span",{children:["Search: ",o]}),e.jsx(ie,{className:"h-3 w-3 cursor-pointer",onClick:()=>{c(""),r(""),re()}})]})]})]}),e.jsxs(Et,{defaultValue:"all",className:"mb-8",children:[e.jsxs(ds,{className:"mb-6",children:[e.jsx(Z,{value:"all",children:"All Articles"}),e.jsx(Z,{value:"featured",children:"Featured"}),e.jsx(Z,{value:"recent",children:"Recent"}),e.jsx(Z,{value:"popular",children:"Popular"})]}),e.jsx(J,{value:"all",children:b?e.jsx("div",{className:Y==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6":"space-y-6",children:Array(Re).fill(null).map((w,W)=>e.jsx(Ni,{variant:Y==="grid"?"default":"compact"},W))}):l.length>0?e.jsx("div",{className:Y==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6":"space-y-6",children:l.map(w=>e.jsx(ne,{post:w,variant:Y==="grid"?"default":"compact"},w.id))}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx("h3",{className:"text-lg font-medium mb-2",children:"No articles found"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Try adjusting your filters or search terms to find what you're looking for."}),e.jsx(p,{onClick:hs,children:"Clear Filters"})]})}),e.jsx(J,{value:"featured",children:e.jsx("div",{className:Y==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6":"space-y-6",children:!b&&l.slice(0,3).map(w=>e.jsx(ne,{post:w,variant:"featured"},w.id))})}),e.jsx(J,{value:"recent",children:e.jsx("div",{className:Y==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6":"space-y-6",children:!b&&l.sort((w,W)=>new Date(W.created_at).getTime()-new Date(w.created_at).getTime()).slice(0,6).map(w=>e.jsx(ne,{post:w,variant:Y==="grid"?"default":"compact"},w.id))})}),e.jsx(J,{value:"popular",children:e.jsx("div",{className:Y==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6":"space-y-6",children:!b&&l.slice(0,6).map(w=>e.jsx(ne,{post:w,variant:Y==="grid"?"default":"compact"},w.id))})})]}),je>1&&e.jsx("div",{className:"flex justify-center mt-12",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(p,{variant:"outline",size:"icon",onClick:()=>h(Math.max(1,g-1)),disabled:g===1,children:e.jsx(ht,{className:"h-4 w-4"})}),e.jsx("div",{className:"flex items-center",children:Array.from({length:je}).map((w,W)=>{const F=W+1;return F===1||F===je||F>=g-1&&F<=g+1?e.jsx(p,{variant:g===F?"default":"outline",size:"icon",onClick:()=>h(F),className:"mx-1 h-8 w-8",children:F},F):F===g-2||F===g+2?e.jsx("span",{className:"mx-1",children:"..."},F):null})}),e.jsx(p,{variant:"outline",size:"icon",onClick:()=>h(Math.min(je,g+1)),disabled:g===je,children:e.jsx(ls,{className:"h-4 w-4"})})]})})]})}),e.jsx(I,{})]})},Ft=n.forwardRef(({className:s,orientation:t="horizontal",decorative:a=!0,...i},r)=>e.jsx(tt,{ref:r,decorative:a,orientation:t,className:x("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...i}));Ft.displayName=tt.displayName;const Ri=()=>{const{slug:s}=Fe(),t=$(),[a,i]=n.useState(null),[r,o]=n.useState([]),[c,l]=n.useState(!0),[u,m]=n.useState(null),[d,j]=n.useState(!1);n.useEffect(()=>{s&&(async()=>{try{l(!0);const h=await Rt("blog/published/2024-01-15-ai-security-landscape.md"),N={id:"1",slug:s||"ai-security-landscape",title:h.metadata.title||"AI Security Landscape",excerpt:h.metadata.description||"An overview of AI security challenges",content:h.content,created_at:h.metadata.date||"2024-01-15",updated_at:h.metadata.lastUpdated||"2024-01-15",featured_image:h.metadata.featured_image||"/public/content/blog/ai-security.jpg",author_id:"1",author_name:h.metadata.author||"Jane Smith",author_image:h.metadata.author_image||"",category_name:h.metadata.category||"Security",category_id:"1",tags:h.metadata.tags||["AI","Security","Technology"],status:"published",metadata:{},published_at:h.metadata.date||"2024-01-15"};i(N),o(Array(3).fill(null).map((C,T)=>({...N,id:`related-${T+1}`,slug:`${N.slug}-related-${T+1}`,title:`Related Post ${T+1}: ${N.title}`,created_at:new Date(new Date(N.created_at).getTime()-T*864e5).toISOString().split("T")[0]}))),l(!1)}catch(h){console.error("Error loading blog post:",h),m("Failed to load the blog post."),l(!1)}})()},[s]);const y=g=>{const N=g.trim().split(/\s+/).length;return Math.ceil(N/200)},b=g=>{const h=window.location.href,N=a?.title||"HabitusNet Blog Post";switch(g){case"facebook":window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(h)}`,"_blank");break;case"twitter":window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(h)}&text=${encodeURIComponent(N)}`,"_blank");break;case"linkedin":window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(h)}`,"_blank");break;case"copy":navigator.clipboard.writeText(h).then(()=>{j(!0),setTimeout(()=>j(!1),2e3)});break}};if(c)return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(P,{}),e.jsx("main",{className:"flex-grow py-12 md:py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"max-w-3xl mx-auto",children:e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-8 bg-muted rounded w-3/4"}),e.jsx("div",{className:"h-4 bg-muted rounded w-1/2"}),e.jsx("div",{className:"h-96 bg-muted rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-4 bg-muted rounded w-full"}),e.jsx("div",{className:"h-4 bg-muted rounded w-full"}),e.jsx("div",{className:"h-4 bg-muted rounded w-5/6"})]})]})})})}),e.jsx(I,{})]});if(u||!a)return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(P,{}),e.jsx("main",{className:"flex-grow py-12 md:py-16",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h1",{className:"text-2xl font-bold mb-4",children:u||"Blog post not found"}),e.jsx("p",{className:"mb-6",children:"The blog post you're looking for couldn't be loaded."}),e.jsxs(p,{onClick:()=>t("/resources/blog"),children:[e.jsx(ce,{className:"mr-2 h-4 w-4"}),"Back to Blog"]})]})}),e.jsx(I,{})]});const S=y(a.content);return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsxs(jt,{children:[e.jsxs("title",{children:[a.title," - HabitusNet Blog"]}),e.jsx("meta",{name:"description",content:a.excerpt||""}),e.jsx("meta",{property:"og:title",content:a.title}),e.jsx("meta",{property:"og:description",content:a.excerpt||""}),a.featured_image&&e.jsx("meta",{property:"og:image",content:a.featured_image}),e.jsx("meta",{property:"og:url",content:window.location.href}),e.jsx("meta",{property:"og:type",content:"article"})]}),e.jsx(P,{}),e.jsx("main",{className:"flex-grow py-8 md:py-12",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-4xl mx-auto mb-6 flex justify-between items-center",children:[e.jsxs(v,{to:"/resources/blog",className:"text-sm text-muted-foreground hover:text-foreground flex items-center transition-colors",children:[e.jsx(ht,{className:"h-4 w-4 mr-1"}),"Back to all articles"]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Share this article:"}),e.jsxs("div",{className:"flex space-x-1",children:[e.jsxs(p,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>b("facebook"),children:[e.jsx(ps,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Share on Facebook"})]}),e.jsxs(p,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>b("twitter"),children:[e.jsx(Ee,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Share on Twitter"})]}),e.jsxs(p,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>b("linkedin"),children:[e.jsx(Le,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Share on LinkedIn"})]}),e.jsxs(p,{variant:"ghost",size:"icon",className:"h-8 w-8 relative",onClick:()=>b("copy"),children:[e.jsx(gs,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Copy link"}),d&&e.jsx("span",{className:"absolute -bottom-8 whitespace-nowrap left-1/2 transform -translate-x-1/2 bg-primary text-primary-foreground text-xs py-1 px-2 rounded",children:"Copied!"})]})]})]})]}),e.jsxs("article",{className:"max-w-4xl mx-auto mb-16",children:[a.category_name&&e.jsx("div",{className:"mb-3",children:e.jsx(v,{to:`/resources/blog/category/${a.category_name.toLowerCase().replace(/\s+/g,"-")}`,className:"text-sm font-medium text-primary hover:underline",children:a.category_name})}),e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold tracking-tight mb-6",children:a.title}),a.excerpt&&e.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:a.excerpt}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 mb-8 text-sm",children:[e.jsx("div",{className:"flex items-center",children:a.author_name&&e.jsxs("div",{className:"flex items-center mr-6",children:[e.jsxs(qe,{className:"h-10 w-10 mr-3 border",children:[e.jsx(He,{src:a.author_image,alt:a.author_name}),e.jsx(We,{children:a.author_name.split(" ").map(g=>g[0]).join("")})]}),e.jsxs("div",{children:[e.jsx("span",{className:"font-medium block",children:a.author_name}),e.jsx("span",{className:"text-muted-foreground text-xs",children:"Author"})]})]})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(xe,{className:"mr-1 h-4 w-4"}),e.jsx("time",{dateTime:a.created_at,children:at(new Date(a.created_at),"MMMM d, yyyy")})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(de,{className:"mr-1 h-4 w-4"}),e.jsxs("span",{children:[S," min read"]})]})]})]}),a.featured_image&&e.jsx("div",{className:"mb-10 rounded-lg overflow-hidden",children:e.jsx("img",{src:a.featured_image,alt:a.title,className:"w-full h-auto object-cover"})}),e.jsx("div",{className:"prose prose-lg dark:prose-invert max-w-none",children:e.jsx(Ge,{content:a.content})}),a.tags&&a.tags.length>0&&e.jsxs("div",{className:"mt-10",children:[e.jsx("h3",{className:"text-lg font-medium mb-3",children:"Tags"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a.tags.map(g=>e.jsx(v,{to:`/resources/blog/tag/${g.toLowerCase().replace(/\s+/g,"-")}`,children:e.jsxs(D,{variant:"secondary",className:"hover:bg-secondary/80",children:[e.jsx(ns,{className:"mr-1 h-3 w-3"}),g]})},g))})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx(Ft,{className:"mb-8"}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between",children:[e.jsx("div",{className:"mb-4 sm:mb-0",children:e.jsxs(p,{variant:"outline",onClick:()=>t(-1),className:"flex items-center",children:[e.jsx(ce,{className:"mr-2 h-4 w-4"}),"Back to Articles"]})}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"text-sm mr-3",children:"Share this article:"}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsxs(p,{variant:"outline",size:"icon",className:"h-9 w-9",onClick:()=>b("facebook"),children:[e.jsx(ps,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Share on Facebook"})]}),e.jsxs(p,{variant:"outline",size:"icon",className:"h-9 w-9",onClick:()=>b("twitter"),children:[e.jsx(Ee,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Share on Twitter"})]}),e.jsxs(p,{variant:"outline",size:"icon",className:"h-9 w-9",onClick:()=>b("linkedin"),children:[e.jsx(Le,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Share on LinkedIn"})]}),e.jsxs(p,{variant:"outline",size:"icon",className:"h-9 w-9 relative",onClick:()=>b("copy"),children:[e.jsx(gs,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Copy link"}),d&&e.jsx("span",{className:"absolute -bottom-8 whitespace-nowrap left-1/2 transform -translate-x-1/2 bg-primary text-primary-foreground text-xs py-1 px-2 rounded",children:"Copied!"})]})]})]})]})]})]}),r.length>0&&e.jsxs("section",{className:"max-w-6xl mx-auto mb-12",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-6",children:"Related Articles"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:r.map(g=>e.jsx(ne,{post:g,variant:"compact"},g.id))})]})]})}),e.jsx(I,{})]})},Fi=()=>{const[s,t]=n.useState(""),[a,i]=n.useState({title:"Get in Touch",description:"Have a question or want to learn more about our services? We're here to help."}),[r,o]=n.useState({name:"",email:"",company:"",phone:"",message:""}),[c,l]=n.useState({}),[u,m]=n.useState(!1),[d,j]=n.useState("idle"),[y,b]=n.useState("");n.useEffect(()=>{fetch("/content/pages/contact/index.md").then(N=>N.ok?N.text():`# Contact Us We're here to help you secure your digital future. Reach out to discuss how our IT security and digital transformation solutions can elevate your business.`).then(N=>{try{const{data:C,content:T}=Is(N);i(C),t(T)}catch(C){console.error("Error parsing frontmatter:",C),t(N)}})},[]);const S=N=>{const{name:C,value:T}=N.target;o(B=>({...B,[C]:T}))},g=()=>{const N={};let C=!0;return r.name.trim()||(N.name="Name is required",C=!1),r.email.trim()?/\S+@\S+\.\S+/.test(r.email)||(N.email="Email is invalid",C=!1):(N.email="Email is required",C=!1),r.message.trim()?r.message.trim().length<10&&(N.message="Message must be at least 10 characters",C=!1):(N.message="Message is required",C=!1),l(N),C},h=async N=>{if(N.preventDefault(),j("idle"),b(""),!!g()){m(!0);try{const{supabase:C}=await me(async()=>{const{supabase:O}=await Promise.resolve().then(()=>Or);return{supabase:O}},void 0),{data:T,error:B}=await C.from("contact_submissions").insert({name:r.name,email:r.email,company:r.company||null,phone:r.phone||null,message:r.message,status:"new"});B?(console.error("Form submission error:",B),j("error"),b(B.message||"There was an error submitting your message.")):(console.log("Form submission successful:",T),j("success"),o({name:"",email:"",company:"",phone:"",message:""}),l({}))}catch(C){console.error("Form submission error:",C),j("error"),b("An unexpected error occurred. Please try again.")}finally{m(!1)}}};return e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx(P,{}),e.jsxs("main",{className:"flex-grow container mx-auto px-4 py-8",children:[e.jsx("div",{className:"prose dark:prose-invert max-w-none mb-12",children:e.jsx(ss,{children:s})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-lg p-8",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Send Us a Message"}),e.jsxs("form",{onSubmit:h,children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Name"}),c.name?e.jsxs("div",{children:[e.jsx("input",{type:"text",id:"name",name:"name",value:r.name,onChange:S,"aria-required":"true","aria-invalid":"true",className:"w-full px-4 py-2 border border-red-500 dark:border-red-500 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"}),e.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",id:"name-error",children:c.name})]}):e.jsx("input",{type:"text",id:"name",name:"name",value:r.name,onChange:S,"aria-required":"true","aria-invalid":"false",className:"w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Email"}),c.email?e.jsxs("div",{children:[e.jsx("input",{type:"email",id:"email",name:"email",value:r.email,onChange:S,"aria-required":"true","aria-invalid":"true",className:"w-full px-4 py-2 border border-red-500 dark:border-red-500 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"}),e.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",id:"email-error",children:c.email})]}):e.jsx("input",{type:"email",id:"email",name:"email",value:r.email,onChange:S,"aria-required":"true","aria-invalid":"false",className:"w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"company",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Company"}),e.jsx("input",{type:"text",id:"company",name:"company",value:r.company,onChange:S,className:"w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"})]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Phone (optional)"}),e.jsx("input",{type:"tel",id:"phone",name:"phone",value:r.phone,onChange:S,className:"w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Message"}),c.message?e.jsxs("div",{children:[e.jsx("textarea",{id:"message",name:"message",rows:5,value:r.message,onChange:S,"aria-required":"true","aria-invalid":"true",className:"w-full px-4 py-2 border border-red-500 dark:border-red-500 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"}),e.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",id:"message-error",children:c.message})]}):e.jsx("textarea",{id:"message",name:"message",rows:5,value:r.message,onChange:S,"aria-required":"true","aria-invalid":"false",className:"w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"})]}),e.jsx("button",{type:"submit",disabled:u,className:"w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-md transition-colors disabled:opacity-70",children:u?"Sending...":"Send Message"}),d==="success"&&e.jsx("div",{className:"mt-4 p-3 bg-green-100 text-green-800 rounded-md",children:"Thank you for your message! We'll get back to you soon."}),d==="error"&&e.jsx("div",{className:"mt-4 p-3 bg-red-100 text-red-800 rounded-md",children:y||"Sorry, there was an error submitting your message. Please try again."})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-lg p-8 mb-8",children:[e.jsx("h3",{className:"text-xl font-bold mb-4",children:"Contact Information"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start",children:[e.jsxs("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400 mr-3 mt-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Address"}),e.jsxs("p",{className:"text-gray-600 dark:text-gray-400",children:["Bahnhofstrasse 21",e.jsx("br",{}),"8001 Zürich, Switzerland"]})]})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400 mr-3 mt-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Email"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"info@habitusnet.com"})]})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400 mr-3 mt-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:"Phone"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"+41 44 123 4567"})]})]})]})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-lg p-8",children:[e.jsx("h3",{className:"text-xl font-bold mb-4",children:"Business Hours"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Monday - Friday:"}),e.jsx("span",{children:"9:00 AM - 6:00 PM"})]}),e.jsxs("li",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Saturday:"}),e.jsx("span",{children:"By appointment"})]}),e.jsxs("li",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Sunday:"}),e.jsx("span",{children:"Closed"})]})]})]})]})]})]}),e.jsx(I,{})]})},Di=()=>e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"container mx-auto px-4 py-16",children:[e.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Whitepapers"}),e.jsx("p",{className:"text-muted-foreground",children:"Coming soon..."})]}),e.jsx(I,{})]}),zi=()=>e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"container mx-auto px-4 py-16",children:[e.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Webinars"}),e.jsx("p",{className:"text-muted-foreground",children:"Coming soon..."})]}),e.jsx(I,{})]}),Me=({icon:s,title:t,client:a,description:i,challenge:r,solution:o,targetPersona:c,metrics:l,link:u})=>e.jsxs(A,{className:"overflow-hidden group hover:shadow-lg transition-shadow duration-300",children:[e.jsxs(E,{className:"relative",children:[e.jsx("div",{className:"mb-4 p-3 rounded-full bg-primary/5 inline-block",children:e.jsx(s,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-semibold group-hover:text-primary transition-colors",children:t}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),e.jsxs(M,{className:"space-y-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:i}),e.jsx("div",{className:"space-y-2",children:e.jsx("div",{className:"grid grid-cols-2 gap-4",children:l.slice(0,4).map((m,d)=>e.jsxs("div",{className:"text-center p-3 bg-accent/5 rounded-lg",children:[e.jsx("p",{className:"font-semibold text-lg",children:m.value}),e.jsx("p",{className:"text-xs text-muted-foreground",children:m.label})]},d))})}),e.jsx(p,{variant:"outline",className:"w-full",asChild:!0,children:e.jsx("a",{href:u,children:"View Case Study"})})]})]}),te=({items:s,className:t})=>e.jsx("nav",{"aria-label":"Breadcrumb",className:x("flex",t),children:e.jsxs("ol",{className:"flex items-center space-x-2",children:[e.jsx("li",{children:e.jsx(v,{to:"/",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Home"})}),s.map((a,i)=>e.jsxs(Cs.Fragment,{children:[e.jsx(ls,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("li",{children:i===s.length-1?e.jsx("span",{className:"text-foreground font-medium",children:a.label}):e.jsx(v,{to:a.path,className:"text-muted-foreground hover:text-foreground transition-colors",children:a.label})})]},a.path))]})}),Dt=s=>({"Financial Services":se,Technology:ze,Healthcare:q,Manufacturing:ke,"Professional Services":Aa})[s]||se,Oi=()=>{const[s,t]=n.useState("all"),{data:a=[],isLoading:i}=H({queryKey:["case-studies"],queryFn:async()=>{const{data:l,error:u}=await _.from("case_studies").select("*").eq("is_active",!0).order("order_index",{ascending:!0});if(u)throw u;return l}}),r=[{label:"Resources",path:"/resources"},{label:"Case Studies",path:"/resources/case-studies"}],o=s==="all"?a:a.filter(l=>l.target_persona===s),c=l=>({icon:Dt(l.industry),title:l.title,client:l.client,description:l.challenge,results:l.results.split(` `),link:`/resources/case-studies/${l.id}`});return i?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsx("div",{className:"container mx-auto p-6",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[1,2,3,4].map(l=>e.jsx("div",{className:"h-[400px] bg-muted animate-pulse rounded-lg"},l))})})}),e.jsx(I,{})]}):e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx(P,{}),e.jsx("main",{className:"flex-grow",children:e.jsx("div",{className:"container mx-auto p-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsx("div",{className:"mb-6",children:e.jsx(te,{items:r})}),e.jsxs("div",{className:"mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Success Stories"}),e.jsx("p",{className:"text-xl text-muted-foreground",children:"Discover how Swiss financial institutions have transformed their operations with our solutions."})]}),e.jsxs(Et,{defaultValue:"all",className:"mb-12",onValueChange:l=>t(l),children:[e.jsxs(ds,{children:[e.jsx(Z,{value:"all",children:"All Case Studies"}),e.jsxs(Z,{value:"executive",className:"flex items-center gap-2",children:[e.jsx(se,{className:"h-4 w-4"}),"Executive Focus"]}),e.jsxs(Z,{value:"technical",className:"flex items-center gap-2",children:[e.jsx(we,{className:"h-4 w-4"}),"Technical Focus"]})]}),e.jsx(J,{value:"all",className:"mt-6",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:o.map(l=>e.jsx(Me,{...c(l)},l.id))})}),e.jsx(J,{value:"executive",className:"mt-6",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:o.map(l=>e.jsx(Me,{...c(l)},l.id))})}),e.jsx(J,{value:"technical",className:"mt-6",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:o.map(l=>e.jsx(Me,{...c(l)},l.id))})})]})]})})}),e.jsx(I,{})]})},$i=()=>{const{id:s}=Fe(),t=$(),a=[{label:"Resources",path:"/resources"},{label:"Case Studies",path:"/resources/case-studies"}],{data:i,isLoading:r,error:o}=H({queryKey:["case-study",s],queryFn:async()=>{if(console.log("Fetching case study details for ID:",s),!s)throw new Error("Case study ID is required");const l=parseInt(s);if(isNaN(l))throw new Error("Invalid case study ID");const{data:u,error:m}=await _.from("case_studies").select("*").eq("id",l).eq("is_active",!0).maybeSingle();if(m)throw console.error("Error fetching case study:",m),m;if(!u)throw new Error("Case study not found");return console.log("Fetched case study:",u),u},enabled:!!s}),{data:c=[]}=H({queryKey:["related-case-studies",i?.industry],queryFn:async()=>{if(!i)return[];const{data:l,error:u}=await _.from("case_studies").select("*").eq("is_active",!0).eq("industry",i.industry).neq("id",i.id).order("order_index").limit(2);return u?(console.error("Error fetching related case studies:",u),[]):l||[]},enabled:!!i});return r?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"max-w-4xl mx-auto px-4 py-20",children:[e.jsx(f,{className:"h-12 w-3/4 mb-4"}),e.jsx(f,{className:"h-6 w-1/2 mb-8"}),e.jsx(f,{className:"h-48 w-full mb-8"}),e.jsx(f,{className:"h-48 w-full"})]}),e.jsx(I,{})]}):o||!i?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"max-w-4xl mx-auto px-4 py-20",children:[e.jsxs(Ve,{variant:"destructive",className:"mb-8",children:[e.jsx(oe,{className:"h-4 w-4"}),e.jsx(Ue,{children:o instanceof Error?o.message:"Case study not found"})]}),e.jsxs(p,{variant:"outline",onClick:()=>t("/resources/case-studies"),className:"flex items-center gap-2",children:[e.jsx(ce,{className:"w-4 h-4"}),"Back to Case Studies"]})]}),e.jsx(I,{})]}):e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"max-w-4xl mx-auto px-4 py-20",children:[e.jsx("div",{className:"mb-8",children:e.jsx(te,{items:[...a,{label:i.title,path:`/resources/case-studies/${s}`}]})}),e.jsxs(p,{variant:"outline",onClick:()=>t("/resources/case-studies"),className:"flex items-center gap-2 mb-8",children:[e.jsx(ce,{className:"w-4 h-4"}),"Back to Case Studies"]}),i.image_url&&e.jsxs("div",{className:"relative w-full h-[400px] mb-8 rounded-lg overflow-hidden",children:[e.jsx("img",{src:i.image_url,alt:`${i.title} case study`,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 to-transparent"})]}),e.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:i.title}),e.jsxs("p",{className:"text-xl text-muted-foreground mb-8",children:["Client: ",i.client," | Industry: ",i.industry]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Challenge"}),e.jsx("p",{className:"text-muted-foreground",children:i.challenge})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Solution"}),e.jsx("p",{className:"text-muted-foreground",children:i.solution})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Results"}),e.jsx("ul",{className:"list-none space-y-2",children:i.results.split(` `).map((l,u)=>e.jsxs("li",{className:"flex items-start text-muted-foreground",children:[e.jsx("span",{className:"mr-2",children:"•"}),l.replace(/^-\s*/,"")]},u))})]}),c.length>0&&e.jsxs("section",{className:"mt-16 pt-8 border-t border-border",children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-8",children:"Related Case Studies"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:c.map(l=>e.jsx(Me,{icon:Dt(l.industry),title:l.title,client:l.client,description:l.challenge,results:l.results.split(` `),link:`/resources/case-studies/${l.id}`},l.id))})]})]})]}),e.jsx(I,{})]})},Bi=n.createContext(void 0);function zt(){const s=n.useContext(Bi);if(!s)throw new Error("useSidebar must be used within a SidebarProvider");return s}function qi({className:s,children:t}){const{isOpen:a}=zt();return e.jsx("div",{className:x("fixed left-0 top-0 z-40 h-screen w-64 -translate-x-full border-r bg-card/95 backdrop-blur-lg transition-all duration-300 ease-in-out lg:translate-x-0",a&&"translate-x-0 shadow-lg",s),children:t})}function Hi({className:s,children:t}){return e.jsx("div",{className:x("h-full px-3 py-4",s),children:t})}function Wi({children:s}){return e.jsx("div",{className:"space-y-2",children:s})}function Vi({children:s}){return e.jsx("h3",{className:"px-3 text-xs font-semibold text-muted-foreground tracking-tight",children:s})}function Ui({children:s}){return e.jsx("nav",{className:"space-y-1",children:s})}function Gi({children:s}){return e.jsx("div",{children:s})}function Yi({className:s,children:t,...a}){return e.jsx("button",{className:x("flex w-full items-center rounded-lg px-3 py-2 text-sm font-medium","transition-colors duration-200","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","active:bg-accent/90","disabled:pointer-events-none disabled:opacity-50",s),...a,children:t})}const Ki=({item:s,onNavigate:t})=>(console.log(`Rendering sidebar item: ${s.title} with path: ${s.path}`),e.jsx(Gi,{children:e.jsxs(Yi,{onClick:()=>t(s.path),children:[e.jsx(s.icon,{className:"w-4 h-4 mr-2"}),e.jsx("span",{children:s.title})]})})),Xi=({group:s,onNavigate:t})=>e.jsxs(Wi,{children:[e.jsx(Vi,{children:s.label}),e.jsx(Ui,{children:s.items.map(a=>e.jsx(Ki,{item:a,onNavigate:t},a.path))})]}),Zi=[{label:"Main",items:[{title:"Dashboard",path:"/admin",icon:_a},{title:"Analytics",path:"/admin/analytics",icon:Ma}]},{label:"Content",items:[{title:"Hero Slides",path:"/admin/hero-slides",icon:Ea},{title:"Blog Posts",path:"/admin/blog-posts",icon:La},{title:"Team Members",path:"/admin/team-members",icon:we},{title:"Case Studies",path:"/admin/case-studies",icon:Ra},{title:"Testimonials",path:"/admin/testimonials",icon:Fa}]},{label:"Services",items:[{title:"Services",path:"/admin/services",icon:$e},{title:"Industries",path:"/admin/industries",icon:ke},{title:"Certifications",path:"/admin/certifications",icon:dt},{title:"Statistics",path:"/admin/statistics",icon:Da}]},{label:"Content Management",items:[{title:"Versions",path:"/admin/versions",icon:mt,description:"Manage content versions"},{title:"Preview",path:"/admin/preview",icon:za,description:"Preview content changes"}]},{label:"System",items:[{title:"Error Logs",path:"/admin/error-logs",icon:oe},{title:"Settings",path:"/admin/settings",icon:Oa}]}];function Ji(){const s=$(),t=a=>{try{s(a)}catch(i){console.error("Navigation error:",i),K.error(`Failed to navigate to ${a}`)}};return e.jsx(qi,{className:"admin-sidebar",children:e.jsxs(Hi,{className:"admin-sidebar-content",children:[e.jsx("div",{className:"admin-sidebar-header",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(q,{className:"h-6 w-6 text-primary"}),e.jsx("span",{className:"font-semibold",children:"Admin Panel"})]})}),e.jsx("nav",{className:"admin-sidebar-nav",children:Zi.map(a=>e.jsx(Xi,{group:a,onNavigate:t},a.label))}),e.jsx("div",{className:"admin-sidebar-footer",children:e.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," HabitusNet"]})})]})})}function Qi(){const s=$(),{toast:t}=Be(),{isOpen:a,setIsOpen:i}=zt(),r=async()=>{try{await _.auth.signOut(),s("/admin/login")}catch(o){console.error("Sign out error:",o),t({variant:"destructive",title:"Error",description:"Failed to sign out. Please try again."})}};return e.jsx("header",{className:"admin-nav",children:e.jsxs("div",{className:"admin-nav-content",children:[e.jsxs(p,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>i(!a),children:[e.jsx(rt,{className:"h-5 w-5"}),e.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsxs(p,{variant:"ghost",size:"sm",className:"gap-2",onClick:r,children:[e.jsx($a,{className:"h-4 w-4"}),e.jsx("span",{children:"Sign Out"})]})})]})})}const en=({children:s})=>e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(Qi,{}),e.jsxs("div",{className:"flex",children:[e.jsx(Ji,{}),e.jsx("main",{className:"flex-1 p-6",children:s||e.jsx(Jt,{})})]})]}),Ze={title:"Managed Security Services",description:"Comprehensive security monitoring and management to protect your organization from evolving threats.",features:[{title:"24/7 Monitoring",description:"Round-the-clock security monitoring by our expert team",icon:de},{title:"Threat Detection",description:"Advanced tools to identify and neutralize potential threats",icon:q},{title:"Incident Response",description:"Rapid response to security incidents to minimize impact",icon:xt},{title:"Compliance Management",description:"Ensure your security posture meets regulatory requirements",icon:pe},{title:"Vulnerability Assessment",description:"Regular scanning and assessment of your infrastructure",icon:De},{title:"Security Reporting",description:"Detailed reports on your security status and incidents",icon:pt}]},sn=()=>e.jsxs(R,{children:[e.jsx("section",{"aria-labelledby":"page-title",className:"bg-gradient-to-b from-primary/10 to-background pt-16 pb-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[e.jsx(D,{variant:"outline",className:"mb-4 px-3 py-1 text-sm",children:"Enterprise Security"}),e.jsx("h1",{id:"page-title",className:"text-4xl md:text-5xl font-bold mb-4",children:Ze.title}),e.jsx("p",{className:"text-xl text-muted-foreground",children:Ze.description})]}),e.jsx("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-12 list-none p-0","aria-label":"Service features",children:Ze.features.map((s,t)=>{const a=s.icon;return e.jsx("li",{role:"listitem","aria-label":s.title,children:e.jsxs(A,{className:"border bg-card text-card-foreground shadow-sm hover:shadow-md transition-shadow focus-within:ring-2 focus-within:ring-primary h-full",children:[e.jsx(E,{children:e.jsxs(z,{className:"flex items-center gap-2",children:[a&&e.jsx(a,{className:"h-5 w-5 text-primary","aria-hidden":"true"}),s.title]})}),e.jsx(M,{children:e.jsx("p",{className:"text-muted-foreground",children:s.description})})]})},t)})}),e.jsx("div",{className:"flex justify-center mt-12",children:e.jsx(v,{to:"/contact",className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 rounded-md",children:e.jsxs(p,{size:"lg",className:"px-8 font-semibold","aria-label":"Request a security assessment - Contact us page",children:[e.jsx(q,{className:"mr-2 h-5 w-5","aria-hidden":"true"}),"Request a Security Assessment"]})})})]})}),e.jsx("section",{"aria-labelledby":"benefits-heading",className:"py-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{id:"benefits-heading",className:"text-3xl font-bold text-center mb-12",children:"Why Choose Our Managed Security Services?"}),e.jsxs("ul",{className:"grid grid-cols-1 md:grid-cols-2 gap-16 list-none p-0","aria-label":"Security service benefits",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("li",{className:"flex gap-4",role:"listitem",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit","aria-hidden":"true",children:e.jsx(de,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"24/7 Monitoring & Response"}),e.jsx("p",{className:"text-muted-foreground",children:"Our security operations center monitors your systems around the clock, ensuring immediate response to any security incidents."})]})]}),e.jsxs("li",{className:"flex gap-4",role:"listitem",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit","aria-hidden":"true",children:e.jsx(De,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Advanced Security Infrastructure"}),e.jsx("p",{className:"text-muted-foreground",children:"Leverage enterprise-grade security tools and technologies without the capital investment of building your own security operations center."})]})]})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("li",{className:"flex gap-4",role:"listitem",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit","aria-hidden":"true",children:e.jsx(xt,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Proactive Threat Hunting"}),e.jsx("p",{className:"text-muted-foreground",children:"Our security experts actively search for threats that might evade automated detection systems, identifying potential vulnerabilities before they can be exploited."})]})]}),e.jsxs("li",{className:"flex gap-4",role:"listitem",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit","aria-hidden":"true",children:e.jsx(pt,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Regular Security Assessments"}),e.jsx("p",{className:"text-muted-foreground",children:"Scheduled security assessments help ensure your organization maintains a strong security posture over time, even as your business evolves."})]})]})]})]})]})}),e.jsx("section",{"aria-labelledby":"testimonials-heading",className:"py-20 bg-muted/30",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{id:"testimonials-heading",className:"text-3xl font-bold text-center mb-12",children:"What Our Clients Say"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:[e.jsxs("blockquote",{className:"bg-card border rounded-lg p-6 shadow-sm relative",children:[e.jsx("div",{className:"absolute -top-3 -left-3 text-primary text-5xl","aria-hidden":"true",children:'"'}),e.jsxs("div",{className:"pt-4",children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:"HabitusNet's managed security service has transformed how we approach cybersecurity. Their 24/7 monitoring gives us peace of mind, and their team has helped us navigate complex compliance requirements with ease."}),e.jsxs("footer",{className:"flex items-center gap-4 mt-6",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/20 rounded-full flex items-center justify-center",children:e.jsx("span",{className:"font-semibold text-primary",children:"CW"})}),e.jsxs("div",{children:[e.jsx("cite",{className:"not-italic font-medium block",children:"Christine Winters"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"CTO, AlphaFinance Group"})]})]})]})]}),e.jsxs("blockquote",{className:"bg-card border rounded-lg p-6 shadow-sm relative",children:[e.jsx("div",{className:"absolute -top-3 -left-3 text-primary text-5xl","aria-hidden":"true",children:'"'}),e.jsxs("div",{className:"pt-4",children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:"After experiencing a security incident with our previous provider, we switched to HabitusNet. Their proactive approach to threat hunting has identified numerous potential vulnerabilities before they could be exploited."}),e.jsxs("footer",{className:"flex items-center gap-4 mt-6",children:[e.jsx("div",{className:"w-12 h-12 bg-primary/20 rounded-full flex items-center justify-center",children:e.jsx("span",{className:"font-semibold text-primary",children:"MR"})}),e.jsxs("div",{children:[e.jsx("cite",{className:"not-italic font-medium block",children:"Michael Reeves"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"IT Director, Meridian Trust"})]})]})]})]})]}),e.jsxs("div",{className:"mt-16",children:[e.jsx("h3",{className:"text-lg font-medium text-center mb-8",children:"Trusted by organizations worldwide"}),e.jsx("div",{className:"flex flex-wrap justify-center items-center gap-8 md:gap-16",children:["AlphaFinance","Meridian Trust","TechVault","GlobalSecure","DataSphere"].map(s=>e.jsx("div",{className:"text-lg font-medium text-muted-foreground/70","aria-label":`${s} logo`,children:s},s))})]})]})}),e.jsx("section",{"aria-labelledby":"faq-heading",className:"py-20",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx("h2",{id:"faq-heading",className:"text-3xl font-bold text-center mb-12",children:"Frequently Asked Questions"}),e.jsx("div",{className:"space-y-6",children:[{question:"What's included in your managed security services?",answer:"Our managed security services include 24/7 monitoring, threat detection and response, vulnerability assessments, compliance management, security reporting, and proactive threat hunting. We tailor our services to your organization's specific needs and security requirements."},{question:"How quickly do you respond to security incidents?",answer:"Our security operations center operates 24/7/365, with an average initial response time of under 15 minutes for critical alerts. We follow a structured incident response protocol to quickly contain, eradicate, and recover from security incidents."},{question:"Can you help with compliance requirements?",answer:"Yes, we support compliance with various regulatory frameworks including GDPR, HIPAA, PCI DSS, and industry-specific regulations. Our team includes compliance specialists who can help implement controls, document procedures, and prepare for audits."},{question:"Do I need to replace my existing security tools?",answer:"Not necessarily. We can often integrate with your existing security infrastructure and tools. During our initial assessment, we'll evaluate your current tools and recommend any necessary additions or replacements to ensure comprehensive protection."}].map((s,t)=>e.jsxs("div",{className:"border rounded-lg p-6 bg-card",children:[e.jsx("h3",{className:"font-medium text-xl mb-3",children:s.question}),e.jsx("p",{className:"text-muted-foreground",children:s.answer})]},t))}),e.jsxs("div",{className:"mt-16 text-center",children:[e.jsx("h3",{className:"text-xl font-medium mb-4",children:"Ready to strengthen your security posture?"}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl mx-auto",children:"Our team of security experts is ready to help you protect your organization from evolving cyber threats."}),e.jsx(v,{to:"/contact",className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 rounded-md inline-block",children:e.jsx(p,{size:"lg",className:"px-8 font-semibold",children:"Schedule a Consultation"})})]})]})})]}),ws={title:"Cloud Solutions",description:"Secure and scalable cloud infrastructure solutions tailored to your business needs.",features:[{title:"Cloud Migration",description:"Seamless transition of your infrastructure to the cloud"},{title:"Hybrid Solutions",description:"Balanced approach combining on-premises and cloud resources"},{title:"Cloud Security",description:"Comprehensive security for your cloud infrastructure"},{title:"Scalable Architecture",description:"Designs that grow with your business needs"},{title:"Cost Optimization",description:"Strategies to maximize cloud ROI"},{title:"Managed Cloud Services",description:"Ongoing management and support for your cloud infrastructure"}]},tn=()=>{const{data:s,isLoading:t}=H({queryKey:["services","cloud"],queryFn:async()=>{try{const{data:i,error:r}=await _.from("service_content").select(` id, title, description, features, icon, is_active, order_index, created_at, updated_at, service_media ( id, media_type, storage_path ) `).eq("category_id",2).single();if(r)throw r;return i?{...i,features:typeof i.features=="string"?JSON.parse(i.features):i.features,media:i.service_media||[]}:null}catch(i){return console.error("Error fetching cloud service data:",i),null}}}),a=s||ws;return e.jsxs(R,{children:[e.jsx("div",{className:"bg-gradient-to-b from-primary/10 to-background pt-16 pb-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[e.jsx(D,{variant:"outline",className:"mb-4 px-3 py-1 text-sm",children:"Enterprise Cloud"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:t?e.jsx(le,{className:"h-8 w-8 animate-spin mx-auto"}):a.title}),e.jsx("p",{className:"text-xl text-muted-foreground",children:a.description})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-12",children:t?e.jsx("div",{className:"col-span-3 flex justify-center py-12",children:e.jsx(le,{className:"h-12 w-12 animate-spin"})}):ws.features.map((i,r)=>e.jsxs(A,{className:"border bg-card text-card-foreground shadow-sm hover:shadow-md transition-shadow",children:[e.jsx(E,{children:e.jsxs(z,{className:"flex items-center gap-2",children:[e.jsx(pe,{className:"h-5 w-5 text-primary"}),i.title]})}),e.jsx(M,{children:e.jsx("p",{className:"text-muted-foreground",children:i.description})})]},r))}),e.jsx("div",{className:"flex justify-center mt-12",children:e.jsxs(p,{size:"lg",className:"px-8 font-semibold",children:[e.jsx(he,{className:"mr-2 h-5 w-5"})," Schedule Cloud Consultation"]})})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Why Choose Our Cloud Solutions?"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(q,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Enhanced Security"}),e.jsx("p",{className:"text-muted-foreground",children:"Our cloud solutions include enterprise-grade security measures to protect your data and applications from threats."})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(ze,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Scalable Infrastructure"}),e.jsx("p",{className:"text-muted-foreground",children:"Scale your resources up or down based on demand, ensuring optimal performance while controlling costs."})]})]})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(Ne,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Compliance & Governance"}),e.jsx("p",{className:"text-muted-foreground",children:"We implement cloud solutions that adhere to industry-specific compliance requirements and governance frameworks."})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(Ba,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Expert Management"}),e.jsx("p",{className:"text-muted-foreground",children:"Our team of certified cloud specialists handles the complex aspects of cloud management, allowing you to focus on your core business."})]})]})]})]})]})})]})},Je={title:"Security Consulting Services",description:"Expert security assessment and strategic guidance to strengthen your organization's security posture.",features:[{title:"Security Assessments",description:"Comprehensive evaluation of your current security posture"},{title:"Risk Analysis",description:"Identify and prioritize security risks based on impact and likelihood"},{title:"Compliance Guidance",description:"Expert advice on meeting industry and regulatory requirements"},{title:"Security Strategy",description:"Develop a tailored security roadmap for your organization"},{title:"Security Architecture",description:"Design secure systems and infrastructure"},{title:"Penetration Testing",description:"Identify vulnerabilities through simulated attacks"}]},an=()=>e.jsxs(R,{children:[e.jsx("div",{className:"bg-gradient-to-b from-primary/10 to-background pt-16 pb-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[e.jsx(D,{variant:"outline",className:"mb-4 px-3 py-1 text-sm",children:"Expert Consulting"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:Je.title}),e.jsx("p",{className:"text-xl text-muted-foreground",children:Je.description})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-12",children:Je.features.map((s,t)=>e.jsxs(A,{className:"border bg-card text-card-foreground shadow-sm hover:shadow-md transition-shadow",children:[e.jsx(E,{children:e.jsxs(z,{className:"flex items-center gap-2",children:[e.jsx(pe,{className:"h-5 w-5 text-primary"}),s.title]})}),e.jsx(M,{children:e.jsx("p",{className:"text-muted-foreground",children:s.description})})]},t))}),e.jsx("div",{className:"flex justify-center mt-12",children:e.jsxs(p,{size:"lg",className:"px-8 font-semibold",children:[e.jsx(rs,{className:"mr-2 h-5 w-5"})," Request Security Assessment"]})})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Why Choose Our Security Consulting?"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(qa,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Risk-Based Approach"}),e.jsx("p",{className:"text-muted-foreground",children:"We prioritize security efforts based on your specific risk profile, ensuring resources are allocated to address the most significant threats first."})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(Ha,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Industry Expertise"}),e.jsx("p",{className:"text-muted-foreground",children:"Our consultants specialize in various industries and bring deep knowledge of sector-specific requirements, threats, and compliance standards."})]})]})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(Wa,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Practical Recommendations"}),e.jsx("p",{className:"text-muted-foreground",children:"We provide actionable guidance that balances security requirements with business needs, ensuring solutions are both effective and implementable."})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(Va,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Continuous Improvement"}),e.jsx("p",{className:"text-muted-foreground",children:"Our consulting approach emphasizes building a mature security program that evolves with your organization and the changing threat landscape."})]})]})]})]})]})})]}),rn=()=>{const{data:s,isLoading:t,error:a}=H({queryKey:["support-service"],queryFn:async()=>{const{data:i,error:r}=await _.from("service_content").select(` id, title, description, features, icon, is_active, order_index, created_at, updated_at, service_media ( id, media_type, storage_path ) `).eq("category","support").single();if(r)throw r;return i?{...i,features:typeof i.features=="string"?JSON.parse(i.features):i.features,media:i.service_media||[]}:null}});return{service:s,isLoading:t,error:a}},ks={title:"Support Services",description:"Comprehensive technical support and maintenance for your IT infrastructure.",features:[{title:"24/7 Helpdesk",description:"Round-the-clock technical assistance for urgent issues"},{title:"Remote Support",description:"Quick resolution through secure remote access"},{title:"Onsite Support",description:"Dispatched technicians for complex issues requiring physical presence"},{title:"Preventive Maintenance",description:"Regular system checks to prevent potential problems"},{title:"Software Updates",description:"Keeping your systems current with latest patches and updates"},{title:"IT Documentation",description:"Detailed documentation of your IT environment and changes"}]},nn=()=>{const{service:s,isLoading:t,error:a}=rn(),i=!t&&!a&&s?s:ks;return e.jsxs(R,{children:[e.jsx("div",{className:"bg-gradient-to-b from-primary/10 to-background pt-16 pb-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-12",children:[e.jsx(D,{variant:"outline",className:"mb-4 px-3 py-1 text-sm",children:"Technical Support"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:t?e.jsx(le,{className:"h-8 w-8 animate-spin mx-auto"}):i.title}),e.jsx("p",{className:"text-xl text-muted-foreground",children:i.description})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-12",children:t?e.jsx("div",{className:"col-span-3 flex justify-center py-12",children:e.jsx(le,{className:"h-12 w-12 animate-spin"})}):ks.features.map((r,o)=>e.jsxs(A,{className:"border bg-card text-card-foreground shadow-sm hover:shadow-md transition-shadow",children:[e.jsx(E,{children:e.jsxs(z,{className:"flex items-center gap-2",children:[e.jsx(pe,{className:"h-5 w-5 text-primary"}),r.title]})}),e.jsx(M,{children:e.jsx("p",{className:"text-muted-foreground",children:r.description})})]},o))}),e.jsx("div",{className:"flex justify-center mt-12",children:e.jsxs(p,{size:"lg",className:"px-8 font-semibold",children:[e.jsx(Ua,{className:"mr-2 h-5 w-5"})," Contact Support Team"]})})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Why Choose Our Support Services?"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-16",children:[e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(de,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Rapid Response Time"}),e.jsx("p",{className:"text-muted-foreground",children:"Our technicians respond quickly to support requests, minimizing downtime and keeping your business running smoothly."})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(lt,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Expert Technicians"}),e.jsx("p",{className:"text-muted-foreground",children:"Our support team consists of certified IT professionals with extensive experience across various technologies and platforms."})]})]})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(xe,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Proactive Maintenance"}),e.jsx("p",{className:"text-muted-foreground",children:"We don't just fix problems—we prevent them through scheduled maintenance and monitoring, reducing the likelihood of unexpected issues."})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bg-primary/10 p-3 rounded-lg h-fit",children:e.jsx(Ga,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Clear Communication"}),e.jsx("p",{className:"text-muted-foreground",children:"We provide regular updates on issue resolution and explain technical matters in clear, understandable language."})]})]})]})]})]})}),!t&&!a&&s&&s.features&&e.jsx("section",{className:"py-12 bg-muted/30",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-2xl font-bold text-center mb-10",children:"Additional Support Options"}),e.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:Object.entries(s.features).map(([r,o])=>Array.isArray(o)&&o.length>0&&e.jsxs(A,{className:"shadow",children:[e.jsx(E,{children:e.jsx(z,{className:"capitalize",children:r})}),e.jsx(M,{children:e.jsx("ul",{className:"list-disc list-inside space-y-2",children:o.map((c,l)=>e.jsx("li",{className:"text-muted-foreground",children:String(c)},l))})})]},r))})]})})]})},on=()=>{const s=$(),[t,a]=n.useState([]),[i,r]=n.useState(!0),o=[{label:"About",path:"/about"},{label:"Team",path:"/team"}];n.useEffect(()=>{(async()=>{r(!0);try{const{data:d,error:j}=await _.from("team_members").select("*").eq("is_active",!0).order("order_index",{ascending:!0});if(j){console.error("Error fetching team members:",j);return}a(d||[])}catch(d){console.error("Error fetching team members:",d)}finally{r(!1)}})()},[]);const c=t.reduce((m,d)=>{const j=d.department||"Other";return m[j]||(m[j]=[]),m[j].push(d),m},{}),l=["Leadership","Management","Engineering","Security","Operations","Customer Success","Sales","Marketing","Other"].filter(m=>c[m]?.length),u=m=>{s(`/team/${m}`)};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"container mx-auto px-4 py-16",children:[e.jsx("div",{className:"mb-8",children:e.jsx(te,{items:o})}),e.jsxs("div",{className:"max-w-4xl mx-auto mb-16",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Our Team"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Meet our dedicated team of professionals who are committed to providing the highest level of service and expertise in IT and security solutions."})]}),i?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(6)].map((m,d)=>e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx(f,{className:"w-32 h-32 rounded-full mb-4"}),e.jsx(f,{className:"h-6 w-40 mb-2"}),e.jsx(f,{className:"h-4 w-24"})]},d))}):e.jsx("div",{className:"space-y-16",children:l.map(m=>e.jsxs("section",{className:"mb-12",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-8 pb-2 border-b",children:m}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-12",children:c[m].map(d=>e.jsxs("div",{className:"flex flex-col items-center text-center cursor-pointer group",onClick:()=>u(d.id),children:[e.jsxs(qe,{className:"w-32 h-32 mb-4 border-2 border-transparent group-hover:border-primary transition-all",children:[e.jsx(He,{src:d.image_url||"",alt:d.name}),e.jsx(We,{className:"text-2xl bg-accent",children:d.name.split(" ").map(j=>j[0]).join("")})]}),e.jsx("h3",{className:"text-xl font-medium mb-1 group-hover:text-primary transition-colors",children:d.name}),e.jsx("p",{className:"text-muted-foreground mb-2",children:d.position}),e.jsxs(p,{variant:"ghost",size:"sm",className:"mt-2 opacity-0 group-hover:opacity-100 transition-opacity flex items-center",children:["View Profile ",e.jsx(ee,{className:"ml-2 h-4 w-4"})]})]},d.id))})]},m))}),e.jsx("div",{className:"mt-16 pt-8 border-t border-border",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Join Our Team"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"Interested in becoming part of our team? We're always looking for talented individuals who are passionate about technology and security."}),e.jsx(p,{size:"lg",onClick:()=>s("/careers"),children:"View Open Positions"})]})})]}),e.jsx(I,{})]})},ln=()=>{const s=[{label:"Home",path:"/"},{label:"Careers",path:"/careers"}],t=[{id:"job1",title:"Senior Security Engineer",department:"Security",location:"Zürich, Switzerland",type:"Full-time",postedDate:"April 5, 2025",description:"We are looking for a Senior Security Engineer to join our team and help protect our clients from cyber threats.",badges:["Remote Possible","Senior Level"]},{id:"job2",title:"Cloud Solutions Architect",department:"Engineering",location:"Zürich, Switzerland",type:"Full-time",postedDate:"April 8, 2025",description:"Design and implement secure cloud infrastructure solutions for our enterprise clients.",badges:["Remote Possible","Senior Level"]},{id:"job3",title:"IT Support Specialist",department:"Customer Success",location:"Zürich, Switzerland",type:"Full-time",postedDate:"April 10, 2025",description:"Provide technical support and assistance to our clients to ensure their systems run smoothly.",badges:["Entry Level"]}],a=[{icon:e.jsx(se,{className:"w-6 h-6 text-primary"}),title:"Modern Workplace",description:"Flexible work arrangements with state-of-the-art facilities and equipment."},{icon:e.jsx(de,{className:"w-6 h-6 text-primary"}),title:"Work-Life Balance",description:"Flexible hours and remote work options to support your personal life."},{icon:e.jsx(xe,{className:"w-6 h-6 text-primary"}),title:"Generous Time Off",description:"25 days of paid vacation plus Swiss public holidays."},{icon:e.jsx(Oe,{className:"w-6 h-6 text-primary"}),title:"Professional Development",description:"Continuous learning opportunities, certifications, and career advancement."}];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"container mx-auto px-4 py-16",children:[e.jsx("div",{className:"mb-8",children:e.jsx(te,{items:s})}),e.jsxs("div",{className:"max-w-4xl mx-auto mb-16",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Join Our Team"}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"At HabitusNet, we're building the future of secure IT infrastructure for Swiss financial institutions. If you're passionate about cybersecurity, cloud solutions, and making a difference, we'd love to hear from you."})]}),e.jsxs("section",{className:"mb-20",children:[e.jsx("h2",{className:"text-3xl font-semibold mb-8",children:"Current Openings"}),e.jsx("div",{className:"grid gap-6",children:t.map(i=>e.jsxs(A,{className:"hover:border-primary/50 transition-colors",children:[e.jsx(E,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx(z,{className:"text-xl mb-1",children:i.title}),e.jsxs(Q,{className:"flex flex-col sm:flex-row sm:gap-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx($e,{className:"w-4 h-4"})," ",i.department]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(os,{className:"w-4 h-4"})," ",i.location]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(de,{className:"w-4 h-4"})," ",i.type]})]})]}),e.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:i.badges.map((r,o)=>e.jsx(D,{variant:"secondary",children:r},o))})]})}),e.jsx(M,{children:e.jsx("p",{className:"text-muted-foreground",children:i.description})}),e.jsxs(ae,{className:"flex justify-between items-center",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Posted: ",i.postedDate]}),e.jsxs(p,{className:"gap-2",children:["View Details ",e.jsx(ee,{className:"w-4 h-4"})]})]})]},i.id))})]}),e.jsxs("section",{className:"mb-20",children:[e.jsx("h2",{className:"text-3xl font-semibold mb-8",children:"Why Work With Us"}),e.jsx("div",{className:"grid sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-4 gap-8",children:a.map((i,r)=>e.jsxs(A,{className:"bg-accent/5",children:[e.jsxs(E,{children:[e.jsx("div",{className:"p-2 w-fit rounded-lg bg-primary/10 mb-4",children:i.icon}),e.jsx(z,{children:i.title})]}),e.jsx(M,{children:e.jsx("p",{className:"text-muted-foreground",children:i.description})})]},r))})]}),t.length===0&&e.jsxs("div",{className:"text-center py-12 border rounded-lg bg-accent/5",children:[e.jsx("h3",{className:"text-xl font-medium mb-4",children:"No Current Openings"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"We don't have any open positions at the moment, but we're always interested in talking to talented individuals."}),e.jsx(v,{to:"/contact",children:e.jsx(p,{variant:"default",size:"lg",children:"Get In Touch"})})]})]}),e.jsx(I,{})]})},cn=()=>{const{id:s,slug:t}=Fe(),a=$(),i=[{label:"About",path:"/about"},{label:"Team",path:"/team"}],{data:r,isLoading:o,error:c}=H({queryKey:["team-member",s||t],queryFn:async()=>{let l=_.from("team_members").select("*").eq("is_active",!0);if(s){const d=parseInt(s);if(isNaN(d))throw new Error("Invalid team member ID");l=l.eq("id",d.toString())}else if(t)l=l.eq("slug",t);else throw new Error("Team member ID or slug is required");const{data:u,error:m}=await l.single();if(m)throw m;if(!u)throw new Error("Team member not found");return u}});return o?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"max-w-4xl mx-auto px-4 py-20",children:[e.jsx(f,{className:"h-12 w-3/4 mb-4"}),e.jsx(f,{className:"h-6 w-1/2 mb-8"}),e.jsx(f,{className:"h-48 w-full mb-8"}),e.jsx(f,{className:"h-48 w-full"})]}),e.jsx(I,{})]}):c||!r?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"max-w-4xl mx-auto px-4 py-20",children:[e.jsxs(Ve,{variant:"destructive",className:"mb-8",children:[e.jsx(oe,{className:"h-4 w-4"}),e.jsx(Ue,{children:c instanceof Error?c.message:"Team member not found"})]}),e.jsxs(p,{variant:"outline",onClick:()=>a("/team"),className:"flex items-center gap-2",children:[e.jsx(ce,{className:"w-4 h-4"}),"Back to Team"]})]}),e.jsx(I,{})]}):e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"max-w-4xl mx-auto px-4 py-20",children:[e.jsx("div",{className:"mb-8",children:e.jsx(te,{items:[...i,{label:r.name,path:`/team/${t||s}`}]})}),e.jsxs(p,{variant:"outline",onClick:()=>a("/team"),className:"flex items-center gap-2 mb-8",children:[e.jsx(ce,{className:"w-4 h-4"}),"Back to Team"]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"md:col-span-1",children:[e.jsx("div",{className:"relative mb-6",children:e.jsx("img",{src:r.image_url||"/placeholder-avatar.jpg",alt:r.name,className:"w-full aspect-square object-cover rounded-lg shadow-lg"})}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex space-x-4 justify-center md:justify-start",children:[r.email&&e.jsx("a",{href:`mailto:${r.email}`,className:"text-muted-foreground hover:text-foreground transition-colors","aria-label":`Email ${r.name}`,children:e.jsx(Se,{className:"w-6 h-6"})}),r.linkedin_url&&e.jsx("a",{href:r.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-[#0077b5] transition-colors","aria-label":`${r.name}'s LinkedIn profile`,children:e.jsx(Le,{className:"w-6 h-6"})}),r.github_url&&e.jsx("a",{href:r.github_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors","aria-label":`${r.name}'s GitHub profile`,children:e.jsx(it,{className:"w-6 h-6"})}),r.twitter_url&&e.jsx("a",{href:r.twitter_url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-[#1DA1F2] transition-colors","aria-label":`${r.name}'s Twitter profile`,children:e.jsx(Ee,{className:"w-6 h-6"})})]})})]}),e.jsxs("div",{className:"md:col-span-2 space-y-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold text-foreground mb-2",children:r.name}),e.jsx("p",{className:"text-xl text-muted-foreground mb-1",children:r.position}),r.department&&e.jsx("p",{className:"text-lg text-muted-foreground",children:r.department})]}),(r.bio||r.full_bio)&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"About"}),e.jsx("div",{className:"prose prose-lg dark:prose-invert max-w-none",children:e.jsx("p",{className:"whitespace-pre-wrap",children:r.full_bio||r.bio})})]}),r.expertise&&r.expertise.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Areas of Expertise"}),e.jsx("ul",{className:"list-disc list-inside space-y-2",children:r.expertise.map((l,u)=>e.jsx("li",{className:"text-muted-foreground",children:l},u))})]}),r.education&&r.education.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Education"}),e.jsx("ul",{className:"list-disc list-inside space-y-2",children:r.education.map((l,u)=>e.jsx("li",{className:"text-muted-foreground",children:l},u))})]}),r.achievements&&r.achievements.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Achievements"}),e.jsx("ul",{className:"list-disc list-inside space-y-2",children:r.achievements.map((l,u)=>e.jsx("li",{className:"text-muted-foreground",children:typeof l=="string"?l:typeof l=="object"?JSON.stringify(l):String(l)},u))})]}),r.publications&&r.publications.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Publications"}),e.jsx("ul",{className:"list-disc list-inside space-y-2",children:r.publications.map((l,u)=>e.jsx("li",{className:"text-muted-foreground",children:l},u))})]}),r.speaking_engagements&&r.speaking_engagements.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Speaking Engagements"}),e.jsx("ul",{className:"list-disc list-inside space-y-2",children:r.speaking_engagements.map((l,u)=>e.jsx("li",{className:"text-muted-foreground",children:l},u))})]})]})]})]}),e.jsx(I,{})]})},dn=()=>{const s=[{label:"Home",path:"/"},{label:"Privacy Policy",path:"/privacy-policy"}];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"container mx-auto px-4 py-16",children:[e.jsx("div",{className:"mb-8",children:e.jsx(te,{items:s})}),e.jsxs("div",{className:"max-w-4xl mx-auto prose dark:prose-invert",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Privacy Policy"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Last updated: April 16, 2025"}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Introduction"}),e.jsx("p",{children:"At HabitusNet, we take your privacy seriously. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and use our services. Please read this policy carefully. If you do not agree with the terms of this privacy policy, please do not access the site."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Information We Collect"}),e.jsx("p",{children:"We may collect information about you in a variety of ways. The information we may collect via the Website includes:"}),e.jsx("h3",{className:"text-xl font-medium mt-4 mb-2",children:"Personal Data"}),e.jsx("p",{children:"Personally identifiable information, such as your name, email address, telephone number, and company name, that you voluntarily give to us when you register with the Website or when you choose to participate in various activities related to the Website, such as using our contact form or newsletter subscription."}),e.jsx("h3",{className:"text-xl font-medium mt-4 mb-2",children:"Derivative Data"}),e.jsx("p",{children:"Information our servers automatically collect when you access the Website, such as your IP address, browser type, operating system, access times, and the pages you have viewed directly before and after accessing the Website."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Use of Your Information"}),e.jsx("p",{children:"Having accurate information about you permits us to provide you with a smooth, efficient, and customized experience. Specifically, we may use information collected about you via the Website to:"}),e.jsxs("ul",{className:"list-disc pl-6 mt-2 mb-4 space-y-2",children:[e.jsx("li",{children:"Create and manage your account."}),e.jsx("li",{children:"Email you regarding your account or services."}),e.jsx("li",{children:"Respond to your inquiries and customer service requests."}),e.jsx("li",{children:"Send you a newsletter or marketing communications."}),e.jsx("li",{children:"Monitor and analyze usage and trends to improve your experience with the Website."}),e.jsx("li",{children:"Notify you of updates to the Website and our services."}),e.jsx("li",{children:"Perform other business activities as needed."})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Disclosure of Your Information"}),e.jsx("p",{children:"We may share information we have collected about you in certain situations. Your information may be disclosed as follows:"}),e.jsx("h3",{className:"text-xl font-medium mt-4 mb-2",children:"By Law or to Protect Rights"}),e.jsx("p",{children:"If we believe the release of information about you is necessary to respond to legal process, to investigate or remedy potential violations of our policies, or to protect the rights, property, and safety of others, we may share your information as permitted or required by any applicable law, rule, or regulation."}),e.jsx("h3",{className:"text-xl font-medium mt-4 mb-2",children:"Third-Party Service Providers"}),e.jsx("p",{children:"We may share your information with third parties that perform services for us or on our behalf, including payment processing, data analysis, email delivery, hosting services, customer service, and marketing assistance."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Security of Your Information"}),e.jsx("p",{children:"We use administrative, technical, and physical security measures to help protect your personal information. While we have taken reasonable steps to secure the personal information you provide to us, please be aware that despite our efforts, no security measures are perfect or impenetrable, and no method of data transmission can be guaranteed against any interception or other type of misuse."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Your Rights Regarding Your Data"}),e.jsx("p",{children:"You have certain rights regarding the personal information we collect about you. These include:"}),e.jsxs("ul",{className:"list-disc pl-6 mt-2 mb-4 space-y-2",children:[e.jsx("li",{children:"The right to access personal data we hold about you"}),e.jsx("li",{children:"The right to request that we correct any inaccurate personal data we hold about you"}),e.jsx("li",{children:"The right to request that we delete any personal data we hold about you"}),e.jsx("li",{children:"The right to restrict processing of your personal data"}),e.jsx("li",{children:"The right to data portability"}),e.jsx("li",{children:"The right to withdraw consent"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Contact Us"}),e.jsx("p",{children:"If you have questions or comments about this Privacy Policy, please contact us at:"}),e.jsxs("p",{className:"mt-2",children:["HabitusNet",e.jsx("br",{}),"Bahnhofstrasse 123",e.jsx("br",{}),"8001 Zürich, Switzerland",e.jsx("br",{}),"Email: privacy@habitusnet.com",e.jsx("br",{}),"Phone: +41 44 123 45 67"]})]})]})]}),e.jsx(I,{})]})},mn=()=>{const s=[{label:"Home",path:"/"},{label:"Terms of Service",path:"/terms-of-service"}];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"container mx-auto px-4 py-16",children:[e.jsx("div",{className:"mb-8",children:e.jsx(te,{items:s})}),e.jsxs("div",{className:"max-w-4xl mx-auto prose dark:prose-invert",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Terms of Service"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Last updated: April 16, 2025"}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"1. Agreement to Terms"}),e.jsxs("p",{children:["By accessing our website at ",e.jsx("a",{href:"https://www.habitusnet.com",className:"text-primary hover:underline",children:"https://www.habitusnet.com"}),", you are agreeing to be bound by these Terms of Service and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing this site."]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"2. Use License"}),e.jsx("p",{children:"Permission is granted to temporarily download one copy of the materials on HabitusNet's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:"}),e.jsxs("ul",{className:"list-disc pl-6 mt-2 mb-4 space-y-2",children:[e.jsx("li",{children:"Modify or copy the materials;"}),e.jsx("li",{children:"Use the materials for any commercial purpose or for any public display;"}),e.jsx("li",{children:"Attempt to reverse engineer any software contained on HabitusNet's website;"}),e.jsx("li",{children:"Remove any copyright or other proprietary notations from the materials; or"}),e.jsx("li",{children:'Transfer the materials to another person or "mirror" the materials on any other server.'})]}),e.jsx("p",{children:"This license shall automatically terminate if you violate any of these restrictions and may be terminated by HabitusNet at any time. Upon terminating your viewing of these materials or upon the termination of this license, you must destroy any downloaded materials in your possession whether in electronic or printed format."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"3. Disclaimer"}),e.jsx("p",{children:"The materials on HabitusNet's website are provided on an 'as is' basis. HabitusNet makes no warranties, expressed or implied, and hereby disclaims and negates all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights."}),e.jsx("p",{className:"mt-4",children:"Further, HabitusNet does not warrant or make any representations concerning the accuracy, likely results, or reliability of the use of the materials on its website or otherwise relating to such materials or on any sites linked to this site."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"4. Limitations"}),e.jsx("p",{children:"In no event shall HabitusNet or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials on HabitusNet's website, even if HabitusNet or a HabitusNet authorized representative has been notified orally or in writing of the possibility of such damage."}),e.jsx("p",{className:"mt-4",children:"Because some jurisdictions do not allow limitations on implied warranties, or limitations of liability for consequential or incidental damages, these limitations may not apply to you."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"5. Accuracy of Materials"}),e.jsx("p",{children:"The materials appearing on HabitusNet's website could include technical, typographical, or photographic errors. HabitusNet does not warrant that any of the materials on its website are accurate, complete, or current. HabitusNet may make changes to the materials contained on its website at any time without notice. However, HabitusNet does not make any commitment to update the materials."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"6. Links"}),e.jsx("p",{children:"HabitusNet has not reviewed all of the sites linked to its website and is not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement by HabitusNet of the site. Use of any such linked website is at the user's own risk."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"7. Modifications"}),e.jsx("p",{children:"HabitusNet may revise these terms of service for its website at any time without notice. By using this website, you are agreeing to be bound by the then current version of these terms of service."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"8. Governing Law"}),e.jsx("p",{children:"These terms and conditions are governed by and construed in accordance with the laws of Switzerland and you irrevocably submit to the exclusive jurisdiction of the courts in that location."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Contact Us"}),e.jsx("p",{children:"If you have any questions about these Terms of Service, please contact us at:"}),e.jsxs("p",{className:"mt-2",children:["HabitusNet",e.jsx("br",{}),"Bahnhofstrasse 123",e.jsx("br",{}),"8001 Zürich, Switzerland",e.jsx("br",{}),"Email: legal@habitusnet.com",e.jsx("br",{}),"Phone: +41 44 123 45 67"]})]})]})]}),e.jsx(I,{})]})},un=()=>{const s=[{label:"Home",path:"/"},{label:"Cookie Policy",path:"/cookie-policy"}];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{className:"container mx-auto px-4 py-16",children:[e.jsx("div",{className:"mb-8",children:e.jsx(te,{items:s})}),e.jsxs("div",{className:"max-w-4xl mx-auto prose dark:prose-invert",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Cookie Policy"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Last updated: April 16, 2025"}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Introduction"}),e.jsxs("p",{children:['This Cookie Policy explains how HabitusNet ("we", "us", or "our") uses cookies and similar technologies to recognize you when you visit our website at ',e.jsx("a",{href:"https://www.habitusnet.com",className:"text-primary hover:underline",children:"www.habitusnet.com"}),' ("Website"). It explains what these technologies are and why we use them, as well as your rights to control our use of them.']})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"What are cookies?"}),e.jsx("p",{children:"Cookies are small data files that are placed on your computer or mobile device when you visit a website. Cookies are widely used by website owners in order to make their websites work, or to work more efficiently, as well as to provide reporting information."}),e.jsx("p",{className:"mt-4",children:'Cookies set by the website owner (in this case, HabitusNet) are called "first-party cookies". Cookies set by parties other than the website owner are called "third-party cookies". Third-party cookies enable third-party features or functionality to be provided on or through the website (e.g. advertising, interactive content and analytics). The parties that set these third-party cookies can recognize your computer both when it visits the website in question and also when it visits certain other websites.'})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Why do we use cookies?"}),e.jsx("p",{children:'We use first-party and third-party cookies for several reasons. Some cookies are required for technical reasons in order for our Website to operate, and we refer to these as "essential" or "strictly necessary" cookies. Other cookies also enable us to track and target the interests of our users to enhance the experience on our Website. Third parties serve cookies through our Website for advertising, analytics and other purposes. This is described in more detail below.'}),e.jsx("h3",{className:"text-xl font-medium mt-4 mb-2",children:"The specific types of cookies served through our Website and the purposes they perform:"}),e.jsxs("ul",{className:"list-disc pl-6 mt-2 mb-4 space-y-2",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Essential cookies:"})," These cookies are strictly necessary to provide you with services available through our Website and to use some of its features, such as access to secure areas. Because these cookies are strictly necessary to deliver the Website, you cannot refuse them without impacting how our Website functions."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Performance and functionality cookies:"})," These cookies are used to enhance the performance and functionality of our Website but are non-essential to their use. However, without these cookies, certain functionality may become unavailable."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Analytics and customization cookies:"})," These cookies collect information that is used either in aggregate form to help us understand how our Website is being used or how effective our marketing campaigns are, or to help us customize our Website for you."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Advertising cookies:"})," These cookies are used to make advertising messages more relevant to you. They perform functions like preventing the same ad from continuously reappearing, ensuring that ads are properly displayed for advertisers, and in some cases selecting advertisements that are based on your interests."]})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"How can you control cookies?"}),e.jsx("p",{children:"You have the right to decide whether to accept or reject cookies. You can exercise your cookie preferences by clicking on the appropriate opt-out links provided below."}),e.jsx("p",{className:"mt-4",children:"You can set or amend your web browser controls to accept or refuse cookies. If you choose to reject cookies, you may still use our Website though your access to some functionality and areas of our Website may be restricted. As the means by which you can refuse cookies through your web browser controls vary from browser-to-browser, you should visit your browser's help menu for more information."}),e.jsxs("p",{className:"mt-4",children:["In addition, most advertising networks offer you a way to opt out of targeted advertising. If you would like to find out more information, please visit ",e.jsx("a",{href:"http://www.aboutads.info/choices/",className:"text-primary hover:underline",children:"http://www.aboutads.info/choices/"})," or ",e.jsx("a",{href:"http://www.youronlinechoices.com",className:"text-primary hover:underline",children:"http://www.youronlinechoices.com"}),"."]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"How often will we update this Cookie Policy?"}),e.jsx("p",{children:"We may update this Cookie Policy from time to time in order to reflect, for example, changes to the cookies we use or for other operational, legal or regulatory reasons. Please therefore re-visit this Cookie Policy regularly to stay informed about our use of cookies and related technologies."}),e.jsx("p",{className:"mt-4",children:"The date at the top of this Cookie Policy indicates when it was last updated."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Contact Us"}),e.jsx("p",{children:"If you have any questions about our use of cookies or other technologies, please contact us at:"}),e.jsxs("p",{className:"mt-2",children:["HabitusNet",e.jsx("br",{}),"Bahnhofstrasse 123",e.jsx("br",{}),"8001 Zürich, Switzerland",e.jsx("br",{}),"Email: privacy@habitusnet.com",e.jsx("br",{}),"Phone: +41 44 123 45 67"]})]})]})]}),e.jsx(I,{})]})},hn=()=>{const s=[{icon:e.jsx(q,{className:"w-6 h-6 text-accent"}),title:"24/7 Security Monitoring",description:"Real-time threat detection and response for your Microsoft 365 environment"},{icon:e.jsx(Ne,{className:"w-6 h-6 text-accent"}),title:"Zero Trust Security",description:"Advanced identity protection and access management"},{icon:e.jsx(Ya,{className:"w-6 h-6 text-accent"}),title:"Compliance Automation",description:"Automated compliance monitoring and reporting for Swiss regulations"},{icon:e.jsx(Ka,{className:"w-6 h-6 text-accent"}),title:"Threat Intelligence",description:"Proactive threat hunting and incident response"},{icon:e.jsx(ze,{className:"w-6 h-6 text-accent"}),title:"Data Protection",description:"Advanced data loss prevention and encryption"},{icon:e.jsx(he,{className:"w-6 h-6 text-accent"}),title:"Cloud Security",description:"Secure cloud infrastructure and workload protection"}];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsx("section",{className:"relative py-20 bg-accent/5",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4",children:e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6",children:"HN-SecuWatch 365"}),e.jsx("p",{className:"text-xl text-foreground/80 max-w-3xl mx-auto",children:"Comprehensive security monitoring and threat detection for Swiss financial institutions"})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((t,a)=>e.jsxs(A,{className:"bg-card hover:bg-accent/5 transition-colors",children:[e.jsx(E,{children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:t.icon}),e.jsx(z,{className:"text-xl",children:t.title})]})}),e.jsx(M,{children:e.jsx(Q,{children:t.description})})]},a))})})}),e.jsx("section",{className:"py-20 bg-accent/5",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready to Secure Your Business?"}),e.jsx("p",{className:"text-lg text-foreground/80 mb-8 max-w-2xl mx-auto",children:"Get in touch with our security experts to discover how HN-SecuWatch 365 can protect your organization."}),e.jsxs("div",{className:"flex justify-center gap-4",children:[e.jsx(p,{size:"lg",children:"Schedule a Demo"}),e.jsx(p,{size:"lg",variant:"outline",children:"Download Datasheet"})]})]})}),e.jsx(I,{})]})},xn=()=>{const s=[{icon:e.jsx(he,{className:"w-6 h-6 text-primary"}),title:"Cloud Integration",description:"Seamless integration with Microsoft 365 and cloud services"},{icon:e.jsx(we,{className:"w-6 h-6 text-primary"}),title:"Collaboration Tools",description:"Enhanced team collaboration and communication platforms"},{icon:e.jsx(q,{className:"w-6 h-6 text-primary"}),title:"Security First",description:"Built-in security and compliance features"},{icon:e.jsx(Xa,{className:"w-6 h-6 text-primary"}),title:"Process Automation",description:"Streamlined workflows and automated processes"},{icon:e.jsx(ct,{className:"w-6 h-6 text-primary"}),title:"AI Integration",description:"Smart features powered by artificial intelligence"},{icon:e.jsx(Za,{className:"w-6 h-6 text-primary"}),title:"Analytics & Insights",description:"Data-driven decision making tools"}];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(P,{}),e.jsxs("main",{children:[e.jsx("section",{className:"py-20 bg-accent/5",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:"Modern Workplace Solutions"}),e.jsx("p",{className:"text-xl text-muted-foreground",children:"Transform your business with intelligent workplace solutions that enhance productivity, security, and collaboration."})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((t,a)=>e.jsxs(A,{className:"bg-card hover:bg-accent/5 transition-colors",children:[e.jsx(E,{children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:t.icon}),e.jsx(z,{className:"text-xl",children:t.title})]})}),e.jsx(M,{children:e.jsx("p",{className:"text-muted-foreground",children:t.description})})]},a))})})}),e.jsx("section",{className:"py-20 bg-accent/5",children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Ready to Transform Your Workplace?"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Get in touch with our experts to discover how our Modern Workplace solutions can benefit your organization."}),e.jsxs("div",{className:"flex justify-center gap-4",children:[e.jsxs(p,{size:"lg",children:["Schedule a Demo",e.jsx(ee,{className:"ml-2 h-5 w-5"})]}),e.jsx(p,{size:"lg",variant:"outline",children:"Download Brochure"})]})]})})]}),e.jsx(I,{})]})},pn=()=>e.jsxs("div",{className:"container mx-auto py-8",children:[e.jsx("h1",{className:"text-3xl font-bold mb-6",children:"Enterprise Solutions"}),e.jsx("p",{className:"text-muted-foreground",children:"Comprehensive security and IT solutions for enterprise organizations."})]}),gn=()=>e.jsxs("div",{className:"container mx-auto py-8",children:[e.jsx("h1",{className:"text-3xl font-bold mb-6",children:"SMB Solutions"}),e.jsx("p",{className:"text-muted-foreground",children:"Tailored security and IT solutions for small and medium-sized businesses."})]}),V=({content:s,startTransition:t,isPending:a})=>{const i=$();console.log("Rendering IndustryTemplate, isPending:",a);const r=()=>{t(()=>{i(s.contactLink)})};return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"relative",children:[s.heroImage?e.jsxs("div",{className:"absolute inset-0 w-full h-full",children:[e.jsx("img",{src:s.heroImage,alt:`${s.title} hero background`,className:"w-full h-full object-cover opacity-20",loading:"eager"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/30 via-background/80 to-background"})]}):e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 via-background to-background"}),e.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 py-20 sm:py-24 md:py-28 z-10",children:[e.jsxs("div",{className:"mb-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"p-3 rounded-lg bg-primary/10",children:s.icon}),e.jsx("h1",{className:"text-4xl font-bold text-foreground",children:s.title})]}),e.jsx("p",{className:"text-xl text-foreground/80 max-w-3xl leading-relaxed",children:s.overview})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-12",children:[e.jsxs(A,{className:"relative overflow-hidden border border-border/50 bg-card hover:border-border/80 transition-colors",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent"}),e.jsxs("div",{className:"relative p-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Challenges We Address"}),e.jsx("ul",{className:"space-y-4",children:s.challenges.map((o,c)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(Ye,{className:"w-5 h-5 text-primary shrink-0 mt-1"}),e.jsx("span",{className:"text-foreground/80",children:o})]},c))})]})]}),e.jsxs(A,{className:"relative overflow-hidden border border-border/50 bg-card hover:border-border/80 transition-colors",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent"}),e.jsxs("div",{className:"relative p-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Our Solutions"}),e.jsx("ul",{className:"space-y-4",children:s.solutions.map((o,c)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(Ye,{className:"w-5 h-5 text-primary shrink-0 mt-1"}),e.jsx("span",{className:"text-foreground/80",children:o})]},c))})]})]}),e.jsxs(A,{className:"relative overflow-hidden border border-border/50 bg-card hover:border-border/80 transition-colors",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent"}),e.jsxs("div",{className:"relative p-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-6",children:"Key Benefits"}),e.jsx("ul",{className:"space-y-4",children:s.benefits.map((o,c)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(Ye,{className:"w-5 h-5 text-primary shrink-0 mt-1"}),e.jsx("span",{className:"text-foreground/80",children:o})]},c))})]})]})]}),e.jsx("div",{className:"text-center",children:e.jsxs(p,{size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90 group",onClick:r,disabled:a,children:[a?"Loading...":"Get Started",e.jsx(ee,{className:"w-4 h-4 ml-2 transition-transform group-hover:translate-x-1"})]})})]})]})})},fn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),jn=()=>{const[s,t]=n.useTransition(),a={title:"Family Offices",overview:"We provide tailored IT solutions designed for family offices managing wealth and investments across generations. Our services ensure secure, efficient, and compliant operations.",challenges:["Data security and privacy","Regulatory compliance","Complex reporting needs","Multi-generational wealth preservation"],solutions:["Customized IT infrastructure","Advanced cybersecurity measures","Data analytics and reporting tools","Secure communication platforms"],benefits:["Enhanced operational efficiency","Protection of sensitive information","Streamlined wealth management","Improved governance and compliance"],icon:e.jsx(se,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/family-offices-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(fn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},bn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),yn=()=>{const[s,t]=n.useTransition(),a={title:"Asset Management Solutions",overview:"Comprehensive IT and security solutions designed for Swiss asset managers, combining technical excellence with deep industry expertise to drive growth and ensure compliance.",challenges:["Security threats and data protection","Operational efficiency demands","Complex compliance requirements","Resource optimization needs","Global operations management"],solutions:["Enterprise-grade security framework with FINMA-aligned measures","Secure, scalable cloud infrastructure with Swiss data residency","AI-driven analytics for deeper insights and automated reporting","Zero Trust security architecture implementation","Seamless market data integration systems","Advanced portfolio management tools"],benefits:["Enhanced operational excellence and efficiency","Robust security and compliance assurance","Improved client service delivery","Cost optimization through automation","Streamlined global operations"],icon:e.jsx($e,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/asset-management-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(bn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},vn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),Nn=()=>{const[s,t]=n.useTransition(),a={title:"Trust Companies",overview:"Specialized IT services for trust administration, ensuring fiduciary responsibilities are met with secure and efficient systems.",challenges:["Complex trust management","Regulatory compliance","Secure document handling","Client data protection","Reporting requirements"],solutions:["Trust management software","Secure communication systems","Compliance monitoring tools","Document management solutions","Automated reporting systems"],benefits:["Streamlined trust operations","Enhanced risk mitigation","Improved client confidence","Better compliance management","Efficient reporting"],icon:e.jsx(ke,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/trust-companies-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(vn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},wn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),kn=()=>{const[s,t]=n.useTransition(),a={title:"Supply Chain Security",overview:"Comprehensive IT security solutions for supply chain operations, ensuring end-to-end protection and visibility.",challenges:["Supply chain visibility gaps","Third-party risk management","Data integrity concerns","Real-time tracking needs","Compliance requirements"],solutions:["End-to-end monitoring systems","Risk assessment platforms","Blockchain integration","Security automation tools","Compliance management solutions"],benefits:["Enhanced supply chain visibility","Reduced operational risks","Improved compliance management","Better operational efficiency","Real-time decision making"],icon:e.jsx(gt,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/supply-chain-security-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(wn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},Sn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),Cn=()=>{const[s,t]=n.useTransition(),a={title:"Legal Services",overview:"IT solutions and support designed for legal professionals to manage sensitive information securely and efficiently.",challenges:["Confidentiality requirements","Document management","Remote collaboration","Regulatory compliance","Client data protection"],solutions:["Secure document management systems","Encrypted communication tools","Virtual meeting platforms","Compliance monitoring","Access control systems"],benefits:["Enhanced client trust","Improved case management","Flexible work environments","Better compliance","Increased efficiency"],icon:e.jsx($e,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/legal-services-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(Sn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},Tn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),In=()=>{const[s,t]=n.useTransition(),a={title:"Accounting Services",overview:"Specialized IT solutions for accounting firms focusing on data security, compliance, and efficient workflow management.",challenges:["Data accuracy and integrity","Regulatory compliance requirements","Secure client collaboration","Document management and retention","Process automation needs"],solutions:["Secure cloud-based accounting solutions","Automated workflow systems","Compliance monitoring tools","Secure client portals","Data backup and recovery systems"],benefits:["Improved data accuracy","Enhanced operational efficiency","Better client service delivery","Regulatory compliance assurance","Reduced manual workload"],icon:e.jsx(Ja,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/accounting-services-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(Tn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},Pn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),An=()=>{const[s,t]=n.useTransition(),a={title:"Healthcare",overview:"We deliver secure and compliant IT solutions that help healthcare providers focus on patient care while ensuring data security, regulatory compliance, and operational efficiency.",challenges:["HIPAA compliance and patient data security","Interoperability between systems and devices","Digital transformation of legacy systems","Maintaining high availability for critical services"],solutions:["HIPAA-compliant cloud infrastructure","Secure patient data management systems","Healthcare-specific cybersecurity measures","Telemedicine and remote care solutions"],benefits:["Enhanced patient data protection","Improved operational efficiency","Streamlined clinical workflows","Reduced IT management burden"],icon:e.jsx(Qa,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/healthcare-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(Pn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},_n=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),Mn=()=>{const[s,t]=n.useTransition(),a={title:"Financial Services",overview:"We provide secure, compliant IT solutions for financial institutions that protect sensitive data, ensure regulatory compliance, and optimize operational efficiency in an increasingly digital financial landscape.",challenges:["Regulatory compliance (GDPR, PCI DSS, SOX)","Cyber threats and financial fraud prevention","Legacy system integration","Data privacy and customer trust","Digital transformation demands"],solutions:["Compliance-focused IT infrastructure","Advanced financial cybersecurity systems","Secure cloud services for financial data","Digital banking platform integrations","AI-powered risk assessment tools"],benefits:["Reduced risk of data breaches and financial fraud","Ensured regulatory compliance","Improved customer experience through digital services","Increased operational efficiency","Cost-effective IT management"],icon:e.jsx(er,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/financial-services-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(_n,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},En=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),Ln=()=>{const[s,t]=n.useTransition(),a={title:"Manufacturing",overview:"We deliver specialized IT solutions for manufacturing companies that optimize production processes, secure industrial systems, and facilitate digital transformation in the modern manufacturing landscape.",challenges:["OT/IT convergence and security","Legacy equipment integration","Supply chain visibility","Predictive maintenance implementation","Industry 4.0 transformation"],solutions:["Industrial IoT security and management","Manufacturing execution systems (MES)","Supply chain visibility platforms","OT network security solutions","Connected factory implementations"],benefits:["Increased production efficiency","Reduced operational downtime","Enhanced supply chain transparency","Improved quality control","Future-ready manufacturing infrastructure"],icon:e.jsx(gt,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/manufacturing-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(En,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},Rn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),Fn=()=>{const[s,t]=n.useTransition(),a={title:"Education",overview:"We offer comprehensive IT solutions for educational institutions that enhance learning environments, protect student data, and streamline administrative processes while supporting modern educational technology needs.",challenges:["Student data privacy and FERPA compliance","Secure remote and hybrid learning environments","Legacy system modernization","Budget constraints and resource limitations","Technology integration in classrooms"],solutions:["Secure learning management systems","Educational data protection frameworks","Classroom technology integration","Administrative process automation","Cost-effective IT infrastructure for schools"],benefits:["Enhanced student learning experiences","Streamlined administrative workflows","Secure handling of sensitive student information","Reduced IT management overhead","Support for modern teaching methodologies"],icon:e.jsx(sr,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/education-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(Rn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},Dn=()=>e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-20",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx(f,{className:"h-12 w-64 mb-4"}),e.jsx(f,{className:"h-24 w-full max-w-3xl"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[1,2,3].map(s=>e.jsx(f,{className:"h-[400px]"},s))})]})}),zn=()=>{const[s,t]=n.useTransition(),a={title:"Retail",overview:"We provide innovative IT solutions for retailers that enhance customer experiences, secure payment systems, and enable omnichannel strategies to thrive in today's competitive retail landscape.",challenges:["PCI DSS compliance and payment security","Omnichannel experience delivery","Inventory management and supply chain visibility","Customer data protection and privacy","E-commerce and physical store integration"],solutions:["Secure retail payment systems","Omnichannel retail platforms","Inventory and supply chain management solutions","Customer data management and analytics","Integrated POS and e-commerce systems"],benefits:["Enhanced customer shopping experiences","Improved inventory accuracy and management","Secure payment processing","Data-driven retail decision making","Seamless online and in-store operations"],icon:e.jsx(tr,{className:"w-12 h-12 text-accent"}),contactLink:"/contact",heroImage:"/images/industries/retail-hero.jpg"};return e.jsx(R,{children:e.jsx(n.Suspense,{fallback:e.jsx(Dn,{}),children:e.jsx(V,{content:a,startTransition:t,isPending:s})})})},Ss={isAuthenticated:!1,user:null,session:null,isLoading:!0,error:null};Gt(s=>({...Ss,setSession:t=>s(()=>({session:t,user:t?.user||null,isAuthenticated:!!t,isLoading:!1})),setUser:t=>s(a=>({user:t,isAuthenticated:!!t,session:t?a.session||{user:t}:null})),setIsLoading:t=>s({isLoading:t}),setError:t=>s({error:t}),reset:()=>s(Ss)}));const On=n.createContext({isAuthenticated:!1,user:null,session:null,isLoading:!0,error:null,login:async()=>({data:null,error:null}),signup:async()=>({data:null,error:null}),logout:async()=>{},resetPassword:async()=>({data:null,error:null}),updatePassword:async()=>({data:null,error:null}),verifyOtp:async()=>({data:null,error:null})});function $n(){const s=n.useContext(On);if(s===void 0)throw new Error("useAuth must be used within an AuthProvider");return s}const Bn=n.lazy(()=>me(()=>import("./Dashboard-CB5shxrf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))),qn=n.lazy(()=>me(()=>import("./Settings-ucKNCtar.js"),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,23,25,26,27,28,29,30,31]))),Hn=n.lazy(()=>me(()=>import("./NotFound-C36kn2Es.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,24,22,23,25,26,27,28,29,30,31]))),Wn=n.lazy(()=>me(()=>import("./Portfolio-aljwwD8k.js"),__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))),Vn=n.lazy(()=>me(()=>import("./BusinessTools-DPhGtQan.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))),Un=({children:s})=>{const{session:t,isLoading:a}=$n();return a?e.jsx(cs,{}):t?e.jsx(e.Fragment,{children:s}):e.jsx(sa,{to:"/admin/login",replace:!0})};function Gn(){return e.jsx(or,{children:e.jsx(Fr,{children:e.jsxs(Qt,{children:[e.jsx(n.Suspense,{fallback:e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx(cs,{})}),children:e.jsxs(ea,{children:[e.jsx(k,{path:"/",element:e.jsx(ei,{})}),e.jsx(k,{path:"/about",element:e.jsx(gi,{})}),e.jsx(k,{path:"/services",element:e.jsx(vi,{})}),e.jsx(k,{path:"/contact",element:e.jsx(Fi,{})}),e.jsx(k,{path:"/blog",element:e.jsx(Ns,{})}),e.jsx(k,{path:"/blog/:slug",element:e.jsx(Ri,{})}),e.jsx(k,{path:"/portfolio",element:e.jsx(Wn,{})}),e.jsx(k,{path:"/business-tools",element:e.jsx(Vn,{})}),e.jsx(k,{path:"/auth",element:e.jsx(pi,{})}),e.jsx(k,{path:"/resources/blog",element:e.jsx(Ns,{})}),e.jsx(k,{path:"/resources/case-studies",element:e.jsx(Oi,{})}),e.jsx(k,{path:"/resources/case-studies/:id",element:e.jsx($i,{})}),e.jsx(k,{path:"/resources/whitepapers",element:e.jsx(Di,{})}),e.jsx(k,{path:"/resources/webinars",element:e.jsx(zi,{})}),e.jsx(k,{path:"/services/managed-security",element:e.jsx(sn,{})}),e.jsx(k,{path:"/services/cloud-solutions",element:e.jsx(tn,{})}),e.jsx(k,{path:"/services/security-consulting",element:e.jsx(an,{})}),e.jsx(k,{path:"/services/support",element:e.jsx(nn,{})}),e.jsx(k,{path:"/industries/family-offices",element:e.jsx(jn,{})}),e.jsx(k,{path:"/industries/asset-management",element:e.jsx(yn,{})}),e.jsx(k,{path:"/industries/trust-companies",element:e.jsx(Nn,{})}),e.jsx(k,{path:"/industries/supply-chain",element:e.jsx(kn,{})}),e.jsx(k,{path:"/industries/legal",element:e.jsx(Cn,{})}),e.jsx(k,{path:"/industries/accounting",element:e.jsx(In,{})}),e.jsx(k,{path:"/industries/healthcare",element:e.jsx(An,{})}),e.jsx(k,{path:"/industries/financial-services",element:e.jsx(Mn,{})}),e.jsx(k,{path:"/industries/manufacturing",element:e.jsx(Ln,{})}),e.jsx(k,{path:"/industries/education",element:e.jsx(Fn,{})}),e.jsx(k,{path:"/industries/retail",element:e.jsx(zn,{})}),e.jsx(k,{path:"/solutions/secuwatch",element:e.jsx(hn,{})}),e.jsx(k,{path:"/solutions/modern-workplace",element:e.jsx(xn,{})}),e.jsx(k,{path:"/solutions/enterprise",element:e.jsx(pn,{})}),e.jsx(k,{path:"/solutions/smb",element:e.jsx(gn,{})}),e.jsx(k,{path:"/team",element:e.jsx(on,{})}),e.jsx(k,{path:"/team/:id",element:e.jsx(cn,{})}),e.jsx(k,{path:"/careers",element:e.jsx(ln,{})}),e.jsx(k,{path:"/privacy-policy",element:e.jsx(dn,{})}),e.jsx(k,{path:"/terms-of-service",element:e.jsx(mn,{})}),e.jsx(k,{path:"/cookie-policy",element:e.jsx(un,{})}),e.jsx(k,{path:"/admin/login",element:e.jsx(ri,{})}),e.jsxs(k,{path:"/admin",element:e.jsx(Un,{children:e.jsx(en,{})}),children:[e.jsx(k,{index:!0,element:e.jsx(Bn,{})}),e.jsx(k,{path:"settings",element:e.jsx(qn,{})})]}),e.jsx(k,{path:"*",element:e.jsx(Hn,{})})]})}),e.jsx(ta,{})]})})})}ir({dsn:"https://a93d971b406884d7822054fd819170cf@o4508919801446400.ingest.de.sentry.io/4509078985834576",integrations:[nr()],tracesSampleRate:.5,tracePropagationTargets:["habitusnet.com","www.habitusnet.com","habitusnet-com.pages.dev"]});const Yn=new Ut({defaultOptions:{queries:{staleTime:60*1e3,retry:1}}});Vt.createRoot(document.getElementById("root")).render(e.jsx(Cs.StrictMode,{children:e.jsx(Yt,{client:Yn,children:e.jsx(Gn,{})})}));export{en as A,p as B,A as C,or as E,I as F,X as I,ye as L,R as M,P as N,Et as T,M as a,E as b,ds as c,Z as d,J as e,_ as s,Tt as u};