var I=Object.defineProperty;var l=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var p=(e,s,t)=>s in e?I(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,d=(e,s)=>{for(var t in s||(s={}))S.call(s,t)&&p(e,t,s[t]);if(l)for(var t of l(s))v.call(s,t)&&p(e,t,s[t]);return e};import{G as N,g as C,r as i,j as a,S as M,_ as u}from"./main-343.js";import{a7 as y}from"./bf-659-81.js";import{I as k}from"./bf-58-184.js";import{h as E}from"./bf-864-98.js";import{Z}from"./bf-952-192.js";import"./bf-974-82.js";import"./bf-649-79.js";function z({formFields:e,setIntegration:s,integrations:t,allIntegURL:h}){const x=N(),{id:n}=C(),[o,c]=i.useState(d({},t[n])),[f,j]=i.useState({show:!1}),[g,b]=i.useState({show:!1}),w=()=>{var r,m;if((r=o.actions)!=null&&r.update&&((m=o.actions)==null?void 0:m.update.criteria)===""&&g.show!=="criteria"){b({show:"criteria"});return}y(t,s,h,o,x,n,1)};return a.jsxs("div",{style:{width:900},children:[a.jsx(M,{snack:f,setSnackbar:j}),a.jsxs("div",{className:"flx mt-3",children:[a.jsx("b",{className:"wdt-100 d-in-b",children:u("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-7",onChange:r=>E(r,o,c),name:"name",value:o.name,type:"text",placeholder:u("Integration Name...")})]}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(Z,{formFields:e,mailConf:o,setMailConf:c}),a.jsx(k,{edit:!0,saveConfig:w}),a.jsx("br",{})]})}export{z as default};
