import{u as h,d as l,r as c,h as u,j as t}from"./main-406.js";import{$ as _,g as j,h as I,_ as m,i as b,I as C,c as w,s as v}from"./bi.394.85.js";import{h as f,G as y,c as F}from"./bi.321.774.js";import"./bi.704.707.js";import"./bi.701.708.js";function R({allIntegURL:g}){const p=h(),[a,N]=l(_),[e,s]=l(j),[i,o]=c.useState(!1),[S,r]=c.useState({show:!1}),d=u(I),x=()=>{if(!F(e)){w.error("Please map mandatory fields");return}v({flow:a,allIntegURL:g,conf:e,navigate:p,edit:1,setIsLoading:o,setSnackbar:r})};return t.jsxs("div",{style:{width:900},children:[t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:n=>f(n,e,s),name:"name",value:e.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(b,{entity:a.triggered_entity,setSnackbar:r}),t.jsx(y,{formID:a.triggered_entity_id,formFields:d,handleInput:n=>f(n,e,s),getgistConf:e,setGetgistConf:s,isLoading:i,setIsLoading:o}),t.jsx(C,{edit:!0,saveConfig:x,disabled:e.field_map.length<1,isLoading:i,dataConf:e,setDataConf:s,formFields:d}),t.jsx("br",{})]})}export{R as default};
