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.9.0.js";import{u as y,e as k,b}from"./react-router.DMwpH23k.js";import{S as E}from"./SnackMsg.DYSD96P4.js";import{S as $,I as D,s as L}from"./Integrations.DL8wqGct.js";import{h as R,i as A}from"./SendFoxCommonFunc.BXWHC2Im.js";import{S as M}from"./SendFoxIntegLayout.v_NjpLes.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.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};
