import{aa as r,ab as d}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as t,s as c}from"./machine.-tangy-colts-beg-869.js";import{h,c as E}from"./commons.-tangy-colts-beg-359.js";import{b as i,h as m}from"./machineh-tangy-colts-beg-169.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(o,e){return this.cache.has(o)?this.cache.get(o):(this.cache.set(o,e),e)}};const T=r(({helpers:o})=>({states:{components:[E(o),{allowClear:!0,componentName:o.componentName.select,fieldType:"config",helperText:a("Select the shared drive to update."),id:"drive-id",label:a("Shared Drive"),onChange:"SELECT_DRIVE",onRefetch:"REFETCH_DRIVES",options:[],render:"IF_CONNECTION_SELECTED",required:!0,showSearch:!0,value:void 0},{componentName:o.componentName.mixInput,fieldType:"config",helperText:a("The updated name of the shared drive."),id:"name",label:a("Name"),onChange:"SET_NAME",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{SET_CONNECTION:async({$:e,e:n})=>{t("connectionId")({$:e,e:n}),await i(e),m(e,o)},CONNECTION_ADD_CHANGE:h,IF_CONNECTION_SELECTED:({$:e})=>{var n;return d((n=e.getComponent("connection-id"))==null?void 0:n.value)},REFETCH_DRIVES:({$:e})=>i(e),SELECT_DRIVE:t("driveId"),SET_NAME:t("name"),ON_MACHINE_LOAD:({$:e})=>{c(e,[{db:"connectionId",id:"connection-id"},{db:"driveId",id:"drive-id"},{db:"name",id:"name"}]),i(e)}}}));export{T as default};
