PageSourceSearch

http://01.cn/assets/index-DiPOI1sL.js

js 01.cn collected 2026-10-09 04:30:06 UTC 5,228 bytes, 1 lines download raw bytes

1import{bb as j,bc as x,bD as K,bH as W,bI as C,bq as F,bh as M,eo as U,bJ as X,d as A,bd as Q,dO as Z,c2 as ee,cH as ae,bW as le,bX as te,r as m,ep as se,e as ie,f as S,c5 as oe,au as $,c4 as ne,o as u,c as O,h as c,aE as re,u as l,$ as g,F as de,A as me,aT as ue,G as ce,t as fe,j as I,bf as pe,bg as B,bl as be,g as ve,i as J,x as ge,B as w,aq as he,_ as ye}from"./index-CeZEmzVF.js";import{_ as Ie}from"./ImageList.vue_vue_type_style_index_0_lang-pagXbja1.js";import{b as d,A as ke}from"./constants-DawjRUyr.js";import _e from"./index-BVVa66iK.js";import Se from"./index-JLU53TrC.js";import Oe from"./index-B2QME-UL.js";import we from"./index-DIM7YYul.js";import{M as De}from"./index-D65uAB1p.js";import"./index.vue_vue_type_script_setup_true_lang-D32g_30O.js";import"./index-tPLqUT9I.js";import"./index-NA54OULh.js";import"./ImageDetail-DbWagdel.js";import"./el-drawer-BmoqXeDs.js";import"./el-image-Dz1sCuub.js";import"./ImageCard-DV-mKsJN.js";import"./download-oWiM5xVU.js";import"./el-space-CCOjLT7u.js";const Ee=j({direction:{type:x(String),default:"horizontal"},options:{type:x(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:K,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...W(["ariaLabel"])}),Ve={[C]:i=>F(i)||M(i)||U(i),[X]:i=>F(i)||M(i)||U(i)},Le=A({name:"ElSegmented"}),Ae=A({...Le,props:Ee,emits:Ve,setup(i,{emit:h}){const t=i,s=Q("segmented"),k=Z(),D=ee(),o=ae(),{formItem:f}=le(),{inputId:p,isLabeledByFormItem:_}=te(t,{formItemContext:f}),n=m(null),E=se(),a=ie({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),b=e=>B(e)?e.value:e,V=e=>B(e)?e.label:e,y=e=>!!(o.value||B(e)&&e.disabled),R=e=>t.modelValue===b(e),T=e=>[s.e("item"),s.is("selected",R(e)),s.is("disabled",y(e))],L=()=>
1{if(!n.value)return;const e=n.value.querySelector(".is-selected"),v=n.value.querySelector(".is-selected input");if(!e||!v)return a.width=0,a.height=0,a.translateX=0,a.translateY=0,void(a.focusVisible=!1);const r=e.getBoundingClientRect();a.isInit=!0,t.direction==="vertical"?(a.height=r.height,a.translateY=e.offsetTop):(a.width=r.width,a.translateX=e.offsetLeft);try{a.focusVisible=v.matches(":focus-visible")}catch{}},q=S(()=>[s.b(),s.m(D.value),s.is("block",t.block)]),P=S(()=>({width:t.direction==="vertical"?"100%":`${a.width}px`,height:t.direction==="vertical"?`${a.height}px`:"100%",transform:t.direction==="vertical"?`translateY(${a.translateY}px)`:`translateX(${a.translateX}px)`,display:a.isInit?"block":"none"})),z=S(()=>{return[s.e("item-selected"),s.is("disabled",y((e=t.modelValue,t.options.find(v=>b(v)===e)))),s.is("focus-visible",a.focusVisible)];var e}),G=S(()=>t.name||k.value);return oe(n,L),$(E,L),$(()=>t.modelValue,()=>{var e;L(),t.validateEvent&&((e=f==null?void 0:f.validate)==null||e.call(f,"change").catch(v=>ne()))},{flush:"post"}),(e,v)=>e.options.length?(u(),O("div",{key:0,id:l(p),ref_key:"segmentedRef",ref:n,class:g(l(q)),role:"radiogroup","aria-label":l(_)?void 0:e.ariaLabel||"segmented","aria-labelledby":l(_)?l(f).labelId:void 0},[c("div",{class:g([l(s).e("group"),l(s).m(t.direction)])},[c("div",{style:re(l(P)),class:g(l(z))},null,6),(u(!0),O(de,null,me(e.options,(r,N)=>(u(),O("label",{key:N,class:g(T(r))},[c("input",{class:g(l(s).e("item-input")),type:"radio",name:l(G),disabled:y(r),checked:R(r),onChange:Me=>(H=>{const Y=b(H);h(C,Y),h(X,Y)})(r)},null,42,["name","disabled","checked","onChange"]),c("div",{class:g(l(s).e("item-label"))},[ue(e.$slots,"default",{item:r},()=>[ce(fe(V(r)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):I("v-if",!0)}}),Be=be(pe(Ae,[["__file","segmented.vue"]])),Re={class:"ai-image"},Ne={class:"left"},Ye={class:"segmented"},xe={class:"modal-switch-container"},Ce={class:"main"},Fe=ye(A({__name:"index",setup(i){const h=m(),t=m(),s=m(),k=m(),D=m(),o=m("common"),f=[{label:"\u901A\u7528",value:"common"},{label:"DALL3 \u7ED8\u753B",value:d.OPENAI},{label:"MJ \u7ED8\u753B",value:d.MIDJOURNEY},{label:"SD \u7ED8\u56FE",value:d.STABLE_DIFFUSION}],p=m([]),_=async a=>{},n=async a=>{await h.value.getImageList()},E=async a=>{o.value=a.platform,await he(),a.platform===d.MIDJOURNEY?s.value.settingValues(a):a.platform===d.OPENAI?t.value.settingValues(a):a.platform===d.STABLE_DIFFUSION&&k.value.settingValues(a)};return ve(async()=>{p.value=await De.getModelSimpleList(ke.IMAGE)}),(a,b)=>{const V=Be;return u(),O("div",Re,[c("div",Ne,[c("div",Ye,[J(V,{modelValue:l(o),"onUpdate:modelValue":b[0]||(b[0]=y=>ge(o)?o.value=y:null),options:f},null,8,["modelValue"])]),c("div",xe,[l(o)==="common"?(u(),w(we,{key:0,ref_key:"commonRef",ref:D,models:l(p),onOnDrawComplete:n},null,8,["models"])):I("",!0),l(o)===l(d).OPENAI?(u(),w(_e,{key:1,ref_key:"dall3Ref",ref:t,models:l(p),onOnDrawStart:_,onOnDrawComplete:n},null,8,["models"])):I("",!0),l(o)===l(d).MIDJOURNEY?(u(),w(Se,{key:2,ref_key:"midjourneyRef",ref:s,models:l(p)},null,8,["models"])):I("",!0),l(o)===l(d).STABLE_DIFFUSION?(u(),w(Oe,{key:3,ref_key:"stableDiffusionRef",ref:k,models:l(p),onOnDrawComplete:n},null,8,["models"])):I("",!0)])]),c("div",Ce,[J(Ie,{ref_key:"imageListRef",ref:h,onOnRegeneration:E},null,512)])])}}}),[["__scopeId","data-v-bc6d99c7"]]);export{Fe 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.