1(self["webpackChunkapplication"]=self["webpackChunkapplication"]||[]).push([[50835],{81615:function(l){l.exports={fontSize12:"fontSize12___3JCQj",fontSize14:"fontSize14___35QOv",fontSize16:"fontSize16___gsqR4",fontSize18:"fontSize18___30R4Y",global_center_page:"global_center_page___3v0Ho",global_base_padding:"global_base_padding___1PlWs",global_base_box:"global_base_box___2QkoG",global_full_page:"global_full_page___KeBGI",global_base_content:"global_base_content___3FDnh",global_system_line_img:"global_system_line_img___3ZRSx",global_system_span:"global_system_span___1QREL",global_system_edit:"global_system_edit___hrxo-",global_system_search_box:"global_system_search_box___r1dHt",global_base_form_label:"global_base_form_label___2lhgu",global_base_form_input:"global_base_form_input___3cOZI",global_red_form_label:"global_red_form_label___1VIlg",global_table_pointer_span:"global_table_pointer_span___18yFR",global_table_pointer_gary_span:"global_table_pointer_gary_span___3LZhM",global_table_pointer_red_span:"global_table_pointer_red_span___27r8q",global_base_input:"global_base_input___3ijt6",global_base_btn:"global_base_btn___19q4d",global_console_base_title:"global_console_base_title___35294",global_base_title:"global_base_title___19xEG",global_base_flex:"global_base_flex___2kgAK",global_flex_x_c:"global_flex_x_c___3KPqn",global_flex_x:"global_flex_x___2FL6r",global_flex_y:"global_flex_y___3-Hi3",global_flex_xy:"global_flex_xy___3Jl2n",global_base_a:"global_base_a___3Tv8t",global_base_line:"global_base_line___1siak",global_login_footer:"global_login_footer___2D7e4",global_login_page:"global_login_page___3EfXk",global_login_inner_box:"global_login_inner_box___2EGgr",global_right_modal_p:"global_right_modal_p___228xw",global_right_modal_footer:"global_right_modal_footer___12GZW",global_warning_title:"global_warning_title___1LMZA",global_base_warning_btn:"global_base_warning_btn___3OGWk",global_warning_input:"global_warning_input___1jv6n",global_system_line:"global_system_line___2VJmu",global_pointer_span:"global_pointer_span___1S_JC",global_hidden_content:"global_hidden_content___-QxsY",global_dashboard_title:"global_dashboard_title___2bToQ",global_dashboard_content:"global_dashboard_content___2bLpU",global_dashboard_gray_box:"global_dashboard_gray_box___y7RC2",global_red_label:"global_red_label___2CbEd",global_green_label:"global_green_label___3xbQE",global_blue_label:"global_blue_label___3yRMs","article-container":"article-container___i9lL3","nav-container":"nav-container___3kbaE",hide:"hide___25UFV","toggle-btn":"toggle-btn___2jnmX"}},47206:function(l,e,o){"use strict";o.r(e);o(13062);var n=o(71230),i=(o(89032),o(15746)),a=(o(77576),o(12028)),t=(o(57663),o(71577)),_=(o(47673),o(4107)),r=(o(34792),o(48086)),s=o(2824),d=(o(71194),o(50146)),g=o(67294),c=o(42004),p=o(39704),b=o(57119),h=o(99165),x=o(32779),u=o(57240),v=o(88633),y=o(95357),m=o(8212),f=o(79508),j=o(54549),S=o(72709),C=o(83647),Z=o(81615),k=o.n(Z),w=o(85893);const z=d.Z.confirm,E=l=>{let e=(0,p.v9)((l=>null===l||void 0===l?void 0:l.nowClient));const o=(0,g.useState)(""),d=(0,s.Z)(o,2),Z=d[0],E=d[1],R=(0,g.useState)(!1),L=(0,s.Z)(R,2),T=L[0],P=L[1],H=(0,g.useState)(null),I=(0,s.Z)(H,2),Q=I[0],N=I[1],F=(0,g.useState)(""),B=(0,s.Z)(F,2),K=B[0],M=B[1],U=(0,g.useState)(""),A=(0,s.Z)(U,2),O=A[0],W=A[1],G=(0,g.useState)(!1),J=(0,s.Z)(G,2),$=J[0],V=J[1],q=(0,g.useState)(!1),X=(0,s.Z)(q,2),D=X[0],Y=X[1],ll=(0,g.useState)(""),el=(0,s.Z)(ll,2),ol=el[0],nl=el[1],il=(0,g.useState)(!1),al=(0,s.Z)(il,2),tl=al[0],_l=al[1],rl=(0,g.useState)(!1),sl=(0,s.Z)(rl,2),dl=sl[0],gl=sl[1],cl=(0,g.useState)(""),pl=(0,s.Z)(cl,2),bl=pl[0],hl=pl[1],xl=(0,g.useState)(!1),ul=(0,s.Z)(xl,2),vl=ul[0],yl=ul[1],ml=(0,g.useState)({}),fl=(0,s.Z)(ml,2),jl=fl[0],Sl=fl[1],Cl=(0,g.useState)([]),Zl=(0,s.Z)(Cl,2),kl=Zl[0],wl=Zl[1],zl=(0,c.QT)(S.wTc,{manual:!0,onSuccess:({data:l})=>
1{const e=l,o=e.encryptKey,n=e.token,i=e.url;W(o),nl(n),hl(i),N(l),Sl({key:o,token:n,url:i}),Hl(!1)},onError:l=>{r.ZP.error(null===l||void 0===l?void 0:l.errorMessage).then(),Hl(!1)}}),El=(0,c.QT)(S.uXi,{manual:!0,onSuccess:({data:l})=>{Hl(!1),wl(null===l||void 0===l?void 0:l.rows)},onError:l=>{r.ZP.error(null===l||void 0===l?void 0:l.errorMessage).then(),Hl(!1),wl([])}}),Rl=(0,c.QT)(S.vt$,{manual:!0,onSuccess:({data:l},e)=>{var o;r.ZP.success("\u66f4\u65b0\u56de\u8c03\u5730\u5740\u6210\u529f").then(),Sl((0,C.I8)({...e[0],key:null===(o=e[0])||void 0===o?void 0:o.encryptKey})),Hl(!1)},onError:l=>{r.ZP.error(null===l||void 0===l?void 0:l.errorMessage).then(),Hl(!1)}}),Ll=(0,c.QT)(S.fNr,{manual:!0,onSuccess:()=>{r.ZP.success("\u4fee\u6539\u4e8b\u4ef6\u8ba2\u9605\u6210\u529f").then(),El.run().then()},onError:l=>{r.ZP.error(null===l||void 0===l?void 0:l.errorMessage).then(),Hl(!1)}}),Tl=(0,c.QT)(S.diR,{manual:!0,onSuccess:({data:l},e)=>{Hl(!1),r.ZP.success("\u66f4\u65b0\u6570\u636e\u6210\u529f").then();const o=e[0],n=o.type,i=o.value;i||(Hl(!0),zl.run().then()),i&&(1===n&&(W(i),Sl((0,C.I8)({...jl,key:i})),Y(!1)),2===n&&(nl(i),Sl((0,C.I8)({...jl,token:i})),gl(!1)))},onError:l=>{r.ZP.error(null===l||void 0===l?void 0:l.errorMessage).then(),Hl(!1)}}
1),Pl=(0,c.QT)(S.BNO,{manual:!0,onSuccess:({data:l})=>{r.ZP.success("\u83b7\u53d6code\u6210\u529f").then(),M(null===l||void 0===l?void 0:l.code),Hl(!1)},onError:l=>{r.ZP.error(null===l||void 0===l?void 0:l.errorMessage).then(),Hl(!1)}});(0,g.useEffect)((()=>{Pl.loading&&Hl(!0)}),[Pl.loading]),(0,g.useEffect)((()=>{const l=e.rid,o=e.role;l&&Z!=l&&(Hl(!0),E(l),P(o<2),zl.run().then(),El.run().then())}),[e]);const Hl=(0,g.useCallback)((l=>{C.vp.publish("dashboardLoading",l)}),[]),Il=l=>{let e="Encrypt Key";2===l&&(e="Verification Token"),3===l&&(e="appSecret"),z({title:`\u786e\u8ba4\u91cd\u7f6e ${e} \u5417\uff1f`,icon:(0,w.jsx)(b.Z,{}),centered:!0,content:`\u91cd\u7f6e\u540e\u73b0\u6709\u7684 ${e} \u5c06\u4f1a\u5931\u6548\uff0c\u53ef\u80fd\u5f71\u54cd\u90e8\u5206\u529f\u80fd`,onOk(){Hl(!0),(0,C.sA)(Tl,{type:l,value:""})},onCancel(){console.log("onCancel")}})};return(0,w.jsxs)("div",{style:{minHeight:"88vh",padding:"1.2rem 2rem",backgroundColor:"white",margin:"1rem "},children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("h4",{className:k().global_dashboard_title,children:"\u5f00\u653e\u5e73\u53f0"}),(0,w.jsx)("div",{style:{width:"100%",color:"#757575",fontSize:"14px",marginBottom:"1rem"},children:(0,w.jsx)("a",{style:{color:"#1890FF",paddingLeft:"10px"},onClick:()=>c.m8.push("/open/platform"),children:"\u5f00\u53d1\u524d\u8bf7\u524d\u5f80\u5f00\u653e\u5e73\u53f0\u4ed4\u7ec6\u9605\u8bfb\u6240\u652f\u6301\u7684\u3010\u5f00\u653e\u80fd\u529b\u3011\u5f00\u53d1\u6587\u6863"})})]}),(0,w.jsxs)("div",{style:{marginBottom:"1rem"},children:[(0,w.jsx)("h4",{className:k().global_dashboard_title,style:{marginBottom:".5rem"},children:"\u5f00\u53d1\u914d\u7f6e"}),(0,w.jsxs)("div",{style:{width:"100%",color:"#757575",fontSize:"14px"},children:["\u6240\u6709\u7684\u5f00\u653e\u63a5\u53e3\u90fd\u9700\u8981\u4f7f\u7528token\u4ee4\u724c\u9274\u6743\u3002\u67e5\u770b\u6587\u6863",(0,w.jsx)("a",{style:{color:"#1890FF",paddingLeft:"10px"},onClick:()=>c.m8.push("/open/platform"),children:"\u67e5\u770b\u6587\u6863"})]}),(0,w.jsx)("h5",{style:{width:"100%",color:"#757575",fontSize:"14px",lineHeight:3},children:"appId"}),(0,w.jsxs)("div",{children:[(null===Q||void 0===Q?void 0:Q.appId)||"-",(0,w.jsx)(h.Z,{style:{display:null!==Q&&void 0!==Q&&Q.appId?"":"none",color:"#2196f3",marginLeft:"50px",cursor:"pointer"},onClick:()=>(0,C.U$)(null===Q||void 0===Q?void 0:Q.appId)})]}),(0,w.jsx)("h5",{style:{width:"100%",color:"#757575",fontSize:"14px",lineHeight:3},children:"appSecret"}),(0,w.jsxs)("div",{style:{marginBottom:"10px"},children:[(null===Q||void 0===Q?void 0:Q.appSecret)||"-",(0,w.jsx)(h.Z,{style:{display:null!==Q&&void 0!==Q&&Q.appSecret?"":"none",color:"#2196f3",marginLeft:"50px",cursor:"pointer"},onClick:()=>(0,C.U$)(null===Q||void 0===Q?void 0:Q.appSecret)}),(0,w.jsx)(x.Z,{style:{color:T?"#2196f3":"#CCCCCC",marginLeft:null!==Q&&void 0!==Q&&Q.appSecret?"15px":"50px",cursor:"pointer"},onClick:()=>T&&Il(3)})]}),(0,w.jsx)("h5",{style:{width:"100%",color:"#757575",fontSize:"14px",lineHeight:2},children:"code"}),(0,w.jsxs)("div",{children:[K||"------",(0,w.jsx)(h.Z,{style:{display:K?"":"none",color:"#2196f3",marginLeft:"50px",cursor:"pointer"},onClick:()=>(0,C.U$)(K)}),(0,w.jsx)(u.Z,{style:{color:T?"#2196f3":"#CCCCCC",marginLeft:K?"15px":"50px",cursor:"pointer"},onClick:()=>{if(T){if(null===Q||void 0===Q||!Q.appId||null===Q||void 0===Q||!Q.appSecret)return r.ZP.error("appId\u6216appSecrets\u4e3a\u7a7a").then(),!1;(0,C.sA)(Pl,{code:JSON.stringify({appKey:null===Q||void 0===Q?void 0:Q.appId,appSecret:null===Q||void 0===Q?void 0:Q.appSecret})})}}})]})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("h4",{className:k().global_dashboard_title,children:"\u8ba2\u9605\u914d\u7f6e"}),(0,w.jsx)("div",{style:{width:"100%",color:"#757575",fontSize:"14px"},children:"\u8ba2\u9605\u4e8b\u4ef6\u540e\uff0c\u5f00\u653e\u5e73\u53f0\u5c06\u4f1a\u5411\u8bf7\u6c42\u7f51\u5740\u540c\u6b65\u63a8\u9001\u5bf9\u5e94\u4e8b\u4ef6\u6d88\u606f\u3002"}),(0,w.jsx)("h5",{style:{width:"100%",color:"#757575",fontSize:"14px",lineHeight:3},children:"Encrypt Key"}),D?(0,w.jsxs)("div",{children:[(0,w.jsx)(_.Z,{placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u5bc6\u94a5",size:"large",style:{width:"400px",display:"block",marginBottom:"10px"},value:O,maxLength:32,onChange:l=>{var e;return W(null===l||void 0===l||null===(e=l.target)||void 0===e?void 0:e.value)}}),(0,w.jsx)(t.Z,{style:{marginRight:"10px"},onClick:()=>{W(null===jl||void 0===jl?void 0:jl.key),Y(!1)},children:"\u53d6\u6d88"}),(0,w.jsx)(t.Z,{type:"primary",disabled:Tl.loading,onClick:()=>{Hl(!0),(0,C.sA)(Tl,{type:1,value:O})},children:"\u4fdd\u5b58"})]}):(0,w.jsxs)("div",{children:[(0,w.jsx)("span",{style:{display:"inline-block",width:"360px",fontSize:"14px"},children:O?$?O:(0,C.WN)(O,0,null===O||void 0===O?void 0:O.length):"\u672a\u5f00\u542f\uff0c\u8bf7\u70b9\u51fb\u91cd\u7f6e\u6216\u81ea\u5b9a\u4e49\u7f16\u8f91"}),$?(0,w.jsx)(v.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>V(!$)}):(0,w.jsx)(y.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>V(!$)}),T&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(x.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>Il(1)}),(0,w.jsx)(m.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>Y(!0)})]})]}),(0,w.jsx)("h5",{style:{width:"100%",color:"#757575",fontSize:"14px",lineHeight:3},children:"Verification Token"}),dl?(0,w.jsxs)("div",{children:[(0,w.jsx)(_.Z,{placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684Token",size:"large",style:{width:"400px",display:"block",marginBottom:"10px"},value:ol,maxLength:32,onChange:l=>{var e;return nl(null===l||void 0===l||null===(e=l.target)||void 0===e?void 0:e.value)}}),(0,w.jsx)(t.Z,{style:{marginRight:"10px"},onClick:()=>{nl(null===jl||void 0===jl?void 0:jl.token),gl(!1)},children:"\u53d6\u6d88"}),(0,w.jsx)(t.Z,{type:"primary",disabled:!ol||Tl.loading,onClick:()=>{Hl(!0),(0,C.sA)(Tl,{type:2,value:ol})},children:"\u4fdd\u5b58"})]}):(0,w.jsxs)("div",{children:[(0,w.jsx)("span",{style:{display:"inline-block",width:"360px",fontSize:"14px"},children:ol?tl?ol:(0,C.WN)(ol,0,null===ol||void 0===ol?void 0:ol.length):"\u672a\u5f00\u542f\uff0c\u8bf7\u70b9\u51fb\u91cd\u7f6e\u6216\u81ea\u5b9a\u4e49\u7f16\u8f91"}),tl?(0,w.jsx)(v.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>_l(!tl)}):(0,w.jsx)(y.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>_l(!tl)}),T&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(x.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>Il(2)}),(0,w.jsx)(m.Z,{style:{color:"#2196f3",marginRight:"10px",cursor:"pointer"},onClick:()=>gl(!0)})]})]}),(0,w.jsx)("h4",{style:{lineHeight:4,fontWeight:600},children:"\u56de\u8c03\u5730\u5740"}),(0,w.jsx)("div",{style:{width:"100%",color:"#757575",fontSize:"14px",lineHeight:2},children:"\u8bf7\u586b\u5199URL\u4ee5\u4f7f\u8ba2\u9605\u751f\u6548\u3002\u586b\u5199\u540e\uff0c\u5e73\u53f0\u4f1a\u5411\u8be5\u5730\u5740\u53d1\u9001\u4e00\u4e2aHTTP POST\u8bf7\u6c42\u4ee5\u9a8c\u8bc1\u8be5URL\u7684\u5408\u6cd5\u6027\uff0c\u8bf7\u6c42\u683c\u5f0f\u4e3aJSON\uff0c\u643a\u5e26SUCCESS\u53c2\u6570\u3002 \u5e94\u7528\u63a5\u6536\u8be5\u8bf7\u6c42\u540e\uff0c\u9700\u8981\u89e3\u6790\u51faSUCCESS\u503c\uff0c\u5e76\u57283\u79d2\u5185\u8fd4\u56de\u7ed9\u5e73\u53f0\u3002"}),vl?(0,w.jsxs)("div",{children:[(0,w.jsx)(_.Z,{placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u56de\u8c03\u5730\u5740",size:"large",style:{width:"400px",display:"block",marginBottom:"10px"},value:bl,onChange:l=>{var e;return hl(null===l||void 0===l||null===(e=l.target)||void 0===e?void 0:e.value)}}),(0,w.jsx)(t.Z,{style:{marginRight:"10px"},onClick:()=>{hl(null===jl||void 0===jl?void 0:jl.url),yl(!1)},children:"\u53d6\u6d88"}),(0,w.jsx)(t.Z,{type:"primary",disabled:Rl.loading,onClick:()=>
1{Hl(!0),(0,C.sA)(Rl,{url:bl,encryptKey:null===jl||void 0===jl?void 0:jl.key,token:jl.token})},children:"\u4fdd\u5b58"})]}):(0,w.jsxs)("div",{children:[(0,w.jsx)("span",{style:{display:"inline-block",fontSize:"14px"},children:bl||"\u6682\u65e0"}),(0,w.jsx)(m.Z,{style:{color:"#2196f3",marginLeft:"10px",cursor:"pointer",display:T?"":"none"},onClick:()=>{Y(!1),gl(!1),yl(!0)}})]}),(null===jl||void 0===jl?void 0:jl.url)&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h4",{className:k().global_dashboard_title,style:{marginTop:"20px"},children:"\u4e8b\u4ef6\u8ba2\u9605"}),(0,w.jsx)(n.Z,{gutter:16,children:kl.map((l=>(0,w.jsx)(i.Z,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,w.jsxs)("div",{className:"global_flex_y",style:{border:"1px solid #ECECEC",justifyContent:"space-between",padding:"7px 20px"},children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("h5",{style:{fontWeight:600},children:null===l||void 0===l?void 0:l.name}),(0,w.jsx)("p",{style:{fontSize:"14px",color:"#757575",lineHeight:2},children:null===l||void 0===l?void 0:l.description})]}),(0,w.jsx)(a.Z,{checkedChildren:(0,w.jsx)(f.Z,{}),unCheckedChildren:(0,w.jsx)(j.Z,{}),disabled:!T||Ll.loading,onChange:e=>{Hl(!0),(0,C.sA)(Ll,{rid:Number(null===l||void 0===l?void 0:l.rid),status:e?1:2})},checked:1==(null===l||void 0===l?void 0:l.status)})]})},"event"+(null===l||void 0===l?void 0:l.name))))})]})]})]})};e["default"]=E}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.