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