PageSourceSearch

https://pixwith.ai/_next/static/chunks/7574-49638328b9f7bd58.js

js pixwith.ai collected 2026-10-05 12:24:20 UTC 26,913 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7574],{177:(e,t,a)=>{a.d(t,{M5:()=>f,SQ:()=>d,_2:()=>c,lp:()=>m,lv:()=>h,mB:()=>u,nV:()=>x,rI:()=>o,ty:()=>l});var n=a(5155);a(2115);var s=a(9480),i=a(7937),r=a(3931);function o(e){let{...t}=e;return(0,n.jsx)(s.bL,{"data-slot":"dropdown-menu",...t})}function l(e){let{...t}=e;return(0,n.jsx)(s.l9,{"data-slot":"dropdown-menu-trigger",...t})}function d(e){let{className:t,sideOffset:a=4,...i}=e;return(0,n.jsx)(s.ZL,{children:(0,n.jsx)(s.UC,{"data-slot":"dropdown-menu-content",sideOffset:a,className:(0,r.cn)("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...i})})}function c(e){let{className:t,inset:a,variant:i="default",...o}=e;return(0,n.jsx)(s.q7,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":i,className:(0,r.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}function m(e){let{className:t,inset:a,...i}=e;return(0,n.jsx)(s.JU,{"data-slot":"dropdown-menu-label","data-inset":a,className:(0,r.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...i})}function u(e){let{className:t,...a}=e;return(0,n.jsx)(s.wv,{"data-slot":"dropdown-menu-separator",className:(0,r.cn)("bg-border -mx-1 my-1 h-px",t),...a})}function h(e){let{...t}=e;return(0,n.jsx)(s.Pb,{"data-slot":"dropdown-menu-sub",...t})}function x(e){let{className:t,inset:a,children:o,...l}=e;return(0,n.jsxs)(s.ZP,{"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:(0,r.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",t),...l,children:[o,(0,n.jsx)(i.A,{className:"ml-auto size-4"})]})}function f(e){let{className:t,...a}=e;return(0,n.jsx)(s.G5,{"data-slot":"dropdown-menu-sub-content",className:(0,r.cn)("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...a})}},1895:(e,t,a)=>{a.d(t,{A:()=>P});var n=a(5155),s=a(2115),i=a(8027),r=a(3632),o=a(5907),l=a(2619),d=a.n(l),c=a(7356),m=a(448),u=a(9540),h=a(177),x=a(9068),f=a(4033),g=a(5917),v=a(63);function p(e){let{lang:t}
1=e,a=(0,v.usePathname)(),i=(0,v.useRouter)(),[r,o]=(0,s.useState)(!1),[l,m]=(0,s.useState)(null),u={en:"English",zh:"简体中文","zh-TW":"繁體中文",ja:"日本語",ko:"한국어",fr:"Fran\xe7ais",de:"Deutsch",es:"Espa\xf1ol",pt:"Portugu\xeas",ar:"العربية",ru:"Русский",hi:"हिंदी"},p={en:{prompt:"You may be more comfortable using",switch:"Switch",dismiss:"Dismiss"},zh:{prompt:"您可能更适合使用",switch:"切换",dismiss:"取消"},"zh-TW":{prompt:"您可能更适合使用",switch:"切換",dismiss:"取消"},ja:{prompt:"あなたは",switch:"切り替え",dismiss:"無視"},ko:{prompt:"당신은",switch:"전환",dismiss:"무시"},fr:{prompt:"Vous pouvez \xeatre plus \xe0 l'aise avec",switch:"Changer",dismiss:"Ignorer"},de:{prompt:"Sie k\xf6nnen mit",switch:"Wechseln",dismiss:"Ignorieren"},es:{prompt:"Puede que prefieras usar",switch:"Cambiar",dismiss:"Ignorar"},pt:{prompt:"Voc\xea pode preferir usar",switch:"Mudar",dismiss:"Ignorar"},ar:{prompt:"يمكن أن تكون أكثر مريحًا باستخدام",switch:"تغيير",dismiss:"تجاهل"},ru:{prompt:"Вы можете предпочесть использовать",switch:"Изменить",dismiss:"Игнорировать"},hi:{prompt:"आप अधिक सुविधाजनक उपयोग कर सकते हैं",switch:"बदलना",dismiss:"अनदेखा करना"}};(0,s.useEffect)(()=>{let e=(()=>{let e=Intl.DateTimeFormat().resolvedOptions().timeZone,t=(navigator.language||navigator.languages[0]).split("-")[0],a={lang:"en"};return"en,zh,zh-TW,ja,ko,fr,de,es,pt,ar,hi,ru".split(",").includes(t)&&(a.lang=t),({"Asia/Shanghai":{lang:"zh"},"Asia/Chongqing":{lang:"zh"},"Asia/Beijing":{lang:"zh"},"Asia/Taipei":{lang:"zh-TW"},"Asia/Tokyo":{lang:"ja"},"Asia/Seoul":{lang:"ko"},"America/New_York":{lang:"en"},"America/Los_Angeles":{lang:"en"},"America/Chicago":{lang:"en"},"America/Denver":{lang:"en"},"Europe/London":{lang:"en"},"America/Toronto":{lang:"en"},"America/Vancouver":{lang:"en"},"Australia/Sydney":{lang:"en"},"Australia/Melbourne":{lang:"en"},"Europe/Paris":{lang:"fr"},"Europe/Berlin":{lang:"de"},"Europe/Madrid":{lang:"es"},"Europe/Lisbon":{lang:"pt"},"America/Sao_Paulo":{lang:"pt"},"America/Rio_de_Janeiro":{lang:"pt"},"Asia/Riyadh":{lang:"ar"},"Asia/Dubai":{lang:"ar"},"Asia/Kolkata":{lang:"hi"},"Asia/Mumbai":{lang:"hi"},"Asia/Delhi":{lang:"hi"},"Europe/Moscow":{lang:"ru"},"Asia/Vladivostok":{lang:"ru"},"Europe/Rome":{lang:"en"},"Europe/Amsterdam":{lang:"en"},"Europe/Stockholm":{lang:"en"},"Europe/Zurich":{lang:"en"}})[e]||a})();if(e.lang!==t&&u[e.lang]){if(["/updates","/terms_of_service","/privacy","/about-us","/contact-us"].includes(a))return;"true"!==localStorage.getItem("lang-suggestion-dismissed")&&(m(e.lang),o(!0))}},[t]);let j=(e,t)=>{let n=a.replace("/en","").replace("/"+e,"");return"en"===t?""==n?"/":n:"/"+t+n};return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)(h.rI,{children:[(0,n.jsx)(h.ty,{asChild:!0,children:(0,n.jsxs)(c.$,{size:"sm",variant:"ghost","aria-label":"Language: ".concat(u[t]),children:[(0,n.jsx)(x.A,{className:"w-4 h-4"}),(0,n.jsx)("span",{className:"hidden md:block",children:u[t]}),(0,n.jsx)(f.A,{className:"w-4 h-4 inline"})]})}),(0,n.jsx)(h.SQ,{className:"w-40",children:Object.entries(u).map(e=>{let[a,s]=e;return(0,n.jsx)(h._2,{asChild:!0,children:(0,n.jsxs)(d(),{className:"flex items-center justify-between w-full cursor-pointer",href:j(t,a),children:[s,t===a&&(0,n.jsx)(g.A,{className:"w-4 h-4 text-primary"})]})},a)})})]}),r&&l&&(0,n.jsxs)("div",{className:"absolute top-full mt-2 right-0 z-50 border rounded-lg shadow-lg p-4 bg-gray-800 border-gray-700",children:[(0,n.jsxs)("div",{className:"text-sm mb-3",children:[p[l].prompt," ",u[l]]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(c.$,{size:"sm",onClick:()=>{let e=j(t,l);o(!1),i.push(e)},children:p[l].switch}),(0,n.jsx)(c.$,{size:"sm",variant:"outline",onClick:()=>{localStorage.setItem("lang-suggestion-dismissed","true"),o(!1)},children:p[l].dismiss})]})]})]})}var j=a(2707),w=a(3101),b=a(3931);function N(e){let{className:t,children:a,viewport:s=!0,...i}=e;return(0,n.jsxs)(j.bL,{"data-slot":"navigation-menu","data-viewport":s,className:(0,b.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...i,children:[a,s&&(0,n.jsx)(C,{})]})}function y(e){let{className:t,...a}=e;return(0,n.jsx)(j.B8,{"data-slot":"navigation-menu-list",className:(0,b.cn)("group flex flex-1 list-none items-center justify-center gap-1",t),...a})}function k(e){let{className:t,...a}=e;return(0,n.jsx)(j.q7,{"data-slot":"navigation-menu-item",className:(0,b.cn)("relative",t),...a})}let z=(0,w.F)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focu
1s-visible:ring-[3px] focus-visible:outline-1");function _(e){let{className:t,children:a,...s}=e;return(0,n.jsxs)(j.l9,{"data-slot":"navigation-menu-trigger",className:(0,b.cn)(z(),"group",t),...s,children:[a," ",(0,n.jsx)(f.A,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function A(e){let{className:t,...a}=e;return(0,n.jsx)(j.UC,{"data-slot":"navigation-menu-content",className:(0,b.cn)("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out 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 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 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-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",t),...a})}function C(e){let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,b.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,n.jsx)(j.LM,{"data-slot":"navigation-menu-viewport",className:(0,b.cn)("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",t),...a})})}function E(e){let{className:t,...a}=e;return(0,n.jsx)(j.N_,{"data-slot":"navigation-menu-link",className:(0,b.cn)("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",t),...a})}var S=a(7909);let B=(0,S.default)(()=>Promise.all([a.e(6163),a.e(8720),a.e(7856),a.e(806),a.e(9915)]).then(a.bind(a,99
115)),{loadableGenerated:{webpack:()=>[9915]},ssr:!1}),I=(0,S.default)(()=>Promise.all([a.e(8720),a.e(7856),a.e(7611)]).then(a.bind(a,7611)),{loadableGenerated:{webpack:()=>[7611]},ssr:!1}),P=()=>{let[e,t]=(0,s.useState)(!1),[a,l]=(0,s.useState)(!1),{lang:x,userData:f,isLoginOpen:g,setIsLoginOpen:v,isLogout:j,setIsLogout:w,commonDict:b,setIsDeleteConfirmOpen:C}=(0,o.x)(),[S,P]=(0,s.useState)(!1),O=()=>{t(!1),requestAnimationFrame(()=>{P(!0)})},L=[{title:b.nav.imageTools,items:[{name:b.nav.t2i,href:"".concat("en"==x?"":"/"+x,"/text-to-image")},{name:b.nav.i2i,href:"".concat("en"==x?"":"/"+x,"/image-to-image")},{name:b.nav.aiImageExtender,href:"".concat("en"==x?"":"/"+x,"/ai-image-extender")}]},{title:b.nav.videoTools,items:[{name:b.nav.i2v,href:"".concat("en"==x?"":"/"+x,"/image-to-video")},{name:b.nav.t2v,href:"".concat("en"==x?"":"/"+x,"/text-to-video")},{name:b.nav.videoEditor,href:"".concat("en"==x?"":"/"+x,"/ai-video-editor")},{name:b.nav.videoExtender,href:"".concat("en"==x?"":"/"+x,"/ai-video-extender")},{name:b.nav.motionControl,href:"".concat("en"==x?"":"/"+x,"/motion-control")},{name:b.nav.aiAvatar,href:"".concat("en"==x?"":"/"+x,"/ai-avatar")}]},{title:b.nav.chat||"Chat",href:"/".concat("en"==x?"":x+"/","chat")},{title:b.nav.explore,href:"/".concat("en"==x?"":x+"/","explore")},{title:b.nav.pricing,href:"/".concat("en"==x?"":x+"/","pricing")},{title:b.nav.apiPlatform,href:"/".concat("en"==x?"":x+"/","api")}];return(0,s.useEffect)(()=>{let e=()=>{window.scrollY>50?l(!0):l(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,n.jsxs)("div",{className:"w-full flex item-center justify-center",children:[(0,n.jsx)("nav",{"aria-label":"Site navigation links for search engines",className:"sr-only",children:(0,n.jsxs)("ul",{children:[L.map((e,t)=>(0,n.jsx)("li",{children:e.items?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:e.title}),(0,n.jsx)("ul",{children:e.items.map((e,a)=>(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:e.href,children:e.name})},"seo-nav-".concat(t,"-").concat(a)))})]}):(0,n.jsx)("a",{href:e.href,children:e.title})},"seo-nav-".concat(t))),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"".concat("en"==x?"":"/"+x,"/affiliate"),children:b.nav.freeCredits})},"seo-nav-affiliate")]})}),(0,n.jsxs)("div",{className:"w-full max-w-7xl fixed top-0 flex flex-row items-center justify-between px-3 md:px-8 h-16 z-50 transition-all duration-300 ".concat(a?"md:rounded-full md:top-4 c-shadow bg-black/60 backdrop-blur-sm":""),children:[(0,n.jsxs)("div",{className:"flex flex-row items-center gap-10",children:[(0,n.jsxs)(d(),{href:"/",className:"flex flex-row items-center",children:[(0,n.jsx)("img",{className:"w-6 md:w-8 h-6 md:h-8 mr-1 md:mr-2",src:"/icon.png",alt:"Pixwith.AI"}),(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"font-medium text-lg md:text-xl",children:"Pixwith.AI"})})]}),(0,n.jsx)(N,{className:"hidden md:block",delayDuration:0,viewport:!1,children:(0,n.jsxs)(y,{children:[L.map((e,t)=>(0,n.jsx)(k,{children:e.items?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_,{className:"bg-transparent text-muted-foreground text-base",children:e.title}),(0,n.jsx)(A,{children:(0,n.jsx)("ul",{className:"grid grid-cols-2 gap-1 p-3 md:w-[400px]",children:e.items.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(E,{asChild:!0,className:"".concat(z()," bg-transparent"),children:(0,n.jsx)(d(),{href:e.href,children:e.name})})},t))})})]}):(0,n.jsx)(E,{asChild:!0,className:"".concat(z()," bg-transparent text-muted-foreground text-base"),children:(0,n.jsx)(d(),{href:e.href,children:e.title})})},t)),(0,n.jsx)(k,{children:(0,n.jsx)(E,{asChild:!0,className:"".concat(z()," text-base bg-gradient-to-r from-purple-500 via-pink-500 to-yellow-500 text-transparent bg-clip-text font-bold"),children:(0,n.jsx)(d(),{href:"".concat("en"==x?"":"/"+x,"/affiliate"),children:b.nav.freeCredits})})})]})})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center",children:[(0,n.jsxs)("ul",{className:"flex flex-row items-center",children:[(0,n.jsx)("li",{children:(0,n.jsx)(p,{lang:x})}),f&&1==f.account_type?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d(),{href:"".concat("en"==x?"":"/"+x,"/order-subscription#credit-history"),className:"block",children:(0,n.jsxs)("li",{className:"flex flex-row items-center md:mr-3 cursor-pointer rounded-md p-1 ".concat(a?"bg-zinc-800":""),children:[(0,r.G$)("size-5 inline"),(0,n.jsx)("div",{className:"text-white font-bold text-sm md:text-base",children:f.credits})]})}),(0,n.jsx)("li",{className:"hidden md:block",children:(0,n.jsxs)(h.rI,{children:[(0,n.jsx)(h.ty,{asChild:!0,children:(0,n.jsxs)(i.eu,{className:"w-8 h-8",children:[(0,n.jsx)(i.BK,{src:f.avatar}),(0,n.jsx)(i.q5,{children:(0,n.jsx)(m.A,{className:"w-6 h-6"})})]})}),(0,n.jsxs)(h.SQ,{align:"start",children:[(0,n.jsx)(h._2,{className:"max-w-50 line-clamp-1",children:f.email}),(0,n.jsx)(h.mB,{}),(0,n.jsx)(h._2,{onClick:O,children:b.nav.redeemCode}),(0,n.jsx)(h.mB,{}),(0,n.jsx)(d(),{href:"".concat("en"==x?"":"/"+x,"/order-subscription"),children:(0,n.jsx)(h._2,{children:b.nav.orderSubscription})}),(0,n.jsx)(h.mB,{}),(0,n.jsxs)(h._2,{onClick:()=>{w(!0)},children:[j?(0,r.qs)("w-5 h-5 mr-2"):"",j?b.nav.loggingOut:b.nav.signOut]}),(0,n.jsx)(h.mB,{}),(0,n.jsx)(h._2,{className:"text-red-400",onClick:()=>{C(!0)},children:b.nav.deleteAccount})]})]})})]}):(0,n.jsx)("li",{className:"hidden md:block",children:(0,n.jsx)(c.$,{className:"bg-white text-black rounded-full hover:bg-white/90",onClick:()=>v(!0),children:b.nav.startForFree})})]}),(0,n.jsxs)(h.rI,{open:e,onOpenChange:t,children:[(0,n.jsx)(h.ty,{asChild:!0,children:(0,n.jsx)(c.$,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":"Menu",children:(0,n.jsx)(u.A,{className:"size-6"})})}),(0,n.jsxs)(h.SQ,{className:"w-40",align:"start",children:[f&&1==f.account_type?(0,n.jsxs)(h.lv,{children:[(0,n.jsx)(h.nV,{children:(0,n.jsxs)("div",{className:"w-full flex items-center gap-1",children:[(0,n.jsxs)(i.eu,{className:"size-6",children:[(0,n.jsx)(i.BK,{src:f.avatar}),(0,n.jsx)(i.q5,{children:(0,n.jsx)(m.A,{className:"w-6 h-6"})})]}),b.nav.myAccount]})}),(0,n.jsxs)(h.M5,{children:[(0,n.jsx)(h._2,{className:"max-w-50 line-clamp-1",children:f.email}),(0,n.jsx)(h.mB,{}),(0,n.jsx)(h._2,{onClick:O,children:b.nav.redeemCode}),(0,n.jsx)(h.mB,{}),(0,n.jsx)(d(),{href:"".concat("en"==x?"":"/"+x,"/order-subscription"),children:(0,n.jsx)(h._2,{children:b.nav.orderSubscription||"Order & Subscription"})}),(0,n.jsx)(h.mB,{}),(0,n.jsxs)(h._2,{onClick:()=>{w(!0)},children:[j?(0,r.qs)("w-5 h-5 mr-2"):"",j?b.nav.loggingOut:b.nav.signOut]}),(0,n.jsx)(h.mB,{}),(0,n.jsx)(h._2,{className:"text-red-400",onClick:()=>{C(!0)},children:b.nav.deleteAccount})]})]}):(0,n.jsx)(c.$,{size:"sm",className:"bg-primary w-full",onClick:()=>{v(!0),t(!1)},children:b.nav.signIn}),L.map((e,t)=>e.items?(0,n.jsxs)("div",{children:[(0,n.jsx)(h.mB,{}),(0,n.jsx)(h.lp,{className:"text-zinc-500",children:e.title}),e.items.map((e,t)=>(0,n.jsx)(d(),{href:e.href,children:(0,n.jsx)(h._2,{children:e.name})},t))]},t):(0,n.jsxs)("div",{children:[(0,n.jsx)(h.mB,{}),(0,n.jsx)(d(),{href:e.href,children:(0,n.jsx)(h._2,{children:e.title})}
1,t)]},t)),(0,n.jsxs)("div",{children:[(0,n.jsx)(h.mB,{}),(0,n.jsx)(d(),{href:"".concat("en"==x?"":"/"+x,"/affiliate"),children:(0,n.jsx)(h._2,{className:"bg-gradient-to-r from-purple-500 via-pink-500 to-yellow-500 text-transparent bg-clip-text font-bold hover:from-blue-500 hover:via-green-500 hover:to-red-500 animate-gradient",children:b.nav.freeCredits})})]})]})]})]}),(0,n.jsx)(I,{isDialogOpen:S,onOpenChange:P}),(f||g)&&(0,n.jsx)(B,{isDialogOpen:g,onOpenChange:v})]})]})}},2273:(e,t,a)=>{a.d(t,{A:()=>d});var n=a(5155),s=a(2619),i=a.n(s),r=a(5907),o=a(3664),l=a(3632);function d(){let{commonDict:e,lang:t}=(0,r.x)();return(0,n.jsx)("footer",{className:"w-full py-8 px-3 flex items-center justify-center border-t border-primary/60",children:(0,n.jsxs)("div",{className:"w-full md:w-4/5 flex flex-col md:flex-row items-start justify-start",children:[(0,n.jsxs)("div",{className:"mb-8 w-52 flex flex-col items-start justify-start",children:[(0,n.jsxs)(i(),{href:"/".concat("en"===t?"":t),className:"flex flex-row items-center",children:[(0,n.jsx)("img",{className:"w-6 md:w-8 h-6 md:h-8 mr-1 md:mr-2",src:"/icon.png",alt:"Pixwith.AI"}),(0,n.jsx)("span",{className:"font-bold text-lg",children:"Pixwith.AI"})]}),(0,n.jsxs)("div",{className:"mt-4 flex flex-col items-start justify-start gap-2",children:[(0,n.jsxs)("a",{href:"mailto:[email protected]",className:"hover:text-primary text-sm flex items-center",children:[(0,n.jsx)(o.A,{className:"w-4 h-4 mr-2"}),"[email protected]"]}),(0,n.jsxs)("a",{href:"https://x.com/pixwithai",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary text-sm flex items-center",children:[(0,l.jU)("size-4 mr-2"),"@pixwithai"]})]})]}),(0,n.jsxs)("div",{className:"px-1 flex items-start justify-between md:justify-around w-full flex-wrap gap-y-3",children:[(0,n.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,n.jsx)("h3",{className:"mb-3 font-bold",children:e.nav.imageTools}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/text-to-image"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.t2i}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/image-to-image"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.i2i}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/ai-image-extender"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.aiImageExtender})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,n.jsx)("h3",{className:"mb-3 font-bold",children:e.nav.videoTools}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/text-to-video"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.t2v}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/image-to-video"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.i2v}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/ai-video-extender"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.videoExtender}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/ai-video-editor"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.videoEditor}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/motion-control"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.motionControl}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/ai-avatar"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.nav.aiAvatar})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,n.jsx)("h3",{className:"mb-3 font-bold",children:e.footer.information}),(0,n.jsx)(i(),{href:"/privacy",target:"_blank",className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.footer.privacyPolicy}),(0,n.jsx)(i(),{href:"/terms_of_service",target:"_blank",className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.footer.termsOfService}),(0,n.jsx)(i(),{href:"/updates",target:"_blank",className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.footer.updates}),(0,n.jsx)(i(),{href:"/contact-us",target:"_blank",className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.footer.contactUs}),(0,n.jsx)(i(),{href:"/about-us",target:"_blank",className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.footer.aboutUs}),(0,n.jsx)(i(),{href:"".concat("en"==t?"":"/"+t,"/affiliate"),className:"mb-2 text-muted-foreground hover:text-white text-sm font-light min-w-32",children:e.footer.affiliate})]})]})]})})}},2452:(e,t,a)=>{a.d(t,{N:()=>o,U:()=>r});var n=a(5155),s=a(2115);let i=(0,s.createContext)();function r(e){let{children:t}
1=e,[a,r]=(0,s.useState)([0,0]),[o,l]=(0,s.useState)(!1),[d,c]=(0,s.useState)("Network Error!");return(0,s.useEffect)(()=>{let e=()=>{r([window.innerWidth,window.innerHeight])};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.jsx)(i.Provider,{value:{innerSize:a},children:t})}function o(){return(0,s.useContext)(i)}},3931:(e,t,a)=>{a.d(t,{cn:()=>i});var n=a(2821),s=a(5889);function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,n.$)(t))}},7356:(e,t,a)=>{a.d(t,{$:()=>l,r:()=>o});var n=a(5155);a(2115);var s=a(2467),i=a(3101),r=a(3931);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:a,size:i,asChild:l=!1,...d}=e,c=l?s.DX:"button";return(0,n.jsx)(c,{"data-slot":"button",className:(0,r.cn)(o({variant:a,size:i,className:t})),...d})}},8027:(e,t,a)=>{a.d(t,{BK:()=>o,eu:()=>r,q5:()=>l});var n=a(5155);a(2115);var s=a(6591),i=a(3931);function r(e){let{className:t,...a}=e;return(0,n.jsx)(s.bL,{"data-slot":"avatar",className:(0,i.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),...a})}function o(e){let{className:t,...a}=e;return(0,n.jsx)(s._V,{"data-slot":"avatar-image",className:(0,i.cn)("aspect-square size-full",t),...a})}function l(e){let{className:t,...a}=e;return(0,n.jsx)(s.H4,{"data-slot":"avatar-fallback",className:(0,i.cn)("bg-muted flex size-full items-center justify-center rounded-full",t),...a})}}}]);

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.