import{h as c,g as C,$ as N,k as I,i as L,j as t,_ as d}from"./main.2.9.0.js";import{u as S,e as w,b as o}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.DYSD96P4.js";import{S as y,I as E,s as k}from"./Integrations.DL8wqGct.js";import{L as F}from"./LineIntegLayout.BUwI8Abv.js";import{h as $,v as R}from"./LineCommonFunc.CS8qjo7d.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CHf_DzPf.js";import"./TagifyInput.KPPRQJ1B.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};
