1(self["webpackChunkapplication"]=self["webpackChunkapplication"]||[]).push([[22518],{81615:function(_){_.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"}},40724:function(_,l,e){"use strict";e.r(l);e(13062);var a=e(71230),o=(e(57663),e(71577)),t=(e(89032),e(15746)),n=(e(88983),e(47933)),s=(e(34792),e(48086)),r=e(2824),b=e(67294),i=e(42004),g=e(39704),d=e(85589),c=e.n(d),p=e(83647),u=e(33111),h=e(72709),x=e(81615),f=e.n(x),m=e(85893);const v=_=>{let l=(0,g.v9)((_=>null===_||void 0===_?void 0:_.nowClient));const e=1,d=(0,b.useState)(""),x=(0,r.Z)(d,2),v=x[0],y=x[1],S=(0,b.useState)(!1),Z=(0,r.Z)(S,2),E=Z[0],w=Z[1],j=(0,b.useState)(1),k=(0,r.Z)(j,2),z=k[0],L=k[1],P=(0,b.useState)(""),C=(0,r.Z)(P,2),R=C[0],Q=C[1],T=(0,b.useState)(c().createEditorState(null)),G=(0,r.Z)(T,2),q=G[0],F=G[1],H=(0,i.QT)(h.kxC,{manual:!0,onSuccess:({data:_})=>{L(null===_||void 0===_?void 0:_.mode),F(c().createEditorState(_.content))},onError:_=>{s.ZP.error(null===_||void 0===_?void 0:_.errorMessage).then()}}),M=(0,i.QT)(h.Ghg,{manual:!0,onSuccess:()=>{O(!1),s.ZP.destroy(),s.ZP.success("\u4fee\u6539\u6210\u529f").then()},onError:_=>{O(!1),s.ZP.destroy(),s.ZP.error(null===_||void 0===_?void 0:_.errorMessage).then()}});(0,b.useEffect)((()=>{const _=l.rid,a=l.role;_&&v!=_&&(H.run({contentType:e}).then(),y(_),w(a<2))}),[l]),(0,b.useEffect)((()=>{M.loading&&(O(!0),s.ZP.loading("\u6b63\u5728\u63d0\u4ea4\u6570\u636e").then())}),[M.loading]),(0,b.useEffect)((()=>{Q(q.toHTML())}),[q]);const O=(0,b.useCallback)((_=>{p.vp.publish("dashboardLoading",_)}),[]);return(0,m.jsxs)(a.Z,{children:[(0,m.jsxs)(t.Z,{span:7,style:{borderRight:"1px dotted #cccccc"},children:[(0,m.jsx)("h4",{className:f().global_dashboard_title,children:"\u7528\u6237\u534f\u8bae"}),(0,m.jsx)("div",{className:f().global_flex_y,style:{marginBottom:"1.8rem"},children:(0,m.jsxs)(n.ZP.Group,{disabled:!E,value:z,onChange:_=>{var l;L(null===_||void 0===_||null===(l=_.target)||void 0===l?void 0:l.value)},children:[(0,m.jsx)(n.ZP,{value:1,style:{fontSize:"0.88rem"},children:"\u9ed8\u8ba4"}),(0,m.jsx)(n.ZP,{value:2,style:{fontSize:"0.88rem"},children:"\u5173\u95ed"}),(0,m.jsx)(n.ZP,{value:3,style:{fontSize:"0.88rem"},children:"\u81ea\u5b9a\u4e49"})]})})]}),(0,m.jsx)(t.Z,{offset:1,span:15,children:(0,m.jsx)("div",{children:(0,m.jsx)(c(),{readOnly:!E||3!==z,style:{border:"1px solid #d1d1d1",borderRadius:"2px"},contentStyle:{height:"auto",minHeight:"32rem"},value:q,controls:["font-size","line-height","letter-spacing","text-color","bold","italic","underline","strike-through","superscript","subscript","remove-styles","text-indent","text-align","headings","list-ul","list-ol","link","media","separator","clear","undo","redo"],media:{uploadFn:_=>{const l=window.location.protocol+"//"+window.location.host+"/open-apis/tool/file",e=new XMLHttpRequest,a=new FormData,o=l=>{var e,a;const o=JSON.parse(null===l||void 0===l||null===(e=l.target)||void 0===e?void 0:e.responseText);_.success({url:null===o||void 0===o||null===(a=o.data)||void 0===a?void 0:a.url})},t=l=>{_.progress(l.loaded/l.total*100)},n=l=>{console.log("errorFn",l),_.error({msg:"\u4e0a\u4f20\u9519\u8bef"})};e.upload.addEventListener("progress",t,!1),e.addEventListener("load",o,!1),e.addEventListener("error",n,!1),e.addEventListener("abort",n,!1),a.append("file",_.file),e.open("POST",l,!0),e.setRequestHeader("authorization","bearer "+(0,u.qE)()),e.send(a)}},onChange:_=>F(_)})})}),(0,m.jsx)(o.Z,{type:"primary",style:{margin:"2rem 0",width:"120px"},disabled:!E||M.loading,onClick:()=>{(0,p.sA)(M,{content:R,mode:z,contentType:e})},children:"\u4fdd\u5b58"})]})};l["default"]=v}}]);
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.