!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b976590e-df72-466b-8593-3fde1c7bd6f3",e._sentryDebugIdIdentifier="sentry-dbid-b976590e-df72-466b-8593-3fde1c7bd6f3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7538],{42006:function(e,t,s){s.d(t,{Tt:function(){return o},aF:function(){return d},kP:function(){return c},nm:function(){return a},p9:function(){return l}});var n=s(57437);s(38774),s(76600);var r=s(2265);let i=(0,r.createContext)({isLoading:!0,session:null,error:null,supabaseClient:{}}),a=e=>{let{supabaseClient:t,initialSession:s=null,children:a}=e,[o,l]=(0,r.useState)(()=>s?{isLoading:!1,session:s,error:null,supabaseClient:t}:{isLoading:!0,session:null,error:null,supabaseClient:t});return(0,r.useEffect)(()=>{(async()=>{try{let{data:{session:e},error:s}=await t.auth.getSession();if(s){l({isLoading:!1,session:null,error:s,supabaseClient:t});return}e?l({isLoading:!1,session:e,error:null,supabaseClient:t}):l({isLoading:!1,session:null,error:null,supabaseClient:t})}catch(e){l({isLoading:!1,session:null,error:e,supabaseClient:t})}})();let{data:{subscription:e}}=t.auth.onAuthStateChange((e,s)=>{s?l({isLoading:!1,session:s,error:null,supabaseClient:t}):l({isLoading:!1,session:null,error:null,supabaseClient:t})});return()=>{e.unsubscribe()}},[t,t.auth]),(0,n.jsx)(i.Provider,{value:o,children:a})},o=()=>{let e=(0,r.useContext)(i);if(void 0===e)throw Error("useSessionContext must be used within a SessionContextProvider.");return e};function l(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useSupabaseClient must be used within a SessionContextProvider.");return e.supabaseClient}let c=()=>{let e=(0,r.useContext)(i);if(void 0===e)throw Error("useSession must be used within a SessionContextProvider.");return e.session},d=()=>{var e,t;let s=(0,r.useContext)(i);if(void 0===s)throw Error("useUser must be used within a SessionContextProvider.");return null!==(t=null===(e=s.session)||void 0===e?void 0:e.user)&&void 0!==t?t:null}},62869:function(e,t,s){s.d(t,{d:function(){return l},z:function(){return c}});var n=s(57437),r=s(59763),i=s(69804),a=s(2265),o=s(3783);let l=(0,i.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{blue:"bg-blue-600 text-white shadow hover:bg-blue-800",default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",destructiveOutline:"border border-destructive/25 text-destructive bg-background shadow-sm hover:bg-destructive/5",destructiveGhost:"text-destructive bg-background hover:bg-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9",smallIcon:"h-7 w-7"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:s,variant:i,size:a,asChild:c=!1,...d}=e,u=c?r.g7:"button";return(0,n.jsx)(u,{className:(0,o.cn)(l({variant:i,size:a,className:s})),ref:t,...d})});c.displayName="Button"},57054:function(e,t,s){s.d(t,{J2:function(){return o},xo:function(){return l},yk:function(){return c}});var n=s(57437),r=s(85659),i=s(2265),a=s(3783);let o=r.fC,l=r.xz;r.ee;let c=i.forwardRef((e,t)=>{let{className:s,container:i,align:o="center",sideOffset:l=4,...c}=e;return(0,n.jsx)(r.h_,{container:i,children:(0,n.jsx)(r.VY,{ref:t,align:o,sideOffset:l,className:(0,a.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...c})})});c.displayName=r.VY.displayName},69304:function(e,t,s){s.d(t,{Ei:function(){return g},Tu:function(){return m},aM:function(){return d},bC:function(){return E},ue:function(){return S},yo:function(){return c}});var n=s(57437),r=s(51914),i=s(20653),a=s(69804),o=s(2265),l=s(3783);let c=r.fC,d=r.xz;r.x8;let u=r.h_,p=o.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.aV,{className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...i,ref:t})});p.displayName=r.aV.displayName;let h=(0,a.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),S=o.forwardRef((e,t)=>{let{side:s="right",className:a,children:o,...c}=e;return(0,n.jsxs)(u,{children:[(0,n.jsx)(p,{}),(0,n.jsxs)(r.VY,{ref:t,className:(0,l.cn)(h({side:s}),a),...c,children:[o,(0,n.jsxs)(r.x8,{className:"focus:ring-offset absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(i.Pxu,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});S.displayName=r.VY.displayName;let m=e=>{let{className:t,...s}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...s})};m.displayName="SheetHeader";let E=o.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold text-foreground",s),...i})});E.displayName=r.Dx.displayName;let g=o.forwardRef((e,t)=>{let{className:s,...i}=e;return(0,n.jsx)(r.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...i})});g.displayName=r.dk.displayName},38774:function(e,t,s){var n,r;s.d(t,{Z:function(){return i}}),(r=n||(n={})).HOME="HOME",r.BRAND="BRAND",r.AUTH_CHANGE_PASSWORD="AUTH_CHANGE_PASSWORD",r.AUTH_SIGNUP="AUTH_SIGNUP",r.AUTH_RESET_PASSWORD="AUTH_RESET_PASSWORD",r.AUTH_LOGIN="AUTH_LOGIN",r.ARTICLES="ARTICLES",r.ARTICLES_CATEGORY="ARTICLES_CATEGORY",r.SSO="SSO",r.BLOG="BLOG",r.BLOG_CATEGORY="BLOG_CATEGORY",r.EVENT="EVENT",r.TEMPLATES="TEMPLATES",r.TEMPLATES_PAGE="TEMPLATES_PAGE",r.CUSTOMERS="CUSTOMERS",r.CUSTOMERS_BY_INDUSTRY="CUSTOMERS_BY_INDUSTRY",r.CUSTOMERS_CASE_STUDY="CUSTOMERS_CASE_STUDY",r.PRIVACY="PRIVACY",r.ONBOARDING="ONBOARDING",r.SECURITY="SECURITY",r.CERTIFIED="CERTIFIED",r.TERMS="TERMS",r.REFERRAL_TERMS="REFERRAL_TERMS",r.DASHBOARD="DASHBOARD",r.FOLDER="FOLDER",r.KNOWLEDGE_BASE_EMPTY="KNOWLEDGE_BASE_EMPTY",r.KNOWLEDGE_BASE="KNOWLEDGE_BASE",r.DASHBOARD_PROJECT_ANALYTICS="DASHBOARD_PROJECT_ANALYTICS",r.GENERAL="GENERAL",r.MEMBERS="MEMBERS",r.GROUPS="GROUPS",r.ORGANIZATIONS="ORGANIZATIONS",r.BILLING="BILLING",r.REFERRAL="REFERRAL",r.BRANDING="BRANDING",r.FEATURE_ACCESS_CONTROL="FEATURE_ACCESS_CONTROL",r.CONNECTIONS="CONNECTIONS",r.API_KEYS="API_KEYS",r.PROJECT="PROJECT",r.WORKFLOW="WORKFLOW",r.EXPORT="EXPORT",r.ANALYTICS="ANALYTICS",r.MANAGER="MANAGER",r.AGENT_BUILDER="AGENT_BUILDER",r.ENTERPRISE_SOLUTIONS="ENTERPRISE_SOLUTIONS",r.SMB_SOLUTIONS="SMB_SOLUTIONS",r.STARTUPS_SOLUTIONS="STARTUPS_SOLUTIONS",r.AGENCIES_SOLUTIONS="AGENCIES_SOLUTIONS",r.AI_AGENTS_SOLUTIONS="AI_AGENTS_SOLUTIONS",r.WORKFLOW_AUTOMATIONS_SOLUTIONS="WORKFLOW_AUTOMATIONS_SOLUTIONS",r.CHATBOTS_SOLUTIONS="CHATBOTS_SOLUTIONS",r.FINANCIAL_SERVICES_SOLUTIONS="FINANCIAL_SERVICES_SOLUTIONS",r.HEALTHCARE_SOLUTIONS="HEALTHCARE_SOLUTIONS",r.EDUCATION_SOLUTIONS="EDUCATION_SOLUTIONS",r.GOVERNMENT_SOLUTIONS="GOVERNMENT_SOLUTIONS",r.OPERATIONS_SOLUTIONS="OPERATIONS_SOLUTIONS",r.PRICING="PRICING",r.CHAT_ASSISTANT="CHAT_ASSISTANT",r.NEW_CHAT="NEW_CHAT",r.SHARED_CHAT="SHARED_CHAT",r.FORM="FORM",r.BATCH="BATCH",r.VOICE="VOICE",r.CHANGELOG="CHANGELOG",r.CHANGELOG_POST="CHANGELOG_POST",r.FORMS_CIO_GUIDE="FORMS_CIO_GUIDE",r.FORMS_TALK_TO_US="FORMS_TALK_TO_US",r.EMBED="EMBED",r.SELF_HOSTED="SELF_HOSTED",r.SELF_HOSTED_GET_STARTED="SELF_HOSTED_GET_STARTED",r.ARCHIVES="ARCHIVES",r.MY_PROJECTS="MY_PROJECTS",r.GENERAL_PROJECTS="GENERAL_PROJECTS",r.INTEGRATIONS="INTEGRATIONS",r.CAREERS="CAREERS";let i={HOME:{path:"/",description:"Home"},BRAND:{path:"/brand",description:"Brand"},AUTH_CHANGE_PASSWORD:{path:"/auth/change-password",description:"Change Password"},AUTH_SIGNUP:{path:"/auth/signup",description:"Sign Up"},ONBOARDING:{path:"/onboarding",description:"Onboarding"},AUTH_RESET_PASSWORD:{path:"/auth/reset-password",description:"Reset Password"},AUTH_LOGIN:{path:"/auth/login",description:"Login"},SSO:{path:"/sso",description:"SSO"},BLOG:{path:"/blog",description:"Blog"},BLOG_CATEGORY:{path:"/blog/category/:slug",description:"Blog Category"},ARTICLES:{path:"/articles",description:"Articles"},ARTICLES_CATEGORY:{path:"/articles/category/:slug",description:"Articles Category"},EVENT:{path:"/events/:slug",description:"Event"},TEMPLATES:{path:"/templates",description:"Templates"},TEMPLATES_PAGE:{path:"/templates/:slug",description:"Template Page"},CUSTOMERS:{path:"/customers",description:"Customers"},CUSTOMERS_BY_INDUSTRY:{path:"/customers/industry",description:"Customers by industry"},CUSTOMERS_CASE_STUDY:{path:"/customers/:customerSlug",description:"Case studies"},PRIVACY:{path:"/privacy",description:"Privacy"},SECURITY:{path:"/security",description:"Security"},CERTIFIED:{path:"/certified",description:"Stack AI Certified Expert Program"},TERMS:{path:"/terms-of-service",description:"Terms"},REFERRAL_TERMS:{path:"/referralterms",description:"Referral Terms"},DASHBOARD:{path:"/dashboard",description:"Dashboard"},FOLDER:{path:"/dashboard/folder/:slug",description:"Folder"},KNOWLEDGE_BASE_EMPTY:{path:"/dashboard/knowledge-bases",description:"Knowledge Base"},KNOWLEDGE_BASE:{path:"/dashboard/knowledge-bases/:slug",description:"Knowledge Base"},DASHBOARD_PROJECT_ANALYTICS:{path:"/dashboard/project-analytics",description:"Project Analytics"},GENERAL:{path:"/settings/general",description:"General"},MEMBERS:{path:"/settings/members",description:"Members"},GROUPS:{path:"/settings/groups",description:"Groups"},ORGANIZATIONS:{path:"/settings/organizations",description:"Organizations"},BILLING:{path:"/settings/billing",description:"Billing"},REFERRAL:{path:"/settings/referral-program",description:"Referral Program"},BRANDING:{path:"/settings/branding",description:"Branding"},FEATURE_ACCESS_CONTROL:{path:"/settings/feature-access-control",description:"Feature Access Control"},CONNECTIONS:{path:"/dashboard/connections",description:"Connections"},API_KEYS:{path:"/settings/api-keys",description:"API Keys"},PROJECT:{path:"/project",description:"Project"},WORKFLOW:{path:"/project/:flowId/workflow",description:"Workflow"},EXPORT:{path:"/project/:flowId/export",description:"Export"},AGENT_BUILDER:{path:"/project/:flowId/agent-builder",description:"Agent Builder"},ANALYTICS:{path:"/project/:flowId/analytics",description:"Analytics"},MANAGER:{path:"/project/:flowId/manager",description:"Manager"},ENTERPRISE_SOLUTIONS:{path:"/solutions/enterprise",description:"Enterprise Solutions"},SMB_SOLUTIONS:{path:"/solutions/smb",description:"SMB Solutions"},STARTUPS_SOLUTIONS:{path:"/solutions/startups",description:"Startups Solutions"},AGENCIES_SOLUTIONS:{path:"/solutions/agencies",description:"Agencies Solutions"},AI_AGENTS_SOLUTIONS:{path:"/solutions/ai-agents",description:"AI Agents Solutions"},WORKFLOW_AUTOMATIONS_SOLUTIONS:{path:"/solutions/ai-workflow-automations",description:"AI-powered Workflow Automations"},CHATBOTS_SOLUTIONS:{path:"/solutions/ai-chatbots",description:"Chatbots Solutions"},FINANCIAL_SERVICES_SOLUTIONS:{path:"/solutions/financial-services",description:"Financial Services Solutions"},HEALTHCARE_SOLUTIONS:{path:"/solutions/healthcare",description:"Healthcare Solutions"},EDUCATION_SOLUTIONS:{path:"/solutions/education",description:"Education Solutions"},GOVERNMENT_SOLUTIONS:{path:"/solutions/government",description:"Government Solutions"},OPERATIONS_SOLUTIONS:{path:"/solutions/operations",description:"Operations Solutions"},PRICING:{path:"/pricing",description:"Pricing"},NEW_CHAT:{path:"/chat/:projectIdAndPublicKey",description:"New Chat"},CHAT_ASSISTANT:{path:"/chat-assistant",description:"Chat Assistant"},SHARED_CHAT:{path:"/chat/:projectIdAndPublicKey/share/:conversationId",description:"Shared Chat"},FORM:{path:"/form",description:"Form"},BATCH:{path:"/batch",description:"Batch"},VOICE:{path:"/voice-assistant",description:"Voice Assistant"},CHANGELOG:{path:"/changelog",description:"Changelog"},CHANGELOG_POST:{path:"/changelog/:slug",description:"Changelog Post"},FORMS_CIO_GUIDE:{path:"/forms/cio-guide",description:"CIO Guide"},FORMS_TALK_TO_US:{path:"/forms/talk-to-us",description:"Talk to us"},EMBED:{path:"/embed",description:"Embed chatbot"},SELF_HOSTED:{path:"/self-hosted",description:"Self-Hosted"},SELF_HOSTED_GET_STARTED:{path:"/self-hosted/get-started",description:"Get Started"},ARCHIVES:{path:"/dashboard/archives",description:"Archives"},MY_PROJECTS:{path:"/dashboard/me",description:"My projects"},GENERAL_PROJECTS:{path:"/dashboard/general",description:"General projects"},INTEGRATIONS:{path:"/integrations",description:"Integrations"},CAREERS:{path:"/careers",description:"Careers"}}},3783:function(e,t,s){s.d(t,{Eb:function(){return c},cn:function(){return i},p6:function(){return a},Pm:function(){return l},fr:function(){return o}});let n=(0,s(2997).q7)({extend:{classGroups:{"font-size":["text-xs","text-sm","text-ms","text-base","text-lg","text-xl","text-2xl","text-3xl"],"text-color":["text-primary-foreground","text-destructive-foreground","text-destructive","text-secondary-foreground"]},conflictingClassGroups:{"font-size":["font-size"],"text-color":["text-color"]}}});var r=s(40334);function i(){for(var e=arguments.length,t=Array(e),s=0;s{let{buttonName:t,view:s,className:l}=e,c=(0,o.kP)(),d=(0,o.p9)(),u=(0,i.useRouter)(),p=(0,a.useMemo)(()=>{switch(s){case"log_in":default:return r.Z.AUTH_LOGIN.path;case"sign_up":return r.Z.AUTH_SIGNUP.path}},[s]);async function h(){let{error:e}=await d.auth.signOut();e&&console.error("Error logging out:",e.message),u.reload()}return(0,n.jsx)(a.Fragment,{children:(0,n.jsx)("button",{type:"button",onClick:function(){c?h():u.push(p)},className:l,children:c?"Logout":t})})},c=s(62869),d=s(69304),u=s(99464),p=s(20653),h=s(76679),S=s(60044),m=s(98420),E=s(82023),g=s(52636),A=s(37337),f=s(14938),x=s(38220),N=s(98728),O=s(56096),T=s(32062),b=s(95805),I=s(49232),R=s(55455),_=s(71769),C=s(28768),v=s(66337),L=s(48736),j=s(65621),w=s(37806),y=s(82718);let U=[{title:"Solutions",path:"#solutions",icon:h.Z,hasDropdown:!0,megaMenu:!0,categories:[{title:"COMPANY SIZE",items:[{title:"Enterprise",path:r.Z.ENTERPRISE_SOLUTIONS.path,icon:S.Z,description:"For large organizations"},{title:"Government",path:r.Z.GOVERNMENT_SOLUTIONS.path,icon:S.Z,description:"For government organizations"},{title:"Agencies",path:r.Z.AGENCIES_SOLUTIONS.path,icon:m.Z,description:"For agencies looking to scale quickly"}]},{title:"USE CASE",items:[{title:"AI Agents",path:r.Z.AI_AGENTS_SOLUTIONS.path,icon:E.Z,description:"For creating AI agents to automate tasks"},{title:"Automations",path:r.Z.WORKFLOW_AUTOMATIONS_SOLUTIONS.path,icon:g.Z,description:"For automating workflows and tasks"},{title:"Chatbots",path:r.Z.CHATBOTS_SOLUTIONS.path,icon:A.Z,description:"For creating chatbots to automate tasks"},{title:"Self-Hosted",path:r.Z.SELF_HOSTED.path,icon:f.Z,description:"For self-hosting your own AI solutions"}]},{title:"INDUSTRY",items:[{title:"Healthcare",path:r.Z.HEALTHCARE_SOLUTIONS.path,icon:x.Z,description:"For healthcare organizations"},{title:"Operations",path:r.Z.OPERATIONS_SOLUTIONS.path,icon:N.Z,description:"For operations organizations"},{title:"Education",path:r.Z.EDUCATION_SOLUTIONS.path,icon:O.Z,description:"For education organizations"},{title:"Government",path:r.Z.GOVERNMENT_SOLUTIONS.path,icon:T.Z,description:"For government organizations"}]}]},{title:"Templates",path:r.Z.TEMPLATES.path,icon:h.Z,hasDropdown:!1},{title:"Customers",path:r.Z.CUSTOMERS.path,icon:b.Z,hasDropdown:!1},{title:"Pricing",path:r.Z.PRICING.path,icon:I.Z,hasDropdown:!1},{title:"Resources",path:"#resources",icon:R.Z,hasDropdown:!0,megaMenu:!0,categories:[{title:"LEARN",items:[{title:"Docs",path:u.qk,icon:_.Z,description:"Learn how to use Stack AI"},{title:"Integrations",path:r.Z.INTEGRATIONS.path,icon:C.Z,description:"Integrate with Stack AI"},{title:"Security",path:r.Z.SECURITY.path,icon:v.Z,description:"Learn about our security practices"},{title:"Blog",path:r.Z.BLOG.path,icon:L.Z,description:"Read the latest news from us"},{title:"Changelog",path:r.Z.CHANGELOG.path,icon:j.Z,description:"Follow our product updates"}]},{title:"COMMUNITY",items:[{title:"Discord",path:u.xz,icon:p.dsO,description:"Join our community on Discord"},{title:"Careers",path:"https://www.ycombinator.com/companies/stack-ai/jobs",icon:w.Z,description:"Join our team"}]}]},{title:"Talk to us",path:u.Fu,icon:y.Z,hasDropdown:!1}],G=e=>{let{children:t,className:s=""}=e;return(0,n.jsxs)("div",{className:"relative ".concat(s),children:[(0,n.jsx)("div",{className:"h-7.5 w-7.5 absolute inset-0 left-[5px] top-[5px] z-[10] bg-transparent group-hover:bg-white"}),(0,n.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"M4 40L4 -1.43051e-06",stroke:"#E1E1E1"}),(0,n.jsx)("path",{d:"M36 40L36 -1.43051e-06",stroke:"#E1E1E1"}),(0,n.jsx)("path",{d:"M0 4H40",stroke:"#E1E1E1"}),(0,n.jsx)("path",{d:"M0 36H40",stroke:"#E1E1E1"}),(0,n.jsx)("rect",{x:"35",y:"35",width:"2",height:"2",rx:"0.5",fill:"#A6A6A3"}),(0,n.jsx)("rect",{x:"35",y:"3",width:"2",height:"2",rx:"0.5",fill:"#A6A6A3"}),(0,n.jsx)("rect",{x:"3",y:"3",width:"2",height:"2",rx:"0.5",fill:"#A6A6A3"}),(0,n.jsx)("rect",{x:"3",y:"35",width:"2",height:"2",rx:"0.5",fill:"#A6A6A3"})]}),(0,n.jsx)("div",{className:"absolute inset-0 z-[20] flex items-center justify-center",children:t})]})},D=e=>"function"==typeof e&&"displayName"in e,P=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return D(e)?(0,n.jsx)(G,{className:"group-hover:text-blue-600",children:(0,n.jsx)(e,{size:16,strokeWidth:1.2,className:"".concat(t?"text-blue-600":"text-neutral-800"," transition-colors"),"aria-hidden":"true"})}):(0,n.jsx)(G,{className:"group-hover:text-blue-600",children:(0,n.jsx)(e,{className:"h-4 w-4 ".concat(t?"text-blue-600":"text-neutral-800"," transition-colors")})})},M=(e,t,s)=>{if(e){for(let t of e)for(let e of t.items)if(s(e.path))return!0}if(t){for(let e of t)if(s(e.path))return!0}return!1},H=(e,t)=>!!(e&&e.length>0||t&&t.length>0);var F=s(40875),B=s(27648),k=s(99376);function Z(e){let{title:t,icon:s,isActive:r,onToggle:i,isMegaMenu:a,categories:o,dropdownItems:l}=e,d=(0,k.usePathname)()||"",u=e=>!e.startsWith("#")&&(d===e||"/"!==e&&d.startsWith(e)),p=M(o||[],l||[],u);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center hover:text-neutral-600 ".concat(p?"font-medium text-blue-600":"text-neutral-800"),onClick:i,role:"menuitem","aria-haspopup":"true","aria-expanded":r?"true":"false",tabIndex:0,children:[(0,n.jsx)("span",{className:"mr-3",children:P(s,p)}),t]}),(0,n.jsx)(c.z,{variant:H(o||[],l||[])&&p?"secondary":"ghost",size:"sm",className:"rounded-full p-1",onClick:i,"aria-label":r?"Collapse ".concat(t," menu"):"Expand ".concat(t," menu"),children:(0,n.jsx)(F.Z,{size:18,className:"transition-transform duration-200 ".concat(r?"rotate-180":""," ").concat(p?"text-blue-600":""),"aria-hidden":"true"})})]}),a&&r&&o&&(0,n.jsx)("div",{className:"mt-4 space-y-6 pl-2",children:o.map((e,t)=>(0,n.jsxs)("div",{role:"group","aria-labelledby":"mobile-category-".concat(t),children:[(0,n.jsx)("h3",{id:"mobile-category-".concat(t),className:"mb-3 text-xs font-medium text-neutral-400",children:e.title}),(0,n.jsx)("ul",{className:"mb-6 space-y-4",role:"menu",children:e.items.map((e,t)=>{let s=u(e.path);return(0,n.jsx)("li",{role:"none",children:(0,n.jsxs)(B.default,{href:e.path,className:"flex items-start py-2 ".concat(s?"pointer-events-none":""),role:"menuitem",children:[(0,n.jsx)("div",{className:"mr-3 flex-shrink-0",children:"function"==typeof e.icon?(0,n.jsx)(e.icon,{className:"h-6 w-6 ".concat(s?"text-blue-600":"")}):P(e.icon,s)}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-medium ".concat(s||e.highlight?"text-blue-600":"text-neutral-900"),children:e.title}),e.description&&(0,n.jsx)("p",{className:"mt-1 text-xs text-neutral-500",children:e.description})]})]})},t)})})]},t))}),!a&&r&&l&&(0,n.jsx)("ul",{className:"mt-2 space-y-2 pl-8",role:"menu",children:l.map((e,t)=>{let s=u(e.path);return(0,n.jsx)("li",{role:"none",children:(0,n.jsx)(B.default,{href:e.path,className:"block py-2 ".concat(s?"pointer-events-none font-medium text-blue-600":"text-neutral-700 hover:text-neutral-900"),role:"menuitem",children:e.title})},t)})})]})}var W=s(57054);function z(e){let{title:t,megaMenu:s,categories:r,dropdownItems:i}=e,o=(0,k.usePathname)()||"",[l,c]=(0,a.useState)(!1),d=(0,a.useRef)(null);if((0,a.useEffect)(()=>{if(!l)return;let e=new IntersectionObserver(e=>{!e[0].isIntersecting&&l&&c(!1)},{threshold:.1});return d.current&&e.observe(d.current),()=>{e.disconnect()}},[l]),!r&&!i)return(0,n.jsx)(n.Fragment,{});let u=e=>!e.startsWith("#")&&(o===e||"/"!==e&&o.startsWith(e)),p=M(r||[],i||[],u)||(()=>{if("Solutions"===t&&r){for(let e of r)for(let t of e.items)if(u(t.path))return!0}if("Resources"===t&&r){for(let e of r)for(let t of e.items)if(u(t.path))return!0}return!1})();return(0,a.useEffect)(()=>{console.log("pathname",o),c(!1)},[o]),(0,n.jsxs)(W.J2,{open:l,onOpenChange:e=>c(e),children:[(0,n.jsx)(W.xo,{asChild:!0,children:(0,n.jsx)("div",{ref:d,children:(0,n.jsxs)("div",{className:"group flex cursor-pointer select-none items-center px-3 py-2 transition-colors",role:"menuitem","aria-haspopup":"true","aria-expanded":l?"true":"false",tabIndex:0,children:[(0,n.jsx)("span",{className:"".concat(p?"text-blue-600":"text-neutral-800"," transition-colors group-hover:text-blue-600"),children:t}),(0,n.jsx)("div",{className:"ml-1 flex items-center",children:(0,n.jsx)(F.Z,{size:16,className:"transition-all duration-200 ".concat(l?"rotate-180":""," ").concat(p?"text-blue-600":"text-neutral-800"," group-hover:text-blue-600"),"aria-hidden":"true"})})]})})}),(0,n.jsx)(W.yk,{className:"w-auto ".concat(s?(null==r?void 0:r.length)===2?"min-w-[600px]":"min-w-[800px]":"min-w-[240px]"," rounded-lg border bg-white p-0 shadow"),align:"start",sideOffset:8,alignOffset:s?-100:0,role:"menu",children:s&&r?(0,n.jsx)("div",{className:"grid ".concat(r?"grid-cols-".concat(r.length):""),children:r.map((e,t)=>(0,n.jsx)("div",{className:"border-r border-neutral-200 last:border-r-0",role:"group","aria-labelledby":"category-".concat(t),children:(0,n.jsxs)("div",{className:"p-3",children:[(0,n.jsx)("h3",{id:"category-".concat(t),className:"mb-3 text-xs font-medium text-neutral-500",style:{fontFamily:"monospace"},children:e.title}),(0,n.jsx)("ul",{className:"space-y-3",role:"menu",children:e.items.map((e,t)=>{let s=u(e.path);return(0,n.jsx)("li",{role:"none",children:(0,n.jsx)(B.default,{href:e.path,className:"group block ".concat(s?"pointer-events-none":""),role:"menuitem",children:(0,n.jsxs)("div",{className:"mb-2 flex transition-opacity group-hover:opacity-80",children:[(0,n.jsx)("div",{className:"mr-3 flex-shrink-0",children:"function"==typeof e.icon?(0,n.jsx)(e.icon,{className:"h-6 w-6 ".concat(s?"text-blue-600":""," transition-colors group-hover:text-blue-600")}):P(e.icon,s)}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"mb-0.5 text-sm font-medium ".concat(s||e.highlight?"text-blue-600":"text-neutral-900"," transition-colors group-hover:text-blue-600"),children:e.title}),e.description&&(0,n.jsx)("p",{className:"text-xs text-neutral-500",children:e.description})]})]})})},t)})})]})},t))}):(0,n.jsx)("div",{className:"p-4",children:(0,n.jsx)("ul",{className:"space-y-1",role:"menu",children:null==i?void 0:i.map((e,t)=>{let s=u(e.path);return(0,n.jsx)("li",{role:"none",children:(0,n.jsxs)(B.default,{href:e.path,className:"group flex items-center rounded p-2 hover:bg-neutral-100 ".concat(s?"pointer-events-none bg-blue-50 text-blue-600":""),role:"menuitem",children:[(0,n.jsx)("span",{className:"mr-3",children:P(e.icon,s)}),e.title]})},t)})})})})]})}var Y=s(3783);let V=(0,a.forwardRef)((e,t)=>{let{className:s,darkMode:r=!1,...i}=e;return(0,n.jsx)("div",{ref:t,className:(0,Y.cn)("Section-container mx-auto w-11/12 max-w-7xl font-brand",r&&"bg-neutral-900",s),...i})});V.displayName="SectionContainer";var K=s(58293),J=s(33145);let q=()=>{let[e,t]=(0,a.useState)(null),s=(0,k.useRouter)(),i=(0,k.usePathname)()||"",u=(0,o.kP)(),p=(0,a.useRef)(new Map),h=e=>!e.startsWith("#")&&(i===e||"/"!==e&&i.startsWith(e)),S=s=>{e===s?t(null):t(s)};(0,a.useEffect)(()=>{if(null===e)return;let s=new IntersectionObserver(s=>{s[0].isIntersecting||null===e||t(null)},{threshold:.1}),n=p.current.get(e);return n&&s.observe(n),()=>{s.disconnect()}},[e]);let m=()=>{u&&s.push(r.Z.DASHBOARD.path)},E=()=>{u||s.push(r.Z.AUTH_LOGIN.path)},g=()=>{u||s.push(r.Z.AUTH_SIGNUP.path)};return(0,n.jsx)("div",{className:"relative w-full bg-white font-brand",children:(0,n.jsx)(V,{children:(0,n.jsxs)("nav",{"aria-label":"Main navigation",className:"flex h-16 items-center justify-between",children:[(0,n.jsx)("div",{className:"flex-shrink-0",children:(0,n.jsx)(B.default,{href:"/",className:"flex items-center space-x-2 transition-opacity hover:opacity-90","aria-label":"StackAI Home",children:(0,n.jsx)(J.default,{src:"/stack-logo/stack-ai-logo-redesign/dark.svg",alt:"StackAI-logo",width:100,height:100,priority:!0})})}),(0,n.jsx)("div",{className:"mx-8 hidden flex-1 justify-center xl:flex",children:(0,n.jsx)("ul",{className:"flex items-center gap-2",role:"menubar",children:U.map((e,t)=>{let s=h(e.path);return(0,n.jsx)("li",{className:"relative place-content-center text-sm font-medium",role:"none",children:e.hasDropdown?(0,n.jsx)(z,{title:e.title,megaMenu:e.megaMenu,categories:e.categories,dropdownItems:e.dropdownItems}):(0,n.jsx)(B.default,{href:e.path,className:"flex items-center rounded-sm px-3 py-2 hover:text-blue-600 ".concat(s?"text-blue-600 hover:text-blue-600":"text-neutral-800"),role:"menuitem","aria-current":s?"page":void 0,children:e.title})},t)})})}),(0,n.jsx)("div",{className:"hidden items-center space-x-3 xl:flex",children:u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l,{buttonName:"Log in",view:"log_in",className:"rounded-sm px-5 py-2"}),(0,n.jsx)(c.z,{size:"lg",className:"rounded-sm bg-blue-600 px-5 py-2 hover:bg-blue-700","aria-label":"Dashboard",onClick:m,children:"Dashboard"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.z,{variant:"secondary",className:"rounded-sm px-5 py-2",onClick:E,size:"lg","aria-label":"Log in to your account",children:"Log In"}),(0,n.jsx)(c.z,{className:"rounded-sm bg-blue-600 px-5 py-2 hover:bg-blue-700",size:"lg",onClick:g,"aria-label":"Create a new account",children:"Sign Up"})]})}),(0,n.jsx)("div",{className:"flex items-center xl:hidden",children:(0,n.jsxs)(d.yo,{children:[(0,n.jsx)(d.aM,{asChild:!0,children:(0,n.jsx)("button",{className:"text-neutral-600 transition-colors hover:text-neutral-900 focus:outline-none","aria-label":"Open mobile menu","aria-haspopup":"true","aria-expanded":"false",children:(0,n.jsx)(K.Z,{size:20,"aria-hidden":"true"})})}),(0,n.jsx)(d.ue,{side:"left",className:"w-full p-0 sm:max-w-md",role:"dialog","aria-label":"Mobile navigation menu",children:(0,n.jsx)("div",{className:"h-full overflow-auto",children:(0,n.jsxs)("nav",{"aria-label":"Mobile navigation",className:"px-4 py-5",children:[(0,n.jsx)("ul",{role:"menu",children:U.map((t,s)=>{let r=h(t.path);return(0,n.jsx)("li",{className:"border-b border-neutral-100 py-3",role:"none",ref:e=>{e&&p.current.set(s,e)},children:t.hasDropdown?(0,n.jsx)(Z,{title:t.title,icon:t.icon,isActive:e===s,onToggle:()=>S(s),isMegaMenu:!!t.megaMenu,categories:t.categories,dropdownItems:t.dropdownItems}):(0,n.jsxs)(B.default,{href:t.path,className:"flex items-center hover:text-neutral-600 ".concat(r?"font-medium text-blue-600":"text-neutral-800"),role:"menuitem","aria-current":r?"page":void 0,children:[(0,n.jsx)("span",{className:"mr-3",children:P(t.icon,r)}),t.title]})},s)})}),(0,n.jsx)("div",{className:"mt-6 flex flex-col space-y-3",children:u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l,{buttonName:"Log in",view:"log_in",className:"w-full rounded-sm px-5 py-2"}),(0,n.jsx)(c.z,{size:"lg",className:"w-full rounded-sm bg-blue-600 px-5 py-2 hover:bg-blue-700","aria-label":"Dashboard",onClick:m,children:"Dashboard"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.z,{variant:"secondary",className:"w-full rounded-sm px-5 py-2",onClick:E,size:"lg","aria-label":"Log in to your account",children:"Log In"}),(0,n.jsx)(c.z,{className:"w-full rounded-sm bg-blue-600 px-5 py-2 hover:bg-blue-700",size:"lg",onClick:g,"aria-label":"Create a new account",children:"Sign Up"})]})})]})})})]})})]})})})}},89646:function(e,t,s){s.r(t),t.default={src:"/_next/static/media/mit.8e5e6e37.png",height:2e3,width:3e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAHlBMVEWoJyemGCyjITWgQEqiIjeiHjSiHzWgJjqHjo6KiYoIvlnzAAAACnRSTlMCFaARkCYwa5GcjEvLLgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAClJREFUeJwdxsENACAMxLDkWijsvzASfhlU14aVZKbr57Sw29wIFJbwAAoeAGkXjnrxAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5}},57690:function(e,t,s){s.r(t),t.default={src:"/_next/static/media/dark.cd5683f6.svg",height:109,width:466,blurWidth:0,blurHeight:0}},62667:function(e,t,s){s.r(t),t.default={src:"/_next/static/media/light.f666aa1f.svg",height:109,width:466,blurWidth:0,blurHeight:0}}}]);