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