File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.387.71.js
import{u as b,o as I,e as c,f as C,r as p,j as t}from"./main-685.js";import{e as _,$ as v,f as w,_ as g}from"./bi.878.0.js";import{S}from"./bi.674.13.js";import"./bi.451.455.js";import{S as N,I as y,s as E}from"./bi.776.3.js";import{h as l}from"./bi.160.840.js";import{G as F}from"./bi.746.841.js";import"./bi.327.9.js";import"./bi.601.11.js";import"./bi.825.14.js";import"./bi.138.764.js";import"./bi.482.10.js";import"./bi.768.751.js";import"./bi.666.752.js";function J({allIntegURL:f}){var d;const u=b(),{formID:x}=I(),[s,e]=c(_),[i,G]=c(v),r=C(w),[a,m]=p.useState(!1),[h,o]=p.useState({show:!1}),j=!(s.mainAction==="2"&&s.addTagToUser!==void 0);return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:h,setSnackbar:o}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:g("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:n=>l(n,s,e),name:"name",value:s.name,type:"text",placeholder:g("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(N,{entity:i.triggered_entity,setSnackbar:o}),t.jsx(F,{formID:x,formFields:r,handleInput:n=>l(n,s,e),groundhoggConf:s,setGroundhoggConf:e,isLoading:a,setIsLoading:m,setSnackbar:o}),t.jsx(y,{edit:!0,saveConfig:()=>E({flow:i,allIntegURL:f,conf:s,navigate:u,edit:1,setIsLoading:m,setSnackbar:o}),disabled:(s.mainAction==="2"?j:!(((d=s.field_map)==null?void 0:d.length)>=1))||a,isLoading:a,dataConf:s,setDataConf:e,formFields:r}),t.jsx("br",{})]})}export{J as default};