import{bG as l,bH as b,u,bn as C,r as f,p as j,kj as D,bD as S,kk as k,j as x}from"./index-DNBEEyYo.js";import{b as y}from"./index-XpLJ3bKZ.js";import{D as T}from"./DataSourceCreate-DJ6191Al.js";import"./useScreenWithScroll-zcr7TMGO.js";import"./form-nDhxPMre.js";import"./flip-CO85ug7l.js";import"./index-bIvQJs1X.js";import"./sum-elEvBIoZ.js";import"./countBy-CjWkC9gm.js";import"./FeaturesForm-CzZWLvJz.js";import"./TagsForm-BXATGMc8.js";import"./useUpdateTdOrFvInfoService-CZYcDMMa.js";import"./index-Burx7Ja_.js";import"./randomArrayString---X8tfjV.js";import"./sort-BOLIcXtz.js";import"./index-DEeBzOsi.js";import"./Project-D_38ySn9.js";import"./alertManagerConfig.selectors-6Q6ry9ha.js";import"./defineProperty-9LKwahlh.js";import"./HumanizedCronExpression-Cc3xtXqn.js";import"./index-DivQJV92.js";import"./symmetricDifference-lQ_DaX5E.js";import"./git-BLdzamrJ.js";import"./useCopyToClipboard-BnywFRQi.js";import"./AlertForm-BOLtC7QE.js";const Y=()=>{l(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=j(S("type",k(p)),D(p))(a);i({pId:+e,fsId:+t,data:d}).unwrap().then(g=>{o==null||o(g)})},[i,e,t]);return x.jsx(T,{error:s,initialProtocol:n,isSaving:m,isDisabled:!t,onSubmit:c})};export{Y as default};
