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