import{aa as i,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as t,s as l}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as h}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=i(({helpers:e})=>({states:{components:[h(e),{componentName:e.componentName.mixInput,fieldType:"config",helperText:a("Enter the path where the folder should be created (e.g., /Documents/NewFolder)."),id:"folder-path",label:a("Folder Path"),onChange:"SET_FOLDER_PATH",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.switch,fieldType:"config",helperText:a("If enabled, automatically rename the folder if a folder with the same name already exists."),id:"auto-rename",label:a("Auto Rename"),onChange:"SET_AUTO_RENAME",render:"IF_CONNECTION_SELECTED",size:"small",value:!1}]},actions:{SET_CONNECTION:t("connection"),IF_CONNECTION_SELECTED:({$:o})=>{var n;return r((n=o.getComponent("connection-id"))==null?void 0:n.value)},CONNECTION_ADD_CHANGE:c,SET_FOLDER_PATH:t("folderPath"),SET_AUTO_RENAME:t("autoRename"),ON_MACHINE_LOAD:({$:o})=>{l(o,[{db:"connection",id:"connection-id"},{db:"folderPath",id:"folder-path"},{db:"autoRename",id:"auto-rename"}])}}}));export{C as default};
