@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.
- package/.hile-rsc/build-mvjfogo9-046ccbb1/client-browser/src-plugin-page-frame-07c4de56a6-KY4QFFE6.js +16 -0
- 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
- package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/plugin.json +8 -8
- package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/server-rsc/index.js +2 -2
- package/package.json +3 -3
- package/.hile-rsc/build-mvcxvbew-5a915501/client-browser/src-plugin-page-frame-07c4de56a6-WZVJVASL.js +0 -16
- /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/chunks/chunk-DFJ6HO4A.js +0 -0
- /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-page-frame-07c4de56a6-GLDPP7WQ.css +0 -0
- /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-password-form-3bd63d69e5-6HVWNCR6.js +0 -0
- /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-browser/src-plugin-password-form-3bd63d69e5-XRKUN4RP.css +0 -0
- /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-ssr/chunks/chunk-KG33MVOX.js +0 -0
- /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/client-ssr/src-plugin-password-form-3bd63d69e5-QE76CW6Q.js +0 -0
- /package/.hile-rsc/{build-mvcxvbew-5a915501 → build-mvjfogo9-046ccbb1}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";import{$ as Qt,$a as mo,A as De,Ab as Ro,C as Be,Da as lo,H as ut,I as mt,Ia as co,J as Fe,L as We,Q as He,T as ve,U as Kt,V as Xt,W as Jt,Y as ae,Z as _e,Za as po,_ as Yt,_a as uo,a as Le,aa as pe,ab as qe,b as Ie,bb as _,c as we,cb as ft,d as le,da as eo,e as a,ea as to,eb as fo,f as B,fa as je,fb as go,g as Ae,ga as oo,gb as ho,hb as yo,i as Zt,ib as be,j as ce,jb as xo,k as q,ka as ro,l as Ut,la as no,lb as vo,m as E,ma as io,n as L,o as x,p as Vt,pa as Ze,q as qt,qa as Ue,r as Pe,s as i,sb as bo,t as w,ta as Ve,u as G,ua as ao,ub as So,v as Gt,va as ue,w as de,y as pt,za as so,zb as Eo}from"./chunks/chunk-DFJ6HO4A.js";var zo=Le(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});var Vr={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"};vt.default=Vr});var Oo=Le(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});var Kr={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"};St.default=Kr});var Go=Le(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});var pn={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"};Rt.default=pn});var Jo=Le(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});var fn={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"};wt.default=fn});var Lr={token:{colorPrimary:"#1677ff",borderRadius:10,motion:!0,fontFamily:["-apple-system","BlinkMacSystemFont","'Segoe UI'","Roboto","'Helvetica Neue'","Arial","'Noto Sans'","sans-serif"].join(", ")}},Co=qe(Lr);var Ge=le("light");var ht="zlooks.theme",gt="zlooks:theme-change",Se="default";function Ne(){let e=Vt(Dr,Ir,Ar),t=ce(Ge);return{mode:e,resolvedMode:t,setMode:Pr}}function Ke(e){return e==="dark"||e==="light"||e==="default"?e:"default"}function Ir(){if(typeof window>"u")return Se;try{let e=window.localStorage.getItem(ht);e!==null&&(Se=Ke(e))}catch{}return Se}function Ar(){return"default"}function Pr(e){if(Ke(e)!==e)throw new TypeError(`Unsupported Zlooks theme mode: ${String(e)}`);if(Se=e,!(typeof window>"u")){try{window.localStorage.setItem(ht,e)}catch{}window.dispatchEvent(new CustomEvent(gt,{detail:e}))}}function Dr(e){if(typeof window>"u")return()=>{};let t=r=>{Se=Ke(r.detail),e()},o=r=>{r.key===ht&&(Se=Ke(r.newValue),e())};return window.addEventListener(gt,t),window.addEventListener("storage",o),()=>{window.removeEventListener(gt,t),window.removeEventListener("storage",o)}}var Br=_(uo),Fr=_(Ve),wo=_(mo);function yt({children:e,theme:t}){let o=Ne(),{resolvedMode:r,resolvedTheme:n}=xt(t??o.mode);return i(Fr,{button:{autoInsertSpace:!1},theme:n,children:i(Br,{children:i(Ge,{value:r,children:i("div",{className:"zlooks-ui-theme","data-zlooks-theme":r,children:e})})})})}function xt(e){let t=Wr(e==="default"),o=e==="default"?t?"dark":"light":e,r=E(()=>({...Co,algorithm:o==="dark"?wo.darkAlgorithm:wo.defaultAlgorithm,cssVar:{key:`zlooks-${o}`},hashed:!1,zeroRuntime:!0}),[o]);return{resolvedMode:o,resolvedTheme:r}}function Wr(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 Hr=le({}),No=Hr;var _r=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:v,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]:{...io(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:s,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${pe(h)} ${A} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...k(c,p,z,v),"&-lg":{...k(f,d,u,S)},"&-sm":{...k(l,N,I,R)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},jr=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}}}},Zr=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}},ko=Ue("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=ro(e,{avatarBg:o,avatarColor:t});return[_r(r),jr(r)]},Zr);var Ur=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:v=4,onError:S,...R}=e,[h,A]=x(1),[k,W]=x(!1),[C,M]=x(!0),P=L(null),b=L(null),T=Be(t,P),{getPrefixCls:j,className:D,style:$}=He("avatar"),U=ce(No),g=()=>{if(!b.current||!P.current)return;let F=b.current.offsetWidth,Z=P.current.offsetWidth;F!==0&&Z!==0&&v*2<Z&&A(Z-v*2<F?(Z-v*2)/F:1)};q(()=>{W(!0)},[]),q(()=>{M(!0),A(1)},[s]),q(g,[v]);let H=()=>{S?.()!==!1&&M(!1)},O=lo(F=>n??U?.size??F??"medium"),oe=Object.keys(ae(O)?O||{}:{}).some(F=>ft.includes(F)),X=fo(oe),nt=E(()=>{if(!ae(O))return{};let F=ft.find(st=>X[st]),Z=O[F];return Z?{width:Z,height:Z,fontSize:Z&&(f||u)?Z/2:18}:{}},[X,O,f,u]),Q=j("avatar",o),me=ao(Q),[Te,fe]=ko(Q,me),ze=G({[`${Q}-lg`]:O==="large",[`${Q}-sm`]:O==="small"}),Re=Ae(s),it=r||U?.shape||"circle",Me=G(Q,ze,D,`${Q}-${it}`,{[`${Q}-image`]:Re||s&&C,[`${Q}-icon`]:!!f},fe,me,l,p,Te),at=Jt(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:b,style:Z},u))}else ne=a("span",{className:`${Q}-string`,style:{opacity:0},ref:b},u);return a("span",{...R,style:{...at,...nt,...$,...d},className:Me,ref:T},ne)}),To=Ur;var Mo=Ie(zo());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 qr=(e,t)=>a(ue,bt({},e,{ref:t,icon:Mo.default})),Gr=B(qr),$o=Gr;var Lo=Ie(Oo());function Et(){return Et=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},Et.apply(this,arguments)}var Xr=(e,t)=>a(ue,Et({},e,{ref:t,icon:Lo.default})),Jr=B(Xr),Io=Jr;var Yr=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:s}=r;return{marginBottom:n,color:o,fontWeight:s,fontSize:e,lineHeight:t}},Ao=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
|
+
`]=Yr(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),o},Po=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"}}}}}},Do=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:`${pe(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:`${pe(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:to[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:`${pe(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:pe(e.padding),overflowWrap:"break-word",borderBottom:`${pe(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}}}}),Bo=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"}}}},Fo=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Wo=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...no,"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 Qr=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"},...Ao(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}},...Do(e),...Po(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}},...Bo(e),...Fo(e),...Wo(),"&-rtl":{direction:"rtl"}}}},en=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Xe=Ue("Typography",Qr,en);var tn=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:v=a(Io,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)},b=()=>{N(A.trim())},T=({keyCode:g,ctrlKey:H,altKey:O,metaKey:oe,shiftKey:X})=>{h.current!==g||R.current||H||O||oe||X||(g===mt.ENTER?(b(),u?.()):g===mt.ESC&&z())},j=()=>{b()},[D,$]=Xe(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}),v!==null?oo(v,{className:`${t}-edit-content-confirm`}):null)},Ho=tn;var on=(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})}},rn=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 nn(e,t){if(typeof e!="string")return!1;let o=t?.format==="text/html";return!!(await rn(e,o)||on(e,o))}var _o=nn;var an=(e,t={})=>!Kt(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Je=an;var sn=({copyConfig:e,children:t})=>{let[o,r]=De(!1),[n,s]=x(!1),c={};e.format&&(c.format=e.format);let f=Gt(async l=>{l?.preventDefault(),l?.stopPropagation(),s(!0);try{let p=_e(e.text)?await e.text():e.text;await _o(p||Je(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}},jo=sn;var ln=(e,t)=>{let o=!!e;return E(()=>{let r={...t,...o&&ae(e)?e:null};return[o,r]},[o,e,t])},Ye=ln;var cn=e=>{let t=L(void 0);return q(()=>{t.current=e}),t.current},Zo=cn;var dn=(e,t,o)=>E(()=>e===!0?{title:t??o}:Ae(e)?{title:e}:ae(e)?{title:t??o,...e}:{title:e},[e,t,o]),Uo=dn;var Vo=(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]),v=Yt(l),[S,R]=Qt([I,p,t],[d,v,o],{props:u});return[S,R,z,N]};var qo=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]=Xe(d),I=G(d,{[`${d}-rtl`]:c==="rtl"},r,n,z,u,l?.root),v={...p?.root,...f};return a(o,{...N,className:I,style:v,ref:t},s)});var Ko=Ie(Go());function Ct(){return Ct=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},Ct.apply(this,arguments)}var un=(e,t)=>a(ue,Ct({},e,{ref:t,icon:Ko.default})),mn=B(un),Xo=mn;var Yo=Ie(Jo());function Nt(){return Nt=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},Nt.apply(this,arguments)}var gn=(e,t)=>a(ue,Nt({},e,{ref:t,icon:Yo.default})),hn=B(gn),Qo=hn;var kt=e=>e===!1?[!1,!1]:Je(e);function Qe(e,t,o){return e===!0||e===void 0?t:e||o&&t}function er(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 yn=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=kt(s),u=kt(c),{copied:I,copy:v}=r??{},S=o?I:v,R=Qe(z[o?1:0],S),h=typeof R=="string"?R:S;return a(be,{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?Qe(u[1],a(Xo,null),!0):Qe(u[0],p?a(so,null):a(Qo,null),!0)))},tr=yn;var et=B(({style:e,children:t},o)=>{let r=L(null);return Ut(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)}),xn=e=>e.reduce((t,o)=>t+(ke(o)?String(o).length:1),0);function or(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 Tt=0,zt=1,Mt=2,$t=3,rr=4,tt={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Ot(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(()=>xn(d),[r]),z=E(()=>n(d,!1),[r].concat(ve(f))),[u,I]=x(null),v=L(null),S=L(null),R=L(null),h=L(null),A=L(null),[k,W]=x(!1),[C,M]=x(Tt),[P,b]=x(0),[T,j]=x(null);de(()=>{M(t&&o&&N?zt:Tt)},[o,r,s,t,d].concat(ve(f))),de(()=>{if(C===zt){M(Mt);let g=S.current&&getComputedStyle(S.current).whiteSpace;j(g)}else if(C===Mt){let g=!!R.current?.isExceed();M(g?$t:rr),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);b(X+1),p(g)}},[C]);let D=u?Math.ceil((u[0]+u[1])/2):0;de(()=>{let[g,H]=u||[0,0];if(g!==H){let oe=(v.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!==$t||!u||u[0]!==u[1]){let g=n(d,!1);return[rr,Tt].includes(C)?g:a("span",{style:{...tt,WebkitLineClamp:s}},g)}return n(c?d:or(d,u[0]),k)},[c,C,u,d].concat(ve(l))),U={width:o,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return a(we,null,$,C===Mt&&a(we,null,a(et,{style:{...U,...tt,WebkitLineClamp:s},ref:R},z),a(et,{style:{...U,...tt,WebkitLineClamp:s-1},ref:h},z),a(et,{style:{...U,...tt,WebkitLineClamp:1},ref:A},n([],!0))),C===$t&&u&&u[0]!==u[1]&&a(et,{style:{...U,top:400},ref:v},n(or(d,D),!0)),C===zt&&a("span",{style:{whiteSpace:"inherit"},ref:S}))}var vn=({enableEllipsis:e,isEllipsis:t,disabled:o,children:r,tooltipProps:n})=>!n?.title||!e?r:a(be,{...n,disabled:!t||o},r),nr=vn;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 Sn="...",ir=["delete","mark","code","underline","strong","keyboard","italic"],En=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:v,title:S,onMouseEnter:R,onMouseLeave:h,...A}=e,[k]=eo("Text"),W=L(null),C=L(null),[M,P,b,T]=Vo(o,s,c,f,e),j=Fe(A,ir),[D,$]=Ye(z),[U,g]=pt(!1,$.editing),{triggerType:H=["icon"]}=$,O=m=>{m&&$.onStart?.(),g(m)},oe=Zo(U);de(()=>{!U&&oe&&C.current?.focus()},[U]);let X=m=>{m?.preventDefault(),O(!0)},nt=m=>{$.onChange?.(m),O(!1)},Q=()=>{$.onCancel?.(),O(!1)},[me,Te]=Ye(u),{placement:fe="end"}=I??{},{copied:ze,copyLoading:Re,onClick:it}=jo({copyConfig:Te,children:d}),[Me,at]=x(!1),[ne,F]=x(!1),[Z,st]=x(!1),[hr,yr]=x(!1),[xr,vr]=x(!0),[se,J]=Ye(N,{expandable:!1,symbol:m=>m?k?.collapse:k?.expand}),[ie,br]=pt(J.defaultExpanded||!1,J.expanded),Y=se&&(!ie||J.expandable==="collapsible"),{rows:ye=1}=J,$e=E(()=>Y&&(J.suffix!==void 0||J.onEllipsis||J.expandable||D||me),[Y,J,D,me]);de(()=>{se&&!$e&&(at(ut("webkitLineClamp")),F(ut("textOverflow")))},[$e,se]);let[ge,Sr]=x(Y),Bt=E(()=>$e?!1:ye===1?ne:Me,[$e,ye,Me,ne]);de(()=>{Sr(Bt&&Y)},[Bt,Y]);let Oe=Uo(J.tooltip,$.text,d),Ce=ge&&!!Oe.title,Ft=Y&&(ge?Ce&&hr:Z),Er=Y&&ye===1&&ge,lt=Y&&ye>1&&ge,Rr=(m,y)=>{br(y.expanded),J.onExpand?.(m,y)},[Wt,Cr]=x(0),[wr,Ht]=De(!1),ct=L(!1),Nr=({offsetWidth:m})=>{Cr(m)},kr=m=>{st(m),Z!==m&&J.onEllipsis?.(m)},dt=Zt(()=>{let m=W.current;if(se&&Ce&&m){let y=er(m);yr(V=>V===y?V:y)}},[se,Ce]);q(()=>{ct.current&&dt()},[dt,d,lt,xr,Wt]),q(()=>{let m=W.current;if(typeof IntersectionObserver>"u"||!m||!Ce||!Y)return;let y=new IntersectionObserver(()=>{vr(!!m.offsetParent)});return y.observe(m),()=>{y.disconnect()}},[Ce,Y]);let _t=E(()=>{if(!(!se||ge))return[$.text,d,S,Oe.title].find(ke)},[se,ge,S,Oe.title,Ft,$.text]);if(U)return a(Ho,{value:$.text??(typeof d=="string"?d:""),onSave:nt,onCancel:Q,onEnd:$.onEnd,prefixCls:b,className:r,style:n,direction:T,component:v,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon,classNames:M,styles:P});let Tr=()=>{let{expandable:m,symbol:y}=J;return m?a("button",{type:"button",key:"expand",className:G(`${b}-${ie?"collapse":"expand"}`,M.action),style:P.action,onClick:V=>Rr(V,{expanded:!ie}),"aria-label":ie?k.collapse:k?.expand},_e(y)?y(ie):y):null},zr=()=>{if(!D)return;let{icon:m,tooltip:y,tabIndex:V}=$,xe=We(y)[0]||k?.edit,Or=typeof xe=="string"?xe:"";return H.includes("icon")?a(be,{key:"edit",title:y===!1?"":xe},a("button",{type:"button",ref:C,className:G(`${b}-edit`,M.action),style:P.action,onClick:X,"aria-label":Or,tabIndex:V},m||a($o,{role:"button"}))):null},Mr=()=>me?a(tr,{key:"copy",...Te,prefixCls:b,copied:ze,locale:k,onCopy:it,loading:Re,iconOnly:!Xt(d),className:M.action,style:P.action}):null,jt=m=>{let y=m&&Tr(),V=zr(),xe=Mr();return!y&&!V&&!xe?null:a("span",{key:"operations",className:G(`${b}-actions`,M.actions,{[`${b}-actions-start`]:fe==="start"}),style:P.actions,onMouseEnter:()=>Ht(!0,!0),onMouseLeave:()=>Ht(!1,{ms:500})},y,V,xe)},$r=m=>[m&&!ie&&a("span",{"aria-hidden":!0,key:"ellipsis"},Sn),J.suffix];return a(je,{onResize:Nr,disabled:!Y},m=>a(nr,{tooltipProps:Oe,enableEllipsis:Y,isEllipsis:Ft,disabled:wr},a(qo,{onMouseEnter:y=>{ct.current=!0,dt(),R?.(y)},onMouseLeave:y=>{ct.current=!1,h?.(y)},className:G({[`${b}-${l}`]:l,[`${b}-disabled`]:p,[`${b}-ellipsis`]:se,[`${b}-ellipsis-single-line`]:Er,[`${b}-ellipsis-multiple-line`]:lt,[`${b}-link`]:v==="a"},r),classNames:M,styles:P,prefixCls:b,style:{...n,WebkitLineClamp:lt?ye:void 0},component:v,ref:Be(m,W,t),direction:T,onClick:H.includes("text")?X:void 0,"aria-label":_t?.toString(),title:S,...j},a(Ot,{enableMeasure:Y&&!ge,text:d,rows:ye,width:Wt,onEllipsis:kr,expanded:ie,measureDeps:[fe],miscDeps:[ze,ie,Re,D,me,fe,k].concat(ve(ir.map(y=>e[y])))},(y,V)=>bn(e,a(we,null,fe==="start"?jt(V):null,y.length>0&&V&&!ie&&_t?a("span",{key:"show-content","aria-hidden":!0},y):y,$r(V),fe==="start"?null:jt(V)))))))}),ar=En;var Rn=B((e,t)=>{let{ellipsis:o,children:r,...n}=e,s=E(()=>ae(o)?Fe(o,["expandable","rows"]):o,[o]);return a(ar,{ref:t,...n,ellipsis:s,component:"span"},r)}),sr=Rn;function Lt(e){return!e.defaultPrevented&&e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}var he=_(co);function lr(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 cr=le(void 0);function It({children:e,initialContext:t}){return i(cr,{value:t,children:e})}function At(){let e=Pt();return E(()=>lr(e),[e])}function Pt(){let e=ce(cr);if(!e)throw new Error("ZlooksShellProvider is required");return e}var dr=qe({Button:{textActiveBg:"transparent",textHoverBg:"transparent"}});var Ee=_(To),Cn=_(Ve),wn=_(go),pr=_(ho),re=_(yo),Nn=_(po),kn=_(xo),ot=_(vo),ee=_(sr);function ur({className:e,classNames:t={},style:o,size:r="middle",shape:n="round",variant:s="compact",onNavigate:c,onLogout:f}){let l=Pt().user,[p,d]=x(!1),[N,z]=x(!1),{message:u,modal:I}=So(),v=rt("zlooks-user-access-trigger",e,t.trigger),S=rt("zlooks-user-access-avatar",t.avatar),R=rt("zlooks-user-access-label",t.label),h=s==="avatar",A=Tn(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){Eo(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 b(T,j,D){!c||!Lt(T)||(T.preventDefault(),D(),c(j))}return l.status==="unavailable"?i(Dt,{children:i(he,{"aria-label":"\u8D26\u6237\u670D\u52A1\u6682\u4E0D\u53EF\u7528",className:v,disabled:!0,shape:k,size:r,style:C,type:"text",children:w(ot,{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(Dt,{children:i(kn,{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(wn,{style:{margin:0}}),w(re,{gap:2,style:{padding:8},vertical:!0,children:[i(he,{block:!0,href:l.accountHref,size:"large",style:{fontWeight:600,height:44,paddingInline:12},type:"text",onClick:T=>b(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(he,{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(he,{"aria-expanded":p,"aria-haspopup":"dialog","aria-label":`\u6253\u5F00${l.user.label}\u7684\u8D26\u6237\u4FE1\u606F`,className:v,shape:k,size:r,style:C,type:"text",children:w(ot,{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(Dt,{children:[i(he,{"aria-expanded":N,"aria-haspopup":"dialog","aria-label":"\u767B\u5F55",className:v,shape:k,size:r,style:C,type:"text",onClick:()=>z(!0),children:w(ot,{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(Nn,{centered:!0,destroyOnHidden:!0,footer:null,open:N,rootClassName:rt("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(ot,{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(pr,{description:"\u6682\u65F6\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",image:pr.PRESENTED_IMAGE_SIMPLE,style:{paddingBlock:24}}):l.loginMethods.map((T,j)=>i(he,{block:!0,href:T.href,onClick:D=>b(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 Dt({children:e}){let{mode:t}=Ne(),{resolvedMode:o,resolvedTheme:r}=xt(t),n=E(()=>({...r,cssVar:{key:`zlooks-user-access-${o}`},components:{...r.components,Button:{...r.components?.Button,...dr.Button}}}),[o,r]);return i(Cn,{theme:n,children:e})}function rt(...e){return e.filter(Boolean).join(" ")}function Tn(e,t){return t&&e==="small"?28:t&&e==="large"?48:t?40:e==="small"?20:e==="large"?28:24}var mr=le(void 0);function fr({children:e,initialConfig:t}){return i(mr,{value:t,children:e})}function gr(){return zn().value}function zn(){let e=ce(mr);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 $n({children:e,shell:t,site:o}){return i(yt,{children:i(It,{initialContext:t,children:i(fr,{initialConfig:o,children:i(On,{children:e})})})})}function On({children:e}){let t=At(),o=gr(),r=Ro(),n=qt();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(ur,{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{$n as default};
|