var I=Object.defineProperty;var f=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var x=(a,t,e)=>t in a?I(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,g=(a,t)=>{for(var e in t||(t={}))C.call(t,e)&&x(a,e,t[e]);if(f)for(var e of f(t))w.call(t,e)&&x(a,e,t[e]);return a};import{b as u,h as v,$ as F,k as _,i as N,j as s,_ as h}from"./main.2.8.1.js";import{u as y,h as k,d as j}from"./react-router-dom.9mCuUg3q.js";import{S as E}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as $,I as D,s as L}from"./Integrations.D2bgBas2.js";import{h as R,i as A}from"./SendFoxCommonFunc.DYCIjzPK.js";import{S as M}from"./SendFoxIntegLayout.8Em0bY0f.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function X({allIntegURL:a}){const t=y(),{formID:e}=k(),[n,o]=u(v),[d,P]=u(F),c=_(N),[l,m]=j.useState(!1),[b,i]=j.useState({show:!1}),S=r=>{const p=g({},n);p[r.target.name]=r.target.value,o(p)};return s.jsxs("div",{style:{width:900},children:[s.jsx(E,{snack:b,setSnackbar:i}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:h("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:S,name:"name",value:n.name,type:"text",placeholder:h("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx($,{entity:d.triggered_entity,setSnackbar:i}),s.jsx(M,{formFields:c,handleInput:r=>R(r,n,o,m),sendFoxConf:n,setSendFoxConf:o,isLoading:l,setIsLoading:m,setSnackbar:i}),s.jsx(D,{edit:!0,saveConfig:()=>L({flow:d,allIntegURL:a,conf:n,navigate:t,edit:1,setIsLoading:m,setSnackbar:i}),disabled:A(n),isLoading:l,dataConf:n,setDataConf:o,formFields:c}),s.jsx("br",{})]})}export{X as default};
