var I=Object.defineProperty;var p=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var l=(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)&&l(e,t,s[t]);if(p)for(var t of p(s))v.call(s,t)&&l(e,t,s[t]);return e};import{D as N,g as C,r as i,j as a,S as M,_ as u}from"./main-634.js";import{a7 as y}from"./bf-746-82.js";import{I as k}from"./bf-942-184.js";import{h as E}from"./bf-703-96.js";import{Z}from"./bf-578-192.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";function B({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{B as default};
