PageSourceSearch

https://www.avatarcraft.ai/_next/static/chunks/3550-dd2f3e419e9e07a8.js

js avatarcraft.ai collected 2026-10-04 11:02:13 UTC 30,160 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ccc60e00-d2e6-4abb-888c-cf1ed944cf9f",e._sentryDebugIdIdentifier="sentry-dbid-ccc60e00-d2e6-4abb-888c-cf1ed944cf9f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3550],{96646:function(e,t,a){var i=a(56951),r=a(88219);t.Z=()=>{let e=(0,i.Z)(e=>e.toggleSigninModal);return{hasLogin:(0,r.default)(e=>!!e.hasUserInfo),handleLogin:t=>{null==t||t.preventDefault(),e(!0)}}}},10973:function(e,t,a){var i=a(54880),r=a(45008),s=a(88219),n=a(88818),o=a(94827);t.Z=()=>{let{refreshVipInfo:e}=(0,o.Z)(),t=(0,s.default)(e=>({totalPoints:e.totalPoints||0,count:e.count||0,is_vip:e.is_vip,vip_type:e.vip_type,user_count:e.user_count||0,vip_count:e.vip_count||0}),n.Z);return(0,i.ZB)(i.tw.ALL,(t,a)=>{(t===i.tw.ADD_WORK||t===i.tw.REFRESH_POINTS)&&e()}),{totalPoints:(null==t?void 0:t.totalPoints)||0,count:(null==t?void 0:t.count)||0,is_vip:!!(null==t?void 0:t.is_vip),vip_type:null==t?void 0:t.vip_type,user_count:(null==t?void 0:t.user_count)||0,vip_count:(null==t?void 0:t.vip_count)||0,refreshUserInfo:()=>{(0,r.bG)()}}}},94827:function(e,t,a){a.d(t,{Z:function(){return n}});var i=a(2265),r=a(88219),s=a(85350);function n(){let[e,t]=(0,i.useState)(!1);(0,i.useEffect)(()=>{t(window.location.pathname.includes("/config-builder"))},[]);let a=(0,r.default)(e=>e.is_vip),n=(0,r.default)(e=>e.getUserInfo);return(0,s.default)(e=>e.vipDebugMode),(0,s.default)(e=>e.toggleVipDebugMode),{isVip:!!a,refreshVipInfo:(0,i.useCallback)(()=>{n()},[n]),debugMode:!1,toggleDebugMode:void 0}}},33550:function(e,t,a){a.d(t,{default:function(){return ex}});var i=a(57437),r=a(2265),s=a(10094),n=a(10973),o=a(96646),l=a(56951),d=a(49232),c=()=>{let{totalPoints:e}=(0,n.Z)(),{hasLogin:t}=(0,o.Z)(),a=(0,l.Z)(e=>e.togglePointLogModal);return t?(0,i.jsxs)("button",{className:"hidden sm:flex items-center gap-2 h-8 px-3 rounded-full border border-white/[0.08] text-white/80 hover:text-white hover:border-white/20 hover:bg-white/5 transition-colors duration-200 cursor-pointer",onClick:()=>a(!0),children:[(0,i.jsx)(d.Z,{size:13,strokeWidth:1.5,className:"text-white/70 flex-shrink-0"}),(0,i.jsx)("span",{className:"font-medium text-sm tabular-nums",children:e})]}):null},h=a(84190),u=a(62869),m=a(24025),p=a(14438),x=a(45008),g=a(88219),f=a(63718),v=a(40875),b=a(78867),w=a(88226),y=a(77945),j=a(47692),N=a(94827),k=a(85350),Z=e=>{let{prompt_parent_id:t="google-one-tap"}=e||{},a=async()=>{try{var e,t;let a=btoa(String.fromCharCode(...crypto.getRandomValues(new Uint8Array(32)))),i=new TextEncoder().encode(a),r=await (null===(t=crypto)||void 0===t?void 0:null===(e=t.subtle)||void 0===e?void 0:e.digest("SHA-256",i)),s=Array.from(new Uint8Array(r)).map(e=>e.toString(16).padStart(2,"0")).join("");return[a,s]}catch(e){throw console.error("Error generating nonce",e),e}},{refreshVipInfo:i}=(0,N.Z)(),s=(0,g.default)(e=>e.hasUserInfo);(0,r.useEffect)(()=>{if(!s){let e=async()=>{var e,r,s,n,o,l;console.log("Initializing Google One Tap"),console.log("window.google",window.google);let[d,c]=await a();console.log("Nonce: ",d,c),null===(s=window.google)||void 0===s||null===(r=s.accounts)||void 0===r||null===(e=r.id)||void 0===e||e.initialize({prompt_parent_id:t,client_id:"22431774556-40aeq658rc533rfrtq76fr4b7jgphpol.apps.googleusercontent.com",callback:async e=>{try{let t=await (0,x.m3)({credential:e.credential||"",visitor_id:k.default.getState().visitorId||"",nonce:d});if(0!=t.code)throw Error(t.msg||"Invalid credential");i()}catch(e){console.error("Error logging in with Google One Tap",e)}},nonce:c,use_fedcm_for_prompt:!0}),null===(l=window.google)||void 0===l||null===(o=l.accounts)||void 0===o||null===(n=o.id)||void 0===n||n.prompt()};if("complete"!==document.readyState)return window.addEventListener("load",e),()=>window.removeEventListener("load",e);e()}},[s])},_=a(42586),K=a(99376),C=a(59252),A=a(94508),M=e=>{let{text:t,extraStyle:a}=e,r=(0,_.useTranslations)("auth"),n=(0,_.useTranslations)("language"),c=(0,K.useParams)(),k=(0,s.tv)(),M=(0,s.jD)(),z=(null==c?void 0:c.locale)||C.al,P=e=>{k.push(M,{locale:e})},L=(0,g.default)(e=>(0,f.Z)(e,["nickname","avatar_url","email","uuid","is_vip","vip_name"])),{hasLogin:S}=(0,o.Z)(),I=async()=>{await (0,x.y5)(),g.default.getState().resetUserInfo(),window.location.href="/"},D=async()=>{try{let e=await (0,x.jz)({returnUrl:window.location.href});0==e.code?window.open(e.data.url,"_blank"):p.Am.error((null==e?void 0:e.msg)||r("error-occurred"))}catch(e){console.error(e)}},U=()=>{(null==L?void 0:L.uuid)&&(0,m.zp)(L.uuid,()=>p.Am.success(r("copied-to-clipboard")))},W=(0,g.default)(e=>e.totalPoints),{handleLogin:R}=(0,o.Z)();Z({prompt_parent_id:"google-one-tap"});let{isVip:E}=(0,N.Z)();if(L&&S){var F,T,V,G,O;return(0,i.jsxs)(h.h_,{children:[(0,i.jsx)(h.$F,{asChild:!0,children:(0,i.jsxs)("button",{className:"flex items-center gap-2 h-9 px-1 sm:px-2 rounded-full hover:bg-white/5 transition-colors outline-none",children:[(null==L?void 0:L.avatar_url)?(0,i.jsx)("img",{src:L.avatar_url,alt:"Profile",className:"w-7 h-7 rounded-full object-cover ring-1 ring-white/[0.08]",referrerPolicy:"no-referrer"}):(0,i.jsx)("div",{className:"w-7 h-7 bg-[#161616] border border-white/[0.08] rounded-full flex items-center justify-center text-white/80 font-medium text-xs",children:(null==L?void 0:null===(F=L.email)||void 0===F?void 0:F.charAt(0).toUpperCase())||"U"}),(0,i.jsx)("span",{className:"font-medium text-sm text-white/80 hidden sm:block max-w-[100px] truncate",children:(null==L?void 0:L.nickname)||(null==L?void 0:null===(T=L.email)||void 0===T?void 0:T.split("@")[0])||r("account")}
1),(0,i.jsx)(v.Z,{className:"w-3.5 h-3.5 text-white/40 hidden sm:block"})]})}),(0,i.jsxs)(h.AW,{className:"w-72 bg-[#111111] border border-white/[0.06] rounded-lg p-0 overflow-hidden z-[100]",align:"end",sideOffset:8,children:[(0,i.jsxs)("div",{className:"p-5 flex items-start gap-4 border-b border-white/[0.06]",children:[(null==L?void 0:L.avatar_url)?(0,i.jsx)("img",{src:L.avatar_url,alt:"Profile",className:"w-12 h-12 rounded-full object-cover flex-shrink-0 ring-1 ring-white/[0.08]",referrerPolicy:"no-referrer"}):(0,i.jsx)("div",{className:"w-12 h-12 bg-[#161616] border border-white/[0.08] rounded-full flex items-center justify-center text-white/80 text-lg font-medium flex-shrink-0",children:null==L?void 0:null===(V=L.email)||void 0===V?void 0:V.charAt(0).toUpperCase()}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,i.jsx)("h3",{className:"font-medium text-base text-[#FAFAFA] truncate leading-tight",children:(null==L?void 0:L.nickname)||(null==L?void 0:null===(G=L.email)||void 0===G?void 0:G.split("@")[0])}),E&&(null==L?void 0:L.vip_name)&&(0,i.jsxs)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium uppercase tracking-wider bg-white text-black",children:[L.vip_name,"F"]})]}),(0,i.jsx)("p",{className:"text-xs text-white/50 truncate mb-1.5",children:null==L?void 0:L.email}),(0,i.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] text-white/35 font-mono",children:[(0,i.jsxs)("span",{children:["ID: ",null==L?void 0:L.uuid]}),(0,i.jsx)("button",{onClick:e=>{e.stopPropagation(),U()},className:"p-0.5 hover:text-white/70 transition-colors",children:(0,i.jsx)(b.Z,{className:"w-3 h-3"})})]})]})]}),(0,i.jsx)("div",{className:"px-4 py-3 border-b border-white/[0.06]",children:(0,i.jsxs)("div",{className:"bg-[#0A0A0A] border border-white/[0.06] rounded-lg p-3 flex items-center justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,i.jsx)("div",{className:"w-7 h-7 rounded-full border border-white/[0.08] flex items-center justify-center",children:(0,i.jsx)(d.Z,{size:13,strokeWidth:1.5,className:"text-white/70"})}),(0,i.jsx)("span",{className:"text-base font-medium text-[#FAFAFA] tabular-nums",children:W}),(0,i.jsx)("span",{className:"text-xs text-white/45",children:"credits"})]}),(0,i.jsx)("button",{onClick:()=>{E?l.Z.getState().togglePointModal(!0):l.Z.getState().togglePriceModal(!0)},className:"text-[10px] font-medium text-black bg-white hover:bg-zinc-200 rounded-full px-3 py-1 transition-colors tracking-wider uppercase",children:"Top up"})]})}),(0,i.jsxs)("div",{className:"px-2 py-2",children:[(0,i.jsx)("p",{className:"px-3 py-1.5 text-[10px] font-medium text-white/40 tracking-[0.18em] uppercase",children:r("settings")||"Settings"}),(0,i.jsx)(h.Xi,{className:"rounded-md focus:bg-white/5 hover:bg-white/5 cursor-pointer outline-none border-none px-0 py-0",children:(0,i.jsxs)(s.rU,{href:"/pricing",className:"flex items-center gap-3 w-full px-3 py-2.5",children:[(0,i.jsx)(w.Z,{className:"w-4 h-4 text-white/50",strokeWidth:1.5}),(0,i.jsx)("span",{className:"text-sm font-medium text-white/85",children:r("pricing")})]})}),(0,i.jsxs)(h.Xi,{className:"flex items-center gap-3 px-3 py-2.5 rounded-md focus:bg-white/5 hover:bg-white/5 cursor-pointer outline-none border-none",onClick:D,children:[(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/50",children:[(0,i.jsx)("path",{d:"M3 3v18h18"}),(0,i.jsx)("path",{d:"m19 9-5 5-4-4-3 3"})]}),(0,i.jsx)("span",{className:"text-sm font-medium text-white/85",children:r("billing-usage")})]}),(0,i.jsxs)(h.Ph,{children:[(0,i.jsxs)(h.kt,{className:"flex items-center gap-3 px-3 py-2.5 rounded-md focus:bg-white/5 hover:bg-white/5 data-[state=open]:bg-white/5 cursor-pointer outline-none border-none",children:[(0,i.jsx)(y.Z,{className:"w-4 h-4 text-white/50",strokeWidth:1.5}),(0,i.jsx)("span",{className:"text-sm font-medium text-white/85 flex-1",children:n("select-language")||"Language"}),(0,i.jsx)("span",{className:"text-xs text-white/45 mr-1",children:null===(O=C.Mj.find(e=>e.lang===z))||void 0===O?void 0:O.label})]}),(0,i.jsx)(h.TG,{className:"bg-[#111111] border border-white/[0.06] rounded-lg p-1 min-w-[140px] z-[110]",children:(0,i.jsx)(h._x,{value:z,onValueChange:P,children:C.Mj.map(e=>(0,i.jsx)(h.qB,{value:e.lang,className:"pl-8 pr-3 py-2 rounded-md cursor-pointer text-sm font-medium text-white/70 hover:text-white focus:bg-white/5 hover:bg-white/5 data-[state=checked]:text-white data-[state=checked]:bg-white/[0.04] outline-none transition-colors",children:e.label},e.lang))})})]}),(0,i.jsx)("div",{className:"mx-3 my-2 border-t border-white/[0.06]"}),(0,i.jsxs)(h.Xi,{className:"flex items-center gap-3 px-3 py-2.5 rounded-md focus:bg-red-500/10 hover:bg-red-500/10 text-white/70 hover:text-red-400 transition-colors cursor-pointer border-none outline-none",onClick:I,children:[(0,i.jsx)(j.Z,{className:"w-4 h-4",strokeWidth:1.5}),(0,i.jsx)("span",{className:"text-sm font-medium",children:r("sign-out")})]})]})]})]})}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[!S&&(0,i.jsxs)(h.h_,{children:[(0,i.jsx)(h.$F,{asChild:!0,children:(0,i.jsx)("button",{className:"w-9 h-9 rounded-full flex items-center justify-center text-white/60 hover:text-white hover:bg-white/5 transition-colors outline-none",children:(0,i.jsx)(y.Z,{className:"w-4 h-4",strokeWidth:1.5})})}),(0,i.jsx)(h.AW,{className:"bg-[#111111] border border-white/[0.06] rounded-lg p-1 min-w-[140px] z-[110]",align:"end",children:(0,i.jsx)(h._x,{value:z,onValueChange:P,children:C.Mj.map(e=>(0,i.jsx)(h.qB,{value:e.lang,className:"pl-8 pr-3 py-2 rounded-md cursor-pointer text-sm font-medium text-white/70 hover:text-white focus:bg-white/5 hover:bg-white/5 data-[state=checked]:text-white data-[state=checked]:bg-white/[0.04] outline-none transition-colors",children:e.label},e.lang))})})]}),(0,i.jsx)(u.z,{variant:"brand",size:"sm",className:(0,A.cn)("h-9 px-4 sm:px-5 cursor-pointer rounded-full text-sm font-medium",a),onClick:()=>R(),children:(0,i.jsx)("span",{children:t||r("login")})})]}),(0,i.jsx)("div",{id:"google-one-tap",className:"fixed top-0 right-0 sm:right-[10vw]"})]})},z=a(49027),P=a(90535),L=a(32489);let S=z.fC,I=z.xz;z.x8;let D=z.h_,U=r.forwardRef((e,t)=>
1{let{className:a,...r}=e;return(0,i.jsx)(z.aV,{className:(0,A.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",a),...r,ref:t})});U.displayName=z.aV.displayName;let W=(0,P.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-2000 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"}}),R=r.forwardRef((e,t)=>{let{side:a="right",className:r,children:s,...n}=e;return(0,i.jsxs)(D,{children:[(0,i.jsx)(U,{}),(0,i.jsxs)(z.VY,{ref:t,className:(0,A.cn)(W({side:a}),r),...n,children:[s,(0,i.jsxs)(z.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none z-50 bg-transparent hover:bg-secondary/50",children:[(0,i.jsx)(L.Z,{className:"h-5 w-5 text-foreground"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});R.displayName=z.VY.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,i.jsx)(z.Dx,{ref:t,className:(0,A.cn)("text-lg font-semibold text-foreground",a),...r})}).displayName=z.Dx.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,i.jsx)(z.dk,{ref:t,className:(0,A.cn)("text-sm text-muted-foreground",a),...r})}).displayName=z.dk.displayName;var E=a(58293),F=a(69317),T=a(14924),V=a(29374),G=a(81555),O=a(10306),B=a(75277),H=a(46191),q=a(92369),Y=a(32096),X=a(95805),$=a(56439),Q=a(42449),J=a(14938),ee=a(60332),et=a(88997),ea=a(56783),ei=a(64372),er=a(87414),es=a(53113),en=a(4554),eo=a(4246),el=a(61959);let ed=e=>{let{onNavigate:t}=e,a=(0,s.jD)(),r=(0,_.useTranslations)("sidebar"),n=(0,_.useLocale)(),o=[{title:"discover",items:[{id:"explore",icon:F.Z,labelKey:"explore",path:"/explore"},{id:"assets",icon:T.Z,labelKey:"assets",path:"/assets"}]},{title:"talking-avatar",items:[{id:"talking-avatar",icon:V.Z,labelKey:"talking-avatar",path:"/talking-avatar"},{id:"talking-photo",icon:G.Z,labelKey:"talking-photo",path:"/talking-photo"},{id:"lipsync-video",icon:O.Z,labelKey:"lipsync-video",path:"/lipsync-video"},{id:"text-to-speech",icon:B.Z,labelKey:"text-to-speech",path:"/text-to-speech"},{id:"ai-talking-head-video-generator",icon:H.Z,labelKey:"ai-talking-head-video-generator",path:"/ai-talking-head-video-generator"},{id:"ai-presenter",icon:q.Z,labelKey:"ai-presenter",path:"/ai-presenter"},{id:"ai-news-reporter",icon:Y.Z,labelKey:"ai-news-reporter",path:"/ai-news-reporter"},{id:"ai-spokesperson",icon:X.Z,labelKey:"ai-spokesperson",path:"/ai-spokesperson"},{id:"video-ad-maker",icon:$.Z,labelKey:"video-ad-maker",path:"/video-ad-maker"},{id:"ecommerce-product-video-maker",icon:Q.Z,labelKey:"ecommerce-product-video-maker",path:"/ecommerce-product-video-maker"},{id:"real-estate-video-maker",icon:J.Z,labelKey:"real-estate-video-maker",path:"/real-estate-video-maker"},{id:"ai-avatar-generator",icon:ee.Z,labelKey:"ai-avatar-generator",path:"/ai-avatar-generator"},{id:"ai-talking-baby-generator",icon:et.Z,labelKey:"ai-talking-baby-generator",path:"/ai-talking-baby-generator"},{id:"ai-baby-podcast-generator",icon:ea.Z,labelKey:"ai-baby-podcast-generator",path:"/ai-baby-podcast-generator"},{id:"talking-animals",icon:ei.Z,labelKey:"talking-animals",path:"/talking-animals"},{id:"personalized-santa-video",icon:er.Z,labelKey:"personalized-santa-video",path:"/personalized-santa-video",onlyLocales:["en"]}]},{title:"ai-singer",items:[{id:"ai-singing-photo-generator",icon:es.Z,labelKey:"ai-singing-photo-generator",path:"/ai-singing-photo-generator"},{id:"ai-lip-sync-music-video",icon:en.Z,labelKey:"ai-lip-sync-music-video",path:"/ai-lip-sync-music-video"},{id:"ai-music-video-generator",icon:eo.Z,labelKey:"ai-music-video-generator",path:"/ai-music-video-generator"}]},{title:"billing",hiddenPC:!0,items:[{id:"pricing",icon:el.Z,labelKey:"pricing",path:"/pricing",hiddenPC:!0}]}].filter(e=>!((null==e?void 0:e.hiddenPC)&&!m.ti)),l=()=>{null==t||t()};return(0,i.jsx)("div",{className:"w-full h-full flex flex-col overflow-y-auto",children:(0,i.jsx)("div",{className:"px-3 py-4",children:(0,i.jsx)("nav",{className:"space-y-0.5",children:o.map((e,t)=>(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"px-2 pt-3 pb-1 text-[10px] font-semibold text-white/40 uppercase tracking-widest",children:r("groups.".concat(e.title))}),(0,i.jsx)("div",{className:"space-y-0.5 mb-2",children:e.items.map(e=>{if((null==e?void 0:e.hiddenPC)&&!m.ti||(null==e?void 0:e.onlyLocales)&&!e.onlyLocales.includes(n))return null;let t=a===e.path,o=e.icon;return(0,i.jsx)(s.rU,{className:"inline-block w-full",href:e.path,onClick:l,prefetch:!1,children:(0,i.jsxs)(u.z,{variant:"ghost",className:(0,A.cn)("w-full justify-start gap-3 h-9 text-sm px-2.5 text-white/70 hover:bg-white/[0.06] hover:text-white",t&&"bg-primary/15 text-primary font-medium hover:bg-primary/15 hover:text-primary"),children:[(0,i.jsx)(o,{className:"w-4 h-4"}),r(e.labelKey)]},e.id)},e.id)})}),t<o.length-1&&(0,i.jsx)("div",{className:"mx-2 mb-2 border-t border-white/[0.06]"})]},e.title))})})})};var ec=a(65621),eh=()=>{let e=(0,l.Z)(e=>e.toggleMobileWorksListDrawer);return(0,l.Z)(e=>e.isCreation)?(0,i.jsx)("button",{onClick:()=>e(!0),className:"sm:hidden w-9 h-9 -mr-1 flex items-center justify-center rounded-full border border-white/[0.08] text-white/70 hover:text-white hover:bg-white/5 transition-colors cursor-pointer",children:(0,i.jsx)(ec.Z,{size:16,strokeWidth:1.5})}):null},eu=a(90887);function em(e){let{className:t}=e;return(0,i.jsx)("svg",{viewBox:"0 0 156 18",xmlns:"http://www.w3.org/2000/svg",className:(0,A.cn)("block",t),role:"img","aria-label":"AvatarCraft AI",children:(0,i.jsxs)("text",{y:"14",fontFamily:"var(--font-sans), 'SF Pro Display', -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif",fontWeight:"600",fontSize:"15",fill:"currentColor",children:[(0,i.jsx)("tspan",{x:"0",letterSpacing:"-0.03em",children:"AvatarCraft"}),(0,i.jsx)("tspan",{dx:"9",letterSpacing:"0.06em",children:"AI"})]})})}let ep=e=>{let{label:t,items:a,active:r,pathname:n,getLabel:o}=e;return(0,i.jsxs)("div",{className:"relative group",children:[(0,i.jsxs)("button",{className:(0,A.cn)("flex items-center gap-1 px-3 py-1.5 rounded-md text-sm font-medium transition-colors",r?"text-white":"text-white/60 hover:text-white"),children:[t,(0,i.jsx)(v.Z,{className:"w-3.5 h-3.5 transition-transform duration-200 group-hover:rotate-180 opacity-60"})]}),(0,i.jsx)("div",{className:"absolute left-0 top-full pt-2 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-150 z-50",children:(0,i.jsx)("div",{className:"bg-[#111111] border border-white/[0.06] rounded-lg py-1.5 min-w-[200px]",children:a.map(e=>(0,i.jsx)(s.rU,{href:e.path,className:(0,A.cn)("block px-4 py-2 text-sm transition-colors",n===e.path?"text-white bg-white/5 font-medium":"text-white/70 hover:text-white hover:bg-white/5"),children:o(e)},e.path))})})]})};var ex=()=>
1{let e=(0,_.useTranslations)("header.nav"),t=(0,_.useTranslations)("sidebar"),a=(0,_.useLocale)(),n=(0,s.jD)(),[o,l]=(0,r.useState)(!1),[d,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=()=>h(window.scrollY>8);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let u=[{href:"/assets",key:"assets"}],m=(0,r.useMemo)(()=>u.filter(e=>!e.showOnRoutes||e.showOnRoutes.some(e=>n===e)),[n]),p=e=>"/"===e?"/"===n:null==n?void 0:n.startsWith(e),x=e=>e.some(e=>null==n?void 0:n.startsWith(e.path));return(0,r.useEffect)(()=>{l(!1)},[n]),(0,i.jsx)("header",{className:(0,A.cn)("sticky top-0 left-0 right-0 w-full z-50 transition-colors duration-300",d?"bg-[#0A0A0A]/90 backdrop-blur-xl border-b border-white/[0.06]":"bg-transparent border-b border-transparent"),children:(0,i.jsxs)("div",{className:"max-w-[1600px] mx-auto px-3 sm:px-8 h-[52px] sm:h-[60px] flex items-center justify-between relative",children:[(0,i.jsxs)("div",{className:"flex items-center sm:gap-10",children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)(S,{open:o,onOpenChange:l,children:[(0,i.jsx)(I,{asChild:!0,children:(0,i.jsx)("button",{className:"md:hidden w-9 h-9 -ml-1 flex items-center justify-center rounded-lg hover:bg-white/5 transition-colors",children:(0,i.jsx)(E.Z,{size:20,strokeWidth:1.8,className:"text-white/80"})})}),(0,i.jsx)(R,{side:"left",className:"w-60 p-0 pt-12 bg-[#0A0A0A] border-r border-white/[0.06] [&>button>svg]:text-white/80",children:(0,i.jsx)(ed,{onNavigate:()=>l(!1)})})]}),(0,i.jsxs)(s.rU,{href:"/",className:"hidden md:flex items-center gap-2 group ml-1",children:[(0,i.jsx)("div",{className:"w-8 h-8 overflow-hidden transition-transform group-hover:scale-105 flex-shrink-0",children:(0,i.jsx)("img",{alt:"AvatarCraft AI",title:"AvatarCraft AI",src:eu.oQ,width:32,height:32,className:"w-full h-full object-contain"})}),(0,i.jsx)(em,{className:"h-[18px] w-auto flex-shrink-0 text-white"})]})]}),(0,i.jsxs)("nav",{className:"hidden lg:flex items-center gap-1",children:[[{titleKey:"talking-avatar",items:[{id:"talking-avatar",labelKey:"talking-avatar",path:"/talking-avatar"},{id:"talking-photo",labelKey:"talking-photo",path:"/talking-photo"},{id:"lipsync-video",labelKey:"lipsync-video",path:"/lipsync-video"},{id:"text-to-speech",labelKey:"text-to-speech",path:"/text-to-speech"},{id:"ai-talking-head-video-generator",labelKey:"ai-talking-head-video-generator",path:"/ai-talking-head-video-generator"},{id:"ai-presenter",labelKey:"ai-presenter",path:"/ai-presenter"},{id:"ai-news-reporter",labelKey:"ai-news-reporter",path:"/ai-news-reporter"},{id:"ai-spokesperson",labelKey:"ai-spokesperson",path:"/ai-spokesperson"},{id:"video-ad-maker",labelKey:"video-ad-maker",path:"/video-ad-maker"},{id:"ecommerce-product-video-maker",labelKey:"ecommerce-product-video-maker",path:"/ecommerce-product-video-maker"},{id:"real-estate-video-maker",labelKey:"real-estate-video-maker",path:"/real-estate-video-maker"},{id:"ai-avatar-generator",labelKey:"ai-avatar-generator",path:"/ai-avatar-generator"},{id:"ai-talking-baby-generator",labelKey:"ai-talking-baby-generator",path:"/ai-talking-baby-generator"},{id:"ai-baby-podcast-generator",labelKey:"ai-baby-podcast-generator",path:"/ai-baby-podcast-generator"},{id:"talking-animals",labelKey:"talking-animals",path:"/talking-animals"},{id:"personalized-santa-video",labelKey:"personalized-santa-video",path:"/personalized-santa-video",onlyLocales:["en"]}]},{titleKey:"ai-singer",items:[{id:"ai-singing-photo-generator",labelKey:"ai-singing-photo-generator",path:"/ai-singing-photo-generator"},{id:"ai-lip-sync-music-video",labelKey:"ai-lip-sync-music-video",path:"/ai-lip-sync-music-video"},{id:"ai-music-video-generator",labelKey:"ai-music-video-generator",path:"/ai-music-video-generator"}]}].map(e=>(0,i.jsx)(ep,{label:t("groups.".concat(e.titleKey)),items:e.items.filter(e=>{var t;return!("onlyLocales"in e)||(null===(t=e.onlyLocales)||void 0===t?void 0:t.includes(a))}),active:x(e.items),pathname:n,getLabel:e=>t(e.labelKey)},e.titleKey)),m.map(t=>(0,i.jsx)(s.rU,{href:t.href,className:(0,A.cn)("px-3 py-1.5 rounded-md text-sm font-medium transition-colors",p(t.href)?"text-white":"text-white/60 hover:text-white"),children:e(t.key)},t.href))]})]}),(0,i.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center md:hidden pointer-events-none",children:(0,i.jsxs)(s.rU,{href:"/",className:"flex items-center gap-1.5 group active:scale-95 transition-transform pointer-events-auto",children:[(0,i.jsx)("div",{className:"w-6 h-6 overflow-hidden flex-shrink-0",children:(0,i.jsx)("img",{alt:"AvatarCraft AI",title:"AvatarCraft AI",
1src:eu.oQ,width:24,height:24,className:"w-full h-full object-contain"})}),(0,i.jsx)(em,{className:"h-[16px] w-auto flex-shrink-0 text-white"})]})}),(0,i.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[[{href:"/pricing",key:"pricing"}].map(t=>(0,i.jsx)(s.rU,{href:t.href,className:(0,A.cn)("hidden sm:block px-3 py-1.5 rounded-md text-sm font-medium transition-colors",p(t.href)?"text-white":"text-white/60 hover:text-white"),children:e(t.key)},t.href)),(0,i.jsx)(c,{}),(0,i.jsx)(M,{}),(0,i.jsx)(eh,{})]})]})})}},84190:function(e,t,a){a.d(t,{$F:function(){return h},AW:function(){return g},Ph:function(){return u},TG:function(){return x},Xi:function(){return f},_x:function(){return m},h_:function(){return c},kt:function(){return p},qB:function(){return v}});var i=a(57437),r=a(2265),s=a(70085),n=a(10407),o=a(30401),l=a(40519),d=a(94508);let c=s.fC,h=s.xz;s.ZA,s.Uv;let u=s.Tr,m=s.Ee,p=r.forwardRef((e,t)=>{let{className:a,inset:r,children:o,...l}=e;return(0,i.jsxs)(s.fF,{ref:t,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",r&&"pl-8",a),...l,children:[o,(0,i.jsx)(n.Z,{className:"ml-auto h-4 w-4"})]})});p.displayName=s.fF.displayName;let x=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,i.jsx)(s.tu,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",a),...r})});x.displayName=s.tu.displayName;let g=r.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,...n}=e;return(0,i.jsx)(s.Uv,{children:(0,i.jsx)(s.VY,{ref:t,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",a),...n})})});g.displayName=s.VY.displayName;let f=r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,i.jsx)(s.ck,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",r&&"pl-8",a),...n})});f.displayName=s.ck.displayName,r.forwardRef((e,t)=>{let{className:a,children:r,checked:n,...l}=e;return(0,i.jsxs)(s.oC,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",a),checked:n,...l,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(s.wU,{children:(0,i.jsx)(o.Z,{className:"h-4 w-4"})})}),r]})}).displayName=s.oC.displayName;let v=r.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,i.jsxs)(s.Rk,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",a),...n,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(s.wU,{children:(0,i.jsx)(l.Z,{className:"h-2 w-2 fill-current"})})}),r]})});v.displayName=s.Rk.displayName,r.forwardRef((e,t)=>{let{className:a,inset:r,...n}=e;return(0,i.jsx)(s.__,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",a),...n})}).displayName=s.__.displayName,r.forwardRef((e,t)=>
1{let{className:a,...r}=e;return(0,i.jsx)(s.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...r})}).displayName=s.Z0.displayName},10094:function(e,t,a){a.d(t,{jD:function(){return o},rU:function(){return s},tv:function(){return l}});var i=a(53795),r=a(59252);let{Link:s,redirect:n,usePathname:o,useRouter:l}=(0,i.iV)({locales:r.k1,localePrefix:"as-needed"})},56951:function(e,t,a){a.d(t,{E:function(){return l}});var i=a(89134),r=a(84027),s=a(4391),n=a(19843);let o={visibleMobileWorksListDrawer:!1,visibleMHamburger:!1,visiblePriceModal:!1,visiblePointModal:!1,visiblePointLogModal:!1,visibleSigninModal:!1,visibleNavGuide:!0,isCreation:!1},l=(0,r.F)()((0,s.n)((0,i.mW)(e=>({...o,toggleMobileWorksListDrawer(t){e(e=>{e.visibleMobileWorksListDrawer=(0,n.Z)(t)?t:!e.visibleMobileWorksListDrawer})},toggleMHamburger(t){e(e=>{e.visibleMHamburger=(0,n.Z)(t)?t:!e.visibleMHamburger})},togglePriceModal(t){e(e=>{e.visiblePriceModal=(0,n.Z)(t)?t:!e.visiblePriceModal})},togglePointModal(t){e(e=>{e.visiblePointModal=(0,n.Z)(t)?t:!e.visiblePointModal})},togglePointLogModal(t){e(e=>{e.visiblePointLogModal=(0,n.Z)(t)?t:!e.visiblePointLogModal})},toggleSigninModal(t){e(e=>{e.visibleSigninModal=(0,n.Z)(t)?t:!e.visibleSigninModal})},toggleNavGuide(t){e(e=>{e.visibleNavGuide=(0,n.Z)(t)?t:!e.visibleNavGuide})},setIsCreation(t){e(e=>{e.isCreation=t})}}),{name:"layout"})));t.Z=l}}]);

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.