文件操作 - bi.571.295.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/i2kairpad/public_html/wp-content/plugins/bit-integrations/assets/bi.571.295.js
编辑文件内容
var G=Object.defineProperty;var j=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var k=(n,e,s)=>e in n?G(n,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[e]=s,b=(n,e)=>{for(var s in e||(e={}))H.call(e,s)&&k(n,s,e[s]);if(j)for(var s of j(e))_.call(e,s)&&k(n,s,e[s]);return n};import{f as v,r as N,j as t}from"./main-174.js";import{B as T}from"./bi.417.813.js";import{d as z,_ as i}from"./bi.964.0.js";import{z as D,a9 as h}from"./bi.89.470.js";import{l as B}from"./bi.185.1017.js";import{T as I,t as E}from"./bi.546.818.js";import{g as F}from"./bi.45.805.js";import"./bi.873.9.js";function W({formID:n,highLevelConf:e,setHighLevelConf:s,step:u,setstep:A,isInfo:o,loading:c,setLoading:w}){const P=v(z),{isPro:p}=P,{highLevel:a}=E,[d,$]=N.useState(!1),[l,x]=N.useState({name:"",api_key:""}),r=m=>{const y=b({},e),g=b({},l);g[m.target.name]="",y[m.target.name]=m.target.value,x(g),s(y)},S=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),A(2)};return t.jsxs("div",{className:"btcd-stp-page",style:{width:u===1&&900,height:u===1&&"auto"},children:[(a==null?void 0:a.youTubeLink)&&t.jsx(I,{title:"HighLevel",youTubeLink:a==null?void 0:a.youTubeLink}),(a==null?void 0:a.docLink)&&t.jsx(I,{title:"HighLevel",docLink:a==null?void 0:a.docLink}),t.jsx("div",{className:"mt-3 wdt-200",children:t.jsx("b",{children:i("Integration Name:","bit-integrations")})}),t.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:r,name:"name",value:e.name,type:"text",placeholder:i("Integration Name...","bit-integrations"),disabled:o}),t.jsx("div",{style:{color:"red",fontSize:"15px"},children:l.name}),t.jsx("div",{className:"mt-3",children:t.jsx("b",{children:i("Select Version:")})}),t.jsxs("div",{className:"flex items-center w-6 mt-3",children:[t.jsx("input",{id:"MailerLiteClassic",type:"radio",name:"version",value:"v1",className:"hidden",checked:!(e!=null&&e.version)||(e==null?void 0:e.version)==="v1",onChange:r}),t.jsxs("label",{for:"MailerLiteClassic",children:[t.jsx("span",{className:"w-4 h-4 inline-block mr-1 border border-grey"}),"HighLevel API V1"]})]}),t.jsxs("div",{className:"flex items-center mr-4 mt-2 mb-4",children:[t.jsx("input",{id:"MailerLiteNew",type:"radio",name:"version",value:"v2",className:"hidden",checked:(e==null?void 0:e.version)==="v2",onChange:r,disabled:!p}),t.jsxs("label",{for:"MailerLiteNew",children:[t.jsx("span",{className:"w-4 h-4 inline-block mr-1 border border-grey"}),p?"HighLevel API V2":F("HighLevel API V2")]})]}),(e==null?void 0:e.version)==="v2"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"mt-3 wdt-250",children:t.jsx("b",{children:i("Location ID:","bit-integrations")})}),t.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:r,name:"location_id",value:e.location_id,type:"text",placeholder:i("Location ID...","bit-integrations"),disabled:o}),t.jsx("div",{style:{color:"red",fontSize:"15px"},children:l.location_id}),t.jsx("small",{className:"d-blk mt-1",children:i("To get location id, go to Settings > Business Profile and copy the location id from General Information.","bit-integrations")})]}),t.jsx("div",{className:"mt-3 wdt-250",children:t.jsx("b",{children:i("GoHighLevel Api Key:","bit-integrations")})}),t.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:r,name:"api_key",value:e.api_key,type:"text",placeholder:i("GoHighLevel Api Key...","bit-integrations"),disabled:o}),t.jsx("div",{style:{color:"red",fontSize:"15px"},children:l.api_key}),t.jsx("small",{className:"d-blk mt-3",children:!(e!=null&&e.version)||(e==null?void 0:e.version)==="v1"?i("To get API key, go to Settings > Business Profile and copy the API Key from there.","bit-integrations"):i("To get API key, go to Settings > Private Integration and create new integration and copy the API token.","bit-integrations")}),t.jsx("br",{}),!o&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:()=>B(e,s,x,$,c,w),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:d||c.auth,children:[d?i("Authorized ✔","bit-integrations"):i("Authorize","bit-integrations"),c.auth&&t.jsx(D,{size:20,clr:"#022217",className:"ml-2"})]}),t.jsx("br",{}),t.jsxs("button",{onClick:()=>S(),className:"btn f-right btcd-btn-lg purple sh-sm flx",type:"button",disabled:!d,children:[i("Next","bit-integrations"),t.jsx(T,{className:"ml-1 rev-icn"})]})]}),t.jsx(h,{note:K(e==null?void 0:e.version)})]})}const K=n=>n!=="v2"?` <h4>${i("Get GoHighLevel Api Key","bit-integrations")}</h4> <ul> <li>${i("First go to your GoHighLevel sub account settings then business profile tab","bit-integrations")}.</li> <li>${i("Copy the the API key.","bit-integrations")}</li> <li>${i("You can also get the API key from Agency view. Navigate to settings then API keys tab.","bit-integrations")}</li> </ul>`:` <h4>${i("Get GoHighLevel Location ID","bit-integrations")}</h4> <ul> <li>${i("From the Sub-Account Dashboard, go to Settings in lower right-hand corner","bit-integrations")}.</li> <li>${i("Select Business Profile on the left-side navigation bar.","bit-integrations")}</li> <li>${i("The Location ID will be visible as shown in General Information.","bit-integrations")}</li> <li>${i("Copy the location ID.","bit-integrations")}</li> </ul> <h4>${i("Get GoHighLevel Api Key","bit-integrations")}</h4> <ul> <li>${i("First go to your GoHighLevel sub account settings then Private Integration tab","bit-integrations")}.</li> <li>${i('Click on "Create new Integration"',"bit-integrations")}</li> <li>${i("Give your Private Integration a name and description to help you and your team identify what it's for.","bit-integrations")}</li> <li>${i("Select the scopes/permissions that you want the private integration to have access to on your agency account. Ensure that you are selecting only the required scopes for better data security.","bit-integrations")}</li> <li>${i("Copy the token generated.","bit-integrations")}</li> </ul>`;export{W as default};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件