import{c as y,Q as F,d as L,v as B,R as w,T as I,o,l,q as s,t as r,I as h,n as d,z as v,s as g,B as k,m as M,A as N,U as D,V,W as j,X as A,Y as H,O as P}from"./index-7887b034.js";import{B as R}from"./button-c19c2fda.js";var E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"};const T=E;function S(a){for(var c=1;c(A("data-v-e045fc24"),a=a(),H(),a),G={class:"container"},U={class:"header"},X=q(()=>s("div",{"flex-placeholder":""},null,-1)),Y={class:"last-record"},J=["onClick"],Z=q(()=>s("a",{href:"https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/90",target:"_blank",class:"last-record",style:{color:"unset"}},"FAQ / 常见问题",-1)),K={class:"content"},ee={key:0,class:"quick-start"},te={key:1,class:"quick-start"},se=["onClick"],ne={class:"quick-start__text line-clamp-1"},ae={class:"quick-start"},oe=["onClick"],le={class:"quick-start__text line-clamp-1"},ce={key:2,class:"quick-start"},re=["onClick"],ie={class:"quick-start__text line-clamp-1"},ue=L({__name:"emptyStartup",props:{tabIdx:null,paneIdx:null},setup(a){const c=a,t=B(),i={local:w("local"),"tag-search":w("imgSearch"),"global-setting":w("globalSettings")},u=(e,p,f=!1)=>{let _;switch(e){case"tag-search-matched-image-grid":return;case"global-setting":case"tag-search":case"empty":_={type:e,name:i[e],key:Date.now()+D()};break;case"local":_={type:e,name:i[e],key:Date.now()+D(),path:p,walkMode:f}}const n=t.tabList[c.tabIdx];n.panes.splice(c.paneIdx,1,_),n.key=_.key},m=I(()=>{var e;return(e=t.lastTabListRecord)==null?void 0:e[1]});console.log(m.value);const O=I(()=>t.autoCompletedDirList.filter(({key:e})=>e==="outdir_txt2img_samples"||e==="outdir_img2img_samples"||e==="outdir_extras_samples"||e==="outdir_save"||e==="outdir_samples")),$=window.parent!==window,x=()=>window.parent.open("/infinite_image_browsing"),z=()=>{V(m.value),t.tabList=m.value.tabs.map(e=>j(e,!0)),t.tabList.forEach(e=>{e.panes.forEach(p=>{typeof p.name!="string"&&(p.name="")})})};return(e,p)=>{var _;const f=R;return o(),l("div",G,[s("div",U,[s("h1",null,r(e.$t("welcome")),1),X,$?(o(),l("div",{key:0,class:"last-record",onClick:x},[s("a",null,r(e.$t("openInNewWindow")),1)])):h("",!0),s("div",Y,[(_=d(m))!=null&&_.tabs.length?(o(),l("a",{key:0,onClick:v(z,["prevent"])},r(e.$t("restoreLastRecord")),9,J)):h("",!0)]),Z]),s("div",K,[d(O).length?(o(),l("div",ee,[s("h2",null,r(e.$t("walkMode")),1),s("ul",null,[(o(!0),l(g,null,k(d(O),n=>(o(),l("li",{key:n.dir,class:"quick-start__item"},[y(f,{onClick:b=>u("local",n.dir,!0),ghost:"",type:"primary",block:""},{default:M(()=>[N(r(n.zh),1)]),_:2},1032,["onClick"])]))),128))])])):h("",!0),d(t).autoCompletedDirList.length?(o(),l("div",te,[s("h2",null,r(e.$t("launchFromQuickMove")),1),s("ul",null,[(o(!0),l(g,null,k(d(t).autoCompletedDirList,n=>(o(),l("li",{key:n.key,class:"quick-start__item",onClick:v(b=>u("local",n.dir),["prevent"])},[s("span",ne,r(n.zh),1)],8,se))),128))])])):h("",!0),s("div",ae,[s("h2",null,r(e.$t("launch")),1),s("ul",null,[(o(!0),l(g,null,k(Object.keys(i),n=>(o(),l("li",{key:n,class:"quick-start__item",onClick:v(b=>u(n),["prevent"])},[s("span",le,r(i[n]),1)],8,oe))),128))])]),d(t).recent.length?(o(),l("div",ce,[s("h2",null,r(e.$t("recent")),1),s("ul",null,[(o(!0),l(g,null,k(d(t).recent,n=>(o(),l("li",{key:n.key,class:"quick-start__item",onClick:v(b=>u("local",n.path),["prevent"])},[y(d(Q),{class:"quick-start__icon"}),s("span",ie,r(n.path),1)],8,re))),128))])])):h("",!0)])])}}});const pe=P(ue,[["__scopeId","data-v-e045fc24"]]);export{pe as default};