import{aa as a,ab as l}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{h as i,s as d}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as r}from"./dropboxc-tangy-colts-beg-404.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const C=a(({helpers:e})=>({states:{components:[r(e),{componentName:e.componentName.mixInput,fieldType:"config",helperText:n("Enter the path of the folder to list contents (e.g., /Documents). Leave empty for root folder."),id:"folder-path",label:n("Folder Path"),onChange:"SET_FOLDER_PATH",render:"IF_CONNECTION_SELECTED",required:!1,value:void 0},{componentName:e.componentName.switch,fieldType:"config",helperText:n("If enabled, list all files and folders recursively."),id:"recursive",label:n("Recursive"),onChange:"SET_RECURSIVE",render:"IF_CONNECTION_SELECTED",size:"small",value:!1},{componentName:e.componentName.switch,fieldType:"config",helperText:n("If enabled, include media information for files."),id:"include-media-info",label:n("Include Media Info"),onChange:"SET_INCLUDE_MEDIA_INFO",render:"IF_CONNECTION_SELECTED",size:"small",value:!1},{componentName:e.componentName.switch,fieldType:"config",helperText:n("If enabled, include deleted files in the results."),id:"include-deleted",label:n("Include Deleted"),onChange:"SET_INCLUDE_DELETED",render:"IF_CONNECTION_SELECTED",size:"small",value:!1}]},actions:{SET_CONNECTION:i("connection"),IF_CONNECTION_SELECTED:({$:o})=>{var t;return l((t=o.getComponent("connection-id"))==null?void 0:t.value)},CONNECTION_ADD_CHANGE:c,SET_FOLDER_PATH:i("folderPath"),SET_RECURSIVE:i("recursive"),SET_INCLUDE_MEDIA_INFO:i("includeMediaInfo"),SET_INCLUDE_DELETED:i("includeDeleted"),ON_MACHINE_LOAD:({$:o})=>{d(o,[{db:"connection",id:"connection-id"},{db:"folderPath",id:"folder-path"},{db:"recursive",id:"recursive"},{db:"includeMediaInfo",id:"include-media-info"},{db:"includeDeleted",id:"include-deleted"}])}}}));export{C as default};
