File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.728.56.js
import{u as h,o as j,e as d,r as c,f as E,j as t}from"./main-685.js";import{$ as _,e as b,f as I,_ as o}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 S,s as v}from"./bi.776.3.js";import{h as f,c as y}from"./bi.761.812.js";import{E as F}from"./bi.776.813.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]=d(_),[e,a]=d(b),[r,m]=c.useState(!1),[x,s]=c.useState({show:!1}),l=E(I),u=()=>{if(!y(e)){s({show:!0,msg:o("Please map mandatory fields","bit-integrations")});return}v({flow:i,allIntegURL:p,conf:e,navigate:g,edit:1,setIsLoading:m,setSnackbar:s})};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-200 d-in-b",children:o("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:n=>f(n,e,a),name:"name",value:e.name,type:"text",placeholder:o("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(C,{entity:i.triggered_entity,setSnackbar:s}),t.jsx(F,{formID:i.triggered_entity_id,formFields:l,handleInput:n=>f(n,e,a),elasticEmailConf:e,setElasticEmailConf:a,isLoading:r,setIsLoading:m,setSnackbar:s}),t.jsx(S,{edit:!0,saveConfig:u,disabled:e.field_map.length<1,isLoading:r,dataConf:e,setDataConf:a,formFields:l}),t.jsx("br",{})]})}export{G as default};