PageSourceSearch

https://gazouya.com/_nuxt/CdFWFOPj.js

js gazouya.com collected 2026-10-04 03:16:04 UTC 23,154 bytes, 1 lines download raw bytes

1import{u as me,_ as de}from"./DhkUGWDO.js";import{u as ne,b as ue,G as ce}from"./DHFKzjvd.js";import pe from"./DbP5ZfGH.js";import{s as ge,e as le,l as he,C as fe,o as x,c as k,a as n,b as S,t as v,k as ae,x as ve,y as ye,q as B,F as oe,p as se,z as be,h as z,A as _e,B as we,n as U,i as b,r as T,u as xe,g as Me,w as Ge,j as ke}from"./Cta6Ja8P.js";import{u as Se,C as Z}from"./CK_rOvcT.js";import{u as Pe,C as ee,a as Ce,i as Ie}from"./B9fALErY.js";import{u as Te}from"./BpmFmL9D.js";import{u as ie}from"./By0uZkx5.js";import{pollTaskStatus as re,createAiMangaGeneratorTask as ze}from"./bQlzGfPK.js";import{s as N}from"./YYoKbNfd.js";import"./Dpw4VeGH.js";const Le={class:"flex items-center justify-between p-4 border-b border-neutral-200 md:hidden"},je={class:"p-4 border-b border-neutral-200 flex-1 overflow-y-auto scrollbar-hide max-h-[100vh] md:max-h-none"},$e={class:"mb-4"},Ee={class:"block text-sm font-medium text-neutral-600 mb-2"},Ke={key:0,class:"mb-4"},Fe={class:"block text-sm font-medium text-neutral-600 mb-2"},Oe={class:"mb-4"},Re={for:"prompt",class:"block text-sm font-medium text-neutral-600 mb-2"},Be={class:"relative w-full"},Ae=["placeholder"],De={class:"mb-4"},Ve={class:"block text-sm font-medium text-neutral-600 mb-2"},He={class:"grid grid-cols-5 gap-2"},Ne=["onClick","innerHTML"],Ue={class:"mb-4"},We={class:"block text-sm font-medium text-neutral-600 mb-2"},qe={class:"mb-4"},Je={class:"text-sm font-medium text-neutral-600 mb-2"},Ye={class:"flex space-x-3"},Qe=["onClick"],Xe={key:0,class:"w-2 h-2 rounded-full bg-primary-500"},Ze={class:"p-4 pb-8 md:pb-4"},ea=["disabled"],aa={key:0,class:"flex items-center justify-center h-5 relative z-10"},ta={key:1,class:"flex items-center justify-center gap-2 relative z-10"},oa={class:"flex items-center"},sa={class:"mt-3 p-2 backdrop-blur-md border border-neutral-200 rounded-xl shadow-xl bg-white/80 transition-all duration-300 pointer-events-none"},ra={class:"flex items-center justify-between text-xs"},na={class:"text-neutral-500"},la={class:"text-warning font-semibold"},ia={class:"w-full bg-white rounded-full h-1.5 mt-1"},ma={__name:"MangaGenerationParams",props:{isGenerating:{type:Boolean,default:!1},showMobileParams:{type:Boolean,default:!1}},emits:["generate","close"],setup(te,{expose:D,emit:i}){const{error:W}=ie(),L=te,f=i,P=ge("generatorWorkspaceMobileParams",null),y=ne(),M=T(!1),r=Pe();Te();const{t,locale:_}=le(),p=b(()=>{const e=P?.showMobileParams,l=typeof e=="boolean"?e:e?.value??!1;return L.showMobileParams||l}),C=()=>{P?.closeMobileParams?.(),f("close")},G=()=>{C()},a=we({model:"standard",prompt:"",panelTemplate:"temp_3",style:"style_1",colorStyle:"color_2",size:""});Se(he().path,a,{deferredKeys:["size"],ignoredKeys:["prompt"]});const j=b(()=>{const e=K.find(I=>I.value===a.style),l=o.find(I=>I.value===a.colorStyle),g=e&&e.name!=="Custom (Prompt-based)"?`${e.name}, `:"",d=l?`${l.name}, `:"";return`${g}${d}${a.prompt}`}),q=()=>{if(!a.prompt.trim()||L.isGenerating)return;const e=R.value,l=Math.max(0,Number(y.credits??0));if(r.userStatus,Math.max(0,Number(r.userInfo?.user_credits??0)),l<e){W(t("common.aiMangaGenerator.messages.dailyLimitReached"));return}const g=V(),d=O.value.find(X=>X.value===a.model),I=K.find(X=>X.value===a.style);f("generate",{apiParams:g,style:a.style,historyDetails:{prompt:a.prompt.trim(),model:d?.label||a.model,style:I?.label||a.style,resolution:a.size,restoreParams:{prompt:a.prompt.trim(),model:a.model,panelTemplate:a.panelTemplate,style:a.style,colorStyle:a.colorStyle,size:a.size}}}),C()},V=()=>{const e=s.find(g=>g.id===a.panelTemplate),l={model_type:a.model,prompt:j.value,image:e?e.value:s[0].value};return a.size&&(l.size=a.size),l},F=e=>{if(e.prompt&&(a.prompt=e.prompt),e.model){const l=O.value.find(g=>g.value===e.model||g.label===e.model)?.value;l&&(a.model=l)}if(e.panelTemplate&&(a.panelTemplate=e.panelTemplate),e.style){const l=K.find(g=>g.value===e.style||g.label===e.style)?.value;l&&(a.style=l)}e.colorStyle&&(a.colorStyle=e.colorStyle),e.size&&U(()=>{(E[a.model]||[]).includes(e.size)&&(a.size=e.size)})};D({getGenerationParams:V,updateParams:F,params:a});const $={bytedance:"/img/Bytedance.svg",gemini:"/img/google.svg",openai:"/img/openai.svg",gazouya:"/img/gazouya.webp"}
1,O=b(()=>[{value:"standard",label:t("common.aiMangaGenerator.params.modelOptions.standard"),description:_.value==="jp"?"高速・低コストで気軽に生成":"Fast and affordable for everyday generation",icon:$.gazouya,credits:"3"},{value:"seedream_5_lite",label:t("common.aiMangaGenerator.params.modelOptions.seedream_5_lite"),description:_.value==="jp"?"高品質な画像や文字入りデザインに":"Great for high-quality images and text-rich designs",icon:$.bytedance,credits:"8"},{value:"nano_banana_2",label:t("common.aiMangaGenerator.params.modelOptions.nano_banana_2"),description:_.value==="jp"?"画像編集や細かな調整に":"Great for image editing and precise adjustments",icon:$.gemini,credits:"8/12/16"},{value:"gpt_image_2",label:t("common.aiMangaGenerator.params.modelOptions.gpt_image_2"),description:_.value==="jp"?"複雑な指示にも対応する高品質モデル":"High-quality results for complex instructions",icon:$.openai,credits:"3/6/9"}]),E={seedream_5_lite:["2K","4K"],nano_banana_2:["1K","2K","4K"],gpt_image_2:["1K","2K","4K"]},J=e=>E[e]?.[0]||"",H=b(()=>(E[a.model]||[]).map(e=>({value:e,label:e}))),Y=b(()=>H.value.length>0),Q={standard:3,seedream_5_lite:{"2K":8,"4K":8},nano_banana_2:{"1K":8,"2K":12,"4K":16},gpt_image_2:{"1K":3,"2K":6,"4K":9},nano_banana:8},R=b(()=>{const e=Q[a.model];return typeof e=="number"?e:e?.[a.size]||10});me(R),fe(()=>a.model,e=>{(E[e]||[]).includes(a.size)||(a.size=J(e))},{immediate:!0});const K=[{value:"style_1",label:t("common.aiMangaGenerator.params.styleOptions.japaneseManga"),name:"Japanese Manga Style,The structure should be the same as the photo,language should be Japanese"},{value:"style_2",label:t("common.aiMangaGenerator.params.styleOptions.americanComic"),name:"American Comic Style,The structure should be the same as the photo,language should be English"},{value:"style_3",label:t("common.aiMangaGenerator.params.styleOptions.koreanWebtoon"),name:"Korean Webtoon Style,The structure should be the same as the photo,language should be Korean"},{value:"style_4",label:t("common.aiMangaGenerator.params.styleOptions.customPrompt"),name:"Custom Prompt-based Style,The structure should be the same as the photo,language should be English"}],o=[{value:"color_1",label:t("common.aiMangaGenerator.params.colorStyles.blackAndWhite"),name:"Black and White Tone"},{value:"color_2",label:t("common.aiMangaGenerator.params.colorStyles.fullColor"),name:"Full Color Tone"}],s=[{id:"temp_1",svg:"<svg viewBox='0 0 100 150' class='w-full h-full p-2 stroke-current text-neutral-400'><rect x='5' y='5' width='90' height='140' stroke-width='3' fill='none'/></svg>",value:"https://gazouya.com/public-assets/aimangagenerator/temp_1.webp"},{id:"temp_2",svg:"<svg viewBox='0 0 100 150' class='w-full h-full p-2 stroke-current text-neutral-400'><rect x='5' y='5' width='90' height='140' stroke-width='3' fill='none'/><line x1='33' y1='5' x2='67' y2='145' stroke-width='3'/></svg>",value:"https://gazouya.com/public-assets/aimangagenerator/temp_2.webp"},{id:"temp_3",svg:"<svg viewBox='0 0 100 150' class='w-full h-full p-2 stroke-current text-neutral-400'><rect x='5' y='5' width='90' height='140' stroke-width='3' fill='none'/><line x1='5' y1='55' x2='95' y2='55' stroke-width='3'/><line x1='5' y1='100' x2='95' y2='100' stroke-width='3'/></svg>",value:"https://gazouya.com/public-assets/aimangagenerator/temp_3.webp"},{id:"temp_4",svg:"<svg viewBox='0 0 100 150' class='w-full h-full p-2 stroke-current text-neutral-400'><rect x='5' y='5' width='90' height='140' stroke-width='3' fill='none'/><line x1='5' y1='42.5' x2='95' y2='42.5' stroke-width='3'/><line x1='5' y1='80' x2='95' y2='80' stroke-width='3'/><line x1='5' y1='117.5' x2='95' y2='117.5' stroke-width='3'/></svg>",value:"https://gazouya.com/public-assets/aimangagenerator/temp_4.webp"},{id:"temp_5",svg:"<svg viewBox='0 0 100 150' class='w-full h-full p-2 stroke-current text-neutral-400'><rect x='5' y='5' width='90' height='140' stroke-width='3' fill='none'/><line x1='5' y1='77.5' x2='95' y2='77.5' stroke-width='3'/><line x1='50' y1='5' x2='50' y2='145' stroke-width='3'/></svg>",value:"https://gazouya.com/public-assets/aimangagenerator/temp_5.webp"}],h=["Every night at 2:17 AM, the elevator in Building C stopped on a floor that didn’t exist. The doors opened to a sunlit hospital corridor, perfectly clean, monitors still beeping. One resident stepped inside and returned moments later—holding discharge papers dated thirty years in the future, signed with their own name.","The old woman fed stray dogs the names of the dead, whispering each name before sunrise. In return, the dogs guarded the memories. When she forgot her son’s face, a dog followed her home and lay at her door, remembering for her.","The seaside town never appeared on weather forecasts. Every morning, radios played the shipping report, calling out boats that had sunk decades ago. At night, the lighthouse still turned—guiding ships that no longer existed.","The fox spirit borrowed one human emotion each spring. This year, it chose regret. As flowers bloomed across the mountain, the fox learned why humans cried—and why they kept going anyway.","Everyone in the city gained a superpower at eighteen—except her. Instead, she could see the price others would pay for using theirs. O
1ne night, the city went dark, and all the prices came due at once."],u=["毎晩2時17分、C棟のエレベーターは存在しない階で止まる。扉の向こうには陽光が差し込む清潔な病院の廊下が続き、モニター音だけが響いている。住人の一人が足を踏み入れ、数分後に戻ってきた。その手には、30年後の日付と自分の署名が入った退院書類が握られていた。","老女は夜明け前、野良犬たちに死者の名前をささやきながら餌を与えていた。その代わり、犬たちは記憶を守った。彼女が息子の顔を忘れた日、一匹の犬が家までついてきて玄関先に横たわり、彼女の代わりにその顔を覚えていた。","その海辺の町は天気予報に一度も表示されない。毎朝ラジオからは、何十年も前に沈んだ船の名前を読み上げる航行情報が流れる。夜になると灯台は今も回り続け、もう存在しない船を導いている。","狐の精霊は毎年春に、人間の感情を一つだけ借りる。今年選んだのは後悔だった。山いっぱいに花が咲く中で、狐は人間がなぜ涙を流し、それでも歩き続けるのかを知っていく。","この街では、誰もが18歳になると超能力を得る。ただ一人、彼女だけは違った。彼女に見えるのは、他人が能力を使うたびに支払う代償だった。ある夜、街の明かりがすべて消え、すべての代償が一斉に取り立てられた。"],m=b(()=>_.value==="jp"?u:h),c=()=>{const e=Math.floor(Math.random()*m.value.length);a.prompt=m.value[e]},{bindHistoryReceiver:w}=ue();return w({source:P?.source,updateParams:F,openParams:P?.openMobileParams}),(e,l)=>{const g=pe;return x(),k("div",{class:B(["fixed bottom-0 left-0 right-0 z-[70] w-full border-r border-neutral-200 backdrop-blur-sm bg-panel flex flex-col h-full transform transition-transform duration-300 ease-in-out md:relative md:inset-auto md:z-auto md:translate-y-0 md:bg-white/80",p.value?"translate-y-0":"translate-y-full"])},[n("div",Le,[l[6]||(l[6]=n("p",null,null,-1)),n("button",{onClick:G,class:"w-8 h-8 flex items-center justify-center rounded-full bg-card hover:bg-white transition-colors"},[S(g,{name:"lucide:x",class:"w-5 h-5 text-neutral-800"})])]),n("div",je,[n("div",$e,[n("label",Ee,v(e.$t("common.aiMangaGenerator.params.model")),1),S(Z,{modelValue:a.model,"onUpdate:modelValue":l[0]||(l[0]=d=>a.model=d),options:O.value,scrollable:!1},null,8,["modelValue","options"])]),Y.value?(x(),k("div",Ke,[n("label",Fe,v(e.$t("common.aiMangaGenerator.params.size")),1),S(Z,{modelValue:a.size,"onUpdate:modelValue":l[1]||(l[1]=d=>a.size=d),options:H.value},null,8,["modelValue","options"])])):ae("",!0),n("div",Oe,[n("label",Re,v(e.$t("common.aiMangaGenerator.params.prompt")),1),n("div",Be,[ve(n("textarea",{id:"prompt","onUpdate:modelValue":l[2]||(l[2]=d=>a.prompt=d),rows:"4",class:B(["w-full p-3 pr-12 rounded-lg border border-neutral-300 bg-white text-neutral-800 placeholder-neutral-400 resize-none scrollbar-hide focus:outline-none focus:border-primary-500 transition-all duration-200",[(M.value&&a.prompt.trim(),"h-36")]]),onFocus:l[3]||(l[3]=d=>M.value=!0),onBlur:l[4]||(l[4]=d=>M.value=!1),placeholder:e.$t("common.aiMangaGenerator.params.promptPlaceholder")},null,42,Ae),[[ye,a.prompt]]),n("button",{onClick:c,class:"absolute top-3 right-3 text-neutral-500 hover:text-neutral-800 transition-colors duration-200"},[S(g,{name:"lucide:dices",class:"h-5 w-5"})])])]),n("div",De,[n("div",Ve,v(e.$t("common.aiMangaGenerator.params.panelTemplates")),1),n("div",He,[(x(),k(oe,null,se(s,d=>n("button",{key:d.id,onClick:I=>a.panelTemplate=d.id,class:B(["h-24 bg-white border-2 rounded-lg transition-all duration-200",a.panelTemplate===d.id?"border-primary-500":"border-transparent hover:border-neutral-300"]),innerHTML:d.svg},null,10,Ne)),64))])]),n("div",Ue,[n("label",We,v(e.$t("common.aiMangaGenerator.params.style")),1),S(Z,{modelValue:a.style,"onUpdate:modelValue":l[5]||(l[5]=d=>a.style=d),options:K,"drop-up":!0},null,8,["modelValue"])]),n("div",qe,[n("div",Je,v(e.$t("common.aiMangaGenerator.params.colorStyle")),1),n("div",Ye,[(x(),
1k(oe,null,se(o,d=>n("button",{key:d.value,onClick:I=>a.colorStyle=d.value,class:B(["flex-1 p-3 rounded-lg border transition-all duration-200 flex items-center justify-center space-x-2 text-sm",{"border-primary-500 bg-primary-500/10 text-primary-500 font-semibold":a.colorStyle===d.value,"border-neutral-300 bg-white text-neutral-600 hover:bg-neutral-100":a.colorStyle!==d.value}])},[n("span",{class:B(["w-4 h-4 rounded-full border flex items-center justify-center mr-2",a.colorStyle===d.value?"border-primary-500":"border-neutral-400"])},[a.colorStyle===d.value?(x(),k("span",Xe)):ae("",!0)],2),n("span",null,v(d.label),1)],10,Qe)),64))])])]),n("div",Ze,[n("button",{onClick:q,disabled:!a.prompt.trim()||L.isGenerating,class:"w-full px-8 py-3 rounded-lg text-base font-semibold text-white bg-gradient-to-br from-[var(--color-brand-btn-from)] to-[var(--color-brand-btn-to)] disabled:from-neutral-200 disabled:to-neutral-300 disabled:cursor-not-allowed transition-all duration-300 transform hover:scale-105 disabled:hover:scale-100 shadow-lg hover:shadow-xl relative overflow-hidden"},[L.isGenerating?(x(),k("span",aa,[...l[7]||(l[7]=[be('<span class="wave"></span><span class="wave"></span><span class="wave"></span><span class="wave"></span><span class="wave"></span>',5)])])):(x(),k("span",ta,[n("span",null,v(e.$t("common.aiMangaGenerator.params.generate")),1),n("div",oa,[S(g,{name:"solar:bolt-bold",class:"w-4 h-4 text-warning-500"}),n("span",null,v(R.value),1)])]))],8,ea),n("div",sa,[n("div",ra,[n("span",na,v(e.$t("common.aiMangaGenerator.params.credits")),1),n("span",la,v(z(y).creditsDisplay),1)]),n("div",ia,[n("div",{class:"bg-gradient-to-r from-warning-400 to-warning-300 h-1.5 rounded-full transition-all duration-300",style:_e({width:`${z(y).creditsPercentage}%`})},null,4)])])])],2)}}},A="AiMangaGenerator",wa={__name:"index",setup(te){const{locale:D,t:i}=le(),W={"@context":"https://schema.org/","@type":"SoftwareApplication",name:i("aiMangaGenerator.seo.structuredName"),url:i("aiMangaGenerator.seo.href"),applicationCategory:"MultimediaApplication",operatingSystem:"All",offers:{"@type":"Offer",price:"0",priceCurrency:"JPY"},brand:{"@type":"Brand",name:i("aiMangaGenerator.seo.name")}},L={"@context":"https://schema.org/","@type":"WebSite",name:i("aiMangaGenerator.seo.name"),url:i("aiMangaGenerator.seo.href")};xe({title:i("aiMangaGenerator.seo.title"),meta:[{name:"description",content:i("aiMangaGenerator.seo.description")},{property:"og:title",content:i("aiMangaGenerator.seo.ogTitle")},{property:"og:description",content:i("aiMangaGenerator.seo.ogDescription")},{property:"og:image",content:i("aiMangaGenerator.seo.ogImage")},{property:"og:type",content:"website"},{property:"og:url",content:i("aiMangaGenerator.seo.href")},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"https://gazouya.com/"},{name:"twitter:title",content:i("aiMangaGenerator.seo.ogTitle")},{name:"twitter:image",content:i("aiMangaGenerator.seo.ogImage")},{name:"twitter:description",content:i("aiMangaGenerator.seo.description")}],link:[{rel:"canonical",href:i("aiMangaGenerator.seo.href")},{rel:"alternate",hreflang:"x-default",href:"https://gazouya.com/ai-manga-generator/"},{rel:"alternate",hreflang:"ja",href:"https://gazouya.com/ai-manga-generator/"},{rel:"alternate",hreflang:"en",href:"https://gazouya.com/en/ai-manga-generator/"}],script:[{type:"application/ld+json",children:JSON.stringify(W)},{type:"application/ld+json",children:JSON.stringify(L)}]});const f=T(null),P=T("ai-manga-generator"),y=T(null),M=y,r=b(()=>f.value?.historySidebarRef),t=b(()=>f.value?.mobileHistorySidebarRef),_=b(()=>f.value?.isMobile??!1),p=T(!1),C=T(null),G=T(null),a=ne(),{error:j}=ie();Me(async()=>{if(await N(A,"page_view",{page_id:"ai_manga_generator"}),await a.loadCredits(),await U(),typeof window<"u"){const o=sessionStorage.getItem("landing_prompt");if(o){await U();const s=_.value?M.value:y.value;s&&s.updateParams&&s.updateParams({prompt:o}),_.value&&f.value&&(f.value.showMobileParams=!0),sessionStorage.removeItem("landing_prompt")}}await V()});const q=()=>{},V=async()=>{try{await U();let o=[];r.value&&(o=r.value.getLoadingTasks()),o.length===0&&t.value&&(o=t.value.getLoadingTasks());for(const s of o)if(s.id){if(Date.now()-s.timestamp>864e5)continue;r.value&&r.value.addLoadingItem(s.id),t.value&&t.value.addLoadingItem(s.id),re
1(s.id,u=>{r.value&&r.value.updateItemProgress(s.id,u),t.value&&t.value.updateItemProgress(s.id,u)}).then(u=>{if(u.code===ee&&u.result?.image_url&&u.result.image_url.length>0){const m=u.result.image_url[0];r.value&&r.value.completeItem(s.id,m),t.value&&t.value.completeItem(s.id,m)}else{const m=u.message||i("common.aiMangaGenerator.messages.taskFailed");r.value&&r.value.failItem(s.id,m),t.value&&t.value.failItem(s.id,m)}a.loadCredits()}).catch(u=>{r.value&&r.value.failItem(s.id,u.message||i("common.aiMangaGenerator.messages.taskFailed")),t.value&&t.value.failItem(s.id,u.message||i("common.aiMangaGenerator.messages.taskFailed")),a.loadCredits()})}}catch(o){console.error("Error restoring loading tasks:",o)}},F=async(o,s,h,u={})=>{try{await N(A,"generate",h);const m=await ze(o);if(m.code===Ce){const c=D.value,w=typeof m.message=="object"?m.message[c]||m.message.en||i("common.aiMangaGenerator.messages.dailyLimitReached"):m.message||i("common.aiMangaGenerator.messages.dailyLimitReached");r.value&&r.value.removeLoadingItem(s),t.value&&t.value.removeLoadingItem(s),j(w),a.saveCredits(0,a.maxCredits),p.value=!1;return}if(Ie(m.code)){r.value&&r.value.removeLoadingItem(s),t.value&&t.value.removeLoadingItem(s),j(i("common.aiMangaGenerator.messages.requestFailed")),p.value=!1;return}if(m.code===ee&&m.result?.job_id){const c=m.result.job_id;r.value&&r.value.removeLoadingItem(s),t.value&&t.value.removeLoadingItem(s),r.value&&r.value.addLoadingItem(c,!0,u,m.result?.history_details||m.result?.historyDetails||{}),t.value&&t.value.addLoadingItem(c,!0,u,m.result?.history_details||m.result?.historyDetails||{}),await a.updateCredits(m);const w=await re(c,e=>{r.value&&r.value.updateItemProgress(c,e),t.value&&t.value.updateItemProgress(c,e)});if(w.code===ee&&w.result?.image_url&&w.result.image_url.length>0){const e=w.result.image_url[0];C.value=e,await N(A,"generate_succeed",{job_id:c,image_url:e,source_image_urls:m.result.image_urls??m.result.image_url??""}),r.value&&r.value.completeItem(c,e),t.value&&t.value.completeItem(c,e)}else{const e=w.message||i("common.aiMangaGenerator.messages.taskFailed");throw await N(A,"generate_failed",{job_id:c}),r.value&&r.value.failItem(c,e),t.value&&t.value.failItem(c,e),await a.loadCredits(),new Error(e)}await a.loadCredits()}else{const c=typeof m.message=="object"?m.message[D.value]||m.message.en||i("common.aiMangaGenerator.messages.generateFailed"):m.message||i("common.aiMangaGenerator.messages.generateFailed");throw new Error(c)}}finally{p.value=!1}},$=async o=>{G.value={apiParams:o.apiParams,style:o.style,historyDetails:o.historyDetails};const s={model:o.apiParams.model_type,style:o.style},h=Date.now().toString();r.value&&r.value.addLoadingItem(h,!1),t.value&&t.value.addLoadingItem(h,!1),p.value=!0;try{await F(o.apiParams,h,s,o.historyDetails)}catch(u){p.value=!1,j(i("common.aiMangaGenerator.messages.requestFailed")),r.value&&r.value.failItem(h,u.message||i("common.aiMangaGenerator.messages.generateFailed")),t.value&&t.value.failItem(h,u.message||i("common.aiMangaGenerator.messages.generateFailed"))}},O=o=>{const s=_.value?M.value:y.value;s?.updateParams?s.updateParams({prompt:o}):s?.params&&(s.params.prompt=o)},E=o=>{const s={prompt:o.prompt,model:o.model,style:o.style,colorStyle:o.colorStyle,panelTemplate:o.panelTemplate};y.value?.updateParams&&y.value.updateParams(s),M.value?.updateParams&&(M.value.updateParams(s),f.value&&(f.value.showMobileParams=!0))},J=()=>{C.value=null,p.value=!1},H=async()=>{if(!G.value)return;const o=Date.now().toString();r.value&&r.value.addLoadingItem(o,!1),t.value&&t.value.addLoadingItem(o,!1),p.value=!0;try{await F(G.value.apiParams,o,`model:${G.value.apiParams.model_type};style:${G.value.style}`,G.value.historyDetails)}catch(s){console.error("Regeneration failed:",s),p.value=!1,j(i("common.aiMangaGenerator.messages.requestFailed")),r.value&&r.value.failItem(o,s.message||i("common.aiMangaGenerator.messages.regenerateFailed")),t.value&&t.value.failItem(o,s.message||i("common.aiMangaGenerator.messages.regenerateFailed"))}},Y=o=>{console.log("History item selected:",o)},Q=()=>{p.value=!0},R=o=>{C.value=o,p.value=!1},K=()=>{p.value=!1};return(o,s)=>{const h=de;return x(),k("div",null,[S(ce,{ref_key:"workspaceRef",ref:f,"active-tab":z(P),"result-image":z(C),"is-generating":z(p),"show-placeholder":!0,"placeholder-image":"https://gazouya.com/public-assets/aimangagenerator/1.webp","placeholder-alt":o.$t("common.placeholderAlt.aiMangaGenerator"),"a-li-id":A,"mobile-top-title":o.$t("common.tabs.aiMangaGenerator"),onTabChange:q,onCopyPrompt:O,onClearResult:J,onRegenerate:H,onSelectImage:E,onProcessingStart:Q,onProcessingComplete:R,onProcessingError:K,onHistorySelect:Y},{params:Ge(()=>[z(P)==="ai-manga-generator"?(x(),ke(ma,{key:0,ref_key:"paramsRef",ref:y,"is-generating":z(p),onGenerate:$},null,8,["is-generating"])):ae("",!0)]),_:1},8,["active-tab","result-image","is-generating","placeholder-alt","mobile-top-title"]),S(h,{i18nKey:"aiMangaGenerator.landing"})])}}};export{wa as default};

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.