import{u as h,k as j,d,h as C,r as m,j as t}from"./main-406.js";import{g as v,$ as b,h as I,d as w,j as c,i as _,I as N,s as S}from"./bi.394.85.js";import{h as y}from"./bi.344.741.js";import{A}from"./bi.619.742.js";import"./bi.704.707.js";import"./bi.701.708.js";function M({allIntegURL:l}){const p=h(),{id:k,formID:f}=j(),[a,s]=d(v),[n,g]=d(b),i=C(I),[o,r]=m.useState(!1),[x,e]=m.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:x,setSnackbar:e}),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:u=>y(u,a,s),name:"name",value:a.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(_,{entity:n.triggered_entity,setSnackbar:e}),t.jsx(A,{formID:f,formFields:i,activeCampaingConf:a,setActiveCampaingConf:s,isLoading:o,setIsLoading:r,setSnackbar:e}),t.jsx(N,{edit:!0,saveConfig:()=>S({flow:n,setFlow:g,allIntegURL:l,navigate:p,conf:a,edit:1,setIsLoading:r,setSnackbar:e}),disabled:a.field_map.length<1,isLoading:o,dataConf:a,setDataConf:s,formFields:i}),t.jsx("br",{})]})}export{M as default};
