PageSourceSearch

https://kuajing-help.com/layouts__PlatformLayout__index.3e3d5207.async.js

js kuajing-help.com collected 2026-09-24 14:46:53 UTC 38,755 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7677],{50459:(function(ve,L){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};L.A=e}),41955:(function(ve,L,e){e.d(L,{A:function(){return x}});var s=e(98477),c=e(37953),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},$=l,q=e(13517),te=function(D,J){return c.createElement(q.A,(0,s.A)((0,s.A)({},D),{},{ref:J,icon:$}))},H=c.forwardRef(te),x=H}),24233:(function(ve,L,e){var s=e(98477),c=e(37953),l=e(50459),$=e(13517),q=function(x,ee){return c.createElement($.A,(0,s.A)((0,s.A)({},x),{},{ref:ee,icon:l.A}))},te=c.forwardRef(q);L.A=te}),83129:(function(ve,L,e){e.d(L,{A:function(){return x}});var s=e(98477),c=e(37953),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},$=l,q=e(13517),te=function(D,J){return c.createElement(q.A,(0,s.A)((0,s.A)({},D),{},{ref:J,icon:$}))},H=c.forwardRef(te),x=H}),41638:(function(ve,L,e){var s=e(73159),c=e(98477),l=e(18211),$=e(74979),q=e(1920),te=e(2118),H=e(34346),x=e(37953),ee=e(89492),D=e(15621),J=["fieldProps","proFieldProps"],j=["fieldProps","proFieldProps"],t="text",ie=function(h){var i=h.fieldProps,_=h.proFieldProps,C=(0,l.A)(h,J);return(0,D.jsx)(ee.A,(0,c.A)({valueType:t,fieldProps:i,filedConfig:{valueType:t},proFieldProps:_},C))},ne=function(h){var i=(0,$.A)(h.open||!1,{value:h.open,onChange:h.onOpenChange}),_=(0,s.A)(i,2),C=_[0],a=_[1];return(0,D.jsx)(q.A.Item,{shouldUpdate:!0,noStyle:!0,children:function(n){var A,y=n.getFieldValue(h.name||[]);return(0,D.jsx)(te.A,(0,c.A)((0,c.A)({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:(0,D.jsxs)("div",{style:{padding:"4px 0"},children:[(A=h.statusRender)===null||A===void 0?void 0:A.call(h,y),h.strengthText?(0,D.jsx)("div",{style:{marginTop:10},children:(0,D.jsx)("span",{children:h.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},h.popoverProps),{},{open:C,children:h.children}))}})},g=function(h){var i=h.fieldProps,_=h.proFieldProps,C=(0,l.A)(h,j),a=(0,x.useState)(!1),p=(0,s.A)(a,2),n=p[0],A=p[1];return i!=null&&i.statusRender&&C.name?(0,D.jsx)(ne,{name:C.name,statusRender:i==null?void 0:i.statusRender,popoverProps:i==null?void 0:i.popoverProps,strengthText:i==null?void 0:i.strengthText,open:n,onOpenChange:A,children:(0,D.jsx)("div",{children:(0,D.jsx)(ee.A,(0,c.A)({valueType:"password",fieldProps:(0,c.A)((0,c.A)({}
1,(0,H.A)(i,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;i==null||(f=i.onBlur)===null||f===void 0||f.call(i,d),A(!1)},onClick:function(d){var f;i==null||(f=i.onClick)===null||f===void 0||f.call(i,d),A(!0)}}),proFieldProps:_,filedConfig:{valueType:t}},C))})}):(0,D.jsx)(ee.A,(0,c.A)({valueType:"password",fieldProps:i,proFieldProps:_,filedConfig:{valueType:t}},C))},z=ie;z.Password=g,z.displayName="ProFormComponent",L.A=z}),36100:(function(ve,L,e){e.d(L,{K:function(){return z}});var s=e(60460),c=e(38481),l=e(98477),$=e(73159),q=e(18211),te=e(52677),H=e(88859),x=e(66018),ee=e(81484),D=e(74979),J=e(15084),j=e(37953),t=e(88705),ie=e(71411),ne=e(15621),g=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function z(T){var h,i,_=T.children,C=T.trigger,a=T.onVisibleChange,p=T.onOpenChange,n=T.modalProps,A=T.onFinish,y=T.submitTimeout,d=T.title,f=T.width,F=T.visible,re=T.open,u=(0,q.A)(T,g);(0,J.g9)(!u.footer||!(n!=null&&n.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var Q=(0,j.useContext)(H.Ay.ConfigContext),w=(0,j.useState)([]),G=(0,$.A)(w,2),O=G[1],r=(0,j.useState)(!1),M=(0,$.A)(r,2),o=M[0],v=M[1],R=(0,D.A)(!!F,{value:re||F,onChange:p||a}),U=(0,$.A)(R,2),W=U[0],ae=U[1],de=(0,j.useRef)(null),xe=(0,j.useCallback)(function(B){de.current===null&&B&&O([]),de.current=B},[]),pe=(0,j.useRef)(),ye=(0,j.useCallback)(function(){var B,E,S,N=(B=(E=u.form)!==null&&E!==void 0?E:(S=u.formRef)===null||S===void 0?void 0:S.current)!==null&&B!==void 0?B:pe.current;N&&n!==null&&n!==void 0&&n.destroyOnClose&&N.resetFields()},[n==null?void 0:n.destroyOnClose,u.form,u.formRef]);(0,j.useImperativeHandle)(u.formRef,function(){return pe.current},[pe.current]),(0,j.useEffect)(function(){(re||F)&&(p==null||p(!0),a==null||a(!0))},[F,re]);var he=(0,j.useMemo)(function(){return C?j.cloneElement(C,(0,l.A)((0,l.A)({key:"trigger"},C.props),{},{onClick:(function(){var B=(0,c.A)((0,s.A)().mark(function S(N){var oe,K;return(0,s.A)().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:ae(!W),(oe=C.props)===null||oe===void 0||(K=oe.onClick)===null||K===void 0||K.call(oe,N);case 2:case"end":return le.stop()}},S)}));function E(S){return B.apply(this,arguments)}return E})()})):null},[ae,C,W]),Ue=(0,j.useMemo)(function(){var B,E,S,N,oe,K;return u.submitter===!1?!1:(0,ee.A)({searchConfig:{submitText:(B=(E=n==null?void 0:n.okText)!==null&&E!==void 0?E:(S=Q.locale)===null||S===void 0||(S=S.Modal)===null||S===void 0?void 0:S.okText)!==null&&B!==void 0?B:"\u786E\u8BA4",resetText:(N=(oe=n==null?void 0:n.cancelText)!==null&&oe!==void 0?oe:(K=Q.locale)===null||K===void 0||(K=K.Modal)===null||K===void 0?void 0:K.cancelText)!==null&&N!==void 0?N:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:y?o:void 0,onClick:function(le){var De;ae(!1),n==null||(De=n.onCancel)===null||De===void 0||De.call(n,le)}}},u.submitter)},[(h=Q.locale)===null||h===void 0||(h=h.Modal)===null||h===void 0?void 0:h.cancelText,(i=Q.locale)===null||i===void 0||(i=i.Modal)===null||i===void 0?void 0:i.okText,n,u.submitter,ae,o,y]),Se=(0,j.useCallback)(function(B,E){return(0,ne.jsxs)(ne.Fragment,{children:[B,de.current&&E?(0,ne.jsx)(j.Fragment,{children:(0,t.createPortal)(E,de.current)},"submitter"):E]})},[]),_e=(0,j.useCallback)((function(){var B=(0,c.A)((0,s.A)().mark(function E(S){var N,oe,K;return(0,s.A)().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return N=A==null?void 0:A(S),y&&N instanceof Promise&&(v(!0),oe=setTimeout(function(){return v(!1)},y),N.finally(function(){clearTimeout(oe),v(!1)})),le.next=4,N;case 4:return K=le.sent,K&&ae(!1),le.abrupt("return",K);case 7:case"end":return le.stop()}},E)}));return function(E){return B.apply(this,arguments)}})(),[A,ae,y]),We=(0,te.$)(W);return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(x.A,(0,l.A)((0,l.A)((0,l.A)({title:d,width:f||800},n),We),{},{onCancel:function(E){var S;y&&o||(ae(!1),n==null||(S=n.onCancel)===null||S===void 0||S.call(n,E))},afterClose:function(){var E;ye(),W&&ae(!1),n==null||(E=n.afterClose)===null||E===void 0||E.call(n)},footer:u.submitter!==!1?(0,ne.jsx)("div",{ref:xe,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,ne.jsx)(ie.I,(0,l.A)((0,l.A)({formComponentType:"ModalForm",layout:"vertical"},u),{},{onInit:function(E,S){var N;u.formRef&&(u.formRef.current=S),u==null||(N=u.onInit)===null||N===void 0||N.call(u,E,S),pe.current=S},formRef:pe,submitter:Ue,onFinish:(function(){var B=(0,c.A)((0,s.A)().mark(function E(S){var N;return(0,s.A)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,_e(S);case 2:return N=K.sent,K.abrupt("return",N);case 4:case"end":return K.stop()}},E)}));return function(E){return B.apply(this,arguments)}})(),contentRender:Se,children:_}))})),he]})}}),36544:(function(ve,L,e){var s=e(91977),c=(0,s.A)({scriptUrl:"/icons.js"});L.A=c}),98314:(function(ve,L,e){var s=e(37810),c=e.n(s),l=e(26572),$=e.n(l),q=e(52089),te=e(74094),H=e(2122),x=e.n(H),ee=e(37953),D=e(15621),J=["copyText","successMsg"];L.A=(function(j){var t=j.copyText,ie=j.successMsg,ne=$()(j,J),g=(0,ee.useMemo)(function(){return"id_".concat(t,"_").concat(Math.random().toString().substring(2,10))},[]);return(0,ee.useEffect)(function(){var z=document.getElementById(g);if(z){var T=new(x())(z,{});T.on("success",function(h){te.Ay.success(ie||"\u5E97\u94FAID\u5DF2\u590
1D\u5236\u5230\u526A\u5207\u677F")}),T.on("error",function(h){console.error(h)})}},[t]),(0,D.jsx)(q.A,c()({id:g,"data-clipboard-text":t,children:"\u590D\u5236",type:"link",size:"small",onClick:function(T){T.stopPropagation(),T.preventDefault()}},ne))}),e.dn(L.A)}),40251:(function(ve,L,e){e.d(L,{JT:function(){return h},O_:function(){return z},WN:function(){return T}});var s=e(37810),c=e.n(s),l=e(26572),$=e.n(l),q=e(55472),te=e.n(q),H=e(62027),x=e(60343),ee=e(87359),D=e(66437),J=e(37953),j=e(23762),t=e(15621),ie=["mainAccount"],ne=(0,H.B)([{value:"CREATE",label:"\u521B\u5EFA"},{value:"UPDATE",label:"\u4FEE\u6539"},{value:"DELETE",label:"\u5220\u9664"},{value:"VIEW",label:"\u67E5\u770B"}]),g=(0,J.createContext)({mainAccount:!1,pagePermission:null,resource:"",hasPagePermission:function(){return!0},hasModulePermission:_,hasOperationPermission:_});function z(C){var a=C.children,p=C.onSuccess,n=(0,ee.A)(j.hV),A=te()(n,2),y=A[0],d=A[1],f=(0,D.Ay)(i,{onSuccess:function(w){p==null||p(w),!(!(w!=null&&w.success)||!w.data)&&d(w.data)}}),F=f.data,re=window.location.pathname,u=(0,J.useMemo)(function(){var Q=(F==null?void 0:F.data)||y||{mainAccount:!0};if(!Q)return{mainAccount:!1,permissionData:null,pagePermission:null,resource:"",hasPagePermission:function(){return!0},hasModulePermission:_,hasOperationPermission:_};var w=Q.mainAccount,G=$()(Q,ie),O=!!w,r=G[re],M=r||{},o=M.resources;return{mainAccount:O,permissionData:Q,pagePermission:r,resource:"",hasPagePermission:function(){var R;return O?!0:(R=r==null?void 0:r.permission)!==null&&R!==void 0?R:!0},hasModulePermission:function(R){if(O)return!0;if(!Array.isArray(o)||!o.length)return!1;var U=o.find(function(W){return W.resource===R});return!!(U!=null&&U.permission)},hasOperationPermission:function(){return!!O}}},[F]);return(0,t.jsx)(g.Provider,{value:u,children:a})}function T(C){var a=C.resource,p=C.fallback,n=C.children,A=h(),y=(0,J.useMemo)(function(){var d=A||{},f=d.mainAccount,F=d.pagePermission,re=F||{},u=re.resources;return c()(c()({},A),{},{resource:a,hasOperationPermission:function(w){if(f)return!0;if(!Array.isArray(u)||!u.length)return!1;var G=u.find(function(r){return r.resource===a});if(!G||!G.permission)return!1;var O=G.operations;return!Array.isArray(O)||!O.length?!1:O.includes(w)}})},[A,a]);return(0,t.jsx)(g.Provider,{value:y,children:y.hasModulePermission(a)?n:p})}function h(){return(0,J.useContext)(g)}function i(){return(0,x.request)("/api/v1/platform/account/permission",{method:"POST",data:{}})}function _(){return!1}}),51072:(function(ve,L,e){e.r(L),e.d(L,{default:function(){return ft}});var s=e(55472),c=e.n(s),l=e(84314),$=e(15554),q=e(66018),te=e(77919),H=e(52089),x=e(37953),ee=e(37810),D=e.n(ee),J=e(1920),j=e(3524),t=e(15621),ie={labelCol:{flex:"0 0 80px"}},ne=(0,x.forwardRef)(function(V,P){var m=V.initValues,b=J.A.useForm(),I=c()(b,1),se=I[0];return(0,x.useImperativeHandle)(P,function(){return se}),(0,t.jsx)(J.A,D()(D()({form:se},ie),{},{initialValues:m,children:(0,t.jsx)(J.A.Item,{name:l.U.USER_ID,label:l.U.$USER_ID.label,children:(0,t.jsx)(j.A,{placeholder:"\u8BF7\u8F93\u5165"})})}))}),g=ne,z={container:"container___rHFtK",title:"title___EkbmS",btnAction:"btnAction___svFtI",item:"item___yKRts"},T="drag_client_debug_id";function h(){var V=l.U.load(),P=V[l.U.USER_ID],m=!!P,b=(0,$.sp)(),I=c()(b,2),se=I[0],X=I[1];(0,x.useEffect)(function(){var ce="",Ee=function(Ce){var me=Ce.key;["m","a","g","i","c"].includes(me)?(ce+=me,/.*magic$/.test(ce)&&se({title:"\u9B54\u6CD5",component:g,onOk:function(Oe,fe,Me){l.U.save(Oe),fe(),window.location.reload()}})):ce=""};return document.addEventListener("keypress",Ee),function(){document.removeEventListener("keypress",Ee)}},[]),(0,x.useEffect)(function(){var ce=document.getElementById(T);if(!ce)return;var Ee=!1,Te=0,Ce=0;function me(fe){fe.preventDefault(),Ee=!0;var Me=ce.getBoundingClientRect();Te=fe.clientX-Me.left,Ce=fe.clientY-Me.top-104,document.addEventListener("mousemove",Re),document.addEventListener("mouseup",Oe)}function Re(fe){if(fe.preventDefault(),!!Ee){var Me=fe.clientX-Te,Je=fe.clientY-Ce;ce.style.right="unset",ce.style.left="".concat(Me,"px"),ce.style.top="".concat(Je,"px")}}function Oe(fe){fe.preventDefault(),Ee=!1,document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",Oe)}return ce.addEventListener("mousedown",me),function(){ce.removeEventListener("mousedown",me),document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",Oe)}},[]);var k=function(){q.A.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u9000\u51FA\u8C03\u8BD5\u5417\uFF1F",onOk:function(){l.U.save({}),window.location.reload()}})},Fe=function(){se({title:"\u9B54\u6CD5",component:g,componentProps:{initValues:V},onOk:function(Te,Ce,me){l.U.save(Te),Ce(),window.location.reload()}})};return(0,t.jsxs)(t.Fragment,{children:[m?(0,t.jsxs)("div",{id:T,draggable:!0,className:z.container,children:[(0,t.jsx)("div",{className:z.title,children:"\u8C03\u8BD5\u6A21\u5F0F"}),(0,t.jsx)("div",{className:z.item,children:(0,t.jsxs)(te.A,{split:":",size:2,children:[(0,t.jsx)("div",{children:l.U.$USER_ID.label}),(0,t.jsx)("div",{children:P||"-"})]})}),(0,t.jsx)("div",{className:z.item,children:(0,t.jsx)(H.A,{type:"primary",className:z.btnAction,onClick:Fe,children:"\u4FEE\u6539\u8C03\u8BD5\u914D\u7F6E"})}),(0,t.jsx)("div",{className:z.item,children:(0,t.jsx)(H.A,{type:"primary",className:z.btnAction,onClick:k,children:"\u9000\u51FA\u8C03\u8BD5"})})]}):null,X]})}var i=h,_=e(26572),C=e.n(_),a={iButton:"iButton___K38xr"},p=["children","className"],n=(function(V){var P=V.children,m=V.className,b=C()(V,p);return(0,t.jsx)("span",D()(D()({},b),{},{className:a.iButton+(m?" "+m:""),children:P}))});e.dn(n);var A=e(36544),y=e(98314),d=e(60343),f=e(25902),F=e(64043),re=e(9182),u=e.n(re),Q={custmorSlickDots:"custmorSlickDots___qWmpM"},w=(function(){var V=(0,x.useState)([]),P=c()(V,2),m=P[0],b=P[1];return(0,x.useEffect)(function(){var I=localStorage.getItem("ad_topbar");if(I){var se=JSON.parse(I);u()(se.time).diff(u()(),"day")<=1&&b(se.data)}},[]),(0,x.useEffect)(function(){(0,d.request)("/api/v1/platform/ad/topbar",{method:"POST"}
1).then(function(I){I.success&&(b(I.data),localStorage.setItem("ad_topbar",JSON.stringify({data:I.data,time:u()().valueOf()})))})},[]),m!=null&&m.length?(0,t.jsx)(f.A,{type:"info",closable:!0,style:{marginBottom:"5px"},showIcon:!0,message:m.length>1?(0,t.jsx)(F.A,{autoplay:!0,dotPosition:"right",style:{height:"auto"},dots:{className:Q.custmorSlickDots},children:m==null?void 0:m.map(function(I){return(0,t.jsx)("div",{children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:I}})})})}):(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:m[0]}})}):(0,t.jsx)(t.Fragment,{})});e.dn(w);var G=e(41955),O=e(36100),r=e(41638),M=e(74094),o=e(15921),v=e.n(o),R=function(P){if(P&&P.trim().length>7){if(/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*])[A-Za-z\d!@#$%^&*]{8,}$/.test(P))return"ok";if(/^(?!([A-Za-z]+|\d+|[!@#$%^&*]+)$)[A-Za-z\d!@#$%^&*]{8,}$/.test(P))return"pass"}return null},U=(function(){var V=(0,d.useModel)("base"),P=V.clearLocalData;return(0,t.jsxs)(O.K,{title:"\u66F4\u65B0\u5BC6\u7801",trigger:(0,t.jsx)(H.A,{style:{width:"100%"},children:"\u66F4\u65B0\u5BC6\u7801"}),onFinish:function(b){return new Promise(function(I,se){(0,d.request)("/api/v1/platform/account/update_password",{method:"POST",data:{oldPassword:v().MD5(b.oldPassword).toString(),newPassword:v().MD5(b.newPassword).toString()}}).then(function(X){X.success?(M.Ay.success("\u4FEE\u6539\u6210\u529F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),(0,d.request)("/api/v1/platform/logout",{method:"POST"}).then(function(k){I(k),k.success&&(P(),d.history.push("/"))}).finally(function(){I(X)})):(se(!1),M.Ay.error(X.msg||"\u4FEE\u6539\u5931\u8D25"))}).catch(se)})},submitter:{searchConfig:{submitText:"\u66F4\u65B0\u5BC6\u7801"}},children:[(0,t.jsx)(r.A.Password,{name:"oldPassword",fieldProps:{size:"large",prefix:(0,t.jsx)(G.A,{className:"prefixIcon"})},placeholder:"\u65E7\u5BC6\u7801"}),(0,t.jsx)(r.A.Password,{name:"newPassword",fieldProps:{size:"large",prefix:(0,t.jsx)(G.A,{className:"prefixIcon"}),strengthText:"\u5BC6\u7801\u5E94\u81F3\u5C11\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u548C\u7279\u6B8A\u5B57\u7B26\u4E2D\u7684\u4E24\u79CD\uFF0C\u957F\u5EA6\u81F3\u5C11\u4E3A8\u4E2A\u5B57\u7B26\u3002",statusRender:function(b){var I=R(b);return I==="pass"?(0,t.jsx)("div",{style:{color:"#ffd591"},children:"\u5F3A\u5EA6\uFF1A\u4E2D"}):I==="ok"?(0,t.jsx)("div",{style:{color:"#52c41a"},children:"\u5F3A\u5EA6\uFF1A\u5F3A"}):I==="poor"?(0,t.jsx)("div",{style:{color:"#f5222d"},children:"\u5F3A\u5EA6\uFF1A\u5F31"}):(0,t.jsx)("div",{style:{color:"#f5222d"},children:"\u5BC6\u7801\u4E0D\u7B26\u5408\u89C4\u5219"})}},placeholder:"\u65B0\u5BC6\u7801",rules:[{validator:function(b,I){if(!I)return Promise.reject(new Error("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"));var se=R(I);return se?Promise.resolve():Promise.reject(new Error("\u5BC6\u7801\u5E94\u81F3\u5C11\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u548C\u7279\u6B8A\u5B57\u7B26\u4E2D\u7684\u4E24\u79CD\uFF0C\u957F\u5EA6\u81F3\u5C11\u4E3A8\u4E2A\u5B57\u7B26\u3002"))}}]}),(0,t.jsx)(r.A.Password,{name:"password2",placeholder:"\u786E\u8BA4\u5BC6\u7801",fieldProps:{size:"large",prefix:(0,t.jsx)(G.A,{className:"prefixIcon"})},dependencies:["newPassword"],rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801\uFF01"},function(m){var b=m.getFieldValue;return{validator:function(se,X){return!X||b("newPassword")===X?Promise.resolve():Promise.reject(new Error("\u60A8\u8F93\u5165\u7684\u4E24\u4E2A\u5BC6\u7801\u4E0D\u5339\u914D\uFF01"))}}}]})]})});e.dn(U);var W=e(91582),ae={NORMAL:{title:"\u6B63\u5E38",color:"#2dc82d"},EXPIRED:{title:"\u8FC7\u671F",color:"#ff4b4b"}},de=e(40251),xe=e(50291),pe=e(19289),ye=e(83253),he=e(98477),Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},Se=Ue,_e=e(13517),We=function(P,m){return x.createElement(_e.A,(0,he.A)((0,he.A)({},P),{},{ref:m,icon:Se}))},B=x.forwardRef(We),E=B,S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},N=S,oe=function(P,m){return x.createElement(_e.A,(0,he.A)((0,he.A)({},P),{},{ref:m,icon:N}))},K=x.forwardRef(oe),Ie=K,le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}
1]},name:"logout",theme:"outlined"},De=le,He=function(P,m){return x.createElement(_e.A,(0,he.A)((0,he.A)({},P),{},{ref:m,icon:De}))},ue=x.forwardRef(He),we=ue,Ve=e(24233),Ye=e(83129),Ke=e(13554),ze=e(36947),Pe=e(78683),$e=e(7950),Ae=e(50165),ge=e(30755),je=e(92347),ke=e(2118),qe=e(4270),Le={adminLayout:"adminLayout___kFoOc",currentShop:"currentShop___Jj8rL",globalMallOption:"globalMallOption___cK72R",mallSelect:"mallSelect___HTyLr",siteSelect:"siteSelect___W4vVx",mallSelectWrap:"mallSelectWrap___fq9yI"},et=e(62384);function tt(V){var P=(0,de.JT)(),m=P.permissionData;return(0,t.jsx)(et.A,D()({mode:"inline",style:{height:"100%",borderRight:0},items:W.ix.getMenuItemsByPermission(m)},V))}var nt=tt,rt,ot,lt,at,Ge,st,it=Pe.A.Header,ut=Pe.A.Content,ct=Pe.A.Sider,dt=function(P){var m,b=(0,d.useModel)("base"),I=b.mallId,se=b.setMallId,X=b.mallList,k=b.userInfo,Fe=b.mallListLoading,ce=b.domain,Ee=b.setDomain,Te=b.clearLocalData;(0,$.cw)();var Ce=(0,d.useLocation)(),me=Ce.pathname,Re=(0,x.useState)([me]),Oe=c()(Re,2),fe=Oe[0],Me=Oe[1],Je=(0,x.useState)(!!localStorage.getItem("sider-collapsible")),Xe=c()(Je,2),be=Xe[0],Ze=Xe[1],Ne=(0,x.useMemo)(function(){return X==null?void 0:X.find(function(Y){return Y.mallId===I})},[I,X]);(0,x.useEffect)(function(){!k||!k.phone||!k.userId?d.history.push(W.yT.LOGIN):Me(me)},[me]);var mt=function(){var Z=W.yT.isHome(me),Be=[W.yT.BUY_MALL,W.yT.MALL_LIST,W.yT.ORDERS,W.yT.SUB_ACCOUNT,W.yT.MY_SETTING].includes(me);if(!Be&&!(X!=null&&X.length)){var pt=Fe?[]:[(0,t.jsx)(H.A,{type:"primary",onClick:function(){d.history.push(k!=null&&k.memberCode?W.yT.MALL_LIST:W.yT.BUY_MALL)},children:k!=null&&k.memberCode?"\u53BB\u6DFB\u52A0\u5E97\u94FA":"\u53BB\u5F00\u901A"})];return(0,t.jsx)($e.Ay,{title:Fe?"\u8BF7\u7A0D\u7B49":"\u6682\u65E0\u5F00\u901A\u7684\u5E97\u94FA",status:Fe?void 0:"error",icon:Fe?(0,t.jsx)(pe.A,{}):void 0,extra:pt})}var ht=Ne?Ne.expireTime<u()().valueOf():!1,Qe=!Be&&ht;return(0,t.jsxs)("div",{style:{minWidth:"100%",minHeight:"100%",position:"relative"},children:[(0,t.jsxs)("div",{style:{minWidth:"100%",minHeight:"100%",filter:Qe?"blur(2.5px)":""},children:[Z?(0,t.jsx)(w,{}):null,(0,t.jsx)(d.Outlet,{})]}),Qe?(0,t.jsx)("div",{style:{width:"calc(100% + 32px)",height:"calc(100% + 32px)",position:"absolute",background:"rgba(0, 0, 0, 0.6)",top:"-10px",left:"-16px",zIndex:999,paddingTop:"20%",color:"#fff"},children:(0,t.jsx)($e.Ay,{title:(0,t.jsxs)("span",{style:{color:"#fff"},children:["\u5E97\u94FA",Ne.mallName,"(",Ne.mallId,") \u8BA2\u9605\u670D\u52A1\u5DF2\u5230\u671F"]}),subTitle:(0,t.jsx)("span",{style:{color:"#fff"},children:"\u5230\u671F\u540E\u8BE5\u5E97\u94FA\u7684\u6570\u636E\u5C06\u4F1A\u88AB\u4FDD\u75597\u5929\uFF0C7\u5929\u4E4B\u540E\u6570\u636E\u5C06\u4F1A\u88AB\u6E05\u7406\uFF0C\u6BCF\u65E5\u9500\u91CF\u7B49\u6570\u636E\u5C06\u4E2D\u65AD\u5E76\u4E22\u5931\uFF1B\u8BF7\u5C3D\u5FEB\u7EED\u8D39"}),status:"warning",icon:(0,t.jsx)(ye.A,{}),extra:[(0,t.jsx)(H.A,{type:"primary",size:"large",onClick:function(){return d.history.push("".concat(W.yT.BUY_MALL,"?mallIds=").concat(Ne.mallId))},children:"\u53BB\u7EED\u8D39"})]})}):null]})};return(0,t.jsxs)(de.O_,{children:[(0,t.jsxs)(Pe.A,{className:Le.adminLayout,children:[(0,t.jsxs)(it,{className:"header-light",children:[(0,t.jsx)(d.Link,{className:"logo",to:"/",children:"\u5546\u5BB6\u52A9\u624B"}),(0,t.jsxs)("div",{className:Le.currentShop,children:[(0,t.jsx)(n,{style:{position:"absolute",top:"19px",left:"155px",fontSize:"18px"},onClick:function(){Ze(!be)},children:be?(0,t.jsx)(Ie,{}):(0,t.jsx)(E,{})}),(0,t.jsxs)("div",{className:Le.mallSelectWrap,style:{display:"flex",alignItems:"center"},children:[X!=null&&X.length?(0,t.jsxs)(t.Fragment,{children:["\u5F53\u524D\u5E97\u94FA\uFF1A",(0,t.jsxs)(Ae.A,{value:I,showSearch:!0,onChange:function(Z){se(Z)},filterOption:vt,className:Le.mallSelect,bordered:!1,dropdownMatchSelectWidth:!1,optionLabelProp:"label",dropdownRender:function(Z){return Z},children:[(0,t.jsx)(Ae.A.Option,{value:-1,label:"\u5168\u90E8\u5E97\u94FA",children:(0,t.jsx)("div",{className:Le.globalMallOption,children:"\u5168\u90E8\u5E97\u94FA"})},-1),X==null?void 0:X.map(function(Y){var Z,Be;return(0,t.jsx)(Ae.A.Option,{value:Y.mallId,label:Y.mallName,children:(0,t.jsxs)("div",{style:{lineHeight:1.2},children:[(0,t.jsxs)("div",{children:[Y.mallName,"(",Y.mallId,")"," ",(0,t.jsx)(y.A,{copyText:Y.mallId})]}),(0,t.jsxs)("div",{style:{fontSize:"12px",color:"#999",fontWeight:"400",lineHeight:"18px"},children:["\u5E97\u94FA\u7C7B\u578B\uFF1A",(0,t.jsx)("span",{style:{display:"inline-block",borderRadius:"4px",padding:"2px 5px"},children:Y.semi===1?"\u534A\u6258":"\u5168\u6258"})]}),(0,t.jsxs)("div",{style:{fontSize:"12px",color:"#999",fontWeight:"400",lineHeight:"18px"},children:["\u5F53\u524D\u72B6\u6001\uFF1A",(0,t.jsx)("span",{style:{display:"inline-block",borderRadius:"4px",padding:"2px 5px",background:(Z=ae[Y.status])===null||Z===void 0?void 0:Z.color,color:"#fff"},children:(Be=ae[Y.status])===null||Be===void 0?void 0:Be.title})]}),(0,t.jsxs)("div",{style:{fontSize:"12px",color:"#999",fontWeight:"400",lineHeight:"18px"},children:["\u5230\u671F\u65F6\u95F4\uFF1A",u()(Y.expireTime).format("YYYY-MM-DD HH:mm:ss")]})]})},Y.mallId)})]})]}):(0,t.jsx)(t.Fragment,{}),(0,t.jsxs)("div",{children:["\u7AD9\u70B9\uFF1A",(0,t.jsx)(Ae.A,{value:ce,onChange:function(Z){Ee(Z)},className:Le.siteSelect,bordered:!1,options:[{value:"agentseller.temu.com",label:"\u5168\u7403"},{value:"agentseller-us.temu.com",label:"\u7F8E\u56FD"},{value:"agentseller-eu.temu.com",label:"\u6B27\u533A"}]})]})]}),(0,t.jsxs)("div",{style:{position:"absolute",top:"0",right:"0",display:"flex",alignItems:"center",gap:"16px"},children:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{style:{fontSize:"14px",marginLeft:"20px",color:"#333"},href:"https://kuajing-help.yuque.com/id8fqo/temuhelp/wmewgdmbqfros4v5",target:"_blank",children:"\u4F7F\u7528\u5E2E\u52A9"}),(0,t.jsx)("div",{style:{display:"inline-block",marginLeft:"20px",cursor:"pointer"},children:(0,t.jsx)(ge.A,{title:(0,t.jsx)(je.A,{style:{width:"100%"},src:"https://kuajing-help.com/temu-admin.png?t="+u()().startOf("hour").unix()}),children:(0,t.jsx)("span",{style:{fontSize:"14px"},children:"\u8054\u7CFB\u6211\u4EEC"})})})]}),(0,t.jsx)(n,{onClick:function(){(0,d.request)("/api/v1/platform/logout",{method:"POST"}).then(function(Z){Z.success&&(Te(),d.history.push("/"))})},children:(0,t.jsx)(we,{})}),(0,t.jsx)(ke.A,{title:"\u8D26\u53F7\u8BBE\u7F6E",content:(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[(0,t.jsxs)("div",{children:["\u8D26\u53F7\u7C7B\u578B\uFF1A",(k==null?void 0:k.accountType)==="MAIN"?"\u4E3B\u8D26\u53F7":"\u5B50\u8D26\u53F7"]}),(0,t.jsxs)("div",{children:["\u4F1A\u5458\u7B49\u7EA7\uFF1A",k.memberName||"\u666E\u901A\u4F1A\u5458"]}),k.memberExpiredTime?(0,t.jsxs)("div",{children:["\u5230\u671F\u65F6\u95F4\uFF1A",u()(k.memberExpiredTime).format("YYYY-MM-DD")]}):null,(0,t.jsxs)("div",{style:{marginTop:"10px"},children:["\u5C55\u793A\u8D27\u5E01\uFF1A",(0,t.jsx)(Ae.A,{defaultValue:(0,xe.l)(),onChange:function(Z){(0,xe.E)(Z)},getPopupContainer:function(Z){return Z},options:[{value:"\xA5",label:"\u4EBA\u6C11\u5E01(\xA5)"},{value:"$",label:"\u7F8E\u5143($)"}]})]}),(0,t.jsx)("div",{style:{borderBottom:"1px solid #ccc",marginTop:"30px"}}),(0,t.jsx)("div",{children:(0,t.jsx)(U,{})})]}),children:(0,t.jsx)(n,{children:(0,t.jsx)(Ve.A,{})})}),(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:"8px"},children:[(0,t.jsx)(qe.A,{shape:"square",size:28,icon:(0,t.jsx)(Ye.A,{})}),(m=k.phone)===null||m===void 0||(m=m.replace(/\+\d{2,3} /,""))===null||m===void 0?void 0:m.replace(/^(\d{3})\d{4}(\d{4})/,"$1****$2")]})]})]})]}),(0,t.jsxs)(Pe.A,{children:[(0,t.jsx)(ct,{theme:"light",collapsible:!0,trigger:(0,t.jsx)("div",{className:"ant-layout-sider-trigger",style:{width:be?"80px":"200px",textAlign:"center",color:"#fff"},onClick:function(){Ze(!be)},children:be?(0,t.jsx)(ze.A,{}):(0,t.jsx)(Ke.A,{})}),collapsed:be,width:200,onCollapse:function(Z){Z?localStorage.setItem("sider-collapsible","true"):localStorage.removeItem("sider-collapsible")},className:"site-layout-background",children:(0,t.jsx)(nt,{selectedKeys:fe,onClick:function(Z){d.history.push(Z.key),Me([Z.key])}})}),(0,t.jsx)(Pe.A,{style:{padding:"6px 14px",display:"block",overflow:"auto"},children:(0,t.jsx)(ut,{className:"site-layout-background",style:{margin:0,minHeight:"calc(100vh - 68px)"},children:mt()})})]})]}),(0,t.jsx)(i,{})]})}
1,ft=dt;function gt(V){var P=V.userInfo;return P.accountType!=="MAIN"?null:Ge(at,{type:"primary",style:{color:"#fff",fontSize:"14px"},onClick:function(){lt.push(ot.BUY_MALL)},children:st("div",{style:{display:"inline-flex",alignItems:"center",gap:"5px"},children:[Ge(rt,{style:{fontSize:"18px"},type:"icon-a-xingzhuang2",color:"#fff"}),P.subscribeType==="MEMBER"?"\u7EED\u8D39\u4F1A\u5458":"\u5F00\u901A/\u7EED\u8D39\u5E97\u94FA"]})})}function vt(V,P){var m=String(V||"").trim().toLowerCase();return!m||!(P!=null&&P.label)?!0:["value","label"].some(function(b){return String(P[b]||"").trim().toLowerCase().includes(m)})}}),87359:(function(ve,L,e){e.d(L,{A:function(){return i}});var s=e(37953),c=e(97096),l=e(34181),$=e(56177);function q(_,C){if(!$.A)return;if(!_)return C;let a;return(0,l.Tn)(_)?a=_():"current"in _?a=_.current:a=_,a}var te=e(80521),H=e(9411),ee=_=>(a,p,n)=>{const A=(0,s.useRef)(!1),y=(0,s.useRef)([]),d=(0,s.useRef)([]),f=(0,s.useRef)(void 0);_(()=>{var F;const u=(Array.isArray(n)?n:[n]).map(Q=>q(Q));if(!A.current){A.current=!0,y.current=u,d.current=p,f.current=a();return}(u.length!==y.current.length||!(0,H.A)(y.current,u)||!(0,H.A)(d.current,p))&&((F=f.current)===null||F===void 0||F.call(f),y.current=u,d.current=p,f.current=a())}),(0,te.A)(()=>{var F;(F=f.current)===null||F===void 0||F.call(f),A.current=!1})},J=ee(s.useEffect);function j(_,C,a={}){const{enable:p=!0}=a,n=(0,c.A)(C);J(()=>{if(!p)return;const A=q(a.target,window);if(!(A!=null&&A.addEventListener))return;const y=f=>n.current(f),d=Array.isArray(_)?_:[_];return d.forEach(f=>{A.addEventListener(f,y,{capture:a.capture,once:a.once,passive:a.passive})}),()=>{d.forEach(f=>{A.removeEventListener(f,y,{capture:a.capture})})}},[_,a.capture,a.once,a.passive,p],a.target)}var t=j,ie=e(30287),ne=e(77772),g=e(56656);const z="AHOOKS_SYNC_STORAGE_EVENT_NAME";var i=(_=>(a,p={})=>{let n;const{listenStorageChange:A=!1,getInitialValueInEffect:y=!1}=p,d=(0,l.Tn)(p.serializer)?p.serializer:JSON.stringify,f=(0,l.Tn)(p.deserializer)?p.deserializer:JSON.parse,F=(0,l.Tn)(p.onError)?p.onError:console.error;try{n=_()}catch(o){F(o)}const re=()=>{try{const o=n==null?void 0:n.getItem(a);if(o)return f(o)}catch(o){F(o)}return u()};function u(){return(0,l.Tn)(p.defaultValue)?p.defaultValue():p.defaultValue}const[Q,w]=(0,s.useState)(()=>y?u():re());(0,ne.A)(()=>{y&&w(re())});const G=(0,s.useRef)(Q);G.current=Q,(0,g.A)(()=>{const o=re();Object.is(o,G.current)||(G.current=o,w(o))},[a]);const O=o=>{const v=G.current,R=(0,l.Tn)(o)?o(v):o;if(!Object.is(R,v)){A||(G.current=R,w(R));try{let U;const W=n==null?void 0:n.getItem(a);(0,l.XB)(R)?(U=null,n==null||n.removeItem(a)):(U=d(R),n==null||n.setItem(a,U)),dispatchEvent(new CustomEvent(z,{detail:{key:a,newValue:U,oldValue:W,storageArea:n}}))}catch(U){F(U)}}},r=o=>{if(o.key!==a||o.storageArea!==n)return;const v=re();Object.is(v,G.current)||(G.current=v,w(v))},M=o=>{r(o.detail)};return t("storage",r,{enable:A}),t(z,M,{enable:A}),[Q,(0,ie.A)(O)]})(()=>$.A?localStorage:void 0)}),25902:(function(ve,L,e){e.d(L,{A:function(){return G}});var s=e(65062),c=e(73159),l=e(20873),$=e(42620),q=e(29261),te=e(41451),H=e(58886),x=e(8810),ee=e(12346),D=e(65907),J=e(27436),j=e(44717),t=e(97500),ie=e.n(t),ne=e(43131),g=e(37953),z=e(90580),T=e(92090),h=e(16545),i=e(71267),_=e(60919),C=e(16032),a=e(2666),p=e(37388),n=e(78097);function A(O,r,M){return r=(0,p.A)(r),(0,C.A)(O,(0,a.A)()?Reflect.construct(r,M||[],(0,p.A)(O).constructor):r.apply(O,M))}var y=(function(O){(0,n.A)(r,O);function r(){var M;return(0,i.A)(this,r),M=A(this,r,arguments),M.state={error:void 0,info:{componentStack:""}},M}return(0,_.A)(r,[{key:"componentDidCatch",value:function(o,v){this.setState({error:o,info:v})}},{key:"render",value:function(){var o=this.props,v=o.message,R=o.description,U=o.children,W=this.state,ae=W.error,de=W.info,xe=de&&de.componentStack?de.componentStack:null,pe=typeof v=="undefined"?(ae||"").toString():v,ye=typeof R=="undefined"?xe:R;return ae?g.createElement(G,{type:"error",message:pe,description:g.createElement("pre",null,ye)}):U}}]),r})(g.Component),d=y,f=function(O,r){var M={};for(var o in O)Object.prototype.hasOwnProperty.call(O,o)&&r.indexOf(o)<0&&(M[o]=O[o]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,o=Object.getOwnPropertySymbols(O);v<o.length;v++)r.indexOf(o[v])<0&&Object.prototype.propertyIsEnumerable.call(O,o[v])&&(M[o[v]]=O[o[v]]);return M},F={success:$.A,info:J.A,error:te.A,warning:ee.A},re={success:q.A,info:j.A,error:H.A,warning:D.A},u=function(r){var M=r.description,o=r.icon,v=r.prefixCls,R=r.type,U=(M?re:F)[R]||null;return o?(0,h.fx)(o,g.createElement("span",{className:"".concat(v,"-icon")},o),function(){return{className:ie()("".concat(v,"-icon"),(0,l.A)({},o.props.className,o.props.className))}}):g.createElement(U,{className:"".concat(v,"-icon")})},Q=function(r){var M=r.isClosable,o=r.closeText,v=r.prefixCls,R=r.closeIcon,U=r.handleClose;return M?g.createElement("button",{type:"button",onClick:U,className:"".concat(v,"-close-icon"),tabIndex:0},o?g.createElement("span",{className:"".concat(v,"-close-text")},o):R):null},w=function(r){var M=r.description,o=r.prefixCls,v=r.message,R=r.banner,U=r.className,W=U===void 0?"":U,ae=r.style,de=r.onMouseEnter,xe=r.onMouseLeave,pe=r.onClick,ye=r.afterClose,he=r.showIcon,Ue=r.closable,Se=r.closeText,_e=r.closeIcon,We=_e===void 0?g.createElement(x.A,null):_e,B=r.action,E=f(r,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),S=g.useState(!1),N=(0,c.A)(S,2),oe=N[0],K=N[1],Ie=g.useRef(),le=g.useContext(z.QO),De=le.getPrefixCls,He=le.direction,ue=De("alert",o),we=function(ge){var je;K(!0),(je=E.onClose)===null||je===void 0||je.call(E,ge)},Ve=function(){var ge=E.type;return ge!==void 0?ge:R?"warning":"info"},Ye=Se?!0:Ue,Ke=Ve(),ze=R&&he===void 0?!0:he,Pe=ie()(ue,"".concat(ue,"-").concat(Ke),(0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(ue,"-with-description"),!!M),"".concat(ue,"-no-icon"),!ze),"".concat(ue,"-banner"),!!R),"".concat(ue,"-rtl"),He==="rtl"),W),$e=(0,T.A)(E);return g.createElement(ne.Ay,{visible:!oe,motionName:"".concat(ue,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(ge){return{maxHeight:ge.offsetHeight}},onLeaveEnd:ye},function(Ae){var ge=Ae.className,je=Ae.style;return g.createElement("div",(0,s.A)({ref:Ie,"data-show":!oe,className:ie()(Pe,ge),style:(0,s.A)((0,s.A)({},ae),je),onMouseEnter:de,onMouseLeave:xe,onClick:pe,role:"alert"},$e),ze?g.createElement(u,{description:M,icon:E.icon,prefixCls:ue,type:Ke}):null,g.createElement("div",{className:"".concat(ue,"-content")},v?g.createElement("div",{className:"".concat(ue,"-message")},v):null,M?g.createElement("div",{className:"".concat(ue,"-description")},M):null),B?g.createElement("div",{className:"".concat(ue,"-action")},B):null,g.createElement(Q,{isClosable:!!Ye,closeText:Se,prefixCls:ue,closeIcon:We,handleClose:we}))})};w.ErrorBoundary=d;var G=w}
1),78683:(function(ve,L,e){var s=e(5305),c=e(8074),l=s.Ay;l.Header=s.Y9,l.Footer=s.wi,l.Content=s.UC,l.Sider=c.A,l._InternalSiderContext=c.P,L.A=l})}]);

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.