import{h as c,g as C,$ as N,k as I,i as L,j as t,_ as d}from"./main.2.8.10.js";import{u as S,e as w,b as o}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.7BjcJK1j.js";import{S as y,I as E,s as k}from"./Integrations.BFhED4ck.js";import{L as F}from"./LineIntegLayout.CTNSDxol.js";import{h as $,v as R}from"./LineCommonFunc.swLyhc3G.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CtRYkgop.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";function V({allIntegURL:p}){const f=S(),{formID:g}=w(),[e,s]=c(C),[i,D]=c(N),r=I(L),[n,m]=o.useState(!1),[u,a]=o.useState({show:!1}),[x,h]=o.useState(e.name||""),j=()=>R(e),b=l=>{const v=l.target.value;h(v),$(l,e,s)};return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:u,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",name:"name",type:"text",value:x,placeholder:d("Integration Name...","bit-integrations"),onChange:b})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(y,{entity:i.triggered_entity,setSnackbar:a}),t.jsx(F,{formID:g,formFields:r,lineConf:e,setLineConf:s,isLoading:n,setIsLoading:m,setSnackbar:a}),t.jsx(E,{edit:!0,saveConfig:()=>k({flow:i,allIntegURL:p,conf:e,navigate:f,edit:1,setIsLoading:m,setSnackbar:a}),disabled:!j()||n,isLoading:n,dataConf:e,setDataConf:s,formFields:r})]})}export{V as default};
