var S=Object.defineProperty;var g=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var p=(a,t,s)=>t in a?S(a,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[t]=s,c=(a,t)=>{for(var s in t||(t={}))b.call(t,s)&&p(a,s,t[s]);if(g)for(var s of g(t))v.call(t,s)&&p(a,s,t[s]);return a};import{G as N,g as C,r as i,j as e,S as G,_ as u}from"./main-343.js";import{a7 as w}from"./bf-659-81.js";import{I as y}from"./bf-58-184.js";import{a as l}from"./bf-695-178.js";import{G as k}from"./bf-713-223.js";import"./bf-974-82.js";import"./bf-649-79.js";import"./bf-541-186.js";import"./bf-594-113.js";function z({formFields:a,setIntegration:t,integrations:s,allIntegURL:f}){const h=N(),{id:m,formID:E}=C(),[o,n]=i.useState(c({},s[m])),[x,j]=i.useState(!1),[I,d]=i.useState({show:!1});return o.mainAction==="2"&&o.addTagToUser,e.jsxs("div",{style:{width:900},children:[e.jsx(G,{snack:I,setSnackbar:d}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:u("Integration Name:")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:r=>l(r,o,n),name:"name",value:o.name,type:"text",placeholder:u("Integration Name...")})]}),e.jsx("br",{}),e.jsx(k,{formFields:a,handleInput:r=>l(r,o,n),groundhoggConf:o,setGroundhoggConf:n,isLoading:x,setIsLoading:j,setSnackbar:d}),e.jsx(y,{edit:!0,saveConfig:()=>w(s,t,f,o,h,m,1)}),e.jsx("br",{})]})}export{z as default};
