PageSourceSearch

https://eimg.ai/_next/static/immutable/chunks/3q5qq8wt3pr5l.js

js eimg.ai collected 2026-09-25 20:15:34 UTC 74,206 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,929363,e=>{"use strict";var t=e.i(42768),s=e.i(114138),a=e.i(902159),i=e.i(334494),r=e.i(253344),l=e.i(82808),n=e.i(828420),o=e.i(920932),d=e.i(614325),c=e.i(519455),m=e.i(776639),x=e.i(73588),p=e.i(846216),u=e.i(488296),g=e.i(520133),h=e.i(578938),b=e.i(911438),f=e.i(303163),j=e.i(77607),w=e.i(147634),v=e.i(1911),N=e.i(335137),y=e.i(996662),k=e.i(139586),C=e.i(816767),q=e.i(95896),z=e.i(604664),I=e.i(907265),S=e.i(320591),P=e.i(673005),B=e.i(278287),L=e.i(973578),T=e.i(367882),R=e.i(566539),$=e.i(704927),U=e.i(958907),E=e.i(721853),D=e.i(193786),A=e.i(943572),_=e.i(754259),M=e.i(590620),F=e.i(89276),G=e.i(357195),Z=e.i(704671);e.s(["default",0,function(){let e=(0,D.useTranslations)("NanoBanana2Page"),W=(0,D.useTranslations)("HomePage.nanobanana"),K=(0,D.useTranslations)("HomePage.nanobanana.generator"),H=(0,D.useTranslations)("Marketing.navbar"),{data:V}=h.authClient.useSession(),{data:O,isLoading:X,isError:J}=(0,p.useCreditBalance)(),Q=(0,A.useLocale)(),[Y,ee]=(0,F.useState)(""),[et,es]=(0,F.useState)("text"),[ea,ei]=(0,F.useState)("nb2"),[er,el]=(0,F.useState)(!1),[en,eo]=(0,F.useState)(!0),[ed,ec]=(0,F.useState)("auto"),[em,ex]=(0,F.useState)("JPEG"),[ep,eu]=(0,F.useState)("1K"),[eg,eh
1]=(0,F.useState)(null),[eb,ef]=(0,F.useState)(!1),ej=(0,F.useRef)(null),[ew,ev]=(0,F.useState)(null),[eN,ey]=(0,F.useState)(!1),ek=(0,F.useRef)(null),[eC,eq]=(0,F.useState)(null),[ez,eI]=(0,F.useState)(null),[eS,eP]=(0,F.useState)(0),[eB,eL]=(0,F.useState)(null),[eT,eR]=(0,F.useState)(0),e$=(0,F.useRef)(null),[eU,eE]=(0,F.useState)(new Set),eD=(0,F.useRef)("nb2-edit"),eA=(0,F.useRef)(null),e_=(0,F.useRef)(null),eM=(0,F.useRef)(1),eF=[{id:"3d-case-presentation",title:e("generator.examples.case1"),image:"display/3D-Case%20Presentation.jpeg"},{id:"nano-banana-pro-ai-img",title:e("generator.examples.case2"),image:"display/nano-banana-%20pro-ai-img.jpeg"},{id:"nano-banana-pro-refer-fighting-actions",title:e("generator.examples.case3"),image:"display/nano-banana-pro-Refer%20to%20fighting%20actions2.webp"},{id:"ai-meme-sticker-maker",title:e("generator.examples.case4"),image:"display/nano-banana-AI-Meme%3ASticker-Maker.webp"},{id:"nano-banana-pro-mathematical-solution",title:e("generator.examples.case5"),image:"display/nano-banana-pro-Mathematical%20solution.jpeg"}],eG=eF.length,eZ=eF[eS]??eF[0],eW=eZ?(0,x.getCDNUrl)(eZ.image):"",eK="nb2lite"===ea,eH=eK?10:14,{uploadedImages:eV,isUploading:eO,uploadFile:eX,addImageFromUrl:eJ,removeImage:eQ,resetImages:eY,retryUpload:e0,rateLimitUntil:e2,rateLimitMessage:e1}=(0,u.useImageUpload)(eH);(0,F.useEffect)(()=>{if(ew||eG<=1)return;let e=setInterval(()=>{eM.current=1,eP(e=>(e+1)%eG)},5e3);return()=>clearInterval(e)},[ew,eG]),(0,F.useEffect)(()=>{if(!ez)return;let e=e=>{"Escape"===e.key&&eI(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[ez]),(0,F.useEffect)(()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("editImage")?.trim();if(!t||eA.current===t)return;eA.current=t,(async()=>{let e=t;try{let s=t.match(/\/api\/share\/img\/([^/?#]+)/);if(s?.[1]){let t=await fetch(`/api/share/resolve/${encodeURIComponent(s[1])}`),a=await t.json();a?.url&&(e=a.url)}}catch{}eV.some(t=>t.url===e)||await eJ(e)})(),es("edit");let s=document.getElementById("generator");s?.scrollIntoView({behavior:"smooth",block:"start"})}catch{}},[eJ,eV]);let e4=(0,F.useCallback)((e,t)=>{let s=(0,f.getErrorMessage)(e,t);eh(s),G.toast.error(s)},[]),{execute:e5,isPending:e6}=(0,_.useAction)(i.createNanoBanana2Task,{onSuccess:e=>{e.data&&(ev({taskId:e.data.taskId,state:"waiting",resultUrls:[]}),eD.current="nb2lite"===ea?"edit"===et?"nb2lite-edit":"nb2lite-text":"edit"===et?"nb2-edit":"nb2-text",tC(e.data.taskId))},onError:e=>e4(e,K("errors.createTaskFailed"))}),{execute:e3,result:e8}=(0,_.useAction)(r.queryNanoBanana2Task),{execute:e9,isPending:e7,result:te}=(0,_.useAction)(a.consumeCreditsAction,{onError:e=>e4(e,K("errors.consumeCreditsFailed"))}),tt=(0,F.useRef)("share"),{execute:ts,isPending:ta}=(0,_.useAction)(l.createShareLinkAction,{onSuccess:t=>{let s=t?.data??t,a=s?.url,i=s?.key;if("share"===tt.current){if(!a)return G.toast.error(e("generator.toast.shareCreateFailed"));navigator.share&&navigator.share({title:e("generator.shareTitle"),url:a}).catch(()=>void 0),navigator.clipboard.writeText(a).then(()=>G.toast.success(e("generator.toast.linkCopied"))).catch(()=>G.toast.error(e("generator.toast.copyFailed")))}else if("edit"===tt.current){if(!i)return G.toast.error(e("generator.toast.editCreateFailed"));let t=window.location.origin,s=`${t}/${Q}/nano-banana-2?editImage=${encodeURIComponent(`/api/share/img/${i}`)}#generator`;navigator.clipboard.writeText(s).then(()=>G.toast.success(e("generator.toast.editLinkCopied"))).catch(()=>G.toast.error(e("generator.toast.copyFailed")))}},onError:()=>G.toast.error(e("generator.toast.shareCreateFailed"))}),[ti,tr]=(0,F.useState)(null),tl=!!(ew&&["waiting","queuing","generating"].includes(ew.state)),tn=eN||e7||e6||tl,to=Y.length,td=to>2e4,tc=eO||tn||td,tm={"1K":Number("12"),"2K":Number("24"),"4K":Number("30")},tx=Number(t.default.env.NEXT_PUBLIC_NB_V2_LITE_CREDITS||t.default.env.NEXT_PUBLIC_NB2_LITE_CREDITS||"8"),tp=eK?tx:tm[ep]??30,tu=e("generator.creditsWord"),tg=e("generator.perTask"),th=eK?tg:e("generator.unitResolution",{resolution:ep}
1),tb=e("generator.costInfo",{credits:tp,unit:th}),tf=e("generator.creditsAvailable",{credits:O??0}),tj=e("generator.promptLimit",{limit:2e4}),tw=e("generator.promptOverLimit",{limit:2e4}),tv=String(Q||"").toLowerCase().startsWith("zh"),tN=eK?"Nano Banana 2 Lite":e("generator.model.name"),ty=eK?tv?"快速文生图和图生图,支持最多 10 张参考图。":"Fast text-to-image and image edits with up to 10 reference images.":e("generator.model.desc"),tk=(0,F.useCallback)(()=>{if(!eC)return;tt.current="share";let t=e_.current?.prompt||Y||e("generator.generatedImage"),s=e_.current?.aspectRatio||ed||"auto";ts({imageUrl:eC,prompt:eB?.prompt||t,model:eB?.model||ew?.model,aspectRatio:eB?.aspectRatio||s,width:eB?.outputDimensions?.width,height:eB?.outputDimensions?.height,taskId:ew?.taskId,locale:Q||"en",sourceImages:"nb2-edit"===eD.current||"nb2lite-edit"===eD.current?eV.filter(e=>"success"===e.status).slice(0,3).map(e=>e.url):void 0})},[eC,eB,Y,ew?.model,ew?.taskId,ed,Q,eV,ts]),tC=(0,F.useCallback)(e=>{ey(!0);let t=()=>{e3({taskId:e})};t(),ek.current=setInterval(t,2e3)},[e3]);(0,F.useEffect)(()=>{if(e8?.data?.success){let e=e8.data;ev({taskId:e.taskId,state:e.state,resultUrls:e.resultUrls||[],failMsg:e.failMsg,costTime:e.costTime,completeTime:e.completeTime,model:e.model}),("success"===e.state||"fail"===e.state)&&(ey(!1),ek.current&&clearInterval(ek.current),"success"!==e.state||eU.has(e.taskId)||(eE(t=>new Set([...t,e.taskId])),setTimeout(()=>eR(e=>e+1),2e3)))}},[e8,eU]),(0,F.useEffect)(()=>{if(!te?.data?.success)return;let e=te?.data?.transactionId;if(e&&e$.current===e)return;let t=te?.data?.attestation;ti&&(e5({...ti,attestation:t}),tr(null),e&&(e$.current=e))},[te,ti,e5]),(0,F.useEffect)(()=>{te?.data?.success===!1&&(e4(te.data,K("errors.consumeCreditsFailed")),tr(null))},[te,e4,K]);let tq=async e=>{let t=e.target.files;if(t)for(let e of(eh(null),Array.from(t)))try{await eX(e)}catch(t){let e=t instanceof Error?t.message:"Upload failed";!V?.user&&/sign\s*in|log\s*in/i.test(e)?(eh(K("errors.signInToUpload")),ef(!0)):eh(e)}},tz=async()=>{if(V?.user&&!X&&(O||0)<tp){let t=e("generator.insufficientCredits",{credits:tp});eh(t),G.toast.error(t);return}let t=Y.trim();if(!t)return void eh(K("errors.enterPrompt"));if(td)return void eh(tw);let s=eV.filter(e=>"success"===e.status);if("edit"===et&&0===s.length)return void eh(K("errors.uploadImage"));e_.current={prompt:t,aspectRatio:ed};let a=s.map(e=>e.url).slice(0,eH),i="auto"===ed?"auto":ed;tr({model:eK?"nano-banana-2-lite":"nano-banana-2",prompt:t,...a.length>0?{image_input:a}:{},aspect_ratio:i,...!eK?{google_search:er}:{},...!eK?{resolution:ep}:{},...!eK?{output_format:"PNG"===em?"png":"jpg"}:{}}),e9({amount:tp,description:eK?"Nano Banana 2 Lite image generation":e("generator.consumeDescription"),moderationPrompt:t,moderationSource:eK?"nano-banana-2-lite-page-preconsume":"nano-banana-2-page-preconsume",moderationHasReferenceImages:"edit"===et})},tI=async(e,t)=>{await (0,b.downloadGeneratedAsset)(e,t,"Download failed")},tS=async t=>{try{await eJ(t),es("edit"),G.toast.success(K("toasts.imageAdded"))}catch(s){let t=s instanceof Error?s.message:e("generator.addImageFailed");eh(t),G.toast.error(`${K("toasts.addFailed")}: ${t}`)}},tP=e7?K("status.consumingCredits"):ew?.state==="waiting"?K("status.starting"):ew?.state==="queuing"?K("status.inQueue"):(ew?.state,K("status.generating"));return(0,s.jsx)("section",{id:"generator",className:"py-2 sm:py-6 lg:py-24 px-4 bg-background",children:(0,s.jsxs)("div",{className:"mx-auto max-w-7xl xl:max-w-[95rem] px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"text-center mb-6 sm:mb-8 lg:mb-12",children:[(0,s.jsx)("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold mb-4 sm:mb-5 lg:mb-6",children:e("generator.title")}),(0,s.jsx)("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-3xl mx-auto",children:e("generator.description")})]}),(0,s.jsx)("div",{className:"rounded-2xl border bg-card shadow-xl overflow-hidden transform-gpu scale-90 md:scale-95 lg:scale-100 origin-top",children:(0,s.jsxs)("div",{className:"flex flex-col lg:grid lg:grid-cols-2 gap-0",children:[(0,s.jsxs)("div",{className:"p-3 sm:p-4 lg:p-6 lg:border-r bg-background",children:[(0,s.jsxs)("div",{className:"w-full flex flex-col items-center justify-center mb-4 gap-3",children:[(0,s.jsxs)("div",{className:"inline-flex w-full rounded-lg overflow-hidden border shadow-sm bg-background",children:[(0,s.jsx)("button",{type:"button",onClick:()=>es("edit"),className:`flex-1 px-4 md:px-6 py-2 md:py-2.5 text-sm md:text-base font-medium text-center ${"edit"===et?"bg-gradient-to-r from-purple-600 to-pink-600 text-white":"hover:bg-muted"}`,children:K("modes.imageEdit")}),(0,s.jsx)("button",{type:"button",onClick:()=>es("text"),className:`flex-1 px-4 md:px-6 py-2 md:py-2.5 text-sm md:text-base font-medium text-center ${"text"===et?"bg-gradient-to-r from-purple-600 to-pink-600 text-white":"hover:bg-muted"}`,children:K("modes.textToImage")})]}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg border bg-muted/30",children:[(0,s.jsx)("span",{className:`inline-flex items-center justify-center w-5 h-5 rounded-full ${eK?"bg-lime-100 text-lime-700":"bg-purple-100 text-purple-700"}`,children:(0,s.jsx)($.Zap,{className:"w-3.5 h-3.5"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"text-sm font-medium flex items-center gap-2",children:[tN,(0,s.jsx)("span",{className:`text-[10px] px-1.5 py-0.5 rounded-full text-white ${eK?"bg-lime-600":"bg-purple-600"}`,children:eK?"LITE":e("generator.newBadge")})]}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:ty})]}),(0,s.jsxs)("div",{className:`text-xs font-medium ${eK?"text-lime-600":"text-purple-600"}`,children:[tp," ",tu,"/",tg]})]}),(0,s.jsxs)("div",{className:"mt-2 grid grid-cols-2 overflow-hidden rounded-lg border text-xs font-medium",children:[(0,s.jsx)("button",{type:"button",onClick:()=>ei("nb2"),className:`px-3 py-2 ${!eK?"bg-purple-600 text-white":"hover:bg-muted"}`,children:"Nano Banana 2"}),(0,s.jsx)("button",{type:"button",onClick:()=>ei("nb2lite"),className:`px-3 py-2 ${eK?"bg-lime-600 text-white":"hover:bg-muted"}`,children:"Nano Banana 2 Lite"})]}),(0,s.jsxs)("div",{className:"mt-2 flex items-center justify-between text-xs text-muted-foreground",children:[(0,s.jsx)("span",{children:tb}),(0,s.jsx)("span",{children:tf})]})]})]}),(0,s.jsxs)("div",{className:"mb-3 sm:mb-4 lg:mb-6",children:[(0,s.jsxs)("label",{htmlFor:"prompt-input-nb2",className:"flex items-center justify-between text-sm font-medium mb-2",children:[(0,s.jsx)("span",{children:K("prompt")}),(0,s.jsxs)("span",{className:`text-xs ${td?"text-red-500":"text-muted-foreground"}`,children:[to,"/",2e4]})]}),(0,s.jsx)("textarea",{id:"prompt-input-nb2",value:Y,onChange:e=>ee(e.target.value),placeholder:K("placeholders.prompt"),"aria-invalid":td,className:`w-full min-h-[100px] px-3 py-3 text-sm sm:text-base border rounded-lg bg-background focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent ${td?"border-red-500 focus:ring-red-500":""}`}),(0,s.jsx)("div",{className:`mt-1 text-xs ${td?"text-red-500":"text-muted-foreground"}`,children:td?tw:tj})]}),"edit"===et&&(0,s.jsxs)("div",{className:"mb-4 sm:mb-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs md:text-sm font-medium mb-2",children:[K("imageUrls"),(0,s.jsxs)("span",{className:"text-muted-foreground text-xs",children:["* (",tv?`最多${eH}张`:`max ${eH}`,")"]})]}),(0,s.jsx)("input",{ref:ej,type:"file",accept:"image/*",multiple:!0,onChange:tq,className:"hidden"}),(0,s.jsx)("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-3 mb-3",children:(0,s.jsxs)(c.Button,{onClick:()=>ej.current?.click(),variant:"outline",className:"flex items-center gap-2 px-3 md:px-4 py-2 text-sm",type:"button",children:[(0,s.jsx)(S.Image,{className:"w-3 h-3 md:w-4 md:h-4"}),K("addImage")]})}),eg&&(0,s.jsxs)("div",{className:"flex items-center gap-2 p-3 mb-3 bg-red-50 dark:bg-red-900/20 text-red-600 dark:text-red-400 rounded-lg",children:[(0,s.jsx)(w.AlertCircle,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"text-sm",children:eg})]}),eV.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-2 md:gap-3 mb-3",children:eV.map(t=>(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("button",{type:"button",className:"w-[80px] md:w-[100px] h-[80px] md:h-[100px] rounded-lg overflow-hidden border border-gray-200 relative cursor-zoom-in",onClick:()=>"success"===t.status&&eI(t.url),title:e("generator.previewImage"),disabled:"success"!==t.status,children:[(0,s.jsx)(M.default,{src:t.url,alt:t.name,width:100,height:100,className:"w-full h-full object-cover",unoptimized:t.url.startsWith("data:")||t.url.includes("tempfile.aiquickdraw.com")}),"uploading"===t.status&&(0,s.jsxs)("div",{className:"absolute inset-0 bg-black/50 flex flex-col items-center justify-center",children:[(0,s.jsx)(B.RefreshCw,{className:"w-6 h-6 text-white animate-spin mb
1-1"}),t.progress&&(0,s.jsxs)("span",{className:"text-white text-xs",children:[t.progress,"%"]})]}),"error"===t.status&&(0,s.jsx)("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:(0,s.jsx)(w.AlertCircle,{className:"w-6 h-6 text-red-500"})}),"success"===t.status&&(0,s.jsx)("div",{className:"absolute top-1 right-1",children:(0,s.jsx)(v.CheckCircle,{className:"w-4 h-4 text-green-500 bg-white rounded-full"})})]}),(0,s.jsxs)("div",{className:"absolute -top-2 -right-2 flex gap-1",children:["error"===t.status&&(0,s.jsx)("button",{onClick:()=>e0(t.id),className:"bg-blue-500 text-white rounded-full p-1 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-blue-600",type:"button",title:e("generator.retryUpload"),children:(0,s.jsx)(B.RefreshCw,{className:"w-3 h-3"})}),(0,s.jsx)("button",{onClick:()=>eQ(t.id),className:"bg-black/80 text-white rounded-full p-1 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-black",type:"button",title:e("generator.removeImage"),children:(0,s.jsx)(R.X,{className:"w-4 h-4"})})]})]},t.id))})]}),"text"===et&&eg&&(0,s.jsxs)("div",{className:"flex items-center gap-2 p-3 mb-3 bg-red-50 dark:bg-red-900/20 text-red-600 dark:text-red-400 rounded-lg",children:[(0,s.jsx)(w.AlertCircle,{className:"w-4 h-4"}),(0,s.jsx)("span",{className:"text-sm",children:eg})]}),(0,s.jsxs)("div",{className:"mb-3 sm:mb-4",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>eo(!en),className:"flex items-center gap-2 text-sm font-medium mb-3 hover:text-purple-600 transition-colors",children:[K("additionalSettings"),en?(0,s.jsx)(C.ChevronUp,{className:"w-4 h-4"}):(0,s.jsx)(N.ChevronDown,{className:"w-4 h-4"})]}),en&&(0,s.jsxs)("div",{className:"space-y-4 pl-4 border-l-2 border-purple-600/20",children:[!eK&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(I.Globe,{className:"w-4 h-4 text-purple-600"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:e("generator.googleSearch")}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e("generator.googleSearchDesc")})]})]}),(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":er,onClick:()=>el(e=>!e),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${er?"bg-purple-600":"bg-muted"}`,children:(0,s.jsx)("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${er?"translate-x-6":"translate-x-1"}`})})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:W("generator.aspectRatio")}),(0,s.jsx)("div",{className:"grid grid-cols-5 gap-1",children:["auto","1:1","1:4","1:8","2:3","3:2","3:4","4:1","4:3","4:5","5:4","8:1","9:16","16:9","21:9"].map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>ec(e),className:`px-2 py-1 text-xs rounded-md border ${ed===e?"bg-purple-600 text-white":"hover:bg-muted"}`,children:e},e))})]}),!eK&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:K("outputFormat")}),(0,s.jsxs)("div",{className:"inline-flex rounded-md overflow-hidden border",children:[(0,s.jsx)("button",{type:"button",onClick:()=>ex("JPEG"),className:`px-3 py-1 text-xs ${"JPEG"===em?"bg-purple-600 text-white":"hover:bg-muted"}`,children:"JPEG"}),(0,s.jsx)("button",{type:"button",onClick:()=>ex("PNG"),className:`px-3 py-1 text-xs ${"PNG"===em?"bg-purple-600 text-white":"hover:bg-muted"}`,children:"PNG"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:e("generator.resolution")}),(0,s.jsx)("div",{className:"inline-flex rounded-md overflow-hidden border",children:["1K","2K","4K"].map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>eu(e),className:`px-3 py-1 text-xs ${ep===e?"bg-purple-600 text-white":"hover:bg-muted"}`,children:e},e))})]})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 md:gap-3",children:[(0,s.jsx)(c.Button,{variant:"outline",className:"flex-1 py-2.5 md:py-3 text-sm md:text-base",onClick:()=>{ee(""),eY(),ec("auto"),ex("JPEG"),eu("1K"),el(!1),eh(null),ev(null),eE(new Set),tr(null),ek.current&&(clearInterval(ek.current),ek.current=null),ey(!1),ej.current&&(ej.current.value="")},type:"button",disabled:eO||e6||eN,children:K("reset")}),V?.user?(0,s.jsx)(c.Button,{className:"flex-1 bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 disabled:opacity-50 py-2.5 md:py-3 text-sm md:text-base",onClick:tz,disabled:tc,type:"button",suppressHydrationWarning:!0,children:tn?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(P.Loader2,{className:"w-4 h-4 mr-2 animate-spin"}),tP]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($.Zap,{className:"w-4 h-4 mr-2"}),K("generate")]})}):(0,s.jsx)(o.LoginWrapper,{mode:"modal",asChild:!0,children:(0,s.jsx)(c.Button,{className:"flex-1 bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 py-2.5 md:py-3 text-sm md:text-base cursor-pointer",type:"button",children:K("login")})})]})]}),(0,s.jsxs)("div",{className:"p-4 sm:p-6 lg:p-8 bg-muted/5 flex flex-col min-h-[400px] lg:min-h-auto",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4 md:mb-6",children:[(0,s.jsx)("h4",{className:"text-base md:text-lg font-semibold",children:K("result")}),ew&&(0,s.jsxs)("div",{className:"flex items-center gap-1 md:gap-2 text-xs md:text-sm",children:["waiting"===ew.state&&(0,s.jsxs)("span",{className:"flex items-center gap-1 md:gap-2 text-blue-600",children:[(0,s.jsx)(q.Clock,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:K("status.waiting")})]}),"queuing"===ew.state&&(0,s.jsxs)("span",{className:"flex items-center gap-1 md:gap-2 text-orange-600",children:[(0,s.jsx)(q.Clock,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:K("status.queuing")})]}),"generating"===ew.state&&(0,s.jsxs)("span",{className:"flex items-center gap-1 md:gap-2 text-purple-600",children:[(0,s.jsx)(P.Loader2,{className:"w-3 h-3 md:w-4 md:h-4 animate-spin"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:K("status.generating")})]}),"success"===ew.state&&(0,s.jsxs)("span",{className:"flex items-center gap-1 md:gap-2 text-green-600",children:[(0,s.jsx)(v.CheckCircle,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:K("status.completed")})]}),"fail"===ew.state&&(0,s.jsxs)("span",{className:"flex items-center gap-1 md:gap-2 text-red-600",children:[(0,s.jsx)(w.AlertCircle,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:K("status.failed")})]})]})]}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col space-y-3 sm:space-y-4",children:[ew?(0,s.jsxs)("div",{className:"space-y-4",children:[ew.resultUrls.length>0?(0,s.jsxs)("div",{className:"grid gap-4",children:[ew.resultUrls.map((e,t)=>(0,s.jsxs)("div",{className:"relative rounded-xl overflow-hidden bg-muted/10 cursor-pointer group",onClick:()=>{eL({prompt:e_.current?.prompt||Y||void 0,model:ew.model,aspectRatio:e_.current?.aspectRatio||ed||void 0,taskId:ew.taskId,createdAt:ew.completeTime?new Date(ew.completeTime):void 0}),eq(e)},children:[(0,s.jsx)(M.default,{src:e,alt:`Generated Result ${t+1}`,width:800,height:600,className:"w-full h-auto object-contain transition-transform group-hover:scale-105",unoptimized:!0}),(0,s.jsx)("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors flex items-center justify-center",children:(0,s.jsxs)("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),eL({prompt:e_.current?.prompt||Y||void 0,model:ew.model,aspectRatio:e_.current?.aspectRatio||ed||void 0,taskId:ew.taskId,createdAt:ew.completeTime?new Date(ew.completeTime):void 0}),eq(e)},className:"p-2 bg-white/90 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white transition-colors",title:K("buttons.previewImage"),children:(0,s.jsxs)("svg",{className:"w-5 h-5 text-gray-800",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})}),(0,s.jsx)("button",{type:"button",onClick:s=>{s.stopPropagation(),tI(e,`nano-banana-2-${ew.taskId}-${t+1}.jpg`)},className:"p-2 bg-white/90 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white transition-colors",title:K("buttons.downloadImage"),children:(0,s.jsx)(z.Download,{className:"w-5 h-5 text-gray-800"})}),(0,s.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),tS(e)},className:"p-2 bg-white/90 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white transition-colors",title:K("buttons.useInEditor"),children:(0,s.jsx)(L.Upload,{className:"w-5 h-5 text-gray-800"})}),(0,s.jsx)(g.LocaleLink,{href:`${j.Routes.TopazImageUpscale}?imageUrl=${encodeURIComponent(e)}`,className:"p-2 bg-white/90 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white transition-colors inline-flex items-center",title:K("buttons.enhanceResolution",{default:"Enhance (Resolution)"}),children:(0,s.jsx)(T.Wand2,{className:"w-5 h-5 text-gray-800"})})]})})]},t)),(0,s.jsxs)("div",{className:"flex justify-end gap-2 mt-2",children:[(0,s.jsx)(g.LocaleLink,{href:`${j.Routes.TopazImageUpscale}?imageUrl=${encodeURIComponent(ew.resultUrls?.[0]||"")}`,children:(0,s.jsxs)(c.Button,{size:"sm",className:"px-4 py-2 font-semibold bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white",disabled:!ew.resultUrls?.[0],type:"button",children:[(0,s.jsx)(T.Wand2,{className:"w-4 h-4 mr-2"}),K("buttons.enhanceResolution")]})}),(0,s.jsx)(g.LocaleLink,{href:j.Routes.History,children:(0,s.jsx)(c.Button,{size:"sm",className:"px-4 py-2 font-semibold bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white",children:H("myCreations.title")})})]})]}):(0,s.jsx)("div",{className:"relative aspect-video rounded-xl overflow-hidden bg-muted/10 flex items-center justify-center min-h-[200px] sm:min-h-[250px] lg:min-h-auto",children:"fail"===ew.state?(0,s.jsxs)("div",{className:"text-center p-6 sm:p-8",children:[(0,s.jsx)(w.AlertCircle,{className:"w-10 h-10 sm:w-12 sm:h-12 text-red-600 mx-auto mb-3 sm:mb-4"}),(0,s.jsx)("p",{className:"text-red-600 font-semibold mb-1",children:K("status.failed")}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground max-w-[48ch] mx-auto break-words",children:ew.failMsg||e("generator.generationFailed")}),(0,s.jsx)("div",{className:"mt-4 flex items-center justify-center gap-2",children:(0,s.jsxs)(c.Button,{size:"sm",className:"px-4 py-2 font-semibold",onClick:tz,type:"button",children:[(0,s.jsx)(B.RefreshCw,{className:"w-4 h-4 mr-2"}),e("generator.retry")]})})]}):(0,s.jsxs)("div",{className:"text-center p-6 sm:p-8",children:[(0,s.jsx)(P.Loader2,{className:"w-10 h-10 sm:w-12 sm:h-12 text-purple-600 mx-auto mb-3 sm:mb-4 animate-spin"}),(0,s.jsxs)("p",{className:"text-muted-foreground font-medium mb-2",children:["waiting"===ew.state&&K("status.preparingRequest"),"queuing"===ew.state&&K("status.inQueue"),"generating"===ew.state&&K("status.aiWorking")]}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:K("status.timeEstimate")})]})}),(0,s.jsxs)("div",{className:"mt-3 sm:mt-4 lg:mt-6 space-y-2 sm:space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:K("stats.taskId")}),(0,s.jsx)("span",{className:"font-mono text-xs bg-muted px-2 py-1 rounded",children:ew.taskId})]}),ew.costTime&&(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:K("stats.generationTime")}),(0,s.jsxs)("span",{className:"font-medium",children:[ew.costTime," ",K("stats.seconds")]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:K("stats.model")}),(0,s.jsx)("span",{className:"font-medium",children:ew?.model||(eK?"nano-banana-2-lite":"nano-banana-2")})]}),"success"===ew.state&&(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:K("stats.imagesGenerated")}),(0,s.jsx)("span",{className:"font-medium",children:ew.resultUrls.length})]})]})]}):eZ?(0,s.jsxs)("div",{className:"space-y-3 sm:space-y-4",children:[(0,s.jsxs)("div",{className:"group relative aspect-video rounded-xl overflow-hidden bg-muted/10 flex items-center justify-center min-h-[200px] sm:min-h-[250px] lg:min-h-auto cursor-zoom-in",children:[eG>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",className:"absolute left-3 top-1/2 z-10 hidden -translate-y-1/2 roun
1ded-full border border-white/20 bg-black/35 p-2 text-white/90 backdrop-blur-sm transition hover:bg-black/55 group-hover:block",onClick:e=>{e.stopPropagation(),eM.current=-1,eP(e=>(e-1+eG)%eG)},"aria-label":e("generator.previousExample"),children:(0,s.jsx)(y.ChevronLeft,{className:"h-5 w-5"})}),(0,s.jsx)("button",{type:"button",className:"absolute right-3 top-1/2 z-10 hidden -translate-y-1/2 rounded-full border border-white/20 bg-black/35 p-2 text-white/90 backdrop-blur-sm transition hover:bg-black/55 group-hover:block",onClick:e=>{e.stopPropagation(),eM.current=1,eP(e=>(e+1)%eG)},"aria-label":e("generator.nextExample"),children:(0,s.jsx)(k.ChevronRight,{className:"h-5 w-5"})})]}),(0,s.jsx)("button",{type:"button",className:"absolute inset-0 z-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-purple-500/50",onClick:()=>{eW&&eI(eW)},"aria-label":e("generator.previewExample",{title:eZ.title||e("generator.exampleImage")})}),(0,s.jsx)(U.AnimatePresence,{mode:"sync",initial:!1,children:(0,s.jsx)(E.motion.div,{className:"absolute inset-0 pointer-events-none",variants:{enter:()=>({x:eM.current>0?48:-48,opacity:0,scale:1.01}),center:{x:0,opacity:1,scale:1},exit:()=>({x:eM.current>0?-48:48,opacity:0,scale:.99})},initial:"enter",animate:"center",exit:"exit",transition:{duration:.65,ease:[.22,1,.36,1]},children:(0,s.jsx)(M.default,{src:eW,alt:eZ.title||e("generator.exampleResult"),width:1200,height:675,className:"h-full w-full object-cover",unoptimized:!0})},eZ.id)})]}),eF.length>1&&(0,s.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-1",children:eF.map((e,t)=>{let a=t===eS,i=(0,x.getCDNUrl)(e.image),r=e.title||`Example ${t+1}`;return(0,s.jsxs)("button",{type:"button",onClick:()=>{t!==eS&&(eM.current=t>eS?1:-1,eP(t))},className:`relative shrink-0 overflow-hidden rounded-lg border transition ${a?"border-purple-500/60 ring-2 ring-purple-500/30":"border-border/60 hover:border-foreground
1/40"}`,title:r,"aria-label":r,"aria-pressed":a,children:[(0,s.jsx)(M.default,{src:i,alt:r,width:160,height:90,className:"h-14 w-24 sm:h-16 sm:w-28 object-cover",unoptimized:!0}),a&&(0,s.jsx)("div",{className:"absolute inset-0 bg-black/10"})]},e.id)})})]}):(0,s.jsx)("div",{className:"relative aspect-video rounded-xl overflow-hidden bg-muted/10 flex items-center justify-center min-h-[200px] sm:min-h-[250px] lg:min-h-auto",children:(0,s.jsxs)("div",{className:"text-center p-6 sm:p-8",children:[(0,s.jsx)(S.Image,{className:"w-10 h-10 sm:w-12 sm:h-12 text-muted-foreground/50 mx-auto mb-3 sm:mb-4"}),(0,s.jsx)("p",{className:"text-muted-foreground font-medium mb-2",children:K("ready.title")}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:K("ready.description")})]})}),(0,s.jsx)("div",{className:"border-t pt-3 sm:pt-4 lg:pt-6",children:(0,s.jsx)(d.default,{onUseInEditor:tS,showScrollTrack:!0},eT)})]})]})]})}),eC&&(0,s.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-start justify-center bg-black/80 backdrop-blur-sm overflow-y-auto py-[clamp(8px,1.6vmin,24px)]",onClick:()=>eq(null),children:(0,s.jsxs)("div",{className:"relative w-[96vw] max-w-[1440px] min-h-0 grid grid-cols-1 md:grid-cols-12 md:grid-rows-[minmax(0,1fr)] gap-0 bg-neutral-900/90 border border-white/10 rounded-2xl shadow-2xl overflow-hidden md:h-[calc(100vh-32px)] md:max-h-[calc(100vh-32px)] md:supports-[height:100dvh]:h-[calc(100dvh-32px)] md:supports-[height:100dvh]:max-h-[calc(100dvh-32px)]",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{type:"button",onClick:()=>eq(null),className:"absolute top-3 right-3 z-10 p-2 bg-white/90 text-gray-900 rounded-full shadow hover:bg-white",title:K("gallery.closePreview"),children:(0,s.jsx)(R.X,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{className:"relative md:col-span-8 lg:col-span-8 bg-black/30 flex items-center justify-center min-h-0 md:h-full overflow-hidden",children:[(0,s.jsx)("button",{type:"button",title:e("generator.previewImage"),onClick:()=>eC&&eI(eC),className:"group focus:outline-none focus-visible:ring-2 focus-visible:ring-purple-500/50 rounded",children:(0,s.jsx)(M.default,{src:eC,alt:"Preview",width:1600,height:1200,className:"max-w-full max-h-full object-contain cursor-zoom-in",unoptimized:!0,onLoadingComplete:e=>{eL(t=>({...t||{},outputDimensions:{width:e.naturalWidth,height:e.naturalHeight}}))}})}),(0,s.jsxs)("div",{className:"absolute bottom-3 right-3 flex gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),tI(eC,`nano-banana-2-preview-${Date.now()}.jpg`)},className:"p-2 bg-white/90 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white transition-colors",title:K("gallery.downloadImage"),children:(0,s.jsx)(z.Download,{className:"w-5 h-5 text-gray-800"})}),(0,s.jsx)(g.LocaleLink,{href:`${j.Routes.TopazImageUpscale}?imageUrl=${encodeURIComponent(eC||"")}`,className:"p-2 bg-white/90 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white transition-colors inline-flex items-center",title:K("buttons.enhanceResolution",{default:"Enhance (Resolution)"}),children:(0,s.jsx)(T.Wand2,{className:"w-5 h-5 text-gray-800"})}),(0,s.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),eC&&tS(eC)},className:"p-2 bg-white/90 backdrop-blur-sm rounded-lg shadow-lg hover:bg-white transition-colors",title:K("buttons.useInEditor"),children:(0,s.jsx)(L.Upload,{className:"w-5 h-5 text-gray-800"})})]})]}),(0,s.jsx)(Z.PreviewDetailCard,{previewImage:eC,previewMeta:eB,prompt:Y,selectedAspectRatio:ed,generationModel:ew?.model,currentTaskKind:eD.current,uploadedImages:eV,locale:Q,editModelChoice:ea,isCreatingShare:ta,onZoomImage:e=>eI(e),onDownloadImage:(e,t)=>tI(e,t),onShare:tk})]})}),ez&&(0,s.jsxs)("dialog",{open:!0,className:"fixed inset-0 z-[10000] bg-black/80 flex items-center justify-center p-4",onClick:()=>eI(null),children:[(0,s.jsx)("div",{className:"absolute top-4 right-4",children:(0,s.jsx)("button",{type:"button","aria-label":e("generator.closePreview"),className:"rounded-full p-2 bg-white/10 hover:bg-white/20 text-white",onClick:e=>{e.stopPropagation(),eI(null)},children:(0,s.jsx)(R.X,{className:"w-5 h-5"})})}),(0,s.jsx)(M.default,{src:ez,alt:e("generator.inputPreview"),width:1600,height:1200,className:"max-w-[92vw] max-h-[92vh] object-contain cursor-zoom-out",unoptimized:!0,onClick:e=>{e.stopPropagation(),eI(null)}})]}),(0,s.jsx)(m.Dialog,{open:eb,onOpenChange:ef,children:(0,s.jsxs)(m.DialogContent,{className:"sm:max-w-[400px] p-0",children:[(0,s.jsx)(m.DialogHeader,{className:"hidden",children:(0,s.jsx)(m.DialogTitle,{})}),(0,s.jsx)(n.LoginForm,{className:"border-none"})]})})]})})}])},692997,e=>{"use strict";var t=e.i(114138),s=e.i(704927),a=e.i(626466),i=e.i(907265),r=e.i(417579),l=e.i(446004),n=e.i(952753),o=e.i(193786);e.s(["default",0,function(){let e=(0,o.useTranslations)("NanoBanana2Page.choose"),d=[{icon:s.Zap,title:e("reason1.title"),description:e("reason1.description")},{icon:a.Users,title:e("reason2.title"),description:e("reason2.description")},{icon:i.Globe,title:e("reason3.title"),description:e("reason3.description")},{icon:r.Type,title:e("reason4.title"),description:e("reason4.description")}
1,{icon:l.MonitorPlay,title:e("reason5.title"),description:e("reason5.description")},{icon:n.Cpu,title:e("reason6.title"),description:e("reason6.description")}];return(0,t.jsx)("section",{id:"nanobanana2-choose",className:"py-16 lg:py-20 px-4 bg-muted/10",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl xl:max-w-[95rem] px-4 lg:px-6",children:[(0,t.jsxs)("div",{className:"text-center mb-10 lg:mb-12",children:[(0,t.jsx)("h2",{className:"text-2xl sm:text-3xl font-bold mb-4",children:e("title")}),(0,t.jsx)("p",{className:"text-base sm:text-lg text-muted-foreground max-w-2xl mx-auto",children:e("subtitle")})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 lg:gap-8",children:d.map((e,s)=>{let a=e.icon;return(0,t.jsxs)("div",{className:"text-center space-y-2 sm:space-y-3 lg:space-y-4",children:[(0,t.jsx)("div",{className:"mx-auto w-10 h-10 sm:w-12 sm:h-12 lg:w-14 lg:h-14 rounded-full bg-amber-600/15 dark:bg-amber-500/15 border border-amber-500/20 flex items-center justify-center",children:(0,t.jsx)(a,{className:"h-5 w-5 sm:h-6 sm:w-6 lg:h-7 lg:w-7 text-amber-600 dark:text-amber-400"})}),(0,t.jsx)("h3",{className:"font-semibold text-sm sm:text-base lg:text-xl",children:e.title}),(0,t.jsx)("p",{className:"text-xs sm:text-sm lg:text-base text-muted-foreground leading-tight tracking-tight",children:e.description})]},s)})})]})})}])},618463,e=>{"use strict";var t=e.i(114138),s=e.i(487486),a=e.i(520133),i=e.i(77607),r=e.i(339646),l=e.i(704927),n=e.i(193786);e.s(["default",0,function(){let e=(0,n.useTranslations)("NanoBanana2Page.comparison");return(0,t.jsx)("section",{id:"nanobanana2-comparison",className:"relative py-20 md:py-32 bg-gradient-to-b from-muted/20 to-background",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 md:px-6",children:[(0,t.jsxs)("div",{className:"text-center mb-12 md:mb-16",children:[(0,t.jsxs)(s.Badge,{variant:"outline",className:"mb-4 border-amber-600/30 text-amber-700 dark:text-amber-400",children:[(0,t.jsx)(l.Zap,{className:"mr-1 h-3 w-3"}),e("badge")]}),(0,t.jsx)("h2",{className:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white md:text-5xl mb-4",children:e("title")}),(0,t.jsx)("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:e("subtitle")})]}),(0,t.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,t.jsx)("div",{className:"overflow-x-auto rounded-2xl border border-gray-200 dark:border-gray-800 shadow-lg bg-background",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-gray-200 dark:border-gray-800",children:[(0,t.jsx)("th",{className:"text-left p-4 md:p-6 text-sm md:text-base font-semibold text-muted-foreground",children:e("headers.feature")}),(0,t.jsx)("th",{className:"text-center p-4 md:p-6",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full bg-gradient-to-r from-amber-600 to-orange-600 px-4 py-1.5 text-sm md:text-base font-semibold text-white",children:[(0,t.jsx)(l.Zap,{className:"h-4 w-4"}),e("headers.nanoBanana2")]})}),(0,t.jsx)("th",{className:"text-center p-4 md:p-6 text-sm md:text-base font-semibold text-muted-foreground",children:(0,t.jsx)(a.LocaleLink,{href:i.Routes.AIImageNanoBananaPro,className:"hover:text-foreground hover:underline",children:e("headers.nanoBananaPro")})})]})}),(0,t.jsx)("tbody",{children:["speed","quality","resolution","characters","objects","textRendering","webGrounding","instructionFollowing"].map((s,a)=>(0,t.jsxs)("tr",{className:`border-b border-gray-100 dark:border-gray-800/50 ${a%2==0?"bg-muted/20":""}`,children:[(0,t.jsx)("td",{className:"p-4 md:p-6 text-sm md:text-base font-medium text-foreground",children:e(`rows.${s}.feature`)}),(0,t.jsx)("td",{className:"p-4 md:p-6 text-center",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-sm md:text-base",children:[(0,t.jsx)(r.Check,{className:"h-4 w-4 text-amber-600 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-medium text-amber-700 dark:text-amber-400",children:e(`rows.${s}.nb2`)})]})}),(0,t.jsx)("td",{className:"p-4 md:p-6 text-center text-sm md:text-base text-muted-foreground",children:e(`rows.${s}.pro`)})]},s))})]})}),(0,t.jsx)("p",{className:"mt-8 text-center text-base text-muted-foreground",children:e("bottomNote")})]})]})})}])},433704,e=>{"use strict";var t=e.i(114138),s=e.i(519455),a=e.i(290322),i=e.i(768079),r=e.i(704927),l=e.i(193786),n=e.i(590620),o=e.i(927963);e.s(["default",0,function(){let e=(0,l.useTranslations)("NanoBanana2Page.cta");return(0,t.jsxs)("section",{className:"relative py-20 md:py-32 overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-amber-600 via-orange-600 to-red-600"}),(0,t.jsx)("div",{className:"absolute inset-0 opacity-10",children:(0,t.jsx)(n.default,{src:"/patterns/grid-pattern.svg",alt:"",fill:!0,className:"object-cover"})}),(0,t.jsx)("div",{className:"container relative mx-auto px-4 md:px-6",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full bg-white/20 backdrop-blur-md px-4 py-2 text-sm font-medium text-white mb-6",children:[(0,t.jsx)(r.Zap,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:e("badge")})]}),(0,t.jsx)("h2",{className:"text-3xl font-bold tracking-tight text-white md:text-5xl lg:text-6xl mb-6",children:e("title")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-white/90 mb-8 md:mb-10 max-w-2xl mx-auto",children:e("subtitle")}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[(0,t.jsx)(o.default,{href:"#generator",children:(0,t.jsxs)(s.Button,{size:"lg",className:"group bg-white text-amber-600 hover:bg-white/90 px-8 py-6 text-lg font-semibold rounded-full transition-all duration-300 hover:scale-105 hover:shadow-2xl",children:[e("primaryButton"),(0,t.jsx)(a.ArrowRight,{className:"ml-2 h-5 w-5 transition-transform group-hover:translate-x-1"})]})}),(0,t.jsx)(o.default,{href:"/pricing",children:(0,t.jsx)(s.Button,{size:"lg",variant:"outline",className:"bg-white/10 text-white border-white/30 hover:bg-white/20 backdrop-blur-md px-8 py-6 text-lg font-semibold rounded-full transition-all duration-300",children:e("secondaryButton")})})]}),(0,t.jsx)("div",{className:"mt-6 flex justify-center text-sm",children:(0,t.jsxs)("a",{href:"https://nanobanana-2.com",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center gap-1.5 text-white/80 transition-colors hover:text-white",children:["nano banana 2",(0,t.jsx)(i.ExternalLink,{className:"h-3.5 w-3.5"})]})}),(0,t.jsx)("div",{className:"mt-12 md:mt-16 grid grid-cols-1 sm:grid-cols-3 gap-6 md:gap-8",children:[{title:e("feature1.title"),description:e("feature1.description")},{title:e("feature2.title"),description:e("feature2.description")},{title:e("feature3.title"),description:e("feature3.description")}].map((e,s)=>(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-2xl md:text-3xl font-bold text-white mb-2",children:e.title}),(0,t.jsx)("div",{className:"text-sm md:text-base text-white/80",children:e.description})]},s))}),(0,t.jsxs)("div",{className:"mt-12 md:mt-16 flex flex-wrap justify-center items-center gap-6 md:gap-8 text-white/70 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,t.jsx)("span",{children:e("badge1")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,t.jsx)("span",{children:e("badge2")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,t.jsx)("span",{children:e("badge3")})]})]})]})})]})}])},616855,e=>{"use strict";var t=e.i(114138),s=e.i(519455),a=e.i(515288),i=e.i(73588),r=e.i(975157),l=e.i(335137),n=e.i(81676
17),o=e.i(907265),d=e.i(446004),c=e.i(722267),m=e.i(511919),x=e.i(417579),p=e.i(626466),u=e.i(566539),g=e.i(704927),h=e.i(958907),b=e.i(721853),f=e.i(193786),j=e.i(590620),w=e.i(89276);e.s(["default",0,function(){let e=(0,f.useTranslations)("NanoBanana2Page.display"),[v,N]=(0,w.useState)(null),[y,k]=(0,w.useState)(!1),C="from-amber-600 to-orange-600",q=[{key:"flashSpeed",images:[(0,i.getCDNUrl)("display/ecommerce-product-model.png"),(0,i.getCDNUrl)("display/woman-phone-call.gif")],icon:g.Zap},{key:"textRendering",images:[(0,i.getCDNUrl)("display/clothing-removal-tryon.jpg"),(0,i.getCDNUrl)("display/click-strip.gif")],icon:x.Type},{key:"subjectConsistency",images:[(0,i.getCDNUrl)("display/anime-figure-1.png"),(0,i.getCDNUrl)("display/anime-figure-2.png")],icon:p.Users},{key:"webGrounding",image:(0,i.getCDNUrl)("display/graffiti-action.png"),icon:o.Globe},{key:"resolution",image:(0,i.getCDNUrl)("display/ecommerce-product-model.png"),icon:d.MonitorPlay},{key:"instructionFollowing",image:(0,i.getCDNUrl)("display/AI-Meme%3ASticker-Maker.jpeg"),icon:m.Target}];return(0,t.jsxs)("section",{id:"nanobanana2-display",className:"relative overflow-hidden bg-background px-4 py-6 sm:py-12 lg:py-32",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,transparent,rgba(255,255,255,0.025)_18%,transparent_46%,rgba(255,255,255,0.018)_100%)]"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-7xl xl:max-w-[95rem] px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"text-center mb-8 sm:mb-10 lg:mb-20",children:[(0,t.jsxs)("div",{className:"inline-flex items-center rounded-full border border-border/60 bg-card/40 px-3 py-1.5 text-xs sm:text-sm font-medium text-foreground/80 mb-4 sm:mb-6",children:[(0,t.jsx)(g.Zap,{className:"mr-1.5 sm:mr-2 size-3 sm:size-4"}),e("subtitle")]}),(0,t.jsx)("h2",{className:"text-2xl sm:text-3xl lg:text-6xl font-bold mb-4 sm:mb-6 bg-gradient-to-r from-foreground to-foreground/70 bg-clip-text text-transparent",children:e("title")}),(0,t.jsx)("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed px-2",children:e("description")})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-1 gap-3 sm:gap-4 lg:gap-12 mb-6 sm:mb-8 lg:mb-12",children:q.map((s,i)=>{let o=s.icon;return(0,t.jsxs)(b.motion.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{delay:.2*i,duration:.6},className:(0,r.cn)("group relative grid grid-cols-1 items-center gap-3 overflow-hidden rounded-lg bg-card/40 p-2.5 shadow-[0_12px_30px_-24px_rgba(0,0,0,0.9)] transition-all duration-300","bg-[linear-gradient(135deg,rgba(255,255,255,0.045),rgba(255,255,255,0.012)_46%,rgba(0,0,0,0.18))]","hover:bg-card/55 hover:shadow-[0_24px_50px_-34px_rgba(0,0,0,0.95)]","sm:gap-4 sm:p-3 lg:grid-cols-2 lg:gap-12 lg:rounded-2xl lg:p-8"),style:{direction:i%2==1?"rtl":"ltr"},children:[(0,t.jsxs)("div",{className:"space-y-3 sm:space-y-4 lg:space-y-6",style:{direction:"ltr"},children:[(0,t.jsxs)("div",{className:"flex items-start gap-2 sm:gap-3 lg:gap-4",children:[(0,t.jsx)("div",{className:`flex-shrink-0 rounded-lg sm:rounded-xl lg:rou
1nded-2xl p-2 sm:p-2.5 lg:p-4 bg-gradient-to-br ${C} shadow-lg`,children:(0,t.jsx)(o,{className:"size-4 sm:size-5 lg:size-8 text-white"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h3",{className:"text-sm sm:text-lg lg:text-3xl font-bold mb-1 sm:mb-2 lg:mb-3 text-foreground line-clamp-2",children:e(`features.${s.key}.title`)}),(0,t.jsx)("p",{className:"text-xs sm:text-sm lg:text-lg text-muted-foreground leading-relaxed line-clamp-3 lg:line-clamp-none",children:e(`features.${s.key}.description`)})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>k(!y),className:"lg:hidden inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[(0,t.jsx)("span",{className:"text-xs",children:e("tagsLabel")}),y?(0,t.jsx)(n.ChevronUp,{className:"size-3"}):(0,t.jsx)(l.ChevronDown,{className:"size-3"})]}),(0,t.jsx)("div",{className:"lg:hidden",children:(0,t.jsx)(h.AnimatePresence,{children:y&&(0,t.jsx)(b.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1 sm:gap-1.5 lg:gap-3",children:[(0,t.jsxs)("div",{className:"inline-flex items-center rounded-full border border-amber-500/25 bg-amber-500/10 px-1.5 sm:px-2 lg:px-3 py-0.5 lg:py-1 text-xs sm:text-sm lg:text-lg font-medium text-amber-700 dark:text-amber-400",children:[(0,t.jsx)(g.Zap,{className:"mr-0.5 lg:mr-1 size-2 sm:size-2.5 lg:size-3"}),e("tags.gemini31")]}),(0,t.jsx)("div",{className:"inline-flex items-center rounded-full border border-border/60 bg-card/45 px-1.5 sm:px-2 lg:px-3 py-0.5 lg:py-1 text-xs sm:text-sm lg:text-lg font-medium text-foreground/75",children:e("tags.flashSpeed")}),(0,t.jsx)("div",{className:"inline-flex items-center rounded-full border border-border/60 bg-card/45 px-1.5 sm:px-2 lg:px-3 py-0.5 lg:py-1 text-xs sm:text-sm lg:text-lg font-medium text-foreground/75",children:e("tags.proQuality")})]})})})}),(0,t.jsx)("div",{className:"hidden lg:block",children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1 sm:gap-1.5 lg:gap-3",children:[(0,t.jsxs)("div",{className:"inline-flex items-center rounded-full border border-amber-500/25 bg-amber-500/10 px-1.5 sm:px-2 lg:px-3 py-0.5 lg:py-1 text-xs sm:text-sm lg:text-lg font-medium text-amber-700 dark:text-amber-400",children:[(0,t.jsx)(g.Zap,{className:"mr-0.5 lg:mr-1 size-2 sm:size-2.5 lg:size-3"}),e("tags.gemini31")]}),(0,t.jsx)("div",{className:"inline-flex items-center rounded-full border border-border/60 bg-card/45 px-1.5 sm:px-2 lg:px-3 py-0.5 lg:py-1 text-xs sm:text-sm lg:text-lg font-medium text-foreground/75",children:e("tags.flashSpeed")}),(0,t.jsx)("div",{className:"inline-flex items-center rounded-full border border-border/60 bg-card/45 px-1.5 sm:px-2 lg:px-3 py-0.5 lg:py-1 text-xs sm:text-sm lg:text-lg font-medium text-foreground/75",children:e("tags.proQuality")})]})})]})]}),(0,t.jsxs)("div",{className:"relative",style:{direction:"ltr"},children:["images"in s&&s.images?(0,t.jsx)(a.Card,{className:"overflow-hidden border-0 bg-black/45 shadow-[0_18px_48px_-28px_rgba(0,0,0,0.95)] backdrop-blur",children:(0,t.jsx)(a.CardContent,{className:"p-0",children:(0,t.jsxs)("div",{className:"relative bg-[linear-gradient(135deg,rgba(255,255,255,0.06),rgba(255,255,255,0.018)_48%,rgba(0,0,0,0.22))]",children:[(0,t.jsx)("div",{className:"absolute top-2 sm:top-4 left-2 sm:left-4 z-10",children:(0,t.jsxs)("div",{className:`inline-flex items-center rounded-full bg-gradient-to-r ${C} px-2 sm:px-3 py-0.5 sm:py-1 text-xs sm:text-sm font-semibold text-white shadow-lg`,children:[(0,t.jsx)(o,{className:"mr-1 size-2.5 sm:size-3"}),e("demo")," ",i+1]})}),(0,t.jsx)("div",{className:"p-2 sm:p-2 lg:p-4 space-y-2 sm:space-y-2 lg:space-y-3",children:(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 sm:gap-2 lg:gap-3",children:s.images.slice(0,4).map((a,r)=>(0,t.jsx)("div",{className:`relative overflow-hidden rounded-lg bg-black/35 backdrop-blur-sm cursor-pointer shadow-sm transition-transform duration-500 hover:scale-105 ${3===s.images.length&&2===r?"sm:col-span-2":""}`,onClick:()=>N({src:a,alt:`${e(`features.${s.key}.title`)} - ${e("image")} ${r+1}`}),children:(0,t.jsxs)("div",{className:"aspect-[16/10] relative",children:[(0,t.jsx)(j.default,{src:a,className:"size-full object-contain object-center",alt:`${e(`features.${s.key}.title`)} - ${e("image")} ${r+1}`,width:400,height:250,priority:i<2&&0===r}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/5 via-trans
1parent to-transparent pointer-events-none"})]})},r))})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/10 via-transparent to-transparent pointer-events-none"})]})})}):(0,t.jsx)(a.Card,{className:"overflow-hidden border-0 bg-black/45 shadow-[0_18px_48px_-28px_rgba(0,0,0,0.95)] backdrop-blur",children:(0,t.jsx)(a.CardContent,{className:"p-0",children:(0,t.jsxs)("div",{className:"relative aspect-[16/10] overflow-hidden bg-[linear-gradient(135deg,rgba(255,255,255,0.06),rgba(255,255,255,0.018)_48%,rgba(0,0,0,0.22))] cursor-pointer transition-transform duration-500 hover:scale-105",onClick:()=>N({src:s.image,alt:e(`features.${s.key}.title`)}),children:[(0,t.jsx)(j.default,{src:s.image,className:"size-full object-contain object-center",alt:e(`features.${s.key}.title`),width:800,height:500,priority:i<2}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent pointer-events-none"}),(0,t.jsx)("div",{className:"absolute top-2 sm:top-4 left-2 sm:left-4",children:(0,t.jsxs)("div",{className:`inline-flex items-center rounded-full bg-gradient-to-r ${C} px-2 sm:px-3 py-0.5 sm:py-1 text-xs sm:text-sm font-semibold text-white shadow-lg`,children:[(0,t.jsx)(o,{className:"mr-1 size-2.5 sm:size-3"}),e("demo")," ",i+1]})})]})})}),(0,t.jsx)("div",{className:`absolute -top-4 -right-4 size-12 rounded-full bg-gradient-to-br ${C} opacity-20 blur-xl`}),(0,t.jsx)("div",{className:`absolute -bottom-4 -left-4 size-16 rounded-full bg-gradient-to-br ${C} opacity-10 blur-2xl`})]})]},s.key)})}),(0,t.jsx)(b.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8,duration:.6},className:"text-center",children:(0,t.jsxs)("div",{className:"inline-flex flex-col sm:flex-row gap-3 sm:gap-4 w-full sm:w-auto",children:[(0,t.jsxs)(s.Button,{size:"lg",className:"group bg-gradient-to-r from-amber-600 to-orange-600 hover:from-amber-700 hover:to-orange-700 text-sm sm:text-base px-6 sm:px-8",onClick:()=>{let e=document.querySelector("#generator");e&&e.scrollIntoView({behavior:"smooth"})},children:[e("cta.primary"),(0,t.jsx)(c.Sparkles,{className:"ml-2 size-3 sm:size-4 transition-transform group-hover:rotate-12"})]}),(0,t.jsx)(s.Button,{size:"lg",variant:"outline",className:"group text-sm sm:text-base px-6 sm:px-8",children:e("cta.secondary")})]})})]}),(0,t.jsx)(h.AnimatePresence,{children:v&&(0,t.jsx)(b.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},onClick:()=>N(null),className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center p-4",children:(0,t.jsxs)(b.motion.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},onClick:e=>e.stopPropagation(),className:"relative max-w-6xl max-h-[90vh] w-full h-full",children:[(0,t.jsx)("button",{type:"button",onClick:()=>N(null),className:"absolute top-4 right-4 z-10 p-2 bg-black/50 hover:bg-black/70 rounded-full text-white transition-colors",children:(0,t.jsx)(u.X,{className:"size-6"})}),(0,t.jsx)("div",{className:"relative w-full h-full",children:(0,t.jsx)(j.default,{src:v.src,alt:v.alt,fill:!0,className:"object-contain",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 90vw, 80vw"})})]})})})]})}])},62975,e=>{"use strict";var t=e.i(114138),s=e.i(102924),a=e.i(273443),i=e.i(487486),r=e.i(193786);e.s(["default",0,function(){let e=(0,r.useTranslations)("NanoBanana2Page.faq"),l=[{id:"q1",question:e("questions.q1.question"),answer:e("questions.q1.answer")},{id:"q2",question:e("questions.q2.question"),answer:e("questions.q2.answer")},{id:"q3",question:e("questions.q3.question"),answer:e("questions.q3.answer")},{id:"q4",question:e("questions.q4.question"),answer:e("questions.q4.answer")},{id:"q5",question:e("questions.q5.question"),answer:e("questions.q5.answer")},{id:"q6",question:e("questions.q6.question"),answer:e("questions.q6.answer")},{id:"q7",question:e("questions.q7.question"),answer:e("questions.q7.answer")},{id:"q8",question:e("questions.q8.question"),answer:e("questions.q8.answer")},{id:"q9",question:e("questions.q9.question"),answer:e("questions.q9.answer")},{id:"q10",question:e("questions.q10.question"),answer:e("questions.q10.answer")}];return(0,t.jsx)("section",{id:"faqs",className:"px-4 py-16 bg-gradient-to-b from-background to-muted/20",children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)(i.Badge,{variant:"outline",className:"mb-4",children:e("badge")}),(0,t.jsx)(s.HeaderSection,{title:e("title"),titleAs:"h2",subtitle:e("subtitle"),subtitleAs:"p"})]}),(0,t.jsx)("div",{className:"mx-auto max-w-4xl mt-12",children:(0,t.jsx)(a.Accordion,{type:"single",collapsible:!0,className:"ring-muted w-full rounded-2xl border px-8 py-3 shadow-lg ring-4 dark:ring-0 bg-background",children:l.map(e=>(0,t.jsxs)(a.AccordionItem,{value:e.id,className:"border-dashed",children:[(0,t.jsx)(a.AccordionTrigger,{className:"cursor-pointer text-base font-medium hover:no-underline text-left",children:e.question}),(0,t.jsx)(a.AccordionContent,{children:(0,t.jsx)("p",{className:"text-base text-muted-foreground leading-relaxed",children:e.answer})})]},e.id))})}),(0,t.jsxs)("div",{className:"mx-auto max-w-4xl mt-12 text-center p-6 rounded-lg border bg-muted/30",children:[(0,t.jsx)("p",{className:"text-lg font-semibold mb-2",children:e("supportTitle")}),(0,t.jsxs)("p",{className:"text-muted-foreground",children:[e("supportText")," ",(0,t.jsx)("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-medium",children:"[email protected]"}),(0,t.jsx)("span",{className:"inline-flex items-center ml-2 text-primary",children:"→"})]})]})]})})}])},7430,e=>{"use strict";var t=e.i(114138),s=e.i(515288),a=e.i(704927),i=e.i(417579),r=e.i(626466),l=e.i(511919),n=e.i(907265),o=e.i(446004),d=e.i(463145),c=e.i(138755),m=e.i(722267),x=e.i(193786);e.s(["default",0,function(){let e=(0,x.useTranslations)("NanoBanana2Page.features"),p=[{icon:a.Zap,title:e("feature1.title"),description:e("feature1.description")},{icon:i.Type,title:e("feature2.title"),description:e("feature2.description")},{icon:r.Users,title:e("feature3.title"),description:e("feature3.description")},{icon:l.Target,title:e("feature4.title"),description:e("feature4.description")},{icon:n.Globe,title:e("feature5.title"),description:e("feature5.description")},{icon:o.MonitorPlay,title:e("feature6.title"),description:e("feature6.description")},{icon:d.Shield,title:e("feature7.title"),description:e("feature7.description")},{icon:c.Brain,title:e("feature8.title"),description:e("feature8.description")}];return(0,t.jsx)("section",{id:"nanobanana2-features",className:"relative py-20 md:py-32 bg-gradient-to-b from-white to-gray-50 dark:from-gray-900 dark:to-gray-950",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 md:px-6",children:[(0,t.jsxs)("div",{className:"text-center mb-16 md:mb-20",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full bg-amber-100 dar
1k:bg-amber-900/30 px-4 py-2 text-sm font-medium text-amber-700 dark:text-amber-300 mb-6",children:[(0,t.jsx)(a.Zap,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:e("badge")})]}),(0,t.jsx)("h2",{className:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white md:text-5xl mb-4",children:e("title")}),(0,t.jsx)("p",{className:"text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:e("subtitle")})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 md:gap-8",children:p.map((e,a)=>{let i=e.icon;return(0,t.jsx)(s.Card,{className:"group relative overflow-hidden border-gray-200 dark:border-gray-800 hover:shadow-xl transition-all duration-300 hover:-translate-y-1",children:(0,t.jsxs)(s.CardContent,{className:"p-6 md:p-8",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 md:w-14 md:h-14 rounded-2xl bg-amber-600/10 dark:bg-amber-500/10 border border-amber-500/20 mb-4 md:mb-6 group-hover:scale-110 transition-transform duration-300",children:(0,t.jsx)(i,{className:"h-6 w-6 md:h-7 md:w-7 text-amber-600 dark:text-amber-400"})}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:e.title}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400 leading-relaxed",children:e.description}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-amber-500 to-orange-500 opacity-0 group-hover:opacity-5 transition-opacity duration-300 pointer-events-none"})]})},a)})}),(0,t.jsxs)("div",{className:"mt-16 md:mt-20 text-center",children:[(0,t.jsx)("p",{className:"text-lg text-gray-600 dark:text-gray-400 mb-6",children:e("bottomCta.text")}),(0,t.jsxs)("a",{href:"#generator",className:"inline-flex items-center gap-2 rounded-full bg-gradient-to-r from-amber-600 to-orange-600 px-8 py-4 text-base font-semibold text-white hover:from-amber-700 hover:to-orange-700 transition-all duration-300 hover:scale-105 hover:shadow-lg",children:[e("bottomCta.button"),(0,t.jsx)(m.Sparkles,{className:"h-5 w-5"})]})]})]})})}])},902925,e=>{"use strict";var t=e.i(114138),s=e.i(515288),a=e.i(200789),i=e.i(360596),r=e.i(193786),l=e.i(590620),n=e.i(89276);e.s(["default",0,function(){let e=(0,r.useTranslations)("NanoBanana2Page.gallery"),[o,d]=(0,n.useState)(null),c=[{id:1,image:"https://files.eimg.ai/gempix2/02-out.png",prompt:e("item1.prompt"),likes:3456,views:11234},{id:2,image:"https://files.eimg.ai/gempix2/03-o.png",prompt:e("item2.prompt"),likes:4567,views:13245},{id:3,image:"https://files.eimg.ai/gempix2/20-out.jpeg",prompt:e("item3.prompt"),likes:5678,views:15356},{id:4,image:"https://files.eimg.ai/gempix2/09.png",prompt:e("item4.prompt"),likes:6789,views:17467},{id:5,image:"https://files.eimg.ai/gempix2/07-out.png",prompt:e("item5.prompt"),likes:7890,views:19578},{id:6,image:"https://files.eimg.ai/gempix2/37.png",prompt:e("item6.prompt"),likes:8901,views:21689}];return(0,t.jsx)("section",{className:"relative py-20 md:py-32 bg-white dark:bg-gray-900",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 md:px-6",children:[(0,t.jsxs)("div",{className:"text-center mb-16 md:mb-20",children:[(0,t.jsx)("h2",{className:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white md:text-5xl mb-4",children:e("title")}),(0,t.jsx)("p",{className:"text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:e("subtitle")})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",children:c.map(e=>(0,t.jsx)(s.Card,{className:"group relative overflow-hidden cursor-pointer border-gray-200 dark:border-gray-800 hover:shadow-2xl transition-all duration-300",onClick:()=>d(e),children:(0,t.jsxs)("div",{className:"relative aspect-square overflow-hidden",children:[(0,t.jsx)(l.default,{src:e.image,alt:e.prompt,fill:!0,className:"object-cover group-hover:scale-110 transition-transform duration-500",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 p-4 md:p-6",children:[(0,t.jsx)("p",{className:"text-white text-sm md:text-base font-medium line-clamp-2 mb-3",children:e.prompt}),(0,t.jsxs)("div",{className:"flex items-center gap-4 text-white/90 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(i.Heart,{className:"h-4 w-4"}
1),(0,t.jsx)("span",{children:e.likes.toLocaleString()})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(a.Eye,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:e.views.toLocaleString()})]})]})]})})]})},e.id))}),o&&(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90 p-4",onClick:()=>d(null),children:(0,t.jsxs)("div",{className:"relative max-w-5xl w-full max-h-[90vh] overflow-hidden rounded-2xl bg-white dark:bg-gray-900",children:[(0,t.jsx)("button",{type:"button",className:"absolute top-4 right-4 z-10 rounded-full bg-white/10 backdrop-blur-md p-2 text-white hover:bg-white/20 transition-colors",onClick:e=>{e.stopPropagation(),d(null)},"aria-label":e("closeLabel"),children:(0,t.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsx)("div",{className:"relative aspect-square",children:(0,t.jsx)(l.default,{src:o.image,alt:o.prompt,fill:!0,className:"object-contain",sizes:"90vw"})}),(0,t.jsxs)("div",{className:"p-6 border-t border-gray-200 dark:border-gray-800",children:[(0,t.jsx)("p",{className:"text-gray-900 dark:text-white font-medium mb-4",children:o.prompt}),(0,t.jsxs)("div",{className:"flex items-center gap-6 text-gray-600 dark:text-gray-400",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Heart,{className:"h-5 w-5"}),(0,t.jsx)("span",{children:o.likes.toLocaleString()})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.Eye,{className:"h-5 w-5"}),(0,t.jsx)("span",{children:o.views.toLocaleString()})]})]})]})]})}),(0,t.jsx)("div",{className:"mt-16 md:mt-20 text-center",children:(0,t.jsx)("p",{className:"text-base text-gray-600 dark:text-gray-400",children:e("bottomText")})})]})})}])},989271,e=>{"use strict";var t=e.i(114138),s=e.i(183650),a=e.i(519455),i=e.i(520133),r=e.i(290322),l=e.i(907265),n=e.i(446004),o=e.i(722267),d=e.i(626466),c=e.i(704927),m=e.i(193786),x=e.i(590620),p=e.i(89276),u=e.i(614039),g=e.i(677718),h=e.i(955782);e.s(["default",0,function(){let e=(0,m.useTranslations)("NanoBanana2Page.intro"),[b,f]=(0,p.useState)(!1),[j,w]=(0,p.useState)(null),v=()=>{f(!1),w(null)};(0,p.useEffect)(()=>{let e=e=>{"Escape"===e.key&&v()};return b&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="unset"}},[b]);let N=[{icon:(0,t.jsx)(c.Zap,{className:"h-4 w-4"}),title:e("features.speed"),description:e("features.speedDesc")},{icon:(0,t.jsx)(d.Users,{className:"h-4 w-4"}),title:e("features.consistency"),description:e("features.consistencyDesc")},{icon:(0,t.jsx)(n.MonitorPlay,{className:"h-4 w-4"}),title:e("features.resolution"),description:e("features.resolutionDesc")},{icon:(0,t.jsx)(l.Globe,{className:"h-4 w-4"}),title:e("features.grounding"),description:e("features.groundingDesc")}],y=[{src:"/zs/1.png",alt:"Nano Banana 2 Flash Speed Generation",caption:e("showcase.image1")},{src:"/zs/2.png",alt:"Nano Banana 2 Text Rendering",caption:e("showcase.image2")},{src:"/zs/3.png",alt:"Nano Banana 2 Subject Consistency",caption:e("showcase.image3")},{src:"/zs/4.png",alt:"Nano Banana 2 4K Generation",caption:e("showcase.image4")},{src:"/zs/1.png",alt:"Nano Banana 2 Web Grounding",caption:e("showcase.image5")},{src:"/zs/2.png",alt:"Nano Banana 2 Studio Lighting",caption:e("showcase.image6")}];return(0,t.jsxs)("section",{id:"nanobanana2-intro",className:"relative overflow-x-hidden bg-gradient-to-b from-background to-muted/20 px-4 py-10 sm:py-12 lg:py-10 xl:py-12",children:[(0,t.jsxs)("div",{className:"absolute inset-0 -z-10",children:[(0,t.jsx)("div",{className:"absolute left-0 top-1/2 h-96 w-96 -translate-x-1/2 -translate-y-1/2 rounded-full bg-gradient-to-r from-amber-400/10 via-orange-400/10 to-yellow-400/10 blur-3xl"}),(0,t.jsx)("div",{className:"absolute right-0 top-1/2 h-96 w-96 translate-x-1/2 -translate-y-1/2 rounded-full bg-gradient-to-r from-emerald-400/10 via-teal-400/10 to-cyan-400/10 blur-3xl"})]}),(0,t.jsx)("div",{className:"mx-auto max-w-7xl xl:max-w-[100rem] px-6 lg:px-8 overflow-hidden",children:(0,t.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[42%_58%] lg:gap-5 xl:gap-6 items-center",children:[(0,t.jsxs)("div",{className:"space-y-3 flex flex-col justify-center pr-0 lg:pr-4",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 rounded-full border border-amber-500/20 bg-gradient-to-r from-amber-500/10 to-orange-500/10 px-3 py-1.5 text-xs font-medium sm:text-sm",children:[(0,t.jsx)(c.Zap,{className:"h-3.5 w-3.5 text-amber-600"}),(0,t.jsx)("span",{className:"bg-gradient-to-r from-amber-600 to-orange-600 bg-clip-text text-transparent",children:e("badge")})]}),(0,t.jsx)("div",{children:(0,t.jsxs)("h1",{className:"text-2xl font-bold tracking-tight xs:text-3xl sm:text-4xl lg:text-5xl xl:text-5xl 2xl:text-5xl leading-tight",children:[e("title"),
1(0,t.jsx)("span",{className:"block text-xl xs:text-2xl sm:text-3xl lg:text-4xl xl:text-4xl 2xl:text-4xl mt-1 sm:mt-1.5 bg-gradient-to-r from-amber-600 via-orange-600 to-red-600 bg-clip-text text-transparent leading-tight",children:e("subtitle")})]})}),(0,t.jsx)("p",{className:"text-sm xs:text-base sm:text-base lg:text-base xl:text-base text-muted-foreground leading-[1.55]",children:e("description")})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 lg:gap-2.5",children:N.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted/25 px-2.5 py-2 lg:px-3 lg:py-2.5",children:[(0,t.jsx)("div",{className:"rounded-full bg-gradient-to-r from-amber-500/10 to-orange-500/10 p-1.5 flex-shrink-0",children:e.icon}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"text-[13px] font-semibold leading-tight",children:e.title}),(0,t.jsx)("div",{className:"text-[11px] text-muted-foreground leading-snug line-clamp-2",children:e.description})]})]},s))}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4 pt-2 sm:pt-3",children:[(0,t.jsx)(a.Button,{size:"lg",className:"w-full sm:w-auto rounded-md bg-gradient-to-r from-amber-600 to-orange-600 hover:from-amber-700 hover:to-orange-700 text-sm sm:text-base lg:text-base px-4 py-3 sm:px-5 sm:py-3.5 lg:px-5 lg:py-3.5 h-auto",asChild:!0,children:(0,t.jsxs)(i.LocaleLink,{href:"#generator",children:[(0,t.jsx)("span",{className:"truncate",children:e("startCreating")}),(0,t.jsx)(r.ArrowRight,{className:"ml-2 h-4 w-4 sm:h-5 sm:w-5 flex-shrink-0"})]})}),(0,t.jsxs)(a.Button,{size:"lg",variant:"outline",className:"w-full sm:w-auto rounded-md border-amber-500/15 hover:bg-amber-600/5 text-sm sm:text-base lg:text-base px-4 py-3 sm:px-5 sm:py-3.5 lg:px-5 lg:py-3.5 h-auto",onClick:()=>{let e=document.querySelector("#nanobanana2-features");e&&e.scrollIntoView({behavior:"smooth"})},children:[(0,t.jsx)("span",{className:"truncate",children:e("learnMore")}),(0,t.jsx)(o.Sparkles,{className:"ml-2 h-4 w-4 sm:h-5 sm:w-5 flex-shrink-0"})]})]})]}),(0,t.jsxs)("div",{className:"jsx-8611379c2c9b7ce4 relative w-full mt-4 sm:mt-6 lg:mt-0",children:[(0,t.jsx)(s.default,{id:"8611379c2c9b7ce4",children:".nanobanana2-swiper{height:auto;padding:5px 0 30px}@media (width>=640px){.nanobanana2-swiper{padding:10px 0 40px}}.nanobanana2-swiper .swiper-slide{opacity:.7;height:auto;transition:all .3s;transform:scale(.95)}@media (width>=640px){.nanobanana2-swiper .swiper-slide{transform:scale(.9)}}.nanobanana2-swiper .swiper-slide-active{opacity:1;transform:scale(1)}.nanobanana2-swiper .swiper-slide img{object-fit:cover;border-radius:8px;width:100%;height:auto;display:block}@media (width>=640px){.nanobanana2-swiper .swiper-slide img{border-radius:12px}}.nanobanana2-swiper .swiper-pagination{margin-top:15px;position:relative}@media (width>=640px){.nanobanana2-swiper .swiper-pagination{margin-top:20px}}.nanobanana2-swiper .swiper-pagination-bullet{opacity:1;background:#f59e0b4d;width:6px;height:6px;transition:all .3s}@media (width>=640px){.nanobanana2-swiper .swiper-pagination-bullet{width:8px;height:8px}}.nanobanana2-swiper .swiper-pagination-bullet-active{background:#f59e0b;border-radius:3px;width:18px}@media (width>=640px){.nanobanana2-swiper .swiper-pagination-bullet-active{border-radius:4px;width:24px}}"}),(0,t.jsx)("div",{className:"jsx-8611379c2c9b7ce4 w-full max-w-sm sm:max-w-4xl lg:max-w-6xl mx-auto",children:(0,t.jsx)(h.Swiper,{grabCursor:!0,centeredSlides:!0,initialSlide:1,slidesPerView:1.2,spaceBetween:8,rewind:!0,speed:600,autoplay:{delay:3500,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:{clickable:!0,dynamicBullets:!0},breakpoints:{480:{slidesPerView:1.5,spaceBetween:10},640:{slidesPerView:2,spaceBetween:10},1024:{slidesPerView:3,spaceBetween:10}},modules:[g.Pagination,u.Autoplay],className:"nanobanana2-swiper",children:y.map((e,s)=>(0,t.jsx)(h.SwiperSlide,{children:(0,t.jsxs)("div",{onClick:()=>{w(e),f(!0)},className:"jsx-8611379c2c9b7ce4 relative w-full aspect-[3/2] sm:aspect-[4/3] cursor-pointer group",children:[(0,t.jsx)(x.default,{src:e.src,alt:e.alt,fill:!0,sizes:"(max-width: 480px) 85vw, (max-width: 640px) 60vw, (max-width: 1024px) 50vw, 33vw",className:"shadow-md sm:shadow-lg object-cover transition-transform duration-300 group-hover:scale-105",priority:s<4}),(0,t.jsx)("div",{className:"jsx-8611379c2c9b7ce4 absolute inset-0 bg-black/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-lg sm:rounded-xl flex items-center justify-center",children:(0,t.jsx)(c.Zap,{className:"h-8 w-8 text-white"})}),(0,t.jsx)("div",{className:"jsx-8611379c2c9b7ce4 absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2 sm:p-3 rounded-b-lg sm:rounded-b-xl",children:(0,t.jsx)("p",{className:"jsx-8611379c2c9b7ce4 text-white text-xs sm:text-sm font-medium",children:e.caption})})]})},s))})})]})]})}),b&&j&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/90 z-50 flex items-center justify-center p-4",onClick:v,children:(0,t.jsxs)("div",{className:"relative max-w-7xl max-h-full w-full h-full flex items-center justify-center",children:[(0,t.jsx)("button",{type:"button",onClick:v,className:"absolute top-4 right-4 z-10 bg-white/10 backdrop-blur-sm hover:bg-white/20 text-white p-2 rounded-full transition-colors","aria-label":"Close image preview",children:(0,t.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsxs)("div",{className:"relative max-w-full max-h-full flex flex-col items-center justify-center",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"relative max-w-full max-h-[calc(100vh-8rem)] w-auto h-auto",children:(0,t.jsx)(x.default,{src:j.src,alt:j.alt,width:1200,height:900,className:"max-w-full max-h-full w-auto h-auto object-contain rounded-lg",priority:!0,style:{maxHeight:"calc(100vh - 8rem)"}})}),(0,t.jsx)("div",{className:"mt-4 px-4 py-2 bg-black/60 backdrop-blur-sm rounded-lg",children:(0,t.jsx)("p",{className:"text-white text-lg font-medium text-center",children:j.caption})})]})]})})]})}])}]);

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.