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