1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2378],{349301:function(e,t,n){"use strict";n.d(t,{x:function(){return _}});var r=n(397458),s=n(351838),a=n.n(s);n(652983);var o=n(55406),l=n(47511),i=n(884194),c=n.n(i),_=function(e){var t=e.formItem,n=e.formData,s=e.error,i=e.onChange,_=(0,l.t)(l.e.placeholder_enter_here);return(0,r.jsxs)("div",{className:c().formItem,children:[(0,r.jsx)("div",{className:a()(c().formItemLabel,(null==t?void 0:t.required)&&c().formItemLabelRequired),children:t.label}),(0,r.jsxs)("div",{className:a()(c().formItemValue,(null==t?void 0:t.suffix)&&c().formItemValueSuffix),children:[(0,r.jsx)(o.o,{className:a()(t.readonly&&c().formItemInputReadOnly),value:n[t.key],placeholder:t.placeholder||_,readOnly:t.readonly,onChange:function(e){return i&&i(e,t)},error:s,block:!0}),(null==t?void 0:t.suffix)&&(0,r.jsx)("div",{className:c().formItemSuffix,children:t.suffix})]}),(0,r.jsx)("div",{className:c().formItemError,children:s})]})}},433061:function(e,t,n){"use strict";n.d(t,{x:function(){return r.x}});var r=n(349301)},567687:function(e,t,n){"use strict";n.d(t,{V:function(){return g}});var r=n(397458),s=n(671195),a=n(652983),o=n(852422),l=n(667378),i=n(47511),c=n(581040),_=n(802858),m=n(538425),d=n(753728),u=n(503020),f=n(107138),h=n(150513),p=n.n(h),y=function(e){var t=e.userInfo;return(0,r.jsx)("div",{className:p().wecomIntegrationHeader,children:(0,r.jsxs)("div",{className:p().headerContainer,children:[(0,r.jsxs)("div",{className:p().headerLeft,children:[(0,r.jsx)(u.TR,{className:p().logo,theme:d.I.Dark}),(0,r.jsx)("div",{className:p().desc,children:(0,i.t)(i.e.space_manage_menu_wecom)})]}),(0,r.jsxs)("div",{className:p().headerRight,children:[(0,r.jsx)("a",{target:"_blank",className:p().helpItem,href:(0,f.Sy)().JOIN_CHATGROUP_PAGE_URL,rel:"noreferrer",children:(0,i.t)(i.e.help_center)}),function(e){if(t)return(0,r.jsxs)(m.T,{children:[(0,r.jsx)(u.qE,{id:t.memberId,src:t.avatar,title:t.nickName,size:u.DZ.Size24,className:p().avatorImg,style:void 0}),(0,r.jsx)("div",{children:t.nickName})]})}()]})]})})},g=function(e){var t=e.children,n=(0,s.useRouter)(),m=(0,c.QT)(function(){return l.EA().then(function(e){var t=e.data,n=t.data;t.success&&h(n)})}).loading,d=(0,a.useRef)(null),u=(0,a.useState)(null),f=u[0],h=u[1],g=function(e,t){var n,r,s,a=(null==d?void 0:null===(n=d.current)||void 0===n?void 0:n.scrollTop)||0,o=(null==d?void 0:null===(r=d.current)||void 0===r?void 0:r.scrollLeft)||0;null==d||null===(s=d.current)||void 0===s||s.scrollTo(e||a,t||o)};return m?(0,r.jsx)(o.g,{}):(null==f?void 0:f.isAdmin)?(0,r.jsx)(_.k.Provider,{value:{scrollTo:g},children:(0,r.jsx)("div",{className:p().wecomIntegrationWrap,children:(0,r.jsxs)("div",{className:p().wecomIntegration,ref:d,children:[(0,r.jsx)(y,{userInfo:f}),(0,r.jsx)("div",{className:p().container,children:t}),(0,r.jsxs)("div",{className:p().statementFooter,children:[(0,r.jsx)("div",{className:p().statementText,children:"copyright \xa9 2019-2021 æ·±å³ç»´æ ¼æºæ°ç§ææéå
¬å¸.All rights reserved."}),(0,r.jsx)("a",{href:"/help/how-contact-service",target:"_blank",children:(0,i.t)(i.e.connect_us)})]})]})})}):(0,r.jsx)(r.Fragment,{children:n.replace("/")})}},233892:function(e,t,n){"use strict";n.d(t,{o:function(){return T},q:function(){return j}});var r=n(760947),s=n(137705),a=n(336690),o=n(593089),l=n(43112),i=n(397458),c=n(351838),_=n.n(c),m=n(652983),d=n(556766),u=n(984106),f=n(362114),h=n(47511),p=n(939258),y=n(427263),g=n(503020),v=n(575068),x=n(433061),I=n(573212),b=n.n(I),j=function(e){var t=(0,d._)();return(0,i.jsx)(g.u,{title:(0,h.t)(h.e.copy_link),placement:"top",children:(0,i.jsx)(u.z,{className:b().iconButton,color:t.fc6,onClick:function(){(0,v.eh)(e)},children:(0,i.jsx)(y.K,{className:b().buttonIcon,color:t.secondLevelText})})})},T=function(e){var t=e.nextStep,n=e.scrollToTop,c=e.setConfig,d=(0,m.useState)(!1),y=d[0],g=d[1],v=(0,m.useState)(!1),I=v[0],j=v[1],T=(0,m.useState)({corpId:"",agentId:"",agentSecret:""}),N=T[0],k=T[1],w=(0,m.useState)({corpId:"",agentId:"",agentSecret:""}),W=w[0],C=w[1],S=function(e,t){e.target.value.length>0&&C((0,o.Z)((0,a.Z)({},W),(0,s.Z)({},t.key,"")));var n=(0,o.Z)((0,a.Z)({},N),(0,s.Z)({},t.key,e.target.value));k(n)};(0,m.useEffect)(function(){g(Object.keys(N).every(function(e){return N[e]}))},[N]);var R,D={corpId:{label:(0,h.t)(h.e.integration_app_wecom_form1_item1_label),pattern:/^\S*$/,required:!0},agentId:{label:(0,h.t)(h.e.integration_app_wecom_form1_item2_label),pattern:/^[0-9]*$/,required:!0},agentSecret:{label:(0,h.t)(h.e.integration_app_wecom_form1_item3_label),pattern:/^\S*$/,required:!0}},q=function(){var e={};
1Object.keys(D).forEach(function(t){e[t]="".concat((0,h.t)(h.e.please_check)," ").concat(D[t].label)}),C((0,a.Z)({},W,e))},B=(R=(0,r.Z)(function(e){var n,r,s,o,i,_,m;return(0,l.__generator)(this,function(n){switch(n.label){case 0:return j(!0),[4,p._n(e)];case 1:if(s=(r=n.sent().data).data,o=r.success,i=r.message,_=r.code,j(!1),o)return t(),c(e.corpId,e.agentId,null==s?void 0:s.configSha,null==s?void 0:s.domainName),[2];if([40001,40013,301002].includes(_))return m={},Object.keys(D).forEach(function(e){m[e]="".concat((0,h.t)(h.e.please_check)," ").concat(D[e].label)}),C((0,a.Z)({},W,m)),[2];return f.v.error({content:i}),[2]}})}),function(e){return R.apply(this,arguments)}),E=function(){var e;if(!Object.keys(e=(0,a.Z)({},D)).every(function(t){var n=e[t],r=N[t];return!n.required||!!(r&&n.pattern.test(r))||(q(),!1)})){n();return}B(N)};return(0,i.jsxs)("div",{className:_()(b().createApplication,b().formPage),children:[(0,i.jsx)("div",{className:b().formWrap,children:(0,i.jsxs)("div",{className:b().form,children:[(0,i.jsx)("div",{className:b().formTitle,children:(0,h.t)(h.e.integration_app_wecom_form1_title)}),(0,i.jsx)("div",{className:b().formDesc,dangerouslySetInnerHTML:{__html:(0,h.t)(h.e.integration_app_wecom_form1_desc)}}),(0,i.jsx)("div",{className:b().formContent,children:Object.keys(D).map(function(e){return(0,i.jsx)(x.x,{formData:N,formItem:(0,o.Z)((0,a.Z)({},D[e]),{key:e}),error:W[e],onChange:S},e)})})]})}),(0,i.jsx)("div",{className:b().buttonWrap,children:(0,i.jsx)(u.z,{color:"primary",onClick:E,disabled:!y,block:!0,loading:I,children:(0,h.t)(h.e.next_step)})})]})}},802858:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=(0,n(652983).createContext)({})},884194:function(e){e.exports={formItem:"styles_formItem__ZclGo",formItemLabel:"styles_formItemLabel__Vv47A",formItemLabelRequired:"styles_formItemLabelRequired__HlUVn",formItemValue:"styles_formItemValue__EDmjh",formItemInputReadOnly:"styles_formItemInputReadOnly__vK7VT",formItemSuffix:"styles_formItemSuffix__oGhhJ",formItemError:"styles_formItemError__mvsy9"}},150513:function(e){e.exports={wecomIntegrationWrap:"styles_wecomIntegrationWrap__Gc07S",wecomIntegration:"styles_wecomIntegration__bOF_M",container:"styles_container__VPbQT",loadingWrap:"styles_loadingWrap__Fc3l2",loadingText:"styles_loadingText__sAIUU",statementFooter:"styles_statementFooter__8AqXr",statementText:"styles_statementText__cNuua",wecomIntegrationHeader:"styles_wecomIntegrationHeader__oZXuk",headerContainer:"styles_headerContainer__VFeBP",headerLeft:"styles_headerLeft__cAONm",logo:"styles_logo__Enmud",desc:"styles_desc__Gt_T8",headerRight:"styles_headerRight__H8Tzh",helpItem:"styles_helpItem__mUhh5",wecomConfig:"styles_wecomConfig__Ftzb9",configTitle:"styles_configTitle__vUiws",configTips:"styles_configTips__BBUxh",infoWrap:"styles_infoWrap__jz1VS",infoTitle:"styles_infoTitle__Rcg2y",infoDesc:"styles_infoDesc__Xcnqy",wecomBindSuccess:"styles_wecomBindSuccess__4Tr7_",title:"styles_title__v9NEL",triangleTopRight:"styles_triangleTopRight__oiOJb",triangleFont:"styles_triangleFont__tKRJt",inputWrap:"styles_inputWrap__UsChP",inputText:"styles_inputText__Qw3CQ",successImg:"styles_successImg__s6Gqp"}},573212:function(e){e.exports={wecomIntegrationBind:"styles_wecomIntegrationBind__g911O",stepWrapper:"styles_stepWrapper__wvA0E",contentMain:"styles_contentMain__bdbsw",scanBind:"styles_scanBind__BERML",title:"styles_title__T_JaW",desc:"styles_desc__ylAsf",qrCodeWrap:"styles_qrCodeWrap__Ulb5e",scanBindPrivate:"styles_scanBindPrivate__wB4ci",formPage:"styles_formPage__gb7kR",formWrap:"styles_formWrap__i0tY5",form:"styles_form__1TnLr",formTitle:"styles_formTitle__Tmvbg",formDesc:"styles_formDesc__8CLc6",buttonIcon:"styles_buttonIcon__G5aq8",checkboxWrap:"styles_checkboxWrap__E1d5v",integrationDesc:"styles_integrationDesc__6GO9m",integrationDescTitle:"styles_integrationDescTitle__X9BsD",integrationDescContent:"styles_integrationDescContent__VNK6q",mb24:"styles_mb24__i5erk",loadingWrap:"styles_loadingWrap__gV_6o",loadingText:"styles_loadingText__Uuo2w",buttonWrap:"styles_buttonWrap__vq_Xv",buttonCheckboxWrap:"styles_buttonCheckboxWrap__mh_Jt",checkboxText:"styles_checkboxText__JDnto",prevBtn:"styles_prevBtn__IODRY"}}}]);
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.