import{b as c,h as C,$ as N,k as I,i as L,j as t,_ as d}from"./main.2.8.1.js";import{u as S,h as w,d as o}from"./react-router-dom.9mCuUg3q.js";import{S as _}from"./SnackMsg.S8DrwLlT.js";import{S as y,I as E,s as k}from"./Integrations.D2bgBas2.js";import{L as F}from"./LineIntegLayout.Ba2VE0x7.js";import{h as $,v as R}from"./LineCommonFunc.MwB8WJU8.js";import"./Note.BeM7sN-p.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./ProUtilHelpers.fQlR3mWW.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function U({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{U as default};
