import{aa as c,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as i,s}from"./machine.-tangy-colts-beg-869.js";import{h as d,c as h}from"./commons.-tangy-colts-beg-359.js";import{b as n,h as C}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 D=c(({helpers:o})=>({states:{components:[h(o),{allowClear:!0,componentName:o.componentName.select,fieldType:"config",helperText:a("Select the shared drive to get."),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}]},actions:{SET_CONNECTION:async({$:e,e:t})=>{i("connectionId")({$:e,e:t}),await n(e),C(e,o)},CONNECTION_ADD_CHANGE:d,IF_CONNECTION_SELECTED:({$:e})=>{var t;return r((t=e.getComponent("connection-id"))==null?void 0:t.value)},REFETCH_DRIVES:({$:e})=>n(e),SELECT_DRIVE:i("driveId"),ON_MACHINE_LOAD:({$:e})=>{s(e,[{db:"connectionId",id:"connection-id"},{db:"driveId",id:"drive-id"}]),n(e)}}}));export{D as default};
