import{h as n,g as b,$ as g,k as I,i as w,j as s,_ as r}from"./main.2.8.10.js";import{u as _,e as S,b as m}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as N,I as k,s as y}from"./Integrations.BFhED4ck.js";import{h as F,c as E}from"./GoogleCalendarCommonFunc.Cg1hv4Pe.js";import{G}from"./GoogleCalendarIntegLayout.Cgoxg0Ym.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";import"./TitleModal.i_o1jzAL.js";import"./EditIcn.CsPP2qkf.js";function K({allIntegURL:c}){const p=_(),{id:d}=S(),[t,e]=n(b),[i,l]=n(g),o=I(w),[x,f]=m.useState(!1),[u,a]=m.useState({show:!1}),j=()=>{y({flow:i,setFlow:l,allIntegURL:c,conf:t,navigate:p,edit:1,setIsLoading:f,setSnackbar:a})};return s.jsxs("div",{style:{width:900},className:"p-2",children:[s.jsx(v,{snack:u,setSnackbar:a}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:r("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:h=>F(h,t,e),name:"name",value:t.name,type:"text",placeholder:r("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(N,{entity:i.triggered_entity,setSnackbar:a}),s.jsx(G,{flowID:d,formFields:o,googleCalendarConf:t,setGoogleCalendarConf:e}),s.jsx(k,{edit:!0,saveConfig:j,disabled:!(t!=null&&t.calendarId)||!(t!=null&&t.timeZone)||!E(t==null?void 0:t.field_map),isLoading:x,dataConf:t,setDataConf:e,formFields:o}),s.jsx("br",{})]})}export{K as default};
