import{bG as g,bH as b,u,bn as C,r as f,p as D,kk as S,bD as j,kl as k,j as x}from"./index-Cox3ZWL0.js";import{b as y}from"./index-DwNWquSM.js";import{D as T}from"./DataSourceCreate-CdUyXgQn.js";import"./useScreenWithScroll-zcr7TMGO.js";import"./form-_K_-Blw_.js";import"./flip-N5Tfpc8q.js";import"./index-B_EdXPH-.js";import"./sum-vCGMSauX.js";import"./countBy--o8yV8EI.js";import"./FeaturesForm-DNoDFZp2.js";import"./TagsForm-ChKTdobu.js";import"./useUpdateTdOrFvInfoService-aQ3jOLSd.js";import"./index-uwkRD1BL.js";import"./randomArrayString---X8tfjV.js";import"./sort-BOLIcXtz.js";import"./index-DlTLF62i.js";import"./Project-CBPFwDml.js";import"./alertManagerConfig.selectors-D5v0uPxO.js";import"./defineProperty-Bl0iR0r2.js";import"./HumanizedCronExpression-CCEBWMyY.js";import"./index-CvEisYn5.js";import"./symmetricDifference-DM6mun8f.js";import"./git-BLdzamrJ.js";import"./useCopyToClipboard-C9cjFU4I.js";import"./AlertForm-BH8pll6k.js";const Y=()=>{g(b.createStorageConnector);const{protocol:r,id:e,fsId:t}=u(),[i,{error:s,isLoading:m}]=y(),n=Object.keys(C).includes(String(r))?r:void 0,c=f.useCallback((a,o)=>{const{storageConnectorType:p}=a,d=D(j("type",k(p)),S(p))(a);i({pId:+e,fsId:+t,data:d}).unwrap().then(l=>{o==null||o(l)})},[i,e,t]);return x.jsx(T,{error:s,initialProtocol:n,isSaving:m,isDisabled:!t,onSubmit:c})};export{Y as default};
