var S=Object.defineProperty;var g=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var p=(a,s,t)=>s in a?S(a,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[s]=t,c=(a,s)=>{for(var t in s||(s={}))b.call(s,t)&&p(a,t,s[t]);if(g)for(var t of g(s))v.call(s,t)&&p(a,t,s[t]);return a};import{D as N,g as C,r as i,j as e,S as w,_ as u}from"./main-634.js";import{a7 as y}from"./bf-746-82.js";import{I as G}from"./bf-942-184.js";import{a as l}from"./bf-935-178.js";import{G as k}from"./bf-252-223.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-824-186.js";import"./bf-438-114.js";function B({formFields:a,setIntegration:s,integrations:t,allIntegURL:f}){const h=N(),{id:m,formID:E}=C(),[o,n]=i.useState(c({},t[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(w,{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(G,{edit:!0,saveConfig:()=>y(t,s,f,o,h,m,1)}),e.jsx("br",{})]})}export{B as default};
