1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5c3a381b-eff4-495e-a3ea-f844479c6872",e._sentryDebugIdIdentifier="sentry-dbid-5c3a381b-eff4-495e-a3ea-f844479c6872")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21960],{9561:(e,t,a)=>{a.d(t,{D7:()=>p,Lm:()=>x,ZT:()=>c,iR:()=>i,lC:()=>d,yc:()=>m,zR:()=>h});let s="vm_selected_therapist",r="vm_selected_therapist_prefs",i="therapist";function n(e,t){if("undefined"==typeof document)return;let a="https:"===window.location.protocol;document.cookie=["".concat(e,"=").concat(encodeURIComponent(t)),"Path=/","Max-Age=".concat(1800),"SameSite=Lax",a?"Secure":""].filter(Boolean).join("; ")}function l(e){var t;if("undefined"==typeof document)return null;let a=document.cookie.split("; ").find(t=>t.startsWith("".concat(e,"=")));return a&&decodeURIComponent(null!=(t=a.split("=")[1])?t:"")||null}function o(e){"undefined"!=typeof document&&(document.cookie="".concat(e,"=; Path=/; Max-Age=0; SameSite=Lax"))}function c(e){n(s,e)}function d(){return l(s)}function x(e){n(r,JSON.stringify(e))}function p(){let e=l(r);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}function m(){o(s),o(r)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/onboarding/client",a=new URLSearchParams({callbackUrl:"".concat(t,"?").concat(i,"=").concat(encodeURIComponent(e)),[i]:e});return"/auth?".concat(a.toString())}},21960:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ed});var s=a(95155),r=a(96170),i=a(37702),n=a(41407),l=a(12619),o=a(79397),c=a(7744),d=a(75801),x=a(52987),p=a(78435),m=a(39347),h=a(29633),g=a(21873),u=a(39068),b=a(35299),v=a(99708),f=a(91169),w=a(67909),y=a(15239),j=a(52619),N=a.n(j),k=a(20063),C=a(96199),I=a(12115),A=a(18720),P=a(93678),S=a(26497),_=a(5937);function E(){let e=(0,P.L)(e=>e.initializeHomeChat),t=(0,P.L)(e=>e.setHomeChatOpen),a=(0,P.L)(e=>{var t,a;return null!=(a=null==(t=e.homeChatSession)?void 0:t.isOpen)&&a}),{t:r}=(0,i.W)();return(0,s.jsx)(S.N,{children:!a&&(0,s.jsxs)(l.P.button,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:12},transition:{duration:.2,ease:"easeOut"},whileHover:{scale:1.03},whileTap:{scale:.97},onClick:()=>{e(),t(!0)},"aria-label":"Talk to Viero",className:"fixed bottom-6 right-6 z-40 flex items-center gap-2.5 rounded-full border border-blue-400/50 bg-white dark:bg-[#111827] px-5 py-3 text-gray-900 dark:text-white text-[16px] leading-6 shadow-md dark:shadow-lg transition-colors hover:bg-gray-50 dark:hover:bg-white/5",children:[(0,s.jsx)(_.A,{className:"w-5 h-5 shrink-0"}),r("hero.chatWithViero")]},"chat-pill")})}var R=a(95704),V=a(58261),D=a(9561),L=a(80842),T=a(63763);a(91801),a(65272),a(80690),a(95075),a(93256),a(71953);var O=a(35545);a(76073),a(80775),a(45132),a(84484);var U=a(50933);a(53604);var M=a(61362);function W(){let{t:e,language:t}=(0,i.W)(),a="ur"===t||"ar"===t,r=[e("home.landing.about.badge1"),e("home.landing.about.badge2")];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("section",{className:"w-full bg-[rgb(var(--color-muted))] dark:bg-[rgb(var(--vm-bg-surface))] overflow-x-hidden",children:(0,s.jsx)("div",{className:"max-w-[1200px] mx-auto px-6 sm:px-8 lg:px-10 py-20 lg:py-28",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[(0,s.jsxs)(l.P.div,{initial:{opacity:0,x:a?32:-32},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:[.16,1,.3,1]},className:"space-y-7",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 ".concat(a?"flex-row-reverse justify-end":""),children:[(0,s.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#2b7fff]"}),(0,s.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#2b7fff]/50"}),(0,s.jsx)("span",{className:"text-[14px] font-bold uppercase tracking-[1.2px] text-[#3b82f6] ".concat(a?"me-0.5":"ms-0.5"),children:e("home.landing.about.label")})]}),(0,s.jsx)("h2",{className:"text-[32px] sm:text-[36px] lg:text-[40px] font-semibold leading-[1.2] tracking-[-0.02em] text-gray-900 dark:text-white",children:e("home.landing.about.heading")}),(0,s.jsx)("p",{className:"text-[18px] leading-[1.65] text-gray-600 dark:text-[#8892a8] max-w-[490px]",children:e("home.landing.about.body")}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-6 pt-1 ".concat(a?"flex-row-reverse justify-end":""),children:r.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2.5 ".concat(a?"flex-row-reverse":""),children:[(0,s.jsx)(M.A,{className:"h-[22px] w-[22px] shrink-0 text-[#2b7fff]"}),(0,s.jsx)("span",{className:"text-[15px] text-gray-600 dark:text-[#8892a8]",children:e})]},e))})]}),(0,s.jsxs)(l.P.div,{initial:{opacity:0,x:a?-32:32},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:[.16,1,.3,1],delay:.1},className:"relative",children:[(0,s.jsx)("div",{className:"absolute -inset-4 rounded-[24px] bg-[#2b7fff]/10 blur-2xl hidden dark:block"}),(0,s.jsx)("div",{className:"relative rounded-[16px] overflow-hidden border border-gray-200 dark:border-[rgba(49,65,88,0.4)] shadow-[0_25px_50px_rgba(0,0,0,0.12)] dark:shadow-[0_25px_50px_rgba(0,0,0,0.4)]",children:(0,s.jsx)(y.default,{src:"/assets/home/IMG_20260416_223307.jpg.jpeg",alt:"Mental health professionals in Pakistan",width:560,height:538,className:"w-full h-auto object-cover object-center lg:max-h-[380px]",priority:!1})})]})]})})}),(0,s.jsx)("div",{className:"w-full bg-white dark:bg-[rgb(var(--vm-bg-deep))] -mt-px",children:(0,s.jsx)("svg",{className:"w-full block h-[64px] sm:h-[88px] md:h-[100px] lg:h-[120px] text-[rgb(var(--color-muted))] dark:text-[rgb(var(--vm-bg-surface))]",viewBox:"0 0 1440 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M0,0 L1440,0 L1440,20 C960,120 480,120 0,20 Z",fill:"currentColor"})})})]})}function H(){let{t:e,language:t}=(0,i.W)(),a="ur"===t||"ar"===t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"w-full -mb-px bg-[rgb(var(--color-background))] dark:bg-[#0b1527]",children:(0,s.jsx)("svg",{className:"block w-full text-[#f3f4f6] dark:text-[#080e1e]",viewBox:"0 0 1440 76",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M0,76 L1440,76 L1440,56 C960,0 480,0 0,56 Z",fill:"currentColor"})})}),(0,s.jsx)("section",{className:"w-full bg-[#f3f4f6] dark:bg-[#080e1e] py-20 lg:py-28",children:(0,s.jsxs)("div",{className:"mx-auto grid max-w-[1200px] grid-cols-1 items-center gap-12 px-6 sm:px-8 lg:grid-cols-[418px_1fr] lg:gap-16 lg:px-10 ".concat(a?"direction-rtl":""),children:[(0,s.jsx)(l.P.div,{initial:{opacity:0,x:a?24:-24},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.55},className:"overflow-hidden rounded-[16px]",children:(0,s.jsx)(y.default,{src:"/assets/home/donate.svg",alt:"Children at Aghosh learning together",width:418,height:312,className:"h-auto w-full object-cover"})}),(0,s.jsxs)(l.P.div,{initial:{opacity:0,x:a?-24:24},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.55,delay:.06},className:"flex flex-col gap-10",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,s.jsxs)("div",{className:"flex items-center gap-[4px] ".concat(a?"flex-row-reverse justify-end":""),children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[#3b82f6]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgba(59,130,246,0.5)]"}),(0,s.jsx)("span",{className:"text-[14px] font-semibold uppercase tracking-[2.5px] text-[#3b82f6] ".concat(a?"me-[13px]":"ms-[13px]"),children:e("home.commitment.label")})]}),(0,s.jsx)("p",{className:"text-[15px] leading-[26px] tracking-[0.1px] text-gray-600 dark:text-[rgba(255,255,255,0.45)]",children:e("home.commitment.body")})]}),(0,s.jsxs)("div",{className:"flex items-center gap-[10px] ".concat(a?"flex-row-reverse justify-end":""),children:[(0,s.jsx)("span",{className:"h-[4px] w-[4px] shrink-0 rounded-full bg-[rgba(59,130,246,0.5)]"}),(0,s.jsx)("p",{className:"text-[12px] uppercase tracking-[0.5px] text-gray-400 dark:text-[rgba(255,255,255,0.3)]",children:e("home.commitment.bullet")})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-[10px] ".concat(a?"flex-row-reverse justify-end":""),children:[(0,s.jsx)(N(),{href:"/about",className:"inline-flex h-[47px] w-[159px] items-center justify-center rounded-[10px] border border-[rgba(59,130,246,0.5)] text-[14px] font-semibold text-gray-900 transition-colors duration-200 hover:bg-[rgba(59,130,246,0.08)] dark:text-white",children:e("home.commitment.learnMore")}),(0,s.jsx)(N(),{href:"/impact",className:"inline-flex h-[47px] items-center px-4 text-[14px] text-gray-700 transition-colors duration-200 hover:text-[#3b82f6] dark:text-white",children:e("home.commitment.impactBtn")}
1)]})]})]})})]})}var z=a(86461),F=a(41754);let B={N:55,NE:40,E:62,SE:38,S:50,SW:58,W:70,NW:42},G=new Set(z.yF);function Q(e){let{className:t}=e,{isDark:a}=(0,F.e)(),r=(0,n.I)(),[i,l]=(0,I.useState)("N");return(0,I.useEffect)(()=>{if(r)return;let e=setInterval(()=>{l(e=>{let t=z.yF.indexOf(e);return z.yF[(t+1)%z.yF.length]})},2600);return()=>clearInterval(e)},[r]),(0,s.jsx)(z.Ay,{className:t,isDark:a,activeDirection:i,sliderValue:85,answeredDirections:G,directionScores:B,angleDegrees:z.eG[i]})}function Z(){let{t:e}=(0,i.W)();return(0,s.jsxs)("section",{className:"relative w-full overflow-hidden py-44 lg:py-56",children:[(0,s.jsx)(y.default,{src:"/assets/home/IMG_20260416_223340.jpg.jpeg",alt:"",fill:!0,className:"pointer-events-none object-cover object-center select-none","aria-hidden":!0}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-[rgba(8,14,30,0.72)] via-[rgba(8,14,30,0.62)] to-[rgba(8,14,30,0.80)]"}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[rgba(20,40,80,0.18)]"}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-10",children:(0,s.jsx)("svg",{className:"block w-full text-[#ffffff] dark:text-[#0b1527]",viewBox:"0 0 1440 76",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M0,0 L1440,0 L1440,20 C960,76 480,76 0,20 Z",fill:"currentColor"})})}),(0,s.jsxs)("div",{className:"relative z-20 mx-auto flex max-w-[680px] flex-col items-center px-6 text-center sm:px-8",children:[(0,s.jsxs)(l.P.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45},className:"mb-8 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"h-[1px] w-10 bg-white/30"}),(0,s.jsx)("span",{className:"text-[12px] font-semibold tracking-[2.5px] text-white/50 uppercase",children:e("home.getStarted.eyebrow")}),(0,s.jsx)("span",{className:"h-[1px] w-10 bg-white/30"})]}),(0,s.jsx)(l.P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,ease:[.16,1,.3,1]},className:"text-[38px] leading-[1.18] font-semibold tracking-[-0.04em] text-white sm:text-[44px] lg:text-[52px]",children:e("home.getStarted.heading")}),(0,s.jsx)(l.P.p,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.55,delay:.1},className:"mt-6 max-w-[480px] text-[17px] leading-[30px] text-white/60",children:e("home.getStarted.subtitle")}),(0,s.jsxs)(l.P.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"mt-10 flex flex-wrap items-center justify-center gap-3",children:[(0,s.jsx)(N(),{href:"/auth",className:"inline-flex h-[52px] items-center justify-center rounded-[12px] bg-white px-9 text-[15px] font-semibold text-gray-900 shadow-[0_4px_20px_rgba(0,0,0,0.25)] transition-all duration-200 hover:bg-gray-100",children:e("home.getStarted.cta")}),(0,s.jsx)(N(),{href:"/therapist-finder",className:"inline-flex h-[52px] items-center justify-center rounded-[12px] border border-white/20 px-8 text-[15px] font-medium text-white/85 transition-all duration-200 hover:border-white/35 hover:bg-white/10",children:e("home.getStarted.secondaryCta")})]}),(0,s.jsx)(l.P.p,{initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.35},className:"mt-8 text-[13px] tracking-[0.2px] text-white/35",children:e("home.getStarted.trust")})]})]})}var q=a(20508),J=a(47937),Y=a(25664);let K=[q.A,J.A,_.A,Y.A];function X(){let{t:e,get:t,language:a}=(0,i.W)(),[r,n]=(0,I.useState)(!1),o=r&&("ur"===a||"ar"===a),c=t("home.landing.howItWorks.steps");return(0,I.useEffect)(()=>{n(!0)},[]),(0,s.jsx)("section",{className:"w-full bg-[rgb(var(--color-muted))] py-20 lg:py-28 dark:bg-[rgb(var(--vm-bg-deep))]",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1200px] px-4 sm:px-8 lg:px-10",children:[(0,s.jsxs)("div",{className:"mb-5 flex items-center justify-center gap-1.5 ".concat(o?"flex-row-reverse":""),children:[(0,s.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#2b7fff]"}),(0,s.jsx)("span",{className:"h-2 w-2 rounded-full bg-[#2b7fff]/50"}),(0,s.jsx)("span",{className:"text-[14px] font-bold tracking-[1.5px] text-blue-700 uppercase dark:text-blue-300 ".concat(o?"me-1":"ms-1"),children:e("home.landing.howItWorks.label")})]}),(0,s.jsxs)("h2",{className:"mb-16 text-center text-[32px] leading-[1.25] font-bold tracking-[-0.03em] text-gray-900 sm:text-[40px] dark:text-white",children:[e("home.landing.howItWorks.headingPrefix")," ",(0,s.jsx)("span",{className:"text-blue-700 dark:text-blue-300",children:e("home.landing.howItWorks.headingHighlight")})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:Array.isArray(c)&&c.map((e,t)=>{var a;let r=null!=(a=K[t])?a:K[0];return(0,s.jsxs)(l.P.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.6,delay:.1*t,ease:[.16,1,.3,1]},className:"flex flex-col items-center pt-6 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-6 flex h-14 w-14 items-center justify-center rounded-[14px] border border-blue-200 bg-blue-50 shadow-[0_4px_16px_rgba(59,130,246,0.18)] dark:border-[rgba(43,127,255,0.2)] dark:bg-[rgba(43,127,255,0.1)] dark:shadow-[0_4px_16px_rgba(59,130,246,0.28)]",children:(0,s.jsx)(r,{className:"h-6 w-6 text-[#3b82f6]"})}),(0,s.jsx)("h3",{className:"mb-2 text-center text-[20px] leading-[1.4] font-bold text-gray-900 dark:text-white",children:e.title}),(0,s.jsx)("p",{className:"text-center text-[14px] leading-[1.65] text-gray-500 dark:text-[#90a1b9]",children:e.desc})]},t)})})]})})}var $=a(56154),ee=a(76907);let et=[$.A,ee.A,f.A,f.A];function ea(){let{t:e,get:t,language:a}=(0,i.W)(),r="ur"===a||"ar"===a,n=t("home.howWeSupport.features");return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("section",{className:"w-full bg-[rgb(var(--color-background))] dark:bg-[#0b1527] pb-20 lg:pb-28 pt-16 lg:pt-20",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1200px] px-6 sm:px-8 lg:px-10",children:[(0,s.jsxs)(l.P.div,{className:"flex items-center justify-center gap-[4px] ".concat(r?"flex-row-reverse":""),initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45},children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[#3b82f6]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgba(59,130,246,0.5)]"}),(0,s.jsx)("span",{className:"text-[14px] font-semibold uppercase tracking-[2.5px] text-[#3b82f6] ".concat(r?"me-1":"ms-1"),children:e("home.howWeSupport.label")})]}),(0,s.jsxs)(l.P.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.08},className:"mt-5 text-center text-[32px] font-bold leading-[46.8px] tracking-tight text-gray-900 dark:text-white sm:text-[36px]",children:[e("home.howWeSupport.heading")," ",(0,s.jsxs)("span",{className:"text-[#3b82f6]",children:[e("home.howWeSupport.headingHighlight")," "]}),e("home.howWeSupport.headingSuffix")]}),(0,s.jsx)("div",{className:"mx-auto mt-14 grid max-w-[896px] grid-cols-1 gap-x-10 gap-y-6 sm:grid-cols-2 lg:mt-[60px]",children:Array.isArray(n)&&n.map((e,t)=>{var a;let i=null!=(a=et[t])?a:et[0];return(0,s.jsxs)(l.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.07*t},className:"flex items-center rounded-[14px] border border-gray-200 bg-gray-50 px-[21px] py-[16px] dark:border-[rgba(29,41,61,0.5)] dark:bg-[rgba(18,30,53,0.8)] ".concat(r?"flex-row-reverse":""),children:[(0,s.jsx)("div",{className:"flex h-[44px] w-[44px] shrink-0 items-center justify-center rounded-[10px] border border-blue-100 bg-blue-50 dark:border-[rgba(43,127,255,0.2)] dark:bg-[rgba(43,127,255,0.1)]",children:(0,s.jsx)(i,{className:"h-[20px] w-[20px] text-blue-600 dar
1k:text-[#3b82f6]",strokeWidth:1.8})}),(0,s.jsxs)("div",{className:"min-w-0 ".concat(r?"me-4":"ms-4"),children:[(0,s.jsx)("h3",{className:"text-[16px] font-bold leading-[24px] text-gray-900 dark:text-white",children:e.title}),(0,s.jsx)("p",{className:"mt-[3px] text-[14px] leading-[19px] text-gray-500 dark:text-[#90a1b9]",children:e.description})]})]},t)})})]})})})}let es=(0,w.default)(()=>a.e(23302).then(a.bind(a,23302)),{loadableGenerated:{webpack:()=>[23302]},ssr:!1}),er=(0,w.default)(()=>Promise.all([a.e(315),a.e(57641),a.e(94193),a.e(26909),a.e(12793),a.e(32)]).then(a.bind(a,32)),{loadableGenerated:{webpack:()=>[32]},ssr:!1}),ei=[{src:"/assets/partners/thefirsthopecenter.png",alt:"The First Hope Center"},{src:"/assets/partners/aghosh-logo.svg",alt:"Aghosh Orphan Care"},{src:"/assets/partners/IqraUni-logo.svg",alt:"Iqra University"},{src:"/assets/partners/szabist-logo.svg",alt:"SZABIST Islamabad"},{src:"/assets/partners/agricultureUni-logo.svg",alt:"University of Agriculture Multan"},{src:"/assets/partners/Superior-University-with-text.webp",alt:"Superior University Lahore"}],en=[...ei,...ei],el=function(e){let t=function(){let e=R.env.NEXT_PUBLIC_VIERO_COMPASS_URL;return e?e.replace(/\/+$/,""):!function(){{let e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||"::1"===e}}()?"https://www.vierocompass.com":"http://localhost:3001"}();return t}("/"),eo="border-blue-200/70 bg-white shadow-[0_20px_50px_rgba(37,99,235,0.08)] dark:border-blue-400/15 dark:bg-white/[0.04]",ec=[{name:"VieroMind Platform",description:"Secure journaling, mood tracking, AI-guided reflection, and care coordination in one connected mental health home.",href:"https://vieromind.com/",icon:{type:"image",src:"/assets/eco-system/vieromind.png",alt:"VieroMind logo"},cardClass:eo,iconClass:"bg-blue-50 text-blue-600 ring-blue-100 dark:bg-blue-500/10 dark:text-blue-300 dark:ring-blue-400/20"},{name:"VieroCompass",description:"A guided self-reflection and pattern-mapping experience that helps people understand where they are and what to explore next.",href:el,icon:{type:"image",src:"/assets/eco-system/vierocompass.svg",alt:"VieroCompass logo",logoClass:"scale-90"},cardClass:eo,iconClass:"bg-cyan-50 text-cyan-600 ring-cyan-100 dark:bg-cyan-500/10 dark:text-cyan-300 dark:ring-cyan-400/20"},{name:"Ravius",description:"Team-level wellbeing intelligence for organizations, leaders, and institutions that need insight without losing humanity.",href:"https://ravius.com/",icon:{type:"image",src:"/assets/eco-system/ravius.svg",alt:"Ravius logo",logoClass:"scale-110"},cardClass:eo,iconClass:"bg-sky-50 text-sky-600 ring-sky-100 dark:bg-sky-500/10 dark:text-sky-300 dark:ring-sky-400/20"},{name:"VieroMind Academy",description:"Bilingual training pathways, professional development, and capability building for practitioners and partner institutions.",href:"https://www.vieromindacademy.com/?source=vieromind_homepage&referral_token=homepage_ecosystem_academy",icon:{type:"icon",Icon:o.A},cardClass:eo,iconClass:"bg-indigo-50 text-indigo-600 ring-indigo-100 dark:bg-indigo-500/10 dark:text-indigo-300 dark:ring-indigo-400/20"},{name:"Therapist Network",description:"A credential-reviewed network of culturally aware therapists matched to client needs, language, and care preferences.",href:"/therapist-finder",icon:{type:"icon",Icon:c.A},cardClass:eo,iconClass:"bg-emerald-50 text-emerald-600 ring-emerald-100 dark:bg-emerald-500/10 dark:text-emerald-300 dark:ring-emerald-400/20"},{name:"Community / Support Resources",description:"Peer support, outreach, articles, and subsidized access resources for people and communities who need extra support.",href:"https://viero-mind-vieromind-ecosystem-plat.vercel.app/",icon:{type:"icon",Icon:d.A},cardClass:eo,iconClass:"bg-rose-50 text-rose-600 ring-rose-100 dark:bg-rose-500/10 dark:text-rose-300 dark:ring-rose-400/20"}];function ed(){var e,t;let{t:a,get:o,tpl:c,language:d}=(0,i.W)(),w=(0,n.I)(),[j,S]=(0,I.useState)(!1);(0,I.useEffect)(()=>{S("ur"===d||"ar"===d)},[d]);let[_,R]=(0,I.useState)(null),{data:M,isLoading:z}=L.api.therapist.therapistSearch.getHomepageSpotlight.useQuery(void 0,{staleTime:3e4,refetchOnWindowFocus:!1}
1),F=null!=(t=null==M?void 0:M.therapists)?t:[],B=(0,P.L)(e=>{var t,a;return null!=(a=null==(t=e.homeChatSession)?void 0:t.isOpen)&&a}),G=(0,k.useRouter)(),{data:q,status:J}=(0,C.useSession)(),Y=L.api.clients.selectTherapistFromPublicFinder.useMutation(),[K,$]=(0,I.useState)(null),[ee,et]=(0,I.useState)(null),eo=(0,I.useRef)(!1),[ed,ex]=(0,I.useState)(new Set),ep=(0,I.useCallback)(async e=>{if(eo.current||K||ee)return;if("authenticated"===J&&(null==q?void 0:q.user)){let e=(0,V.GY)(q.user.role);if(e&&"CLIENT"!==e&&"CLIENT_AND_THERAPIST"!==e)return void A.o.error("THERAPIST"===e?"Therapist accounts can't select a therapist. Please use a client account to book a session.":"Only client accounts can select a therapist.")}eo.current=!0;let t={specialties:[],gender:[],sessionType:[],availability:[],languages:[],focus:[]};(0,D.ZT)(e),(0,D.Lm)(t),$(e);let a=t=>{$(null),et(e),A.o.success("Great choice â taking you to the next stepâ¦"),setTimeout(t,1500)};if("authenticated"===J&&(null==q?void 0:q.user))try{let s=await Y.mutateAsync({therapistUserId:e,preferences:t});a(()=>G.push(s.onboardingComplete?"/client/dashboard":"/onboarding/client"));return}catch(r){var s;let t=null==r||null==(s=r.data)?void 0:s.code;if("UNAUTHORIZED"===t)return void a(()=>G.push((0,D.zR)(e)));"FORBIDDEN"===t?A.o.error("Only client accounts can select a therapist."):(console.error("[homepage] select failed:",r),A.o.error("Could not save your selection. Please try again.")),$(null),eo.current=!1;return}a(()=>G.push((0,D.zR)(e)))},[G,null==q?void 0:q.user,J,Y,K,ee]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("main",{className:"min-h-screen w-full bg-gray-50 text-gray-900 dark:bg-gray-900 dark:text-gray-100",children:[(0,s.jsx)("div",{className:"w-full pt-[60px]",children:(0,s.jsx)(O.default,{})}),(0,s.jsx)(W,{}),(0,s.jsx)(X,{}),(0,s.jsx)("section",{className:"w-full overflow-hidden bg-[rgb(var(--color-background))] py-20 lg:py-28 dark:bg-[rgb(var(--vm-bg-surface))]",children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-[1240px] px-4 sm:px-6 lg:px-10",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-end lg:justify-between",children:[(0,s.jsxs)("div",{className:"max-w-xl",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 ".concat(j?"flex-row-reverse":""),children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--color-primary))]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgba(var(--color-primary),0.5)]"}),(0,s.jsx)("span",{className:"text-[12px] font-bold tracking-[1.6px] text-blue-700 uppercase dark:text-blue-300 ".concat(j?"me-1":"ms-1"),children:a("home.landing.trustedProfessionals.eyebrow")})]}),(0,s.jsxs)("h2",{className:"mt-4 text-[30px] leading-[1.1] font-bold tracking-[-0.025em] text-gray-900 sm:text-[40px] dark:text-white",children:[a("home.landing.trustedProfessionals.headingPrefix")," ",(0,s.jsx)("span",{className:"text-blue-700 dark:text-blue-300",children:a("home.landing.trustedProfessionals.headingHighlight")})]}),(0,s.jsx)("p",{className:"mt-3 max-w-md text-[15px] leading-[24px] text-gray-500 dark:text-white/50",children:a("home.landing.trustedProfessionals.subtitle")})]}),(0,s.jsxs)(N(),{href:"/therapist-finder",className:"inline-flex h-[44px] shrink-0 items-center justify-center gap-2 rounded-[10px] border border-[rgba(var(--color-primary),0.4)] px-6 text-[14px] font-semibold text-[rgb(var(--color-primary))] transition-colors duration-200 hover:bg-[rgba(var(--color-primary),0.07)] dark:text-[#93c5fd]",children:[a("home.landing.trustedProfessionals.viewAll"),(0,s.jsx)(x.A,{className:"h-4 w-4"})]})]}),(0,s.jsxs)("div",{className:"mt-8 grid grid-cols-1 gap-4 min-[480px]:grid-cols-2 sm:gap-5 lg:mt-10 lg:grid-cols-4 lg:gap-6",children:[(z?Array.from({length:4}).fill(null):F.slice(0,4)).map((e,t)=>{if(!e)return(0,s.jsxs)("div",{className:"overflow-hidden rounded-[18px] border border-[rgb(var(--vm-border-default))] bg-[rgb(var(--vm-bg-content))] shadow-[0_4px_20px_rgba(0,0,0,0.06),0_1px_4px_rgba(0,0,0,0.04)] dark:border-white/[0.08]",children:[(0,s.jsx)("div",{className:"aspect-square w-full animate-pulse bg-[rgb(var(--vm-border-light))] dark:bg-[rgba(255,255,255,0.04)]"}),(0,s.jsxs)("div",{className:"space-y-2 p-4",children:[(0,s.jsx)("div",{className:"h-4 w-2/3 animate-pulse rounded bg-[rgb(var(--vm-border-light))] dark:bg-[rgba(255,255,255,0.04)]"}),(0,s.jsx)("div",{className:"h-3 w-1/2 animate-pulse rounded bg-[rgb(var(--vm-border-light))] dark:bg-[rgba(255,255,255,0.04)]"}),(0,s.jsx)("div",{className:"h-5 w-3/4 animate-pulse rounded bg-[rgb(var(--vm-border-light))] dark:bg-[rgba(255,255,255,0.04)]"})]})]},"skeleton-".concat(t));
1let r=e.name.split(" ").filter(Boolean).map(e=>e[0]).join("").toUpperCase().slice(0,2),i=!!e.profileImageUrl&&!e.profileImageUrl.startsWith("/assets/demo/")&&!ed.has(e.id),n=[e.city,e.country].filter(Boolean).join(", ")||null,o=null!=e.yearsOfExperience?c(1===e.yearsOfExperience?"home.landing.trustedProfessionals.experienceOne":"home.landing.trustedProfessionals.experienceOther",{count:e.yearsOfExperience}):null,d=e.languages.length>0?e.languages.slice(0,2).join(", "):null,v=null!=e.averageRating&&e.totalReviews>0,f=K===e.therapistUserId,j=ee===e.therapistUserId;return(0,s.jsxs)(l.P.article,{initial:!w&&{opacity:0,y:20},whileInView:w?void 0:{opacity:1,y:0},whileHover:w?void 0:{y:-3,transition:{duration:.2,ease:"easeOut"}},viewport:{once:!0,amount:.15},transition:{duration:.5,delay:.08*t,ease:[.16,1,.3,1]},className:"group flex flex-col overflow-hidden rounded-[18px] border border-[rgb(var(--vm-border-default))] bg-[rgb(var(--vm-bg-content))] shadow-[0_4px_20px_rgba(0,0,0,0.06),0_1px_4px_rgba(0,0,0,0.04)] transition-shadow duration-200 hover:shadow-[0_14px_34px_rgba(0,0,0,0.12)] dark:border-white/[0.08] dark:shadow-[0_2px_12px_rgba(0,0,0,0.3)]",children:[(0,s.jsxs)("div",{className:"relative aspect-square w-full overflow-hidden bg-gradient-to-br from-[rgb(var(--color-primary-light))] to-[rgb(var(--color-primary))]",children:[i?(0,s.jsx)(y.default,{src:e.profileImageUrl,alt:e.name,fill:!0,sizes:"(max-width: 479px) calc(100vw - 32px), (max-width: 1023px) calc(50vw - 32px), 286px",className:"object-cover object-top transition-transform duration-300 group-hover:scale-[1.03]",onError:()=>ex(t=>{let a=new Set(t);return a.add(e.id),a})}):(0,s.jsx)("div",{className:"flex h-full w-full items-center justify-center text-[44px] font-semibold text-white",children:r||"T"}),e.verified&&(0,s.jsxs)("span",{className:"absolute start-3 top-3 inline-flex items-center gap-1 rounded-md bg-white/90 px-2 py-0.5 text-[10.5px] font-semibold text-[rgb(var(--color-primary))] shadow-sm backdrop-blur-sm dark:bg-black/55 dark:text-[#93c5fd]",children:[(0,s.jsx)(p.A,{className:"h-3 w-3",strokeWidth:2.5}),a("home.landing.trustedProfessionals.verified")]}),e.acceptingNewClients&&(0,s.jsxs)("span",{className:"absolute start-3 bottom-3 inline-flex items-center gap-1.5 rounded-full bg-emerald-500 px-2.5 py-1 text-[11px] font-semibold text-white shadow-sm",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-white"}),a("home.landing.trustedProfessionals.available")]})]}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-2.5 p-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-[16px] leading-[20px] font-semibold text-[rgb(var(--vm-text-primary))]",children:e.name}),e.title&&(0,s.jsx)("p",{className:"mt-1 line-clamp-1 text-[12.5px] leading-[16px] text-[rgb(var(--vm-text-secondary))]",children:e.title})]}),v&&(0,s.jsxs)("div",{className:"flex items-center gap-1 text-[12px]",children:[(0,s.jsx)(m.A,{className:"h-3.5 w-3.5 fill-amber-400 text-amber-400"}),(0,s.jsx)("span",{className:"font-semibold text-[rgb(var(--vm-text-primary))]",children:e.averageRating.toFixed(1)}),(0,s.jsx)("span",{className:"text-[rgb(var(--vm-text-dim))]",children:c(1===e.totalReviews?"home.landing.trustedProfessionals.reviewsOne":"home.landing.trustedProfessionals.reviewsOther",{count:e.totalReviews})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 text-[12px] text-[rgb(var(--vm-text-dim))]",children:[o&&(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(h.A,{className:"h-3.5 w-3.5 shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:o})]}),n&&(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(g.A,{className:"h-3.5 w-3.5 shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:n})]}),d&&(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(u.A,{className:"h-3.5 w-3.5 shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:d})]})]}),e.specialties.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.specialties.slice(0,3).map(e=>(0,s.jsx)("span",{className:"rounded-md bg-[rgb(var(--vm-border-light))]/70 px-2 py-0.5 text-[11px] font-medium text-[rgb(var(--vm-text-secondary))] dark:bg-white/[0.06]",children:e},e))}),(0,s.jsx)("button",{type:"button",onClick:()=>{e.therapistUserId&&ep(e.therapistUserId)},disabled:null!==K||null!==ee||!e.therapistUserId||!e.acceptingNewClients,className:"mt-auto inline-flex items-center gap-1.5 pt-2 text-[13px] font-semibold text-[rgb(var(--color-primary))] transition-all duration-200 hover:gap-2.5 disabled:cursor-not-allowed disabled:opacity-60 dark:text-[#93c5fd]",children:e.acceptingNewClients?j?(0,s.jsx)(s.Fragment,{children:a("home.landing.trustedProfessionals.selected")}):f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.A,{className:"h-4 w-4 animate-spin"}),a("home.landing.trustedProfessionals.selecting")]}):(0,s.jsxs)(s.Fragment,{children:[a("home.landing.trustedProfessionals.select"),(0,s.jsx)(x.A,{className:"h-4 w-4"})]}):(0,s.jsx)(s.Fragment,{children:a("home.landing.trustedProfessionals.unavailable")})})]})]},e.id)}),!z&&0===F.length&&(0,s.jsxs)("div",{className:"col-span-full rounded-[18px] border border-[rgb(var(--vm-border-default))] bg-[rgb(var(--vm-bg-content))] px-6 py-10 text-center",children:[(0,s.jsx)("p",{className:"text-sm text-[rgb(var(--vm-text-secondary))]",children:a("home.landing.trustedProfessionals.empty")}),(0,s.jsx)(N(),{href:"/therapist-finder",className:"mt-4 inline-flex min-h-11 items-center justify-center rounded-lg bg-[rgb(var(--color-primary))] px-5 text-sm font-semibold text-white",children:a("home.landing.trustedProfessionals.viewAll")})]})]}),(0,s.jsx)("div",{className:"mt-10 grid grid-cols-2 gap-x-4 gap-y-6 rounded-[20px] border border-[rgb(var(--vm-border-default))] bg-[rgba(var(--color-primary),0.06)] px-6 py-7 shadow-[0_4px_20px_rgba(0,0,0,0.05)] sm:px-8 lg:mt-12 lg:grid-cols-4 dark:border-white/[0.08] dark:bg-white/[0.03] dark:shadow-none",children:[{Icon:p.A,label:a("home.landing.trustedProfessionals.trust.credentials")},{Icon:u.A,label:a("home.landing.trustedProfessionals.trust.aligned")},{Icon:v.A,label:a("home.landing.trustedProfessionals.trust.confidential")},{Icon:f.A,label:a("home.landing.trustedProfessionals.trust.guided")}].map(e=>{let{Icon:t,label:a}=e;return(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-[rgba(var(--color-primary),0.1)] text-[rgb(var(--color-primary))] dark:text-[#93c5fd]",children:(0,s.jsx)(t,{className:"h-5 w-5",strokeWidth:2})}),(0,s.jsx)("span",{className:"text-[13px] leading-tight font-semibold whitespace-pre-line text-[rgb(var(--vm-text-secondary))]",children:a})]},a)})})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(l.P.section,{className:"w-full bg-[rgb(var(--vm-services-bg))] py-[72px] sm:py-[88px] lg:py-[100px]",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-[1240px] px-5 sm:px-8 lg:px-0",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--vm-services-accent))]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgba(var(--vm-services-accent),0.5)]"}),(0,s.jsx)("span",{className:"ms-1 text-[14px] font-semibold tracking-[1.5px] text-[rgb(var(--vm-services-accent))] uppercase",children:a("home.landing.services.label")})]}),(0,s.jsxs)(r.H2,{className:"mx-auto mt-5 max-w-[601px] text-center text-[32px] leading-[41.6px] font-semibold text-[rgb(var(--vm-text-primary))]",children:[a("home.landing.services.heading.prefix")," ",(0,s.jsx)("span",{className:"text-[rgb(var(--vm-services-accent))]",children:a("home.landing.services.heading.highlight")})," ",a("home.landing.services.heading.suffix")]})]}),(0,s.jsx)("div",{className:"mt-14 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:mt-[77px] lg:grid-cols-3 lg:gap-[56px]",children:["individuals","couples","families"].map((e,t)=>{let r={title:a("home.landing.services.cards.".concat(e,".title")),description:a("home.landing.services.cards.".concat(e,".description")),image:["/assets/home/services/individual-therapy.webp","/assets/home/services/halal-couple.webp","/assets/home/services/family-therapy.webp"][t],alt:a("home.landing.services.cards.".concat(e,".imageAlt"))};return(0,s.jsxs)(l.P.article,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.55,delay:.08*t},className:"rounded-[16px] bg-[rgb(var(--vm-services-card-bg))] p-[25px] shadow-[0_4px_24px_rgba(0,0,0,0.07),0_1px_6px_rgba(0,0,0,0.04)] dark:shadow-[0_4px_32px_rgba(0,0,0,0.45),0_1px_8px_rgba(0,0,0,0.25)]",children:[(0,s.jsxs)("div",{className:"relative h-[220px] overflow-hidden rounded-[14px] sm:h-[240px] lg:h-[256px]",children:[(0,s.jsx)(y.default,{src:r.image,alt:r.alt,fill:!0,sizes:"(max-width: 639px) 100vw, (max-width: 1023px) 50vw, 315px",className:"object-cover"}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-[rgba(0,0,0,0.28)] to-transparent"})]}),(0,s.jsx)("h3",{className:"mt-6 text-[22px] leading-[33px] font-semibold text-[rgb(var(--vm-text-primary))]",children:r.title}),(0,s.jsx)("p",{className:"mt-3 text-[14px] leading-[22.75px] text-[rgb(var(--vm-services-muted))]",children:r.description})]},r.title)})})]})}),(0,s.jsx)(l.P.section,{className:"w-full overflow-hidden bg-[rgb(var(--vm-community-bg))] py-12 sm:py-16 lg:py-28",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},children:(0,s.jsx)("div",{className:"mx-auto w-full max-w-[1240px] px-4 sm:px-6 lg:px-10",children:(0,s.jsxs)("div",{className:"grid w-full grid-cols-1 items-center gap-10 lg:grid-cols-[420px_1fr] lg:gap-12",children:[(0,s.jsxs)(l.P.div,{className:"space-y-7",initial:{opacity:0,x:j?30:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 ".concat(j?"flex-row-reverse":""),children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--vm-community-accent))]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--vm-community-accent)/0.5)]"}),(0,s.jsx)("span",{className:"text-[14px] font-semibold tracking-[1.32px] text-[rgb(var(--vm-community-accent-2))] uppercase ".concat(j?"me-1":"ms-1"),children:a("home.landing.community.label")})]}),(0,s.jsx)("h2",{className:"max-w-[340px] text-[46px] leading-[1] font-semibold tracking-[-1.1px] text-[rgb(var(--vm-community-title))] sm:text-[54px]",children:a("home.landing.community.title")}),(0,s.jsx)("p",{className:"max-w-[424px] text-[16px] leading-[28px] tracking-[-0.08px] text-[rgb(var(--vm-community-body))]",children:a("home.landing.community.description")}),(0,s.jsx)(N(),{href:"/community",className:"inline-flex h-[47px] items-center rounded-[10px] border border-[rgb(var(--vm-community-accent)/0.5)] px-10 text-[14px] font-semibold text-[rgb(var(--vm-community-button-text))] transition-colors duration-200 hover:bg-[rgb(var(--vm-community-accent)/0.12)]",children:a("home.landing.community.cta")})]}),(0,s.jsx)(l.P.div,{className:"relative flex w-full ".concat(j?"justify-start lg:-ml-px":"justify-end lg:-mr-px"),initial:{opacity:0,x:j?-30:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.3},children:(0,s.jsxs)("div",{className:"relative aspect-[858/649] w-full max-w-[782px] ".concat(j?"md:-ml-6 lg:-ml-[38px]":"md:-mr-6 lg:-mr-[38px]"),children:[(0,s.jsx)(y.default,{src:"/assets/home/Community-Light.svg",alt:"Community preview",fill:!0,className:"object-contain dark:hidden"}),(0,s.jsx)(y.default,{src:"/assets/home/browser-preview.svg",alt:"Community preview",fill:!0,className:"hidden object-contain dark:block"})]})})]})})}),(0,s.jsx)(l.P.section,{className:"w-full overflow-hidden bg-[rgb(var(--vm-compass-bg))] py-[72px] sm:py-[84px] lg:py-[100px]",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},children:(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-[1240px] grid-cols-1 items-center gap-12 px-4 sm:px-6 lg:grid-cols-[minmax(420px,500px)_minmax(420px,493px)] lg:gap-[92px] lg:px-0",children:[(0,s.jsx)(l.P.div,{initial:{opacity:0,x:-24},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.55},className:"mx-auto w-full max-w-[500px]",children:(0,s.jsx)("a",{href:el,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(a("home.landing.compass.heading")," (opens vierocompass.com in a new tab)"),className:"block",children:(0,s.jsx)(Q,{className:"w-full"})})}),(0,s.jsxs)(l.P.div,{initial:{opacity:0,x:24},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.55,delay:.05},className:"mx-auto w-full max-w-[493px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 ".concat(j?"flex-row-reverse":""),children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--vm-compass-accent))]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--vm-compass-accent)/0.5)]"}),(0,s.jsx)("span",{className:"text-[14px] font-semibold tracking-[1.32px] text-[rgb(var(--vm-compass-accent-2))] uppercase ".concat(j?"me-1":"ms-1"),children:a("home.landing.compass.label")})]}),(0,s.jsx)("h2",{className:"mt-8 text-[46px] leading-[1] font-semibold tracking-[-1.1px] text-[rgb(var(--vm-compass-title))] sm:text-[54px]",children:a("home.landing.compass.heading")}),(0,s.jsx)("p",{className:"mt-8 max-w-[428px] text-[16px] leading-[28px] tracking-[-0.08px] text-[rgb(var(--vm-compass-body))]",children:a("home.landing.compass.body")}),(0,s.jsx)("ul",{className:"mt-10 space-y-2.5",children:null==(e=o("home.landing.compass.bullets"))?void 0:e.map(e=>(0,s.jsxs)("li",{className:"flex items-center gap-2.5 text-[13px] leading-5 tracking-[-0.26px] text-[rgb(var(--vm-compass-muted))] ".concat(j?"flex-row-reverse":""),children:[(0,s.jsx)("span",{className:"h-[4px] w-[4px] shrink-0 rounded-full bg-[rgb(var(--vm-compass-accent)/0.5)]"}),(0,s.jsx)("span",{children:e})]},e))}),(0,s.jsxs)("a",{href:el,target:"_blank",rel:"noopener noreferrer",className:"mt-10 inline-flex h-[47px] items-center justify-center gap-2 rounded-[10px] border border-[rgb(var(--vm-compass-accent)/0.5)] px-7 text-[14px] font-semibold text-[rgb(var(--vm-compass-button-text))] transition-colors duration-200 hover:bg-[rgb(var(--vm-compass-accent)/0.12)] ".concat(j?"flex-row-reverse":""),children:[a("home.landing.compass.cta"),(0,s.jsx)(x.A,{className:"h-4 w-4"})]})]})]})}),(0,s.jsx)(ea,{})]}),(0,s.jsx)(H,{}),(0,s.jsx)(l.P.section,{className:"relative w-full overflow-hidden bg-gray-50 pt-[72px] pb-[100px] sm:pt-[88px] sm:pb-[88px] lg:py-[100px] dark:bg-[#060d1a]",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.7},children:(0,s.jsxs)("div",{className:"relative mx-auto w-full max-w-[1240px] px-5 sm:px-8",children:[(0,s.jsxs)("div",{className:"mb-12 text-center",children:[(0,s.jsxs)("div",{className:"mb-5 flex items-center justify-center gap-1.5",children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-blue-500"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-blue-500/50"}),(0,s.jsx)("span",{className:"ms-1 text-[13px] font-semibold tracking-[2px] text-blue-600 uppercase dark:text-blue-400",children:"Latest Event"})]}),(0,s.jsxs)("h2",{className:"mx-auto mb-4 max-w-3xl text-[2rem] leading-[1.1] font-bold tracking-[-0.02em] text-gray-900 sm:text-[2.6rem] lg:text-[3rem] dark:text-white",children:["Pakistan Mental Health"," ",(0,s.jsx)("span",{className:"bg-gradient-to-r from-blue-500 to-blue-700 bg-clip-text text-transparent dark:from-blue-400 dark:to-blue-600",children:"Leadership Roundtable"})]}),(0,s.jsx)("p",{className:"mx-auto max-w-xl text-[15px] leading-relaxed text-gray-500 dark:text-white/50",children:"A historic convening of Pakistan's top clinicians, policymakers, technologists, and educators â now completed. Watch the coverage below."})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 items-start gap-8 lg:grid-cols-[1fr_380px]",children:[(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border border-gray-200 shadow-xl dark:border-white/8 dark:shadow-none",style:{aspectRatio:"16/9",background:"#0D1421"},children:[(0,s.jsxs)("div",{className:"absolute inset-0",children:[(0,s.jsx)(y.default,{src:"/assets/attendees/roundtable.webp",alt:"VieroMind Pakistan Mental Health Roundtable",fill:!0,sizes:"(max-width: 1023px) 100vw, 60vw",className:"object-cover"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10"})]}),(0,s.jsx)("a",{href:"https://www.youtube.com/watch?v=7ZjqgN0ktmc",target:"_blank",rel:"noopener noreferrer","aria-label":"Watch VieroMind Pakistan Mental Health Roundtable coverage on YouTube",className:"group absolute inset-0 z-10 flex items-center justify-center",children:(0,s.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full transition-all duration-300 group-hover:scale-110",style:{background:"rgb(var(--color-primary))",boxShadow:"0 6px 28px rgba(var(--color-primary),0.5)"},children:(0,s.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"white",children:(0,s.jsx)("path",{d:"M8 5v14l11-7z"})})})}),(0,s.jsx)("div",{className:"absolute bottom-4 left-4 z-10 flex items-center gap-2",children:(0,s.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-semibold text-white",style:{background:"rgba(239,68,68,0.88)",backdropFilter:"blur(8px)"},children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-white"}),"Hum News TV Coverage"]})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-5 rounded-2xl border border-gray-200 bg-white p-5 shadow-sm sm:gap-6 sm:p-7 dark:border-white/[0.07] dark:bg-white/[0.03] dark:shadow-none",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full border border-green-200 bg-green-50 px-3 py-1 text-[11px] font-semibold text-green-700 dark:border-green-400/30 dark:bg-green-400/10 dark:text-green-300",children:[(0,s.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"Completed"]}),(0,s.jsx)("span",{className:"text-[11px] text-gray-400 dark:text-white/30",children:"April 19, 2026"})]}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:gap-3",children:[{value:"30+",label:"Delegates"},{value:"10",label:"Pillars"},{value:"1 Day",label:"Convening"}].map(e=>(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl border border-blue-100 bg-blue-50 p-2 text-center sm:p-3 dark:border-blue-500/[0.15] dark:bg-blue-500/[0.08]",children:[(0,s.jsx)("p",{className:"mb-1 truncate text-[16px] leading-none font-bold text-gray-900 sm:text-[20px] dark:text-white",children:e.value}),(0,s.jsx)("p",{className:"truncate text-[9px] tracking-[1px] text-gray-400 uppercase sm:text-[10px] dark:text-white/40",children:e.label})]},e.label))}),(0,s.jsxs)("div",{className:"space-y-3 text-[12px] text-gray-500 sm:text-[13px] dark:text-white/50",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,s.jsxs)("svg",{className:"mt-0.5 shrink-0 text-gray-400 dark:text-white/40",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,s.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),"Arfa Software Technology Park, Lahore"]}),(0,s.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,s.jsxs)("svg",{className:"mt-0.5 shrink-0 text-gray-400 dark:text-white/40",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),(0,s.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,s.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,s.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),"Sunday, April 19, 2026 \xb7 11:00am â 1:00pm"]}),(0,s.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,s.jsxs)("svg",{className:"mt-0.5 shrink-0 text-gray-400 dark:text-white/40",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,s.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,s.jsx)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,s.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),"30+ clinicians, policymakers, technologists & educators"]})]}),(0,s.jsxs)(N(),{href:"/events/roundtable",className:"inline-flex h-[47px] w-full items-center justify-center gap-2 rounded-[10px] border border-[rgba(var(--color-primary),0.4)] px-6 text-[14px] font-semibold text-[rgb(var(--color-primary))] transition-colors duration-200 hover:bg-[rgba(var(--color-primary),0.07)] dark:text-[#93c5fd]",children:["View Full Recap",(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]})]})]})}),(0,s.jsx)("div",{className:"-mb-px w-full bg-[rgb(var(--vm-ecosystem-bg))]",children:(0,s.jsx)("svg",{className:"block w-full text-gray-50 dark:text-[#060d1a]",viewBox:"0 0 1440 76",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M0,0 L1440,0 L1440,20 C960,76 480,76 0,20 Z",fill:"currentColor"})})}),(0,s.jsx)(l.P.section,{className:"w-full overflow-hidden bg-[rgb(var(--vm-ecosystem-bg))] py-[72px] sm:py-[88px] lg:py-[100px]",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-[1240px] px-5 sm:px-8 lg:px-0",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)(l.P.div,{className:"flex items-center justify-center gap-1 ".concat(j?"flex-row-reverse":""),initial:{opacity:0,y:14},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,ease:[.22,1,.36,1]},children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--vm-ecosystem-accent))]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgb(var(--vm-ecosystem-accent)/0.5)]"}),(0,s.jsx)("span",{className:"text-[14px] font-semibold tracking-[1.5px] text-[rgb(var(--vm-ecosystem-accent-2))] uppercase ".concat(j?"me-1":"ms-1"),children:a("home.landing.ecosystem.label")})]}),(0,s.jsx)(l.P.h2,{initial:{opacity:0,y:18},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1,ease:[.22,1,.36,1]},className:"mx-auto mt-5 max-w-[640px] text-center text-[36px] leading-[1.15] font-semibold tracking-[-1.1px] text-[rgb(var(--vm-ecosystem-title))] sm:text-[44px]",children:a("home.landing.ecosystem.heading")}),(0,s.jsx)(l.P.p,{initial:{opacity:0,y:14},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.18,ease:[.22,1,.36,1]},className:"mx-auto mt-5 max-w-[620px] text-center text-[16px] leading-[28px] tracking-[-0.08px] text-[rgb(var(--vm-ecosystem-body))]",children:a("home.landing.ecosystem.description")})]}),(0,s.jsx)("div",{className:"mt-14 grid grid-cols-1 gap-5 sm:grid-cols-2 lg:mt-16 lg:grid-cols-3 lg:gap-6",children:ec.map((e,t)=>{var a,r;let i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-[18px] ring-1 ".concat(e.iconClass),children:"image"===e.icon.type?(0,s.jsx)(y.default,{src:e.icon.src,alt:e.icon.alt,width:42,he
1ight:42,className:"h-10 w-10 object-contain ".concat(null!=(r=e.icon.logoClass)?r:"")}):(0,s.jsx)(e.icon.Icon,{className:"h-6 w-6",strokeWidth:2.2})}),(0,s.jsxs)("div",{className:"mt-6 flex flex-1 flex-col",children:[(0,s.jsx)("h3",{className:"text-[18px] leading-[24px] font-semibold tracking-[-0.2px] text-[rgb(var(--vm-ecosystem-title))]",children:e.name}),(0,s.jsx)("p",{className:"mt-3 text-[14.5px] leading-[23px] text-[rgb(var(--vm-ecosystem-muted))]",children:e.description})]}),e.href&&(0,s.jsxs)("span",{className:"mt-5 inline-flex items-center gap-1.5 text-[13px] font-semibold text-[rgb(var(--vm-ecosystem-button-text))] transition-all group-hover:gap-2.5 ".concat(j?"flex-row-reverse":""),children:["Learn more",(0,s.jsx)(x.A,{className:"h-3.5 w-3.5"})]})]}),n="group flex min-h-[188px] flex-col rounded-[24px] border p-6 text-left no-underline transition-[border-color,box-shadow] duration-300 ease-out ".concat(e.cardClass),o=w?void 0:{y:-6};return(null==(a=e.href)?void 0:a.startsWith("http"))?(0,s.jsx)(l.P.a,{href:e.href,target:"_blank",rel:"noopener noreferrer",initial:!w&&{opacity:0,y:28,scale:.97},whileInView:w?void 0:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-60px"},transition:{duration:.55,delay:.07*t,ease:[.22,1,.36,1]},whileHover:o,className:n,style:{willChange:"transform"},dir:j?"rtl":"ltr","aria-label":"".concat(e.name," - opens in a new tab"),children:i},e.name):e.href?(0,s.jsx)(l.P.div,{initial:!w&&{opacity:0,y:28,scale:.97},whileInView:w?void 0:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-60px"},transition:{duration:.55,delay:.07*t,ease:[.22,1,.36,1]},whileHover:o,style:{willChange:"transform"},dir:j?"rtl":"ltr",children:(0,s.jsx)(N(),{href:e.href,className:n,children:i})},e.name):(0,s.jsx)(l.P.article,{initial:!w&&{opacity:0,y:28,scale:.97},whileInView:w?void 0:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-60px"},transition:{duration:.55,delay:.07*t,ease:[.22,1,.36,1]},whileHover:o,className:n,style:{willChange:"transform"},dir:j?"rtl":"ltr",children:i},e.name)})}),(0,s.jsx)(l.P.div,{className:"mt-12 flex justify-center",initial:{opacity:0,y:14},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.25,ease:[.22,1,.36,1]},children:(0,s.jsxs)(N(),{href:"/about",className:"inline-flex h-[50px] items-center justify-center gap-2 rounded-[12px] border border-[rgb(var(--vm-ecosystem-accent)/0.4)] px-8 text-[14px] font-semibold text-[rgb(var(--vm-ecosystem-button-text))] transition-colors hover:bg-[rgb(var(--vm-ecosystem-accent)/0.08)] ".concat(j?"flex-row-reverse":""),children:[a("home.landing.ecosystem.cta"),(0,s.jsx)(x.A,{className:"h-4 w-4"})]})})]})}),(0,s.jsx)("div",{className:"-mb-px w-full bg-[#ffffff] dark:bg-[#0b1527]",children:(0,s.jsx)("svg",{className:"block w-full text-[rgb(var(--vm-ecosystem-bg))]",viewBox:"0 0 1440 76",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M0,0 L1440,0 L1440,20 C960,76 480,76 0,20 Z",fill:"currentColor"})})}),(0,s.jsxs)(l.P.section,{className:"w-full overflow-hidden bg-[#ffffff] pt-16 pb-28 lg:pt-20 lg:pb-32 dark:bg-[#0b1527]",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},children:[(0,s.jsxs)("div",{className:"mx-auto flex max-w-[1200px] flex-col items-center px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)(l.P.div,{className:"flex items-center gap-[4px] ".concat(j?"flex-row-reverse":""),initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45},children:[(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[#3b82f6]"}),(0,s.jsx)("span",{className:"h-[6px] w-[6px] rounded-full bg-[rgba(59,130,246,0.5)]"}),(0,s.jsx)("span",{className:"text-[14px] font-semibold tracking-[2.5px] text-[#3b82f6] uppercase ".concat(j?"me-[13px]":"ms-[13px]"),children:a("home.landing.partners.label")})]}),(0,s.jsx)(l.P.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.08},className:"mt-9 text-center text-[38px] leading-[54px] font-semibold tracking-[-1.5px] text-gray-900 sm:text-[44px] dark:text-white",style:{textShadow:"0 2px 20px rgba(0,0,0,0.08)"},children:a("home.partners.title")}),(0,s.jsx)(l.P.p,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45,delay:.14},className:"mt-3 max-w-[500px] text-center text-[14px] leading-[22px] tracking-[-0.14px] text-gray-500 dark:text-[rgba(255,255,255,0.4)]",children:a("home.landing.partners.subtitle")}),(0,s.jsx)(l.P.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.45,delay:.2},children:(0,s.jsx)(N(),{href:"/contact",className:"mt-8 inline-flex h-[50px] items-center justify-center rounded-[12px] border border-[rgba(59,130,246,0.4)] px-8 text-[14px] font-semibold text-[#3b82f6] transition-colors hover:bg-[rgba(59,130,246,0.07)] dark:text-[#93c5fd]",children:a("home.landing.partners.cta")})})]}),(0,s.jsx)(l.P.div,{initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"partner-marquee partner-marquee-mask mt-[88px]","aria-label":"VieroMind partners",children:(0,s.jsx)("div",{className:"partner-marquee-track flex items-center",children:en.map((e,t)=>(0,s.jsx)("div",{className:"mx-10 flex h-[80px] w-[160px] shrink-0 items-center justify-center opacity-90 dark:opacity-70","aria-hidden":t>=ei.length,children:(0,s.jsx)(y.default,{src:e.src,alt:e.alt,width:160,height:80,className:"h-auto max-h-[56px] w-auto max-w-[160px] object-contain"})},"".concat(e.src,"-").concat(t)))})})]}),(0,s.jsx)(Z,{}),(0,s.jsx)(l.P.section,{className:"w-full bg-[rgb(var(--color-background))] py-5 sm:py-6 dark:bg-[rgb(var(--vm-bg-deep))]",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},children:(0,s.jsx)("div",{className:"mx-auto flex w-full max-w-6xl flex-wrap items-center justify-center gap-x-8 gap-y-3 px-4",children:["Privacy-First Architecture","Healthcare-Grade Security"].map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,s.jsx)(y.default,{src:"/assets/home/mynaui_check-waves.svg",alt:"",width:20,height:20,className:"shrink-0"}),(0,s.jsx)("span",{className:"text-[13px] font-medium text-gray-500 dark:text-[rgba(255,255,255,0.35)]",children:e})]},e))})}),(0,s.jsx)(T.default,{children:(0,s.jsx)(U.default,{})})]}),(0,s.jsx)(E,{}),B&&(0,s.jsx)(er,{onCrisisDetected:e=>R(e)}),_&&(0,s.jsx)(es,{crisis:_,onClose:()=>R(null)})]})}},58261:(e,t,a)=>{a.d(t,{GY:()=>i,KB:()=>n,iT:()=>r});var s=a(59072);function r(e){return!("string"!=typeof e||0===e.length||!e.startsWith("/")||"/"===e[1]||"\\"===e[1]||/^[/\\]*[a-zA-Z][a-zA-Z0-9+.\-]*:/.test(e))}function i(e){if(!e)return;let t=e.toUpperCase();switch(t){case"PENDING":case"CLIENT":case"THERAPIST":case"CLIENT_AND_THERAPIST":case"ADMIN":case"GUIDE":case"STUDENT":case"VOLUNTEER":case"HR_ADMIN":return t;default:return}}function n(e){let t=i(null==e?void 0:e.role);if(!t||"PENDING"===t)return"/choose-role";if("ADMIN"===t)return"/admin";if("HR_ADMIN"===t)return"/compass/gateway";if("VOLUNTEER"===t)return(null==e?void 0:e.volunteerOnboardingCompleted)?(null==e?void 0:e.isApproved)?"/volunteer/dashboard":"/volunteer/pending-approval":"/onboarding/volunteer";if("THERAPIST"===t)return(null==e?void 0:e.therapistOnboardingCompleted)?"CONDITIONAL_APPROVED"===e.therapistApprovalStatus?"/therapist/status":(null==e?void 0:e.isApproved)?"/therapist/dashboard":"/onboarding/therapist/status":"/onboarding/therapist-support";if("CLIENT"===t)return(null==e?void 0:e.clientOnboardingCompleted)?"/client/dashboard":"/onboarding/client";if("GUIDE"===t)return(null==e?void 0:e.guideOnboardingCompleted)?(null==e?void 0:e.guideApprovalStatus)!==s.UserApprovalStatus.APPROVED&&(null==e?void 0:e.guideApprovalStatus)!=="APPROVED"?"/guide/pending-approval":"/guide/dashboard":"/onboarding/guide";if("STUDENT"===t){var a;let t=(a=null==e?void 0:e.studentApprovalStatus)&&a!==s.UserApprovalStatus.PENDING&&"PENDING"!==a?a===s.UserApprovalStatus.APPROVED||"APPROVED"===a?s.UserApprovalStatus.APPROVED:a===s.UserApprovalStatus.REJECTED||"REJECTED"===a?s.UserApprovalStatus.REJECTED:s.UserApprovalStatus.PENDING:s.UserApprovalStatus.PENDING;return(null==e?void 0:e.studentOnboardingCompleted)?t===s.UserApprovalStatus.REJECTED?"/access-denied":t!==s.UserApprovalStatus.APPROVED?"/pending-approval":"/student/dashboard":"/onboarding/student"}let r=!!(null==e?void 0:e.therapistOnboardingCompleted),n=!!(null==e?void 0:e.clientOnboardingCompleted);return r?(null==e?void 0:e.therapistApprovalStatus)==="CONDITIONAL_APPROVED"?"/therapist/status":(null==e?void 0:e.isApproved)?n?"/therapist/dashboard":"/onboarding/client":"/onboarding/therapist/status":"/onboarding/therapist-support"}},93678:(e,t,a)=>{a.d(t,{L:()=>i});var s=a(25959),r=a(89863);let i=(0,s.v)()((0,r.Zr)((e,t)=>({lastQueryResponses:{},lastQuery:"",expertChats:{},activeExpertId:null,homeChatSession:null,saveQueryResponses:(a,s)=>{e({lastQuery:a,lastQueryResponses:s});let r={cognitive:{name:"Mira (ChatGPT)",model:"openai"},mindfulness:{name:"Quinn (Claude)",model:"claude"},creative:{name:"Leo (Grok)",model:"grok"},holistic:{name:"Aria (Gemini)",model:"gemini"}};
1Object.entries(s).forEach(e=>{let[a,s]=e,i=r[a];if(i&&s.success){var n;t().initializeExpertChat(a,i.name,i.model);let e={id:"".concat(a,"-").concat(Date.now()),role:"assistant",content:null!=(n=s.response)?n:"Hello! I'm here to help.",timestamp:Date.now(),model:s.model};t().addMessageToExpert(a,e)}})},initializeExpertChat:(t,a,s)=>{e(e=>{var r,i,n;return(null!=(n=null==(i=e.expertChats[t])||null==(r=i.messages)?void 0:r.length)?n:0)>0?e:{expertChats:{...e.expertChats,[t]:{expertId:t,expertName:a,model:s,messages:[],lastQuery:e.lastQuery,lastResponse:e.lastQueryResponses[t],isActive:!1}}}})},addMessageToExpert:(t,a)=>{e(e=>{var s,r,i,n,l;let o=e.expertChats[t];return{expertChats:{...e.expertChats,[t]:{expertId:null!=(s=null==o?void 0:o.expertId)?s:t,expertName:null!=(r=null==o?void 0:o.expertName)?r:"",model:null!=(i=null==o?void 0:o.model)?i:"",isActive:null!=(n=null==o?void 0:o.isActive)&&n,messages:[...null!=(l=null==o?void 0:o.messages)?l:[],a],lastQuery:null==o?void 0:o.lastQuery,lastResponse:null==o?void 0:o.lastResponse}}}})},setActiveExpert:t=>{e(e=>({activeExpertId:t,expertChats:Object.fromEntries(Object.entries(e.expertChats).map(e=>{let[a,s]=e;return[a,{...s,isActive:a===t}]}))}))},getExpertChat:e=>{var a;return null!=(a=t().expertChats[e])?a:null},clearExpertChat:t=>{e(e=>{let a={...e.expertChats};return delete a[t],{expertChats:a,activeExpertId:e.activeExpertId===t?null:e.activeExpertId}})},clearAllChats:()=>{e({expertChats:{},activeExpertId:null,lastQueryResponses:{},lastQuery:""})},getLastQuery:()=>t().lastQuery,initializeHomeChat:()=>{e(e=>e.homeChatSession?e:{homeChatSession:{sessionId:crypto.randomUUID(),messages:[],isOpen:!1,lastActivityAt:Date.now()}})},setHomeChatOpen:(t,a)=>{e(e=>e.homeChatSession?{homeChatSession:{...e.homeChatSession,isOpen:t,lastActivityAt:Date.now(),autoSendText:a}}:{homeChatSession:{sessionId:crypto.randomUUID(),messages:[],isOpen:t,lastActivityAt:Date.now(),autoSendText:a}})},addHomeChatMessage:t=>{e(e=>e.homeChatSession?{homeChatSession:{...e.homeChatSession,messages:[...e.homeChatSession.messages,t],lastActivityAt:Date.now()}}:{homeChatSession:{sessionId:crypto.randomUUID(),messages:[t],isOpen:!0,lastActivityAt:Date.now()}})},clearHomeChat:()=>{e({homeChatSession:null})},refreshHomeChat:()=>{e(e=>e.homeChatSession?{homeChatSession:{...e.homeChatSession,messages:[],lastActivityAt:Date.now()}}:e)},downloadTranscript:()=>{let e=t().homeChatSession;if(!e||0===e.messages.length)return;let a=new Blob([e.messages.map(e=>{let t=new Date(e.timestamp).toLocaleString(),a="user"===e.role?"User":"VieroMind AI";return"[".concat(t,"] ").concat(a,":\n").concat(e.content,"\n")}).join("\n")],{type:"text/plain"}),s=URL.createObjectURL(a),r=document.createElement("a");r.href=s,r.download="vieromind-chat-transcript-".concat(Date.now(),".txt"),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(s)},clearAutoSendText:()=>{e(e=>e.homeChatSession?{homeChatSession:{...e.homeChatSession,autoSendText:void 0}}:e)}}),{name:"vieromind-chat-storage",partialize:e=>({expertChats:e.expertChats,lastQueryResponses:e.lastQueryResponses,lastQuery:e.lastQuery,homeChatSession:e.homeChatSession})}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.