1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},97730,e=>{"use strict";var t=e.i(18050);function r(){return(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white/60 backdrop-blur-sm",children:(0,t.jsx)("div",{className:"h-12 w-12 animate-spin rounded-full border-4 border-gray-300 border-t-purple-600"})})}e.s(["default",()=>r])},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return o},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,l(e));else t.set(r,l(n));return t}function o(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",i=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(a.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${i}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return N},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return l},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return o},isResSent:function(){return f},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function x(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await x(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class N extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),s=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return y}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(90809),l=e.r(18050),i=a._(e.r(71645)),o=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(91949),x=e.r(73668),h=e.r(9396);function m(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}function g(t){var r;let n,s,a,[o,g]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,i.useRef)(null),{href:j,as:N,children:v,prefetch:w=null,passHref:S,replace:E,shallow:_,scroll:T,onClick:P,onMouseEnter:k,onTouchStart:O,legacyBehavior:R=!1,onNavigate:C,ref:A,unstable_dynamicOnHover:M,...U}=t;n=v,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let D=i.default.useContext(c.AppRouterContext),L=!1!==w,I=!1!==w?null===(r=w)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:z,as:$}=i.default.useMemo(()=>{let e=m(j);return{href:e,as:N?m(N):e}},[j,N]);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=i.default.Children.only(n)}let F=R?s&&"object"==typeof s&&s.ref:A,G=i.default.useCallback(e=>(null!==D&&(y.current=(0,p.mountLinkInstance)(e,z,D,I,L,g)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[L,z,D,I,g]),W={ref:(0,u.useMergedRef)(G,F),onClick(t){R||"function"!=typeof P||P(t),R&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!D||t.defaultPrevented||function(t,r,n,s,a,l,o){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,x.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);i.default.startTransition(()=>{d(n||r,a?"replace":"push",l??!0,s.current)})}}(t,z,$,y,E,T,C)},onMouseEnter(e){R||"function"!=typeof k||k(e),R&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),D&&L&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){R||"function"!=typeof O||O(e),R&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),D&&L&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,d.isAbsoluteUrl)($)?W.href=$:R&&!S&&("a"!==s.type||"href"in s.props)||(W.href=(0,f.addBasePath)($)),a=R?i.default.cloneElement(s,W):(0,l.jsx)("a",{...U,...W,children:n}),(0,l.jsx)(b.Provider,{value:o,children:a})}e.r(84508);let b=(0,i.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},75254,e=>{"use strict";var t=e.i(71645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var s={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"};let a=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:i="",children:o,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...s,width:r,height:r,stroke:e,strokeWidth:l?24*Number(a)/Number(r):a,className:n("lucide",i),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(o)?o:[o]])),l=(e,s)=>{let l=(0,t.forwardRef)(({className:l,...i},o)=>(0,t.createElement)(a,{ref:o,iconNode:s,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...i}));return l.displayName=r(e),l};e.s(["default",()=>l],75254)},72520,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],72520)},48303,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(22016),s=e.i(57688),a=e.i(18566),l=e.i(73665),i=e.i(91432),o=e.i(53199);let c=[{label:"Home",href:"/"},{label:"About",href:"/about"},{label:"Content",href:"/content"},{label:"Contact",href:"#contact"}];function u(){let e=(0,a.usePathname)(),{user:u,isLoading:d}=(0,i.useAuth)(),[f,p]=(0,r.useState)(!1),x=null!=u&&(!1===u.onboardingRequired||"COMPLETED"===u.onboardingStatus||"NOT_REQUIRED"===u.onboardingStatus),h=u&&"GUEST"!==u.role&&x?u:null,m=h?(0,o.getDefaultRouteForRole)(h.role):"/welcome",g=h?(0,o.isAdminRole)(h.role)?"Admin":"Dashboard":"Sign in",b=h?(0,o.isAdminRole)(h.role)?l.MdShield:l.MdDashboard:null,y=b??l.MdArrowForward;return(0,t.jsxs)("header",{className:"sticky top-0 z-40 w-full bg-white/95 shadow-[0px_1px_2px_0px_rgba(76,29,149,0.05)] backdrop-blur-md",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-[1280px] px-4 sm:px-6 lg:px-8 py-4 flex items-center justify-between",children:[(0,t.jsx)(n.default,{href:"/",className:"flex items-center",children:(0,t.jsx)(s.default,{src:"/logo.svg",alt:"Unpause",width:225,height:71,className:"h-11 w-auto",priority:!0})}),(0,t.jsx)("nav",{className:"hidden md:flex items-center gap-10",children:c.map(r=>{let s=e===r.href||"/"!==r.href&&e.startsWith(r.href);return(0,t.jsx)(n.default,{href:r.href,className:`text-base leading-6 pb-0.5 transition-colors ${s?"font-semibold text-brand-1-500 border-b-2 border-brand-1-500":"font-normal text-neutral-600 hover:text-brand-1-500"}`,children:r.label},r.href)})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!d&&(0,t.jsxs)(n.default,{href:m,className:"hidden md:inline-flex items-center gap-2 px-6 py-2 bg-brand-1-500 hover:bg-brand-1-600 rounded-full text-white text-base font-semibold leading-6 transition-colors",children:[b&&(0,t.jsx)(b,{className:"size-4"}),g]}),!d&&(0,t.jsx)(n.default,{href:m,"aria-label":g,title:g,className:"md:hidden inline-flex h-10 w-10 items-center justify-center rounded-full bg-brand-1-500 text-white hover:bg-brand-1-600 transition-colors",children:(0,t.jsx)(y,{className:"size-5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>p(e=>!e),className:"md:hidden flex h-10 w-10 items-center justify-center rounded-lg text-brand-1-500 hover:bg-brand-1-500/10","aria-label":"Toggle menu",children:f?(0,t.jsx)(l.MdClose,{className:"h-6 w-6"}):(0,t.jsx)(l.MdMenu,{className:"h-6 w-6"})})]})]}),f&&(0,t.jsx)("div",{className:"md:hidden border-t border-brand-1-500/10 bg-white",children:(0,t.jsx)("nav",{className:"px-4 sm:px-6 lg:px-8 py-4 flex flex-col gap-3",children:c.map(r=>{let s=e===r.href||"/"!==r.href&&e.startsWith(r.href);return(0,t.jsx)(n.default,{href:r.href,onClick:()=>p(!1),className:`text-base py-2 transition-colors ${s?"font-semibold text-brand-1-500":"font-normal text-neutral-600"}`,children:r.label},r.href)})})})]})}e.s(["SiteHeader",()=>u])},16200,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(22016),s=e.i(57688),a=e.i(73665);function l(){let[e,l]=(0,r.useState)(""),[i,o]=(0,r.useState)(""),[c,u]=(0,r.useState)(""),[d,f]=(0,r.useState)("idle"),[p,x]=(0,r.useState)("");async function h(t){if(t.preventDefault(),"sending"!==d){f("sending"),x("");try{let t=await fetch("https://api.unpause.ai/api/v2/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.trim(),message:i.trim(),website:c})});if(!t.ok){let e=await t.json().catch(()=>({}
1)),r=Array.isArray(e?.message)?e.message.join(", "):e?.message;throw Error(r||"Failed to send message.")}f("ok"),l(""),o("")}catch(e){f("error"),x(e instanceof Error?e.message:"Failed to send message.")}}}return(0,r.useEffect)(()=>{if("ok"!==d&&"error"!==d)return;let e=setTimeout(()=>{f("idle"),x("")},3e4);return()=>clearTimeout(e)},[d]),(0,t.jsxs)("footer",{className:"relative bg-gradient-to-b from-surface-soft via-brand-2-500/40 to-brand-2-500/20 pt-20 pb-8 overflow-hidden",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -top-24 -left-24 w-80 h-80 rounded-full bg-brand-1-500/10 blur-3xl"}),(0,t.jsx)("div",{className:"pointer-events-none absolute -top-32 right-10 w-96 h-96 rounded-full bg-brand-1-700/10 blur-3xl"}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-1 bg-gradient-to-r from-brand-1-500/0 via-brand-1-500/60 to-brand-1-500/0"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-[1280px] px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-10 lg:gap-12",children:[(0,t.jsxs)("div",{className:"lg:col-span-4 flex flex-col gap-6",children:[(0,t.jsx)(n.default,{href:"/",className:"inline-flex items-center w-fit",children:(0,t.jsx)(s.default,{src:"/logo.svg",alt:"Unpause",width:215,height:71,className:"h-12 w-auto"})}),(0,t.jsx)("p",{className:"text-sm text-neutral-600 leading-6 max-w-[340px]",children:"The Digital Sanctuary for clinical wellness. Helping you see the patterns in your sleep and symptoms."}),(0,t.jsx)("ul",{className:"flex flex-col gap-2.5 text-sm text-neutral-600",children:(0,t.jsxs)("li",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-7 rounded-full bg-white/70 border border-brand-1-500/10 flex items-center justify-center shrink-0",children:(0,t.jsx)(a.MdEmail,{className:"size-3.5 text-brand-1-500"})}),(0,t.jsx)("a",{href:"mailto:[email protected]",className:"hover:text-brand-1-500 transition-colors",children:"[email protected]"})]})})]}),(0,t.jsxs)("div",{className:"lg:col-span-2 flex flex-col gap-5",children:[(0,t.jsx)("h4",{className:"text-sm font-bold text-brand-1-700 uppercase tracking-wider",children:"Company"}),(0,t.jsxs)("ul",{className:"flex flex-col gap-3",children:[(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"/",className:"text-sm text-neutral-600 hover:text-brand-1-500 transition-colors",children:"Home"})}),(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"/about",className:"text-sm text-neutral-600 hover:text-brand-1-500 transition-colors",children:"About"})}),(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"/content",className:"text-sm text-neutral-600 hover:text-brand-1-500 transition-colors",children:"Content"})})]})]}),(0,t.jsxs)("div",{className:"lg:col-span-2 flex flex-col gap-5",children:[(0,t.jsx)("h4",{className:"text-sm font-bold text-brand-1-700 uppercase tracking-wider",children:"Legal"}),(0,t.jsxs)("ul",{className:"flex flex-col gap-3",children:[(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"#",className:"text-sm text-neutral-600 hover:text-brand-1-500 transition-colors",children:"Privacy Policy"})}),(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"#",className:"text-sm text-neutral-600 hover:text-brand-1-500 transition-colors",children:"Terms of Use"})}),(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"#",className:"text-sm text-neutral-600 hover:text-brand-1-500 transition-colors",children:"Cookies Policy"})})]})]}),(0,t.jsxs)("div",{id:"contact",className:"lg:col-span-4 flex flex-col gap-5 scroll-mt-24",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h4",{className:"text-sm font-bold text-brand-1-700 uppercase tracking-wider",children:"Get in Touch"}),(0,t.jsx)("p",{className:"text-xs text-neutral-500",children:"We usually respond within 1 business day."})]}),(0,t.jsxs)("form",{onSubmit:h,className:"flex flex-col gap-3",children:[(0,t.jsx)("input",{type:"email",required:!0,value:e,onChange:e=>l(e.target.value),placeholder:"Your email",disabled:"sending"===d,className:"h-11 px-4 bg-white rounded-xl border border-brand-1-500/10 text-sm placeholder:text-neutral-400 outline-none focus:border-brand-1-500 focus:ring-2 focus:ring-brand-1-500/10 transition-colors disabled:opacity-60"}),(0,t.jsx)("textarea",{required:!0,value:i,onChange:e=>o(e.target.value),placeholder:"Your message",rows:3,minLength:10,maxLength:2e3,disabled:"sending"===d,className:"px-4 py-3 bg-white rounded-xl border border-brand-1-500/10 text-sm placeholder:text-neutral-400 outline-none focus:border-brand-1-500 focus:ring-2 focus:ring-brand-1-500/10 resize-none transition-colors disabled:opacity-60"}),(0,t.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",value:c,onChange:e=>u(e.target.value),"aria-hidden":"true",className:"hidden"}),(0,t.jsxs)("button",{type:"submit",disabled:"sending"===d,className:"h-11 flex items-center justify-center gap-2 bg-brand-1-500 hover:bg-brand-1-600 rounded-xl text-white text-sm font-bold shadow-[0px_8px_20px_-8px_rgba(76,29,149,0.4)] transition-colors disabled:opacity-70 disabled:cursor-not-allowed",children:[(0,t.jsx)(a.MdSend,{className:"size-4"}),"sending"===d?"Sending...":"Send Message"]}),"ok"===d&&(0,t.jsx)("p",{className:"text-xs text-green-600",children:"Thanks. We'll get back to you within 1 business day."}),"error"===d&&(0,t.jsx)("p",{className:"text-xs text-red-500",children:p})]})]})]}),(0,t.jsxs)("div",{className:"mt-14 pt-6 border-t border-brand-1-500/15 flex flex-col sm:flex-row items-center justify-between gap-4",children:[(0,t.jsxs)("p",{className:"text-xs sm:text-sm text-neutral-500 order-2 sm:order-1",children:["© ",new Date().getFullYear()," Unpause. All rights reserved."]}
1),(0,t.jsx)("span",{className:"order-1 sm:order-2 text-xs sm:text-sm text-neutral-500",children:"A Healplace Company"})]})]})]})}e.s(["SiteFooter",()=>l])},24839,e=>{"use strict";let t="unpause_explore_draft";function r(e,r){try{let n={data:e,step:r,savedAt:Date.now()};localStorage.setItem(t,JSON.stringify(n))}catch{}}function n(){try{let e=localStorage.getItem(t);if(!e)return null;let r=JSON.parse(e);if(!r||"number"!=typeof r.savedAt||"number"!=typeof r.step||!r.data||Date.now()-r.savedAt>864e5)return a(),null;return{data:r.data,step:r.step}}catch{return null}}function s(){return null!==n()}function a(){try{localStorage.removeItem(t)}catch{}}function l(e,t,r){let n=e%12;return"PM"===r&&(n+=12),`${String(n).padStart(2,"0")}:${String(t).padStart(2,"0")}`}function i(e){switch(e){case"REGULAR":return"REGULAR_PERIODS";case"IRREGULAR":return"IRREGULAR_CHANGING";case"STOPPED_LT_12M":return"STOPPED_UNDER_12_MONTHS";case"STOPPED_GT_12M":return"STOPPED_OVER_12_MONTHS";case"UNSURE":return"NOT_SURE";default:return null}}let o={"Sleep problems":"SLEEP_PROBLEMS","Hot flashes or night sweats":"HOT_FLASHES_NIGHT_SWEATS","Mood changes":"MOOD_CHANGES","My doctor recommended it":"DOCTOR_RECOMMENDED","Just curious":"JUST_CURIOUS"};function c(e){return e.map(e=>o[e]).filter(e=>!!e)}e.s(["clearExploreDraft",()=>a,"hasValidExploreDraft",()=>s,"loadExploreDraft",()=>n,"mapConcernsToReferralReasons",()=>c,"mapTransitionToStage",()=>i,"saveExploreDraft",()=>r,"toReminderTime24h",()=>l])},63488,e=>{"use strict";let t=(0,e.i(75254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",()=>t],63488)},98395,e=>{"use strict";async function t(){let e,t,r=(e="healplace_device_id",(t=localStorage.getItem(e))||(t=crypto.randomUUID?crypto.randomUUID():`guest-${Math.random().toString(36).slice(2)}`,localStorage.setItem(e,t)),t),n=function(){try{if("u"<typeof Intl||void 0===Intl.DateTimeFormat)return;return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}(),s=await fetch("https://api.unpause.ai/api/v2/auth/guest",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-Device-Id":r,...n?{"X-Timezone":n}:{}},body:JSON.stringify({deviceId:r})});if(!s.ok)throw Error(`Guest login failed (${s.status})`);return await s.json()}e.i(47167),e.s(["requestGuestLogin",()=>t],98395)},61073,e=>{"use strict";e.i(47167);var t=e.i(18050),r=e.i(22016),n=e.i(71645),s=e.i(18566),a=e.i(77711),l=e.i(63488),i=e.i(72520),o=e.i(91432),c=e.i(98395),u=e.i(48303),d=e.i(16200),f=e.i(53199),p=e.i(97730),x=e.i(24839);let h=(0,e.i(75254).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),m=[{title:"Understand your patterns",description:"See how sleep, hot flashes, and mood connect. Patterns most women never get to see."},{title:"Be ready for your doctor",description:"Your tracked symptoms turn into a clear summary your clinician can review before your visit."},{title:"Feel understood, not surveyed",description:"A quick 90-second daily check-in. No long forms, no judgment."}];function g({className:e=""}){return(0,t.jsxs)("div",{className:`flex w-full flex-col items-start gap-6 rounded-2xl bg-purple-200/30 p-7 shadow-[0px_4px_24px_0px_rgba(107,0,209,0.07)] outline outline-[0.80px] -outline-offset-[0.80px] outline-purple-200 ${e}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"flex size-7 items-center justify-center rounded-[10px] bg-purple-700/10",children:(0,t.jsx)(h,{className:"size-4 text-purple-700",strokeWidth:2})}),(0,t.jsx)("h2",{className:"text-base font-bold leading-6 text-violet-950",children:"Why Unpause?"})]}),(0,t.jsx)("div",{className:"h-px w-full bg-purple-700/10"}),(0,t.jsx)("ul",{className:"flex w-full flex-col gap-5",children:m.map(({title:e,description:r})=>(0,t.jsxs)("li",{className:"flex items-start gap-4",children:[(0,t.jsx)("span",{className:"mt-1.5 size-2 shrink-0 rounded-full bg-violet-400"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-sm font-semibold leading-5 text-violet-950",children:e}),(0,t.jsx)("span",{className:"pt-1 text-xs leading-5 text-zinc-500",children:r})]})]},e))})]})}function b(){let e=(0,s.useRouter)(),{user:h,isLoading:m,login:b}
1=(0,o.useAuth)(),[y,j]=(0,n.useState)(!1),[N,v]=(0,n.useState)(!1),[w,S]=(0,n.useState)(!1),[E,_]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{S(!0),_((0,x.hasValidExploreDraft)())},[]),(0,n.useEffect)(()=>{N||!m&&h&&"GUEST"!==h.role&&(h.onboardingRequired?e.replace("/onboarding"):e.replace((0,f.getDefaultRouteForRole)(h.role)))},[m,h,e,N]),m||N||h&&"GUEST"!==h.role)return null;async function T(){if(!y){j(!0),(0,x.clearExploreDraft)();try{let t=await (0,c.requestGuestLogin)();v(!0),b(t),e.replace("/onboarding/start")}catch(e){console.error("Guest login error",e),j(!1)}}}async function P(){if(!y){if(h){v(!0),e.replace("/onboarding/start");return}j(!0);try{let t=await (0,c.requestGuestLogin)();v(!0),b(t),e.replace("/onboarding/start")}catch(e){console.error("Guest login error",e),j(!1)}}}return(0,t.jsxs)(t.Fragment,{children:[y&&(0,t.jsx)(p.default,{}),(0,t.jsxs)("div",{className:"flex min-h-screen flex-col bg-white",children:[(0,t.jsx)(u.SiteHeader,{}),(0,t.jsx)("main",{className:"flex min-h-[calc(100svh-76px)] flex-1 items-center justify-center bg-fuchsia-50 px-6 py-8 sm:px-10 lg:px-16",children:(0,t.jsxs)("div",{className:"flex w-full max-w-[1180px] flex-col items-center justify-center gap-12 lg:flex-row lg:gap-20",children:[(0,t.jsxs)("div",{className:"flex w-full max-w-[384px] flex-col items-start",children:[(0,t.jsxs)("h1",{className:"pb-4 text-4xl font-bold leading-10 lg:whitespace-nowrap",children:[(0,t.jsx)("span",{className:"text-zinc-900",children:"Welcome to "}),(0,t.jsx)("span",{className:"text-purple-700",children:"Unpause."})]}),(0,t.jsx)("p",{className:"pb-8 text-base leading-6 text-neutral-600",children:"This is your space to understand your body during this transition."}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-stretch gap-4",children:[(0,t.jsxs)(r.default,{href:"https://api.unpause.ai/api/v2/auth/google",className:"flex w-full items-center justify-center gap-3 rounded-[10px] bg-white px-5 py-3 outline outline-[0.80px] -outline-offset-[0.80px] outline-purple-200 transition-colors hover:bg-neutral-50",children:[(0,t.jsx)(a.FcGoogle,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"text-base font-medium leading-6 text-zinc-900",children:"Continue with Google"})]}),(0,t.jsxs)(r.default,{href:"/register",className:"flex w-full items-center justify-center gap-3 rounded-[10px] bg-white px-5 py-3 outline outline-[0.80px] -outline-offset-[0.80px] outline-purple-200 transition-colors hover:bg-neutral-50",children:[(0,t.jsx)(l.Mail,{className:"size-4 shrink-0 text-neutral-600",strokeWidth:1.5}),(0,t.jsx)("span",{className:"text-base font-medium leading-6 text-zinc-900",children:"Continue with Email"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-purple-200"}),(0,t.jsx)("span",{className:"text-sm leading-5 text-zinc-500",children:"or"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-purple-200"})]}),w&&E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-center text-sm font-medium leading-5 text-violet-950",children:"Welcome back. Pick up where you left off."}),(0,t.jsxs)("button",{type:"button",onClick:P,disabled:y,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-[10px] bg-purple-700 px-6 py-3 transition-colors hover:bg-purple-800 disabled:cursor-not-allowed disabled:opacity-60",children:[(0,t.jsx)("span",{className:"text-base font-semibold leading-6 text-white",children:"Continue exploring"}),(0,t.jsx)(i.ArrowRight,{className:"size-4 shrink-0 text-white",strokeWidth:1.5})]}),(0,t.jsx)("button",{type:"button",onClick:T,disabled:y,className:"flex w-full cursor-pointer items-center justify-center rounded-[10px] px-6 py-2 text-sm font-medium text-neutral-500 transition-colors hover:text-neutral-700 disabled:cursor-not-allowed disabled:opacity-60",children:"Start over"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-center text-sm font-medium leading-5 text-violet-950",children:"New here? Take a look around first."}),(0,t.jsxs)("button",{type:"button",onClick:T,disabled:y,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-[10px] bg-purple-700 px-6 py-3 transition-colors hover:bg-purple-800 disabled:cursor-not-allowed disabled:opacity-60",children:[(0,t.jsx)("span",{className:"text-base font-semibold leading-6 text-white",children:"Explore first"}),(0,t.jsx)(i.ArrowRight,{className:"size-4 shrink-0 text-white",strokeWidth:1.5})]})]})]}),(0,t.jsx)("p",{className:"w-full pt-5 text-sm leading-5 text-zinc-500",children:"You can explore and try your first check-in before creating an account."})]}),(0,t.jsx)("div",{className:"w-full max-w-[492px]",children:(0,t.jsx)(g,{})})]})}),(0,t.jsx)(d.SiteFooter,{})]})]})}e.s(["default",()=>b],61073)}]);
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.