File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.229.98.js
import{u as j,e as l,r as o,f as b,j as e}from"./main-685.js";import{$ as I,e as _,f as w,_ as r}from"./bi.878.0.js";import{S as C}from"./bi.674.13.js";import"./bi.451.455.js";import{S as v,I as y,s as F}from"./bi.776.3.js";import{h as f,c}from"./bi.988.889.js";import{S as N}from"./bi.257.890.js";import"./bi.327.9.js";import"./bi.601.11.js";import"./bi.825.14.js";import"./bi.768.751.js";import"./bi.666.752.js";function H({allIntegURL:p}){const g=j(),[i,k]=l(I),[t,a]=l(_),[u,E]=o.useState(!1),[x,d]=o.useState({list:!1,field:!1,auth:!1,tags:!1}),[h,s]=o.useState({show:!1}),m=b(w),S=()=>{if(!c(t)){s({show:!0,msg:r("Please map mandatory fields","bit-integrations")});return}F({flow:i,allIntegURL:p,conf:t,navigate:g,edit:1,setLoading:d,setSnackbar:s})};return e.jsxs("div",{style:{width:900},children:[e.jsx(C,{snack:h,setSnackbar:s}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:r("Integration Name:","bit-integrations")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:n=>f(n,t,a),name:"name",value:t.name,type:"text",placeholder:r("Integration Name...","bit-integrations")})]}),e.jsx("br",{}),e.jsx(v,{entity:i.triggered_entity,setSnackbar:s}),e.jsx(N,{formID:i.triggered_entity_id,formFields:m,handleInput:n=>f(n,t,a),sendGridConf:t,setSendGridConf:a,loading:x,setLoading:d,setSnackbar:s}),e.jsx(y,{edit:!0,saveConfig:S,disabled:!c(t),isLoading:u,dataConf:t,setDataConf:a,formFields:m}),e.jsx("br",{})]})}export{H as default};