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{h as u,g as v,$ as F,k as _,i as N,j as s,_ as j}from"./main.2.8.10.js";import{u as y,e as k,b}from"./react-router.DMwpH23k.js";import{S as E}from"./SnackMsg.7BjcJK1j.js";import{S as $,I as D,s as L}from"./Integrations.BFhED4ck.js";import{h as R,i as A}from"./SendFoxCommonFunc.B3DCRLZz.js";import{S as M}from"./SendFoxIntegLayout.Dt4jRjlw.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";function Y({allIntegURL:a}){const t=y(),{formID:e}=k(),[n,o]=u(v),[d,P]=u(F),c=_(N),[l,m]=b.useState(!1),[h,i]=b.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:h,setSnackbar:i}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:j("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:S,name:"name",value:n.name,type:"text",placeholder:j("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{Y as default};
