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