sd-webui-infinite-image-bro.../vue/dist/assets/fullScreenContextMenu-abfd1...

3 lines
21 KiB
JavaScript

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