import{b as d,h,$ as j,k as b,i as I,j as t,_ as c}from"./main.2.8.1.js";import{u as C,h as _,d as l}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S,I as v,s as N}from"./Integrations.D2bgBas2.js";import{Z as k}from"./ZoomIntegLayout.TTWQY7u9.js";import{h as p,c as y}from"./ZoomCommonFunc.bNmZvG8d.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function B({allIntegURL:f}){const x=C(),{formID:g}=_(),[e,a]=d(h),[r,F]=d(j),m=b(I),[o,n]=l.useState(!1),[u,s]=l.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:u,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:i=>p(i,e,a),name:"name",value:e.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(S,{entity:r.triggered_entity,setSnackbar:s}),t.jsx(k,{formID:g,formFields:m,handleInput:i=>p(i,e,a,n,s),zoomConf:e,setZoomConf:a,isLoading:o,setIsLoading:n,setSnackbar:s}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:r,allIntegURL:f,conf:e,navigate:x,edit:1,setIsLoading:n,setSnackbar:s}),disabled:e.field_map.length<2||o||!e.id||!y(e)||e.selectedActions==null,isLoading:o,dataConf:e,setDataConf:a,formFields:m}),t.jsx("br",{})]})}export{B as default};
