import{h as m,g as u,$ as h,k as j,i as b,j as s,_ as d}from"./main.2.8.10.js";import{u as k,e as C,b as c}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.7BjcJK1j.js";import{S as I,I as S,s as _}from"./Integrations.BFhED4ck.js";import{h as v,B as N,c as y}from"./BookingPressIntegLayout.DBCsstfv.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 J({allIntegURL:p}){const l=k(),{id:F}=C(),[t,o]=m(u),[a,f]=m(h),i=j(b),[n,r]=c.useState(!1),[g,e]=c.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(w,{snack:g,setSnackbar:e}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:x=>v(x,t,o),name:"name",value:t.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx(I,{entity:a.triggered_entity,setSnackbar:e}),s.jsx(N,{formFields:i,bookingPressConf:t,setBookingPressConf:o,setSnackbar:e,setIsLoading:r,isLoading:n}),s.jsx(S,{edit:!0,saveConfig:()=>_({flow:a,setFlow:f,allIntegURL:p,conf:t,navigate:l,edit:1,setIsLoading:r,setSnackbar:e}),disabled:!y(t),isLoading:n,dataConf:t,setDataConf:o,formFields:i}),s.jsx("br",{})]})}export{J as default};
