System.register(["./index-legacy-BGUFxny_.js","./style-legacy-Dq2e2uFG.js","./ImageWithError-legacy-y8dqCaBH.js","./icon-legacy-fy54up3n.js","./helper-legacy-Dnduz_aE.js","./GridItem-legacy-DHlY1Xxd.js","./index-legacy-CwkvHJvM.js","./Layout-legacy-BpAjKXAb.js","./useTitle-legacy-Ck1as0cr.js","./FolderTree-legacy-DAN7i0-E.js","./index-legacy-CH9QEyQP.js","./index-legacy-DgbbakiJ.js","./share-legacy-CrDD6m--.js","./index-legacy-DVBgQjo3.js"],function(e,t){"use strict";var r,n,l,i,a,o,s,c,g,u,d,h,p,b,j,m,f,y,x,w,$,_,k,v,C,M,E,I,S,z,A,G,L;return{setters:[e=>{r=e.bU,n=e.P,l=e.D,i=e.aE,a=e.aM,o=e.al,s=e.ah,c=e.aR,g=e.S,u=e.dR,d=e.a_,h=e.aQ,p=e.aL,b=e.bT,j=e.av,m=e.O,f=e.R,y=e.a4,x=e.dk,w=e.an,$=e.ag,_=e.dY,k=e.q,v=e.b$,C=e.c0,M=e.o},e=>{E=e.b},e=>{I=e.I},e=>{S=e.O,z=e.g},e=>{A=e.I,G=e.u},e=>{L=e.G},null,null,null,null,null,null,null,null],execute:function(){const t=e=>{const{isHide:t}=r();if(t(e.obj)||e.obj.type!==S.IMAGE)return null;const{setPathAs:m}=n(),f=l(a,{get color(){return i()},boxSize:"$12",get as(){return z(e.obj)}}),{show:y}=E({id:1}),{rawLink:x}=o(),{openWithDoubleClick:w,toggleWithClick:$,restoreSelectionCache:_}=G();return l(j.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},style:{"flex-grow":1},get children(){return l(s,{w:"$full",get classList(){return{selected:!!e.obj.selected}},class:"image-item viselect-item",get"data-index"(){return e.index},p:"$1",spacing:"$1",rounded:"$lg",transition:"all 0.3s",border:"2px solid transparent",get _hover(){return{border:`2px solid ${i()}`}},get cursor(){return w()||$()?"default":"pointer"},onMouseEnter:()=>{m(e.obj.name,e.obj.is_dir,!0)},onContextMenu:t=>{b(()=>{u(e.index,!0,!0)}),y(t,{props:e.obj})},get children(){return l(c,{w:"$full",pos:"relative",get children(){return[l(g,{get when(){return d()},get children(){return l(A,{pos:"absolute",left:"$1",top:"$1","on:mousedown":e=>{e.stopPropagation()},"on:click":e=>{e.stopPropagation()},get checked(){return e.obj.selected},onChange:t=>{u(e.index,t.target.checked)}})}}),l(I,{h:"150px",w:"$full",objectFit:"cover",rounded:"$lg",shadow:"$md",get fallback(){return l(p,{size:"lg"})},fallbackErr:f,get src(){return x(e.obj)},loading:"lazy","on:dblclick":()=>{w()&&(h.emit("gallery",e.obj.name),u(e.index,!0,!0))},"on:click":t=>{if(!w()&&!(t.ctrlKey||t.metaKey||t.shiftKey)&&_())return $()?u(e.index,!e.obj.selected):void h.emit("gallery",e.obj.name)}})]}})}})}})};e("default",e=>{const r=M(),n=m(()=>l(x,{w:"$full",gap:"$1",templateColumns:"repeat(auto-fill, minmax(100px,1fr))",class:"image-folders",get children(){return l(f,{get each(){return y.objs.filter(e=>e.is_dir)},children:(e,t)=>l(L,{obj:e,get index(){return t()}})})}})),{registerSelectContainer:i,captureContentMenu:a}=G();return i(),l(s,{"oncapture:contextmenu":a,class:"viselect-container",spacing:"$2",w:"$full",get children(){return[l(g,{get when(){return"visible"===k.show_count_msg},get children(){return l(w,{w:"100%",textAlign:"left",pl:"$2",get children(){return l($,{size:"sm",color:"$neutral11",get children(){return _(S.IMAGE)}})}})}}),l(g,{get when(){return"top"===k.show_folder_in_image_view},get children(){return n()}}),l(g,{get when(){return e.images.length>0},get fallback(){return l(C,{m:"$2",get children(){return r("home.no_images")}})},get children(){return l(v,{w:"$full",gap:"$1",flexWrap:"wrap",class:"image-images",get children(){return l(f,{get each(){return y.objs},children:(e,r)=>l(t,{obj:e,get index(){return r()}})})}})}}),l(g,{get when(){return"bottom"===k.show_folder_in_image_view},get children(){return n()}})]}})})}}});
