File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.624.36.js
import{u as h,o as b,e as d,f as I,r as n,j as t}from"./main-685.js";import{e as S,$ as _,f as v,_ as l}from"./bi.878.0.js";import{S as w}from"./bi.674.13.js";import"./bi.451.455.js";import{S as C,I as N,s as y}from"./bi.776.3.js";import{h as T}from"./bi.214.792.js";import{T as E}from"./bi.290.793.js";import"./bi.327.9.js";import"./bi.601.11.js";import"./bi.825.14.js";import"./bi.94.763.js";import"./bi.620.794.js";/* empty css */function J({allIntegURL:p}){const f=h(),{formID:g}=b(),[e,a]=d(S),[i,F]=d(_),r=I(v),[o,m]=n.useState(!1),[x,s]=n.useState({show:!1}),[u,j]=n.useState((e==null?void 0:e.name)||"");return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:x,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-150 d-in-b",children:l("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:c=>{j(c.target.value),T(c,e,a)},name:"name",value:u,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(C,{entity:i.triggered_entity,setSnackbar:s}),t.jsx(E,{formID:g,formFields:r,telegramConf:e,setTelegramConf:a,isLoading:o,setIsLoading:m,setSnackbar:s}),t.jsx(N,{edit:!0,saveConfig:()=>y({flow:i,allIntegURL:p,conf:e,navigate:f,edit:1,setIsLoading:m,setSnackbar:s}),disabled:e.chat_id===""||o,isLoading:o,dataConf:e,setDataConf:a,formFields:r}),t.jsx("br",{})]})}export{J as default};