@zlooks.cn/password-auth-server 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.hile-rsc/build-mvjfogo9-046ccbb1/client-browser/src-plugin-page-frame-07c4de56a6-KY4QFFE6.js +16 -0
- package/.hile-rsc/{build-mvc5mab8-8aa6ad01/client-browser/src-plugin-password-form-3bd63d69e5-HJ5W2OPR.js → build-mvjfogo9-046ccbb1/client-browser/src-plugin-password-form-3bd63d69e5-6HVWNCR6.js} +1 -1
- package/.hile-rsc/{build-mvc5mab8-8aa6ad01/client-ssr/src-plugin-page-frame-07c4de56a6-VK2OTNLD.js → build-mvjfogo9-046ccbb1/client-ssr/src-plugin-page-frame-07c4de56a6-6A2S6XFE.js} +17 -17
- package/.hile-rsc/{build-mvc5mab8-8aa6ad01/client-ssr/src-plugin-password-form-3bd63d69e5-K3D6TQTX.js → build-mvjfogo9-046ccbb1/client-ssr/src-plugin-password-form-3bd63d69e5-QE76CW6Q.js} +1 -1
- package/.hile-rsc/{build-mvc5mab8-8aa6ad01 → build-mvjfogo9-046ccbb1}/plugin.json +16 -16
- package/.hile-rsc/{build-mvc5mab8-8aa6ad01 → build-mvjfogo9-046ccbb1}/server-rsc/index.js +2 -2
- package/package.json +4 -4
- package/.hile-rsc/build-mvc5mab8-8aa6ad01/client-browser/src-plugin-page-frame-07c4de56a6-NNLB6KOI.js +0 -16
- /package/.hile-rsc/{build-mvc5mab8-8aa6ad01/client-browser/chunks/chunk-3XS5CUKE.js → build-mvjfogo9-046ccbb1/client-browser/chunks/chunk-DFJ6HO4A.js} +0 -0
- /package/.hile-rsc/{build-mvc5mab8-8aa6ad01 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-page-frame-07c4de56a6-GLDPP7WQ.css +0 -0
- /package/.hile-rsc/{build-mvc5mab8-8aa6ad01 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-password-form-3bd63d69e5-XRKUN4RP.css +0 -0
- /package/.hile-rsc/{build-mvc5mab8-8aa6ad01/client-ssr/chunks/chunk-PN3C7DWD.js → build-mvjfogo9-046ccbb1/client-ssr/chunks/chunk-KG33MVOX.js} +0 -0
- /package/.hile-rsc/{build-mvc5mab8-8aa6ad01 → build-mvjfogo9-046ccbb1}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";import{$ as En,A as bp,B as _J,Ba as rL,C as dc,Ca as b4e,D as Cp,Da as C4e,E as eL,Ea as nL,F as tL,Fa as S4e,G as VC,Ga as x4e,H as l4e,I as bJ,Ia as Pe,J as Cd,Ja as xJ,K as ly,Ka as Od,L as s4e,La as wJ,M as c4e,N as Sp,Na as PJ,O as u4e,P as d4e,Q as Sd,R as xd,S as Se,T as se,U as Fr,V as xp,W as ee,X as Be,Y as rn,Z as wd,_ as sy,a as C,aa as Pd,b as i4e,ba as f4e,c as I,ca as ve,da as p4e,ea as Tt,fa as wp,ga as Pp,ha as Yl,ia as Ql,ja as Op,ka as qp,la as Ep,ma as $p,n as vJ,na as CJ,oa as m4e,pa as g4e,qa as v4e,r as hJ,ra as h4e,s as bd,sa as y4e,ta as _4e,u as T,ua as cy,v as D,va as SJ,w as yJ,wa as uy,x as iy,y as dr,z as ma}from"./chunks/chunk-
|
|
1
|
+
"use client";import{$ as En,A as bp,B as _J,Ba as rL,C as dc,Ca as b4e,D as Cp,Da as C4e,E as eL,Ea as nL,F as tL,Fa as S4e,G as VC,Ga as x4e,H as l4e,I as bJ,Ia as Pe,J as Cd,Ja as xJ,K as ly,Ka as Od,L as s4e,La as wJ,M as c4e,N as Sp,Na as PJ,O as u4e,P as d4e,Q as Sd,R as xd,S as Se,T as se,U as Fr,V as xp,W as ee,X as Be,Y as rn,Z as wd,_ as sy,a as C,aa as Pd,b as i4e,ba as f4e,c as I,ca as ve,da as p4e,ea as Tt,fa as wp,ga as Pp,ha as Yl,ia as Ql,ja as Op,ka as qp,la as Ep,ma as $p,n as vJ,na as CJ,oa as m4e,pa as g4e,qa as v4e,r as hJ,ra as h4e,s as bd,sa as y4e,ta as _4e,u as T,ua as cy,v as D,va as SJ,w as yJ,wa as uy,x as iy,y as dr,z as ma}from"./chunks/chunk-KG33MVOX.js";var HJ=C(pL=>{"use strict";Object.defineProperty(pL,"__esModule",{value:!0});pL.default=Q4e;var Y4e=(D(),I(T));function Q4e(){return Number.parseInt(Y4e.version.split(".")[0],10)}});var Ke=C(ga=>{"use strict";var Z4e=ve().default;Object.defineProperty(ga,"__esModule",{value:!0});ga.devUseWarning=ga.default=ga.WarningContext=void 0;ga.noop=mL;ga.resetWarned=n3e;ga.useDevWarning=void 0;var J4e=Z4e((D(),I(T))),e3e=Se();function mL(){}var{resetWarned:t3e}=e3e.warning,r3e=null;function n3e(){r3e=null,t3e()}var o3e=mL,a3e=o3e,hSr=ga.WarningContext=J4e.createContext({}),i3e=ga.useDevWarning=()=>{let e=()=>{};return e.deprecated=mL,e},ySr=ga.devUseWarning=i3e,_Sr=ga.default=a3e});var GC=C(KC=>{"use strict";var l3e=ee().default;Object.defineProperty(KC,"__esModule",{value:!0});KC.default=void 0;var s3e=l3e(Tt()),VJ=Se();function c3e(e){let t=null,r=i=>()=>{t=null,e.apply(void 0,(0,s3e.default)(i))},n=(...i)=>{t===null&&(t=(0,VJ.raf)(r(i)))};return n.cancel=()=>{VJ.raf.cancel(t),t=null},n}var CSr=KC.default=c3e});var Ge=C(zo=>{"use strict";var u3e=ve().default;Object.defineProperty(zo,"__esModule",{value:!0});zo.defaultPrefixCls=zo.defaultIconPrefixCls=zo.Variants=zo.ConfigContext=zo.ConfigConsumer=void 0;zo.useComponentConfig=m3e;var GJ=u3e((D(),I(T))),UJ=zo.defaultPrefixCls="ant",d3e=zo.defaultIconPrefixCls="anticon",xSr=zo.Variants=["outlined","borderless","filled","underlined"],f3e=(e,t)=>t||(e?`${UJ}-${e}`:UJ),XJ=zo.ConfigContext=GJ.createContext({getPrefixCls:f3e,iconPrefixCls:d3e}),{Consumer:p3e}=XJ;zo.ConfigConsumer=p3e;var KJ={};function m3e(e){let t=GJ.useContext(XJ),{getPrefixCls:r,direction:n,getPopupContainer:i,renderEmpty:o}=t,a=t[e];return{classNames:KJ,styles:KJ,...a,getPrefixCls:r,direction:n,getPopupContainer:i,renderEmpty:o}}});var YC=C(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.PresetColors=void 0;var PSr=XC.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]});var qd=C(gL=>{"use strict";Object.defineProperty(gL,"__esModule",{value:!0});Object.defineProperty(gL,"PresetColors",{enumerable:!0,get:function(){return g3e.PresetColors}});var g3e=YC()});var vL=C(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.default=v3e;QC.getLineHeight=YJ;function YJ(e){return(e+8)/e}function v3e(e){let t=Array.from({length:10}).map((r,n)=>{let i=n-1,o=e*Math.E**(i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:YJ(r)}))}});var QJ=C(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.default=void 0;var $Sr=ZC.default="6.6.1"});var hL=C(JC=>{"use strict";"use client";var h3e=ee().default;Object.defineProperty(JC,"__esModule",{value:!0});JC.default=void 0;var y3e=h3e(QJ()),RSr=JC.default=y3e.default});var fc=C(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.defaultPresetColors=Rp.default=void 0;var _3e=Rp.defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},b3e={..._3e,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
2
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
3
|
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,focusOutline:!0,motion:!0},ISr=Rp.default=b3e});var bL=C(_L=>{"use strict";Object.defineProperty(_L,"__esModule",{value:!0});_L.default=S3e;var yL=rn(),C3e=YC();function S3e(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,u=t(l),d=t(n),f=t(i),p=t(o),m=t(a),g=r(s,c),v=e.colorLink||e.colorInfo,b=t(v),y=new yL.FastColor(p[1]).mix(new yL.FastColor(p[3]),50).toHexString(),h={};return C3e.PresetColors.forEach(_=>{let x=e[_];if(x){let P=t(x);h[`${_}Hover`]=P[5],h[`${_}Active`]=P[7]}}),{...g,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:y,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],...h,colorBgMask:new yL.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}});var ZJ=C(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.default=void 0;var x3e=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}},kSr=eS.default=x3e});var JJ=C(CL=>{"use strict";var w3e=ee().default;Object.defineProperty(CL,"__esModule",{value:!0});CL.default=O3e;var P3e=w3e(ZJ());function O3e(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return{motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1,...(0,P3e.default)(n)}}});var SL=C(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});tS.default=void 0;var q3e=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},LSr=tS.default=q3e});var xL=C(rS=>{"use strict";var E3e=ee().default;Object.defineProperty(rS,"__esModule",{value:!0});rS.default=void 0;var $3e=E3e(vL()),M3e=e=>{let t=(0,$3e.default)(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),i=r[1],o=r[0],a=r[2],l=n[1],s=n[0],c=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},ASr=rS.default=M3e});var eee=C(wL=>{"use strict";Object.defineProperty(wL,"__esModule",{value:!0});wL.default=R3e;function R3e(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}});var ree=C(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.getSolidColor=Np.getAlphaColor=void 0;var tee=rn(),N3e=(e,t)=>new tee.FastColor(e).setA(t).toRgbString();Np.getAlphaColor=N3e;var I3e=(e,t)=>new tee.FastColor(e).darken(t).toHexString();Np.getSolidColor=I3e});var nee=C(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.generateNeutralColorPalettes=Ip.generateColorPalettes=void 0;var D3e=wd(),pn=ree(),T3e=e=>{let t=(0,D3e.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}};Ip.generateColorPalettes=T3e;var k3e=(e,t,r)=>{let n=e||"#fff",i=t||"#000";return{colorBgBase:n,colorTextBase:i,colorShadow:r||"#000",colorText:(0,pn.getAlphaColor)(i,.88),colorTextSecondary:(0,pn.getAlphaColor)(i,.65),colorTextTertiary:(0,pn.getAlphaColor)(i,.45),colorTextQuaternary:(0,pn.getAlphaColor)(i,.25),colorFill:(0,pn.getAlphaColor)(i,.15),colorFillSecondary:(0,pn.getAlphaColor)(i,.06),colorFillTertiary:(0,pn.getAlphaColor)(i,.04),colorFillQuaternary:(0,pn.getAlphaColor)(i,.02),colorBgSolid:(0,pn.getAlphaColor)(i,1),colorBgSolidHover:(0,pn.getAlphaColor)(i,.75),colorBgSolidActive:(0,pn.getAlphaColor)(i,.95),colorBgLayout:(0,pn.getSolidColor)(n,4),colorBgContainer:(0,pn.getSolidColor)(n,0),colorBgElevated:(0,pn.getSolidColor)(n,0),colorBgSpotlight:(0,pn.getAlphaColor)(i,.85),colorBgBlur:"transparent",colorBorder:(0,pn.getSolidColor)(n,15),colorBorderDisabled:(0,pn.getSolidColor)(n,15),colorBorderSecondary:(0,pn.getSolidColor)(n,6)}};Ip.generateNeutralColorPalettes=k3e});var py=C(PL=>{"use strict";var fy=ee().default;Object.defineProperty(PL,"__esModule",{value:!0});PL.default=F3e;var Ed=wd(),j3e=fc(),W3e=fy(bL()),L3e=fy(JJ()),z3e=fy(SL()),A3e=fy(xL()),B3e=fy(eee()),oee=nee();function F3e(e){Ed.presetPrimaryColors.pink=Ed.presetPrimaryColors.magenta,Ed.presetPalettes.pink=Ed.presetPalettes.magenta;let t=Object.keys(j3e.defaultPresetColors).map(r=>{let n=e[r]===Ed.presetPrimaryColors[r]?Ed.presetPalettes[r]:(0,Ed.generate)(e[r]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${r}-${a+1}`]=n[a],i[`${r}${a+1}`]=n[a],i),{})}).reduce((r,n)=>(r={...r,...n},r),{});return{...e,...t,...(0,W3e.default)(e,{generateColorPalettes:oee.generateColorPalettes,generateNeutralColorPalettes:oee.generateNeutralColorPalettes}),...(0,A3e.default)(e.fontSize),...(0,B3e.default)(e),...(0,z3e.default)(e),...(0,L3e.default)(e)}}});var OL=C(nS=>{"use strict";var H3e=ee().default;Object.defineProperty(nS,"__esModule",{value:!0});nS.default=void 0;var V3e=Be(),U3e=H3e(py()),K3e=(0,V3e.createTheme)(U3e.default),KSr=nS.default=K3e});var oS=C($d=>{"use strict";var qL=ee().default;Object.defineProperty($d,"__esModule",{value:!0});$d.defaultConfig=$d.DesignTokenContext=void 0;Object.defineProperty($d,"defaultTheme",{enumerable:!0,get:function(){return X3e.default}});var G3e=qL((D(),I(T))),aee=qL(fc()),X3e=qL(OL()),Y3e=$d.defaultConfig={token:aee.default,override:{override:aee.default},hashed:!0},XSr=$d.DesignTokenContext=G3e.default.createContext(Y3e)});var $L=C(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.default=void 0;var aS=rn();function EL(e){return e>=0&&e<=255}function Q3e(e,t){let{r,g:n,b:i,a:o}=new aS.FastColor(e).toRgb();if(o<1)return e;let{r:a,g:l,b:s}=new aS.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),d=Math.round((n-l*(1-c))/c),f=Math.round((i-s*(1-c))/c);if(EL(u)&&EL(d)&&EL(f))return new aS.FastColor({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new aS.FastColor({r,g:n,b:i,a:1}).toRgbString()}var QSr=iS.default=Q3e});var RL=C(ML=>{"use strict";var iee=ee().default;Object.defineProperty(ML,"__esModule",{value:!0});ML.default=eFe;var Z3e=rn(),J3e=iee(fc()),lS=iee($L());function eFe(e){let{override:t,...r}=e,n={...t};Object.keys(J3e.default).forEach(v=>{delete n[v]});let i={...r,...n},o=new Z3e.FastColor(i.colorShadow),a=o.a,l=v=>o.clone().setA(a*v).toRgbString(),s=480,c=576,u=768,d=992,f=1200,p=1600,m=1920;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,lS.default)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,lS.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,lS.default)(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.focusOutline===!1?0:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,lS.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
4
4
|
0 6px 16px 0 ${l(.08)},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocolVersion": 1,
|
|
3
3
|
"pluginId": "auth.password",
|
|
4
|
-
"buildId": "build-
|
|
4
|
+
"buildId": "build-mvjfogo9-046ccbb1",
|
|
5
5
|
"runtime": {
|
|
6
6
|
"react": "19.2.8",
|
|
7
7
|
"reactDom": "19.2.8",
|
|
@@ -9,59 +9,59 @@
|
|
|
9
9
|
},
|
|
10
10
|
"server": {
|
|
11
11
|
"entry": "server-rsc/index.js",
|
|
12
|
-
"integrity": "sha256-
|
|
12
|
+
"integrity": "sha256-Lxsi/y130qVgAe/Ox5FYTFKHxDfAIfJOUP1tICdPW7o=",
|
|
13
13
|
"size": 595647
|
|
14
14
|
},
|
|
15
15
|
"serverFunctions": [],
|
|
16
16
|
"clients": [
|
|
17
17
|
{
|
|
18
18
|
"id": "auth.password/src/plugin/page-frame#default",
|
|
19
|
-
"module": "client-browser/src-plugin-page-frame-07c4de56a6-
|
|
20
|
-
"ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-
|
|
19
|
+
"module": "client-browser/src-plugin-page-frame-07c4de56a6-KY4QFFE6.js",
|
|
20
|
+
"ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-6A2S6XFE.js",
|
|
21
21
|
"exportName": "default",
|
|
22
22
|
"chunks": [
|
|
23
23
|
{
|
|
24
|
-
"path": "client-browser/chunks/chunk-
|
|
24
|
+
"path": "client-browser/chunks/chunk-DFJ6HO4A.js",
|
|
25
25
|
"integrity": "sha256-35gs3JYEnQOByf6Pox/GrS2bh0S5IpOb0CZp87GylrQ=",
|
|
26
26
|
"size": 681354
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
"ssrChunks": [
|
|
30
30
|
{
|
|
31
|
-
"path": "client-ssr/chunks/chunk-
|
|
31
|
+
"path": "client-ssr/chunks/chunk-KG33MVOX.js",
|
|
32
32
|
"integrity": "sha256-19udFQ3H+Qp2wCtTd4ZqmbEQI7b315BRzJPr267Y9Dk=",
|
|
33
33
|
"size": 657173
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"integrity": "sha256-
|
|
37
|
-
"ssrIntegrity": "sha256-
|
|
38
|
-
"size":
|
|
39
|
-
"ssrSize":
|
|
36
|
+
"integrity": "sha256-YahCSwg1TlKc3Itzms3T/0bIJZO+juLIbv8r7lWVr7U=",
|
|
37
|
+
"ssrIntegrity": "sha256-Un8JF0hSeuJ6u8WpZCHXSC0sE0ItclidQcv5rw0aOyA=",
|
|
38
|
+
"size": 34933,
|
|
39
|
+
"ssrSize": 205592,
|
|
40
40
|
"styles": [
|
|
41
41
|
"client-browser/src-plugin-page-frame-07c4de56a6-GLDPP7WQ.css"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"id": "auth.password/src/plugin/password-form#default",
|
|
46
|
-
"module": "client-browser/src-plugin-password-form-3bd63d69e5-
|
|
47
|
-
"ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-
|
|
46
|
+
"module": "client-browser/src-plugin-password-form-3bd63d69e5-6HVWNCR6.js",
|
|
47
|
+
"ssrModule": "client-ssr/src-plugin-password-form-3bd63d69e5-QE76CW6Q.js",
|
|
48
48
|
"exportName": "default",
|
|
49
49
|
"chunks": [
|
|
50
50
|
{
|
|
51
|
-
"path": "client-browser/chunks/chunk-
|
|
51
|
+
"path": "client-browser/chunks/chunk-DFJ6HO4A.js",
|
|
52
52
|
"integrity": "sha256-35gs3JYEnQOByf6Pox/GrS2bh0S5IpOb0CZp87GylrQ=",
|
|
53
53
|
"size": 681354
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
"ssrChunks": [
|
|
57
57
|
{
|
|
58
|
-
"path": "client-ssr/chunks/chunk-
|
|
58
|
+
"path": "client-ssr/chunks/chunk-KG33MVOX.js",
|
|
59
59
|
"integrity": "sha256-19udFQ3H+Qp2wCtTd4ZqmbEQI7b315BRzJPr267Y9Dk=",
|
|
60
60
|
"size": 657173
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
"integrity": "sha256-
|
|
64
|
-
"ssrIntegrity": "sha256-
|
|
63
|
+
"integrity": "sha256-ul4l1LqgbV+CwEai+yeiP+QQj60VN+OIN/5u6SV+OpI=",
|
|
64
|
+
"ssrIntegrity": "sha256-f+j08RrKYWggPft84w5H3v/So1fGGMqKvn3mIBZxw9E=",
|
|
65
65
|
"size": 74408,
|
|
66
66
|
"ssrSize": 1856552,
|
|
67
67
|
"styles": [
|
|
@@ -15533,7 +15533,7 @@ var __hileRemoteClientBoundary = __hileRegisterClientReference(function() {
|
|
|
15533
15533
|
function __hileDefault(props) {
|
|
15534
15534
|
return React.createElement(__hileRemoteClientBoundary, {
|
|
15535
15535
|
pluginId: "auth.password",
|
|
15536
|
-
buildId: "build-
|
|
15536
|
+
buildId: "build-mvjfogo9-046ccbb1",
|
|
15537
15537
|
referenceId: "auth.password/src/plugin/password-form#default",
|
|
15538
15538
|
exportName: "default",
|
|
15539
15539
|
props
|
|
@@ -15550,7 +15550,7 @@ var __hileRemoteClientBoundary2 = __hileRegisterClientReference2(function() {
|
|
|
15550
15550
|
function __hileDefault2(props) {
|
|
15551
15551
|
return React2.createElement(__hileRemoteClientBoundary2, {
|
|
15552
15552
|
pluginId: "auth.password",
|
|
15553
|
-
buildId: "build-
|
|
15553
|
+
buildId: "build-mvjfogo9-046ccbb1",
|
|
15554
15554
|
referenceId: "auth.password/src/plugin/page-frame#default",
|
|
15555
15555
|
exportName: "default",
|
|
15556
15556
|
props
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zlooks.cn/password-auth-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@zlooks.cn/infrastructure": "1.0.0",
|
|
66
66
|
"@zlooks.cn/registry-config": "1.0.1",
|
|
67
67
|
"@zlooks.cn/service-command": "1.0.4",
|
|
68
|
-
"@zlooks.cn/ui": "1.
|
|
68
|
+
"@zlooks.cn/ui": "1.2.0",
|
|
69
69
|
"@zlooks.cn/user-shared": "1.1.2",
|
|
70
70
|
"@zlooks.cn/utils": "1.0.0",
|
|
71
71
|
"antd": "6.6.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"zod": "4.4.3"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@hile/rsc-build": "1.0.
|
|
83
|
+
"@hile/rsc-build": "1.0.26",
|
|
84
84
|
"@types/node": "26.2.0",
|
|
85
85
|
"@types/nodemailer": "8.0.1",
|
|
86
86
|
"@types/react": "19.2.18",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"typescript": "7.0.2",
|
|
91
91
|
"vitest": "4.1.11"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "5e24b570fd36ba7aaff8d7796f7cf15894e2efee"
|
|
94
94
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";import{$ as Yt,$a as uo,A as De,Ab as Eo,C as Be,Da as so,H as pt,I as ut,Ia as lo,J as Fe,L as We,Q as He,T as be,U as Gt,V as Kt,W as Xt,Y as ae,Z as _e,Za as co,_ as Jt,_a as po,a as Le,aa as ce,ab as qe,b as Ie,bb as _,c as we,cb as mt,d as ye,da as Qt,e as a,ea as eo,eb as mo,f as B,fa as je,fb as fo,g as Ae,ga as to,gb as go,hb as ho,i as jt,ib as ve,j as xe,jb as yo,k as q,ka as oo,l as Zt,la as ro,lb as xo,m as E,ma as no,n as L,o as x,p as Ut,pa as Ze,q as Vt,qa as Ue,r as Pe,s as i,sb as bo,t as w,ta as Ve,u as G,ua as io,ub as vo,v as qt,va as de,w as le,y as dt,za as ao,zb as So}from"./chunks/chunk-3XS5CUKE.js";var To=Le(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});var Ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};xt.default=Ur});var $o=Le(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});var Gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};vt.default=Gr});var qo=Le(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};Et.default=dn});var Xo=Le(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});var mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};Ct.default=mn});var Or={token:{colorPrimary:"#1677ff",borderRadius:10,motion:!0,fontFamily:["-apple-system","BlinkMacSystemFont","'Segoe UI'","Roboto","'Helvetica Neue'","Arial","'Noto Sans'","sans-serif"].join(", ")}},Ro=qe(Or);var gt="zlooks.theme",ft="zlooks:theme-change",Se="default";function Ne(){return{mode:Ut(Pr,Lr,Ir),setMode:Ar}}function Ge(e){return e==="dark"||e==="light"||e==="default"?e:"default"}function Lr(){if(typeof window>"u")return Se;try{let e=window.localStorage.getItem(gt);e!==null&&(Se=Ge(e))}catch{}return Se}function Ir(){return"default"}function Ar(e){if(Ge(e)!==e)throw new TypeError(`Unsupported Zlooks theme mode: ${String(e)}`);if(Se=e,!(typeof window>"u")){try{window.localStorage.setItem(gt,e)}catch{}window.dispatchEvent(new CustomEvent(ft,{detail:e}))}}function Pr(e){if(typeof window>"u")return()=>{};let t=r=>{Se=Ge(r.detail),e()},o=r=>{r.key===gt&&(Se=Ge(r.newValue),e())};return window.addEventListener(ft,t),window.addEventListener("storage",o),()=>{window.removeEventListener(ft,t),window.removeEventListener("storage",o)}}var Dr=_(po),Br=_(Ve),Co=_(uo);function ht({children:e,theme:t}){let o=Ne(),{resolvedMode:r,resolvedTheme:n}=yt(t??o.mode);return i(Br,{button:{autoInsertSpace:!1},theme:n,children:i(Dr,{children:i("div",{className:"zlooks-ui-theme","data-zlooks-theme":r,children:e})})})}function yt(e){let t=Fr(e==="default"),o=e==="default"?t?"dark":"light":e,r=E(()=>({...Ro,algorithm:o==="dark"?Co.darkAlgorithm:Co.defaultAlgorithm,cssVar:{key:`zlooks-${o}`},hashed:!1,zeroRuntime:!0}),[o]);return{resolvedMode:o,resolvedTheme:r}}function Fr(e){let[t,o]=x(!1);return q(()=>{if(!e)return;let r=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>o(r.matches);return n(),r.addEventListener("change",n),()=>r.removeEventListener("change",n)},[e]),t}var Wr=ye({}),wo=Wr;var Hr=e=>{let{antCls:t,componentCls:o,iconCls:r,avatarBg:n,avatarColor:s,containerSize:c,containerSizeLG:f,containerSizeSM:l,textFontSize:p,textFontSizeLG:d,textFontSizeSM:N,iconFontSize:z,iconFontSizeLG:u,iconFontSizeSM:I,borderRadius:b,borderRadiusLG:S,borderRadiusSM:R,lineWidth:h,lineType:A}=e,k=(W,C,M,P)=>({width:W,height:W,borderRadius:"50%",fontSize:C,[`&${o}-square`]:{borderRadius:P},[`&${o}-icon`]:{fontSize:M,[`> ${r}`]:{margin:0}}});return{[o]:{...no(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:s,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${ce(h)} ${A} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...k(c,p,z,b),"&-lg":{...k(f,d,u,S)},"&-sm":{...k(l,N,I,R)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},_r=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:r,groupSpace:n}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}},jr=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:r,fontSize:n,fontSizeLG:s,fontSizeXL:c,fontSizeHeading3:f,marginXS:l,marginXXS:p,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:o,containerSizeSM:r,textFontSize:n,textFontSizeLG:n,textFontSizeSM:n,iconFontSize:Math.round((s+c)/2),iconFontSizeLG:f,iconFontSizeSM:n,groupSpace:p,groupOverlapping:-l,groupBorderColor:d}},No=Ue("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=oo(e,{avatarBg:o,avatarColor:t});return[Hr(r),_r(r)]},jr);var Zr=B((e,t)=>{let{prefixCls:o,shape:r,size:n,src:s,srcSet:c,icon:f,className:l,rootClassName:p,style:d,alt:N,draggable:z,children:u,crossOrigin:I,gap:b=4,onError:S,...R}=e,[h,A]=x(1),[k,W]=x(!1),[C,M]=x(!0),P=L(null),v=L(null),T=Be(t,P),{getPrefixCls:j,className:D,style:$}=He("avatar"),U=xe(wo),g=()=>{if(!v.current||!P.current)return;let F=v.current.offsetWidth,Z=P.current.offsetWidth;F!==0&&Z!==0&&b*2<Z&&A(Z-b*2<F?(Z-b*2)/F:1)};q(()=>{W(!0)},[]),q(()=>{M(!0),A(1)},[s]),q(g,[b]);let H=()=>{S?.()!==!1&&M(!1)},O=so(F=>n??U?.size??F??"medium"),oe=Object.keys(ae(O)?O||{}:{}).some(F=>mt.includes(F)),X=mo(oe),rt=E(()=>{if(!ae(O))return{};let F=mt.find(at=>X[at]),Z=O[F];return Z?{width:Z,height:Z,fontSize:Z&&(f||u)?Z/2:18}:{}},[X,O,f,u]),Q=j("avatar",o),pe=io(Q),[Te,ue]=No(Q,pe),ze=G({[`${Q}-lg`]:O==="large",[`${Q}-sm`]:O==="small"}),Re=Ae(s),nt=r||U?.shape||"circle",Me=G(Q,ze,D,`${Q}-${nt}`,{[`${Q}-image`]:Re||s&&C,[`${Q}-icon`]:!!f},ue,pe,l,p,Te),it=Xt(O)?{width:O,height:O,fontSize:f?O/2:18}:{},ne;if(typeof s=="string"&&C)ne=a("img",{src:s,draggable:z,srcSet:c,onError:H,alt:N,crossOrigin:I});else if(Re)ne=s;else if(f)ne=f;else if(k||h!==1){let F=`scale(${h})`,Z={msTransform:F,WebkitTransform:F,transform:F};ne=a(je,{onResize:g},a("span",{className:`${Q}-string`,ref:v,style:Z},u))}else ne=a("span",{className:`${Q}-string`,style:{opacity:0},ref:v},u);return a("span",{...R,style:{...it,...rt,...$,...d},className:Me,ref:T},ne)}),ko=Zr;var zo=Ie(To());function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},bt.apply(this,arguments)}var Vr=(e,t)=>a(de,bt({},e,{ref:t,icon:zo.default})),qr=B(Vr),Mo=qr;var Oo=Ie($o());function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},St.apply(this,arguments)}var Kr=(e,t)=>a(de,St({},e,{ref:t,icon:Oo.default})),Xr=B(Kr),Lo=Xr;var Jr=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:s}=r;return{marginBottom:n,color:o,fontWeight:s,fontSize:e,lineHeight:t}},Io=e=>{let t=[1,2,3,4,5],o={};return t.forEach(r=>{o[`
|
|
2
|
-
h${r}&,
|
|
3
|
-
div&-h${r},
|
|
4
|
-
div&-h${r} > textarea,
|
|
5
|
-
h${r}
|
|
6
|
-
`]=Jr(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),o},Ao=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Ze(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},Po=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:`${ce(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:`${ce(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:eo[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:`${ce(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:ce(e.padding),overflowWrap:"break-word",borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),Do=e=>{let{componentCls:t,paddingSM:o}=e,r=o;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},[`&${t}-edit-content textarea`]:{margin:"0!important",fontSize:"inherit",lineHeight:"inherit",fontFamily:"inherit",fontWeight:"inherit",MozTransition:"none",height:"1em"}}}},Bo=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Fo=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...ro,"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var Yr=e=>{let{componentCls:t,titleMarginTop:o}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...Io(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:o},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:o}},...Po(e),...Ao(e),[`${t}-actions`]:{display:"inline"},[`
|
|
7
|
-
${t}-expand,
|
|
8
|
-
${t}-collapse,
|
|
9
|
-
${t}-edit,
|
|
10
|
-
${t}-copy
|
|
11
|
-
`]:{...Ze(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
|
|
12
|
-
${t}-expand,
|
|
13
|
-
${t}-collapse,
|
|
14
|
-
${t}-edit,
|
|
15
|
-
${t}-copy:not(${t}-copy-icon-only)
|
|
16
|
-
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...Do(e),...Bo(e),...Fo(),"&-rtl":{direction:"rtl"}}}},Qr=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ke=Ue("Typography",Yr,Qr);var en=e=>{let{prefixCls:t,"aria-label":o,className:r,style:n,classNames:s,styles:c,direction:f,maxLength:l,autoSize:p=!0,value:d,onSave:N,onCancel:z,onEnd:u,component:I,enterIcon:b=a(Lo,null)}=e,S=L(null),R=L(!1),h=L(null),[A,k]=x(d);q(()=>{k(d)},[d]),q(()=>{if(S.current?.resizableTextArea){let{textArea:g}=S.current.resizableTextArea;g.focus();let{length:H}=g.value;g.setSelectionRange(H,H)}},[]);let W=({target:g})=>{k(g.value.replace(/[\n\r]/g,""))},C=()=>{R.current=!0},M=()=>{R.current=!1},P=({keyCode:g})=>{R.current||(h.current=g)},v=()=>{N(A.trim())},T=({keyCode:g,ctrlKey:H,altKey:O,metaKey:oe,shiftKey:X})=>{h.current!==g||R.current||H||O||oe||X||(g===ut.ENTER?(v(),u?.()):g===ut.ESC&&z())},j=()=>{v()},[D,$]=Ke(t),U=G(t,`${t}-edit-content`,{[`${t}-rtl`]:f==="rtl",[`${t}-${I}`]:!!I},r,s.root,D,$);return a("div",{className:U,style:{...c.root,...n}},a(bo,{ref:S,maxLength:l,value:A,onChange:W,onKeyDown:P,onKeyUp:T,onCompositionStart:C,onCompositionEnd:M,onBlur:j,"aria-label":o,rows:1,autoSize:p,className:s.textarea,style:c.textarea}),b!==null?to(b,{className:`${t}-edit-content-confirm`}):null)},Wo=en;var tn=(e,t)=>{let o=!1,r=n=>{n.stopPropagation(),n.preventDefault(),n.clipboardData?.clearData(),n.clipboardData?.setData("text/plain",e),t&&n.clipboardData?.setData("text/html",e),o=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),o}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},on=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function rn(e,t){if(typeof e!="string")return!1;let o=t?.format==="text/html";return!!(await on(e,o)||tn(e,o))}var Ho=rn;var nn=(e,t={})=>!Gt(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Xe=nn;var an=({copyConfig:e,children:t})=>{let[o,r]=De(!1),[n,s]=x(!1),c={};e.format&&(c.format=e.format);let f=qt(async l=>{l?.preventDefault(),l?.stopPropagation(),s(!0);try{let p=_e(e.text)?await e.text():e.text;await Ho(p||Xe(t,{skipEmpty:!0}).join("")||"",c),s(!1),r(!0,!0),r(!1,{ms:3e3}),e.onCopy?.(l)}catch(p){throw s(!1),p}});return{copied:o,copyLoading:n,onClick:f}},_o=an;var sn=(e,t)=>{let o=!!e;return E(()=>{let r={...t,...o&&ae(e)?e:null};return[o,r]},[o,e,t])},Je=sn;var ln=e=>{let t=L(void 0);return q(()=>{t.current=e}),t.current},jo=ln;var cn=(e,t,o)=>E(()=>e===!0?{title:t??o}:Ae(e)?{title:e}:ae(e)?{title:t??o,...e}:{title:e},[e,t,o]),Zo=cn;var Uo=(e,t,o,r,n)=>{let{getPrefixCls:s,direction:c,className:f,style:l,classNames:p,styles:d}=He("typography"),N=r??c,z=s("typography",e),u={...n,prefixCls:z,direction:N},I=E(()=>({root:f}),[f]),b=Jt(l),[S,R]=Yt([I,p,t],[d,b,o],{props:u});return[S,R,z,N]};var Vo=B((e,t)=>{let{component:o="article",className:r,rootClassName:n,children:s,direction:c,style:f,classNames:l,styles:p,prefixCls:d,...N}=e,[z,u]=Ke(d),I=G(d,{[`${d}-rtl`]:c==="rtl"},r,n,z,u,l?.root),b={...p?.root,...f};return a(o,{...N,className:I,style:b,ref:t},s)});var Go=Ie(qo());function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Rt.apply(this,arguments)}var pn=(e,t)=>a(de,Rt({},e,{ref:t,icon:Go.default})),un=B(pn),Ko=un;var Jo=Ie(Xo());function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wt.apply(this,arguments)}var fn=(e,t)=>a(de,wt({},e,{ref:t,icon:Jo.default})),gn=B(fn),Yo=gn;var Nt=e=>e===!1?[!1,!1]:Xe(e);function Ye(e,t,o){return e===!0||e===void 0?t:e||o&&t}function Qo(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),o.left>r.left||r.right>o.right||o.top>r.top||r.bottom>o.bottom}var ke=e=>["string","number"].includes(typeof e);var hn=e=>{let{prefixCls:t,copied:o,locale:r,iconOnly:n,tooltips:s,icon:c,tabIndex:f,onCopy:l,loading:p,className:d,style:N}=e,z=Nt(s),u=Nt(c),{copied:I,copy:b}=r??{},S=o?I:b,R=Ye(z[o?1:0],S),h=typeof R=="string"?R:S;return a(ve,{title:R},a("button",{type:"button",className:G(`${t}-copy`,d,{[`${t}-copy-success`]:o,[`${t}-copy-icon-only`]:n}),style:N,onClick:l,"aria-label":h,tabIndex:f},o?Ye(u[1],a(Ko,null),!0):Ye(u[0],p?a(ao,null):a(Yo,null),!0)))},er=hn;var Qe=B(({style:e,children:t},o)=>{let r=L(null);return Zt(o,()=>({isExceed:()=>{let n=r.current;return n.scrollHeight>n.clientHeight},getHeight:()=>r.current.clientHeight})),a("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),yn=e=>e.reduce((t,o)=>t+(ke(o)?String(o).length:1),0);function tr(e,t){let o=0,r=[];for(let n=0;n<e.length;n+=1){if(o===t)return r;let s=e[n],f=ke(s)?String(s).length:1,l=o+f;if(l>t){let p=t-o;return r.push(String(s).slice(0,p)),r}r.push(s),o=l}return e}var kt=0,Tt=1,zt=2,Mt=3,or=4,et={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function $t(e){let{enableMeasure:t,width:o,text:r,children:n,rows:s,expanded:c,measureDeps:f,miscDeps:l,onEllipsis:p}=e,d=E(()=>We(r),[r]),N=E(()=>yn(d),[r]),z=E(()=>n(d,!1),[r].concat(be(f))),[u,I]=x(null),b=L(null),S=L(null),R=L(null),h=L(null),A=L(null),[k,W]=x(!1),[C,M]=x(kt),[P,v]=x(0),[T,j]=x(null);le(()=>{M(t&&o&&N?Tt:kt)},[o,r,s,t,d].concat(be(f))),le(()=>{if(C===Tt){M(zt);let g=S.current&&getComputedStyle(S.current).whiteSpace;j(g)}else if(C===zt){let g=!!R.current?.isExceed();M(g?Mt:or),I(g?[0,N]:null),W(g);let H=R.current?.getHeight()||0,O=s===1?0:h.current?.getHeight()||0,oe=A.current?.getHeight()||0,X=Math.max(H,O+oe);v(X+1),p(g)}},[C]);let D=u?Math.ceil((u[0]+u[1])/2):0;le(()=>{let[g,H]=u||[0,0];if(g!==H){let oe=(b.current?.getHeight()||0)>P,X=D;H-g===1&&(X=oe?g:H),I(oe?[g,X]:[X,H])}},[u,D]);let $=E(()=>{if(!t)return n(d,!1);if(C!==Mt||!u||u[0]!==u[1]){let g=n(d,!1);return[or,kt].includes(C)?g:a("span",{style:{...et,WebkitLineClamp:s}},g)}return n(c?d:tr(d,u[0]),k)},[c,C,u,d].concat(be(l))),U={width:o,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return a(we,null,$,C===zt&&a(we,null,a(Qe,{style:{...U,...et,WebkitLineClamp:s},ref:R},z),a(Qe,{style:{...U,...et,WebkitLineClamp:s-1},ref:h},z),a(Qe,{style:{...U,...et,WebkitLineClamp:1},ref:A},n([],!0))),C===Mt&&u&&u[0]!==u[1]&&a(Qe,{style:{...U,top:400},ref:b},n(tr(d,D),!0)),C===Tt&&a("span",{style:{whiteSpace:"inherit"},ref:S}))}var xn=({enableEllipsis:e,isEllipsis:t,disabled:o,children:r,tooltipProps:n})=>!n?.title||!e?r:a(ve,{...n,disabled:!t||o},r),rr=xn;function bn({mark:e,code:t,underline:o,delete:r,strong:n,keyboard:s,italic:c},f){let l=f;function p(d,N){N&&(l=a(d,{},l))}return p("strong",n),p("u",o),p("del",r),p("code",t),p("mark",e),p("kbd",s),p("i",c),l}var vn="...",nr=["delete","mark","code","underline","strong","keyboard","italic"],Sn=B((e,t)=>{let{prefixCls:o,className:r,style:n,classNames:s,styles:c,direction:f,type:l,disabled:p,children:d,ellipsis:N,editable:z,copyable:u,actions:I,component:b,title:S,onMouseEnter:R,onMouseLeave:h,...A}=e,[k]=Qt("Text"),W=L(null),C=L(null),[M,P,v,T]=Uo(o,s,c,f,e),j=Fe(A,nr),[D,$]=Je(z),[U,g]=dt(!1,$.editing),{triggerType:H=["icon"]}=$,O=m=>{m&&$.onStart?.(),g(m)},oe=jo(U);le(()=>{!U&&oe&&C.current?.focus()},[U]);let X=m=>{m?.preventDefault(),O(!0)},rt=m=>{$.onChange?.(m),O(!1)},Q=()=>{$.onCancel?.(),O(!1)},[pe,Te]=Je(u),{placement:ue="end"}=I??{},{copied:ze,copyLoading:Re,onClick:nt}=_o({copyConfig:Te,children:d}),[Me,it]=x(!1),[ne,F]=x(!1),[Z,at]=x(!1),[gr,hr]=x(!1),[yr,xr]=x(!0),[se,J]=Je(N,{expandable:!1,symbol:m=>m?k?.collapse:k?.expand}),[ie,br]=dt(J.defaultExpanded||!1,J.expanded),Y=se&&(!ie||J.expandable==="collapsible"),{rows:ge=1}=J,$e=E(()=>Y&&(J.suffix!==void 0||J.onEllipsis||J.expandable||D||pe),[Y,J,D,pe]);le(()=>{se&&!$e&&(it(pt("webkitLineClamp")),F(pt("textOverflow")))},[$e,se]);let[me,vr]=x(Y),Dt=E(()=>$e?!1:ge===1?ne:Me,[$e,ge,Me,ne]);le(()=>{vr(Dt&&Y)},[Dt,Y]);let Oe=Zo(J.tooltip,$.text,d),Ce=me&&!!Oe.title,Bt=Y&&(me?Ce&&gr:Z),Sr=Y&&ge===1&&me,st=Y&&ge>1&&me,Er=(m,y)=>{br(y.expanded),J.onExpand?.(m,y)},[Ft,Rr]=x(0),[Cr,Wt]=De(!1),lt=L(!1),wr=({offsetWidth:m})=>{Rr(m)},Nr=m=>{at(m),Z!==m&&J.onEllipsis?.(m)},ct=jt(()=>{let m=W.current;if(se&&Ce&&m){let y=Qo(m);hr(V=>V===y?V:y)}},[se,Ce]);q(()=>{lt.current&&ct()},[ct,d,st,yr,Ft]),q(()=>{let m=W.current;if(typeof IntersectionObserver>"u"||!m||!Ce||!Y)return;let y=new IntersectionObserver(()=>{xr(!!m.offsetParent)});return y.observe(m),()=>{y.disconnect()}},[Ce,Y]);let Ht=E(()=>{if(!(!se||me))return[$.text,d,S,Oe.title].find(ke)},[se,me,S,Oe.title,Bt,$.text]);if(U)return a(Wo,{value:$.text??(typeof d=="string"?d:""),onSave:rt,onCancel:Q,onEnd:$.onEnd,prefixCls:v,className:r,style:n,direction:T,component:b,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon,classNames:M,styles:P});let kr=()=>{let{expandable:m,symbol:y}=J;return m?a("button",{type:"button",key:"expand",className:G(`${v}-${ie?"collapse":"expand"}`,M.action),style:P.action,onClick:V=>Er(V,{expanded:!ie}),"aria-label":ie?k.collapse:k?.expand},_e(y)?y(ie):y):null},Tr=()=>{if(!D)return;let{icon:m,tooltip:y,tabIndex:V}=$,he=We(y)[0]||k?.edit,$r=typeof he=="string"?he:"";return H.includes("icon")?a(ve,{key:"edit",title:y===!1?"":he},a("button",{type:"button",ref:C,className:G(`${v}-edit`,M.action),style:P.action,onClick:X,"aria-label":$r,tabIndex:V},m||a(Mo,{role:"button"}))):null},zr=()=>pe?a(er,{key:"copy",...Te,prefixCls:v,copied:ze,locale:k,onCopy:nt,loading:Re,iconOnly:!Kt(d),className:M.action,style:P.action}):null,_t=m=>{let y=m&&kr(),V=Tr(),he=zr();return!y&&!V&&!he?null:a("span",{key:"operations",className:G(`${v}-actions`,M.actions,{[`${v}-actions-start`]:ue==="start"}),style:P.actions,onMouseEnter:()=>Wt(!0,!0),onMouseLeave:()=>Wt(!1,{ms:500})},y,V,he)},Mr=m=>[m&&!ie&&a("span",{"aria-hidden":!0,key:"ellipsis"},vn),J.suffix];return a(je,{onResize:wr,disabled:!Y},m=>a(rr,{tooltipProps:Oe,enableEllipsis:Y,isEllipsis:Bt,disabled:Cr},a(Vo,{onMouseEnter:y=>{lt.current=!0,ct(),R?.(y)},onMouseLeave:y=>{lt.current=!1,h?.(y)},className:G({[`${v}-${l}`]:l,[`${v}-disabled`]:p,[`${v}-ellipsis`]:se,[`${v}-ellipsis-single-line`]:Sr,[`${v}-ellipsis-multiple-line`]:st,[`${v}-link`]:b==="a"},r),classNames:M,styles:P,prefixCls:v,style:{...n,WebkitLineClamp:st?ge:void 0},component:b,ref:Be(m,W,t),direction:T,onClick:H.includes("text")?X:void 0,"aria-label":Ht?.toString(),title:S,...j},a($t,{enableMeasure:Y&&!me,text:d,rows:ge,width:Ft,onEllipsis:Nr,expanded:ie,measureDeps:[ue],miscDeps:[ze,ie,Re,D,pe,ue,k].concat(be(nr.map(y=>e[y])))},(y,V)=>bn(e,a(we,null,ue==="start"?_t(V):null,y.length>0&&V&&!ie&&Ht?a("span",{key:"show-content","aria-hidden":!0},y):y,Mr(V),ue==="start"?null:_t(V)))))))}),ir=Sn;var En=B((e,t)=>{let{ellipsis:o,children:r,...n}=e,s=E(()=>ae(o)?Fe(o,["expandable","rows"]):o,[o]);return a(ir,{ref:t,...n,ellipsis:s,component:"span"},r)}),ar=En;function Ot(e){return!e.defaultPrevented&&e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}var fe=_(lo);function sr(e){return[{key:"gateway:home",label:"\u9996\u9875",href:"/",order:-1},...e.navigation].map(t=>({...t,active:t.href==="/"?e.pathname==="/":e.pathname===t.href||e.pathname.startsWith(`${t.href}/`)}))}var lr=ye(void 0);function Lt({children:e,initialContext:t}){return i(lr,{value:t,children:e})}function It(){let e=At();return E(()=>sr(e),[e])}function At(){let e=xe(lr);if(!e)throw new Error("ZlooksShellProvider is required");return e}var cr=qe({Button:{textActiveBg:"transparent",textHoverBg:"transparent"}});var Ee=_(ko),Rn=_(Ve),Cn=_(fo),dr=_(go),re=_(ho),wn=_(co),Nn=_(yo),tt=_(xo),ee=_(ar);function pr({className:e,classNames:t={},style:o,size:r="middle",shape:n="round",variant:s="compact",onNavigate:c,onLogout:f}){let l=At().user,[p,d]=x(!1),[N,z]=x(!1),{message:u,modal:I}=vo(),b=ot("zlooks-user-access-trigger",e,t.trigger),S=ot("zlooks-user-access-avatar",t.avatar),R=ot("zlooks-user-access-label",t.label),h=s==="avatar",A=kn(r,h),k=h?"circle":n,W=h?"circle":"square",C=h?{height:A,minWidth:A,padding:0,width:A,...o}:o;async function M(T,j){try{await f(T),j(),d(!1)}catch(D){So(D)||u.error("\u9000\u51FA\u767B\u5F55\u5931\u8D25")}}function P(T){I.confirm({title:"\u786E\u8BA4\u9000\u51FA\u767B\u5F55\uFF1F",content:"\u9000\u51FA\u540E\uFF0C\u9700\u8981\u91CD\u65B0\u767B\u5F55\u624D\u80FD\u8BBF\u95EE\u4E2A\u4EBA\u8D26\u6237\u3002",okText:"\u9000\u51FA\u767B\u5F55",okButtonProps:{danger:!0},cancelText:"\u53D6\u6D88",onOk(j){M(T,j)}})}function v(T,j,D){!c||!Ot(T)||(T.preventDefault(),D(),c(j))}return l.status==="unavailable"?i(Pt,{children:i(fe,{"aria-label":"\u8D26\u6237\u670D\u52A1\u6682\u4E0D\u53EF\u7528",className:b,disabled:!0,shape:k,size:r,style:C,type:"text",children:w(tt,{align:"center",size:6,children:[i(Ee,{className:S,shape:W,size:A,style:{background:"var(--ant-color-fill-secondary)",border:h?"none":void 0,borderRadius:h?"50%":9,boxShadow:h?"none":void 0,color:"var(--ant-color-text-tertiary)",fontSize:12,fontWeight:750},children:"Z"}),s==="compact"?i(ee,{type:"secondary",children:"\u6682\u4E0D\u53EF\u7528"}):null]})})}):l.status==="authenticated"?i(Pt,{children:i(Nn,{arrow:!1,destroyOnHidden:!0,onOpenChange:d,open:p,placement:"bottomRight",styles:{container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:16,boxShadow:"0 18px 48px rgb(15 23 42 / 14%)",overflow:"hidden",padding:0},content:{maxWidth:"calc(100vw - 32px)",width:280}},trigger:"click",content:w(re,{"aria-label":"\u8D26\u6237\u4FE1\u606F",className:t.popup,role:"dialog",style:{background:"var(--ant-color-bg-elevated)"},vertical:!0,children:[w(re,{align:"center",gap:12,style:{background:["linear-gradient(color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","linear-gradient(90deg, color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","var(--ant-color-bg-elevated)"].join(", "),backgroundSize:"28px 28px",padding:16},children:[i(Ee,{className:S,shape:"square",size:44,src:l.user.avatarUrl,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontSize:16,fontWeight:700},children:l.user.avatarText}),w(re,{style:{flex:1,minWidth:0},vertical:!0,children:[i(ee,{strong:!0,ellipsis:!0,style:{fontSize:15,lineHeight:1.4},children:l.user.label}),l.user.secondary?i(ee,{ellipsis:{tooltip:l.user.secondary},style:{display:"block"},type:"secondary",children:l.user.secondary}):null]}),i("span",{"aria-label":"\u5DF2\u767B\u5F55",role:"status",style:{background:"var(--ant-color-success)",borderRadius:999,boxShadow:"0 0 0 3px var(--ant-color-success-bg)",flex:"0 0 auto",height:7,width:7}})]}),i(Cn,{style:{margin:0}}),w(re,{gap:2,style:{padding:8},vertical:!0,children:[i(fe,{block:!0,href:l.accountHref,size:"large",style:{fontWeight:600,height:44,paddingInline:12},type:"text",onClick:T=>v(T,l.accountHref,()=>d(!1)),children:w(re,{justify:"space-between",style:{width:"100%"},children:[i("span",{children:"\u4E2A\u4EBA\u8D44\u6599"}),i(ee,{"aria-hidden":"true",type:"secondary",children:"\u2192"})]})}),i(fe,{block:!0,danger:!0,size:"large",style:{height:44,justifyContent:"flex-start",paddingInline:12},type:"text",onClick:()=>P(l.logoutHref),children:"\u9000\u51FA\u767B\u5F55"})]})]}),children:i(fe,{"aria-expanded":p,"aria-haspopup":"dialog","aria-label":`\u6253\u5F00${l.user.label}\u7684\u8D26\u6237\u4FE1\u606F`,className:b,shape:k,size:r,style:C,type:"text",children:w(tt,{align:"center",size:6,children:[i(Ee,{className:S,shape:W,size:A,src:l.user.avatarUrl,style:{background:h?"var(--ant-color-fill-secondary)":"var(--ant-color-text)",border:h?"none":void 0,borderRadius:h?"50%":9,boxShadow:h?"none":void 0,color:h?"var(--ant-color-text)":"var(--ant-color-bg-container)",fontSize:12,fontWeight:700},children:l.user.avatarText}),s==="compact"?i(ee,{className:R,ellipsis:!0,style:{fontSize:13,fontWeight:650,maxWidth:120},children:l.user.label}):null]})})})}):w(Pt,{children:[i(fe,{"aria-expanded":N,"aria-haspopup":"dialog","aria-label":"\u767B\u5F55",className:b,shape:k,size:r,style:C,type:"text",onClick:()=>z(!0),children:w(tt,{align:"center",size:6,children:[i(Ee,{className:S,shape:W,size:A,style:{background:"var(--ant-color-primary-bg)",border:h?"none":"1px solid var(--ant-color-primary-border)",borderRadius:h?"50%":9,boxShadow:h?"none":void 0,color:"var(--ant-color-primary)",fontSize:12,fontWeight:750},children:"Z"}),s==="compact"?i(ee,{className:R,style:{fontSize:13,fontWeight:650},children:"\u767B\u5F55"}):null]})}),i(wn,{centered:!0,destroyOnHidden:!0,footer:null,open:N,rootClassName:ot("zlooks-user-access-modal",t.popup),styles:{body:{paddingTop:4},container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:22,boxShadow:"0 28px 80px rgb(15 23 42 / 18%)",overflow:"hidden",padding:24},header:{marginBottom:22}},title:w(tt,{align:"center",size:"middle",children:[i(Ee,{shape:"square",size:44,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontWeight:750},children:"Z"}),w(re,{vertical:!0,children:[i(ee,{strong:!0,style:{fontSize:17},children:"\u6B22\u8FCE\u56DE\u6765"}),i(ee,{type:"secondary",children:"\u9009\u62E9\u4E00\u79CD\u65B9\u5F0F\u7EE7\u7EED"})]})]}),width:480,onCancel:()=>z(!1),children:w(re,{gap:12,vertical:!0,children:[l.loginMethods.length===0?i(dr,{description:"\u6682\u65F6\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",image:dr.PRESENTED_IMAGE_SIMPLE,style:{paddingBlock:24}}):l.loginMethods.map((T,j)=>i(fe,{block:!0,href:T.href,onClick:D=>v(D,T.href,()=>z(!1)),style:{height:"auto",minHeight:72,padding:"10px 14px",textAlign:"left"},children:w(re,{align:"center",gap:14,justify:"space-between",style:{width:"100%"},children:[w(re,{align:"center",gap:12,style:{minWidth:0},children:[i(Ee,{shape:"square",size:40,style:{background:"var(--ant-color-primary-bg)",borderRadius:11,color:"var(--ant-color-primary)",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:11,fontWeight:700},children:String(j+1).padStart(2,"0")}),w(re,{style:{minWidth:0},vertical:!0,children:[i(ee,{strong:!0,children:T.label}),i(ee,{ellipsis:!0,type:"secondary",children:"\u7EE7\u7EED\u8BBF\u95EE\u4F60\u7684\u4E2A\u4EBA\u7A7A\u95F4"})]})]}),i(ee,{"aria-hidden":"true",style:{color:"var(--ant-color-primary)"},children:"\u2192"})]})},T.id)),i(ee,{style:{fontSize:12,marginTop:6,textAlign:"center"},type:"secondary",children:"\u767B\u5F55\u4FE1\u606F\u4EC5\u7528\u4E8E\u8BC6\u522B\u4F60\u7684\u8D26\u6237"})]})})]})}function Pt({children:e}){let{mode:t}=Ne(),{resolvedMode:o,resolvedTheme:r}=yt(t),n=E(()=>({...r,cssVar:{key:`zlooks-user-access-${o}`},components:{...r.components,Button:{...r.components?.Button,...cr.Button}}}),[o,r]);return i(Rn,{theme:n,children:e})}function ot(...e){return e.filter(Boolean).join(" ")}function kn(e,t){return t&&e==="small"?28:t&&e==="large"?48:t?40:e==="small"?20:e==="large"?28:24}var ur=ye(void 0);function mr({children:e,initialConfig:t}){return i(ur,{value:t,children:e})}function fr(){return Tn().value}function Tn(){let e=xe(ur);if(!e)throw new Error("ZlooksSiteConfigProvider is required");return e}var te={page:"u",headerWrap:"v",header:"c",brand:"m",brandMark:"p",brandLogo:"l",navigation:"e",actions:"s",content:"f",footer:"r"};function Mn({children:e,shell:t,site:o}){return i(ht,{children:i(Lt,{initialContext:t,children:i(mr,{initialConfig:o,children:i($n,{children:e})})})})}function $n({children:e}){let t=It(),o=fr(),r=Eo(),n=Vt();async function s(c){await r(c,{method:"POST",credentials:"same-origin"},{errorMessage:"\u9000\u51FA\u767B\u5F55\u5931\u8D25"}),n.refresh()}return w("div",{className:te.page,"data-shared-page-frame":!0,children:[i("div",{className:te.headerWrap,children:w("header",{className:te.header,children:[w(Pe,{className:te.brand,href:o.identity.homeHref,children:[o.identity.logoUrl?i("img",{alt:"",className:te.brandLogo,src:o.identity.logoUrl}):i("span",{className:te.brandMark,"aria-hidden":"true",children:"Z"}),i("span",{children:o.identity.name})]}),i("nav",{"aria-label":"\u4E3B\u5BFC\u822A",className:te.navigation,children:t.map(c=>i(Pe,{"aria-current":c.active?"page":void 0,href:c.href,children:c.label},c.key))}),i("div",{className:te.actions,children:i(pr,{size:"middle",shape:"round",variant:"avatar",onLogout:s,onNavigate:n.push})})]})}),i("main",{className:te.content,children:e}),w("footer",{className:te.footer,children:[w("div",{children:[i("strong",{children:o.identity.name}),i("span",{children:"\u4FDD\u6301\u597D\u5947\uFF0C\u8BA4\u771F\u751F\u6D3B\u3002"})]}),w("div",{children:[o.legal.registrations.map(c=>c.verificationUrl?i(Pe,{href:c.verificationUrl,children:c.number},c.id):i("span",{children:c.number},c.id)),o.legal.copyright?i("small",{children:o.legal.copyright}):null]})]})]})}export{Mn as default};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|