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-C6OVXshM.js";import{b as y}from"./index-D1PgvL_o.js";import{D as T}from"./DataSourceCreate-B_7LzC8j.js";import"./useScreenWithScroll-zcr7TMGO.js";import"./form-DrxIax0x.js";import"./flip-FKUpVyRf.js";import"./index-CU_u1Yy3.js";import"./sum-BYCx-hLx.js";import"./countBy-DY8bBcai.js";import"./FeaturesForm-rBTLk3bq.js";import"./TagsForm-D7spoAiU.js";import"./useUpdateTdOrFvInfoService-CcnrN7pN.js";import"./index-Cgrh9eC0.js";import"./randomArrayString---X8tfjV.js";import"./sort-BOLIcXtz.js";import"./index-Clp3wC8S.js";import"./Project-CZXtYPe0.js";import"./alertManagerConfig.selectors-DfRN6QT6.js";import"./defineProperty-C28biA2x.js";import"./HumanizedCronExpression-B7-e7zEg.js";import"./index-D-ycbDlq.js";import"./symmetricDifference-BYGiWULO.js";import"./git-BLdzamrJ.js";import"./useCopyToClipboard-CRR-Czhi.js";import"./AlertForm-B4xAdNle.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};
