PageSourceSearch

https://www.chuanglan.com/_next/static/chunks/app/layout-e1e8093880ac4a95.js

js chuanglan.com collected 2026-10-03 21:32:43 UTC 27,124 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{8285:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(39384),o=n(57383);let i=s.A.create({baseURL:"/zzt_api"});i.interceptors.request.use(e=>{let t=o.A.get("CLTOKEN");return t&&(e.headers.token=t||"",e.headers["X-ACCESS-TOKEN"]=t||""),e},e=>Promise.reject(e)),i.interceptors.response.use(e=>{let{data:t={}}=e||{};return Promise.resolve(t)},e=>(e.response,Promise.resolve({code:"000504",msg:"网络错误,请联系管理员"})));let a=i},10150:e=>{e.exports={login_box_wrap:"login_login_box_wrap__IQsTP",login_alert:"login_login_alert__qXg3_",login_logo:"login_login_logo__i_rA0",login_logo_wrap:"login_login_logo_wrap__3gvKH",login_wrap:"login_login_wrap__KE_Mo",login_left:"login_login_left__LPmHt",login_right:"login_login_right__7mpgS",qr_code_content:"login_qr_code_content__XbDdQ",qr_img:"login_qr_img__yvxUf",login_footer_wrap:"login_login_footer_wrap__2HV21",nav:"login_nav__h67C3",cpr:"login_cpr__V3OpM",login_banner:"login_login_banner__cQYb0",psw_input:"login_psw_input__Wy9Ke",login_form:"login_login_form__tDf4K",title:"login_title__V39Vd",intro:"login_intro__rpiYF",login_item:"login_login_item__y_YB_",code:"login_code___wSz3",other:"login_other__HF2mQ","login-form-button":"login_login-form-button__BKqkK",pswstrong:"login_pswstrong__8bwZv",countryarea_opt:"login_countryarea_opt__XuoHA",bannerMiddle:"login_bannerMiddle__TQ0tX",ptext:"login_ptext__p5av4",regsuccess_wrap:"login_regsuccess_wrap__RcZsQ",iconCenter:"login_iconCenter__zc8Y0",child_login_box:"login_child_login_box__RRR5F",child_login:"login_child_login__UVOUb",child_cotent:"login_child_cotent__QARr6",childlogo:"login_childlogo__i0a3T",customize_title:"login_customize_title__nry_Q",customize_logo:"login_customize_logo__FAODK",messagetips_wrap:"login_messagetips_wrap__0NbF9"}},12380:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var s=n(95155);let o=(0,n(55028).default)(()=>Promise.all([n.e(1162),n.e(2922)]).then(n.bind(n,42922)),{loadableGenerated:{webpack:()=>[42922]},ssr:!1});function i(){return(0,s.jsx)(o,{},"service-bot-rightbtns")}},15264:(e,t,n)=>{"use strict";n.d(t,{C6:()=>a,MH:()=>l,Pk:()=>m,TT:()=>g,hP:()=>r,i5:()=>d,k3:()=>c,vm:()=>u});var s=n(91163),o=n(25751);let i="https://www.chuanglan.com",a=()=>{window.location.href="".concat(i,"/new-control/regist").concat((0,o.Zl)()).concat((0,o.oH)())},r=e=>{window.open(e,"_blank")},l=()=>{window.open("".concat(i,"/new-control/forget"),"_blank")},c=e=>{window.location.replace("".concat(i,"/new-control/wechat/").concat(e))},d=()=>{window.location.href="".concat(i,"/new-control/login").concat((0,o.Zl)())},u=()=>{window.location.href="".concat(i,"/new-control/home")},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s.A.stringify(e);return"".concat(i,"/new-control/finance/resource-buy-singgle?").concat(t)},m=()=>{let e=encodeURIComponent("".concat(i,"/flash_diagnosis/"));window.location.href="".concat(i,"/new-control/login").concat((0,o.Zl)()).concat((0,o.Su)(e))}},20047:()=>{},25751:(e,t,n)=>{"use strict";n.d(t,{Io:()=>b,LN:()=>h,Lg:()=>_,OR:()=>f,Su:()=>S,TT:()=>g.TT,VK:()=>y,Zl:()=>k,d3:()=>w,e6:()=>m,e9:()=>v,gV:()=>I,lk:()=>T,oH:()=>C,t9:()=>A});var s=n(86052),o=n.n(s),i=n(57383),a=n(32109),r=n.n(a),l=n(30832),c=n.n(l),d=n(12881),u=n.n(d),g=n(15264);c().extend(u());let m="197091176",h=e=>{let t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i.A.remove(e,/(^|\.)chuanglan\.com$/.test(location.hostname)?{domain:".chuanglan.com",...t}:t)},p=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.A.set(e,t,/(^|\.)chuanglan\.com$/.test(location.hostname)?{domain:".chuanglan.com",expires:10,...n}:n)},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.A.get(e,/(^|\.)chuanglan\.com$/.test(location.hostname)?{domain:".chuanglan.com",...t}:t)},w=e=>{p("CLTOKEN",e),window.sessionStorage&&window.sessionStorage.setItem("cl_token",e)},v=e=>{e=e.replace(/(^\s*)|(\s*$)/g,"");let t=r().enc.Base64.stringify(r().enc.Utf8.parse(e)).toString(),n=r().enc.Utf8.parse("EpNk90lAjm8SMy99"),s=r().enc.Utf8.parse("EpNk90lAjm8SMy99"),o=r().AES.encrypt
1(t,n,{iv:s,mode:r().mode.CBC,padding:r().pad.ZeroPadding}).toString();return r().enc.Base64.stringify(r().enc.Utf8.parse(o)).toString()},y=()=>{document.referrer&&!document.referrer.includes(location.host)&&p("CL_REFERRER",document.referrer)},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round(Number(e||0)/100)*t},j=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","uid","mid","ecrm_source","bd_vid","qz_gdt","gdt_vid"],x=e=>{let t=Object.keys(o().parse(null==e?void 0:e.split("?")[1]));return j.some(e=>t.includes(e))},A=()=>{let e=window.location.href,t=x(e);t&&p("CL_UTM_PAGE",e),t&&sessionStorage.setItem("cl_utm_page",e)},k=()=>{let e=sessionStorage.getItem("cl_utm_page")||"";return x(e)?"?".concat(e.split("?")[1]):""},C=()=>x(window.location.href)?"&regist_source=1":"?regist_source=1",S=e=>x(window.location.href)?"&from_url=".concat(e):"?from_url=".concat(e),T=()=>{let e=new Date().getTime()%0xffffffff+Math.random(),t=new Uint8Array(16);if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)crypto.getRandomValues(t);else for(let n=0;n<16;n++)t[n]=Math.floor(256*e)%256;t[6]=15&t[6]|64,t[8]=63&t[8]|128;let n=Array.from(t,e=>e.toString(16).padStart(2,"0"));return[n.slice(0,4).join(""),n.slice(4,6).join(""),n.slice(6,8).join(""),n.slice(8,10).join(""),n.slice(10,16).join("")].join("-")},I=()=>{let e=c()("20260210 00:00:00","YYYYMMDD HH:mm:ss"),t=c()("20260226 23:59:59","YYYYMMDD HH:mm:ss");return c()().isBetween(e,t,"second","[]")}},30255:(e,t,n)=>{"use strict";let s;n.d(t,{default:()=>i,iU:()=>s});var o=n(55887);let i=()=>{let e=o.A.useApp();return s=e.message,e.modal,e.notification,null}},34545:(e,t,n)=>{"use strict";n.d(t,{App:()=>s.A,ConfigProvider:()=>o.Ay});var s=n(55887),o=n(57845)},42634:()=>{},42686:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});let s=(0,n(6369).A)({scriptUrl:"//at.alicdn.com/t/c/font_2650811_e4etnk9es9k.js"})},47129:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var s=n(95155),o=n(12115),i=n(35695),a=n(63554);n(79911);var r=n(51368),l=n(8285);function c(){let e=async e=>{let t="",n=await l.A.post("/doc_api/doc-api/coze/token",{user_id:e});return"000000"===n.code&&(t=n.data)},t=async()=>{let t=localStorage.getItem("userAiDeviceId");t||(t=(0,r.A)(),localStorage.setItem("userAiDeviceId",t));let n=await e(t);window.AIassistant=new CozeWebSDK.WebChatClient({config:{bot_id:"7497143901741367337",isIframe:!1},auth:{type:"token",token:n,onRefreshToken:async()=>await e(t)},userInfo:{id:t,nickname:"您",url:"https://static2.253.com/public/image/header_default.png"},ui:{base:{lang:"zh-CN",zIndex:2e3,icon:"https://static2.253.com/ups/web/images/ai_assistant2.gif"},header:{isShow:!0},asstBtn:{isNeed:!1},footer:{isShow:!0,expressionText:"内容由 AI 生成,仅供参考,您据此所作判断及操作均由您自行承担责任。"},chatBot:{title:"创蓝AI小助手",uploadable:!1,width:680}}})};return(0,s.jsx)(a.default,{src:"https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.6/libs/cn/index.js",onLoad:()=>{t()}})}let d="1223493857",u="PAGE_VIEW",g="AW-17433740461";function m(){let e=(0,i.usePathname)(),t=()=>{window.requestAnimationFrame(()=>{window.WOW&&new window.WOW({offset:50,animateClass:"animate__animated",live:!1}).init()})};return(0,o.useEffect)(()=>{t()},[e]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.default,{src:"https://static2.253.com/ups/web/js/wow.min.js",id:"wow-js",strategy:"afterInteractive",onLoad:t}),(0,s.jsx)(a.default,{id:"google-ads-script",src:"https://www.googletagmanager.com/gtag/js?id=".concat(g),strategy:"afterInteractive"}),(0,s.jsx)(a.default,{id:"google-ads",strategy:"afterInteractive",children:"\n          window.dataLayer = window.dataLayer || [];\n          function gtag(){dataLayer.push(arguments);}\n          gtag('js', new Date());\n          gtag('config', '".concat(g,"');\n        ")}),(0,s.jsx)(a.default,{id:"zhihu-ads",strategy:"afterInteractive",children:"\n          (function(root) {\n            window.zhad = [];\n            var tag = document.createElement('script'); tag.type = 'text/javascript'; tag.async = true;\n            tag.src = '//unpkg.zhimg.com/@efe/[email protected]';\n            tag.onerror = function () {\n              var img = new Image();\n              img.src = '//sugar.zhihu.com/log_fe?js_url=' + window.encodeURIComponent(tag.src) + '&t=' + (+ new Date());\n            }\n            var s = document.getElementsByTagName('script')[0];\n            s.parentNode.insertBefore(tag, s);\n          })(window);\n        "}),(0,s.jsx)(a.default,{id:"360-basic-traffic",strategy:"afterInteractive",children:'\n          (function(b,a,e,h,f,c,g,s){b[h]=b[h]||function(){(b[h].c=b[h].c||[]).push(arguments)};\n          b[h].s=!!c;g=a.getElementsByTagName(e)[0];s=a.createElement(e);\n          s.src="//s.union.360.cn/"+f+".js";s.defer=!0;s.async=!0;g.parentNode.insertBefore(s,g)\n          })(window,document,"script","_qha",641627,false);\n        '}),(0,s.jsx)(a.default,{id:"datanexus-base-code",strategy:"afterInteractive",children:"\n          !function(g,d,t,e,v,n,s){if(g.gdt)return;v=g.gdt=function(){v.tk?v.tk.apply(v,arguments):v.queue.push(arguments)};v.sv='1.0';v.bt=0;v.queue=[];n=d.createElement(t);n.async=!0;n.src=e;s=d.getElementsByTagName(t)[0];s.parentNode.insertBefore(n,s);}(window,document,'script','//mp.zhls.qq.com/sdk/dmp-sdk-js/gdtevent.min.js');\n          gdt('init','".concat(d,"');\n          gdt('track','").concat(u,"');\n        ")}),(0,s.jsx)("noscript",{dangerouslySetInnerHTML:{__html:'<img height="1" width="1" style="display:none" src="https://api.datanexus.qq.com/data-nexus-cgi/pixel?user_action_set_id='.concat(d,"&action_type=").concat(u,'&noscript=1" alt="" />')}}),(0,s.jsx)(a.default,{src:"https://hm.baidu.com/hm.js?8d315c072add8fc51b762577c4859cc6",onLoad:()=>{window._hmt=window._hmt||[],window._hmt.push(["_requirePlugin","UrlChangeTracker",{shouldTrackUrlChange:function(e,t){return e&&t}}])}}),(0,s.jsx)(a.default,{type:"text/javascript",src:"https://fxgate.baidu.com/angelia/fcagl.js?production=_f7L2XwGXjyszb4d1e2oxPybgD",async:!0,onLoad:()=>{window._agl=window._agl||[],window._agl.push(["production","_f7L2XwGXjyszb4d1e2oxPybgD"])}}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:'\n           (function(w,d,t,r,u)\n            {\n                var f,n,i;\n                w[u]=w[u]||[],f=function()\n                {\n                    var o={ti:"343197704", enableAutoSpaTracking: true};\n                    o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")\n                },\n                n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function()\n                {\n                    var s=this.readyState;\n                    s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)\n                },\n                i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)\n            })\n            (window,document,"script","//bat.bing.com/bat.js","uetq");\n          '}}),(0,s.jsx)(c,{})]})}},50477:()=>{},57780:e=>{e.exports={"wechat-block":"wechat_wechat-block__tBfmx","wechat-image":"wechat_wechat-image__fXzRP","wechat-loading":"wechat_wechat-loading__eKEjB","wechat-refresh":"wechat_wechat-refresh__juqhg","wechat-refresh-handle":"wechat_wechat-refresh-handle__SpdHt","wechat-remarks":"wechat_wechat-remarks__v_2qt"}},66090:(e,t,n)=>{Promise.resolve().then(n.bind(n,34545)),Promise.resolve().then(n.bind(n,65392)),Promise.resolve().then(n.t.bind(n,69243,23)),Promise.resolve().then(n.t.bind(n,2252,23)),Promise.resolve().then(n.t.bind(n,59408,23)),Promise.resolve().then(n.t.bind(n,56970,23)),Promise.resolve().then(n.t.bind(n,91996,23)),Promise.resolve().then(n.t.bind(n,81231,23)),Promise.resolve().then(n.t.bind(n,20047,23)),Promise.resolve().then(n.bind(n,30255)),Promise.resolve().then(n.bind(n,78931)),Promise.resolve().then(n.bind(n,47129)),Promise.resolve().then(n.bind(n,12380)),Promise.resolve().then(n.bind(n,96377))},71222:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,eK:()=>l,gs:()=>c,qo:()=>d,wD:()=>a});var s=n(51990),o=n(8285),i=n(25751);let a=(0,s.zD)("auth/checkLogin",async(e,t)=>{let{dispatch:n}=t,s=(0,i.OR)("CLTOKEN");try{let e=await o.A.post("/cloudApi/check/login",{token:s});if("000000"===e.code)return e.data;throw Error("Invalid token or server error")}catch(e){throw console.error("Authentication check failed:",e),e}}),r=(0,s.Z0)({name:"auth",initialState:{open:!1,isLogin:!1,loading:!1,error:null,redirectUrl:null},reducers:{openAuthModal:(e,t)=>{e.open=!0,e.redirectUrl=t.payload||null},closeAuthModal:e=>{e.open=!1,e.redirectUrl=null},setIsLogin:(e,t)=>{e.isLogin=t.payload}},extraReducers:e=>{e.addCase(a.pending,e=>{e.loading=!0,e.error=null}).addCase(a.fulfilled,(e,t)=>{e.loading=!1,e.isLogin=t.payload}).addCase(a.rejected,(e,t)=>{e.loading=!1,e.error=t.error.message||"Unknown error",e.isLogin=!1})}}),{openAuthModal:l,closeAuthModal:c,setIsLogin:d}=r.actions,u=r.reducer},78931:(e,t,n)=>{"use strict";n.d(t,{default:()=>z});var s=n(95155),o=n(12115),i=n(96194),a=n(94600),r=n(19361),l=n(74947),c=n(25751),d=n(15264),u=n(10150),g=n.n(u);function m(e){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:g().login_box_wrap,children:(0,s.jsx)("div",{className:g().login_wrap,children:(0,s.jsx)("div",{className:g().login_right,children:e.children})})})})}var h=n(86615),_=n(56020),p=n(98696),f=n(42686),w=n(8285),v=n(95108);let y=(0,o.forwardRef)(function(e,t){let[n,i]=(0,o.useState)({message:"",type:"info",visible:!1});return(0,o.useImperativeHandle)(t,()=>({setMessageTips:i})),(0,o.useEffect)(()=>{n.visible&&setTimeout(()=>{i({message:"",type:"info",visible:!1})},4e3)},[n.visible]),(0,o.useEffect)(()=>()=>{i({message:"",type:"info",visible:!1})},[]),n.visible&&(0,s.jsx)("div",{className:g().messagetips_wrap,children:(0,s.jsx)("div",{className:g().messagetips_content,children:(0,s.jsx)(v.A,{message:n.message,type:n.type,showIcon:!0,closable:!0,afterClose:()=>{i({message:"",type:"info",visible:!1})}})})})});var b=n(34540);function j(){let e=(0,b.d4)(e=>e.auth.redirectUrl);return{loginSuccess:t=>{(0,c.d3)(t.token),e?window.location.href=e:window.location.reload()}}}let x=()=>{let[e,t]=i.A.useModal(),n=(0,o.useRef)(null),a=(0,o.useRef)(null),r=(0,o.useCallback)(t=>{var o;let{title:i}=t;null===(o=n.current)||void 0===o||o.destroy(),clearInterval(a.current);let r=3,l=null==i?void 0:i.replace(/\d+/g,e=>'<span style="color: #ff5b68;">'.concat(e,"</span>"));n.current=e.success({title:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:l}}),content:"提醒框 ".concat(r," s后自动关闭."),centered:!0,okText:"知道了"}),a.current=setInterval(()=>{r-=1,n.current.update({content:"提醒框 ".concat(r," s后自动关闭.")})},1e3),setTimeout(()=>{clearInterval(a.current),n.current.destroy()},1e3*r)},[e]);return(0,o.useEffect)(()=>()=>{var e;null===(e=n.current)||void 0===e||e.destroy(),clearInterval(a.current)},[]),{countDown:r,contextHolder:t}};function A(){let{countDown:e,contextHolder:t}=x(),[n]=h.A.useForm(),[a,r]=(0,o.useState)(null),[l,u]=(0,o.useState)(null),[m,v]=(0,o.useState)(null),[b,A]=(0,o.useState)(!1),k=(0,o.useRef)(),[C,S]=(0,o.useState)(!1),{loginSuccess:T}=j(),I=(0,o.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{username:s,password:o}=n.getFieldsValue(["username","password"]);w.A.post("/cloudApi/api/v1/sms/login/sendSmsCode",{username:s,password:(0,c.e9)(o),...t}).then(t=>{if("000000"===t.code){var n,o,i,a,r;L(!0),P(60),v(null===(n=t.data)||void 0===n?void 0:n.secret_key),s.slice(-4)===(null==t?void 0:null===(i=t.data)||void 0===i?void 0:null===(o=i.tips)||void 0===o?void 0:o.substring(0,4))?k.current.setMessageTips({message:null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.tips,type:"success",visible:!0}):e({title:null==t?void 0:null===(r=t.data)||void 0===r?void 0:r.tips})}else L(!1),k.current.setMessageTips({message:t.message,type:"error",visible:!0})}).catch(e=>{L(!1)})},[e,n]),E=(0,o.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{username:s,password:o,login_code:a=""}=n.getFieldsValue(["username","password","login_code"]);S(!0),w.A.post("/cloudApi/api/v1/account/login",{username:s,password:(0,c.e9)(o),login_code:b?a:void 0,...t}).then(n=>
1{if("000000"===n.code){var o,a,r,l,c;(null==n?void 0:null===(o=n.data)||void 0===o?void 0:o.send_code)?(S(!1),A(!0),L(!0),P(60),v(n.data.secret_key),s.slice(-4)===(null==n?void 0:null===(r=n.data)||void 0===r?void 0:null===(a=r.tips)||void 0===a?void 0:a.substring(0,4))?k.current.setMessageTips({message:null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.tips,type:"success",visible:!0}):e({title:null==n?void 0:null===(c=n.data)||void 0===c?void 0:c.tips})):(localStorage.setItem("CL_LOGIN_TYPE","account"),T({...n.data,is_customize:null==t?void 0:t.agent}))}else"21202011"===n.code?i.A.warning({title:"系统提示",content:"您的账户没有绑定手机号码,请先绑定手机号码"}):(S(!1),k.current.setMessageTips({message:n.message,type:"error",visible:!0}))}).catch(e=>{L(!1)})},[n,b,e,T]),[N,L]=(0,o.useState)(!1),[z,P]=(0,o.useState)(0),M=(0,o.useMemo)(()=>0===z?(L(!1),"获取验证码"):"重新获取(".concat(z,")"),[z]);return(0,o.useEffect)(()=>{let e=setTimeout(()=>{z>0?P(e=>e-1):clearTimeout(e)},1e3);return()=>{clearTimeout(e)}},[z]),(0,o.useEffect)(()=>{r(new window.TencentCaptcha(c.e6,e=>{0===e.ret?I({ticket:e.ticket,randstr:e.randstr}):L(!1)},{bizState:"login"}))},[I]),(0,o.useEffect)(()=>{u(new window.TencentCaptcha(c.e6,e=>{0===e.ret?(S(!0),L(!1),E({ticket:e.ticket,randstr:e.randstr})):L(!1)},{bizState:"login"}))},[I]),(0,s.jsxs)(h.A,{onFinish:()=>{m?E({secret:m}):l.show()},form:n,children:[(0,s.jsx)("input",{type:"text",style:{display:"none"}}),(0,s.jsx)("input",{type:"password",style:{display:"none"}}),(0,s.jsx)(y,{ref:k}),(0,s.jsx)(h.A.Item,{name:"username",rules:[{required:!0,message:"账号不能为空"}],children:(0,s.jsx)(_.A,{size:"large",placeholder:"请输入您的账号/子账号",autoComplete:"off",onChange:()=>{A(!1),v(null),n.setFieldsValue({login_code:""})}})}),(0,s.jsx)(h.A.Item,{name:"password",rules:[{required:!0,message:"密码不能为空"},{pattern:/^.{6,16}$/,message:"密码格式不正确"}],children:(0,s.jsx)(_.A.Password,{placeholder:"请输入您的密码",size:"large",autoComplete:"off",visibilityToggle:!1,style:{borderRadius:0}})}),(0,s.jsx)(h.A.Item,{style:{overflow:b?"auto":"hidden",height:b?"auto":0,marginBottom:24*!!b},children:(0,s.jsxs)("div",{className:g().code,children:[(0,s.jsx)(h.A.Item,{name:"login_code",noStyle:!0,rules:[{required:b,message:"验证码不能为空"}],children:(0,s.jsx)(_.A,{placeholder:"验证码",size:"large",autoComplete:"off"})}),(0,s.jsx)(p.Ay,{size:"large",disabled:N,block:!0,onClick:()=>{n.validateFields(["username","password"]).then(()=>{L(!0),a.show()}).catch(()=>{})},children:M})]})}),(0,s.jsx)(h.A.Item,{children:(0,s.jsxs)(p.Ay,{size:"large",block:!0,type:"primary",htmlType:"submit",className:g()["login-form-button"],loading:C,children:[(0,s.jsx)("span",{children:"登录"}),(0,s.jsx)("span",{children:!C&&(0,s.jsx)(f.default,{type:"jiantou"})})]})}),t,(0,s.jsx)("div",{className:g().other,children:(0,s.jsx)("a",{onClick:()=>{(0,d.MH)()},children:"忘记密码"})})]})}var k=n(94326),C=n(57780),S=n.n(C);function T(){let e=(0,o.useRef)(),t=(0,o.useRef)(),[n,i]=(0,o.useState)({}),[a,c]=(0,o.useState)(!1),{loginSuccess:u}=j(),g=(0,o.useCallback)(()=>{w.A.post("/cloudApi/api/v1/account/wechat/qrcode".concat("?scene_str=cloud_login"),{}).then(e=>{"000000"===e.code?i(e.data||{}):k.Ay.error(e.message)})},[]),m=(0,o.useCallback)(t=>{clearTimeout(e.current),!1===a&&w.A.post("/cloudApi/api/v1/account/wechat/loginStatusCheck",{we_ticket:t}).then(n=>{"000000"===n.code?(localStorage.setItem("CL_LOGIN_TYPE","wechat"),u(n.data||{})):"21202046"===n.code?c(!0):"21202041"===n.code?(window.location.replace("/wechat/".concat(t)),(0,d.k3)(t)):"21202040"===n.code?e.current=setTimeout(()=>m(t),2e3):k.Ay.error(n.message)})},[u,a]),h=(0,o.useCallback)(()=>{g(),i({}),c(!1)},[g]);return(0,o.useEffect)(()=>(g(),()=>{clearTimeout(e.current),clearInterval(t.current)}),[g]),(0,o.useEffect)(()=>{n.we_ticket&&m(n.we_ticket)},[n.we_ticket,m]),(0,o.useEffect)(()=>{if(n.we_ticket){let e=1;clearInterval(t.current),t.current=setInterval(()=>{e>=300?(c(!0),clearInterval(t.current)):e++},1e3)}},[n.we_ticket]),(0,s.jsx)(o.Fragment,{children:(0,s.jsxs)("div",{className:S()["wechat-block"],children:[n.we_ticket?(0,s.jsx)(r.A,{align:"middle",justify:"center",className:S()["wechat-image"],children:(0,s.jsx)("img",{height:240,src:"http://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=".concat(n.we_ticket),alt:""})},"loading"):(0,s.jsxs)(r.A,{align:"middle",justify:"center",className:S()["wechat-loading"],children:[(0,s.jsx)("img",{height:60,src:"https://static2.253.com/ups/images/loading.svg",alt:"二ç
1»´ç åŠ è½½ä¸­"}),(0,s.jsx)("p",{style:{marginTop:10},children:"二维码加载中"})]},"code"),a&&(0,s.jsx)(r.A,{align:"middle",justify:"center",className:S()["wechat-refresh"],children:(0,s.jsxs)(l.A,{onClick:h,className:S()["wechat-refresh-handle"],children:[(0,s.jsx)("img",{src:"https://static2.253.com/ups/images/refresh.svg",height:40,alt:"二维码刷新"}),(0,s.jsx)("div",{style:{marginTop:10},children:"二维码已失效"}),(0,s.jsx)("div",{children:"点击重试"})]})}),(0,s.jsx)("div",{className:S()["wechat-remarks"],children:"首次扫码关注“创蓝云智”服务号需绑定账号"})]})})}function I(){let{countDown:e,contextHolder:t}=x(),[n]=h.A.useForm(),[i,a]=(0,o.useState)(null),[r,l]=(0,o.useState)(null),d=(0,o.useRef)(),[u,m]=(0,o.useState)(!1),{loginSuccess:v}=j(),b=(0,o.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{username:s}=n.getFieldsValue(["username"]);w.A.post("/cloudApi/api/v1/sms/login/sendSmsCode",{username:s,...t},{type:"002ups"}).then(t=>{if("000000"===t.code){var n,o,i,a,r;C(!0),T(60),l(null===(n=t.data)||void 0===n?void 0:n.secret_key),s.slice(-4)===(null==t?void 0:null===(i=t.data)||void 0===i?void 0:null===(o=i.tips)||void 0===o?void 0:o.substring(0,4))?d.current.setMessageTips({message:null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.tips,type:"success",visible:!0}):e({title:null==t?void 0:null===(r=t.data)||void 0===r?void 0:r.tips})}else C(!1),d.current.setMessageTips({message:t.message,type:"error",visible:!0})}).catch(e=>{C(!1)})},[n]),A=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{username:t,login_code:s=""}=n.getFieldsValue(["username","login_code"]);m(!0),w.A.post("/cloudApi/api/v1/account/login",{username:t,login_code:s,...e},{type:"002ups"}).then(t=>{"000000"===t.code?(localStorage.setItem("CL_LOGIN_TYPE","smscode"),v({...t.data,is_customize:null==e?void 0:e.agent})):(m(!1),d.current.setMessageTips({message:t.message,type:"error",visible:!0}))}).catch(e=>{C(!1)})},[n]),[k,C]=(0,o.useState)(!1),[S,T]=(0,o.useState)(0),I=(0,o.useMemo)(()=>0===S?(C(!1),"获取验证码"):"重新获取(".concat(S,")"),[S]);return(0,o.useEffect)(()=>{let e=setTimeout(()=>{S>0?T(e=>e-1):clearTimeout(e)},1e3);return()=>{clearTimeout(e)}},[S]),(0,o.useEffect)(()=>{a(new window.TencentCaptcha(c.e6,e=>{0===e.ret?b({ticket:e.ticket,randstr:e.randstr}):C(!1)},{bizState:"login"}))},[b]),(0,s.jsxs)(h.A,{name:"login_smscode",onFinish:()=>{r?A({secret:r}):d.current.setMessageTips({message:"请先获取验证码",type:"error",visible:!0})},form:n,children:[(0,s.jsx)("input",{type:"text",style:{display:"none"}}),(0,s.jsx)(y,{ref:d}),(0,s.jsx)(h.A.Item,{name:"username",rules:[{required:!0,message:"账号不能为空"}],children:(0,s.jsx)(_.A,{size:"large",placeholder:"请输入您的账号/子账号",autoComplete:"off",onChange:()=>{l(null),n.setFieldsValue({login_code:""})}})}),(0,s.jsx)(h.A.Item,{style:{overflow:"auto",height:"auto",marginBottom:24},children:(0,s.jsxs)("div",{className:g().code,children:[(0,s.jsx)(h.A.Item,{name:"login_code",noStyle:!0,rules:[{required:!0,message:"验证码不能为空"}],children:(0,s.jsx)(_.A,{placeholder:"验证码",size:"large",autoComplete:"off"})}),(0,s.jsx)(p.Ay,{size:"large",disabled:k,block:!0,onClick:()=>{n.validateFields(["username"]).then(()=>{C(!0),i.show()}).catch(()=>{})},children:I})]})}),(0,s.jsx)(h.A.Item,{children:(0,s.jsxs)(p.Ay,{size:"large",block:!0,type:"primary",htmlType:"submit",className:g()["login-form-button"],loading:u,children:[(0,s.jsx)("span",{children:"登录"}),(0,s.jsx)("span",{children:!u&&(0,s.jsx)(f.default,{type:"jiantou"})})]})}),t]})}let E=[{label:"账号登录",value:"account",icon:"https://static2.253.com/ups/images/login-account.svg"},{label:"微信扫码",value:"wechat",icon:"https://static2.253.com/ups/images/login-wechat.svg"},{label:"验证码登录",value:"smscode",icon:"https://static2.253.com/ups/images/login-smscode.svg"}];function N(){let[e,t]=(0,o.useState)("account"),n=(0,o.useMemo)(()=>E.filter(t=>t.value!==e),[e]),i=(0,o.useCallback)(()=>{switch(e){case"account":default:return(0,s.jsx)(A,{});case"wechat":return(0,s.jsx)(T,{});case"smscode":return(0,s.jsx)(I,{})}},[e]);return(0,o.useEffect)(()=>{let e=localStorage.getItem("CL_LOGIN_TYPE")||"account";["account","wechat","smscode"].includes(e)&&t(e)},[]),(0,o.useEffect)(()=>{(0,c.Lg)("CLTOKEN"),sessionStorage.removeItem("cl_token")},[]),(0,s.jsx)(m,{children:(0,s.jsxs)("div",{className:g().login_form,children:[(0,s.jsxs)("h2",{children:[(0,s.jsx)("span",{children:"欢迎登录"}),(0,s.jsx)("a",{onClick:d.C6,children:"注册新账号"})]}),i(),(0,s.jsx)(a.A,{style:{marginBottom:20},children:(0,s.jsx)("span",{style:{color:"#999"},children:"其它登录方式"})}),(0,s.jsx)(r.A,{gutter:[32,16],align:"middle",justify:"center",style:{textAlign:"center"},children:n.map(e=>(0,s.jsxs)(l.A,{style:{cursor:"pointer"},onClick:()=>{t(e.value),localStorage.setItem("CL_LOGIN_TYPE",e.value)},children:[(0,s.jsx)("img",{height:40,src:e.icon,alt:e.label}),(0,s.jsx)("div",{style:{marginTop:5},children:e.label})]},e.value))})]},"form")})}var L=n(71222);let z=()=>{let e=(0,b.d4)(e=>e.auth.open),t=(0,b.wA)();return(0,s.jsx)(i.A,{destroyOnHidden:!0,width:440,open:e,onCancel:()=>{t((0,L.gs)())},footer:null,centered:!0,zIndex:2100,styles:{header:{color:"#fff"},content:{padding:0}},children:(0,s.jsx)(N,{})})}},96377:(e,t,n)=>{"use strict";n.d(t,{StoreProvider:()=>c});var s=n(95155),o=n(12115),i=n(34540),a=n(51990),r=n(71222);let l=()=>(0,a.U1)({reducer:{auth:r.Ay}});function c(e){let{children:t}=e,n=(0,o.useRef)();return n.current||(n.current=l()),(0,s.jsx)(i.Kq,{store:n.current,children:t})}}},e=>{var t=t=>e(e.s=t);e.O(0,[823,1214,2202,7561,8696,9484,2417,6471,9184,703,7915,2602,7845,4225,9384,6020,4262,1330,6615,5149,1025,1622,8441,1684,7358],()=>t(66090)),_N_E=e.O()}]);

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.