PageSourceSearch

https://animox.ai/_next/static/chunks/982c71606371363c.js?dpl=dpl_9wpjvzWBfA5dF18ywne8c1sAtc74

js animox.ai collected 2026-10-05 12:51:55 UTC 48,170 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41091,394246,e=>{"use strict";var t=e.i(413274),n=e.i(975157);function a({className:e,children:a}){return(0,t.jsx)("div",{className:(0,n.cn)("container","mx-auto max-w-7xl",e),children:a})}e.s(["default",()=>a],41091);var i=e.i(519455),r=e.i(945228),s=e.i(143666),o=e.i(669701),l=e.i(43764),c=e.i(450549),d=e.i(242092),u=e.i(862667);function m(){let{theme:e,setTheme:a}=(0,d.useTheme)(),[m,f]=(0,u.useState)(!1),h=(0,c.useTranslations)("Common.mode");return((0,u.useEffect)(()=>{f(!0)},[]),r.websiteConfig.ui.mode?.enableSwitch)?m?(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-full border p-1",children:[(0,t.jsx)(i.Button,{variant:"ghost",size:"icon",className:(0,n.cn)("size-6 px-0 rounded-full","light"===e&&"bg-muted text-foreground"),onClick:()=>a("light"),"aria-label":h("light"),children:(0,t.jsx)(l.SunIcon,{className:"size-4"})}),(0,t.jsx)(i.Button,{variant:"ghost",size:"icon",className:(0,n.cn)("size-6 px-0 rounded-full","dark"===e&&"bg-muted text-foreground"),onClick:()=>a("dark"),"aria-label":h("dark"),children:(0,t.jsx)(o.MoonIcon,{className:"size-4"})}),(0,t.jsx)(i.Button,{variant:"ghost",size:"icon",className:(0,n.cn)("size-6 px-0 rounded-full","system"===e&&"bg-muted text-foreground"),onClick:()=>a("system"),"aria-label":h("system"),children:(0,t.jsx)(s.LaptopIcon,{className:"size-4"})})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-full border p-1",children:[(0,t.jsx)("div",{className:"size-6 px-0 rounded-full"}),(0,t.jsx)("div",{className:"size-6 px-0 rounded-full"}),(0,t.jsx)("div",{className:"size-6 px-0 rounded-full"})]}):null}e.s(["ModeSwitcherHorizontal",()=>m],394246)},44604,e=>{"use strict";var t=e.i(413274),n=e.i(41091),a=e.i(870053),i=e.i(394246),r=e.i(77607),s=e.i(450549),o=e.i(945228);function l(e){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 512 512",...e,children:[(0,t.jsx)("title",{children:"Bluesky"}),(0,t.jsx)("path",{fill:"currentColor",d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2c-18.2 64.8-84.4 81.4-143.3 71.3C456 322 482.2 380 425.6 438c-107.4 110.2-154.3-27.6-166.3-62.9c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"})]})}function c(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91a338 338 0 0 0-14.9 30.6a447.9 447.9 0 0 0-134.426 0a310 310 0 0 0-15.135-30.6a1.89 1.89 0 0 0-1.924-.91a483.7 483.7 0 0 0-119.688 37.107a1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375a487.7 487.7 0 0 0 146.825 74.189a1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588a321 321 0 0 1-45.868-21.853a1.885 1.885 0 0 1-.185-3.126a251 251 0 0 0 9.109-7.137a1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233a235 235 0 0 0 9.132 7.16a1.884 1.884 0 0 1-.162 3.126a301.4 301.4 0 0 1-45.89 21.83a1.875 1.875 0 0 0-1 2.611a391 391 0 0 0 30.014 48.815a1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239c0 32.654-23.41 59.241-52.843 59.241m195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239c0 32.654-23.177 59.241-52.844 59.241"})})}function d(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 512 512",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256c0 120 82.7 220.8 194.2 248.5V334.2h-52.8V256h52.8v-33.7c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287v175.9C413.8 494.8 512 386.9 512 256"})})}var u=e.i(448929);function m(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:42,he
1ight:48,viewBox:"0 0 448 512",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9S287.7 141 224.1 141m0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7s74.7 33.5 74.7 74.7s-33.6 74.7-74.7 74.7m146.4-194.3c0 14.9-12 26.8-26.8 26.8c-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8s26.8 12 26.8 26.8m76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9c-26.2-26.2-58-34.4-93.9-36.2c-37-2.1-147.9-2.1-184.9 0c-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9c1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0c35.9-1.7 67.7-9.9 93.9-36.2c26.2-26.2 34.4-58 36.2-93.9c2.1-37 2.1-147.8 0-184.8M398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6c-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6c-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6c29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6c11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1"})})}function f(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:42,he
1ight:48,viewBox:"0 0 448 512",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3M135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5c0 21.3-17.2 38.5-38.5 38.5m282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7c-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5c67.2 0 79.7 44.3 79.7 101.9z"})})}function h(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:448,height:512,viewBox:"0 0 448 512",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M433 179.11c0-97.2-63.71-125.7-63.71-125.7c-62.52-28.7-228.56-28.4-290.48 0c0 0-63.72 28.5-63.72 125.7c0 115.7-6.6 259.4 105.63 289.1c40.51 10.7 75.32 13 103.33 11.4c50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.5 102.5 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7c56.12-6.7 105-41.3 111.23-72.9c9.8-49.8 9-121.5 9-121.5m-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175c25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5l11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1c23.71 27.3 18.4 53 18.4 175z"})})}function g(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:496,height:512,viewBox:"0 0 496 512",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M248 8C111.033 8 0 119.033 0 256s111.033 248 248 248s248-111.033 248-248S384.967 8 248 8m114.952 168.66c-3.732 39.215-19.881 134.378-28.1 178.3c-3.476 18.584-10.322 24.816-16.948 25.425c-14.4 1.326-25.338-9.517-39.287-18.661c-21.827-14.308-34.158-23.215-55.346-37.177c-24.485-16.135-8.612-25 5.342-39.5c3.652-3.793 67.107-61.51 68.335-66.746c.153-.655.3-3.1-1.154-4.384s-3.59-.849-5.135-.5q-3.283.746-104.608 69.142q-14.845 10.194-26.894 9.934c-8.855-.191-25.888-5.006-38.551-9.123c-15.531-5.048-27.875-7.717-26.8-16.291q.84-6.7 18.45-13.7q108.446-47.248 144.628-62.3c68.872-28.647 83.183-33.623 92.511-33.789c2.052-.034 6.639.474 9.61 2.885a10.45 10.45 0 0 1 3.53 6.716a43.8 43.8 0 0 1 .417 9.769"})})}function x(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:42,he
1ight:48,viewBox:"0 0 448 512",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M448 209.91a210.06 210.06 0 0 1-122.77-39.25v178.72A162.55 162.55 0 1 1 185 188.31v89.89a74.62 74.62 0 1 0 52.23 71.18V0h88a121 121 0 0 0 1.86 22.17A122.18 122.18 0 0 0 381 102.39a121.43 121.43 0 0 0 67 20.14Z"})})}function p(e){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 512 512",...e,children:[(0,t.jsx)("title",{children:"X (Twitter)"}),(0,t.jsx)("path",{fill:"currentColor",d:"M389.2 48h70.6L305.6 224.2L487 464H345L233.7 318.6L106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z"})]})}function v(e){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 512 512",...e,children:[(0,t.jsx)("title",{children:"YouTube"}),(0,t.jsx)("path",{fill:"currentColor",d:"M508.64 148.79c0-45-33.1-81.2-74-81.2C379.24 65 322.74 64 265 64h-18c-57.6 0-114.2 1-169.6 3.6C36.6 67.6 3.5 104 3.5 149C1 184.59-.06 220.19 0 255.79q-.15 53.4 3.4 106.9c0 45 33.1 81.5 73.9 81.5c58.2 2.7 117.9 3.9 178.6 3.8q91.2.3 178.6-3.8c40.9 0 74-36.5 74-81.5c2.4-35.7 3.5-71.3 3.4-107q.34-53.4-3.26-106.9M207 353.89v-196.5l145 98.2Z"})]})}var w=e.i(30967),j=e.i(520133),b=e.i(975157),C=e.i(989008);function N({className:e}){let N,y,k=(0,s.useTranslations)(),R=[{title:(N=(0,s.useTranslations)("Marketing.footer"))("product.title"),items:[{title:N("product.items.download"),href:r.Routes.Download,external:!1},{title:N("product.items.pricing"),href:r.Routes.Pricing,external:!1},{title:N("product.items.gallery"),href:r.Routes.Gallery,external:!1},{title:N("product.items.blog"),href:r.Routes.Blog,external:!1}]},{title:N("resources.title"),items:[{title:N("resources.items.changelog"),href:r.Routes.Changelog,external:!1},{title:N("resources.items.contact"),href:r.Routes.Contact,external:!1}]},{title:N("company.title"),items:[{title:N("company.items.about"),href:r.Routes.About,external:!1},{title:N("company.items.contact"),href:r.Routes.Contact,external:!1}]},{title:N("legal.title"),items:[{title:N("legal.items.cookiePolicy"),href:r.Routes.CookiePolicy,external:!1},{title:N("legal.items.privacyPolicy"),href:r.Routes.PrivacyPolicy,external:!1},{title:N("legal.items.termsOfService"),href:r.Routes.TermsOfService,external:!1}]}],L=(y=[],o.websiteConfig.metadata.social?.github&&y.push({title:"GitHub",href:o.websiteConfig.metadata.social.github,icon:(0,t.jsx)(u.GitHubIcon,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.twitter&&y.push({title:"Twitter",href:o.websiteConfig.metadata.social.twitter,icon:(0,t.jsx)(p,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.blueSky&&y.push({title:"Bluesky",href:o.websiteConfig.metadata.social.blueSky,icon:(0,t.jsx)(l,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.mastodon&&y.push({title:"Mastodon",href:o.websiteConfig.metadata.social.mastodon,icon:(0,t.jsx)(h,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.discord&&y.push({title:"Discord",href:o.websiteConfig.metadata.social.discord,icon:(0,t.jsx)(c,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.youtube&&y.push({title:"YouTube",href:o.websiteConfig.metadata.social.youtube,icon:(0,t.jsx)(v,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.linkedin&&y.push({title:"LinkedIn",href:o.websiteConfig.metadata.social.linkedin,icon:(0,t.jsx)(f,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.facebook&&y.push({title:"Facebook",href:o.websiteConfig.metadata.social.facebook,icon:(0,t.jsx)(d,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.instagram&&y.push({title:"Instagram",href:o.websiteConfig.metadata.social.instagram,icon:(0,t.jsx)(m,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.tiktok&&y.push({title:"TikTok",href:o.websiteConfig.metadata.social.tiktok,icon:(0,t.jsx)(x,{className:"size-4 shrink-0"})}),o.websiteConfig.metadata.social?.telegram&&y.push({title:"Telegram",href:o.websiteConfig.metadata.social.telegram,icon:(0,t.jsx)(g,{className:"size-4 shrink-0"})}),o.websiteConfig.mail.supportEmail&&y.push({title:"Email",href:`mailto:${o.websiteConfig.mail.supportEmail}`,icon:(0,t.jsx)(w.MailIcon,{className:"size-4 shrink-0"})}),y),M=(0,j.useLocalePathname)(),E=o.websiteConfig.friendlyLinks?.items??[],z=o.websiteConfig.footerBadges?.items??[];return(0,t.jsxs)("footer",{className:(0,b.cn)("border-t",e),children:[(0,t.jsx)(n.default,{className:"px-4",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-8 py-16 md:grid-cols-6",children:[(0,t.jsx)("div",{className:"flex flex-col items-start col-span-full md:col-span-2",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"items-center space-x-2 flex",children:[(0,t.jsx)(a.Logo,{}),(0,t.jsx)("span",{className:"text-xl font-semibold",children:k("Metadata.name")}
1)]}),(0,t.jsx)("p",{className:"text-muted-foreground text-base py-2 md:pr-12",children:k("Marketing.footer.tagline")}),(0,t.jsx)("nav",{"aria-label":"Social links",className:"flex items-center gap-4 py-2",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:L?.map(e=>(0,t.jsx)("a",{href:e.href||"#",target:"_blank",rel:"noreferrer","aria-label":e.title,className:"border border-border inline-flex size-8 items-center justify-center rounded-full hover:bg-primary/10 hover:text-primary hover:border-primary/30 transition-all duration-200",children:e.icon?e.icon:null},e.title))})})]})}),R?.map(e=>(0,t.jsxs)("div",{className:"col-span-1 md:col-span-1 items-start",children:[(0,t.jsx)("span",{className:"text-sm font-semibold uppercase",children:e.title}),(0,t.jsx)("ul",{className:"mt-4 list-inside space-y-3",children:e.items?.map(e=>e.href&&(0,t.jsx)("li",{children:(0,t.jsx)(j.LocaleLink,{href:e.href||"#",target:e.external?"_blank":void 0,className:(0,b.cn)("text-sm text-muted-foreground transition-colors duration-150 hover:text-primary",!e.external&&!e.href.includes("#")&&("/"===e.href?"/"===M:M.startsWith(e.href))&&"font-semibold text-primary"),children:e.title})},e.title))})]},e.title))]})}),(0,t.jsx)("div",{className:"border-t py-8",children:(0,t.jsxs)(n.default,{className:"px-4 flex flex-col gap-4 md:flex-row md:items-center",children:[(0,t.jsxs)("span",{className:"text-muted-foreground text-sm md:flex-1",children:["© ",new Date().getFullYear()," ",k("Metadata.name"),". All Rights Reserved."]}),(0,t.jsxs)("div",{className:"flex min-h-8 flex-col items-center justify-center gap-3 md:flex-1",children:[z.length>0?(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-3",children:z.map(e=>(0,t.jsx)(j.LocaleLink,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,className:"shrink-0 opacity-70 grayscale transition-all duration-300 hover:opacity-100 hover:grayscale-0","aria-label":e.title,children:(0,t.jsx)(C.default,{src:e.imageSrc,alt:e.imageAlt,width:e.width,height:e.height,className:"h-8 w-auto"})},e.title))}):null,E.length>0?(0,t.jsx)("nav",{"aria-label":"Friendly links",className:"flex flex-wrap items-center justify-center gap-x-4 gap-y-2",children:E.map(e=>(0,t.jsx)(j.LocaleLink,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,className:"text-sm text-muted-foreground transition-colors duration-150 hover:text-primary",children:e.title},e.title))}):null]}),(0,t.jsx)("div",{className:"flex items-center justify-center md:justify-end",children:(0,t.jsx)(i.ModeSwitcherHorizontal,{})})]})})]})}e.s(["Footer",()=>N],44604)},91976,e=>{"use strict";var t=e.i(413274),n=e.i(920932),a=e.i(41091),i=e.i(870053),r=e.i(799985),s=e.i(967489),o=e.i(945228),l=e.i(520133),c=e.i(744705),d=e.i(658912),u=e.i(705301),m=e.i(676993),f=e.i(862667);function h(){let e=(0,l.useLocaleRouter)(),n=(0,l.useLocalePathname)(),a=(0,m.useParams)(),i=(0,u.useLocale)(),{currentLocale:r,setCurrentLocale:h}=(0,d.useLocaleStore)(),[,g]=(0,f.useTransition)();return Object.keys(o.websiteConfig.i18n.locales).length>1?((0,f.useEffect)(()=>{h(i)},[i,h]),(0,t.jsxs)(s.Select,{defaultValue:i,value:r,onValueChange:t=>{h(t),g(()=>{e.replace({pathname:n,params:a},{locale:t})})},children:[(0,t.jsx)(s.SelectTrigger,{className:"w-fit",children:(0,t.jsx)(s.SelectValue,{placeholder:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[o.websiteConfig.i18n.locales[c.DEFAULT_LOCALE].flag&&(0,t.jsx)("span",{className:"text-lg",children:o.websiteConfig.i18n.locales[c.DEFAULT_LOCALE].flag}),(0,t.jsx)("span",{children:o.websiteConfig.i18n.locales[c.DEFAULT_LOCALE].name})]}),children:r&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[o.websiteConfig.i18n.locales[r].flag&&(0,t.jsx)("span",{className:"text-lg",children:o.websiteConfig.i18n.locales[r].flag}),(0,t.jsx)("span",{children:o.websiteConfig.i18n.locales[r].name})]})})}),(0,t.jsx)(s.SelectContent,{children:Object.entries(o.websiteConfig.i18n.locales).map(([e,n])=>(0,t.jsx)(s.SelectItem,{value:e,className:"flex items-center gap-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[n.flag&&(0,t.jsx)("span",{className:"text-md",children:n.flag}),(0,t.jsx)("span",{children:n.name})]})},e))})]})):null}var g=e.i(394246),x=e.i(519455),p=e.i(297651),p=p;function v({...e}){return(0,t.jsx)(p.Root,{"data-slot":"collapsible",...e})}function w({...e}){return(0,t.jsx)(p.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function j({...e}){return(0,t.jsx)(p.CollapsibleContent,{"data-slot":"collapsible-content",...e})}var b=e.i(302747),C=e.i(77607),N=e.i(450549);function y(){let e=(0,N.useTranslations)("Marketing.navbar");return[{title:e("download.title"),href:C.Routes.Download,external:!1},{title:e("gallery.title"),href:C.Routes.Gallery,external:!1},{title:e("pricing.title"),href:C.Routes.Pricing,external:!1},{title:e("blog.title"),href:C.Routes.Blog,external:!1}]}var k=e.i(578938),R=e.i(975157),L=e.i(667784);let M=(0,L.default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var E=e.i(162484);let z=(0,L.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var S=e.i(323726),T=e.i(225123),P=e.i(561993),D=e.i(924070),I=e.i(78143),A=e.i(945336);function O(){let e=(0,N.useTranslations)("Marketing.avatar");return[{title:e("adminDashboard"),href:C.Routes.AdminDashboard,icon:(0,t.jsx)(I.LayoutDashboardIcon,{className:"size-4 shrink-0"}),authorizeOnly:["admin"]},{title:e("billing"),href:C.Routes.SettingsBilling,icon:(0,t.jsx)(D.CreditCardIcon,{className:"size-4 shrink-0"})},{title:e("settings"),href:C.Routes.SettingsProfile,icon:(0,t.jsx)(A.Settings2Icon,{className:"size-4 shrink-0"})}]}var F=e.i(976866),F=F,_=e.i(754219);function H({user:e}){let n=(0,N.useTranslations)(),a=O().filter(t=>!t.authorizeOnly||t.authorizeOnly.includes(e.role||"")),i=(0,l.useLocaleRouter)(),[r,s]=(0,f.useState)(!1),o=()=>{s(!1)},c=async()=>{await k.authClient.signOut({fetchOptions:{onSuccess:()=>{i.replace("/")},onError:e=>{console.error("sign out error:",e),_.toast.error(n("Common.logoutFailed"))}}})};return(0,t.jsxs)(P.Drawer,{open:r,onClose:o,children:[(0,t.jsx)(P.DrawerTrigger,{onClick:()=>s(!0),children:(0,t.jsx)(T.UserAvatar,{name:e.name,image:e.image,className:"size-8 border"})}),(0,t.jsxs)(P.DrawerPortal,{children:[(0,t.jsx)(P.DrawerOverlay,{className:"fixed inset-0 z-40 bg-background/50"}),(0,t.jsxs)(P.DrawerContent,{className:"fixed inset-x-0 bottom-0 z-50 mt-24 overflow-hidden rounded-t-[10px] border bg-background px-3 text-sm",children:[(0,t.jsx)(P.DrawerHeader,{children:(0,t.jsx)(P.DrawerTitle,{})}),(0,t.jsxs)("div",{className:"flex items-center justify-start gap-4 p-2",children:[(0,t.jsx)(T.UserAvatar,{name:e.name,image:e.image,className:"size-8 border"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{className:"font-medium",children:e.name}),(0,t.jsx)("p",{className:"w-52 truncate text-muted-foreground",children:e.email})]})]}
1),(0,t.jsxs)("ul",{className:"mb-14 mt-1 w-full text-muted-foreground",children:[a.map(e=>(0,t.jsx)("li",{className:"rounded-lg text-foreground hover:bg-muted",children:(0,t.jsxs)(l.LocaleLink,{href:e.href||"#",onClick:o,className:"flex w-full items-center gap-3 px-2.5 py-2",children:[e.icon?e.icon:null,(0,t.jsx)("p",{className:"text-sm",children:e.title})]})},e.title)),(0,t.jsx)("li",{className:"rounded-lg text-foreground hover:bg-muted",children:(0,t.jsxs)("a",{href:"#",onClick:async e=>{e.preventDefault(),o(),c()},className:"flex w-full items-center gap-3 px-2.5 py-2",children:[(0,t.jsx)(F.default,{className:"size-4"}),(0,t.jsx)("p",{className:"text-sm",children:n("Common.logout")})]})},"logout")]})]})]})]})}let V="font-semibold text-primary";function B({className:e,...a}){let r=(0,N.useTranslations)(),s=(0,l.useLocalePathname)(),o=(0,m.useSearchParams)(),c=(0,f.useMemo)(()=>{let e=o.toString();return e?`${s}?${e}`:s},[s,o]),[d,u]=(0,f.useState)(!1),[p,L]=(0,f.useState)(!1),{data:T,isPending:P}=k.authClient.useSession(),D=T?.user,I=y();return((0,f.useEffect)(()=>{L(!0),u(!1)},[s]),p)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,R.cn)("flex items-center justify-between",e),...a,children:[(0,t.jsxs)(l.LocaleLink,{href:"/",className:"flex items-center gap-2",children:[(0,t.jsx)(i.Logo,{}),(0,t.jsx)("span",{className:"text-xl font-semibold",children:r("Metadata.name")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[P?(0,t.jsx)(b.Skeleton,{className:"size-8 rounded-full"}):D?(0,t.jsx)(H,{user:D}):null,(0,t.jsx)(x.Button,{type:"button",variant:"ghost",size:"icon","aria-expanded":d,"aria-label":"Toggle menu",onClick:()=>u(e=>!e),className:"size-8 rounded-md border",children:d?(0,t.jsx)(S.XIcon,{className:"size-4"}):(0,t.jsx)(z,{className:"size-4"})})]})]}),d&&(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Mobile navigation",className:"fixed inset-0 top-14.25 z-50 flex flex-col overflow-y-auto bg-background animate-in fade-in-0 duration-200",children:(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-4 p-4",children:[!D&&(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,t.jsx)(n.LoginWrapper,{mode:"redirect",asChild:!0,callbackUrl:c,children:(0,t.jsx)(x.Button,{type:"button",variant:"outline",size:"lg",className:"w-full",onClick:()=>u(!1),children:r("Common.login")})}),(0,t.jsx)(l.LocaleLink,{href:`${C.Routes.Register}?callbackUrl=${encodeURIComponent(c)}`,onClick:()=>u(!1),className:(0,R.cn)((0,x.buttonVariants)({size:"lg"}),"w-full"),children:r("Common.signUp")})]}),(0,t.jsx)("ul",{className:"w-full space-y-1",children:I?.map(e=>{let n=e.href?"/"===e.href?"/"===s:s.startsWith(e.href):e.items?.some(e=>e.href&&s.startsWith(e.href));return(0,t.jsx)("li",{className:"py-1",children:e.items?(0,t.jsxs)(v,{children:[(0,t.jsx)(w,{asChild:!0,children:(0,t.jsxs)(x.Button,{type:"button",variant:"ghost",className:(0,R.cn)("w-full justify-between text-left text-base","bg-transparent text-muted-foreground hover:text-foreground",n&&"font-semibold text-primary"),children:[e.title,(0,t.jsx)(E.ChevronRightIcon,{className:"size-4"})]})}),(0,t.jsx)(j,{className:"pl-2",children:(0,t.jsx)("ul",{className:"mt-2 space-y-2",children:e.items.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(l.LocaleLink,{href:e.href??"#",target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:()=>
1u(!1),className:(0,R.cn)("flex w-full items-center gap-4 rounded-md p-2 text-sm text-muted-foreground transition-colors duration-150 hover:text-foreground",e.href&&s.startsWith(e.href)&&V),children:[e.icon?(0,t.jsx)("div",{className:"size-4 shrink-0",children:e.icon}):null,e.title,e.external?(0,t.jsx)(M,{className:"size-4 shrink-0"}):null]})},e.title))})})]}):(0,t.jsx)(l.LocaleLink,{href:e.href??"#",target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:()=>u(!1),className:(0,R.cn)("flex w-full items-center rounded-md p-2 text-base text-muted-foreground transition-colors duration-150 hover:text-foreground",n&&V),children:e.title})},e.title)})}),(0,t.jsxs)("div",{className:"mt-auto w-full border-t border-border/50 p-4 flex items-center justify-between",children:[(0,t.jsx)(h,{}),(0,t.jsx)(g.ModeSwitcherHorizontal,{})]})]})})]}):null}var U=e.i(755146),F=F,K=e.i(846216),$=e.i(532409),W=e.i(515246);function q(){let e=(0,N.useTranslations)("Marketing.avatar"),n=(0,l.useLocaleRouter)(),{data:a}=k.authClient.useSession(),i=a?.user,{data:r=0,isLoading:s}=(0,K.useCreditBalance)(i?.id);return o.websiteConfig.credits.enableCredits?(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",onClick:()=>{n.push(C.Routes.SettingsCredits)},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)($.CoinsIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"text-sm",children:e("credits")})]}),(0,t.jsx)("span",{className:"text-sm font-medium",children:s?(0,t.jsx)(W.Loader2Icon,{className:"size-4 animate-spin"}):r.toLocaleString()})]}):null}function G({user:e}){let n=(0,N.useTranslations)(),a=O().filter(t=>!t.authorizeOnly||t.authorizeOnly.includes(e.role||"")),i=(0,l.useLocaleRouter)(),[r,s]=(0,f.useState)(!1),c=async()=>{await k.authClient.signOut({fetchOptions:{onSuccess:()=>{i.replace("/")},onError:e=>{console.error("sign out error:",e),_.toast.error(n("Common.logoutFailed"))}}})};return(0,t.jsxs)(U.DropdownMenu,{open:r,onOpenChange:s,children:[(0,t.jsx)(U.DropdownMenuTrigger,{children:(0,t.jsx)(T.UserAvatar,{name:e.name,image:e.image,className:"size-8 border"})}),(0,t.jsxs)(U.DropdownMenuContent,{align:"end",className:"w-64",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 p-2",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-1 leading-none",children:[(0,t.jsx)("p",{className:"font-medium",children:e.name}),(0,t.jsx)("p",{className:"truncate text-sm text-muted-foreground",children:e.email})]})}),(0,t.jsx)(U.DropdownMenuSeparator,{}),o.websiteConfig.credits.enableCredits&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.DropdownMenuItem,{children:(0,t.jsx)(q,{})}),(0,t.jsx)(U.DropdownMenuSeparator,{})]}),a.map(e=>(0,t.jsxs)(U.DropdownMenuItem,{onClick:()=>{e.href&&i.push(e.href)},children:[e.icon?e.icon:null,e.title]},e.title)),(0,t.jsx)(U.DropdownMenuSeparator,{}),(0,t.jsxs)(U.DropdownMenuItem,{onSelect:async e=>{e.preventDefault(),s(!1),c()},children:[(0,t.jsx)(F.default,{className:"size-4"}),n("Common.logout")]})]})]})}var Y=e.i(294237),X=e.i(794030),Z=e.i(780600),J=e.i(291967),Q=e.i(83812),ee=e.i(254856),et=e.i(226099),en=e.i(62799),ea=e.i(238716),ei=e.i(450021),er=e.i(482430),es=e.i(903070),eo=e.i(236763),el=e.i(190464),ec=e.i(810499),ed=e.i(554110),eu="NavigationMenu",[em,ef,eh]=(0,er.createCollection)(eu),[eg,ex,ep]=(0,er.createCollection)(eu),[ev,ew]=(0,Z.createContextScope)(eu,[eh,ep]),[ej,eb]=ev(eu),[eC,eN]=ev(eu),ey=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:i,onValueChange:r,defaultValue:s,delayDuration:o=200,skipDelayDuration:l=300,orientation:c="horizontal",dir:d,...u}=e,[m,h]=f.useState(null),g=(0,et.useComposedRefs)(n,e=>h(e)),x=(0,en.useDirection)(d),p=f.useRef(0),v=f.useRef(0),w=f.useRef(0),[j,b]=f.useState(!0),[C,N]=(0,ee.useControllableState)({prop:i,onChange:e=>{let t=l>0;""!==e?(window.clearTimeout(w.current),t&&b(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>b(!0),l)),r?.(e)},defaultProp:s??"",caller:eu}),y=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>N(""),150)},[N]),k=f.useCallback(e=>{window.clearTimeout(v.current),N(e)},[N]),R=f.useCallback(e=>{C===e?window.clearTimeout(v.current):p.current=window.setTimeout(()=>{window.clearTimeout(v.current),N(e)},o)},[C,N,o]);return f.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(v.current),window.clearTimeout(w.current)}
1,[]),(0,t.jsx)(eL,{scope:a,isRootMenu:!0,value:C,dir:x,orientation:c,rootNavigationMenu:m,onTriggerEnter:e=>{window.clearTimeout(p.current),j?R(e):k(e)},onTriggerLeave:()=>{window.clearTimeout(p.current),y()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:y,onItemSelect:e=>{N(t=>t===e?"":e)},onItemDismiss:()=>N(""),children:(0,t.jsx)(Q.Primitive.nav,{"aria-label":"Main","data-orientation":c,dir:x,...u,ref:g})})});ey.displayName=eu;var ek="NavigationMenuSub",eR=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:i,onValueChange:r,defaultValue:s,orientation:o="horizontal",...l}=e,c=eb(ek,a),[d,u]=(0,ee.useControllableState)({prop:i,onChange:r,defaultProp:s??"",caller:ek});return(0,t.jsx)(eL,{scope:a,isRootMenu:!1,value:d,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>u(e),onItemSelect:e=>u(e),onItemDismiss:()=>u(""),children:(0,t.jsx)(Q.Primitive.div,{"data-orientation":o,...l,ref:n})})});eR.displayName=ek;var eL=e=>{let{scope:n,isRootMenu:a,rootNavigationMenu:i,dir:r,orientation:s,children:o,value:l,onItemSelect:c,onItemDismiss:d,onTriggerEnter:u,onTriggerLeave:m,onContentEnter:h,onContentLeave:g}=e,[x,p]=f.useState(null),[v,w]=f.useState(new Map),[j,b]=f.useState(null);return(0,t.jsx)(ej,{scope:n,isRootMenu:a,rootNavigationMenu:i,value:l,previousValue:(0,eo.usePrevious)(l),baseId:(0,ei.useId)(),dir:r,orientation:s,viewport:x,onViewportChange:p,indicatorTrack:j,onIndicatorTrackChange:b,onTriggerEnter:(0,ec.useCallbackRef)(u),onTriggerLeave:(0,ec.useCallbackRef)(m),onContentEnter:(0,ec.useCallbackRef)(h),onContentLeave:(0,ec.useCallbackRef)(g),onItemSelect:(0,ec.useCallbackRef)(c),onItemDismiss:(0,ec.useCallbackRef)(d),onViewportContentChange:f.useCallback((e,t)=>{w(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:f.useCallback(e=>{w(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(em.Provider,{scope:n,children:(0,t.jsx)(eC,{scope:n,items:v,children:o})})})},eM="NavigationMenuList",eE=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...i}=e,r=eb(eM,a),s=(0,t.jsx)(Q.Primitive.ul,{"data-orientation":r.orientation,...i,ref:n});return(0,t.jsx)(Q.Primitive.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:(0,t.jsx)(em.Slot,{scope:a,children:r.isRootMenu?(0,t.jsx)(eY,{asChild:!0,children:s}):s})})});eE.displayName=eM;var ez="NavigationMenuItem",[eS,eT]=ev(ez),eP=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:i,...r}=e,s=(0,ei.useId)(),o=f.useRef(null),l=f.useRef(null),c=f.useRef(null),d=f.useRef(()=>{}),u=f.useRef(!1),m=f.useCallback((e="start")=>{if(o.current){d.current();let t=eJ(o.current);t.length&&eQ("start"===e?t:t.reverse())}},[]),h=f.useCallback(()=>{if(o.current){var e;let t=eJ(o.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),d.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,t.jsx)(eS,{scope:a,value:i||s||"LEGACY_REACT_AUTO_VALUE",triggerRef:l,contentRef:o,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:(0,t.jsx)(Q.Primitive.li,{...r,ref:n})})});eP.displayName=ez;var eD="NavigationMenuTrigger",eI=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,disabled:i,...r}=e,s=eb(eD,e.__scopeNavigationMenu),o=eT(eD,e.__scopeNavigationMenu),l=f.useRef(null),c=(0,et.useComposedRefs)(l,o.triggerRef,n),d=e2(s.baseId,o.value),u=e4(s.baseId,o.value),m=f.useRef(!1),h=f.useRef(!1),g=o.value===s.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.ItemSlot,{scope:a,value:o.value,children:(0,t.jsx)(eZ,{asChild:!0,children:(0,t.jsx)(Q.Primitive.button,{id:d,disabled:i,"data-disabled":i?"":void 0,"data-state":e1(g),"aria-expanded":g,"aria-controls":u,...r,ref:c,onPointerEnter:(0,J.composeEventHandlers)(e.onPointerEnter,()=>{h.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:(0,J.composeEventHandlers)(e.onPointerMove,e3(()=>{i||h.current||o.wasEscapeCloseRef.current||m.current||(s.onTriggerEnter(o.value),m.current=!0)})),onPointerLeave:(0,J.composeEventHandlers)(e.onPointerLeave,e3(()=>{i||(s.onTriggerLeave(),m.current=!1)})),onClick:(0,J.composeEventHandlers)(e.onClick,()=>{s.onItemSelect(o.value),h.current=g}),onKeyDown:(0,J.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];g&&e.key===t&&(o.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ed.Root,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:e=>
1{let t=o.contentRef.current,n=e.relatedTarget,a=n===l.current,i=t?.contains(n);(a||!i)&&o.onFocusProxyEnter(a?"start":"end")}}),s.viewport&&(0,t.jsx)("span",{"aria-owns":u})]})]})});eI.displayName=eD;var eA="navigationMenu.linkSelect",eO=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,active:i,onSelect:r,...s}=e;return(0,t.jsx)(eZ,{asChild:!0,children:(0,t.jsx)(Q.Primitive.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...s,ref:n,onClick:(0,J.composeEventHandlers)(e.onClick,e=>{let t=e.target,n=new CustomEvent(eA,{bubbles:!0,cancelable:!0});if(t.addEventListener(eA,e=>r?.(e),{once:!0}),(0,Q.dispatchDiscreteCustomEvent)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(eK,{bubbles:!0,cancelable:!0});(0,Q.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});eO.displayName="NavigationMenuLink";var eF="NavigationMenuIndicator",e_=f.forwardRef((e,n)=>{let{forceMount:a,...i}=e,r=eb(eF,e.__scopeNavigationMenu),s=!!r.value;return r.indicatorTrack?X.default.createPortal((0,t.jsx)(ea.Presence,{present:a||s,children:(0,t.jsx)(eH,{...i,ref:n})}),r.indicatorTrack):null});e_.displayName=eF;var eH=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...i}=e,r=eb(eF,a),s=ef(a),[o,l]=f.useState(null),[c,d]=f.useState(null),u="horizontal"===r.orientation,m=!!r.value;f.useEffect(()=>{let e=s(),t=e.find(e=>e.value===r.value)?.ref.current;t&&l(t)},[s,r.value]);let h=()=>{o&&d({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return e0(o,h),e0(r.indicatorTrack,h),c?(0,t.jsx)(Q.Primitive.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":r.orientation,...i,ref:n,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...i.style}}):null}),eV="NavigationMenuContent",eB=f.forwardRef((e,n)=>{let{forceMount:a,...i}=e,r=eb(eV,e.__scopeNavigationMenu),s=eT(eV,e.__scopeNavigationMenu),o=(0,et.useComposedRefs)(s.contentRef,n),l=s.value===r.value,c={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...i};return r.viewport?(0,t.jsx)(eU,{forceMount:a,...c,ref:o}):(0,t.jsx)(ea.Presence,{present:a||l,children:(0,t.jsx)(e$,{"data-state":e1(l),...c,ref:o,onPointerEnter:(0,J.composeEventHandlers)(e.onPointerEnter,r.onContentEnter),onPointerLeave:(0,J.composeEventHandlers)(e.onPointerLeave,e3(r.onContentLeave)),style:{pointerEvents:!l&&r.isRootMenu?"none":void 0,...c.style}})})});eB.displayName=eV;var eU=f.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:a}=eb(eV,e.__scopeNavigationMenu);return(0,el.useLayoutEffect)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,el.useLayoutEffect)(()=>()=>a(e.value),[e.value,a]),null}),eK="navigationMenu.rootContentDismiss",e$=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,value:i,triggerRef:r,focusProxyRef:s,wasEscapeCloseRef:o,onRootContentClose:l,onContentFocusOutside:c,...d}=e,u=eb(eV,a),m=f.useRef(null),h=(0,et.useComposedRefs)(m,n),g=e2(u.baseId,i),x=e4(u.baseId,i),p=ef(a),v=f.useRef(null),{onItemDismiss:w}=u;f.useEffect(()=>{let e=m.current;if(u.isRootMenu&&e){let t=()=>{w(),l(),e.contains(document.activeElement)&&r.current?.focus()};return e.addEventListener(eK,t),()=>e.removeEventListener(eK,t)}},[u.isRootMenu,e.value,r,w,l]);let j=f.useMemo(()=>{let e=p().map(e=>e.value);"rtl"===u.dir&&e.reverse();let t=e.indexOf(u.value),n=e.indexOf(u.previousValue),a=i===u.value,r=n===e.indexOf(i);if(!a&&!r)return v.current;let s=(()=>{if(t!==n){if(a&&-1!==n)return t>n?"from-end":"from-start";if(r&&-1!==t)return t>n?"to-start":"to-end"}return null})();return v.current=s,s},[u.previousValue,u.value,u.dir,p,i]);return(0,t.jsx)(eY,{asChild:!0,children:(0,t.jsx)(es.DismissableLayer,{id:x,"aria-labelledby":g,"data-motion":j,"data-orientation":u.orientation,...d,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(eK,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(e)},onFocusOutside:(0,J.composeEventHandlers)(e.onFocusOutside,e=>{c();let t=e.target;u.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,J.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,n=p().some(e=>e.ref.current?.contains(t)),a=u.isRootMenu&&u.viewport?.contains(t);(n||a||!u.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,J.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eJ(e.currentTarget),n=document.activeElement,a=t.findIndex(e=>e===n);eQ(e.shiftKey?t.slice(0,a).reverse():t.slice(a+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:(0,J.composeEventHandlers)(e.onEscapeKeyDown,e=>{o.current=!0})})})}
1),eW="NavigationMenuViewport",eq=f.forwardRef((e,n)=>{let{forceMount:a,...i}=e,r=!!eb(eW,e.__scopeNavigationMenu).value;return(0,t.jsx)(ea.Presence,{present:a||r,children:(0,t.jsx)(eG,{...i,ref:n})})});eq.displayName=eW;var eG=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,children:i,...r}=e,s=eb(eW,a),o=(0,et.useComposedRefs)(n,s.onViewportChange),l=eN(eV,e.__scopeNavigationMenu),[c,d]=f.useState(null),[u,m]=f.useState(null),h=c?c?.width+"px":void 0,g=c?c?.height+"px":void 0,x=!!s.value,p=x?s.value:s.previousValue;return e0(u,()=>{u&&d({width:u.offsetWidth,height:u.offsetHeight})}),(0,t.jsx)(Q.Primitive.div,{"data-state":e1(x),"data-orientation":s.orientation,...r,ref:o,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":g,...r.style},onPointerEnter:(0,J.composeEventHandlers)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,J.composeEventHandlers)(e.onPointerLeave,e3(s.onContentLeave)),children:Array.from(l.items).map(([e,{ref:n,forceMount:a,...i}])=>{let r=p===e;return(0,t.jsx)(ea.Presence,{present:a||r,children:(0,t.jsx)(e$,{...i,ref:(0,et.composeRefs)(n,e=>{r&&e&&m(e)})})},e)})})}),eY=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...i}=e,r=eb("FocusGroup",a);return(0,t.jsx)(eg.Provider,{scope:a,children:(0,t.jsx)(eg.Slot,{scope:a,children:(0,t.jsx)(Q.Primitive.div,{dir:r.dir,...i,ref:n})})})}),eX=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eZ=f.forwardRef((e,n)=>{let{__scopeNavigationMenu:a,...i}=e,r=ex(a),s=eb("FocusGroupItem",a);return(0,t.jsx)(eg.ItemSlot,{scope:a,children:(0,t.jsx)(Q.Primitive.button,{...i,ref:n,onKeyDown:(0,J.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...eX].includes(e.key)){let t=r().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eX.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>eQ(t)),e.preventDefault()}})})})});function eJ(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eQ(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function e0(e,t){let n=(0,ec.useCallbackRef)(t);(0,el.useLayoutEffect)(()=>{let t=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(t),a.unobserve(e)}}},[e,n])}function e1(e){return e?"open":"closed"}function e2(e,t){return`${e}-trigger-${t}`}function e4(e,t){return`${e}-content-${t}`}function e3(e){return t=>"mouse"===t.pointerType?e(t):void 0}e.s(["Content",()=>eB,"Indicator",()=>e_,"Item",()=>eP,"Link",()=>eO,"List",()=>eE,"NavigationMenu",()=>ey,"NavigationMenuContent",()=>eB,"NavigationMenuIndicator",()=>e_,"NavigationMenuItem",()=>eP,"NavigationMenuLink",()=>eO,"NavigationMenuList",()=>eE,"NavigationMenuSub",()=>eR,"NavigationMenuTrigger",()=>eI,"NavigationMenuViewport",()=>eq,"Root",()=>ey,"Sub",()=>eR,"Trigger",()=>eI,"Viewport",()=>eq,"createNavigationMenuScope",()=>ew],115510);var e5=e.i(115510),e5=e5,e8=e.i(628997);function e6({className:e,children:n,viewport:a=!0,...i}){return(0,t.jsxs)(e5.Root,{"data-slot":"navigation-menu","data-viewport":a,className:(0,R.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...i,children:[n,a&&(0,t.jsx)(ta,{})]})}function e9({className:e,...n}){return(0,t.jsx)(e5.List,{"data-slot":"navigation-menu-list",className:(0,R.cn)("group flex flex-1 list-none items-center justify-center gap-0",e),...n})}function e7({className:e,...n}){return(0,t.jsx)(e5.Item,{"data-slot":"navigation-menu-item",className:(0,R.cn)("relative",e),...n})}let te=(0,Y.cva)("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg bg-background px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-
1popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");function tt({className:e,children:n,...a}){return(0,t.jsxs)(e5.Trigger,{"data-slot":"navigation-menu-trigger",className:(0,R.cn)(te(),"group",e),...a,children:[n," ",(0,t.jsx)(e8.ChevronDownIcon,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180","aria-hidden":"true"})]})}function tn({className:e,...n}){return(0,t.jsx)(e5.Content,{"data-slot":"navigation-menu-content",className:(0,R.cn)("top-0 left-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95",e),...n})}function ta({className:e,...n}){return(0,t.jsx)("div",{className:(0,R.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,t.jsx)(e5.Viewport,{"data-slot":"navigation-menu-viewport",className:(0,R.cn)("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-95",e),...n})})}function ti({className:e,...n}){return(0,t.jsx)(e5.Link,{"data-slot":"navigation-menu-link",className:(0,R.cn)("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4",e),...n})}var tr=e.i(165754);function ts({scroll:e=!0}){let s=(0,N.useTranslations)(),o=function(e){let[t,n]=(0,f.useState)(!1),a=(0,f.useCallback)(()=>{n(window.pageYOffset>50)},[50]);return(0,f.useEffect)(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),t}(0),c=y(),d=(0,l.useLocalePathname)(),u=(0,m.useSearchParams)(),h=(0,f.useMemo)(()=>{let e=u.toString();return e?`${d}?${e}`:d},[d,u]),[g,p]=(0,f.useState)(!1),[v,w]=(0,f.useState)(void 0),{data:j,isPending:L}=k.authClient.useSession(),E=j?.user,z=e&&o;return(0,f.useEffect)(()=>{p(!0),w(void 0)},[d]),(0,t.jsxs)("header",{className:(0,R.cn)("sticky inset-x-0 top-0 z-40 py-4 transition-all duration-300",z&&"border-b"),children:[z&&(0,t.jsx)("div",{className:"absolute inset-0 z-0 bg-muted/50 backdrop-blur-md","aria-hidden":"true"}),(0,t.jsx)("div",{className:"relative z-10",children:(0,t.jsxs)(a.default,{className:"px-4",children:[(0,t.jsxs)("nav",{"aria-label":"Main navigation",className:"hidden lg:flex lg:items-center lg:justify-between lg:gap-4",children:[(0,t.jsxs)(l.LocaleLink,{href:"/","aria-label":"Home",className:"flex items-center gap-2 shrink-0",children:[(0,t.jsx)(i.Logo,{}),(0,t.jsx)("span",{className:"text-xl font-semibold",children:s("Metadata.name")}
1)]}),(0,t.jsx)(e6,{value:v,onValueChange:w,className:"flex-1 justify-center",children:(0,t.jsx)(e9,{children:c?.map(e=>e.items?(0,t.jsxs)(e7,{value:e.title,children:[(0,t.jsx)(tt,{className:(0,R.cn)("bg-transparent",e.items.some(e=>!!e.href&&d.startsWith(e.href))&&"font-semibold text-foreground"),children:e.title}),(0,t.jsx)(tn,{children:(0,t.jsx)("ul",{className:"grid w-100 gap-3 p-3 md:w-125 md:grid-cols-2 lg:w-150",children:e.items.map(e=>{let n=e.href&&d.startsWith(e.href);return(0,t.jsx)("li",{children:(0,t.jsx)(ti,{asChild:!0,children:(0,t.jsxs)(l.LocaleLink,{href:e.href??"#",target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:()=>w(void 0),className:(0,R.cn)("group flex select-none flex-row items-center gap-4 rounded-md","p-2 leading-none no-underline outline-hidden transition-colors","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground",n&&"bg-accent text-accent-foreground"),children:[e.icon?(0,t.jsx)("div",{className:"size-4 shrink-0",children:e.icon}):null,(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"text-sm font-medium",children:e.title}),e.description?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.description}):null]}),e.external?(0,t.jsx)(M,{className:"size-4 shrink-0"}):null]})})},e.title)})})})]},e.title):(0,t.jsx)(e7,{children:(0,t.jsx)(ti,{asChild:!0,className:(0,R.cn)(te(),"bg-transparent",e.href&&("/"===e.href?"/"===d:d.startsWith(e.href))&&"font-semibold text-primary"),children:(0,t.jsx)(l.LocaleLink,{href:e.href||"#",target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,children:e.title})})},e.title))})}),(0,t.jsxs)("div",{className:"flex items-center gap-4 shrink-0",children:[(0,t.jsx)(r.ModeSwitcher,{}),(0,t.jsx)(tr.default,{}),!g||L?(0,t.jsx)(b.Skeleton,{className:"size-8 rounded-full"}):E?(0,t.jsx)(G,{user:E}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.LoginWrapper,{mode:"modal",asChild:!0,callbackUrl:h,children:(0,t.jsx)("button",{type:"button",className:(0,R.cn)((0,x.buttonVariants)({variant:"outline",size:"sm"}),"cursor-pointer"),children:s("Common.login")})}),(0,t.jsx)(l.LocaleLink,{href:`${C.Routes.Register}?callbackUrl=${encodeURIComponent(h)}`,className:(0,x.buttonVariants)({size:"sm"}),children:s("Common.signUp")})]})]})]}),(0,t.jsx)(B,{className:"lg:hidden"})]})})]})}e.s(["Navbar",()=>ts],91976)}]);

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.