import{h as m,g as h,$ as j,k as S,i as b,j as t,_ as l}from"./main.2.8.10.js";import{u as I,e as _,b as d}from"./react-router.DMwpH23k.js";import{S as C}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as F,I as w,s as v}from"./Integrations.BFhED4ck.js";import{F as N}from"./FluentSupportIntegLayout.Dysp7rqt.js";import{h as c,c as k}from"./FluentSupportCommonFunc.BqpnS96O.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./ActionProFeatureLabels.BzMNdAoD.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";function J({allIntegURL:f}){const u=I(),{formID:x}=_(),[e,s]=m(h),[i,y]=m(j),r=S(b),[o,p]=d.useState(!1),[g,a]=d.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:l("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:l("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:n=>c(n,e,s),fluentSupportConf:e,setFluentSupportConf:s,isLoading:o,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:o||e.field_map.length<1||!k(e)||!e.actions.support_staff,isLoading:o,dataConf:e,setDataConf:s,formFields:r}),t.jsx("br",{})]})}export{J as default};
