文件操作 - bi.85.457.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/i2kairpad/public_html/wp-content/plugins/bit-integrations/assets/bi.85.457.js
编辑文件内容
import{f as v,u as A,o as I,r,j as t}from"./main-174.js";import{d as b,_ as E,z as s}from"./bi.964.0.js";import"./bi.89.470.js";import{B as L}from"./bi.417.813.js";import{S as j}from"./bi.60.1041.js";import{I as C,g as N}from"./bi.48.3.js";import O from"./bi.571.295.js";import{O as R,c as o,T as a}from"./bi.185.1017.js";import{H as U}from"./bi.294.1018.js";import"./bi.873.9.js";import"./bi.404.13.js";import"./bi.755.11.js";import"./bi.410.14.js";import"./bi.546.818.js";import"./bi.45.805.js";import"./bi.54.773.js";import"./bi.573.774.js";function X({formFields:c,setFlow:f,flow:u,allIntegURL:T}){const g=v(b),{isPro:P}=g,k=A(),{formID:n}=I(),[h,_]=r.useState(!1),[i,d]=r.useState(1),[p,m]=r.useState({auth:!1,customFields:!1,options:!1,contacts:!1,users:!1,hlTasks:!1,pipelines:!1,opportunities:!1}),[e,l]=r.useState({name:"GoHighLevel",type:"GoHighLevel",api_key:"",field_map:[{formField:"",highLevelField:""}],actions:{},tags:[],version:P?"v2":"v1",highLevelFields:[],selectedTags:"",selectedTask:"",contacts:[],selectedContact:"",selectedTaskStatus:"",users:[],selectedUser:"",hlTasks:[],updateTaskId:"",pipelines:[],selectedPipeline:"",stages:[],currentStages:[],selectedStage:"",opportunities:[],selectedOpportunity:""}),x=S=>{if(setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),S===3){if(!R.includes(e.selectedTask)&&!o(e)){s.error("Please map all required fields to continue!");return}if(!(e!=null&&e.selectedTask)){s.error("Please select task to continue!");return}if(e.selectedTask===a.UPDATE_CONTACT&&!e.selectedContact&&!o(e)){s.error("Please select a contact or map fields!");return}if((e.selectedTask===a.CREATE_TASK||e.selectedTask===a.UPDATE_TASK)&&!e.selectedContact&&!o(e)){s.error("Please select a contact or map fields!");return}if(e.selectedTask===a.UPDATE_TASK&&!e.updateTaskId&&!o(e)){s.error("Please select a task or map fields!");return}if(e.selectedTask===a.CREATE_OPPORTUNITY||e.selectedTask===a.UPDATE_OPPORTUNITY){if(!e.selectedPipeline){s.error("Please select a pipeline!");return}if(!e.selectedStage){s.error("Please select a stage!");return}if(!e.selectedTaskStatus){s.error("Please select a status!");return}}e.name!==""&&e.field_map.length>0&&d(3)}};return t.jsxs("div",{children:[t.jsx("div",{className:"txt-center mt-2",children:t.jsx(j,{step:3,active:i})}),t.jsx(O,{formID:n,highLevelConf:e,setHighLevelConf:l,step:i,setstep:d,loading:p,setLoading:m}),t.jsxs("div",{className:"btcd-stp-page",style:{width:i===2&&900,height:i===2&&"auto"},children:[t.jsx(U,{formID:n,formFields:c,highLevelConf:e,setHighLevelConf:l,loading:p,setLoading:m}),t.jsxs("button",{onClick:()=>x(3),disabled:!(e!=null&&e.selectedTask),className:"btn f-right btcd-btn-lg purple sh-sm flx",type:"button",children:[E("Next","bit-integrations")," ",t.jsx(L,{className:"ml-1 rev-icn"})]})]}),t.jsx(C,{step:i,saveConfig:()=>N(u,f,T,e,k,"","",_),isLoading:h,dataConf:e,setDataConf:l,formFields:c})]})}export{X as default};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件