3 lines
20 KiB
JavaScript
3 lines
20 KiB
JavaScript
import{d as de,bq as pe,aI as me,bW as ge,ax as he,aC as F,bX as ye,bY as Q,e as Z,c as o,_ as be,h as C,a as J,bz as we,P as K,ag as A,aw as Oe,aM as _e,l as fe,k as Ee,$ as T,aj as R,bO as Le,bZ as $e,b_ as Se,ai as z,o as y,y as w,p as j,r as d,m as ee,n as v,L as te,b$ as xe,C as N,z as B,x as g,v as p,t as ne,A as ie,N as ae,B as Pe,q as Ce,V as Me,W as ke,c0 as De,M as ze,X as je}from"./index-cf2f1a5b.js";import{i as Ne,j as Ae,_ as Te,D as We}from"./FileItem-259165a3.js";import"./shortcut-df843240.js";var Ie=["class","style"],Be=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:K.any,delay:Number,indicator:K.any}},I=null;function Fe(t,e){return!!t&&!!e&&!isNaN(Number(e))}function Ct(t){var e=t.indicator;I=typeof e=="function"?e:function(){return o(e,null,null)}}const Mt=de({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:pe(Be(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:me("configProvider",ge)}},data:function(){var e=this.spinning,i=this.delay,n=Fe(e,i);return{sSpinning:e&&!n}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var e=this;he(function(){e.debouncifyUpdateSpinning(),e.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var i=e||this.$props,n=i.delay;n&&(this.cancelExistingSpin(),this.updateSpinning=F(this.originalUpdateSpinning,n))},updateSpinning:function(){var e=this.spinning,i=this.sSpinning;i!==e&&(this.sSpinning=e)},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},renderIndicator:function(e){var i="".concat(e,"-dot"),n=ye(this,"indicator");return n===null?null:(Array.isArray(n)&&(n=n.length===1?n[0]:n),Q(n)?Z(n,{class:i}):I&&Q(I())?Z(I(),{class:i}):o("span",{class:"".concat(i," ").concat(e,"-dot-spin")},[o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null),o("i",{class:"".concat(e,"-dot-item")},null)]))}},render:function(){var e,i,n,l=this.$props,O=l.size,_=l.prefixCls,L=l.tip,$=L===void 0?(e=(i=this.$slots).tip)===null||e===void 0?void 0:e.call(i):L,S=l.wrapperClassName,x=this.$attrs,P=x.class,M=x.style,c=be(x,Ie),b=this.configProvider,k=b.getPrefixCls,E=b.direction,a=k("spin",_),u=this.sSpinning,r=(n={},C(n,a,!0),C(n,"".concat(a,"-sm"),O==="small"),C(n,"".concat(a,"-lg"),O==="large"),C(n,"".concat(a,"-spinning"),u),C(n,"".concat(a,"-show-text"),!!$),C(n,"".concat(a,"-rtl"),E==="rtl"),C(n,P,!!P),n),f=o("div",J(J({},c),{},{style:M,class:r}),[this.renderIndicator(a),$?o("div",{class:"".concat(a,"-text")},[$]):null]),s=we(this);if(s&&s.length){var h,D=(h={},C(h,"".concat(a,"-container"),!0),C(h,"".concat(a,"-blur"),u),h);return o("div",{class:["".concat(a,"-nested-loading"),S]},[u&&o("div",{key:"loading"},[f]),o("div",{class:D,key:"container"},[s])])}return f}});var Ue={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 Ve=Ue;function re(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),n.forEach(function(l){Xe(t,l,i[l])})}return t}function Xe(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var U=function(e,i){var n=re({},e,i.attrs);return o(A,re({},n,{icon:Ve}),null)};U.displayName="ArrowsAltOutlined";U.inheritAttrs=!1;const Ye=U;var He={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 qe=He;function le(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),n.forEach(function(l){Ge(t,l,i[l])})}return t}function Ge(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var V=function(e,i){var n=le({},e,i.attrs);return o(A,le({},n,{icon:qe}),null)};V.displayName="DragOutlined";V.inheritAttrs=!1;const Qe=V;var Ze={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 Je=Ze;function oe(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),n.forEach(function(l){Ke(t,l,i[l])})}return t}function Ke(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var X=function(e,i){var n=oe({},e,i.attrs);return o(A,oe({},n,{icon:Je}),null)};X.displayName="FullscreenExitOutlined";X.inheritAttrs=!1;const Re=X;var et={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 tt=et;function se(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),n.forEach(function(l){nt(t,l,i[l])})}return t}function nt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Y=function(e,i){var n=se({},e,i.attrs);return o(A,se({},n,{icon:tt}),null)};Y.displayName="FullscreenOutlined";Y.inheritAttrs=!1;const it=Y;var at={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 rt=at;function ue(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),n.forEach(function(l){lt(t,l,i[l])})}return t}function lt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var H=function(e,i){var n=ue({},e,i.attrs);return o(A,ue({},n,{icon:rt}),null)};H.displayName="LeftCircleOutlined";H.inheritAttrs=!1;const kt=H;var ot={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 st=ot;function ce(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),n.forEach(function(l){ut(t,l,i[l])})}return t}function ut(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var q=function(e,i){var n=ce({},e,i.attrs);return o(A,ce({},n,{icon:st}),null)};q.displayName="RightCircleOutlined";q.inheritAttrs=!1;const Dt=q;function ct(t,e,i,n){const l={x:0,y:0};let O=0,_=0,L=typeof(n==null?void 0:n.width)=="number"?n.width:0,$=typeof(n==null?void 0:n.height)=="number"?n.height:0,S=typeof(n==null?void 0:n.left)=="number"?n.left:0,x=typeof(n==null?void 0:n.top)=="number"?n.top:0,P=!1;const M=r=>{r.stopPropagation(),r.preventDefault(),!(!t.value||!e.value)&&(O=r instanceof MouseEvent?r.clientX:r.touches[0].clientX,_=r instanceof MouseEvent?r.clientY:r.touches[0].clientY,L=t.value.offsetWidth,$=t.value.offsetHeight,l.x=e.value.offsetLeft,l.y=e.value.offsetTop,document.documentElement.addEventListener("mousemove",c),document.documentElement.addEventListener("touchmove",c),document.documentElement.addEventListener("mouseup",b),document.documentElement.addEventListener("touchend",b))},c=r=>{if(!t.value||!e.value)return;let f=L+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),s=$+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-_),h=l.x+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),D=l.y+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-_);h+e.value.offsetWidth>window.innerWidth&&(h=window.innerWidth-e.value.offsetWidth),t.value.offsetLeft+f>window.innerWidth&&(f=window.innerWidth-t.value.offsetLeft),D+e.value.offsetHeight>window.innerHeight&&(D=window.innerHeight-e.value.offsetHeight),t.value.offsetTop+s>window.innerHeight&&(s=window.innerHeight-t.value.offsetTop),t.value.style.width=`${f}px`,t.value.style.height=`${s}px`,e.value.style.left=`${h}px`,e.value.style.top=`${D}px`,n!=null&&n.onResize&&n.onResize(f,s)},b=()=>{document.documentElement.removeEventListener("mousemove",c),document.documentElement.removeEventListener("touchmove",c),document.documentElement.removeEventListener("mouseup",b),document.documentElement.removeEventListener("touchend",b)},k=r=>{r.stopPropagation(),r.preventDefault(),!(!t.value||!i.value)&&(P=!0,S=t.value.offsetLeft,x=t.value.offsetTop,O=r instanceof MouseEvent?r.clientX:r.touches[0].clientX,_=r instanceof MouseEvent?r.clientY:r.touches[0].clientY,document.documentElement.addEventListener("mousemove",E),document.documentElement.addEventListener("touchmove",E),document.documentElement.addEventListener("mouseup",a),document.documentElement.addEventListener("touchend",a))},E=r=>{if(!t.value||!i.value||!P)return;const f=S+((r instanceof MouseEvent?r.clientX:r.touches[0].clientX)-O),s=x+((r instanceof MouseEvent?r.clientY:r.touches[0].clientY)-_);f<0?t.value.style.left="0px":f+t.value.offsetWidth>window.innerWidth?t.value.style.left=`${window.innerWidth-t.value.offsetWidth}px`:t.value.style.left=`${f}px`,s<0?t.value.style.top="0px":s+t.value.offsetHeight>window.innerHeight?t.value.style.top=`${window.innerHeight-t.value.offsetHeight}px`:t.value.style.top=`${s}px`,n!=null&&n.onDrag&&n.onDrag(f,s)},a=()=>{P=!1,document.documentElement.removeEventListener("mousemove",E),document.documentElement.removeEventListener("touchmove",E),document.documentElement.removeEventListener("mouseup",a),document.documentElement.removeEventListener("touchend",a)},u=()=>{if(!t.value||!e.value)return;let r=t.value.offsetLeft,f=t.value.offsetTop,s=t.value.offsetWidth,h=t.value.offsetHeight;r+s>window.innerWidth&&(r=window.innerWidth-s,r<0&&(r=0,s=window.innerWidth)),f+h>window.innerHeight&&(f=window.innerHeight-h,f<0&&(f=0,h=window.innerHeight)),t.value.style.left=`${r}px`,t.value.style.top=`${f}px`,t.value.style.width=`${s}px`,t.value.style.height=`${h}px`};return Oe(()=>{!t.value||!n||(typeof n.width=="number"&&(t.value.style.width=`${n.width}px`),typeof n.height=="number"&&(t.value.style.height=`${n.height}px`),typeof n.left=="number"&&(t.value.style.left=`${n.left}px`),typeof n.top=="number"&&(t.value.style.top=`${n.top}px`),u(),window.addEventListener("resize",u))}),_e(()=>{document.documentElement.removeEventListener("mousemove",c),document.documentElement.removeEventListener("touchmove",c),document.documentElement.removeEventListener("mouseup",b),document.documentElement.removeEventListener("touchend",b),document.documentElement.removeEventListener("mousemove",E),document.documentElement.removeEventListener("touchmove",E),document.documentElement.removeEventListener("mouseup",a),document.documentElement.removeEventListener("touchend",a),window.removeEventListener("resize",u)}),fe(()=>[t.value,e.value,i.value],([r,f,s])=>{r&&f&&(f.addEventListener("mousedown",M),f.addEventListener("touchstart",M)),r&&s&&(s.addEventListener("mousedown",k),s.addEventListener("touchstart",k))}),{handleResizeMouseDown:M,handleDragMouseDown:k}}const dt={class:"container"},ft={class:"action-bar"},vt=["title"],pt=["title"],mt={key:0,class:"icon",style:{cursor:"pointer"}},gt={key:0,"flex-placeholder":""},ht={key:1,class:"action-bar"},yt={key:0,class:"gen-info"},bt={class:"info-tags"},wt={class:"name"},Ot={class:"value"},_t={key:0,class:"tags-container"},Et=["onClick"],Lt=["title"],$t=de({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(t,{emit:e}){const i=t,n=Ee(),l=Ne(),O=T(),_=R(()=>l.tagMap.get(i.file.fullpath)??[]),L=T(""),$=Le(),S=T("");fe(()=>{var a;return(a=i==null?void 0:i.file)==null?void 0:a.fullpath},async a=>{a&&($.tasks.forEach(u=>u.cancel()),$.pushAction(()=>$e(a)).res.then(u=>{S.value=u}))},{immediate:!0});const x=T(),P=T(),M={left:100,top:100,width:512,height:384,expanded:!0},c=Se("fullScreenContextMenu.vue-drag",M);c.value&&(c.value.left<0||c.value.top<0)&&(c.value={...M}),ct(O,x,P,{...c.value,onDrag:F(function(a,u){c.value={...c.value,left:a,top:u}},300),onResize:F(function(a,u){c.value={...c.value,width:a,height:u}},300)});function b(a){return a.parentNode}Ae("load",a=>{const u=a.target;u.className==="ant-image-preview-img"&&(L.value=`${u.naturalWidth} x ${u.naturalHeight}`)},{capture:!0});const k=R(()=>{const a=[{name:z("fileName"),val:i.file.name},{name:z("fileSize"),val:i.file.size}];return L.value&&a.push({name:z("resolution"),val:L.value}),a}),E=()=>{ne(S.value.split(`
|
|
`)[0])};return(a,u)=>{var G;const r=We,f=Me,s=ke,h=De,D=ze;return y(),w("div",{ref_key:"el",ref:O,class:ae(["full-screen-menu",{"unset-size":!d(c).expanded}]),onWheelCapture:u[4]||(u[4]=Ce(()=>{},["stop"]))},[j("div",dt,[j("div",ft,[j("div",{ref_key:"dragHandle",ref:P,class:"icon",style:{cursor:"grab"},title:d(z)("dragToMovePanel")},[o(d(Qe))],8,vt),j("div",{class:"icon",style:{cursor:"pointer"},onClick:u[0]||(u[0]=m=>d(c).expanded=!d(c).expanded),title:d(z)("clickToToggleMaximizeMinimize")},[d(c).expanded?(y(),ee(d(Re),{key:0})):(y(),ee(d(it),{key:1}))],8,pt),o(r,{"get-popup-container":b},{overlay:v(()=>[o(Te,{file:a.file,idx:a.idx,"selected-tag":_.value,"disable-delete":d(te)(a.file)===d(n).fullscreenPreviewInitialUrl,onContextMenuClick:u[1]||(u[1]=(m,W,ve)=>e("contextMenuClick",m,W,ve))},null,8,["file","idx","selected-tag","disable-delete"])]),default:v(()=>[d(c).expanded?N("",!0):(y(),w("div",mt,[o(d(xe))]))]),_:1}),d(c).expanded?(y(),w("div",gt)):N("",!0),d(c).expanded?(y(),w("div",ht,[o(r,{trigger:["hover"],"get-popup-container":b},{overlay:v(()=>[o(D,{onClick:u[2]||(u[2]=m=>e("contextMenuClick",m,a.file,a.idx))},{default:v(()=>{var m;return[((m=d(n).conf)==null?void 0:m.launch_mode)!=="server"?(y(),w(B,{key:0},[o(s,{key:"send2txt2img"},{default:v(()=>[g(p(a.$t("sendToTxt2img")),1)]),_:1}),o(s,{key:"send2img2img"},{default:v(()=>[g(p(a.$t("sendToImg2img")),1)]),_:1}),o(s,{key:"send2inpaint"},{default:v(()=>[g(p(a.$t("sendToInpaint")),1)]),_:1}),o(s,{key:"send2extras"},{default:v(()=>[g(p(a.$t("sendToExtraFeatures")),1)]),_:1}),o(h,{key:"sendToThirdPartyExtension",title:a.$t("sendToThirdPartyExtension")},{default:v(()=>[o(s,{key:"send2controlnet-txt2img"},{default:v(()=>[g("ControlNet - "+p(a.$t("t2i")),1)]),_:1}),o(s,{key:"send2controlnet-img2img"},{default:v(()=>[g("ControlNet - "+p(a.$t("i2i")),1)]),_:1}),o(s,{key:"send2outpaint"},{default:v(()=>[g("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):N("",!0),o(s,{key:"send2BatchDownload"},{default:v(()=>[g(p(a.$t("sendToBatchDownload")),1)]),_:1}),o(s,{key:"send2savedDir"},{default:v(()=>[g(p(a.$t("send2savedDir")),1)]),_:1}),o(s,{key:"deleteFiles",disabled:d(te)(a.file)===d(n).fullscreenPreviewInitialUrl},{default:v(()=>[g(p(a.$t("deleteSelected")),1)]),_:1},8,["disabled"]),o(s,{key:"previewInNewWindow"},{default:v(()=>[g(p(a.$t("previewInNewWindow")),1)]),_:1}),o(s,{key:"download"},{default:v(()=>[g(p(a.$t("download")),1)]),_:1}),o(s,{key:"copyPreviewUrl"},{default:v(()=>[g(p(a.$t("copySourceFilePreviewLink")),1)]),_:1})]}),_:1})]),default:v(()=>[o(f,null,{default:v(()=>[g(p(d(z)("openContextMenu")),1)]),_:1})]),_:1}),o(f,{onClick:u[3]||(u[3]=m=>d(ne)(S.value))},{default:v(()=>[g(p(a.$t("copyPrompt")),1)]),_:1}),o(f,{onClick:E},{default:v(()=>[g(p(a.$t("copyPositivePrompt")),1)]),_:1})])):N("",!0)]),d(c).expanded?(y(),w("div",yt,[j("div",bt,[(y(!0),w(B,null,ie(k.value,m=>(y(),w("span",{class:"info-tag",key:m.name},[j("span",wt,p(m.name),1),j("span",Ot,p(m.val),1)]))),128))]),(G=d(n).conf)!=null&&G.all_custom_tags?(y(),w("div",_t,[(y(!0),w(B,null,ie(d(n).conf.all_custom_tags,m=>(y(),w("div",{class:ae(["tag",{selected:_.value.some(W=>W.id===m.id)}]),onClick:W=>e("contextMenuClick",{key:`toggle-tag-${m.id}`},a.file,a.idx),key:m.id,style:Pe({"--tag-color":d(l).getColor(m.name)})},p(m.name),15,Et))),128))])):N("",!0),g(" "+p(S.value),1)])):N("",!0)]),d(c).expanded?(y(),w("div",{key:0,class:"mouse-sensor",ref_key:"resizeHandle",ref:x,title:d(z)("dragToResizePanel")},[o(d(Ye))],8,Lt)):N("",!0)],34)}}});const zt=je($t,[["__scopeId","data-v-83aabf1b"]]);export{kt as L,Dt as R,Mt as S,zt as f,Ct as s};
|