import{h as m,g as h,$ as j,k as S,i as b,j as t,_ as l}from"./main.2.9.0.js";import{u as I,e as _,b as d}from"./react-router.DMwpH23k.js";import{S as C}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as F,I as w,s as v}from"./Integrations.DL8wqGct.js";import{F as N}from"./FluentSupportIntegLayout.BtfCHgZc.js";import{h as c,c as k}from"./FluentSupportCommonFunc.6dWnagsT.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./ActionProFeatureLabels.gUp7_RXn.js";import"./TagifyInput.KPPRQJ1B.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};
