import{u as j,k as I,d as m,r as c,h as b,j as e}from"./main-333.js";import{g as w,$ as C,h as S,d as _,_ as f,i as v,I as N,s as k}from"./bi.636.93.js";import{h as p}from"./bi.576.752.js";import{G as y}from"./bi.872.753.js";import"./bi.864.754.js";import"./bi.535.730.js";import"./bi.286.731.js";function M({allIntegURL:g}){const h=j(),{id:E,formID:i}=I(),[t,a]=m(w),[r,x]=m(C),[d,n]=c.useState(!1),[u,s]=c.useState({show:!1}),l=b(S);return e.jsxs("div",{style:{width:900},children:[e.jsx(_,{snack:u,setSnackbar:s}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:f("Integration Name:","bit-integrations")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:o=>p(o,t,a),name:"name",value:t.name,type:"text",placeholder:f("Integration Name...","bit-integrations")})]}),e.jsx("br",{}),e.jsx(v,{entity:r.triggered_entity,setSnackbar:s}),e.jsx(y,{formID:i,formFields:l,handleInput:o=>p(o,t,a,i,n,s),sheetConf:t,setSheetConf:a,isLoading:d,setIsLoading:n,setSnackbar:s}),e.jsx(N,{edit:!0,saveConfig:()=>k({flow:r,setFlow:x,allIntegURL:g,conf:t,navigate:h,edit:1,setIsLoading:n,setSnackbar:s}),disabled:t.spreadsheetId===""||t.worksheetName===""||t.field_map.length<1,isLoading:d,dataConf:t,setDataConf:a,formFields:l}),e.jsx("br",{})]})}export{M as default};
