PageSourceSearch

https://vieromind.com/_next/static/chunks/app/layout-0e2876462392f8e4.js

js vieromind.com collected 2026-09-30 15:33:04 UTC 26,059 bytes, 1 lines download raw bytes

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]="61c8dd61-81d0-4885-8027-c1b35060478e",e._sentryDebugIdIdentifier="sentry-dbid-61c8dd61-81d0-4885-8027-c1b35060478e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{3906:(e,t,a)=>{"use strict";a.d(t,{DevToolsDeterrent:()=>s});var r=a(12115),n=a(95704);function s(){return(0,r.useEffect)(()=>{if("true"!==n.env.NEXT_PUBLIC_ENABLE_DEVTOOLS_BLOCK)return;let e=e=>e.preventDefault(),t=e=>{if("F12"===e.key||(e.ctrlKey||e.metaKey)&&e.shiftKey&&["I","J","C"].includes(e.key.toUpperCase()))return void e.preventDefault();(e.ctrlKey||e.metaKey)&&"U"===e.key.toUpperCase()&&e.preventDefault()};document.addEventListener("contextmenu",e),document.addEventListener("keydown",t);let a=!1,r=setInterval(()=>{let e=window.outerWidth-window.innerWidth,t=window.outerHeight-window.innerHeight,r=e>160||t>160;r&&!a?(a=!0,function(){if(document.getElementById(l))return;let e=document.createElement("div");e.id=l,e.style.cssText="position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.85);backdrop-filter:blur(4px)",e.innerHTML='\n    <div style="\n      background:#1a1a2e;\n      border:1px solid #e53e3e;\n      border-radius:12px;\n      padding:2rem 2.5rem;\n      max-width:400px;\n      text-align:center;\n      color:#fff;\n      font-family:sans-serif;\n    ">\n      <div style="font-size:2rem;margin-bottom:0.75rem">⚠️</div>\n      <h2 style="margin:0 0 0.5rem;font-size:1.25rem;color:#fc8181">Developer Tools Detected</h2>\n      <p style="margin:0;font-size:0.875rem;color:#a0aec0;line-height:1.6">\n        This application is protected. Unauthorised inspection or tampering\n        is not permitted.\n      </p>\n    </div>\n  ',document.body.appendChild(e)}()):!r&&a&&(a=!1,i())},1e3);return()=>{document.removeEventListener("contextmenu",e),document.removeEventListener("keydown",t),clearInterval(r),i()}},[]),null}let l="vm-devtools-warning";function i(){var e;null==(e=document.getElementById(l))||e.remove()}},7126:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},12256:(e,t,a)=>{Promise.resolve().then(a.bind(a,96199)),Promise.resolve().then(a.t.bind(a,23109,23)),Promise.resolve().then(a.t.bind(a,42888,23)),Promise.resolve().then(a.t.bind(a,40043,23)),Promise.resolve().then(a.t.bind(a,69125,23)),Promise.resolve().then(a.t.bind(a,52883,23)),Promise.resolve().then(a.t.bind(a,7126,23)),Promise.resolve().then(a.bind(a,18720)),Promise.resolve().then(a.bind(a,63763)),Promise.resolve().then(a.bind(a,91801)),Promise.resolve().then(a.bind(a,80690)),Promise.resolve().then(a.bind(a,65272)),Promise.resolve().then(a.bind(a,95075)),Promise.resolve().then(a.bind(a,93256)),Promise.resolve().then(a.bind(a,71953)),Promise.resolve().then(a.bind(a,35545)),Promise.resolve().then(a.bind(a,76073)),Promise.resolve().then(a.bind(a,80775)),Promise.resolve().then(a.bind(a,45132)),Promise.resolve().then(a.bind(a,18936)),Promise.resolve().then(a.bind(a,90202)),Promise.resolve().then(a.bind(a,84484)),Promise.resolve().then(a.bind(a,50933)),Promise.resolve().then(a.bind(a,53604)),Promise.resolve().then(a.bind(a,16198)),Promise.resolve().then(a.bind(a,75095)),Promise.resolve().then(a.bind(a,3906)),Promise.resolve().then(a.bind(a,36080)),Promise.resolve().then(a.bind(a,60188)),Promise.resolve().then(a.t.bind(a,93836,23)),Promise.resolve().then(a.bind(a,80842))},15870:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},16198:(e,t,a)=>{"use strict";a.d(t,{AnalyticsProvider:()=>f});var r=a(95155),n=a(12115);let s={__loaded:!1,capture:(e,t)=>
1{},identify:(e,t)=>{},reset:()=>{},isFeatureEnabled:e=>!1,getFeatureFlag:e=>void 0,setPersonProperties:e=>{},register:e=>{},unregister:e=>{},startSessionRecording:()=>{},stopSessionRecording:()=>{}};var l=a(68321),i=a(20063),o=a(60188);let d=["en","ur","ar"],c=["/admin","/client","/therapist","/guide","/student","/volunteer","/intake","/auth","/onboarding","/profile","/choose-role","/pending-approval","/access-denied","/unauthorized","/session","/compass","/journal","/journal-old","/survey","/results"];var u=a(95704);function m(){let e=(0,o.d)(),t=(0,i.usePathname)(),a=(u.env.NEXT_PUBLIC_ENABLE_ANALYTICS,function(){let e="G-WL78QLYB8H",t="string"==typeof e?e.trim():"";return t.length>0?t:null}()),s=function(e){if("string"!=typeof e||0===e.length)return!1;let t=function(e){var t;let[,a,...r]=e.split("/"),n=(d.includes(null!=(t=null==a?void 0:a.toLowerCase())?t:"")?"/".concat(r.join("/")):e).replace(/\/+$/,"");return(""===n?"/":n).toLowerCase()}(e);return!c.some(e=>t===e||t.startsWith("".concat(e,"/")))}(t),m=!!(a&&s),[h,f]=(0,n.useState)(!1);(0,n.useEffect)(()=>{!h&&m&&f(!0)},[h,m]);let g=(0,n.useRef)(null);return((0,n.useEffect)(()=>{if(!h||!a||!t)return;if(null===g.current){g.current=t;return}if(g.current===t||(g.current=t,!s))return;let e=window.gtag;"function"==typeof e&&e("event","page_view",{page_path:"".concat(t).concat(window.location.search),page_location:window.location.href,page_title:document.title,send_to:a})},[t,h,s,a]),h&&a)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.default,{async:!0,nonce:e,src:"https://www.googletagmanager.com/gtag/js?id=".concat(encodeURIComponent(a)),strategy:"afterInteractive",onError:e=>{}}),(0,r.jsx)(l.default,{id:"google-analytics",nonce:e,strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n            window.dataLayer = window.dataLayer || [];\n            function gtag(){dataLayer.push(arguments);}\n            gtag('js', new Date());\n            gtag('config', ".concat(JSON.stringify(a),", {\n              page_path: window.location.pathname + window.location.search,\n            });\n          ")}})]}):null}class h extends n.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){var a;console.error("[ScriptErrorBoundary] Third-party script error:",e,t),"posthog"in window&&"function"==typeof(null==(a=window.posthog)?void 0:a.capture)&&window.posthog.capture("third_party_script_error",{error:e.message,stack:e.stack,componentStack:t.componentStack})}render(){if(this.state.hasError){var e;return null!=(e=this.props.fallback)?e:null}return this.props.children}constructor(e){super(e),this.state={hasError:!1}}}function f(){let{isEnabled:e,isFeatureEnabled:t}=function(){let[e,t]=(0,n.useState)(!1);(0,n.useEffect)(()=>{t(!!s&&s.__loaded)},[]);let a=(0,n.useCallback)((t,a)=>{e&&s.capture(t,a)},[e]),r=(0,n.useCallback)((t,a)=>{e&&s.identify(t,a)},[e]),l=(0,n.useCallback)(()=>{e&&s.reset()},[e]),i=(0,n.useCallback)(t=>{var a;return!!e&&null!=(a=s.isFeatureEnabled(t))&&a},[e]),o=(0,n.useCallback)(t=>{if(e)return s.getFeatureFlag(t)},[e]),d=(0,n.useCallback)(()=>({}),[e]),c=(0,n.useCallback)(t=>{e&&s.setPersonProperties(t)},[e]),u=(0,n.useCallback)(t=>{e&&s.register(t)},[e]),m=(0,n.useCallback)(t=>{e&&s.unregister(t)},[e]),h=(0,n.useCallback)(()=>{e&&s.startSessionRecording()},[e]),f=(0,n.useCallback)(()=>{e&&s.stopSessionRecording()},[e]);return{isEnabled:e,trackEvent:a,identify:r,reset:l,isFeatureEnabled:i,getFeatureFlagValue:o,getAllFeatureFlags:d,setPersonProperties:c,registerProperties:u,unregisterProperty:m,startSessionRecording:h,stopSessionRecording:f}}
1(),[a,l]=(0,n.useState)({masterEnabled:!0,googleAnalyticsEnabled:!0,posthogEnabled:!0});return((0,n.useEffect)(()=>{let a=!e||t("analytics_enabled");l({masterEnabled:a,googleAnalyticsEnabled:!e||t("google_analytics_enabled"),posthogEnabled:!e||t("posthog_enabled")})},[e,t]),a.masterEnabled)?(0,r.jsx)(h,{fallback:(0,r.jsx)("div",{className:"hidden","data-analytics-error":"true","aria-hidden":"true",children:"Analytics unavailable"}),children:a.googleAnalyticsEnabled&&(0,r.jsx)(m,{})}):null}},17910:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},18936:(e,t,a)=>{"use strict";a.d(t,{PostAuthNameSync:()=>n});var r=a(75875);function n(){return(0,r.D)(),null}},20063:(e,t,a)=>{"use strict";var r=a(47260);a.o(r,"useParams")&&a.d(t,{useParams:function(){return r.useParams}}),a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},23109:e=>{e.exports={style:{fontFamily:"'Noto Nastaliq Urdu', 'Noto Nastaliq Urdu Fallback'",fontStyle:"normal"}
1,className:"__className_b6105f",variable:"__variable_b6105f"}},33738:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},36080:(e,t,a)=>{"use strict";a.d(t,{PWAProvider:()=>x});var r=a(95155),n=a(12115);let s=(0,n.createContext)(null);function l(e){let{children:t}=e,a=function(){let[e,t]=(0,n.useState)(null),[a,r]=(0,n.useState)(!1),[s,l]=(0,n.useState)(!0);(0,n.useEffect)(()=>{let e;"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(a=>{t(a),a.waiting&&r(!0),a.addEventListener("updatefound",()=>{let e=a.installing;e&&e.addEventListener("statechange",()=>{"installed"===e.state&&navigator.serviceWorker.controller&&r(!0)})}),e=window.setInterval(()=>{a.update()},18e5)}).catch(e=>{console.error("[PWA] Service worker registration failed:",e)});let a=()=>l(!0),n=()=>l(!1);return l(navigator.onLine),window.addEventListener("online",a),window.addEventListener("offline",n),()=>{void 0!==e&&window.clearInterval(e),window.removeEventListener("online",a),window.removeEventListener("offline",n)}},[]);let i=(0,n.useCallback)(()=>{(null==e?void 0:e.waiting)&&(e.waiting.postMessage({type:"SKIP_WAITING"}),window.location.reload())},[e]),o=(0,n.useCallback)(async()=>{e&&(await e.unregister(),t(null))},[e]);return{registration:e,isUpdateAvailable:a,isOnline:s,updateServiceWorker:i,unregisterServiceWorker:o}}();return(0,r.jsx)(s.Provider,{value:a,children:t})}function i(){let e=(0,n.useContext)(s);if(!e)throw Error("usePWAContext must be used within PWAContextProvider");return e}var o=a(33738);function d(){let{isOnline:e}=i();return e?null:(0,r.jsx)("div",{className:"fixed top-16 left-1/2 z-50 -translate-x-1/2",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 rounded-full bg-amber-600 px-4 py-2 text-white shadow-lg dark:bg-amber-700",children:[(0,r.jsx)(o.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"You're offline"})]})})}let c=(0,a(71847).A)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);var u=a(65229),m=a(39867),h=a(3998);let f="pwa-install-dismissed";function g(){let{isInstallable:e,isInstalled:t,promptInstall:a,dismissPrompt:s}=function(){let[e,t]=(0,n.useState)(null),[a,r]=(0,n.useState)(!1),[s,l]=(0,n.use
1State)(!1);return(0,n.useEffect)(()=>{if(window.matchMedia("(display-mode: standalone)").matches)return void l(!0);let e=e=>{e.preventDefault(),t(e),r(!0)},a=()=>{l(!0),r(!1),t(null)};return window.addEventListener("beforeinstallprompt",e),window.addEventListener("appinstalled",a),()=>{window.removeEventListener("beforeinstallprompt",e),window.removeEventListener("appinstalled",a)}},[]),{isInstallable:a,isInstalled:s,promptInstall:(0,n.useCallback)(async()=>{if(!e)return{outcome:"not-available",platform:null};await e.prompt();let{outcome:a,platform:n}=await e.userChoice;return t(null),r(!1),{outcome:a,platform:n}},[e]),dismissPrompt:(0,n.useCallback)(()=>{r(!1),t(null)},[])}}(),[l,i]=(0,n.useState)(!0),[o,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{},[e,t,l,o]),(0,n.useEffect)(()=>{try{let e=localStorage.getItem(f);if(e){let t=parseInt(e,10);if(Date.now()-t<6048e5)return void i(!0);localStorage.removeItem(f)}i(!1)}catch(e){i(!1)}},[]),(0,n.useEffect)(()=>{if(!e||l||t)return void d(!1);let a=window.setTimeout(()=>{d(!0)},3e4);return()=>window.clearTimeout(a)},[e,l,t]);let g=(0,n.useCallback)(()=>{try{localStorage.setItem(f,Date.now().toString())}catch(e){}},[]),p=async()=>{"accepted"===(await a()).outcome&&d(!1)},v=()=>{i(!0),d(!1),g(),s()};return!o||t?null:(0,r.jsx)("div",{className:"fixed bottom-4 left-4 right-4 z-50 md:left-auto md:right-4 md:max-w-sm",children:(0,r.jsxs)("div",{className:"rounded-lg border border-gray-200 bg-white p-4 shadow-lg dark:border-gray-700 dark:bg-gray-800",children:[(0,r.jsxs)("div",{className:"mb-3 flex items-start justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-blue-100 dark:bg-blue-900/30",children:(0,r.jsx)(c,{className:"h-5 w-5 text-blue-600 dark:text-blue-400"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:"Install VieroMind"}),(0,r.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Quick access from your home screen"})]})]}),(0,r.jsx)("button",{onClick:v,className:"rounded-lg p-1 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-gray-700 dark:hover:text-gray-300","aria-label":"Dismiss",children:(0,r.jsx)(u.A,{className:"h-4 w-4"})})]}),(0,r.jsxs)("ul",{className:"mb-4 space-y-1 text-xs text-gray-600 dark:text-gray-400",children:[(0,r.jsx)("li",{children:"Faster loading on repeat visits"}),(0,r.jsx)("li",{children:"Offline access to key pages"}),(0,r.jsx)("li",{children:"Installable app-like experience"}),(0,r.jsx)("li",{children:"No need to open a browser tab"})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)(h.$,{onClick:p,variant:"default",size:"sm",className:"flex flex-1 items-center justify-center gap-2",children:[(0,r.jsx)(m.A,{className:"h-4 w-4"}),"Install App"]}),(0,r.jsx)(h.$,{onClick:v,variant:"outline",size:"sm",children:"Later"})]})]})})}var p=a(89559);function v(){let{isUpdateAvailable:e,updateServiceWorker:t}=i();return e?(0,r.jsx)("div",{className:"fixed left-1/2 top-4 z-50 -translate-x-1/2",children:(0,r.jsxs)("div",{className:"flex max-w-sm items-center gap-3 rounded-lg bg-blue-600 px-4 py-3 text-white shadow-lg dark:bg-blue-700",children:[(0,r.jsx)(p.A,{className:"h-5 w-5 flex-shrink-0"}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"Update Available"}),(0,r.jsx)("p",{className:"text-xs opacity-90",children:"A new version of VieroMind is ready"})]}),(0,r.jsx)(h.$,{onClick:t,variant:"secondary",size:"sm",className:"flex-shrink-0",children:"Update"})]})}):null}function x(){return(0,r.jsxs)(l,{children:[(0,r.jsx)(g,{}),(0,r.jsx)(v,{}),(0,r.jsx)(d,{})]})}},39867:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},40043:e=>{e.exports={style:{fontFamily:"'Space Grotesk', 'Space Grotesk Fallback'",fontStyle:"normal"},className:"__className_8d3d76",variable:"__variable_8d3d76"}},42888:e=>{e.exports={style:{fontFamily:"'Noto Sans Arabic', 'Noto Sans Arabic Fallback'",fontStyle:"normal"},className:"__className_5eef58",variable:"__variable_5eef58"}},52883:e=>{e.exports={style:{fontFamily:"'raleway', 'raleway Fallback'",fontStyle:"normal"},className:"__className_9fb0e2",variable:"__variable_9fb0e2"}},60188:(e,t,a)=>{"use strict";a.d(t,{NonceProvider:()=>l,d:()=>i});var r=a(95155),n=a(12115);let s=(0,n.createContext)("");function l(e){let{nonce:t,children:a}=e;return(0,r.jsx)(s.Provider,{value:t,children:a})}function i(){return(0,n.useContext)(s)}},68321:(e,t,a)=>{"use strict";a.d(t,{default:()=>n.a});var r=a(41402),n=a.n(r)},69125:e=>{e.exports={style:{fontFamily:"'poppins', 'poppins Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_d98132",variable:"__variable_d98132"}},75095:(e,t,a)=>{"use strict";a.d(t,{CookieBanner:()=>g});var r=a(95155);let n=(0,a(71847).A)("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);var s=a(15870),l=a(17910),i=a(65229),o=a(12115),d=a(3998);let c="vm_cookie_consent",u="vm_cookie_preferences",m={essential:!0,analytics:!1,marketing:!1,personalization:!1};function h(e,t){try{window.localStorage.setItem(c,e),window.localStorage.setItem(u,JSON.stringify(t))}catch(e){}window.dispatchEvent(new CustomEvent("vm:cookie-consent-change"))}var f=a(64269);function g(){let[e,t]=(0,o.useState)(!1),[a,g]=(0,o.useState)(!1),[v,x]=(0,o.useState)(!1),[b,y]=(0,o.useState)(m);(0,o.useEffect)(()=>{try{if(localStorage.getItem(c)){let e=localStorage.getItem(u);e&&y(JSON.parse(e))}else{if("undefined"!=typeof navigator&&!0===navigator.globalPrivacyControl){let e={essential:!0,analytics:!1,marketing:!1,personalization:!1};y(e),h("rejected",e);return}let e=setTimeout(()=>{t(!0),x(!0)},1e3);return()=>clearTimeout(e)}}catch(e){}},[]);let k=(0,o.useCallback)((e,t)=>{h(e,t)},[]),w=(0,o.useCallback)(()=>{let e={essential:!0,analytics:!0,marketing:!0,personalization:!0};y(e),k("accepted",e),x(!1),setTimeout(()=>t(!1),300)},[k]),j=(0,o.useCallback)(()=>{let e={essential:!0,analytics:!1,marketing:!1,personalization:!1};y(e),k("rejected",e),x(!1),setTimeout(()=>t(!1),300)},[k]),N=(0,o.useCallback)(()=>{k("custom",b),g(!1),x(!1),setTimeout(()=>t(!1),300)},[b,k]),_=(0,o.useCallback)(e=>{"essential"!==e&&y(t=>({...t,[e]:!t[e]}))},[]);return e?(0,r.jsx)("div",{role:"dialog","aria-label":"Cookie consent","aria-modal":"true",className:(0,f.cn)("fixed inset-x-0 bottom-0 z-9999 p-3 transition-all duration-300 ease-out sm:p-4",v?"translate-y-0 opacity-100":"translate-y-full opacity-0"),children:(0,r.jsx)("div",{className:"mx-auto max-w-4xl",children:(0,r.jsx)("div",{className:(0,f.cn)("overflow-hidden rounded-2xl border shadow-2xl backdrop-blur-xl transition-all duration-300","border-gray-200/60 bg-white/95 dar
1k:border-gray-700/60 dark:bg-gray-900/95","ring-1 ring-black/5 dark:ring-white/5"),children:a?(0,r.jsxs)("div",{className:"p-4 sm:p-6",children:[(0,r.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-linear-to-br from-blue-500/10 to-purple-500/10 dark:from-blue-500/20 dark:to-purple-500/20",children:(0,r.jsx)(l.A,{className:"h-5 w-5 text-blue-600 dark:text-blue-400"})}),(0,r.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Cookie Preferences"})]}),(0,r.jsx)("button",{onClick:()=>g(!1),className:"rounded-lg p-2 transition-colors hover:bg-gray-100 dark:hover:bg-gray-800","aria-label":"Close preferences",children:(0,r.jsx)(i.A,{className:"h-5 w-5 text-gray-500"})})]}),(0,r.jsxs)("div",{className:"mb-5 space-y-3",children:[(0,r.jsx)(p,{title:"Essential Cookies",description:"Required for basic site functionality, security, and authentication.",checked:b.essential,disabled:!0,onChange:()=>{}}),(0,r.jsx)(p,{title:"Analytics Cookies",description:"Help us understand how visitors interact with our platform.",checked:b.analytics,onChange:()=>_("analytics")}),(0,r.jsx)(p,{title:"Marketing Cookies",description:"Used to show relevant content and measure campaign effectiveness.",checked:b.marketing,onChange:()=>_("marketing")}),(0,r.jsx)(p,{title:"Personalization Cookies",description:"Enable personalized features and remember your preferences.",checked:b.personalization,onChange:()=>_("personalization")})]}),(0,r.jsxs)("div",{className:"flex flex-col-reverse gap-2 border-t border-gray-200 pt-4 sm:flex-row sm:gap-3 dark:border-gray-700",children:[(0,r.jsx)(d.$,{onClick:j,variant:"ghost",size:"sm",className:"flex-1 text-gray-600 sm:flex-none dark:text-gray-400",children:"Reject All"}),(0,r.jsx)(d.$,{onClick:w,variant:"outline",size:"sm",className:"flex-1 sm:flex-none",children:"Accept All"}),(0,r.jsx)(d.$,{onClick:N,size:"sm",className:"flex-1 bg-linear-to-r from-blue-600 to-blue-700 shadow-lg shadow-blue-500/25 hover:from-blue-700 hover:to-blue-800 sm:flex-none",children:"Save Preferences"})]})]}):(0,r.jsx)("div",{className:"p-4 sm:p-6",children:(0,r.jsxs)("div",{className:"flex flex-col items-start gap-4 sm:flex-row sm:items-center sm:gap-6",children:[(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-4",children:[(0,r.jsx)("div",{className:"hidden h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-linear-to-br from-blue-500/10 to-purple-500/10 sm:flex dar
1k:from-blue-500/20 dark:to-purple-500/20",children:(0,r.jsx)(n,{className:"h-6 w-6 text-blue-600 dark:text-blue-400"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("h2",{className:"mb-1 text-base font-semibold text-gray-900 sm:text-lg dark:text-white",children:"We value your privacy"}),(0,r.jsx)("p",{className:"text-sm leading-relaxed text-gray-600 dark:text-gray-300",children:"We use cookies to keep you securely logged in, enhance your browsing experience, and understand how you use our platform. You can customize your preferences or accept all cookies."})]})]}),(0,r.jsxs)("div",{className:"flex w-full shrink-0 flex-col gap-2 sm:w-auto sm:flex-row sm:gap-3",children:[(0,r.jsxs)(d.$,{onClick:()=>g(!0),variant:"ghost",size:"sm",className:"order-3 text-gray-600 hover:text-gray-900 sm:order-1 dark:text-gray-400 dark:hover:text-white",children:[(0,r.jsx)(s.A,{className:"mr-1.5 h-4 w-4"}),"Manage"]}),(0,r.jsx)(d.$,{onClick:j,variant:"outline",size:"sm",className:"order-2 sm:order-2",children:"Decline"}),(0,r.jsx)(d.$,{onClick:w,size:"sm",className:"order-1 bg-linear-to-r from-blue-600 to-blue-700 shadow-lg shadow-blue-500/25 hover:from-blue-700 hover:to-blue-800 sm:order-3",children:"Accept All"})]})]})})})})}):null}function p(e){let{title:t,description:a,checked:n,disabled:s=!1,onChange:l}=e;return(0,r.jsxs)("div",{className:(0,f.cn)("flex items-center justify-between gap-4 rounded-xl p-3 transition-colors",s?"bg-gray-50 dark:bg-gray-800/50":"bg-gray-50/50 hover:bg-gray-100/70 dark:bg-gray-800/30 dark:hover:bg-gray-800/50"),children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:t}),s&&(0,r.jsx)("span",{className:"rounded bg-gray-200 px-1.5 py-0.5 text-[10px] font-medium tracking-wide text-gray-600 uppercase dark:bg-gray-700 dark:text-gray-400",children:"Required"})]}),(0,r.jsx)("p",{className:"mt-0.5 text-xs text-gray-500 dark:text-gray-400",children:a})]}),(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":n,disabled:s,onClick:l,className:(0,f.cn)("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:outline-none dark:focus:ring-offset-gray-900",n?"bg-blue-600":"bg-gray-200 dark:bg-gray-700",s&&"cursor-not-allowed opacity-60"),children:(0,r.jsx)("span",{className:(0,f.cn)("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",n?"translate-x-5":"translate-x-0")})})]})}},75875:(e,t,a)=>{"use strict";a.d(t,{D:()=>i});var r=a(80842),n=a(96199),s=a(12115);let l="vieromind_pending_name";function i(){var e,t;let{data:a,update:i}=(0,n.useSession)(),o=(0,s.useRef)(!1),d=r.api.user.updateProfile.useMutation();(0,s.useEffect)(()=>{var e,t;if(!(null==a||null==(e=a.user)?void 0:e.id)||a.user.name||o.current)return;let r=null==(t=localStorage.getItem(l))?void 0:t.trim();r&&(o.current=!0,(async()=>{try{await d.mutateAsync({name:r}),localStorage.removeItem(l),await i({user:{...a.user,name:r}})}finally{o.current=!1}})())},[null==a||null==(e=a.user)?void 0:e.id,null==a||null==(t=a.user)?void 0:t.name])}},89559:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},90202:(e,t,a)=>{"use strict";a.d(t,{Providers:()=>l});var r=a(95155),n=a(44889),s=a(41754);function l(e){let{children:t}=e;return(0,r.jsx)(s.N,{children:(0,r.jsx)(n.Is,{children:t})})}a(12115)},93836:()=>{}},e=>{e.O(0,[6357,5475,83263,30637,61025,52619,96199,75889,35e3,54230,81356,61633,35010,37702,80775,55397,28441,36975,77358],()=>e(e.s=12256)),_N_E=e.O()}]);

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.