import{a4 as Rt,j as pt,a5 as Nt,l as Mt}from"./index-Dgdobvu3.chunk.mjs";import{$ as dt,a0 as A,i as tt,a1 as Bt,a2 as C,a3 as ft,a4 as Q,a5 as ht,w as _t,W as Jt,c as gt,a6 as G,Q as Ht,a7 as Qt,a8 as Gt,x as zt,A as R,d as yt,t as N}from"./preload-helper-DadE4qT2.chunk.mjs";import{d as Wt}from"./index-D_vzF9fp.chunk.mjs";import{e as qt,t as Yt,n as mt,P as Kt,u as Xt}from"./icons-CFZwNZD8.chunk.mjs";import{f as rt}from"./PhotosFiltersInput-B33sPvuK.chunk.mjs";function Zt(){return bt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function bt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const te=typeof Proxy=="function",ee="devtools-plugin:setup",oe="plugin:settings:set";let L,K;function se(){var t;return L!==void 0||(typeof window<"u"&&window.performance?(L=!0,K=window.performance):typeof globalThis<"u"&&!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance?(L=!0,K=globalThis.perf_hooks.performance):L=!1),L}function ne(){return se()?K.now():Date.now()}class ae{constructor(e,s){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=s;const o={};if(e.settings)for(const r in e.settings){const a=e.settings[r];o[r]=a.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},o);try{const r=localStorage.getItem(n),a=JSON.parse(r);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(r){try{localStorage.setItem(n,JSON.stringify(r))}catch{}i=r},now(){return ne()}},s&&s.on(oe,(r,a)=>{r===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(r,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(r,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(p=>{this.targetQueue.push({method:a,args:c,resolve:p})})})}async setRealTarget(e){this.target=e;for(const s of this.onQueue)this.target.on[s.method](...s.args);for(const s of this.targetQueue)s.resolve(await this.target[s.method](...s.args))}}function vt(t,e){const s=t,o=bt(),n=Zt(),i=te&&s.enableEarlyProxy;if(n&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))n.emit(ee,t,e);else{const r=i?new ae(s,n):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:s,setupFn:e,proxy:r}),r&&e(r.proxiedTarget)}}let Ot;const U=t=>Ot=t,St=Symbol();function X(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var v;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(v||(v={}));const P=typeof window<"u",it=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof R=="object"&&R.global===R?R:typeof globalThis=="object"?globalThis:{HTMLElement:null};function re(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function et(t,e,s){const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){$t(o.response,e,s)},o.onerror=function(){console.error("could not download file")},o.send()}function wt(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function M(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}const B=typeof navigator=="object"?navigator:{userAgent:""},Et=/Macintosh/.test(B.userAgent)&&/AppleWebKit/.test(B.userAgent)&&!/Safari/.test(B.userAgent),$t=P?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Et?ie:"msSaveOrOpenBlob"in B?ce:le:()=>{};function ie(t,e="download",s){const o=document.createElement("a");o.download=e,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?wt(o.href)?et(t,e,s):(o.target="_blank",M(o)):M(o)):(o.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){M(o)},0))}function ce(t,e="download",s){if(typeof t=="string")if(wt(t))et(t,e,s);else{const o=document.createElement("a");o.href=t,o.target="_blank",setTimeout(function(){M(o)})}else navigator.msSaveOrOpenBlob(re(t,s),e)}function le(t,e,s,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof t=="string")return et(t,e,s);const n=t.type==="application/octet-stream",i=/constructor/i.test(String(it.HTMLElement))||"safari"in it,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||n&&i||Et)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let c=a.result;if(typeof c!="string")throw o=null,new Error("Wrong reader.result type");c=r?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location.assign(c),o=null},a.readAsDataURL(t)}else{const a=URL.createObjectURL(t);o?o.location.assign(a):location.href=a,o=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function d(t,e){const s="๐Ÿ "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(s,e):e==="error"?console.error(s):e==="warn"?console.warn(s):console.log(s)}function ot(t){return"_a"in t&&"install"in t}function Pt(){if(!("clipboard"in navigator))return d("Your browser doesn't support the Clipboard API","error"),!0}function Ft(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(d('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function ue(t){if(!Pt())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),d("Global state copied to clipboard.")}catch(e){if(Ft(e))return;d("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function pe(t){if(!Pt())try{Tt(t,JSON.parse(await navigator.clipboard.readText())),d("Global state pasted from clipboard.")}catch(e){if(Ft(e))return;d("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function de(t){try{$t(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){d("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let O;function fe(){O||(O=document.createElement("input"),O.type="file",O.accept=".json");function t(){return new Promise((e,s)=>{O.onchange=async()=>{const o=O.files;if(!o)return e(null);const n=o.item(0);return e(n?{text:await n.text(),file:n}:null)},O.oncancel=()=>e(null),O.onerror=s,O.click()})}return t}async function he(t){try{const e=await fe()();if(!e)return;const{text:s,file:o}=e;Tt(t,JSON.parse(s)),d(`Global state imported from "${o.name}".`)}catch(e){d("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function Tt(t,e){for(const s in e){const o=t.state.value[s];o?Object.assign(o,e[s]):t.state.value[s]=e[s]}}function m(t){return{_custom:{display:t}}}const kt="๐Ÿ Pinia (root)",J="_root";function _e(t){return ot(t)?{id:J,label:kt}:{id:t.$id,label:t.$id}}function ge(t){if(ot(t)){const s=Array.from(t._s.keys()),o=t._s;return{state:s.map(n=>({editable:!0,key:n,value:t.state.value[n]})),getters:s.filter(n=>o.get(n)._getters).map(n=>{const i=o.get(n);return{editable:!1,key:n,value:i._getters.reduce((r,a)=>(r[a]=i[a],r),{})}})}}const e={state:Object.keys(t.$state).map(s=>({editable:!0,key:s,value:t.$state[s]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(s=>({editable:!1,key:s,value:t[s]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(s=>({editable:!0,key:s,value:t[s]}))),e}function ye(t){return t?Array.isArray(t)?t.reduce((e,s)=>(e.keys.push(s.key),e.operations.push(s.type),e.oldValue[s.key]=s.oldValue,e.newValue[s.key]=s.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:m(t.type),key:m(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function me(t){switch(t){case v.direct:return"mutation";case v.patchFunction:return"$patch";case v.patchObject:return"$patch";default:return"unknown"}}let I=!0;const H=[],$="pinia:mutations",f="pinia",{assign:be}=Object,z=t=>"๐Ÿ "+t;function ve(t,e){vt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:H,app:t},s=>{typeof s.now!="function"&&d("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.addTimelineLayer({id:$,label:"Pinia ๐Ÿ",color:15064968}),s.addInspector({id:f,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{ue(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await pe(e),s.sendInspectorTree(f),s.sendInspectorState(f)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{de(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await he(e),s.sendInspectorTree(f),s.sendInspectorState(f)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const n=e._s.get(o);n?typeof n.$reset!="function"?d(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),d(`Store "${o}" reset.`)):d(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),s.on.inspectComponent((o,n)=>{const i=o.componentInstance&&o.componentInstance.proxy;if(i&&i._pStores){const r=o.componentInstance.proxy._pStores;Object.values(r).forEach(a=>{o.instanceData.state.push({type:z(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:G(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((c,p)=>(c[p]=a.$state[p],c),{})}),a._getters&&a._getters.length&&o.instanceData.state.push({type:z(a.$id),key:"getters",editable:!1,value:a._getters.reduce((c,p)=>{try{c[p]=a[p]}catch(g){c[p]=g}return c},{})})})}}),s.on.getInspectorTree(o=>{if(o.app===t&&o.inspectorId===f){let n=[e];n=n.concat(Array.from(e._s.values())),o.rootNodes=(o.filter?n.filter(i=>"$id"in i?i.$id.toLowerCase().includes(o.filter.toLowerCase()):kt.toLowerCase().includes(o.filter.toLowerCase())):n).map(_e)}}),globalThis.$pinia=e,s.on.getInspectorState(o=>{if(o.app===t&&o.inspectorId===f){const n=o.nodeId===J?e:e._s.get(o.nodeId);if(!n)return;n&&(o.nodeId!==J&&(globalThis.$store=G(n)),o.state=ge(n))}}),s.on.editInspectorState((o,n)=>{if(o.app===t&&o.inspectorId===f){const i=o.nodeId===J?e:e._s.get(o.nodeId);if(!i)return d(`store "${o.nodeId}" not found`,"error");const{path:r}=o;ot(i)?r.unshift("state"):(r.length!==1||!i._customProperties.has(r[0])||r[0]in i.$state)&&r.unshift("$state"),I=!1,o.set(i,r,o.state.value),I=!0}}),s.on.editComponentState(o=>{if(o.type.startsWith("๐Ÿ")){const n=o.type.replace(/^๐Ÿ\s*/,""),i=e._s.get(n);if(!i)return d(`store "${n}" not found`,"error");const{path:r}=o;if(r[0]!=="state")return d(`Invalid path for store "${n}": ${r} Only state can be modified.`);r[0]="$state",I=!1,o.set(i,r,o.state.value),I=!0}})})}function Oe(t,e){H.includes(z(e.$id))||H.push(z(e.$id)),vt({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:H,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},s=>{const o=typeof s.now=="function"?s.now.bind(s):Date.now;e.$onAction(({after:r,onError:a,name:c,args:p})=>{const g=It++;s.addTimelineEvent({layerId:$,event:{time:o(),title:"๐Ÿ›ซ "+c,subtitle:"start",data:{store:m(e.$id),action:m(c),args:p},groupId:g}}),r(b=>{w=void 0,s.addTimelineEvent({layerId:$,event:{time:o(),title:"๐Ÿ›ฌ "+c,subtitle:"end",data:{store:m(e.$id),action:m(c),args:p,result:b},groupId:g}})}),a(b=>{w=void 0,s.addTimelineEvent({layerId:$,event:{time:o(),logType:"error",title:"๐Ÿ’ฅ "+c,subtitle:"end",data:{store:m(e.$id),action:m(c),args:p,error:b},groupId:g}})})},!0),e._customProperties.forEach(r=>{_t(()=>Ht(e[r]),(a,c)=>{s.notifyComponentUpdate(),s.sendInspectorState(f),I&&s.addTimelineEvent({layerId:$,event:{time:o(),title:"Change",subtitle:r,data:{newValue:a,oldValue:c},groupId:w}})},{deep:!0})}),e.$subscribe(({events:r,type:a},c)=>{if(s.notifyComponentUpdate(),s.sendInspectorState(f),!I)return;const p={time:o(),title:me(a),data:be({store:m(e.$id)},ye(r)),groupId:w};a===v.patchFunction?p.subtitle="โคต๏ธ":a===v.patchObject?p.subtitle="๐Ÿงฉ":r&&!Array.isArray(r)&&(p.subtitle=r.type),r&&(p.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),s.addTimelineEvent({layerId:$,event:p})},{detached:!0,flush:"sync"});const n=e._hotUpdate;e._hotUpdate=C(r=>{n(r),s.addTimelineEvent({layerId:$,event:{time:o(),title:"๐Ÿ”ฅ "+e.$id,subtitle:"HMR update",data:{store:m(e.$id),info:m("HMR update")}}}),s.notifyComponentUpdate(),s.sendInspectorTree(f),s.sendInspectorState(f)});const{$dispose:i}=e;e.$dispose=()=>{i(),s.notifyComponentUpdate(),s.sendInspectorTree(f),s.sendInspectorState(f),s.getSettings().logStoreChanges&&d(`Disposed "${e.$id}" store ๐Ÿ—‘`)},s.notifyComponentUpdate(),s.sendInspectorTree(f),s.sendInspectorState(f),s.getSettings().logStoreChanges&&d(`"${e.$id}" store installed ๐Ÿ†•`)})}let It=0,w;function ct(t,e,s){const o=e.reduce((n,i)=>(n[i]=G(t)[i],n),{});for(const n in o)t[n]=function(){const i=It,r=s?new Proxy(t,{get(...c){return w=i,Reflect.get(...c)},set(...c){return w=i,Reflect.set(...c)}}):t;w=i;const a=o[n].apply(r,arguments);return w=void 0,a}}function Se({app:t,store:e,options:s}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!s.state,!e._p._testing){ct(e,Object.keys(s.actions),e._isOptionsAPI);const o=e._hotUpdate;G(e)._hotUpdate=function(n){o.apply(this,arguments),ct(e,Object.keys(n._hmrPayload.actions),!!e._isOptionsAPI)}}Oe(t,e)}}function Je(){const t=ft(!0),e=t.run(()=>tt({}));let s=[];const o=C({install(n){U(o)},use(n){return this._a,s.push(n),this},_p:s,_a:null,_e:t,_s:new Map,state:e});return typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&P&&typeof Proxy<"u"&&o.use(Se),o}const jt=()=>{};function lt(t,e,s,o=jt){t.push(e);const n=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),o())};return!s&&Qt()&&Gt(n),n}function k(t,...e){t.slice().forEach(s=>{s(...e)})}const we=t=>t(),ut=Symbol(),Y=Symbol();function Z(t,e){t instanceof Map&&e instanceof Map?e.forEach((s,o)=>t.set(o,s)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const s in e){if(!e.hasOwnProperty(s))continue;const o=e[s],n=t[s];X(n)&&X(o)&&t.hasOwnProperty(s)&&!Q(o)&&!ht(o)?t[s]=Z(n,o):t[s]=o}return t}const Ee=Symbol();function $e(t){return!X(t)||!t.hasOwnProperty(Ee)}const{assign:S}=Object;function Pe(t){return!!(Q(t)&&t.effect)}function Fe(t,e,s,o){const{state:n,actions:i,getters:r}=e,a=s.state.value[t];let c;function p(){a||A(s.state.value,t,n?n():{});const g=dt(s.state.value[t]);return S(g,i,Object.keys(r||{}).reduce((b,F)=>(b[F]=C(gt(()=>{U(s);const E=s._s.get(t);if(E._r)return r[F].call(E,E)})),b),{}))}return c=Dt(t,p,e,s,o,!0),c}function Dt(t,e,s={},o,n,i){let r;const a=S({actions:{}},s),c={deep:!0};let p,g,b=[],F=[],E;const T=o.state.value[t];!i&&!T&&A(o.state.value,t,{});const Vt=tt({});let st;function nt(l){let u;p=g=!1,typeof l=="function"?(l(o.state.value[t]),u={type:v.patchFunction,storeId:t,events:E}):(Z(o.state.value[t],l),u={type:v.patchObject,payload:l,storeId:t,events:E});const _=st=Symbol();Jt().then(()=>{st===_&&(p=!0)}),g=!0,k(b,u,o.state.value[t])}const Lt=i?function(){const{state:l}=s,u=l?l():{};this.$patch(_=>{S(_,u)})}:jt;function At(){r.stop(),b=[],F=[],o._s.delete(t)}const at=(l,u="")=>{if(ut in l)return l[Y]=u,l;const _=function(){U(o);const x=Array.from(arguments),D=[],q=[];function Ut(y){D.push(y)}function xt(y){q.push(y)}k(F,{args:x,name:_[Y],store:h,after:Ut,onError:xt});let V;try{V=l.apply(this&&this.$id===t?this:h,x)}catch(y){throw k(q,y),y}return V instanceof Promise?V.then(y=>(k(D,y),y)).catch(y=>(k(q,y),Promise.reject(y))):(k(D,V),V)};return _[ut]=!0,_[Y]=u,_},Ct=C({actions:{},getters:{},state:[],hotState:Vt}),W={_p:o,$id:t,$onAction:lt.bind(null,F),$patch:nt,$reset:Lt,$subscribe(l,u={}){const _=lt(b,l,u.detached,()=>x()),x=r.run(()=>_t(()=>o.state.value[t],D=>{(u.flush==="sync"?g:p)&&l({storeId:t,type:v.direct,events:E},D)},S({},c,u)));return _},$dispose:At};W._r=!1;const h=Bt(typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&P?S({_hmrPayload:Ct,_customProperties:C(new Set)},W):W);o._s.set(t,h);const j=(o._a&&o._a.runWithContext||we)(()=>o._e.run(()=>(r=ft()).run(()=>e({action:at}))));for(const l in j){const u=j[l];if(Q(u)&&!Pe(u)||ht(u))i||(T&&$e(u)&&(Q(u)?u.value=T[l]:Z(u,T[l])),A(o.state.value[t],l,u));else if(typeof u=="function"){const _=at(u,l);A(j,l,_),a.actions[l]=u}}if(Object.keys(j).forEach(l=>{A(h,l,j[l])}),Object.defineProperty(h,"$state",{get:()=>o.state.value[t],set:l=>{nt(u=>{S(u,l)})}}),typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&P){const l={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(u=>{Object.defineProperty(h,u,S({value:h[u]},l))})}return h._r=!0,o._p.forEach(l=>{if(typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&P){const u=r.run(()=>l({store:h,app:o._a,pinia:o,options:a}));Object.keys(u||{}).forEach(_=>h._customProperties.add(_)),S(h,u)}else S(h,r.run(()=>l({store:h,app:o._a,pinia:o,options:a})))}),T&&i&&s.hydrate&&s.hydrate(h.$state,T),p=!0,g=!0,h}function Te(t,e,s){let o,n;const i=typeof e=="function";o=t,n=i?s:e;function r(a,c){const p=Rt();return a=a||(p?zt(St,null):null),a&&U(a),a=Ot,a._s.has(o)||(i?Dt(o,e,n,a):Fe(o,n,a)),a._s.get(o)}return r.$id=o,r}function He(t){return dt(t)}const Qe=function(t){t.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const s=e.pinia;if(!this._provided){const o={};Object.defineProperty(this,"_provided",{get:()=>o,set:n=>Object.assign(o,n)})}this._provided[St]=s,this.$pinia||(this.$pinia=s),s._a=this,P&&U(s),typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&P&&ve(s._a,s)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})},ke=yt({name:"PhotosFolder",components:{NcButton:pt,FolderOutline:Yt,Close:qt},props:{path:{type:String,required:!0},canDelete:{type:Boolean,default:!1},rootFolderLabel:{type:String,required:!0},rootFolderIcon:{type:Object,required:!0}},emits:["remove-folder"],computed:{folderName(){return this.path==="/"?this.rootFolderLabel:this.path.split("/").pop()},subname(){switch((this.path.match(/\//g)??[]).length){case 1:return"";case 2:return this.path.split("/").splice(0,2).join("/");default:return this.path.split("/").splice(0,3).join("/")}}},methods:{emitRemoveSourceFolder(){this.$emit("remove-folder")},t:N}});var Ie=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"folder"},[t.path==="/"?e(t.rootFolderIcon,{tag:"component"}):e("FolderOutline"),e("span",{staticClass:"folder__info"},[e("div",{staticClass:"folder__path"},[t._v(t._s(t.folderName))]),t.subname!==""?e("div",[t._v(" "+t._s(t.subname)+" ")]):t._e()]),t.canDelete?e("NcButton",{attrs:{variant:"tertiary","aria-label":t.t("photos","Delete source directory")},on:{click:t.emitRemoveSourceFolder},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close",{attrs:{size:20}})]},proxy:!0}],null,!1,2121748766)}):t._e()],1)},je=[],De=mt(ke,Ie,je,!1,null,"74f30535");const Ve=De.exports,Le=yt({name:"PhotosSourceLocationsSettings",components:{NcButton:pt,PhotosFolder:Ve,Plus:Kt},data(){return{FolderMultipleOutline:Xt}},computed:{photosSourceFolders(){return this.$store.state.userConfig.photosSourceFolders}},methods:{debounceAddSourceFolder:Wt(function(...t){this.addSourceFolder(...t)},200,{immediate:!1}),async openFilePicker(t){return Nt(t).setMultiSelect(!1).addMimeTypeFilter("httpd/unix-directory").allowDirectories().addButton({label:N("photos","Pick folder"),callback:e=>Mt.debug("Picked",{nodes:e})}).build().pick()},async addSourceFolder(){const t=await this.openFilePicker(N("photos","Select a source folder for your media"));this.photosSourceFolders.includes(t)||this.$store.dispatch("updateUserConfig",{key:"photosSourceFolders",value:[...this.photosSourceFolders,t]})},removeSourceFolder(t){const e=[...this.photosSourceFolders];e.splice(t,1),this.$store.dispatch("updateUserConfig",{key:"photosSourceFolders",value:e})},t:N}});var Ae=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"photos-locations"},[e("div",{staticClass:"photos-locations__title"},[t._v(" "+t._s(t.t("photos","Media folders"))+" ")]),e("div",{staticClass:"photos-locations__description"},[t._v(" "+t._s(t.t("photos","Choose the folders from where photos and videos are shown."))+" ")]),e("ul",{staticClass:"photos-locations__list"},t._l(t.photosSourceFolders,function(s,o){return e("li",{key:o},[e("PhotosFolder",{attrs:{path:s,"can-delete":t.photosSourceFolders.length!==1,"root-folder-label":t.t("photos","All folders"),"root-folder-icon":t.FolderMultipleOutline},on:{"remove-folder":function(n){return t.removeSourceFolder(o)}}})],1)}),0),e("NcButton",{attrs:{"aria-label":t.t("photos","Add a Photos source for the timelines"),wide:!0},on:{click:t.debounceAddSourceFolder},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Plus",{attrs:{size:20}})]},proxy:!0}])},[t._v(" "+t._s(t.t("photos","Add folder"))+" ")])],1)},Ce=[],Ue=mt(Le,Ae,Ce,!1,null,"55d997fb");const Ge=Ue.exports,ze=Te("filters",()=>{const t=tt(rt.reduce((s,o)=>({...s,[o.id]:[]}),{})),e=gt(()=>Object.entries(t.value).filter(([,s])=>s.length>0).map(([s,o])=>rt.find(n=>n.id===s)?.getQuery(o)).join(` `));return{selectedFilters:t,filtersQuery:e}});export{Ge as P,Qe as a,Je as c,He as s,ze as u}; //# sourceMappingURL=filters-Ck71oeb9.chunk.mjs.map