import{u,k as h,d,h as j,r as m,j as s}from"./main-333.js";import{g as I,$ as b,h as _,d as v,_ as c,i as w,I as C,s as E}from"./bi.636.93.js";import{K as N}from"./bi.502.832.js";import{h as S,c as y}from"./bi.783.833.js";import"./bi.535.730.js";import"./bi.286.731.js";function D({allIntegURL:l}){const p=u(),{formID:f}=h(),[t,a]=d(I),[n,F]=d(b),o=j(_),[i,r]=m.useState(!1),[x,e]=m.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(v,{snack:x,setSnackbar:e}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:g=>S(g,t,a),name:"name",value:t.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(w,{entity:n.triggered_entity,setSnackbar:e}),s.jsx(N,{formID:f,formFields:o,kirimEmailConf:t,setKirimEmailConf:a,isLoading:i,setIsLoading:r,setSnackbar:e}),s.jsx(C,{edit:!0,saveConfig:()=>E({flow:n,allIntegURL:l,conf:t,navigate:p,edit:1,setIsLoading:r,setSnackbar:e}),disabled:!y(t==null?void 0:t.field_map)||t.mainAction===""||i||t.mainAction==="1"&&(t.listId===""||t.listId===void 0),isLoading:i,dataConf:t,setDataConf:a,formFields:o}),s.jsx("br",{})]})}export{D as default};
