PageSourceSearch

https://www.sundaebar.ai/_next/static/immutable/chunks/3arp611ifr29g.js

js sundaebar.ai collected 2026-10-05 16:21:05 UTC 24,309 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="919b8e4b-7404-99f1-ba69-46a403f9b240")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,258607,195732,e=>{"use strict";var t=e.i(859721),a=e.i(300235),s=e.i(899179),i=e.i(860097),l=e.i(466691),n=e.i(534792);e.i(572242);var r=e.i(37754),o=e.i(162938),d=e.i(152236);function c(){return(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(n.Skeleton,{className:"h-10 w-28 rounded-lg"}),(0,t.jsxs)("div",{className:"flex items-center gap-1 pr-2",children:[(0,t.jsx)(n.Skeleton,{className:"size-10 rounded-full"}),(0,t.jsx)("span",{className:"size-4"})]})]})}function u(){(0,r.useAuthSync)();let e=(0,s.usePathname)(),n=(0,o.useHydrated)(),{data:u,isLoading:m}=(0,r.useAuthStatus)(),{mutate:h,isPending:x}=(0,r.useSignOut)(),p=(0,r.useFullChatEnabled)()?{href:"/chat",label:"Run Agents"}:{href:"/lab",label:"Agent Lab"},g=e.startsWith("/dashboard");return!n||m||g&&!u?.isAuthenticated?(0,t.jsx)(c,{}):u?.isAuthenticated?(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(a.default,{href:p.href,className:(0,d.cn)((0,l.buttonVariants)({variant:"black"}),"rounded-lg"),children:p.label}),(0,t.jsx)(i.CurrentUserAvatar,{variant:"navigation",signOut:h,isPending:x,profileImage:u.avatarUrl,userName:u.displayName,email:u.email,isAdmin:u.isAdmin,isSeller:u.isSeller,isMiner:u.isMiner})]}):(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"text-body-medium flex items-center gap-2",children:[(0,t.jsx)(a.default,{className:"hover:glossy-border rounded-lg px-3 py-2 hover:bg-gray-300/50 hover:backdrop-blur-[25px]",href:"/login",children:"Log in"}),(0,t.jsx)(a.default,{className:"hover:glossy-border rounded-lg px-3 py-2 hover:bg-gray-300/50 hover:backdrop-blur-[25px]",href:"/sign-up",children:"Sign up"})]}),(0,t.jsx)(a.default,{href:p.href,className:(0,d.cn)((0,l.buttonVariants)({variant:"black"}),"rounded-lg"),children:p.label})]})}var m=e.i(792851),h=e.i(838408),x=e.i(737335),p=e.i(586475),g=e.i(465736),f=e.i(891671),j=e.i(282879),b=e.i(411961),y=e.i(798980),v=e.i(924159),N=e.i(814075),k=e.i(626026),w=e.i(616127),S=e.i(191734),C=e.i(95829);function z(e){return new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"})}function A({listing:e,onSelect:a,date:s}){let i="skill"===e.type,l=[e.organizationName,s?z(s):null].filter(Boolean).join(" · ");return(0,t.jsx)(f.CommandItem,{value:`${e.type}-${e.productId??e.slug}`,onSelect:a,className:"group rounded-lg p-0!",children:(0,t.jsxs)("div",{className:"flex w-full items-center gap-4 px-4 py-3",children:[(0,t.jsx)("div",{className:"bg-border relative size-14 shrink-0 overflow-hidden rounded-lg",children:e.thumbnailUrl?(0,t.jsx)(w.default,{src:e.thumbnailUrl,alt:e.title,fill:!0,className:"object-cover",sizes:"56px"}):i?(0,t.jsx)("div",{className:"bg-muted flex size-full items-center justify-center",children:(0,t.jsx)(w.default,{src:"/images/icons/icon_other.png",alt:"Skill",width:28,height:28,className:"object-contain opacity-60"})}):null}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-foreground text-body-sm-semibold truncate",children:e.title}),l&&(0,t.jsx)("p",{className:"text-muted-foreground text-caption mt-0.5 truncate",children:l})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2 opacity-0 transition-opacity group-hover:opacity-100 group-data-[selected=true]:opacity-100",children:(0,t.jsx)("div",{className:"bg-primary flex size-9 items-center justify-center rounded-full text-white",children:(0,t.jsx)(S.ArrowRight,{className:"size-3.5!"})})})]})})}function _({id:e,title:a,status:s,date:i,onSelect:l}){let n=["Challenge",s.charAt(0).toUpperCase()+s.slice(1),i?z(i):null].filter(Boolean).join(" · ");return(0,t.jsx)(f.CommandItem,{value:`challenge-${e}`,onSelect:l,className:"group rounded-lg p-0!",children:(0,t.jsxs)("div",{className:"flex w-full items-center gap-4 px-4 py-3",children:[(0,t.jsx)("div",{className:"bg-primary/10 flex size-14 shrink-0 items-center justify-center overflow-hidden rounded-lg",children:(0,t.jsx)(C.BadgeOutlineIcon,{className:"text-primary size-6!"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-foreground text-body-sm-semibold truncate",children:a}),(0,t.jsx)("p",{className:"text-muted-foreground text-caption mt-0.5 truncate",children:n})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2 opacity-0 transition-opacity group-hover:opacity-100 group-data-[selected=true]:opacity-100",children:(0,t.jsx)("div",{className:"bg-primary flex size-9 items-center justify-center rounded-full text-white",children:(0,t.jsx)(S.ArrowRight,{className:"size-3.5!"})})})]})})}function M({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,d.cn)("bg-border text-muted-foreground text-caption-medium pointer-events-none inline-flex size-5 items-center justify-center rounded-[6px] select-none",e),...a})}function P({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"kbd-group",className:(0,d.cn)("inline-flex items-center gap-0.5",e),...a})}var L=e.i(826161);let T=[{id:"suggested",label:"Suggested"},{id:"agents",label:"Agents"},{id:"skills",label:"Skills"},{id:"lab",label:"Lab"}];function B({variant:e="default"}){var a;let i=(0,s.useRouter)(),[n,r]=(0,m.useState)(!1),[o,c]=(0,m.useState)("suggested"),[u,h]=(0,m.useState)(""),w=(0,m.useRef)(null),[S]=(0,g.useDebounce)(u,300),C=u!==S,z=u.length>0,I="lab"===o,R="agents"===o,V="skills"===o,U="suggested"===o;(0,m.useEffect)(()=>
2{if("default"!==e)return;let t=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),r(e=>!e))};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e]);let E=e=>{r(e),e||setTimeout(()=>{h(""),c("suggested")},200)},{data:H,isLoading:$}=(a=n?void 0:"__disabled__",(0,v.useQuery)({queryKey:N.publishedProductKeys.featured(a),queryFn:async()=>{let e=new URLSearchParams({featured:"true",sortBy:"created_at",order:"desc",perPage:String(10)});a&&e.set("kind",a);let t=await fetch(`/api/products?${e.toString()}`);if(!t.ok)throw Error("Failed to fetch featured listings");return(await t.json()).data},staleTime:6e4})),{data:F,isLoading:K}=(0,y.usePublishedProductsQuery)(1,50,{search:S,kind:"agent"},n&&S.length>0&&(U||R)),{data:q,isLoading:W}=(0,y.usePublishedProductsQuery)(1,50,{search:S,kind:"skill"},n&&S.length>0&&(U||V)),{data:Q,isLoading:X}=(0,b.useChallenges)({limit:100}),G=(0,m.useMemo)(()=>Q??[],[Q]),J=(0,m.useMemo)(()=>H??[],[H]),Y=(0,m.useMemo)(()=>F?.products??[],[F]),Z=(0,m.useMemo)(()=>q?.products??[],[q]),ee=(0,m.useMemo)(()=>{if(!S)return G;let e=S.toLowerCase();return G.filter(t=>t.title.toLowerCase().includes(e)||t.description?.toLowerCase().includes(e))},[G,S]),et=(0,m.useMemo)(()=>U?z?[]:J:R?z?Y:J.filter(e=>"agent"===e.type):V?z?Z:J.filter(e=>"skill"===e.type):[],[U,R,V,z,Y,Z,J]);(0,m.useEffect)(()=>{w.current?.scrollTo({top:0})},[o,S]);let ea=e=>{i.push(`/${e.type}/${e.slug}`),E(!1)},es=e=>{i.push(`/lab/challenge/${e.id}`),E(!1)},ei=I?C||X:U?z?C||K||W||X:$:R?z?C||K:$:!!V&&(z?C||W:$),el=z?"Results":U?"Featured":R?"Agents":V?"Skills":"Challenges",en=!ei&&(I?0===ee.length:U&&z?0===Y.length&&0===Z.length&&0===ee.length:0===et.length);return(0,t.jsxs)(t.Fragment,{children:["mobile"===e?(0,t.jsx)(l.Button,{variant:"gray",size:"icon",onClick:()=>r(!0),"aria-label":"Search",className:"text-muted-foreground rounded-md",children:(0,t.jsx)(x.Search,{className:"size-4"})}):(0,t.jsxs)("button",{onClick:()=>r(!0),"aria-label":"Search",className:"bg-muted text-muted-foreground text-body-sm flex h-10 shrink-0 cursor-pointer items-center justify-between gap-2 rounded-full border px-3 transition-colors @min-[12rem]:w-full @min-[12rem]:max-w-100 @min-[12rem]:pl-4",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(x.Search,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"text-body-sm-medium hidden truncate @min-[12rem]:inline",children:"Search sundae_bar"})]}),(0,t.jsxs)(P,{children:[(0,t.jsx)(M,{children:"⌘"}),(0,t.jsx)(M,{children:"K"})]})]}),(0,t.jsxs)(f.CommandDialog,{open:n,onOpenChange:E,children:[(0,t.jsx)(j.DialogTitle,{className:"sr-only",children:"Search for Agents, Skills or Challenges"}),(0,t.jsx)(f.CommandInput,{placeholder:"Search for Agents, Skills...",value:u,onValueChange:h,endSlot:z?(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",onClick:()=>h(""),className:"ml-1 shrink-0","aria-label":"Clear search",children:(0,t.jsx)(p.X,{className:"size-3!"})}):void 0}),(0,t.jsxs)(f.CommandList,{className:"h-[55vh] overflow-y-auto",ref:w,children:[(0,t.jsx)("div",{className:"flex items-center gap-2 px-5 py-3",children:T.map(e=>(0,t.jsx)("button",{onClick:()=>c(e.id),disabled:o===e.id,className:(0,d.cn)("text-body-sm-medium cursor-pointer rounded-full border px-4 py-1.5 whitespace-nowrap transition-all",o===e.id?"bg-primary/10 text-primary border-transparent":"text-muted-foreground hover:border-primary hover:text-primary"),children:e.label},e.id))}),(0,t.jsx)("p",{className:"text-foreground text-body-sm-semibold px-5 py-2",children:el}),ei?(0,t.jsx)("div",{className:"flex h-[calc(55vh-6rem)] items-center justify-center",children:(0,t.jsx)(L.Spinner,{className:"text-muted-foreground size-5"})}):en?(0,t.jsx)(D,{title:z?"No results found":I?"No challenges yet":"Nothing to show yet",subtitle:z?"Try a different search term or filter":I?"Check back soon":"Try searching for something specific"}):U?z?(0,t.jsx)(function(){let e=Y.slice(0,3),a=Z.slice(0,3),s=ee.slice(0,3);return(0,t.jsxs)("div",{className:"px-2 pb-3",children:[e.length>0&&(0,t.jsx)(O,{label:"Agents",totalCount:Y.length,onViewAll:()=>c("agents"),children:e.map(e=>(0,t.jsx)(A,{listing:(0,k.normalizeProduct)(e),date:e.product_package?.updated_at??e.product_package?.created_at,onSelect:()=>ea(e)},e.id))}),a.length>0&&(0,t.jsx)(O,{label:"Skills",totalCount:Z.length,onViewAll:()=>c("skills"),children:a.map(e=>(0,t.jsx)(A,{listing:(0,k.normalizeProduct)(e),date:e.product_package?.updated_at??e.product_package?.created_at,onSelect:()=>ea(e)},e.id))}),s.length>0&&(0,t.jsx)(O,{label:"Lab Challenges",totalCount:ee.length,onViewAll:()=>c("lab"),children:s.map(e=>(0,t.jsx)(_,{id:e.id,title:e.title,status:e.status,date:e.updated_at??e.created_at,onSelect:()=>es(e)},e.id))})]})},{}):(0,t.jsx)(function(){let e=J.filter(e=>"agent"===e.type),a=J.filter(e=>"skill"===e.type);return(0,t.jsxs)("div",{className:"px-2 pb-3",children:[e.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground text-caption-medium px-3 pt-2 pb-1",children:"Agents"}),e.map(e=>(0,t.jsx)(A,{listing:(0,k.normalizeProduct)(e),date:e.product_package?.updated_at??e.product_package?.created_at,onSelect:()=>ea(e)},e.id))]}),a.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground text-caption-medium px-3 pt-2 pb-1",children:"Skills"}),a.map(e=>(0,t.jsx)(A,{listing:(0,k.normalizeProduct)(e),date:e.product_package?.updated_at??e.product_package?.created_at,onSelect:()=>ea(e)},e.id))]})]})},{}):(0,t.jsx)("div",{className:"px-2 pb-3",children:I?ee.map(e=>(0,t.jsx)(_,{id:e.id,title:e.title,status:e.status,date:e.updated_at??e.created_at,onSelect:()=>es(e)},e.id)):et.map(e=>(0,t.jsx)(A,{listing:(0,k.normalizeProduct)(e),date:e.product_package?.updated_at??e.product_package?.created_at,onSelect:()=>ea(e)},e.id))})]})]})]})}function O({label:e,totalCount:a,onViewAll:s,children:i}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground text-caption-medium px-3 pt-2 pb-1",children:e}),i,a>3&&(0,t.jsx)(f.CommandItem,{value:`view-all-${e}`,onSelect:s,className:"rounded-lg p-0!",children:(0,t.jsxs)("div",{className:"text-primary text-body-sm-medium flex w-full items-center justify-between px-4 py-2.5",children:[(0,t.jsxs)("span",{children:["View all ",a," ",e.toLowerCase()]}),(0,t.jsx)(h.ChevronRight,{className:"size-4!"})]})})]})}
2function D({title:e,subtitle:a}){return(0,t.jsxs)(f.CommandEmpty,{className:"flex h-[calc(55vh-6rem)] flex-col items-center justify-center gap-1 px-5 text-center",children:[(0,t.jsx)("p",{className:"text-foreground text-body-sm-medium",children:e}),(0,t.jsx)("p",{className:"text-muted-foreground text-caption",children:a})]})}var I=e.i(540796);let R=(0,I.default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]),V=(0,I.default)("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),U=(0,I.default)("milestone",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z",key:"1btarq"}]]),E=(0,I.default)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]]),H=[{name:"Marketplace",href:"/explore"},{name:"Agent Lab",href:"/lab"}],$=[{name:"About",href:"/about",description:"Our mission, team, and story",icon:V},{name:"Roadmap",href:"/roadmap",description:"What we're building and when",icon:U},{name:"Enterprise",href:"/enterprise",description:"Custom built AI Agents",icon:R},{name:"Blog",href:"/news",description:"Product news and updates",icon:E}];var F=e.i(49102),K=e.i(560836),q=e.i(966983);let W={sm:{tile:"size-7 rounded-lg",image:"size-4",lucide:"size-3",imageSizes:"16px"},md:{tile:"size-10 rounded-xl",image:"size-6",lucide:"size-4",imageSizes:"24px"}},Q="bg-background flex shrink-0 items-center justify-center overflow-hidden border";function X({icon:e,size:a="md",className:s}){let i=W[a];return"string"==typeof e?(0,t.jsx)("div",{className:(0,d.cn)(Q,i.tile,s),children:(0,t.jsx)("div",{className:(0,d.cn)("relative",i.image),children:(0,t.jsx)(w.default,{src:e,alt:"",fill:!0,sizes:i.imageSizes,quality:100,className:"object-contain"})})}):(0,t.jsx)("div",{className:(0,d.cn)(Q,i.tile,s),children:(0,t.jsx)(e,{className:(0,d.cn)("text-muted-foreground",i.lucide)})})}function G(){let[e,s]=(0,m.useState)(!1);return(0,t.jsxs)("div",{className:"relative z-50",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,t.jsxs)("button",{onClick:()=>s(!e),className:(0,d.cn)("text-body-medium relative flex cursor-pointer items-center gap-1 rounded-lg py-2 pr-2 pl-3","hover:glossy-border hover:bg-gray-300/50 hover:backdrop-blur-[25px]",e&&"glossy-border bg-gray-300/50 backdrop-blur-[25px]"),children:["About",(0,t.jsx)(q.motion.div,{className:"mt-1",animate:{rotate:180*!!e},transition:{duration:.2},children:(0,t.jsx)(F.ChevronDown,{className:"size-4"})})]}),(0,t.jsx)(K.AnimatePresence,{children:e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute top-full left-0 h-2 w-full"}),(0,t.jsxs)(q.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},className:"glossy-border absolute top-full left-1/2 z-50 mt-2 flex -translate-x-1/2 rounded-3xl bg-gray-300/50 p-1 shadow-2xl backdrop-blur-[25px] xl:left-0 xl:translate-x-0",children:[(0,t.jsx)("div",{className:"bg-background grid w-lg grid-cols-2 gap-1 rounded-[20px] p-4",children:$.map(e=>(0,t.jsxs)(a.default,{href:e.href,className:"group hover:bg-foreground
2/5 flex items-start gap-3 rounded-2xl p-2 transition-all",children:[(0,t.jsx)(X,{icon:e.icon,size:"md"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("span",{className:"text-body-medium whitespace-nowrap",children:e.name}),(0,t.jsx)("p",{className:"text-caption mt-0.5 text-gray-800",children:e.description})]})]},e.name))}),(0,t.jsxs)("div",{className:"flex w-48 flex-col justify-center gap-1 px-6 py-4 xl:w-56",children:[(0,t.jsx)("h3",{className:"text-body-semibold text-foreground",children:"sundae_bar"}),(0,t.jsx)("p",{className:"text-body-sm-tight text-gray-800",children:"The go-to commercial platform for AI agents in business, deploying specialised agents into real operational workflows."})]})]})]})})]})}e.s(["DesktopNav",0,function(){return(0,t.jsxs)("nav",{"aria-label":"Primary",className:"hidden min-w-0 flex-1 items-center lg:flex",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-x-2",children:[H.map(e=>(0,t.jsx)(a.default,{href:e.href,className:"text-body-medium hover:glossy-border relative flex items-center rounded-lg px-3 py-2 hover:bg-gray-300/50 hover:backdrop-blur-[25px]",children:e.name},e.href)),(0,t.jsx)(G,{})]}),(0,t.jsx)("div",{className:"@container ml-2 flex min-w-0 flex-1 items-center",children:(0,t.jsx)("div",{className:"flex w-full min-w-0 items-center @min-[12rem]:justify-center @min-[12rem]:pl-6",children:(0,t.jsx)(B,{})})}),(0,t.jsx)("div",{className:"ml-4 flex min-w-70 shrink-0 items-center justify-end xl:ml-8",children:(0,t.jsx)(u,{})})]})}],258607);let J=(0,I.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var Y=e.i(146012),Z=e.i(569135);function ee(){return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,t.jsx)(n.Skeleton,{className:"h-10 w-full rounded-2xl"}),(0,t.jsx)(n.Skeleton,{className:"h-10 w-full rounded-2xl"})]})}function et({handleNavigation:e}){(0,r.useAuthSync)();let n=(0,s.usePathname)(),d=(0,o.useHydrated)(),{data:c,isLoading:u}=(0,r.useAuthStatus)(),{mutate:m,isPending:h}=(0,r.useSignOut)(),x=n.startsWith("/dashboard");return!d||u||x&&!c?.isAuthenticated?(0,t.jsx)(ee,{}):c?.isAuthenticated?(0,t.jsx)(i.CurrentUserAvatar,{variant:"navigation-mobile",signOut:()=>{e(),m()},isPending:h,profileImage:c.avatarUrl,userName:c.displayName,email:c.email,isAdmin:c.isAdmin,isSeller:c.isSeller,isMiner:c.isMiner,handleNavigation:e}):(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,t.jsx)(l.Button,{className:"w-full rounded-2xl",variant:"default",size:"lg",asChild:!0,children:(0,t.jsx)(a.default,{href:"/login",onClick:e,children:"Log in"})}),(0,t.jsx)(l.Button,{variant:"gray",size:"lg",asChild:!0,children:(0,t.jsx)(a.default,{href:"/sign-up",onClick:e,children:"Sign up"})})]})}e.s(["default",0,function({onOpenChange:e,useContainer:i=!0}){let[n,r]=(0,m.useState)(!1),[o,c]=(0,m.useState)(!1),u=(0,s.usePathname)(),h=(0,Z.useIsTablet)(),x=()=>{r(!1),c(!1)};return(0,m.useEffect)(()=>{h||(r(!1),c(!1),e?.(!1))},[h,e]),(0,t.jsxs)("div",{className:"flex items-center gap-2 lg:hidden",children:[(0,t.jsx)(B,{variant:"mobile"}),(0,t.jsxs)(Y.Sheet,{open:n,onOpenChange:t=>{r(t),e?.(t)},modal:!1,children:[(0,t.jsx)(Y.SheetTrigger,{asChild:!0,children:(0,t.jsx)(l.Button,{variant:"gray",size:"icon",className:"rounded-md","aria-label":"Toggle menu",children:n?(0,t.jsx)(p.X,{className:"text-muted-foreground size-4"}):(0,t.jsx)(J,{className:"text-muted-foreground size-4"})})}),(0,t.jsxs)(Y.SheetContent,{side:"left",className:"z-40 size-full max-w-full border-0 p-0 sm:max-w-full",overlayClassName:"hidden",showCloseButton:!1,autoFocus:!1,children:[(0,t.jsxs)(Y.SheetHeader,{className:"sr-only",children:[(0,t.jsx)(Y.SheetTitle,{children:"Menu"}),(0,t.jsx)(Y.SheetDescription,{children:"sundae_bar menu"})]}),(0,t.jsxs)("div",{className:(0,d.cn)("flex h-full flex-col justify-between pt-[calc(var(--header-height)+1.5rem)] pb-6",i?"container":"px-6"),children:[(0,t.jsxs)("nav",{"aria-label":"Primary",className:"flex flex-col gap-2",children:[H.map(e=>(0,t.jsx)(a.default,{href:e.href,onClick:x,className:(0,d.cn)("text-foreground hover:bg-foreground
2/10 rounded-lg px-3 py-2 text-xl font-medium transition-colors",u.startsWith(e.href)&&"bg-foreground/5"),children:e.name},e.href)),(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{onClick:()=>c(!o),className:"hover:bg-foreground/10 flex w-full cursor-pointer items-center justify-between rounded-lg py-2 pr-2 pl-3 text-left transition-colors",children:[(0,t.jsx)("span",{className:"text-foreground text-xl font-medium",children:"About"}),(0,t.jsx)(q.motion.div,{animate:{rotate:180*!!o},transition:{duration:.2},children:(0,t.jsx)(F.ChevronDown,{className:"text-foreground size-4"})})]}),(0,t.jsx)(K.AnimatePresence,{initial:!1,children:o&&(0,t.jsx)(q.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeOut"},className:"overflow-hidden",children:(0,t.jsx)("div",{className:"flex flex-col gap-1 pt-2",children:$.map((e,s)=>(0,t.jsx)(q.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2,delay:.05*s},children:(0,t.jsxs)(a.default,{href:e.href,onClick:x,className:(0,d.cn)("text-foreground hover:bg-foreground
2/5 flex h-12 items-center gap-2 rounded-2xl px-3 py-2 text-base font-normal transition-colors",u.startsWith(e.href)&&"bg-foreground/5"),children:[(0,t.jsx)(X,{icon:e.icon,size:"sm"}),e.name]})},e.name))})})})]})]}),(0,t.jsx)(et,{handleNavigation:x})]})]})]})]})}],195732)},146012,e=>{"use strict";var t=e.i(859721),a=e.i(102550),s=e.i(420119),i=e.i(152236);function l({...e}){return(0,t.jsx)(a.Portal,{"data-slot":"sheet-portal",...e})}function n({className:e,...s}){return(0,t.jsx)(a.Overlay,{"data-slot":"sheet-overlay",className:(0,i.cn)("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...s})}e.s(["Sheet",0,function({...e}){return(0,t.jsx)(a.Root,{"data-slot":"sheet",...e})},"SheetContent",0,function({className:e,children:r,side:o="right",overlayClassName:d,showCloseButton:c=!0,...u}){return(0,t.jsxs)(l,{children:[(0,t.jsx)(n,{className:d}),(0,t.jsxs)(a.Content,{"data-slot":"sheet-content",className:(0,i.cn)("bg-background data-[state=closed]:animate-out data-[state=open]:animate-in fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===o&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===o&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===o&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===o&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...u,children:[r,c&&(0,t.jsxs)(a.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(s.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"SheetDescription",0,function({className:e,...s}){return(0,t.jsx)(a.Description,{"data-slot":"sheet-description",className:(0,i.cn)("text-muted-foreground text-body-sm",e),...s})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.cn)("flex flex-col gap-1.5 p-4",e),...a})},"SheetTitle",0,function({className:e,...s}){return(0,t.jsx)(a.Title,{"data-slot":"sheet-title",className:(0,i.cn)("text-foreground font-semibold",e),...s})},"SheetTrigger",0,function({...e}){return(0,t.jsx)(a.Trigger,{"data-slot":"sheet-trigger",...e})}])}]);
3
4//# debugId=919b8e4b-7404-99f1-ba69-46a403f9b240

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.