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