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