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