import{h as r,g as b,$ as k,k as y,i as C,j as t,_ as m}from"./main.2.8.10.js";import{u as I,e as S,b as o}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.7BjcJK1j.js";import{S as _,I as v,s as N}from"./Integrations.BFhED4ck.js";import{h as F,B as L,c as B}from"./BooklyIntegLayout.CM1BllFg.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CtRYkgop.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";import"./GlobalIntegrationHelper.Belqr4OT.js";function Q({allIntegURL:d}){const c=I(),{id:E,formID:l}=S(),[s,a]=r(b),[n,p]=r(k),i=y(C),[f,g]=o.useState(!1),[x,u]=o.useState({}),[h,e]=o.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:h,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:j=>F(j,s,a),name:"name",value:s.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(_,{entity:n.triggered_entity,setSnackbar:e}),t.jsx(L,{formID:l,formFields:i,booklyConf:s,setBooklyConf:a,setSnackbar:e,dataLoading:x,setDataLoading:u}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:n,setFlow:p,allIntegURL:d,conf:s,navigate:c,edit:1,setIsLoading:g,setSnackbar:e}),disabled:!B(s),isLoading:f,dataConf:s,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{Q as default};
