@zlooks.cn/password-auth-server 1.1.10 → 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.
Files changed (13) hide show
  1. package/.hile-rsc/build-mvjfogo9-046ccbb1/client-browser/src-plugin-page-frame-07c4de56a6-KY4QFFE6.js +16 -0
  2. package/.hile-rsc/{build-mvcxvbew-5a915501/client-ssr/src-plugin-page-frame-07c4de56a6-7HAORZG5.js → build-mvjfogo9-046ccbb1/client-ssr/src-plugin-page-frame-07c4de56a6-6A2S6XFE.js} +17 -17
  3. package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/plugin.json +8 -8
  4. package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/server-rsc/index.js +2 -2
  5. package/package.json +3 -3
  6. package/.hile-rsc/build-mvcxvbew-5a915501/client-browser/src-plugin-page-frame-07c4de56a6-WZVJVASL.js +0 -16
  7. /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/chunks/chunk-DFJ6HO4A.js +0 -0
  8. /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-page-frame-07c4de56a6-GLDPP7WQ.css +0 -0
  9. /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-password-form-3bd63d69e5-6HVWNCR6.js +0 -0
  10. /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-password-form-3bd63d69e5-XRKUN4RP.css +0 -0
  11. /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-ssr/chunks/chunk-KG33MVOX.js +0 -0
  12. /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-ssr/src-plugin-password-form-3bd63d69e5-QE76CW6Q.js +0 -0
  13. /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "protocolVersion": 1,
3
3
  "pluginId": "auth.password",
4
- "buildId": "build-mvcxvbew-5a915501",
4
+ "buildId": "build-mvjfogo9-046ccbb1",
5
5
  "runtime": {
6
6
  "react": "19.2.8",
7
7
  "reactDom": "19.2.8",
@@ -9,15 +9,15 @@
9
9
  },
10
10
  "server": {
11
11
  "entry": "server-rsc/index.js",
12
- "integrity": "sha256-mXth5dnBrPjqmujfID9Hy00mplNqkmlvx7GRjMNnKes=",
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-WZVJVASL.js",
20
- "ssrModule": "client-ssr/src-plugin-page-frame-07c4de56a6-7HAORZG5.js",
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
  {
@@ -33,10 +33,10 @@
33
33
  "size": 657173
34
34
  }
35
35
  ],
36
- "integrity": "sha256-MrXEyMNz5s3XRfiz7ky4mAC01HCmTQDNpnT8kaWNDXU=",
37
- "ssrIntegrity": "sha256-lK1AIos9Ww7uhaXaGOa+AxQunHJYQvVyAvQSiQ+l878=",
38
- "size": 34857,
39
- "ssrSize": 205513,
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
  ]
@@ -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-mvcxvbew-5a915501",
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-mvcxvbew-5a915501",
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.10",
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.1.9",
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",
@@ -90,5 +90,5 @@
90
90
  "typescript": "7.0.2",
91
91
  "vitest": "4.1.11"
92
92
  },
93
- "gitHead": "678196bb9b1230a541d4c45911c2409840617c6c"
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-DFJ6HO4A.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};