import{b as m,h,$ as j,k as C,i as b,j as t,_ as c}from"./main.2.8.1.js";import{u as w,h as I,d}from"./react-router-dom.9mCuUg3q.js";import{S}from"./SnackMsg.S8DrwLlT.js";import{S as _,I as v,s as N}from"./Integrations.D2bgBas2.js";import{h as k,c as y}from"./WPCafeCommonFunc.Dxed9e_Q.js";import{W as F}from"./WPCafeIntegLayout.8oIlGVSk.js";import"./Note.BeM7sN-p.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./ProUtilHelpers.fQlR3mWW.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";import"./GlobalIntegrationHelper.CgnhJgll.js";function J({allIntegURL:p}){const f=w(),{id:E,formID:l}=I(),[e,a]=m(h),[o,x]=m(j),i=C(b),[n,r]=d.useState(!1),[g,s]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:g,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>k(u,e,a),name:"name",value:e.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(_,{entity:o.triggered_entity,setSnackbar:s}),t.jsx(F,{formID:l,formFields:i,wpcafeConf:e,setWpcafeConf:a,setSnackbar:s,setIsLoading:r,isLoading:n}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,setFlow:x,allIntegURL:p,conf:e,navigate:f,edit:1,setIsLoading:r,setSnackbar:s}),disabled:!y(e),isLoading:n,dataConf:e,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{J as default};
