File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.519.58.js
import{u as h,o as j,e as c,r as l,f as _,j as t}from"./main-685.js";import{$ as b,e as I,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,I as v,s as y}from"./bi.776.3.js";import{h as f,c as F}from"./bi.317.815.js";import{M}from"./bi.963.816.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 G({allIntegURL:p}){const g=h();j();const[i,N]=c(b),[e,a]=c(I),[m,n]=l.useState(!1),[u,s]=l.useState({show:!1}),d=_(w),x=()=>{if(!F(e)){s({show:!0,msg:r("Please map mandatory fields","bit-integrations")});return}y({flow:i,allIntegURL:p,conf:e,navigate:g,edit:1,setIsLoading:n,setSnackbar:s})};return t.jsxs("div",{style:{width:900},children:[t.jsx(C,{snack:u,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=>f(o,e,a),name:"name",value:e.name,type:"text",placeholder:r("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:i.triggered_entity,setSnackbar:s}),t.jsx(M,{formID:i.triggered_entity_id,formFields:d,handleInput:o=>f(o,e,a,n,s),mauticConf:e,setMauticConf:a,isLoading:m,setIsLoading:n,setSnackbar:s}),t.jsx(v,{edit:!0,saveConfig:x,disabled:e.field_map.length<1,isLoading:m,dataConf:e,setDataConf:a,formFields:d}),t.jsx("br",{})]})}export{G as default};