1import{_ as W}from"./DhkUGWDO.js";import{u as Y,G as K}from"./DHFKzjvd.js";import{_ as Q}from"./CAnvCZj_.js";import{pollTaskStatus as L,createText2ImageTask as V}from"./bQlzGfPK.js";import{C as T,a as X,i as Z}from"./B9fALErY.js";import{e as ee,f as ae,u as te,g as oe,n as M,c as se,b as R,w as ie,h as p,i as S,r as f,o as F,j as re,k as le}from"./Cta6Ja8P.js";import{u as ne}from"./By0uZkx5.js";import{s as _}from"./YYoKbNfd.js";import"./Dpw4VeGH.js";import"./DbP5ZfGH.js";import"./CK_rOvcT.js";import"./l5-woN1Y.js";import"./BpmFmL9D.js";const me=Object.freeze({en:Object.freeze(["Full-body standing illustration of a calm fantasy swordswoman with long silver hair, navy travel cloak, leather boots, and a sheathed rapier, front-facing neutral pose, complete figure visible from head to toe, clean light background, polished anime character art","Full-body standing illustration of a cheerful modern schoolboy with tousled brown hair, green cardigan, shoulder bag, and sneakers, relaxed upright pose, complete figure visible from head to toe, plain studio background, detailed Japanese anime style","Full-body standing illustration of a mysterious cyberpunk mechanic with short violet hair, luminous visor, layered utility jacket, tool belt, and reinforced boots, neutral character-sheet pose, clean simple background, high-detail concept art","Full-body standing illustration of an elegant elven healer with braided golden hair, white and turquoise robes, crystal staff, embroidered cape, and delicate accessories, composed upright pose, uncluttered pale background, refined fantasy game art","Full-body standing illustration of a confident detective with wavy black hair, long beige trench coat, dark slacks, leather gloves, and a notebook, natural standing pose, complete silhouette, simple gray background, cinematic anime rendering","Full-body standing illustration of a playful cat-eared café attendant with auburn twin tails, cream apron dress, striped stockings, and a small serving tray, friendly neutral pose, clean pastel background, charming commercial character design"]),jp:Object.freeze(["é·ãé髪ãç´ºè²ã®æ
ç¨ãã³ããé©ã®ãã¼ããéã«åããã¬ã¤ãã¢ãç¹å¾´ã®è½ã¡çãããã¡ã³ã¿ã¸ã¼å¥³å£å£«ã®å
¨èº«ç«ã¡çµµãæ£é¢åãã®èªç¶ãªç«ã¡å§¿ãé ããã¤ã¾å
ã¾ã§è¦ããæ§å³ãæããã·ã³ãã«ãªèæ¯ãæ´ç·´ãããã¢ãã¡é¢¨ãã£ã©ã¯ã¿ã¼ã¤ã©ã¹ã","ç¡é ä½ãªè¶é«ªãç·ã®ã«ã¼ãã£ã¬ã³ãã·ã§ã«ãã¼ããã°ãã¹ãã¼ã«ã¼ãç¹å¾´ã®æããç·å髿 ¡çã®å
¨èº«ç«ã¡çµµããªã©ãã¯ã¹ããç´ç«ãã¼ãºãé ããã¤ã¾å
ã¾ã§è¦ããæ§å³ãç¡å°ã®ã¹ã¿ã¸ãªèæ¯ãç²¾å¯ãªæ¥æ¬ã¢ãã¡é¢¨","çã紫髪ãçºå
ãããã¤ã¶ã¼ãéãçãã使¥ç¨ã¸ã£ã±ããããã¼ã«ãã«ããè£å¼·ãã¼ããç¹å¾´ã®è¬ããããµã¤ãã¼ãã³ã¯æ´å士ã®å
¨èº«ç«ã¡çµµããã£ã©ã¯ã¿ã¼ã·ã¼ãç¨ã®èªç¶ãªç«ã¡å§¿ãã·ã³ãã«ãªèæ¯ãé«ç²¾ç´°ãªã³ã³ã»ããã¢ã¼ã","ç·¨ã¿è¾¼ãã é髪ãç½ã¨éç·ã®ãã¼ããã¯ãªã¹ã¿ã«ã®æãåºç¹å
¥ãã®ã±ã¼ããç¹ç´°ãªè£
飾ãç¹å¾´ã®åªé
ãªã¨ã«ãã®çããæã®å
¨èº«ç«ã¡çµµãè½ã¡çããç´ç«ãã¼ãºãæ·¡ããã£ããããèæ¯ãä¸åãªãã¡ã³ã¿ã¸ã¼ã²ã¼ã 風","æ³¢æã¤é»é«ªããã¼ã¸ã¥ã®ãã³ã°ãã¬ã³ãã³ã¼ããæ¿è²ã®ã¹ã©ãã¯ã¹ã驿è¢ãæå¸³ãç¹å¾´ã®èªä¿¡ã«æºã¡ãæ¢åµã®å
¨èº«ç«ã¡çµµãèªç¶ãªç«ã¡å§¿ãå
¨èº«ã®ã·ã«ã¨ãããè¦ããæ§å³ãã·ã³ãã«ãªã°ã¬ã¼èæ¯ãæ ç»çãªã¢ãã¡è¡¨ç¾","赤è¶è²ã®ãã¤ã³ãã¼ã«ãç«è³ãã¯ãªã¼ã è²ã®ã¨ããã³ãã¬ã¹ãç¸æ¨¡æ§ã®ã¹ãããã³ã°ãå°ããªãã¬ã¤ãç¹å¾´ã®å
æ°ãªã«ãã§åºå¡ã®å
¨èº«ç«ã¡çµµã親ãã¿ãããèªç¶ãªç«ã¡å§¿ãæ·¡ãç¡å°èæ¯ãé
åçãªåç¨ãã£ã©ã¯ã¿ã¼ãã¶ã¤ã³"])}),k="tachieMaker",Pe={__name:"index",setup(ce){const{t:s,locale:j}=ee();ae();const D={"@context":"https://schema.org/","@type":"SoftwareApplication",name:s("tachieMaker.seo.structuredName"),url:s("tachieMaker.seo.href"),applicationCategory:"MultimediaApplication",operatingSystem:"All",offers:{"@type":"Offer",price:"0",priceCurrency:"JPY"},brand:{"@type":"Brand",name:s("tachieMaker.seo.name")}},E={"@context":"https://schema.org/","@type":"WebSite",name:s("tachieMaker.seo.name"),url:s("tachieMaker.seo.href")};te({title:s("tachieMaker.seo.title"),meta:[{name:"description",content:s("tachieMaker.seo.description")},{property:"og:title",content:s("tachieMaker.seo.ogTitle")},{property:"og:description",content:s("tachieMaker.seo.ogDescription")},{property:"og:image",content:s("tachieMaker.seo.ogImage")},{property:"og:type",content:"website"},{property:"og:url",content:s("tachieMaker.seo.href")},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"https://gazouya.com/"},{name:"twitter:title",content:s("tachieMaker.seo.ogTitle")},{name:"twitter:image",content:s("tachieMaker.seo.ogImage")},{name:"twitter:description",content:s("tachieMaker.seo.description")}],link:[{rel:"canonical",href:s("tachieMaker.seo.href")},{rel:"alternate",hreflang:"x-default",href:"https://gazouya.com/tachie-maker/"},{rel:"alternate",hreflang:"ja",href:"https://gazouya.com/tachie-maker/"},{rel:"alternate",hreflang:"en",href:"https://gazouya.com/en/tachie-maker/"}],script:[{type:"application/ld+json",children:JSON.stringify(D)},{type:"application/ld+json",children:JSON.stringify(E)}]});const d=f(null),x=f("tachie-maker"),b=f(null),m=f(!1),v=f(null),w=v,t=S(()=>d.value?.historySidebarRef),o=S(()=>d.value?.mobileHistorySidebarRef),h=S(()=>d.value?.isMobile??!1),g=f(null),u=Y(),{error:y}=ne();oe(async()=>
1{if(await _(k,"page_view",{page_id:"tachie_maker"}),await u.loadCredits(),await M(),typeof window<"u"){const e=sessionStorage.getItem("landing_prompt"),a=sessionStorage.getItem("landing_model"),n=sessionStorage.getItem("landing_style"),r=sessionStorage.getItem("landing_ratio");if(e||a||n||r){await M();const i=h.value?w.value:v.value,l={};e&&(l.prompt=e),a&&(l.model=a),n&&(l.style=n),r&&(l.aspectRatio=r),i&&i.updateParams?i.updateParams(l):console.error("paramsRef æ updateParams ä¸åå¨"),h.value&&(d.value.showMobileParams=!0),e&&sessionStorage.removeItem("landing_prompt"),a&&sessionStorage.removeItem("landing_model"),n&&sessionStorage.removeItem("landing_style"),r&&sessionStorage.removeItem("landing_ratio")}}await O()});const O=async()=>{try{await M();let e=[];t.value&&(e=t.value.getLoadingTasks()),e.length===0&&o.value&&(e=o.value.getLoadingTasks());for(const a of e)if(a.id){if(Date.now()-a.timestamp>864e5)continue;t.value&&t.value.addLoadingItem(a.id),o.value&&o.value.addLoadingItem(a.id),L(a.id,r=>{t.value&&t.value.updateItemProgress(a.id,r),o.value&&o.value.updateItemProgress(a.id,r)}).then(r=>{if(r.code===T&&r.result?.status==="completed"&&r.result.image_url?.length>0){const i=r.result.image_url[0];t.value&&t.value.completeItem(a.id,i),o.value&&o.value.completeItem(a.id,i)}else{const i=r.message||s("common.textToImage.messages.taskFailed");t.value&&t.value.failItem(a.id,i),o.value&&o.value.failItem(a.id,i)}u.loadCredits()}).catch(r=>{t.value&&t.value.failItem(a.id,r.message||s("common.textToImage.messages.taskFailed")),o.value&&o.value.failItem(a.id,r.message||s("common.textToImage.messages.taskFailed")),u.loadCredits()})}}catch{}},C=async(e,a,n,r={})=>{try{await _(k,"generate",n);const i=await V(e);if(i.code===X){const l=j.value;console.log(i.message);const P=typeof i.message=="object"?i.message[l]||i.message.en||s("common.textToImage.messages.dailyLimitReached"):i.message||s("common.textToImage.messages.dailyLimitReached");t.value&&t.value.removeLoadingItem(a),o.value&&o.value.removeLoadingItem(a),u.saveCredits(0,u.maxCredits),y(s("common.textToImage.messages.dailyLimitReached")),m.value=!1;return}if(Z(i.code)){t.value&&t.value.removeLoadingItem(a),o.value&&o.value.removeLoadingItem(a),y(s("common.textToImage.messages.requestFailed")),m.value=!1;return}if(i.code===T&&i.result?.job_id){const l=i.result.job_id,P={...i.result.history_details||i.result.historyDetails||{},image_urls:i.result.image_urls};t.value&&t.value.removeLoadingItem(a),o.value&&o.value.removeLoadingItem(a),t.value&&t.value.addLoadingItem(l,!0,r,P),o.value&&o.value.addLoadingItem(l,!0,r,P),await u.updateCredits(i);const I=await L(l,c=>{t.value&&t.value.updateItemProgress(l,c),o.value&&o.value.updateItemProgress(l,c)});if(I.code===T&&I.result?.status==="completed"&&I.result.image_url?.length>0){const c=I.result.image_url[0];b.value=c,await _(k,"generate_succeed",{job_id:l,image_url:c,source_image_urls:i.result.image_urls??i.result.image_url??""}),t.value&&t.value.completeItem(l,c),o.value&&o.value.completeItem(l,c)}else{const c=I.message||s("common.textToImage.messages.taskFailed");throw await _(k,"generate_failed",{job_id:l}),t.value&&t.value.failItem(l,c),o.value&&o.value.failItem(l,c),await u.loadCredits(),new Error(c)}await u.loadCredits()}else throw y(s("common.textToImage.messages.requestFailed")),new Error(i.message||s("common.textToImage.messages.generateFailed"))}finally{m.value=!1}},z=()=>{},A=async e=>{g.value={apiParams:e.apiParams,style:e.style,historyDetails:e.historyDetails};const a={model:e.apiParams.model_type,style:e.style},n=Date.now().toString();t.value&&t.value.addLoadingItem(n,!1),o.value&&o.value.addLoadingItem(n,!1),m.value=!0;try{await C(e.apiParams,n,a,e.historyDetails)}catch(r){m.value=!1,y(s("common.textToImage.messages.requestFailed")),t.value&&t.value.failItem(n,r.message||s("common.textToImage.messages.generateFailed")),o.value&&o.value.failItem(n,r.message||s("common.textToImage.messages.generateFailed"))}},G=e=>{const a=h.value?w.value:v.value;a&&(a.params.prompt=e)},$=()=>{b.value=null},q=()=>{m.value=!0},H=e=>{b.value=e,m.value=!1},N=()=>{m.value=!1},B=async()=>
1{if(!g.value)return;const e=Date.now().toString();t.value&&t.value.addLoadingItem(e,!1),o.value&&o.value.addLoadingItem(e,!1),m.value=!0;try{await C(g.value.apiParams,e,`model:${g.value.apiParams.model_type};style:${g.value.style}`,g.value.historyDetails)}catch(a){console.error("Regeneration failed:",a),m.value=!1,y(s("common.textToImage.messages.requestFailed")),t.value&&t.value.failItem(e,a.message||s("common.textToImage.messages.regenerateFailed")),o.value&&o.value.failItem(e,a.message||s("common.textToImage.messages.regenerateFailed"))}},J=e=>{},U=e=>{const a=h.value?w.value:v.value;a&&a.updateParams&&a.updateParams({prompt:e.prompt,negativePrompt:e.negativePrompt,style:e.style,aspectRatio:e.aspectRatio,model:e.model}),h.value&&(d.value.showMobileParams=!0)};return(e,a)=>{const n=W;return F(),se("div",null,[R(K,{ref_key:"workspaceRef",ref:d,"a-li-id":k,"active-tab":p(x),"result-image":p(b),"is-generating":p(m),"show-placeholder":!0,"placeholder-image":"https://gazouya.com/public-assets/tachiemaker/operate-image.webp","placeholder-alt":e.$t("common.placeholderAlt.tachieMaker"),"mobile-top-title":e.$t("common.tabs.tachieMaker"),onTabChange:z,onCopyPrompt:G,onClearResult:$,onRegenerate:B,onSelectImage:U,onProcessingStart:q,onProcessingComplete:H,onProcessingError:N,onHistorySelect:J},{params:ie(()=>[p(x)==="tachie-maker"?(F(),re(Q,{key:0,"is-generating":p(m),"example-prompts":p(me),"initial-model":"gpt_image_2","initial-style":"anime","initial-aspect-ratio":"9:16","form-cache-key":"tachie-maker-v2",onGenerate:A,ref_key:"desktopParamsRef",ref:v},null,8,["is-generating","example-prompts"])):le("",!0)]),_:1},8,["active-tab","result-image","is-generating","placeholder-alt","mobile-top-title"]),R(n,{i18nKey:"tachieMaker.landing"})])}}};export{Pe 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.