import{b as d,$ as h,h as j,k as C,i as _,j as t,_ as c}from"./main.2.8.1.js";import{u as b,h as I,d as l}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S,I as v,s as R}from"./Integrations.D2bgBas2.js";import{h as f}from"./RestrictContentCommonFunc.CEEFyJFV.js";import{R as y}from"./RestrictContentIntegLayout.CvgxfVdK.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./tagify.YxUZd8Ix.js";function B({allIntegURL:p}){const g=b(),{id:F}=I(),[a,N]=d(h),[e,s]=d(j),[o,r]=l.useState(!1),[x,n]=l.useState({show:!1}),m=C(_),u=()=>{R({flow:a,allIntegURL:p,conf:e,navigate:g,edit:1,setIsLoading:r,setSnackbar:n})};return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:x,setSnackbar:n}),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:i=>f(i,e,s),name:"name",value:e.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:a.triggered_entity,setSnackbar:n}),t.jsx(y,{formID:a.triggered_entity_id,formFields:m,handleInput:i=>f(i,e,s),restrictConf:e,setRestrictConf:s,isLoading:o,setIsLoading:r,setSnackbar:n}),t.jsx(v,{edit:!0,saveConfig:u,disabled:e.field_map.length<1,isLoading:o,dataConf:e,setDataConf:s,formFields:m}),t.jsx("br",{})]})}export{B as default};
