PageSourceSearch

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

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

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.