File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.963.112.js
import{u as j,o as h,e as f,f as L,r as d,j as t}from"./main-685.js";import{e as b,$ as I,f as C,_ as c}from"./bi.878.0.js";import{S as w}from"./bi.674.13.js";import"./bi.451.455.js";import{S,I as _,s as v}from"./bi.776.3.js";import{h as l,L as N}from"./bi.601.915.js";import"./bi.327.9.js";import"./bi.601.11.js";import"./bi.825.14.js";function T({allIntegURL:p}){const x=j(),{formID:g}=h(),[s,e]=f(b),[i,y]=f(I),r=L(C),[n,m]=d.useState(!1),[u,a]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:u,setSnackbar:a}),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:o=>l(o,s,e),name:"name",value:s.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(S,{entity:i.triggered_entity,setSnackbar:a}),t.jsx(N,{formID:g,formFields:r,handleInput:o=>l(o,s,e),lifterLmsConf:s,setLifterLmsConf:e,isLoading:n,setIsLoading:m,setSnackbar:a}),t.jsx(_,{edit:!0,saveConfig:()=>v({flow:i,allIntegURL:p,conf:s,navigate:x,edit:1,setIsLoading:m,setSnackbar:a}),disabled:s.mainAction===""||n,isLoading:n,dataConf:s,setDataConf:e,formFields:r}),t.jsx("br",{})]})}export{T as default};