import{h as n,g as b,$ as g,k as I,i as w,j as s,_ as r}from"./main.2.9.0.js";import{u as _,e as S,b as m}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as N,I as k,s as y}from"./Integrations.DL8wqGct.js";import{h as F,c as E}from"./GoogleCalendarCommonFunc.DyyfhKs6.js";import{G}from"./GoogleCalendarIntegLayout.ChQOMFuJ.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";import"./TitleModal.emRFbfw0.js";import"./EditIcn.ClgiZunh.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};
