HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.266.163.js
import{u as h,o as I,e as d,f as E,r as n,j as s}from"./main-685.js";import{e as C,$ as j,f as L,_ as f,V as t}from"./bi.878.0.js";import{S as N}from"./bi.674.13.js";import{S as b,I as v,s as R}from"./bi.776.3.js";import{h as w,O,c as i,T as a}from"./bi.632.993.js";import{H as D}from"./bi.380.994.js";import"./bi.451.455.js";import"./bi.601.11.js";import"./bi.327.9.js";import"./bi.825.14.js";import"./bi.768.751.js";import"./bi.666.752.js";function J({allIntegURL:p}){const m=h(),{id:F,formID:u}=I(),[e,r]=d(C),[l,T]=d(j),c=E(L),[g,P]=n.useState(!1),[_,o]=n.useState({show:!1}),[k,x]=n.useState({auth:!1,customFields:!1,options:!1,contacts:!1,users:!1,hlTasks:!1,pipelines:!1,opportunities:!1}),A=()=>{if(!O.includes(e.selectedTask)&&!i(e)){t.error("Please map all required fields to continue!");return}if(!(e!=null&&e.selectedTask)){t.error("Please select task to continue!");return}if(e.selectedTask===a.UPDATE_CONTACT&&!e.selectedContact&&!i(e)){t.error("Please select a contact or map fields!");return}if((e.selectedTask===a.CREATE_TASK||e.selectedTask===a.UPDATE_TASK)&&!e.selectedContact&&!i(e)){t.error("Please select a contact or map fields!");return}if(e.selectedTask===a.UPDATE_TASK&&!e.updateTaskId&&!i(e)){t.error("Please select a task or map fields!");return}if(e.selectedTask===a.CREATE_OPPORTUNITY||e.selectedTask===a.UPDATE_OPPORTUNITY){if(!e.selectedPipeline){t.error("Please select a pipeline!");return}if(!e.selectedStage){t.error("Please select a stage!");return}if(!e.selectedTaskStatus){t.error("Please select a status!");return}}e.field_map.length>0&&R({flow:l,setFlow:T,allIntegURL:p,navigate:m,conf:e,edit:1,setIsLoading:P,setSnackbar:o})};return s.jsxs("div",{style:{width:900},children:[s.jsx(N,{snack:_,setSnackbar:o}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:f("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:S=>w(S,e,r),name:"name",value:e.name,type:"text",placeholder:f("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx(b,{entity:l.triggered_entity,setSnackbar:o}),s.jsx(D,{formID:u,formFields:c,highLevelConf:e,setHighLevelConf:r,loading:k,setLoading:x}),s.jsx(v,{edit:!0,saveConfig:A,disabled:!e.selectedTask,isLoading:g,dataConf:e,setDataConf:r,formFields:c}),s.jsx("br",{})]})}export{J as default};