import{h as r,g as b,$ as k,k as y,i as C,j as t,_ as m}from"./main.2.9.0.js";import{u as I,e as S,b as o}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.DYSD96P4.js";import{S as _,I as v,s as N}from"./Integrations.DL8wqGct.js";import{h as F,B as L,c as B}from"./BooklyIntegLayout.BNFQDG-Q.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CHf_DzPf.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";import"./GlobalIntegrationHelper.B6YI8w_n.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};
