import{u as b,k as g,d as o,h as I,r,j as t}from"./main-406.js";import{g as w,$ as _,h as v,d as N,_ as d,i as S,I as k,s as y}from"./bi.394.85.js";import{h as F,c as E}from"./bi.545.758.js";import{G}from"./bi.384.759.js";import"./bi.704.707.js";import"./bi.701.708.js";import"./bi.285.720.js";import"./bi.840.704.js";function T({allIntegURL:c}){const m=b(),{id:l}=g(),[s,e]=o(w),[i,p]=o(_),n=I(v),[x,f]=r.useState(!1),[u,a]=r.useState({show:!1}),h=()=>{y({flow:i,setFlow:p,allIntegURL:c,conf:s,navigate:m,edit:1,setIsLoading:f,setSnackbar:a})};return t.jsxs("div",{style:{width:900},className:"p-2",children:[t.jsx(N,{snack:u,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:j=>F(j,s,e),name:"name",value:s.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(S,{entity:i.triggered_entity,setSnackbar:a}),t.jsx(G,{flowID:l,formFields:n,googleCalendarConf:s,setGoogleCalendarConf:e}),t.jsx(k,{edit:!0,saveConfig:h,disabled:!(s!=null&&s.calendarId)||!(s!=null&&s.timeZone)||!E(s==null?void 0:s.field_map),isLoading:x,dataConf:s,setDataConf:e,formFields:n}),t.jsx("br",{})]})}export{T as default};
