import{h as d,$ as h,g as j,k as C,i as _,j as t,_ as c}from"./main.2.9.0.js";import{u as b,e as I,b as l}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S,I as v,s as R}from"./Integrations.DL8wqGct.js";import{h as f}from"./RestrictContentCommonFunc.1-Nq6spW.js";import{R as y}from"./RestrictContentIntegLayout.vGgh_RPf.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.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};
