import{h as d,$ as h,g as j,k as C,i as _,j as t,_ as c}from"./main.2.8.10.js";import{u as b,e as I,b as l}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S,I as v,s as R}from"./Integrations.BFhED4ck.js";import{h as f}from"./RestrictContentCommonFunc.pQlV4nWE.js";import{R as y}from"./RestrictContentIntegLayout.B0h2T3g3.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./lodash.DCvQBX3r.js";function G({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{G as default};
