4 lines
36 KiB
JavaScript
4 lines
36 KiB
JavaScript
import{bW as mt,n as ge,bd as at,c,A as ce,bX as X,y as Q,z as T,m as ie,x as gt,bY as Ue,bZ as ht,bL as Me,R as pe,ai as se,b_ as yt,r as K,N as Pe,b$ as ot,G as qe,ad as ae,c0 as _t,c1 as wt,V as C,ac as bt,c2 as Se,O as ye,K as kt,c3 as Ot,J as me,c4 as Et,c5 as Lt,bV as $t,c6 as Pt,c7 as St,q as Fe,c8 as Ft,c9 as Ie,o as st,ax as It,$ as De,ak as xt,E as Z,ca as Ct,cb as Mt,d as it,cc as Dt,cd as Tt,I as Ge,S as k,T as x,a2 as g,Y as B,U as A,a0 as oe,a1 as b,ce as At,X as Y,W as E,a6 as ve,ae as Xe,a5 as zt,a4 as _e,cf as Oe,a3 as jt,aj as Nt,cg as Wt,ch as Bt,M as Ht,ci as Vt,cj as Ut,ck as qt,aL as Gt,aM as Xt,Z as rt}from"./index-a33b95f7.js";import{u as he,e as xe,g as W,f as Ye,h as te,r as Yt,t as Ee,i as Kt,s as Ke,j as we,_ as Jt}from"./FileItem-55f284ee.js";import{M as ct,c as ut,m as Ce,b as Zt,d as Qt,e as Rt}from"./functionalCallableComp-9da3b0bc.js";import{C as en,g as tn,_ as nn}from"./shortcut-d49aad65.js";/* empty css */import{D as ln}from"./index-b94508ba.js";var an="Expected a function";function on(e,t,l){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(an);return mt(l)&&(n="leading"in l?!!l.leading:n,i="trailing"in l?!!l.trailing:i),ge(e,t,{leading:n,maxWait:t,trailing:i})}const re=(...e)=>{document.addEventListener(...e),at(()=>document.removeEventListener(...e))};var sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const rn=sn;function Je(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(l).filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable}))),n.forEach(function(i){cn(e,i,l[i])})}return e}function cn(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var Te=function(t,l){var n=Je({},t,l.attrs);return c(ce,Je({},n,{icon:rn}),null)};Te.displayName="ArrowsAltOutlined";Te.inheritAttrs=!1;const un=Te;var dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};const fn=dn;function Ze(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(l).filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable}))),n.forEach(function(i){vn(e,i,l[i])})}return e}function vn(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var Ae=function(t,l){var n=Ze({},t,l.attrs);return c(ce,Ze({},n,{icon:fn}),null)};Ae.displayName="DragOutlined";Ae.inheritAttrs=!1;const pn=Ae;var mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};const gn=mn;function Qe(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(l).filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable}))),n.forEach(function(i){hn(e,i,l[i])})}return e}function hn(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var ze=function(t,l){var n=Qe({},t,l.attrs);return c(ce,Qe({},n,{icon:gn}),null)};ze.displayName="FullscreenExitOutlined";ze.inheritAttrs=!1;const yn=ze;var _n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};const wn=_n;function Re(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(l).filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable}))),n.forEach(function(i){bn(e,i,l[i])})}return e}function bn(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var je=function(t,l){var n=Re({},t,l.attrs);return c(ce,Re({},n,{icon:wn}),null)};je.displayName="FullscreenOutlined";je.inheritAttrs=!1;const kn=je;var On={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M603.3 327.5l-246 178a7.95 7.95 0 000 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"left-circle",theme:"outlined"};const En=On;function et(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(l).filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable}))),n.forEach(function(i){Ln(e,i,l[i])})}return e}function Ln(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var Ne=function(t,l){var n=et({},t,l.attrs);return c(ce,et({},n,{icon:En}),null)};Ne.displayName="LeftCircleOutlined";Ne.inheritAttrs=!1;const El=Ne;var $n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M666.7 505.5l-246-178A8 8 0 00408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"right-circle",theme:"outlined"};const Pn=$n;function tt(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(l).filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable}))),n.forEach(function(i){Sn(e,i,l[i])})}return e}function Sn(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var We=function(t,l){var n=tt({},t,l.attrs);return c(ce,tt({},n,{icon:Pn}),null)};We.displayName="RightCircleOutlined";We.inheritAttrs=!1;const Ll=We,Fn="/infinite_image_browsing/fe-static/assets/fullscreen-7f54b926.svg",be=()=>{const e=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(t=>t.style.display!=="none");e?(console.log("closeImageFullscreenPreview success"),In(e)):console.log("closeImageFullscreenPreview not found")};function In(e){if(!(e instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:e});e.dispatchEvent(t)}const xn=(e,t)=>{const l=t.querySelector(`.idx-${e} .ant-image-img`);l?l.click():console.log("openImageFullscreenPreview error: not found",e,t)};function $l(e){const{previewIdx:t,eventEmitter:l,canLoadNext:n,previewing:i,sortedFiles:u,scroller:S,props:M}=he().toRefs(),{state:F}=he();let w=null;const y=(_,d)=>{var r;i.value=_,w!=null&&!_&&d&&((r=S.value)==null||r.scrollToItem(w),w=null)},I=()=>{if(!$("next")){if(e!=null&&e.loadNext)return e.loadNext();M.value.mode==="walk"&&n.value&&(Q.info(T("loadingNextFolder")),l.value.emit("loadNextDir",!0))}};re("keydown",_=>{var d;if(i.value){let r=t.value;if(["ArrowDown","ArrowRight"].includes(_.key))for(r++;u.value[r]&&!X(u.value[r].name);)r++;else if(["ArrowUp","ArrowLeft"].includes(_.key))for(r--;u.value[r]&&!X(u.value[r].name);)r--;if(X((d=u.value[r])==null?void 0:d.name)??""){t.value=r;const P=S.value;P&&!(r>=P.$_startIndex&&r<=P.$_endIndex)&&(w=r)}I()}});const h=_=>{var r;let d=t.value;if(_==="next")for(d++;u.value[d]&&!X(u.value[d].name);)d++;else if(_==="prev")for(d--;u.value[d]&&!X(u.value[d].name);)d--;if(X((r=u.value[d])==null?void 0:r.name)??""){t.value=d;const P=S.value;P&&!(d>=P.$_startIndex&&d<=P.$_endIndex)&&(w=d)}I()},$=_=>{var r;let d=t.value;if(_==="next")for(d++;u.value[d]&&!X(u.value[d].name);)d++;else if(_==="prev")for(d--;u.value[d]&&!X(u.value[d].name);)d--;return X((r=u.value[d])==null?void 0:r.name)};return xe("removeFiles",async()=>{i.value&&!F.sortedFiles[t.value]&&be()}),{previewIdx:t,onPreviewVisibleChange:y,previewing:i,previewImgMove:h,canPreview:$}}function Le(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!yt(e)}function Pl(){const{currLocation:e,sortedFiles:t,currPage:l,multiSelectedIdxs:n,eventEmitter:i,walker:u}=he().toRefs(),S=()=>{n.value=[]};return re("click",()=>{W.keepMultiSelect||S()}),re("blur",()=>{W.keepMultiSelect||S()}),ie(l,S),{onFileDragStart:(y,I)=>{const h=gt(t.value[I]);Ye.fileDragging=!0,console.log("onFileDragStart set drag file ",y,I,h);const $=[h];let _=h.type==="dir";if(n.value.includes(I)){const r=n.value.map(P=>t.value[P]);$.push(...r),_=r.some(P=>P.type==="dir")}const d={includeDir:_,loc:e.value||"search-result",path:Ue($,"fullpath").map(r=>r.fullpath),nodes:Ue($,"fullpath"),__id:"FileTransferData"};y.dataTransfer.setData("text/plain",JSON.stringify(d))},onDrop:async y=>{if(u.value)return;const I=ht(y);if(!I)return;const h=e.value;if(I.loc===h)return;const $=Me(),_=async()=>$.pushAction(async()=>{await ut(I.path,h),i.value.emit("refresh"),pe.destroyAll()}),d=()=>$.pushAction(async()=>{await Ce(I.path,h),te.emit("removeFiles",{paths:I.path,loc:I.loc}),i.value.emit("refresh"),pe.destroyAll()});pe.confirm({title:T("confirm")+"?",width:"60vw",content:()=>{let r,P,D;return c("div",null,[c("div",null,[`${T("moveSelectedFilesTo")} ${h}`,c("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[I.path.map(L=>c("li",null,[L.split(/[/\\]/).pop()]))])]),c(ct,null,null),c("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[c(se,{onClick:pe.destroyAll},Le(r=T("cancel"))?r:{default:()=>[r]}),c(se,{type:"primary",loading:!$.isIdle,onClick:_},Le(P=T("copy"))?P:{default:()=>[P]}),c(se,{type:"primary",loading:!$.isIdle,onClick:d},Le(D=T("move"))?D:{default:()=>[D]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:n,onFileDragEnd:()=>{Ye.fileDragging=!1}}}function Sl({openNext:e}){const t=K(!1),l=K(""),{sortedFiles:n,previewIdx:i,multiSelectedIdxs:u,stack:S,currLocation:M,spinning:F,previewing:w,stackViewEl:y,eventEmitter:I,props:h,deletedFiles:$}=he().toRefs(),_=qe;xe("removeFiles",({paths:L,loc:o})=>{_(o)!==_(M.value)||!Pe(S.value)||(L.forEach(v=>$.value.add(v)),L.filter(X).forEach(v=>$.value.add(v.replace(/\.\w+$/,".txt"))))}),xe("addFiles",({files:L,loc:o})=>{if(_(o)!==_(M.value))return;const m=Pe(S.value);m&&m.files.unshift(...L)});const d=Me(),r=async(L,o,m)=>{i.value=m,W.fullscreenPreviewInitialUrl=ae(o);const v=u.value.indexOf(m);if(L.shiftKey){if(v!==-1)u.value.splice(v,1);else{u.value.push(m),u.value.sort((z,V)=>z-V);const N=u.value[0],q=u.value[u.value.length-1];u.value=Yt(N,q+1)}L.stopPropagation()}else L.ctrlKey||L.metaKey?(v!==-1?u.value.splice(v,1):u.value.push(m),L.stopPropagation()):await e(o)},P=async(L,o,m)=>{var R,ne,de;const v=ae(o),N=M.value,q={IIB_container_id:parent.IIB_container_id},z=()=>{let f=[];return u.value.includes(m)?f=u.value.map(p=>n.value[p]):f.push(o),f},V=async f=>{if(!F.value)try{F.value=!0,await Pt(o.fullpath),we.postMessage({...q,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await St(),we.postMessage({...q,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${f}`})}catch(p){console.error(p),Q.error("发送图像失败,请携带console的错误消息找开发者")}finally{F.value=!1}},H=`${L.key}`;if(H.startsWith("toggle-tag-")){const f=+H.split("toggle-tag-")[1],{is_remove:p}=await _t({tag_id:f,img_path:o.fullpath}),a=(ne=(R=W.conf)==null?void 0:R.all_custom_tags.find(s=>s.id===f))==null?void 0:ne.name;await Ee.refreshTags([o.fullpath]),Q.success(T(p?"removedTagFromImage":"addedTagToImage",{tag:a}));return}else if(H.startsWith("batch-add-tag-")||H.startsWith("batch-remove-tag-")){const f=+H.split("-tag-")[1],p=H.includes("add")?"add":"remove",a=z().map(s=>s.fullpath);await wt({tag_id:f,img_paths:a,action:p}),await Ee.refreshTags(a),Q.success(T(p==="add"?"addCompleted":"removeCompleted"));return}else if(H.startsWith("copy-to-")){const f=H.split("copy-to-")[1],p=z(),a=p.map(s=>s.fullpath);await ut(a,f,!0),te.emit("addFiles",{files:p,loc:f}),Q.success(T("copySuccess"));return}else if(H.startsWith("move-to-")){const f=H.split("move-to-")[1],p=z(),a=p.map(s=>s.fullpath);await Ce(a,f,!0),te.emit("removeFiles",{paths:a,loc:M.value}),te.emit("addFiles",{files:p,loc:f}),Q.success(T("moveSuccess"));return}switch(L.key){case"previewInNewWindow":return window.open(v);case"copyFilePath":return me(o.fullpath);case"saveSelectedAsJson":return $t(z());case"openWithDefaultApp":return Lt(o.fullpath);case"download":{const f=z();Et(f.map(p=>ae(p,!0)));break}case"copyPreviewUrl":return me(parent.document.location.origin+v);case"rename":{let f=await Zt(o.fullpath);f=qe(f);const p=Ee.tagMap;p.set(f,p.get(o.fullpath)??[]),p.delete(o.fullpath),o.fullpath=f,o.name=f.split(/[\\/]/).pop()??"";return}case"send2txt2img":return V("txt2img");case"send2img2img":return V("img2img");case"send2inpaint":return V("inpaint");case"send2extras":return V("extras");case"send2savedDir":{const f=W.quickMovePaths.find(s=>s.key==="outdir_save");if(!f)return Q.error(T("unknownSavedDir"));const p=Ot(f.dir,(de=W.conf)==null?void 0:de.sd_cwd),a=z();await Ce(a.map(s=>s.fullpath),p,!0),te.emit("removeFiles",{paths:a.map(s=>s.fullpath),loc:M.value}),te.emit("addFiles",{files:a,loc:p});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const f=L.key.split("-")[1];we.postMessage({...q,event:"send_to_control_net",type:f,url:ae(o)});break}case"send2outpaint":{l.value=await d.pushAction(()=>Se(o.fullpath)).res;const[f,p]=(l.value||"").split(`
|
||
`);we.postMessage({...q,event:"send_to_outpaint",url:ae(o),prompt:f,negPrompt:p.slice(17)});break}case"openWithWalkMode":{Ke.set(N,S.value);const f=W.tabList[h.value.tabIdx],p={type:"local",key:ye(),path:o.fullpath,name:T("local"),stackKey:N,mode:"walk"};f.panes.push(p),f.key=p.key;break}case"openFileLocationInNewTab":case"openInNewTab":{const f=W.tabList[h.value.tabIdx],p={type:"local",key:ye(),path:L.key==="openInNewTab"?o.fullpath:kt(o.fullpath),name:T("local"),mode:"scanned-fixed"};f.panes.push(p),f.key=p.key;break}case"openOnTheRight":{Ke.set(N,S.value);let f=W.tabList[h.value.tabIdx+1];f||(f={panes:[],key:"",id:ye()},W.tabList[h.value.tabIdx+1]=f);const p={type:"local",key:ye(),path:o.fullpath,name:T("local"),stackKey:N};f.panes.push(p),f.key=p.key;break}case"send2BatchDownload":{Kt.addFiles(z());break}case"viewGenInfo":{t.value=!0,l.value=await d.pushAction(()=>Se(o.fullpath)).res;break}case"openWithLocalFileBrowser":{await bt(o.fullpath);break}case"deleteFiles":{const f=z(),p=async()=>{const a=f.map(s=>s.fullpath);if(await Qt(a),Q.success(T("deleteSuccess")),w.value){const s=ae(o)===W.fullscreenPreviewInitialUrl,ee=i.value===n.value.length-1;if((s||ee)&&(be(),await Fe(100),s&&n.value.length>1)){const J=i.value;Fe(0).then(()=>xn(J,y.value))}}te.emit("removeFiles",{paths:a,loc:M.value})};if(f.length===1&&W.ignoredConfirmActions.deleteOneOnly)return p();await new Promise(a=>{pe.confirm({title:T("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>c("div",null,[c("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[f.map(s=>c("li",null,[s.fullpath.split(/[/\\]/).pop()]))]),c(ct,null,null),c(en,{checked:W.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":s=>W.ignoredConfirmActions.deleteOneOnly=s},{default:()=>[T("deleteOneOnlySkipConfirm"),C(" ("),T("resetOnGlobalSettingsPage"),C(")")]})]),async onOk(){await p(),a()}})});break}}return{}},{isOutside:D}=ot(y);return re("keydown",L=>{var m,v,N;const o=tn(L);if(w.value){o==="Esc"&&be();const q=(m=Object.entries(W.shortcut).find(z=>z[1]===o&&z[1]))==null?void 0:m[0];if(q){L.stopPropagation(),L.preventDefault();const z=i.value,V=n.value[z];switch(q){case"delete":return P({key:"deleteFiles"},V,z);case"download":return P({key:"download"},V,z);default:{const H=(v=/^toggle_tag_(.*)$/.exec(q))==null?void 0:v[1],R=(N=W.conf)==null?void 0:N.all_custom_tags.find(ne=>ne.name===H);return R?P({key:`toggle-tag-${R.id}`},V,z):void 0}}}}else!D.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(o)&&(L.preventDefault(),L.stopPropagation(),I.value.emit("selectAll"))}),{onFileItemClick:r,onContextMenuClick:P,showGenInfo:t,imageGenInfo:l,q:d}}const $e=new Map,Fl=()=>{const{useEventListen:e,sortedFiles:t,getViewableAreaFiles:l}=he().toRefs(),n=K(W.defaultChangeIndchecked),i=K(W.defaultSeedChangeChecked),u=async()=>{if(await Fe(100),!n.value)return;const F=l.value().filter(y=>X(y.fullpath)&&!y.gen_info_obj);if(!F.length)return;const w=await Ft(F.map(y=>y.fullpath).filter(y=>!$e.has(y)));F.forEach(y=>{const I=w[y.fullpath]||$e.get(y.fullpath)||"";$e.set(y.fullpath,I),y.gen_info_obj=Ie(I),y.gen_info_raw=I})};e.value("viewableAreaFilesChange",u);const S=F=>{const w=t.value;return[F,i.value,w[F-1],w[F],w[F+1]]};function M(F,w,y,I){const h={diff:{},empty:!0,ownFile:"",otherFile:""};if(w+y<0||w+y>=t.value.length||t.value[w]==null||!("gen_info_obj"in t.value[w])||!("gen_info_obj"in t.value[w+y]))return h;const $=F,_=t.value[w+y].gen_info_obj;if(_==null)return h;const d=["hashes","resources"];h.diff={},h.ownFile=I.name,h.otherFile=t.value[w+y].name,h.empty=!1,i.value||d.push("seed");for(const r in $)if(!d.includes(r)){if(!(r in _)){h.diff[r]="+";continue}if($[r]!=_[r])if(r.includes("rompt")&&$[r]!=""&&_[r]!=""){const P=$[r].split(","),D=_[r].split(",");let L=0;for(const o in P)P[o]!=D[o]&&L++;h.diff[r]=L}else h.diff[r]=[$[r],_[r]]}return h}return{getGenDiff:M,changeIndchecked:n,seedChangeChecked:i,getRawGenParams:()=>u(),getGenDiffWatchDep:S}};function Cn(e,t,l,n){let i=0,u=0,S=typeof(n==null?void 0:n.width)=="number"?n.width:0,M=typeof(n==null?void 0:n.height)=="number"?n.height:0,F=typeof(n==null?void 0:n.left)=="number"?n.left:0,w=typeof(n==null?void 0:n.top)=="number"?n.top:0,y=!1;const I=o=>{o.stopPropagation(),o.preventDefault(),!(!e.value||!t.value)&&(i=o instanceof MouseEvent?o.clientX:o.touches[0].clientX,u=o instanceof MouseEvent?o.clientY:o.touches[0].clientY,S=e.value.offsetWidth,M=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",h),document.documentElement.addEventListener("touchmove",h),document.documentElement.addEventListener("mouseup",$),document.documentElement.addEventListener("touchend",$))},h=o=>{if(!e.value||!t.value)return;let m=S+((o instanceof MouseEvent?o.clientX:o.touches[0].clientX)-i),v=M+((o instanceof MouseEvent?o.clientY:o.touches[0].clientY)-u);e.value.offsetLeft+m>window.innerWidth&&(m=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+v>window.innerHeight&&(v=window.innerHeight-e.value.offsetTop),e.value.style.width=`${m}px`,e.value.style.height=`${v}px`,n!=null&&n.onResize&&n.onResize(m,v)},$=()=>{document.documentElement.removeEventListener("mousemove",h),document.documentElement.removeEventListener("touchmove",h),document.documentElement.removeEventListener("mouseup",$),document.documentElement.removeEventListener("touchend",$)},_=o=>{o.stopPropagation(),o.preventDefault(),!(!e.value||!l.value)&&(y=!0,F=e.value.offsetLeft,w=e.value.offsetTop,i=o instanceof MouseEvent?o.clientX:o.touches[0].clientX,u=o instanceof MouseEvent?o.clientY:o.touches[0].clientY,document.documentElement.addEventListener("mousemove",d),document.documentElement.addEventListener("touchmove",d),document.documentElement.addEventListener("mouseup",r),document.documentElement.addEventListener("touchend",r))},d=o=>{if(!e.value||!l.value||!y)return;const m=F+((o instanceof MouseEvent?o.clientX:o.touches[0].clientX)-i),v=w+((o instanceof MouseEvent?o.clientY:o.touches[0].clientY)-u);m<0?e.value.style.left="0px":m+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${m}px`,v<0?e.value.style.top="0px":v+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${v}px`,n!=null&&n.onDrag&&n.onDrag(m,v)},r=()=>{y=!1,document.documentElement.removeEventListener("mousemove",d),document.documentElement.removeEventListener("touchmove",d),document.documentElement.removeEventListener("mouseup",r),document.documentElement.removeEventListener("touchend",r)},P=()=>{if(!e.value||!t.value)return;let o=e.value.offsetLeft,m=e.value.offsetTop,v=e.value.offsetWidth,N=e.value.offsetHeight;o+v>window.innerWidth&&(o=window.innerWidth-v,o<0&&(o=0,v=window.innerWidth)),m+N>window.innerHeight&&(m=window.innerHeight-N,m<0&&(m=0,N=window.innerHeight)),e.value.style.left=`${o}px`,e.value.style.top=`${m}px`,e.value.style.width=`${v}px`,e.value.style.height=`${N}px`},D=()=>{!e.value||!n||(typeof n.width=="number"&&(e.value.style.width=`${n.width}px`),typeof n.height=="number"&&(e.value.style.height=`${n.height}px`),typeof n.left=="number"&&(e.value.style.left=`${n.left}px`),typeof n.top=="number"&&(e.value.style.top=`${n.top}px`),P(),window.addEventListener("resize",P))},L=()=>{document.documentElement.removeEventListener("mousemove",h),document.documentElement.removeEventListener("touchmove",h),document.documentElement.removeEventListener("mouseup",$),document.documentElement.removeEventListener("touchend",$),document.documentElement.removeEventListener("mousemove",d),document.documentElement.removeEventListener("touchmove",d),document.documentElement.removeEventListener("mouseup",r),document.documentElement.removeEventListener("touchend",r),window.removeEventListener("resize",P)};return st(D),at(L),ie(()=>n==null?void 0:n.disbaled,async o=>{await It(),o!==void 0&&(o?L():D())}),ie(()=>[e.value,t.value,l.value],([o,m,v])=>{o&&m&&(m.addEventListener("mousedown",I),m.addEventListener("touchstart",I)),o&&v&&(v.addEventListener("mousedown",_),v.addEventListener("touchstart",_))}),{handleResizeMouseDown:I,handleDragMouseDown:_}}let nt=null;const Mn=()=>{var M,F;const e=De(),t=xt(nt??((F=(M=e.conf)==null?void 0:M.app_fe_setting)==null?void 0:F.fullscreen_layout)??{enable:!1,panelWidth:384,alwaysOn:!0}),l="--iib-lr-layout-info-panel-width",n=Z(()=>t.alwaysOn&&t.enable?t.panelWidth:0);ie(t,()=>{lt(t,l,n),Dn(t),nt=t},{deep:!0}),st(()=>lt(t,l,n));const{enable:i,panelWidth:u,alwaysOn:S}=Ct(t);return{state:t,isLeftRightLayout:i,panelwidtrhStyleVarName:l,lrLayoutInfoPanelWidth:u,lrMenuAlwaysOn:S}},Dn=ge(e=>Mt("fullscreen_layout",e),300),lt=ge((e,t,l)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${l.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300),ue=e=>(Gt("data-v-a9e90b6a"),e=e(),Xt(),e),Tn={key:0},An={class:"container"},zn={class:"action-bar"},jn=["title"],Nn=["title"],Wn=["title"],Bn=["src"],Hn={key:0,class:"icon",style:{cursor:"pointer"}},Vn={key:2,"flex-placeholder":""},Un={key:3,class:"action-bar"},qn={key:0,class:"gen-info"},Gn={class:"info-tags"},Xn={class:"name"},Yn={class:"value"},Kn={key:0,class:"tags-container"},Jn=["onClick"],Zn={class:"lr-layout-control"},Qn={class:"ctrl-item"},Rn={class:"ctrl-item"},el={class:"ctrl-item"},tl=ue(()=>A("br",null,null,-1)),nl=ue(()=>A("h3",null,"Prompt",-1)),ll=["innerHTML"],al=ue(()=>A("br",null,null,-1)),ol=ue(()=>A("h3",null,"Negative Prompt",-1)),sl=["innerHTML"],il=ue(()=>A("br",null,null,-1)),rl=ue(()=>A("h3",null,"Params",-1)),cl={style:{"font-weight":"600","text-transform":"capitalize"}},ul=["onDblclick"],dl=["onDblclick"],fl=["title"],vl=it({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const l=e;Dt(a=>({edcc2c4a:g(m)?0:"46px","95805fe4":g(o)+"px","5cbd8d52":`calc(100vw - ${g(o)}px)`}));const n=De(),i=Tt(),u=K(),S=Z(()=>i.tagMap.get(l.file.fullpath)??[]),M=K(""),F=Me(),w=K(""),y=Z(()=>w.value.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")),I=Z(()=>y.value.split(`
|
||
`)),h=Z(()=>Ie(y.value)),$=Z(()=>{let a=Ie(y.value);return delete a.prompt,delete a.negativePrompt,a});ie(()=>{var a;return(a=l==null?void 0:l.file)==null?void 0:a.fullpath},async a=>{a&&(F.tasks.forEach(s=>s.cancel()),F.pushAction(()=>Se(a)).res.then(s=>{w.value=s}))},{immediate:!0});const _=Ge("iib@fullScreenContextMenu.prompt-tab","structedData"),d=K(),r=K(),P={left:100,top:100,width:512,height:384,expanded:!0},D=Ge("fullScreenContextMenu.vue-drag",P);D.value&&(D.value.left<0||D.value.top<0)&&(D.value={...P});const{isLeftRightLayout:L,lrLayoutInfoPanelWidth:o,lrMenuAlwaysOn:m}=Mn(),v=L;Cn(u,d,r,{disbaled:v,...D.value,onDrag:ge(function(a,s){D.value={...D.value,left:a,top:s}},300),onResize:ge(function(a,s){D.value={...D.value,width:a,height:s}},300)});const N=K(!1),{isOutside:q}=ot(Z(()=>!v.value||m.value?null:N.value?u.value:Pe(document.querySelectorAll(".iib-tab-edge-trigger"))));ie(q,on(a=>{N.value=!a},300));function z(a){return a.parentNode}function V(a){if(!a)return"";const s=[],ee="BREAK",J=a.replace(/\sBREAK\s/g,","+ee+",").split(/[\n,]+/).map(G=>G.trim()).filter(G=>G);let j=!1;for(let G=0;G<J.length;G++){if(J[G]===ee){s.push('<br><span class="tag" style="color:var(--zp-secondary)">BREAK</span><br>');continue}const le=J[G];j||(j=le.includes("("));const fe=["tag"];j&&fe.push("has-parentheses"),le.length<32&&fe.push("short-tag"),s.push(`<span class="${fe.join(" ")}">${le}</span>`),j&&(j=!le.includes(")"))}return s.join(n.showCommaInInfoPanel?",":" ")}re("load",a=>{const s=a.target;s.className==="ant-image-preview-img"&&(M.value=`${s.naturalWidth} x ${s.naturalHeight}`)},{capture:!0});const H=Z(()=>{const a=[{name:T("fileName"),val:l.file.name},{name:T("fileSize"),val:l.file.size}];return M.value&&a.push({name:T("resolution"),val:M.value}),a}),R=()=>{const a="Negative prompt:",s=w.value.includes(a)?w.value.split(a)[0]:I.value[0]??"";me(Oe(s.trim()))},ne=()=>document.body.requestFullscreen(),de=a=>{me(typeof a=="object"?JSON.stringify(a,null,4):a)},f=a=>{a.key.startsWith("Arrow")?(a.stopPropagation(),a.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",a))):a.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};re("dblclick",a=>{var s;((s=a.target)==null?void 0:s.className)==="ant-image-preview-img"&&be()});const p=Z(()=>v.value||D.value.expanded);return(a,s)=>{var Ve;const ee=ln,J=se,j=Nt,G=Wt,le=Bt,fe=Ht,dt=se,Be=nn,ft=Rt,vt=Vt,He=Ut,pt=qt;return k(),x("div",{ref_key:"el",ref:u,class:Xe(["full-screen-menu",{"unset-size":!g(D).expanded,lr:g(v),"always-on":g(m),"mouse-in":N.value}]),onWheelCapture:s[9]||(s[9]=jt(()=>{},["stop"])),onKeydownCapture:f},[g(v)?(k(),x("div",Tn)):B("",!0),A("div",An,[A("div",zn,[g(v)?B("",!0):(k(),x("div",{key:0,ref_key:"dragHandle",ref:r,class:"icon",style:{cursor:"grab"},title:g(T)("dragToMovePanel")},[c(g(pn))],8,jn)),g(v)?B("",!0):(k(),x("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:s[0]||(s[0]=O=>g(D).expanded=!g(D).expanded),title:g(T)("clickToToggleMaximizeMinimize")},[p.value?(k(),oe(g(yn),{key:0})):(k(),oe(g(kn),{key:1}))],8,Nn)),A("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:g(T)("fullscreenview"),onClick:ne},[A("img",{src:g(Fn),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,Bn)],8,Wn),c(ee,{"get-popup-container":z},{overlay:b(()=>[c(Jt,{file:a.file,idx:a.idx,"selected-tag":S.value,onContextMenuClick:s[1]||(s[1]=(O,U,ke)=>t("contextMenuClick",O,U,ke))},null,8,["file","idx","selected-tag"])]),default:b(()=>[g(D).expanded?B("",!0):(k(),x("div",Hn,[c(g(At))]))]),_:1}),p.value?(k(),x("div",Vn)):B("",!0),p.value?(k(),x("div",Un,[c(ee,{trigger:["hover"],"get-popup-container":z},{overlay:b(()=>[c(fe,{onClick:s[2]||(s[2]=O=>t("contextMenuClick",O,a.file,a.idx))},{default:b(()=>{var O;return[((O=g(n).conf)==null?void 0:O.launch_mode)!=="server"?(k(),x(Y,{key:0},[c(j,{key:"send2txt2img"},{default:b(()=>[C(E(a.$t("sendToTxt2img")),1)]),_:1}),c(j,{key:"send2img2img"},{default:b(()=>[C(E(a.$t("sendToImg2img")),1)]),_:1}),c(j,{key:"send2inpaint"},{default:b(()=>[C(E(a.$t("sendToInpaint")),1)]),_:1}),c(j,{key:"send2extras"},{default:b(()=>[C(E(a.$t("sendToExtraFeatures")),1)]),_:1}),c(G,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:b(()=>[c(j,{key:"send2controlnet-txt2img"},{default:b(()=>[C("ControlNet - "+E(a.$t("t2i")),1)]),_:1}),c(j,{key:"send2controlnet-img2img"},{default:b(()=>[C("ControlNet - "+E(a.$t("i2i")),1)]),_:1}),c(j,{key:"send2outpaint"},{default:b(()=>[C("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):B("",!0),c(j,{key:"send2BatchDownload"},{default:b(()=>[C(E(a.$t("sendToBatchDownload")),1)]),_:1}),c(G,{key:"copy2target",title:a.$t("copyTo")},{default:b(()=>[(k(!0),x(Y,null,ve(g(n).quickMovePaths,U=>(k(),oe(j,{key:`copy-to-${U.dir}`},{default:b(()=>[C(E(U.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),c(G,{key:"move2target",title:a.$t("moveTo")},{default:b(()=>[(k(!0),x(Y,null,ve(g(n).quickMovePaths,U=>(k(),oe(j,{key:`move-to-${U.dir}`},{default:b(()=>[C(E(U.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),c(le),c(j,{key:"deleteFiles"},{default:b(()=>[C(E(a.$t("deleteSelected")),1)]),_:1}),c(j,{key:"previewInNewWindow"},{default:b(()=>[C(E(a.$t("previewInNewWindow")),1)]),_:1}),c(j,{key:"copyPreviewUrl"},{default:b(()=>[C(E(a.$t("copySourceFilePreviewLink")),1)]),_:1}),c(j,{key:"copyFilePath"},{default:b(()=>[C(E(a.$t("copyFilePath")),1)]),_:1})]}),_:1})]),default:b(()=>[c(J,null,{default:b(()=>[C(E(g(T)("openContextMenu")),1)]),_:1})]),_:1}),c(dt,{onClick:s[3]||(s[3]=O=>t("contextMenuClick",{key:"download"},l.file,l.idx))},{default:b(()=>[C(E(a.$t("download")),1)]),_:1}),w.value?(k(),oe(J,{key:0,onClick:s[4]||(s[4]=O=>g(me)(w.value))},{default:b(()=>[C(E(a.$t("copyPrompt")),1)]),_:1})):B("",!0),w.value?(k(),oe(J,{key:1,onClick:R},{default:b(()=>[C(E(a.$t("copyPositivePrompt")),1)]),_:1})):B("",!0)])):B("",!0)]),p.value?(k(),x("div",qn,[A("div",Gn,[(k(!0),x(Y,null,ve(H.value,O=>(k(),x("span",{class:"info-tag",key:O.name},[A("span",Xn,E(O.name),1),A("span",Yn,E(O.val),1)]))),128))]),(Ve=g(n).conf)!=null&&Ve.all_custom_tags?(k(),x("div",Kn,[(k(!0),x(Y,null,ve(g(n).conf.all_custom_tags,O=>(k(),x("div",{class:Xe(["tag",{selected:S.value.some(U=>U.id===O.id)}]),onClick:U=>t("contextMenuClick",{key:`toggle-tag-${O.id}`},a.file,a.idx),key:O.id,style:zt({"--tag-color":g(i).getColor(O.name)})},E(O.name),15,Jn))),128))])):B("",!0),A("div",Zn,[A("div",Qn,[C(E(a.$t("experimentalLRLayout"))+": ",1),c(Be,{checked:g(v),"onUpdate:checked":s[5]||(s[5]=O=>_e(v)?v.value=O:null),size:"small"},null,8,["checked"])]),g(v)?(k(),x(Y,{key:0},[A("div",Rn,[C(E(a.$t("width"))+": ",1),c(ft,{value:g(o),"onUpdate:value":s[6]||(s[6]=O=>_e(o)?o.value=O:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),c(vt,{title:a.$t("alwaysOnTooltipInfo")},{default:b(()=>[A("div",el,[C(E(a.$t("alwaysOn"))+": ",1),c(Be,{checked:g(m),"onUpdate:checked":s[7]||(s[7]=O=>_e(m)?m.value=O:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):B("",!0)]),c(pt,{activeKey:g(_),"onUpdate:activeKey":s[8]||(s[8]=O=>_e(_)?_.value=O:null)},{default:b(()=>[c(He,{key:"structedData",tab:a.$t("structuredData")},{default:b(()=>[A("div",null,[h.value.prompt?(k(),x(Y,{key:0},[tl,nl,A("code",{innerHTML:V(h.value.prompt??"")},null,8,ll)],64)):B("",!0),h.value.negativePrompt?(k(),x(Y,{key:1},[al,ol,A("code",{innerHTML:V(h.value.negativePrompt??"")},null,8,sl)],64)):B("",!0)]),Object.keys($.value).length?(k(),x(Y,{key:0},[il,rl,A("table",null,[(k(!0),x(Y,null,ve($.value,(O,U)=>(k(),x("tr",{key:U,class:"gen-info-frag"},[A("td",cl,E(U),1),typeof O=="object"?(k(),x("td",{key:0,style:{cursor:"pointer"},onDblclick:ke=>de(O)},[A("code",null,E(O),1)],40,ul)):(k(),x("td",{key:1,style:{cursor:"pointer"},onDblclick:ke=>de(g(Oe)(O))},E(g(Oe)(O)),41,dl))]))),128))])],64)):B("",!0)]),_:1},8,["tab"]),c(He,{key:"sourceText",tab:a.$t("sourceText")},{default:b(()=>[A("code",null,E(w.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):B("",!0)]),g(D).expanded&&!g(v)?(k(),x("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:d,title:g(T)("dragToResizePanel")},[c(g(un))],8,fl)):B("",!0)],34)}}});const Il=rt(vl,[["__scopeId","data-v-a9e90b6a"]]),pl={key:0,class:"float-panel"},ml={key:0,class:"select-actions"},gl={key:1},hl=it({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const l=De(),n=()=>{t("clearAllSelected"),l.keepMultiSelect=!1},i=()=>{l.keepMultiSelect=!0};return(u,S)=>{const M=se;return u.show?(k(),x("div",pl,[g(l).keepMultiSelect?(k(),x("div",ml,[c(M,{size:"small",onClick:S[0]||(S[0]=F=>t("selectAll"))},{default:b(()=>[C(E(u.$t("select-all")),1)]),_:1}),c(M,{size:"small",onClick:S[1]||(S[1]=F=>t("reverseSelect"))},{default:b(()=>[C(E(u.$t("rerverse-select")),1)]),_:1}),c(M,{size:"small",onClick:S[2]||(S[2]=F=>t("clearAllSelected"))},{default:b(()=>[C(E(u.$t("clear-all-selected")),1)]),_:1}),c(M,{size:"small",onClick:n},{default:b(()=>[C(E(u.$t("exit")),1)]),_:1})])):(k(),x("div",gl,[c(M,{size:"small",type:"primary",onClick:i},{default:b(()=>[C(E(u.$t("keep-multi-selected")),1)]),_:1})]))])):B("",!0)}}});const xl=rt(hl,[["__scopeId","data-v-b04c3508"]]);export{El as L,xl as M,Ll as R,Pl as a,Sl as b,$l as c,Fl as d,Il as f,re as u};
|