@yinuo-ngm/server 1.0.20 → 1.0.21
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/lib/app.js +0 -4
- package/lib/env.js +5 -1
- package/lib/plugins/success-handle.plugin.js +1 -1
- package/lib/plugins/ws/topics/nginx.ws.js +1 -1
- package/lib/plugins/ws/ws.context.js +3 -1
- package/lib/plugins/ws/ws.plugin.js +14 -2
- package/lib/routes/api-client/collection.routes.js +35 -35
- package/lib/routes/api-client/env.routes.js +12 -8
- package/lib/routes/api-client/history.routes.js +10 -5
- package/lib/routes/api-client/request.routes.js +14 -8
- package/lib/routes/api-client/route-mappers.d.ts +7 -0
- package/lib/routes/api-client/route-mappers.js +78 -0
- package/lib/routes/api-client/send.routes.js +12 -8
- package/lib/routes/config.routes.js +73 -49
- package/lib/routes/deps.route.js +47 -5
- package/lib/routes/nginx/nginx-config.routes.js +3 -3
- package/lib/routes/nginx/nginx-lifecycle.routes.js +14 -13
- package/lib/routes/nginx/nginx-module.routes.js +6 -6
- package/lib/routes/nginx/nginx-route.context.d.ts +16 -1
- package/lib/routes/nginx/nginx-route.context.js +136 -1
- package/lib/routes/nginx/nginx-server.routes.js +5 -5
- package/lib/routes/project.routes.js +90 -13
- package/lib/routes/sprite-browse.routes.js +17 -11
- package/lib/routes/sprite.routes.d.ts +1 -1
- package/lib/routes/sprite.routes.js +68 -11
- package/lib/routes/svn.routes.js +48 -14
- package/lib/routes/task.routes.js +99 -7
- package/package.json +7 -7
- package/www/3rdpartylicenses.txt +5 -5
- package/www/browser/{chunk-OZCK4XVV.js → chunk-2VJVGBXG.js} +1 -1
- package/www/browser/{chunk-FL6GDGHW.js → chunk-3ODVU46S.js} +1 -1
- package/www/browser/chunk-442QFABJ.js +1 -0
- package/www/browser/{chunk-WD2EKZQC.js → chunk-6J6G7JEP.js} +1 -1
- package/www/browser/{chunk-7U44RF5F.js → chunk-6UFDNETG.js} +1 -1
- package/www/browser/{chunk-75W3GVSO.js → chunk-7AKVG375.js} +1 -1
- package/www/browser/chunk-7GLWEFTM.js +1 -0
- package/www/browser/{chunk-DIJPUYIA.js → chunk-7QR6RHLA.js} +1 -1
- package/www/browser/{chunk-HJTXXSMC.js → chunk-CO3CQHKV.js} +1 -1
- package/www/browser/{chunk-3XNNQFWR.js → chunk-CPJTSA6E.js} +1 -1
- package/www/browser/chunk-DENFXXOY.js +1 -0
- package/www/browser/{chunk-HDNG236Q.js → chunk-HC5KLPHD.js} +1 -1
- package/www/browser/chunk-HJAP6WBI.js +1 -0
- package/www/browser/{chunk-N2PELLMM.js → chunk-JM6DCZP6.js} +7 -7
- package/www/browser/chunk-K6C5ZIV2.js +20 -0
- package/www/browser/chunk-M6NZ6C2R.js +2 -0
- package/www/browser/{chunk-RGOYDY7H.js → chunk-MBPB43C6.js} +1 -1
- package/www/browser/chunk-MPLGMTLT.js +3 -0
- package/www/browser/chunk-NNOWADVM.js +1 -0
- package/www/browser/{chunk-M4QRBV3K.js → chunk-NREWZQVN.js} +1 -1
- package/www/browser/{chunk-6YYNHZ2A.js → chunk-OUGN4APK.js} +1 -1
- package/www/browser/chunk-PB2LGZNW.js +1 -0
- package/www/browser/chunk-PDI3HSSH.js +4 -0
- package/www/browser/chunk-PUG3VNTI.js +3 -0
- package/www/browser/{chunk-QJP5F735.js → chunk-PY3AUTHC.js} +1 -1
- package/www/browser/{chunk-3M56F2S2.js → chunk-R4HSZU2J.js} +1 -1
- package/www/browser/{chunk-DE6E23ET.js → chunk-RKK4I2RT.js} +1 -1
- package/www/browser/chunk-RMIYLAEM.js +1 -0
- package/www/browser/chunk-RZA3IFQV.js +2 -0
- package/www/browser/{chunk-K7PESFPY.js → chunk-SD2HFD54.js} +1 -1
- package/www/browser/{chunk-BTQIUVTQ.js → chunk-SEJGGBE2.js} +1 -1
- package/www/browser/chunk-SSCUT2GF.js +1 -0
- package/www/browser/chunk-TCBOC5FF.js +1 -0
- package/www/browser/{chunk-AZ6SIMYH.js → chunk-TS5ZQYYY.js} +1 -1
- package/www/browser/chunk-TVJHI463.js +1 -0
- package/www/browser/{chunk-YNW4HEJO.js → chunk-TXAXE73U.js} +17 -17
- package/www/browser/{chunk-4X42HB6N.js → chunk-U2YWR3HF.js} +1 -1
- package/www/browser/{chunk-D2ODDESN.js → chunk-U3EUR236.js} +1 -1
- package/www/browser/chunk-UKCMUTYL.js +1 -0
- package/www/browser/{chunk-DLGJD6YU.js → chunk-UPOORT3S.js} +1 -1
- package/www/browser/chunk-VW3S7C2Z.js +1 -0
- package/www/browser/chunk-VZYJ3MSW.js +15 -0
- package/www/browser/{chunk-AELTP6YN.js → chunk-WCHN62X6.js} +1 -1
- package/www/browser/chunk-WWIPELAV.js +1 -0
- package/www/browser/{chunk-B3C35ET3.js → chunk-WYNERG74.js} +1 -1
- package/www/browser/{chunk-ZTDLWBW5.js → chunk-XJDJL3TQ.js} +1 -1
- package/www/browser/{chunk-EEDA5U4V.js → chunk-YV6QPLF5.js} +1 -1
- package/www/browser/{chunk-ONXBYGIG.js → chunk-YVRGRFK2.js} +1 -1
- package/www/browser/index.html +1 -1
- package/www/browser/main-7GYUOEJY.js +38 -0
- package/lib/plugins/api-client.plugin.d.ts +0 -3
- package/lib/plugins/api-client.plugin.js +0 -55
- package/lib/plugins/nginx.binding.store.d.ts +0 -4
- package/lib/plugins/nginx.binding.store.js +0 -39
- package/lib/plugins/nginx.plugin.d.ts +0 -3
- package/lib/plugins/nginx.plugin.js +0 -23
- package/www/browser/chunk-2L7NUOMX.js +0 -2
- package/www/browser/chunk-2NZJ7CN2.js +0 -20
- package/www/browser/chunk-3CM4SKDO.js +0 -15
- package/www/browser/chunk-3OHBKMAA.js +0 -1
- package/www/browser/chunk-4LBSLURA.js +0 -1
- package/www/browser/chunk-5DYX4DUX.js +0 -11
- package/www/browser/chunk-6SYVDN5L.js +0 -1
- package/www/browser/chunk-AMXRL4GR.js +0 -1
- package/www/browser/chunk-AV2ZODEH.js +0 -1
- package/www/browser/chunk-CN5J4WNO.js +0 -1
- package/www/browser/chunk-FK6Z4HLL.js +0 -1
- package/www/browser/chunk-FXCG34QS.js +0 -1
- package/www/browser/chunk-H5HGMOE6.js +0 -1
- package/www/browser/chunk-HB3HECPD.js +0 -1
- package/www/browser/chunk-HUMCWAKJ.js +0 -3
- package/www/browser/chunk-IKB3EQCP.js +0 -2
- package/www/browser/chunk-OSBDR36P.js +0 -1
- package/www/browser/chunk-XLFHB7RS.js +0 -3
- package/www/browser/main-N64WJCHX.js +0 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ea as Z,Fa as q,Ga as H,Ha as J,L,a as G,mb as K,sa as W,ta as M}from"./chunk-VZYJ3MSW.js";import{Da as k,Fb as B,Gb as j,Gc as P,Jc as T,Kc as g,Lb as f,Oa as F,Wb as c,Yb as s,bc as p,cc as d,dc as _,ec as N,f as I,ic as x,jc as h,kc as R,lc as w,nb as a,oa as E,r as A,rc as D,s as u,sa as S,sb as V,uc as o,ud as U,ya as b,yd as y,za as v}from"./chunk-4BRW6LCZ.js";function $(n,t){n&1&&R(0)}function nn(n,t){if(n&1&&f(0,$,1,0,"ng-container",7),n&2){let e=o(3);p("nzStringTemplateOutlet",e.nzIcon)}}function en(n,t){if(n&1&&N(0,"nz-icon",6),n&2){let e=o(3);p("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function tn(n,t){if(n&1&&(d(0,"div",2),c(1,nn,1,1,"ng-container")(2,en,1,2,"nz-icon",6),_()),n&2){let e=o(2);a(),s(e.nzIcon?1:2)}}function on(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(4);a(),g(e.nzMessage)}}function an(n,t){if(n&1&&(d(0,"span",8),f(1,on,2,1,"ng-container",7),_()),n&2){let e=o(3);a(),p("nzStringTemplateOutlet",e.nzMessage)}}function ln(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(4);a(),g(e.nzDescription)}}function rn(n,t){if(n&1&&(d(0,"span",9),f(1,ln,2,1,"ng-container",7),_()),n&2){let e=o(3);a(),p("nzStringTemplateOutlet",e.nzDescription)}}function cn(n,t){if(n&1&&(d(0,"div",3),c(1,an,2,1,"span",8),c(2,rn,2,1,"span",9),_()),n&2){let e=o(2);a(),s(e.nzMessage?1:-1),a(),s(e.nzDescription?2:-1)}}function sn(n,t){if(n&1&&(x(0),T(1),h()),n&2){let e=o(3);a(),g(e.nzAction)}}function dn(n,t){if(n&1&&(d(0,"div",4),f(1,sn,2,1,"ng-container",7),_()),n&2){let e=o(2);a(),p("nzStringTemplateOutlet",e.nzAction)}}function _n(n,t){if(n&1&&(x(0),d(1,"span",12),T(2),_(),h()),n&2){let e=o(4);a(2),g(e.nzCloseText)}}function pn(n,t){if(n&1&&f(0,_n,3,1,"ng-container",7),n&2){let e=o(3);p("nzStringTemplateOutlet",e.nzCloseText)}}function zn(n,t){n&1&&N(0,"nz-icon",11)}function mn(n,t){if(n&1){let e=w();d(0,"button",10),D("click",function(){b(e);let C=o(2);return v(C.closeAlert())}),c(1,pn,1,1,"ng-container")(2,zn,1,0,"nz-icon",11),_()}if(n&2){let e=o(2);a(),s(e.nzCloseText?1:2)}}function Cn(n,t){if(n&1){let e=w();d(0,"div",1),D("@slideAlertMotion.done",function(){b(e);let C=o();return v(C.onFadeAnimationDone())}),c(1,tn,3,1,"div",2),c(2,cn,3,2,"div",3),c(3,dn,2,1,"div",4),c(4,mn,3,1,"button",5),_()}if(n&2){let e=o();P("ant-alert-rtl",e.dir==="rtl")("ant-alert-success",e.nzType==="success")("ant-alert-info",e.nzType==="info")("ant-alert-warning",e.nzType==="warning")("ant-alert-error",e.nzType==="error")("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),p("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),a(),s(e.nzShowIcon?1:-1),a(),s(e.nzMessage||e.nzDescription?2:-1),a(),s(e.nzAction?3:-1),a(),s(e.nzCloseable||e.nzCloseText?4:-1)}}var Q="alert",fn=(()=>{var l;let n,t=[],e=[],m,C=[],O=[];return l=class{cdr=S(U);directionality=S(G);destroyRef=S(k);_nzModuleName=Q;nzAction=null;nzCloseText=null;nzIconType=null;nzMessage=null;nzDescription=null;nzType="info";nzCloseable=u(this,t,!1);nzShowIcon=(u(this,e),u(this,C,!1));nzBanner=(u(this,O),!1);nzNoAnimation=!1;nzIcon=null;nzOnClose=new V;closed=!1;iconTheme="fill";inferredIconType="info-circle";dir="ltr";isTypeSet=!1;isShowIconSet=!1;constructor(){W(Q,()=>this.cdr.markForCheck())}ngOnInit(){this.directionality.change?.pipe(L(this.destroyRef)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(r){let{nzShowIcon:i,nzDescription:z,nzType:X,nzBanner:Y}=r;if(i&&(this.isShowIconSet=!0),X)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle";break}z&&(this.iconTheme=this.nzDescription?"outline":"fill"),Y&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}},(()=>{let r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[M()],m=[M()],A(null,null,n,{kind:"field",name:"nzCloseable",static:!1,private:!1,access:{has:i=>"nzCloseable"in i,get:i=>i.nzCloseable,set:(i,z)=>{i.nzCloseable=z}},metadata:r},t,e),A(null,null,m,{kind:"field",name:"nzShowIcon",static:!1,private:!1,access:{has:i=>"nzShowIcon"in i,get:i=>i.nzShowIcon,set:(i,z)=>{i.nzShowIcon=z}},metadata:r},C,O),r&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})})(),I(l,"\u0275fac",function(i){return new(i||l)}),I(l,"\u0275cmp",B({type:l,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",y],nzShowIcon:[2,"nzShowIcon","nzShowIcon",y],nzBanner:[2,"nzBanner","nzBanner",y],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",y],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[F],decls:1,vars:1,consts:[[1,"ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],[3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nzType","close"],[1,"ant-alert-close-text"]],template:function(i,z){i&1&&c(0,Cn,5,24,"div",0),i&2&&s(z.closed?-1:0)},dependencies:[q,Z,J,H],encapsulation:2,data:{animation:[K]},changeDetection:0})),l})(),kn=(()=>{class n{static \u0275fac=function(m){return new(m||n)};static \u0275mod=j({type:n});static \u0275inj=E({imports:[fn]})}return n})();export{fn as a,kn as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Oe,b as Ze}from"./chunk-4X42HB6N.js";import{E as Te,G as Re,Ga as Fe,H as Ne,Ha as Me,L as I,U as T,a as ae,kb as We,r as De,ra as V,ta as A,va as R,x as Ee,y as xe}from"./chunk-3CM4SKDO.js";import{A as Pe}from"./chunk-KRYMOHYF.js";import{$b as X,Ac as ne,Ba as B,Ca as U,Da as Q,Fb as K,Fc as L,Gb as ze,Gc as x,Hb as ve,I as G,Jc as be,M,Mc as ke,Oa as de,Ra as ge,S as ce,Ub as we,Wb as Z,Yb as W,_b as q,a as b,ac as J,bc as ee,cc as g,dc as _,ea as me,ec as C,f as j,fa as O,kb as fe,l as F,lc as H,na as he,nb as z,nc as ye,oa as pe,r as E,rc as k,s as u,sa as s,sb as Y,sc as _e,tb as ue,uc as v,ud as oe,vc as Ce,wc as Se,ya as P,yc as te,yd as Ie,za as D,zc as ie}from"./chunk-4BRW6LCZ.js";var Be=["*"],Ue=["imgRef"],Qe=["imagePreviewWrapper"];function Ye(t,r){if(t&1){let e=H();g(0,"div",13),k("click",function(i){P(e);let o=v();return D(o.onSwitchLeft(i))}),C(1,"nz-icon",14),_(),g(2,"div",15),k("click",function(i){P(e);let o=v();return D(o.onSwitchRight(i))}),C(3,"nz-icon",16),_()}if(t&2){let e=v();x("ant-image-preview-switch-left-disabled",e.index<=0),z(2),x("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}function Ke(t,r){if(t&1&&(g(0,"li",5),be(1),_()),t&2){let e=v();z(),ke("",e.index+1," / ",e.images.length)}}function qe(t,r){if(t&1){let e=H();g(0,"li",17),k("click",function(){let i=P(e).$implicit;return D(i.onClick())}),C(1,"nz-icon",18),_()}if(t&2){let e=r.$implicit,n=v();x("ant-image-preview-operations-operation-disabled",n.zoomOutDisabled&&e.type==="zoomOut"),z(),ee("nzType",e.icon)("nzRotate",e.rotate??0)}}function Xe(t,r){if(t&1&&C(0,"img",20,1),t&2){let e=v().$implicit,n=v();L("width",e.width)("height",e.height)("transform",n.previewImageTransform),we("src",n.sanitizerResourceUrl(e.src),fe)("srcset",e.srcset)("alt",e.alt)}}function Je(t,r){if(t&1&&Z(0,Xe,2,9,"img",19),t&2){let e=r.$index,n=v();W(e===n.index?0:-1)}}var et=(()=>{class t{nzScaleStep=null;images=[];addImage(e){this.images.push(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=K({type:t,selectors:[["nz-image-group"]],inputs:{nzScaleStep:"nzScaleStep"},exportAs:["nzImageGroup"],ngContentSelectors:Be,decls:1,vars:0,template:function(n,i){n&1&&(Ce(),Se(0))},encapsulation:2,changeDetection:0})}return t})(),$e="image",N=class{nzKeyboard=!0;nzNoAnimation=!1;nzMaskClosable=!0;nzCloseOnNavigation=!0;nzZIndex;nzZoom;nzRotate;nzFlipHorizontally;nzFlipVertically;nzScaleStep;nzDirection};function tt(t){let r={};return t.width<=t.clientWidth&&t.height<=t.clientHeight&&(r={x:0,y:0}),(t.width>t.clientWidth||t.height>t.clientHeight)&&(r={x:Ve(t.left,t.width,t.clientWidth),y:Ve(t.top,t.height,t.clientHeight)}),r}function it(t){let r=t.getBoundingClientRect(),e=document.documentElement;return{left:r.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}function nt(){let t=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:r}}function Ve(t,r,e){let n=t+r,i=(r-e)/2,o=null;return r>e?(t>0&&(o=i),t<0&&n<e&&(o=-i)):(t<0||n>e)&&(o=t<0?i:-i),o}var Ae={x:0,y:0},se=.5,ot=1,at=0,je=(()=>{class t{document=s(U);ngZone=s(ue);cdr=s(oe);nzConfigService=s(A);config=s(N);sanitizer=s(Pe);destroyRef=s(Q);_defaultNzZoom=ot;_defaultNzScaleStep=se;_defaultNzRotate=at;images=[];index=0;isDragging=!1;visible=!0;animationStateChanged=new Y;scaleStepMap=new Map;previewImageTransform="";previewImageWrapperTransform="";operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"},{icon:"swap",onClick:()=>{this.onHorizontalFlip()},type:"flipHorizontally"},{icon:"swap",onClick:()=>{this.onVerticalFlip()},type:"flipVertically",rotate:90}];zoomOutDisabled=!1;position=b({},Ae);previewRef;closeClick=new Y;imageRef;imagePreviewWrapper;zoom=this.config.nzZoom??this._defaultNzZoom;rotate=this.config.nzRotate??this._defaultNzRotate;scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep;flipHorizontally=this.config.nzFlipHorizontally??!1;flipVertically=this.config.nzFlipVertically??!1;get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){let e=this.nzConfigService.getConfigForComponent($e)||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(){this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){V(this.imagePreviewWrapper.nativeElement,"mousedown").pipe(I(this.destroyRef)).subscribe(()=>{this.isDragging=!0}),V(this.imagePreviewWrapper.nativeElement,"wheel").pipe(I(this.destroyRef)).subscribe(e=>{this.ngZone.run(()=>this.wheelZoomEventHandler(e))}),V(this.document,"keydown").pipe(M(e=>e.keyCode===27),I(this.destroyRef)).subscribe(()=>{this.ngZone.run(()=>{this.onClose(),this.markForCheck()})})}setImages(e,n){n&&(this.scaleStepMap=n),this.images=e,this.markForCheck()}switchTo(e){this.index=e,this.markForCheck()}next(){this.index<this.images.length-1&&(this.reset(),this.index++,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}prev(){this.index>0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.visible=!1,this.closeClick.emit()}onZoomIn(){let e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom+=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled()}onZoomOut(){if(this.zoom>1){let e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom-=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.zoom<=1&&this.reCenterImage()}}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onHorizontalFlip(){this.flipHorizontally=!this.flipHorizontally,this.updatePreviewImageTransform()}onVerticalFlip(){this.flipVertically=!this.flipVertically,this.updatePreviewImageTransform()}wheelZoomEventHandler(e){e.preventDefault(),e.stopPropagation(),this.handlerImageTransformationWhileZoomingWithMouse(e,e.deltaY),this.handleImageScaleWhileZoomingWithMouse(e.deltaY),this.updatePreviewImageWrapperTransform(),this.updatePreviewImageTransform(),this.markForCheck()}onAnimationStart(e){this.animationStateChanged.emit(e)}onAnimationDone(e){this.animationStateChanged.emit(e)}onDragEnd(e){this.isDragging=!1;let n=this.imageRef.nativeElement.offsetWidth*this.zoom,i=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:o,top:m}=it(this.imageRef.nativeElement),{width:c,height:f}=nt(),S=this.rotate%180!==0,y=tt({width:S?i:n,height:S?n:i,left:o,top:m,clientWidth:c,clientHeight:f});T(y.x)||T(y.y)?this.position=b(b({},this.position),y):!T(y.x)&&!T(y.y)&&(this.position={x:e.source.getFreeDragPosition().x,y:e.source.getFreeDragPosition().y})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom*(this.flipHorizontally?-1:1)}, ${this.zoom*(this.flipVertically?-1:1)}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}handlerImageTransformationWhileZoomingWithMouse(e,n){let i,o=this.imageRef.nativeElement,c=getComputedStyle(o).transform.match(/matrix.*\((.+)\)/);c?i=+c[1].split(", ")[0]:i=this.zoom;let f=(e.clientX-o.getBoundingClientRect().x)/i,S=(e.clientY-o.getBoundingClientRect().y)/i,w=n<0?this.scaleStep/2:-this.scaleStep/2;this.position.x+=-f*w*2+o.offsetWidth*w,this.position.y+=-S*w*2+o.offsetHeight*w}handleImageScaleWhileZoomingWithMouse(e){this.isZoomedInWithMouseWheel(e)?this.onZoomIn():this.onZoomOut(),this.zoom<=1&&this.reCenterImage()}isZoomedInWithMouseWheel(e){return e<0}reset(){this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.flipHorizontally=!1,this.flipVertically=!1,this.reCenterImage()}reCenterImage(){this.position=b({},Ae)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=K({type:t,selectors:[["nz-image-preview"]],viewQuery:function(n,i){if(n&1&&(te(Ue,5),te(Qe,7)),n&2){let o;ie(o=ne())&&(i.imageRef=o.first),ie(o=ne())&&(i.imagePreviewWrapper=o.first)}},hostAttrs:[1,"ant-image-preview-root"],hostVars:6,hostBindings:function(n,i){n&1&&_e("@fadeMotion.start",function(m){return i.onAnimationStart(m)})("@fadeMotion.done",function(m){return i.onAnimationDone(m)}),n&2&&(ye("@.disabled",i.config.nzNoAnimation)("@fadeMotion",i.visible?"enter":"leave"),L("z-index",i.config.nzZIndex),x("ant-image-preview-moving",i.isDragging))},exportAs:["nzImagePreview"],decls:17,vars:5,consts:[["imagePreviewWrapper",""],["imgRef",""],[1,"ant-image-preview-mask"],[1,"ant-image-preview-operations-wrapper"],[1,"ant-image-preview-operations"],[1,"ant-image-preview-operations-progress"],[1,"ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled"],["tabindex","-1",1,"ant-image-preview-wrap",3,"click"],["role","dialog","aria-modal","true",1,"ant-image-preview"],["tabindex","0","aria-hidden","true",1,"ant-image-preview-focus-trap"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragEnded","cdkDragFreeDragPosition"],[1,"ant-image-preview-switch-left",3,"click"],["nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nzType","right","nzTheme","outline"],[1,"ant-image-preview-operations-operation",3,"click"],["nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType","nzRotate"],["cdkDragHandle","",1,"ant-image-preview-img",3,"width","height","transform"],["cdkDragHandle","",1,"ant-image-preview-img"]],template:function(n,i){if(n&1){let o=H();C(0,"div",2),g(1,"div",3),Z(2,Ye,4,4),g(3,"ul",4),Z(4,Ke,2,2,"li",5),X(5,qe,2,4,"li",6,q),_()(),g(7,"div",7),k("click",function(c){return P(o),D(i.maskClosable&&c.target===c.currentTarget&&i.onClose())}),g(8,"div",8),C(9,"div",9),g(10,"div",10)(11,"div",11)(12,"div",12,0),k("cdkDragEnded",function(c){return P(o),D(i.onDragEnd(c))}),X(14,Je,1,1,null,null,q),_()()(),C(16,"div",9),_()()}n&2&&(z(2),W(i.images.length>1?2:-1),z(2),W(i.images.length>1?4:-1),z(),J(i.operations),z(7),L("transform",i.previewImageWrapperTransform),ee("cdkDragFreeDragPosition",i.position),z(2),J(i.images))},dependencies:[Me,Fe,Oe,Ze],encapsulation:2,data:{animation:[We]},changeDetection:0})}return t})(),le=class{previewInstance;config;overlayRef;destroy$=new F;constructor(r,e,n){this.previewInstance=r,this.config=e,this.overlayRef=n,n.keydownEvents().pipe(M(i=>this.config.nzKeyboard&&(i.keyCode===27||i.keyCode===37||i.keyCode===39)&&!Ee(i))).subscribe(i=>{i.preventDefault(),i.keyCode===27&&r.onClose(),i.keyCode===37&&this.prev(),i.keyCode===39&&this.next()}),n.detachments().subscribe(()=>{this.overlayRef.dispose()}),r.closeClick.pipe(ce(1),me(()=>r.animationStateChanged),M(i=>i.phaseName==="done"),O(this.destroy$)).subscribe(()=>{this.close()})}switchTo(r){this.previewInstance.switchTo(r)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.destroy$.next(),this.overlayRef.dispose()}},Ge=(()=>{class t{injector=s(B);nzConfigService=s(A);directionality=s(ae);preview(e,n,i){return this.display(e,n,i)}display(e,n,i){let o=b(b({},new N),n??{}),m=this.createOverlay(o),c=this.attachPreviewComponent(m,o);c.setImages(e,i);let f=new le(c,o,m);return c.previewRef=f,f}attachPreviewComponent(e,n){let i=B.create({parent:this.injector,providers:[{provide:Te,useValue:e},{provide:N,useValue:n}]}),o=new De(je,null,i);return e.attach(o).instance}createOverlay(e){let n=this.nzConfigService.getConfigForComponent($e)||{};return Ne(this.injector,{scrollStrategy:xe(this.injector),positionStrategy:Re(this.injector),disposeOnNavigation:e.nzCloseOnNavigation??n.nzCloseOnNavigation??!0,direction:e.nzDirection||n.nzDirection||this.directionality.value})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})(),rt="image",Nt=(()=>{var p;let t,r=[],e=[],n,i=[],o=[],m,c=[],f=[],S,w=[],y=[];return p=class{document=s(U);nzConfigService=s(A);elementRef=s(ge);nzImageService=s(Ge);cdr=s(oe);directionality=s(ae);destroyRef=s(Q);_nzModuleName=rt;nzSrc="";nzSrcset="";nzDisablePreview=u(this,r,!1);nzFallback=(u(this,e),u(this,i,null));nzPlaceholder=(u(this,o),u(this,c,null));nzScaleStep=(u(this,f),u(this,w,null));dir=u(this,y);backLoadImage;status="normal";backLoadDestroy$=new F;parentGroup=s(et,{optional:!0});get previewable(){return!this.nzDisablePreview&&this.status!=="error"}ngOnInit(){this.backLoad(),this.parentGroup&&this.parentGroup.addImage(this),this.directionality&&(this.directionality.change?.pipe(I(this.destroyRef)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value)}onPreview(){if(this.previewable)if(this.parentGroup){let l=this.parentGroup.images.filter(d=>d.previewable),a=l.map(d=>({src:d.nzSrc,srcset:d.nzSrcset})),h=l.findIndex(d=>this===d),$=new Map;l.forEach(d=>{$.set(d.nzSrc??d.nzSrcset,d.nzScaleStep??this.parentGroup.nzScaleStep??this.nzScaleStep??se)}),this.nzImageService.preview(a,{nzDirection:this.dir},$).switchTo(h)}else{let l=[{src:this.nzSrc,srcset:this.nzSrcset}];this.nzImageService.preview(l,{nzDirection:this.dir,nzScaleStep:this.nzScaleStep??se})}}getElement(){return this.elementRef}ngOnChanges(l){let{nzSrc:a}=l;a&&(this.getElement().nativeElement.src=a.currentValue,this.backLoad())}backLoad(){this.backLoadImage=this.document.createElement("img"),this.backLoadImage.src=this.nzSrc,this.backLoadImage.srcset=this.nzSrcset,this.status="loading",this.backLoadDestroy$.next(),this.backLoadDestroy$.complete(),this.backLoadDestroy$=new F,this.backLoadImage.complete?(this.status="normal",this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset):(this.nzPlaceholder?(this.getElement().nativeElement.src=this.nzPlaceholder,this.getElement().nativeElement.srcset=""):(this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset),G(this.backLoadImage,"load").pipe(O(this.backLoadDestroy$),I(this.destroyRef)).subscribe(()=>{this.status="normal",this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset}),G(this.backLoadImage,"error").pipe(O(this.backLoadDestroy$),I(this.destroyRef)).subscribe(()=>{this.status="error",this.nzFallback&&(this.getElement().nativeElement.src=this.nzFallback,this.getElement().nativeElement.srcset="")}))}},(()=>{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[R()],n=[R()],m=[R()],S=[R()],E(null,null,t,{kind:"field",name:"nzDisablePreview",static:!1,private:!1,access:{has:a=>"nzDisablePreview"in a,get:a=>a.nzDisablePreview,set:(a,h)=>{a.nzDisablePreview=h}},metadata:l},r,e),E(null,null,n,{kind:"field",name:"nzFallback",static:!1,private:!1,access:{has:a=>"nzFallback"in a,get:a=>a.nzFallback,set:(a,h)=>{a.nzFallback=h}},metadata:l},i,o),E(null,null,m,{kind:"field",name:"nzPlaceholder",static:!1,private:!1,access:{has:a=>"nzPlaceholder"in a,get:a=>a.nzPlaceholder,set:(a,h)=>{a.nzPlaceholder=h}},metadata:l},c,f),E(null,null,S,{kind:"field",name:"nzScaleStep",static:!1,private:!1,access:{has:a=>"nzScaleStep"in a,get:a=>a.nzScaleStep,set:(a,h)=>{a.nzScaleStep=h}},metadata:l},w,y),l&&Object.defineProperty(p,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})(),j(p,"\u0275fac",function(a){return new(a||p)}),j(p,"\u0275dir",ve({type:p,selectors:[["img","nz-image",""]],hostBindings:function(a,h){a&1&&k("click",function(){return h.onPreview()})},inputs:{nzSrc:"nzSrc",nzSrcset:"nzSrcset",nzDisablePreview:[2,"nzDisablePreview","nzDisablePreview",Ie],nzFallback:"nzFallback",nzPlaceholder:"nzPlaceholder",nzScaleStep:"nzScaleStep"},exportAs:["nzImage"],features:[de]})),p})(),Ft=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ze({type:t});static \u0275inj=pe({providers:[Ge],imports:[je]})}return t})();export{et as a,Ge as b,Nt as c,Ft as d};
|
|
1
|
+
import{a as Oe,b as Ze}from"./chunk-U2YWR3HF.js";import{E as Te,Ea as Fe,Fa as Me,G as Re,H as Ne,L as I,U as T,a as ae,ib as We,pa as V,r as De,ra as A,ta as R,x as Ee,y as xe}from"./chunk-VZYJ3MSW.js";import{A as Pe}from"./chunk-KRYMOHYF.js";import{$b as X,Ac as ne,Ba as B,Ca as U,Da as Q,Fb as K,Fc as L,Gb as ze,Gc as x,Hb as ve,I as G,Jc as be,M,Mc as ke,Oa as de,Ra as ge,S as ce,Ub as we,Wb as Z,Yb as W,_b as q,a as b,ac as J,bc as ee,cc as g,dc as _,ea as me,ec as C,f as j,fa as O,kb as fe,l as F,lc as H,na as he,nb as z,nc as ye,oa as pe,r as E,rc as k,s as u,sa as s,sb as Y,sc as _e,tb as ue,uc as v,ud as oe,vc as Ce,wc as Se,ya as P,yc as te,yd as Ie,za as D,zc as ie}from"./chunk-4BRW6LCZ.js";var Be=["*"],Ue=["imgRef"],Qe=["imagePreviewWrapper"];function Ye(t,r){if(t&1){let e=H();g(0,"div",13),k("click",function(i){P(e);let o=v();return D(o.onSwitchLeft(i))}),C(1,"nz-icon",14),_(),g(2,"div",15),k("click",function(i){P(e);let o=v();return D(o.onSwitchRight(i))}),C(3,"nz-icon",16),_()}if(t&2){let e=v();x("ant-image-preview-switch-left-disabled",e.index<=0),z(2),x("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}function Ke(t,r){if(t&1&&(g(0,"li",5),be(1),_()),t&2){let e=v();z(),ke("",e.index+1," / ",e.images.length)}}function qe(t,r){if(t&1){let e=H();g(0,"li",17),k("click",function(){let i=P(e).$implicit;return D(i.onClick())}),C(1,"nz-icon",18),_()}if(t&2){let e=r.$implicit,n=v();x("ant-image-preview-operations-operation-disabled",n.zoomOutDisabled&&e.type==="zoomOut"),z(),ee("nzType",e.icon)("nzRotate",e.rotate??0)}}function Xe(t,r){if(t&1&&C(0,"img",20,1),t&2){let e=v().$implicit,n=v();L("width",e.width)("height",e.height)("transform",n.previewImageTransform),we("src",n.sanitizerResourceUrl(e.src),fe)("srcset",e.srcset)("alt",e.alt)}}function Je(t,r){if(t&1&&Z(0,Xe,2,9,"img",19),t&2){let e=r.$index,n=v();W(e===n.index?0:-1)}}var et=(()=>{class t{nzScaleStep=null;images=[];addImage(e){this.images.push(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=K({type:t,selectors:[["nz-image-group"]],inputs:{nzScaleStep:"nzScaleStep"},exportAs:["nzImageGroup"],ngContentSelectors:Be,decls:1,vars:0,template:function(n,i){n&1&&(Ce(),Se(0))},encapsulation:2,changeDetection:0})}return t})(),$e="image",N=class{nzKeyboard=!0;nzNoAnimation=!1;nzMaskClosable=!0;nzCloseOnNavigation=!0;nzZIndex;nzZoom;nzRotate;nzFlipHorizontally;nzFlipVertically;nzScaleStep;nzDirection};function tt(t){let r={};return t.width<=t.clientWidth&&t.height<=t.clientHeight&&(r={x:0,y:0}),(t.width>t.clientWidth||t.height>t.clientHeight)&&(r={x:Ve(t.left,t.width,t.clientWidth),y:Ve(t.top,t.height,t.clientHeight)}),r}function it(t){let r=t.getBoundingClientRect(),e=document.documentElement;return{left:r.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}function nt(){let t=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:r}}function Ve(t,r,e){let n=t+r,i=(r-e)/2,o=null;return r>e?(t>0&&(o=i),t<0&&n<e&&(o=-i)):(t<0||n>e)&&(o=t<0?i:-i),o}var Ae={x:0,y:0},se=.5,ot=1,at=0,je=(()=>{class t{document=s(U);ngZone=s(ue);cdr=s(oe);nzConfigService=s(A);config=s(N);sanitizer=s(Pe);destroyRef=s(Q);_defaultNzZoom=ot;_defaultNzScaleStep=se;_defaultNzRotate=at;images=[];index=0;isDragging=!1;visible=!0;animationStateChanged=new Y;scaleStepMap=new Map;previewImageTransform="";previewImageWrapperTransform="";operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"},{icon:"swap",onClick:()=>{this.onHorizontalFlip()},type:"flipHorizontally"},{icon:"swap",onClick:()=>{this.onVerticalFlip()},type:"flipVertically",rotate:90}];zoomOutDisabled=!1;position=b({},Ae);previewRef;closeClick=new Y;imageRef;imagePreviewWrapper;zoom=this.config.nzZoom??this._defaultNzZoom;rotate=this.config.nzRotate??this._defaultNzRotate;scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep;flipHorizontally=this.config.nzFlipHorizontally??!1;flipVertically=this.config.nzFlipVertically??!1;get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){let e=this.nzConfigService.getConfigForComponent($e)||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(){this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){V(this.imagePreviewWrapper.nativeElement,"mousedown").pipe(I(this.destroyRef)).subscribe(()=>{this.isDragging=!0}),V(this.imagePreviewWrapper.nativeElement,"wheel").pipe(I(this.destroyRef)).subscribe(e=>{this.ngZone.run(()=>this.wheelZoomEventHandler(e))}),V(this.document,"keydown").pipe(M(e=>e.keyCode===27),I(this.destroyRef)).subscribe(()=>{this.ngZone.run(()=>{this.onClose(),this.markForCheck()})})}setImages(e,n){n&&(this.scaleStepMap=n),this.images=e,this.markForCheck()}switchTo(e){this.index=e,this.markForCheck()}next(){this.index<this.images.length-1&&(this.reset(),this.index++,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}prev(){this.index>0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.visible=!1,this.closeClick.emit()}onZoomIn(){let e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom+=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled()}onZoomOut(){if(this.zoom>1){let e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom-=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.zoom<=1&&this.reCenterImage()}}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onHorizontalFlip(){this.flipHorizontally=!this.flipHorizontally,this.updatePreviewImageTransform()}onVerticalFlip(){this.flipVertically=!this.flipVertically,this.updatePreviewImageTransform()}wheelZoomEventHandler(e){e.preventDefault(),e.stopPropagation(),this.handlerImageTransformationWhileZoomingWithMouse(e,e.deltaY),this.handleImageScaleWhileZoomingWithMouse(e.deltaY),this.updatePreviewImageWrapperTransform(),this.updatePreviewImageTransform(),this.markForCheck()}onAnimationStart(e){this.animationStateChanged.emit(e)}onAnimationDone(e){this.animationStateChanged.emit(e)}onDragEnd(e){this.isDragging=!1;let n=this.imageRef.nativeElement.offsetWidth*this.zoom,i=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:o,top:m}=it(this.imageRef.nativeElement),{width:c,height:f}=nt(),S=this.rotate%180!==0,y=tt({width:S?i:n,height:S?n:i,left:o,top:m,clientWidth:c,clientHeight:f});T(y.x)||T(y.y)?this.position=b(b({},this.position),y):!T(y.x)&&!T(y.y)&&(this.position={x:e.source.getFreeDragPosition().x,y:e.source.getFreeDragPosition().y})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom*(this.flipHorizontally?-1:1)}, ${this.zoom*(this.flipVertically?-1:1)}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}handlerImageTransformationWhileZoomingWithMouse(e,n){let i,o=this.imageRef.nativeElement,c=getComputedStyle(o).transform.match(/matrix.*\((.+)\)/);c?i=+c[1].split(", ")[0]:i=this.zoom;let f=(e.clientX-o.getBoundingClientRect().x)/i,S=(e.clientY-o.getBoundingClientRect().y)/i,w=n<0?this.scaleStep/2:-this.scaleStep/2;this.position.x+=-f*w*2+o.offsetWidth*w,this.position.y+=-S*w*2+o.offsetHeight*w}handleImageScaleWhileZoomingWithMouse(e){this.isZoomedInWithMouseWheel(e)?this.onZoomIn():this.onZoomOut(),this.zoom<=1&&this.reCenterImage()}isZoomedInWithMouseWheel(e){return e<0}reset(){this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.flipHorizontally=!1,this.flipVertically=!1,this.reCenterImage()}reCenterImage(){this.position=b({},Ae)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=K({type:t,selectors:[["nz-image-preview"]],viewQuery:function(n,i){if(n&1&&(te(Ue,5),te(Qe,7)),n&2){let o;ie(o=ne())&&(i.imageRef=o.first),ie(o=ne())&&(i.imagePreviewWrapper=o.first)}},hostAttrs:[1,"ant-image-preview-root"],hostVars:6,hostBindings:function(n,i){n&1&&_e("@fadeMotion.start",function(m){return i.onAnimationStart(m)})("@fadeMotion.done",function(m){return i.onAnimationDone(m)}),n&2&&(ye("@.disabled",i.config.nzNoAnimation)("@fadeMotion",i.visible?"enter":"leave"),L("z-index",i.config.nzZIndex),x("ant-image-preview-moving",i.isDragging))},exportAs:["nzImagePreview"],decls:17,vars:5,consts:[["imagePreviewWrapper",""],["imgRef",""],[1,"ant-image-preview-mask"],[1,"ant-image-preview-operations-wrapper"],[1,"ant-image-preview-operations"],[1,"ant-image-preview-operations-progress"],[1,"ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled"],["tabindex","-1",1,"ant-image-preview-wrap",3,"click"],["role","dialog","aria-modal","true",1,"ant-image-preview"],["tabindex","0","aria-hidden","true",1,"ant-image-preview-focus-trap"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragEnded","cdkDragFreeDragPosition"],[1,"ant-image-preview-switch-left",3,"click"],["nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nzType","right","nzTheme","outline"],[1,"ant-image-preview-operations-operation",3,"click"],["nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType","nzRotate"],["cdkDragHandle","",1,"ant-image-preview-img",3,"width","height","transform"],["cdkDragHandle","",1,"ant-image-preview-img"]],template:function(n,i){if(n&1){let o=H();C(0,"div",2),g(1,"div",3),Z(2,Ye,4,4),g(3,"ul",4),Z(4,Ke,2,2,"li",5),X(5,qe,2,4,"li",6,q),_()(),g(7,"div",7),k("click",function(c){return P(o),D(i.maskClosable&&c.target===c.currentTarget&&i.onClose())}),g(8,"div",8),C(9,"div",9),g(10,"div",10)(11,"div",11)(12,"div",12,0),k("cdkDragEnded",function(c){return P(o),D(i.onDragEnd(c))}),X(14,Je,1,1,null,null,q),_()()(),C(16,"div",9),_()()}n&2&&(z(2),W(i.images.length>1?2:-1),z(2),W(i.images.length>1?4:-1),z(),J(i.operations),z(7),L("transform",i.previewImageWrapperTransform),ee("cdkDragFreeDragPosition",i.position),z(2),J(i.images))},dependencies:[Me,Fe,Oe,Ze],encapsulation:2,data:{animation:[We]},changeDetection:0})}return t})(),le=class{previewInstance;config;overlayRef;destroy$=new F;constructor(r,e,n){this.previewInstance=r,this.config=e,this.overlayRef=n,n.keydownEvents().pipe(M(i=>this.config.nzKeyboard&&(i.keyCode===27||i.keyCode===37||i.keyCode===39)&&!Ee(i))).subscribe(i=>{i.preventDefault(),i.keyCode===27&&r.onClose(),i.keyCode===37&&this.prev(),i.keyCode===39&&this.next()}),n.detachments().subscribe(()=>{this.overlayRef.dispose()}),r.closeClick.pipe(ce(1),me(()=>r.animationStateChanged),M(i=>i.phaseName==="done"),O(this.destroy$)).subscribe(()=>{this.close()})}switchTo(r){this.previewInstance.switchTo(r)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.destroy$.next(),this.overlayRef.dispose()}},Ge=(()=>{class t{injector=s(B);nzConfigService=s(A);directionality=s(ae);preview(e,n,i){return this.display(e,n,i)}display(e,n,i){let o=b(b({},new N),n??{}),m=this.createOverlay(o),c=this.attachPreviewComponent(m,o);c.setImages(e,i);let f=new le(c,o,m);return c.previewRef=f,f}attachPreviewComponent(e,n){let i=B.create({parent:this.injector,providers:[{provide:Te,useValue:e},{provide:N,useValue:n}]}),o=new De(je,null,i);return e.attach(o).instance}createOverlay(e){let n=this.nzConfigService.getConfigForComponent($e)||{};return Ne(this.injector,{scrollStrategy:xe(this.injector),positionStrategy:Re(this.injector),disposeOnNavigation:e.nzCloseOnNavigation??n.nzCloseOnNavigation??!0,direction:e.nzDirection||n.nzDirection||this.directionality.value})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=he({token:t,factory:t.\u0275fac})}return t})(),rt="image",Nt=(()=>{var p;let t,r=[],e=[],n,i=[],o=[],m,c=[],f=[],S,w=[],y=[];return p=class{document=s(U);nzConfigService=s(A);elementRef=s(ge);nzImageService=s(Ge);cdr=s(oe);directionality=s(ae);destroyRef=s(Q);_nzModuleName=rt;nzSrc="";nzSrcset="";nzDisablePreview=u(this,r,!1);nzFallback=(u(this,e),u(this,i,null));nzPlaceholder=(u(this,o),u(this,c,null));nzScaleStep=(u(this,f),u(this,w,null));dir=u(this,y);backLoadImage;status="normal";backLoadDestroy$=new F;parentGroup=s(et,{optional:!0});get previewable(){return!this.nzDisablePreview&&this.status!=="error"}ngOnInit(){this.backLoad(),this.parentGroup&&this.parentGroup.addImage(this),this.directionality&&(this.directionality.change?.pipe(I(this.destroyRef)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value)}onPreview(){if(this.previewable)if(this.parentGroup){let l=this.parentGroup.images.filter(d=>d.previewable),a=l.map(d=>({src:d.nzSrc,srcset:d.nzSrcset})),h=l.findIndex(d=>this===d),$=new Map;l.forEach(d=>{$.set(d.nzSrc??d.nzSrcset,d.nzScaleStep??this.parentGroup.nzScaleStep??this.nzScaleStep??se)}),this.nzImageService.preview(a,{nzDirection:this.dir},$).switchTo(h)}else{let l=[{src:this.nzSrc,srcset:this.nzSrcset}];this.nzImageService.preview(l,{nzDirection:this.dir,nzScaleStep:this.nzScaleStep??se})}}getElement(){return this.elementRef}ngOnChanges(l){let{nzSrc:a}=l;a&&(this.getElement().nativeElement.src=a.currentValue,this.backLoad())}backLoad(){this.backLoadImage=this.document.createElement("img"),this.backLoadImage.src=this.nzSrc,this.backLoadImage.srcset=this.nzSrcset,this.status="loading",this.backLoadDestroy$.next(),this.backLoadDestroy$.complete(),this.backLoadDestroy$=new F,this.backLoadImage.complete?(this.status="normal",this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset):(this.nzPlaceholder?(this.getElement().nativeElement.src=this.nzPlaceholder,this.getElement().nativeElement.srcset=""):(this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset),G(this.backLoadImage,"load").pipe(O(this.backLoadDestroy$),I(this.destroyRef)).subscribe(()=>{this.status="normal",this.getElement().nativeElement.src=this.nzSrc,this.getElement().nativeElement.srcset=this.nzSrcset}),G(this.backLoadImage,"error").pipe(O(this.backLoadDestroy$),I(this.destroyRef)).subscribe(()=>{this.status="error",this.nzFallback&&(this.getElement().nativeElement.src=this.nzFallback,this.getElement().nativeElement.srcset="")}))}},(()=>{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[R()],n=[R()],m=[R()],S=[R()],E(null,null,t,{kind:"field",name:"nzDisablePreview",static:!1,private:!1,access:{has:a=>"nzDisablePreview"in a,get:a=>a.nzDisablePreview,set:(a,h)=>{a.nzDisablePreview=h}},metadata:l},r,e),E(null,null,n,{kind:"field",name:"nzFallback",static:!1,private:!1,access:{has:a=>"nzFallback"in a,get:a=>a.nzFallback,set:(a,h)=>{a.nzFallback=h}},metadata:l},i,o),E(null,null,m,{kind:"field",name:"nzPlaceholder",static:!1,private:!1,access:{has:a=>"nzPlaceholder"in a,get:a=>a.nzPlaceholder,set:(a,h)=>{a.nzPlaceholder=h}},metadata:l},c,f),E(null,null,S,{kind:"field",name:"nzScaleStep",static:!1,private:!1,access:{has:a=>"nzScaleStep"in a,get:a=>a.nzScaleStep,set:(a,h)=>{a.nzScaleStep=h}},metadata:l},w,y),l&&Object.defineProperty(p,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})(),j(p,"\u0275fac",function(a){return new(a||p)}),j(p,"\u0275dir",ve({type:p,selectors:[["img","nz-image",""]],hostBindings:function(a,h){a&1&&k("click",function(){return h.onPreview()})},inputs:{nzSrc:"nzSrc",nzSrcset:"nzSrcset",nzDisablePreview:[2,"nzDisablePreview","nzDisablePreview",Ie],nzFallback:"nzFallback",nzPlaceholder:"nzPlaceholder",nzScaleStep:"nzScaleStep"},exportAs:["nzImage"],features:[de]})),p})(),Ft=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ze({type:t});static \u0275inj=pe({providers:[Ge],imports:[je]})}return t})();export{et as a,Ge as b,Nt as c,Ft as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ea as Ne,Fa as ke,Ga as ae,Ha as de,I as j,J as we,K as ye,L as u,Y as _e,a as _,c as Ie,gb as Ae,lb as Re,ob as Pe,qb as ce,ua as a,ya as Te}from"./chunk-VZYJ3MSW.js";import{b as Se,e as Oe,f as le}from"./chunk-WUA5JFDD.js";import{i as ue}from"./chunk-KRYMOHYF.js";import{Ac as g,B as L,C as F,D as me,Da as b,Ec as V,Fb as C,Fc as oe,Gb as ge,Gc as m,Hb as x,Ic as De,Jc as se,Kc as re,L as G,Lb as D,M as U,N as he,Oa as R,Ra as X,V as ze,Wb as v,Xc as W,Yb as S,bc as p,cc as O,da as Z,dc as I,dd as ve,ea as fe,ec as $,fc as be,gc as Ce,ic as ee,jc as ne,l as N,lc as Q,m as z,na as J,nb as d,nc as te,oa as Me,qa as K,rc as w,sa as s,sb as P,uc as c,ud as H,vc as B,wc as y,xc as E,ya as k,yb as Y,yc as ie,yd as h,za as A,zc as M}from"./chunk-4BRW6LCZ.js";var Qe=["nz-menu-item",""],Ee=["*"],Ve=["nz-submenu-inline-child",""];function We(i,l){}var je=["nz-submenu-none-inline-child",""];function qe(i,l){}var Ge=["nz-submenu-title",""];function Ue(i,l){if(i&1&&$(0,"nz-icon",0),i&2){let n=c();p("nzType",n.nzIcon)}}function Ze(i,l){if(i&1&&(ee(0),O(1,"span",4),se(2),I(),ne()),i&2){let n=c();d(2),re(n.nzTitle)}}function Je(i,l){i&1&&$(0,"nz-icon",5)}function Ke(i,l){i&1&&$(0,"nz-icon",6)}function Xe(i,l){if(i&1&&(O(0,"span",2),v(1,Je,1,0,"nz-icon",5)(2,Ke,1,0,"nz-icon",6),I()),i&2){let n,t=c();d(),S((n=t.dir)==="rtl"?1:2)}}function Ye(i,l){i&1&&$(0,"span",3)}var xe=["nz-submenu",""],en=[[["","title",""]],"*"],nn=["[title]","*"];function tn(i,l){i&1&&y(0)}function on(i,l){if(i&1&&$(0,"div",3),i&2){let n=c(),t=V(6);p("mode",n.mode)("nzOpen",n.nzOpen)("@.disabled",!!(n.noAnimation!=null&&n.noAnimation.nzNoAnimation))("nzNoAnimation",n.noAnimation==null?null:n.noAnimation.nzNoAnimation)("menuClass",n.nzMenuClassName)("templateOutlet",t)}}function sn(i,l){if(i&1){let n=Q();O(0,"div",6),w("subMenuMouseState",function(e){k(n);let o=c(2);return A(o.setMouseEnterState(e))}),I()}if(i&2){let n=c(2),t=V(6);p("theme",n.theme)("mode",n.mode)("nzOpen",n.nzOpen)("position",n.position)("nzDisabled",n.nzDisabled)("isMenuInsideDropDown",n.isMenuInsideDropDown)("nzTriggerSubMenuAction",n.nzTriggerSubMenuAction)("templateOutlet",t)("menuClass",n.nzMenuClassName)("@.disabled",!!(n.noAnimation!=null&&n.noAnimation.nzNoAnimation))("nzNoAnimation",n.noAnimation==null?null:n.noAnimation.nzNoAnimation)}}function rn(i,l){if(i&1){let n=Q();D(0,sn,1,11,"ng-template",5),w("positionChange",function(e){k(n);let o=c();return A(o.onPositionChange(e))})("overlayOutsideClick",function(){k(n);let e=c();return A(e.setMouseEnterState(!1))})}if(i&2){let n=c(),t=V(1);p("cdkConnectedOverlayPositions",n.overlayPositions)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayWidth",n.triggerWidth)("cdkConnectedOverlayOpen",n.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function un(i,l){i&1&&y(0,1)}var ln=["titleElement"],an=["nz-menu-group",""],dn=["*",[["","title",""]]],cn=["*","[title]"];function pn(i,l){if(i&1&&(ee(0),se(1),ne()),i&2){let n=c();d(),re(n.nzTitle)}}function mn(i,l){i&1&&y(0,1)}var T=(()=>{class i{descendantMenuItemClick$=new N;childMenuItemClick$=new N;theme$=new z("light");mode$=new z("vertical");inlineIndent$=new z(24);isChildSubMenuOpen$=new z(!1);onDescendantMenuItemClick(n){this.descendantMenuItemClick$.next(n)}onChildMenuItemClick(n){this.childMenuItemClick$.next(n)}setMode(n){this.mode$.next(n)}setTheme(n){this.theme$.next(n)}setInlineIndent(n){this.inlineIndent$.next(n)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=J({token:i,factory:i.\u0275fac})}return i})(),f=new K(""),Le=new K(""),pe=(()=>{class i{nzMenuService=s(T);nzHostSubmenuService=s(i,{optional:!0,skipSelf:!0});mode$=this.nzMenuService.mode$.pipe(L(n=>n==="inline"?"inline":n==="vertical"||this.nzHostSubmenuService?"vertical":"horizontal"));level=1;isMenuInsideDropDown=s(f);isCurrentSubMenuOpen$=new z(!1);isChildSubMenuOpen$=new z(!1);isMouseEnterTitleOrOverlay$=new N;childMenuItemClick$=new N;onChildMenuItemClick(n){this.childMenuItemClick$.next(n)}setOpenStateWithoutDebounce(n){this.isCurrentSubMenuOpen$.next(n)}setMouseEnterTitleOrOverlayState(n){this.isMouseEnterTitleOrOverlay$.next(n)}constructor(){this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);let n=this.childMenuItemClick$.pipe(me(()=>this.mode$),U(o=>o!=="inline"||this.isMenuInsideDropDown),L(()=>!1)),t=G(this.isMouseEnterTitleOrOverlay$,n);F([this.isChildSubMenuOpen$,t]).pipe(L(([o,r])=>o||r),he(150)).pipe(ze(),u()).subscribe(o=>{this.setOpenStateWithoutDebounce(o),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(o):this.nzMenuService.isChildSubMenuOpen$.next(o)})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=J({token:i,factory:i.\u0275fac})}return i})(),Fe=(()=>{class i{nzMenuService=s(T);destroyRef=s(b);cdr=s(H);nzSubmenuService=s(pe,{optional:!0});directionality=s(_);routerLink=s(le,{optional:!0});router=s(Oe,{optional:!0});isMenuInsideDropDown=s(f);level=this.nzSubmenuService?this.nzSubmenuService.level+1:1;selected$=new N;inlinePaddingLeft=null;dir="ltr";nzPaddingLeft;nzDisabled=!1;nzSelected=!1;nzDanger=!1;nzMatchRouterExact=!1;nzMatchRouter=!1;listOfRouterLink;clickMenuItem(n){if(this.nzDisabled){n.preventDefault(),n.stopPropagation();return}this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this)}setSelectedState(n){this.nzSelected=n,this.selected$.next(n)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{let n=this.hasActiveLinks();this.nzSelected!==n&&(this.nzSelected=n,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.routerLink&&n(this.routerLink)||this.listOfRouterLink.some(n)}isLinkActive(n){return t=>n.isActive(t.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(){this.router?.events.pipe(u(),U(n=>n instanceof Se)).subscribe(()=>this.updateRouterActive())}ngOnInit(){F([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(u(this.destroyRef)).subscribe(([n,t])=>{this.inlinePaddingLeft=n==="inline"?this.level*t:null}),this.dir=this.directionality.value,this.directionality.change?.pipe(u(this.destroyRef)).subscribe(n=>{this.dir=n})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(u(this.destroyRef)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(n){let{nzSelected:t}=n;t&&this.setSelectedState(this.nzSelected)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["","nz-menu-item",""]],contentQueries:function(t,e,o){if(t&1&&E(o,le,5),t&2){let r;M(r=g())&&(e.listOfRouterLink=r)}},hostVars:20,hostBindings:function(t,e){t&1&&w("click",function(r){return e.clickMenuItem(r)}),t&2&&(oe("padding-left",e.dir==="rtl"?null:e.nzPaddingLeft||e.inlinePaddingLeft,"px")("padding-right",e.dir==="rtl"?e.nzPaddingLeft||e.inlinePaddingLeft:null,"px"),m("ant-dropdown-menu-item",e.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",e.isMenuInsideDropDown&&e.nzSelected)("ant-dropdown-menu-item-danger",e.isMenuInsideDropDown&&e.nzDanger)("ant-dropdown-menu-item-disabled",e.isMenuInsideDropDown&&e.nzDisabled)("ant-menu-item",!e.isMenuInsideDropDown)("ant-menu-item-selected",!e.isMenuInsideDropDown&&e.nzSelected)("ant-menu-item-danger",!e.isMenuInsideDropDown&&e.nzDanger)("ant-menu-item-disabled",!e.isMenuInsideDropDown&&e.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",_e],nzDisabled:[2,"nzDisabled","nzDisabled",h],nzSelected:[2,"nzSelected","nzSelected",h],nzDanger:[2,"nzDanger","nzDanger",h],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",h],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",h]},exportAs:["nzMenuItem"],features:[R],attrs:Qe,ngContentSelectors:Ee,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(t,e){t&1&&(B(),be(0,"span",0),y(1),Ce())},encapsulation:2,changeDetection:0})}return i})(),hn=(()=>{class i{elementRef=s(X);renderer=s(Y);directionality=s(_);destroyRef=s(b);templateOutlet=null;menuClass="";mode="vertical";nzOpen=!1;listOfCacheClassName=[];expandState="collapsed";dir="ltr";calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(u(this.destroyRef)).subscribe(n=>{this.dir=n})}ngOnChanges(n){let{mode:t,nzOpen:e,menuClass:o}=n;(t||e)&&this.calcMotionState(),o&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.forEach(r=>{r&&this.renderer.removeClass(this.elementRef.nativeElement,r)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.forEach(r=>{r&&this.renderer.addClass(this.elementRef.nativeElement,r)})))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(t,e){t&2&&(te("@collapseMotion",e.expandState),m("ant-menu-rtl",e.dir==="rtl"))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[R],attrs:Ve,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(t,e){t&1&&D(0,We,0,0,"ng-template",0),t&2&&p("ngTemplateOutlet",e.templateOutlet)},dependencies:[ue],encapsulation:2,data:{animation:[Ae]},changeDetection:0})}return i})(),zn=(()=>{class i{directionality=s(_);destroyRef=s(b);menuClass="";theme="light";templateOutlet=null;isMenuInsideDropDown=!1;mode="vertical";nzTriggerSubMenuAction="hover";position="right";nzDisabled=!1;nzOpen=!1;subMenuMouseState=new P;expandState="collapsed";dir="ltr";setMouseState(n){!this.nzDisabled&&this.nzTriggerSubMenuAction==="hover"&&this.subMenuMouseState.next(n)}calcMotionState(){this.nzOpen?this.mode==="horizontal"?this.expandState="bottom":this.mode==="vertical"&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe(u(this.destroyRef)).subscribe(n=>{this.dir=n})}ngOnChanges(n){let{mode:t,nzOpen:e}=n;(t||e)&&this.calcMotionState()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(t,e){t&1&&w("mouseenter",function(){return e.setMouseState(!0)})("mouseleave",function(){return e.setMouseState(!1)}),t&2&&(te("@slideMotion",e.expandState)("@zoomBigMotion",e.expandState),m("ant-menu-light",e.theme==="light")("ant-menu-dark",e.theme==="dark")("ant-menu-submenu-placement-bottom",e.mode==="horizontal")("ant-menu-submenu-placement-right",e.mode==="vertical"&&e.position==="right")("ant-menu-submenu-placement-left",e.mode==="vertical"&&e.position==="left")("ant-menu-submenu-rtl",e.dir==="rtl"))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",nzTriggerSubMenuAction:"nzTriggerSubMenuAction",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[R],attrs:je,decls:2,vars:17,consts:[[3,"ngTemplateOutlet"]],template:function(t,e){t&1&&(O(0,"div"),D(1,qe,0,0,"ng-template",0),I()),t&2&&(De(e.menuClass),m("ant-dropdown-menu",e.isMenuInsideDropDown)("ant-menu",!e.isMenuInsideDropDown)("ant-dropdown-menu-vertical",e.isMenuInsideDropDown)("ant-menu-vertical",!e.isMenuInsideDropDown)("ant-dropdown-menu-sub",e.isMenuInsideDropDown)("ant-menu-sub",!e.isMenuInsideDropDown)("ant-menu-rtl",e.dir==="rtl"),d(),p("ngTemplateOutlet",e.templateOutlet))},dependencies:[ue],encapsulation:2,data:{animation:[Pe,Re]},changeDetection:0})}return i})(),Be=(()=>{class i{destroyRef=s(b);cdr=s(H);directionality=s(_);nzIcon=null;nzTitle=null;isMenuInsideDropDown=!1;nzDisabled=!1;paddingLeft=null;mode="vertical";nzTriggerSubMenuAction="hover";toggleSubMenu=new P;subMenuMouseState=new P;dir="ltr";ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(u(this.destroyRef)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()})}setMouseState(n){!this.nzDisabled&&this.nzTriggerSubMenuAction==="hover"&&this.subMenuMouseState.next(n)}clickTitle(){(this.mode==="inline"||this.nzTriggerSubMenuAction==="click")&&!this.nzDisabled&&(this.subMenuMouseState.next(!0),this.toggleSubMenu.emit())}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(t,e){t&1&&w("click",function(){return e.clickTitle()})("mouseenter",function(){return e.setMouseState(!0)})("mouseleave",function(){return e.setMouseState(!1)}),t&2&&(oe("padding-left",e.dir==="rtl"?null:e.paddingLeft,"px")("padding-right",e.dir==="rtl"?e.paddingLeft:null,"px"),m("ant-dropdown-menu-submenu-title",e.isMenuInsideDropDown)("ant-menu-submenu-title",!e.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode",nzTriggerSubMenuAction:"nzTriggerSubMenuAction"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:Ge,ngContentSelectors:Ee,decls:5,vars:3,consts:[[3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(t,e){t&1&&(B(),v(0,Ue,1,1,"nz-icon",0),D(1,Ze,3,1,"ng-container",1),y(2),v(3,Xe,3,1,"span",2)(4,Ye,1,0,"span",3)),t&2&&(S(e.nzIcon?0:-1),d(),p("nzStringTemplateOutlet",e.nzTitle),d(2),S(e.isMenuInsideDropDown?3:4))},dependencies:[ke,Ne,de,ae],encapsulation:2,changeDetection:0})}return i})(),$e=[a.rightTop,a.right,a.rightBottom,a.leftTop,a.left,a.leftBottom],fn=[a.bottomLeft,a.bottomRight,a.topRight,a.topLeft],He=(()=>{class i{nzSubmenuService=s(pe);isMenuInsideDropDown=s(f);noAnimation=s(ce,{optional:!0,host:!0});directionality=s(_);destroyRef=s(b);nzMenuService=s(T);cdr=s(H);platform=s(Ie);nzMenuClassName="";nzPaddingLeft=null;nzTitle=null;nzIcon=null;nzTriggerSubMenuAction="hover";nzOpen=!1;nzDisabled=!1;nzPlacement="bottomLeft";nzOpenChange=new P;cdkOverlayOrigin=null;listOfNzSubMenuComponent=null;listOfNzMenuItemDirective=null;level=this.nzSubmenuService.level;position="right";triggerWidth=null;theme="light";mode="vertical";inlinePaddingLeft=null;overlayPositions=$e;isSelected=!1;isActive=!1;dir="ltr";setOpenStateWithoutDebounce(n){this.nzSubmenuService.setOpenStateWithoutDebounce(n)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(n){this.isActive=n,this.mode!=="inline"&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(n)}setTriggerWidth(){this.mode==="horizontal"&&this.platform.isBrowser&&this.cdkOverlayOrigin&&this.nzPlacement==="bottomLeft"&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(n){let t=Te(n);t==="rightTop"||t==="rightBottom"||t==="right"?this.position="right":(t==="leftTop"||t==="leftBottom"||t==="left")&&(this.position="left")}ngOnInit(){this.nzMenuService.theme$.pipe(u(this.destroyRef)).subscribe(n=>{this.theme=n,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe(u(this.destroyRef)).subscribe(n=>{this.mode=n,n==="horizontal"?this.overlayPositions=[a[this.nzPlacement],...fn]:n==="vertical"&&(this.overlayPositions=$e),this.cdr.markForCheck()}),F([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(u(this.destroyRef)).subscribe(([n,t])=>{this.inlinePaddingLeft=n==="inline"?this.level*t:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(u(this.destroyRef)).subscribe(n=>{this.isActive=n,n!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=n,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe(u(this.destroyRef)).subscribe(n=>{this.dir=n,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();let n=this.listOfNzMenuItemDirective,t=n.changes,e=G(t,...n.map(o=>o.selected$));t.pipe(Z(n),fe(()=>e),Z(!0),L(()=>n.some(o=>o.nzSelected)),u(this.destroyRef)).subscribe(o=>{this.isSelected=o,this.cdr.markForCheck()})}ngOnChanges(n){let{nzOpen:t}=n;t&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["","nz-submenu",""]],contentQueries:function(t,e,o){if(t&1&&(E(o,i,5),E(o,Fe,5)),t&2){let r;M(r=g())&&(e.listOfNzSubMenuComponent=r),M(r=g())&&(e.listOfNzMenuItemDirective=r)}},viewQuery:function(t,e){if(t&1&&ie(j,7,X),t&2){let o;M(o=g())&&(e.cdkOverlayOrigin=o.first)}},hostVars:34,hostBindings:function(t,e){t&2&&m("ant-dropdown-menu-submenu",e.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",e.isMenuInsideDropDown&&e.nzDisabled)("ant-dropdown-menu-submenu-open",e.isMenuInsideDropDown&&e.nzOpen)("ant-dropdown-menu-submenu-selected",e.isMenuInsideDropDown&&e.isSelected)("ant-dropdown-menu-submenu-vertical",e.isMenuInsideDropDown&&e.mode==="vertical")("ant-dropdown-menu-submenu-horizontal",e.isMenuInsideDropDown&&e.mode==="horizontal")("ant-dropdown-menu-submenu-inline",e.isMenuInsideDropDown&&e.mode==="inline")("ant-dropdown-menu-submenu-active",e.isMenuInsideDropDown&&e.isActive)("ant-menu-submenu",!e.isMenuInsideDropDown)("ant-menu-submenu-disabled",!e.isMenuInsideDropDown&&e.nzDisabled)("ant-menu-submenu-open",!e.isMenuInsideDropDown&&e.nzOpen)("ant-menu-submenu-selected",!e.isMenuInsideDropDown&&e.isSelected)("ant-menu-submenu-vertical",!e.isMenuInsideDropDown&&e.mode==="vertical")("ant-menu-submenu-horizontal",!e.isMenuInsideDropDown&&e.mode==="horizontal")("ant-menu-submenu-inline",!e.isMenuInsideDropDown&&e.mode==="inline")("ant-menu-submenu-active",!e.isMenuInsideDropDown&&e.isActive)("ant-menu-submenu-rtl",e.dir==="rtl")},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzTriggerSubMenuAction:"nzTriggerSubMenuAction",nzOpen:[2,"nzOpen","nzOpen",h],nzDisabled:[2,"nzDisabled","nzDisabled",h],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[W([pe]),R],attrs:xe,ngContentSelectors:nn,decls:7,vars:9,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","nzTriggerSubMenuAction"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","overlayOutsideClick","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","nzTriggerSubMenuAction","templateOutlet","menuClass","nzNoAnimation"]],template:function(t,e){if(t&1){let o=Q();B(en),O(0,"div",2,0),w("subMenuMouseState",function(q){return k(o),A(e.setMouseEnterState(q))})("toggleSubMenu",function(){return k(o),A(e.toggleSubMenu())}),v(2,tn,1,0),I(),v(3,on,1,6,"div",3)(4,rn,1,5,null,4),D(5,un,1,0,"ng-template",null,1,ve)}t&2&&(p("nzIcon",e.nzIcon)("nzTitle",e.nzTitle)("mode",e.mode)("nzDisabled",e.nzDisabled)("isMenuInsideDropDown",e.isMenuInsideDropDown)("paddingLeft",e.nzPaddingLeft||e.inlinePaddingLeft)("nzTriggerSubMenuAction",e.nzTriggerSubMenuAction),d(2),S(e.nzTitle?-1:2),d(),S(e.mode==="inline"?3:4))},dependencies:[Be,hn,ce,zn,ye,we,j],encapsulation:2,changeDetection:0})}return i})();function Mn(){let i=s(T,{skipSelf:!0,optional:!0}),l=s(Le);return i??l}function gn(){return s(f,{skipSelf:!0,optional:!0})??!1}var Xn=(()=>{class i{nzMenuService=s(T);destroyRef=s(b);cdr=s(H);directionality=s(_);listOfNzMenuItemDirective;isMenuInsideDropDown=s(f);listOfNzSubMenuComponent;nzInlineIndent=24;nzTheme="light";nzMode="vertical";nzInlineCollapsed=!1;nzSelectable=!this.isMenuInsideDropDown;nzClick=new P;actualMode="vertical";dir="ltr";inlineCollapsed$=new z(this.nzInlineCollapsed);mode$=new z(this.nzMode);listOfOpenedNzSubMenuComponent=[];setInlineCollapsed(n){this.nzInlineCollapsed=n,this.inlineCollapsed$.next(n)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(n=>n.nzOpen),this.listOfNzSubMenuComponent.forEach(n=>n.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(n=>n.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){F([this.inlineCollapsed$,this.mode$]).pipe(u(this.destroyRef)).subscribe(([n,t])=>{this.actualMode=n?"vertical":t,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe(u(this.destroyRef)).subscribe(n=>{this.nzClick.emit(n),this.nzSelectable&&!n.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(t=>t.setSelectedState(t===n))}),this.dir=this.directionality.value,this.directionality.change?.pipe(u(this.destroyRef)).subscribe(n=>{this.dir=n,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe(u(this.destroyRef)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(n){let{nzInlineCollapsed:t,nzInlineIndent:e,nzTheme:o,nzMode:r}=n;t&&this.inlineCollapsed$.next(this.nzInlineCollapsed),e&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),o&&this.nzMenuService.setTheme(this.nzTheme),r&&(this.mode$.next(this.nzMode),!r.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(q=>q.setOpenStateWithoutDebounce(!1)))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=x({type:i,selectors:[["","nz-menu",""]],contentQueries:function(t,e,o){if(t&1&&(E(o,Fe,5),E(o,He,5)),t&2){let r;M(r=g())&&(e.listOfNzMenuItemDirective=r),M(r=g())&&(e.listOfNzSubMenuComponent=r)}},hostVars:34,hostBindings:function(t,e){t&2&&m("ant-dropdown-menu",e.isMenuInsideDropDown)("ant-dropdown-menu-root",e.isMenuInsideDropDown)("ant-dropdown-menu-light",e.isMenuInsideDropDown&&e.nzTheme==="light")("ant-dropdown-menu-dark",e.isMenuInsideDropDown&&e.nzTheme==="dark")("ant-dropdown-menu-vertical",e.isMenuInsideDropDown&&e.actualMode==="vertical")("ant-dropdown-menu-horizontal",e.isMenuInsideDropDown&&e.actualMode==="horizontal")("ant-dropdown-menu-inline",e.isMenuInsideDropDown&&e.actualMode==="inline")("ant-dropdown-menu-inline-collapsed",e.isMenuInsideDropDown&&e.nzInlineCollapsed)("ant-menu",!e.isMenuInsideDropDown)("ant-menu-root",!e.isMenuInsideDropDown)("ant-menu-light",!e.isMenuInsideDropDown&&e.nzTheme==="light")("ant-menu-dark",!e.isMenuInsideDropDown&&e.nzTheme==="dark")("ant-menu-vertical",!e.isMenuInsideDropDown&&e.actualMode==="vertical")("ant-menu-horizontal",!e.isMenuInsideDropDown&&e.actualMode==="horizontal")("ant-menu-inline",!e.isMenuInsideDropDown&&e.actualMode==="inline")("ant-menu-inline-collapsed",!e.isMenuInsideDropDown&&e.nzInlineCollapsed)("ant-menu-rtl",e.dir==="rtl")},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",h],nzSelectable:[2,"nzSelectable","nzSelectable",h]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[W([{provide:Le,useClass:T},{provide:T,useFactory:Mn},{provide:f,useFactory:gn}]),R]})}return i})();function bn(){return s(f,{optional:!0,skipSelf:!0})??!1}var Cn=(()=>{class i{renderer=s(Y);isMenuInsideDropDown=s(f);nzTitle;titleElement;ngAfterViewInit(){let n=this.titleElement.nativeElement.nextElementSibling;if(n){let t=this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list";this.renderer.addClass(n,t)}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["","nz-menu-group",""]],viewQuery:function(t,e){if(t&1&&ie(ln,5),t&2){let o;M(o=g())&&(e.titleElement=o.first)}},hostVars:4,hostBindings:function(t,e){t&2&&m("ant-menu-item-group",!e.isMenuInsideDropDown)("ant-dropdown-menu-item-group",e.isMenuInsideDropDown)},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[W([{provide:f,useFactory:bn}])],attrs:an,ngContentSelectors:cn,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(t,e){t&1&&(B(dn),O(0,"div",null,0),D(2,pn,2,1,"ng-container",1),v(3,mn,1,0),I(),y(4)),t&2&&(m("ant-menu-item-group-title",!e.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",e.isMenuInsideDropDown),d(2),p("nzStringTemplateOutlet",e.nzTitle),d(),S(e.nzTitle?-1:3))},dependencies:[de,ae],encapsulation:2,changeDetection:0})}return i})(),Yn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=x({type:i,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"]})}return i})(),xn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ge({type:i});static \u0275inj=Me({imports:[He,Cn,Be]})}return i})();export{T as a,f as b,Fe as c,He as d,Xn as e,Cn as f,Yn as g,xn as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as gt,d as _t}from"./chunk-RKK4I2RT.js";import{a as ut,c as ht}from"./chunk-6UFDNETG.js";import{c as rt,d as at,e as lt,f as st,g as ct,h as dt,i as mt,j as pt}from"./chunk-WWIPELAV.js";import{a as Xe,b as Je}from"./chunk-MBPB43C6.js";import{a as it,b as ot}from"./chunk-SD2HFD54.js";import{$ as Ye,Ea as ze,Fa as Me,Ga as pe,Ha as ge,L as J,S as Ze,a as we,ra as Ke,ta as K,tb as et,ub as tt,wb as nt}from"./chunk-VZYJ3MSW.js";import{i as ie,n as oe}from"./chunk-KRYMOHYF.js";import{$b as I,Ac as F,Da as Ce,Ec as ce,Fb as y,Fc as Z,Gb as ne,Gc as T,Ha as Pe,Hc as Ue,Jc as f,Kc as q,L as ke,Lb as M,Lc as k,Mb as Qe,N as Ne,Oa as Q,Ra as Ve,Ub as le,Wb as v,Xc as qe,Yb as x,Zc as Ge,_b as $,ac as D,bc as _,cc as s,da as Re,dc as c,dd as de,ea as Fe,ec as X,f as ee,ha as Le,ic as A,id as We,jc as V,jd as ve,kb as Be,kc as se,l as De,lc as W,n as Ee,na as Ae,nb as r,oa as te,od as P,r as G,rc as U,s as S,sa as O,sb as $e,ub as He,uc as l,ud as Y,vc as N,wb as je,wc as E,xc as fe,ya as H,yc as B,yd as me,za as j,zc as R,zd as xe}from"./chunk-4BRW6LCZ.js";var oi=["open","in_progress","pending_update","resolved","verified","reopened","closed"],ri={open:"\u5F85\u5904\u7406",in_progress:"\u5904\u7406\u4E2D",resolved:"\u5F85\u9A8C\u8BC1",verified:"\u5DF2\u9A8C\u8BC1",reopened:"\u5DF2\u91CD\u5F00",closed:"\u5DF2\u5173\u95ED"},ai={open:"volcano",in_progress:"cyan",resolved:"blue",verified:"green",reopened:"volcano",closed:"default"},li={todo:"gold",in_progress:"geekblue",done:"green"},si={todo:"\u5F85\u5F00\u59CB",in_progress:"\u5904\u7406\u4E2D",done:"\u5DF2\u5B8C\u6210"},ci=[{label:"\u6240\u6709\u72B6\u6001",value:""},{label:"\u5F85\u5904\u7406",value:"open"},{label:"\u5904\u7406\u4E2D",value:"in_progress"},{label:"\u5F85\u63D0\u6D4B",value:"pending_update"},{label:"\u5F85\u9A8C\u8BC1",value:"resolved"},{label:"\u5DF2\u9A8C\u8BC1",value:"verified"},{label:"\u5DF2\u91CD\u5F00",value:"reopened"},{label:"\u5DF2\u5173\u95ED",value:"closed"}],di=["todo","doing","blocked","done","canceled"],mi={todo:"\u5F85\u5F00\u59CB",doing:"\u5F00\u53D1\u4E2D",blocked:"\u963B\u585E\u4E2D",done:"\u5DF2\u5B8C\u6210",accepted:"\u5DF2\u5B8C\u6210",closed:"\u5DF2\u5173\u95ED"},pi={todo:"volcano",doing:"cyan",blocked:"error",done:"green",accepted:"green",closed:"default"},gi=[{label:"\u6240\u6709\u72B6\u6001",value:""},{label:"\u5F85\u5F00\u59CB",value:"todo"},{label:"\u5F00\u53D1\u4E2D",value:"doing"},{label:"\u963B\u585E\u4E2D",value:"blocked"},{label:"\u5DF2\u5B8C\u6210",value:"done"},{label:"\u5DF2\u5173\u95ED",value:"closed"}];var ui={low:"\u4F4E",medium:"\u4E2D",high:"\u9AD8",critical:"\u7D27\u6025"},hi=[{label:"\u5168\u90E8\u4F18\u5148\u7EA7",value:""},{label:"\u4F4E",value:"low"},{label:"\u4E2D",value:"medium"},{label:"\u9AD8",value:"high"},{label:"\u7D27\u6025",value:"critical"}],Ci={low:"green",medium:"orange",high:"magenta",critical:"red"};var yt=["*"];function Tt(t,n){t&1&&E(0)}function St(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l(3);r(),q(e.nzTitle)}}function It(t,n){if(t&1&&(s(0,"div",2),M(1,St,2,1,"ng-container",4),c()),t&2){let e=l(2);r(),_("nzStringTemplateOutlet",e.nzTitle)}}function Dt(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l(3);r(),q(e.nzExtra)}}function Et(t,n){if(t&1&&(s(0,"div",3),M(1,Dt,2,1,"ng-container",4),c()),t&2){let e=l(2);r(),_("nzStringTemplateOutlet",e.nzExtra)}}function Nt(t,n){if(t&1&&(s(0,"div",0),v(1,It,2,1,"div",2),v(2,Et,2,1,"div",3),c()),t&2){let e=l();r(),x(e.nzTitle?1:-1),r(),x(e.nzExtra?2:-1)}}function Rt(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l(2).$implicit;r(),k(" ",e.title," ")}}function Ft(t,n){}function Lt(t,n){if(t&1&&(s(0,"td",6)(1,"div",7)(2,"span",8),M(3,Rt,2,1,"ng-container",4),c(),s(4,"span",9),M(5,Ft,0,0,"ng-template",10),c()()()),t&2){let e=l().$implicit,i=l(3);_("colSpan",e.span),r(2),T("ant-descriptions-item-no-colon",!i.nzColon),r(),_("nzStringTemplateOutlet",e.title),r(2),_("ngTemplateOutlet",e.content)}}function At(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l(2).$implicit;r(),k(" ",e.title," ")}}function Vt(t,n){}function Bt(t,n){if(t&1&&(s(0,"td",8),M(1,At,2,1,"ng-container",4),c(),s(2,"td",11),M(3,Vt,0,0,"ng-template",10),c()),t&2){let e=l().$implicit;r(),_("nzStringTemplateOutlet",e.title),r(),_("colSpan",e.span*2-1),r(),_("ngTemplateOutlet",e.content)}}function $t(t,n){if(t&1&&v(0,Lt,6,5,"td",6)(1,Bt,4,3),t&2){let e=l(3);x(e.nzBordered?1:0)}}function Ht(t,n){if(t&1&&(s(0,"tr",5),I(1,$t,2,1,null,null,$),c()),t&2){let e=n.$implicit;r(),D(e)}}function jt(t,n){if(t&1&&I(0,Ht,3,0,"tr",5,$),t&2){let e=l();D(e.itemMatrix)}}function Qt(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l().$implicit;r(),k(" ",e.title," ")}}function Ut(t,n){if(t&1&&(s(0,"td",6)(1,"div",7)(2,"span",8),M(3,Qt,2,1,"ng-container",4),c()()()),t&2){let e=n.$implicit,i=l(4);_("colSpan",e.span),r(2),T("ant-descriptions-item-no-colon",!i.nzColon),r(),_("nzStringTemplateOutlet",e.title)}}function qt(t,n){}function Gt(t,n){if(t&1&&(s(0,"td",6)(1,"div",7)(2,"span",9),M(3,qt,0,0,"ng-template",10),c()()()),t&2){let e=n.$implicit;_("colSpan",e.span),r(3),_("ngTemplateOutlet",e.content)}}function Wt(t,n){if(t&1&&(s(0,"tr",5),I(1,Ut,4,4,"td",6,$),c(),s(3,"tr",5),I(4,Gt,4,2,"td",6,$),c()),t&2){let e=n.$implicit;r(),D(e),r(3),D(e)}}function Zt(t,n){if(t&1&&I(0,Wt,6,0,null,null,$),t&2){let e=l(2);D(e.itemMatrix)}}function Yt(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l().$implicit;r(),k(" ",e.title," ")}}function Kt(t,n){if(t&1&&(s(0,"td",12),M(1,Yt,2,1,"ng-container",4),c()),t&2){let e=n.$implicit;_("colSpan",e.span),r(),_("nzStringTemplateOutlet",e.title)}}function Xt(t,n){}function Jt(t,n){if(t&1&&(s(0,"td",11),M(1,Xt,0,0,"ng-template",10),c()),t&2){let e=n.$implicit;_("colSpan",e.span),r(),_("ngTemplateOutlet",e.content)}}function en(t,n){if(t&1&&(s(0,"tr",5),I(1,Kt,2,2,"td",12,$),c(),s(3,"tr",5),I(4,Jt,2,2,"td",11,$),c()),t&2){let e=n.$implicit;r(),D(e),r(3),D(e)}}function tn(t,n){if(t&1&&I(0,en,6,0,null,null,$),t&2){let e=l(2);D(e.itemMatrix)}}function nn(t,n){if(t&1&&v(0,Zt,2,0)(1,tn,2,0),t&2){let e=l();x(e.nzBordered?1:0)}}var on=(()=>{class t{content;nzSpan=1;nzTitle="";inputChange$=new De;ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-descriptions-item"]],viewQuery:function(i,o){if(i&1&&B(je,7),i&2){let a;R(a=F())&&(o.content=a.first)}},inputs:{nzSpan:[2,"nzSpan","nzSpan",xe],nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[Q],ngContentSelectors:yt,decls:1,vars:0,template:function(i,o){i&1&&(N(),Qe(0,Tt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),rn="descriptions",an={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},ln=(()=>{var p;let t,n=[],e=[],i,o=[],a=[],g,h=[],z=[],m,L=[],b=[];return p=class{nzConfigService=O(Ke);cdr=O(Y);breakpointService=O(nt);directionality=O(we);destroyRef=O(Ce);_nzModuleName=rn;items;nzBordered=S(this,n,!1);nzLayout=(S(this,e),"horizontal");nzColumn=S(this,o,an);nzSize=(S(this,a),S(this,h,"default"));nzTitle=(S(this,z),"");nzExtra;nzColon=S(this,L,!0);itemMatrix=(S(this,b),[]);realColumn=3;dir="ltr";breakpoint=et.md;ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(J(this.destroyRef)).subscribe(C=>{this.dir=C})}ngOnChanges(C){C.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){let C=this.items.changes.pipe(Re(this.items));ke(C,C.pipe(Fe(()=>ke(...this.items.map(d=>d.inputChange$)).pipe(Ne(16)))),this.breakpointService.subscribe(tt).pipe(Le(d=>this.breakpoint=d))).pipe(J(this.destroyRef)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}prepareMatrix(){if(!this.items)return;let C=[],d=0,w=this.realColumn=this.getColumn(),_e=this.items.toArray(),ae=_e.length,Se=[],Ie=()=>{Se.push(C),C=[],d=0};for(let ue=0;ue<ae;ue++){let kt=_e[ue],{nzTitle:be,content:Oe,nzSpan:he}=kt;d+=he,d>=w?(d>w&&Ze(`"nzColumn" is ${w} but we have row length ${d}`),C.push({title:be,content:Oe,span:w-(d-he)}),Ie()):ue===ae-1?(C.push({title:be,content:Oe,span:w-(d-he)}),Ie()):C.push({title:be,content:Oe,span:he})}this.itemMatrix=Se}getColumn(){return typeof this.nzColumn!="number"?this.nzColumn[this.breakpoint]:this.nzColumn}},(()=>{let C=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[K()],i=[K()],g=[K()],m=[K()],G(null,null,t,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:d=>"nzBordered"in d,get:d=>d.nzBordered,set:(d,w)=>{d.nzBordered=w}},metadata:C},n,e),G(null,null,i,{kind:"field",name:"nzColumn",static:!1,private:!1,access:{has:d=>"nzColumn"in d,get:d=>d.nzColumn,set:(d,w)=>{d.nzColumn=w}},metadata:C},o,a),G(null,null,g,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:d=>"nzSize"in d,get:d=>d.nzSize,set:(d,w)=>{d.nzSize=w}},metadata:C},h,z),G(null,null,m,{kind:"field",name:"nzColon",static:!1,private:!1,access:{has:d=>"nzColon"in d,get:d=>d.nzColon,set:(d,w)=>{d.nzColon=w}},metadata:C},L,b),C&&Object.defineProperty(p,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:C})})(),ee(p,"\u0275fac",function(d){return new(d||p)}),ee(p,"\u0275cmp",y({type:p,selectors:[["nz-descriptions"]],contentQueries:function(d,w,_e){if(d&1&&fe(_e,on,4),d&2){let ae;R(ae=F())&&(w.items=ae)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(d,w){d&2&&T("ant-descriptions-bordered",w.nzBordered)("ant-descriptions-middle",w.nzSize==="middle")("ant-descriptions-small",w.nzSize==="small")("ant-descriptions-rtl",w.dir==="rtl")},inputs:{nzBordered:[2,"nzBordered","nzBordered",me],nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:[2,"nzColon","nzColon",me]},exportAs:["nzDescriptions"],features:[Q],decls:6,vars:3,consts:[[1,"ant-descriptions-header"],[1,"ant-descriptions-view"],[1,"ant-descriptions-title"],[1,"ant-descriptions-extra"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-row"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(d,w){d&1&&(v(0,Nt,3,2,"div",0),s(1,"div",1)(2,"table")(3,"tbody"),v(4,jt,2,0),v(5,nn,2,1),c()()()),d&2&&(x(w.nzTitle||w.nzExtra?0:-1),r(4),x(w.nzLayout==="horizontal"?4:-1),r(),x(w.nzLayout==="vertical"?5:-1))},dependencies:[ge,pe,ie],encapsulation:2,changeDetection:0})),p})(),Li=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ne({type:t});static \u0275inj=te({imports:[ln]})}return t})();var cn=["template"],ft=["*"];function dn(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l(3);r(),q(e.nzLabel)}}function mn(t,n){if(t&1&&(s(0,"div",2),M(1,dn,2,1,"ng-container",5),c()),t&2){let e=l(2);r(),_("nzStringTemplateOutlet",e.nzLabel)}}function pn(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l(2);r(),q(e.nzDot)}}function gn(t,n){if(t&1&&(s(0,"li",1),v(1,mn,2,1,"div",2),X(2,"div",3),s(3,"div",4),M(4,pn,2,1,"ng-container",5),c(),s(5,"div",6),E(6),c()()),t&2){let e=l();T("ant-timeline-item-right",(e.nzPosition||e.position)==="right")("ant-timeline-item-left",(e.nzPosition||e.position)==="left")("ant-timeline-item-last",e.isLast),r(),x(e.nzLabel?1:-1),r(2),Z("border-color",e.borderColor),T("ant-timeline-item-head-red",e.nzColor==="red")("ant-timeline-item-head-blue",e.nzColor==="blue")("ant-timeline-item-head-green",e.nzColor==="green")("ant-timeline-item-head-gray",e.nzColor==="gray")("ant-timeline-item-head-custom",!!e.nzDot),r(),_("nzStringTemplateOutlet",e.nzDot)}}function _n(t,n){if(t&1&&se(0,2),t&2){l();let e=ce(6);_("ngTemplateOutlet",e)}}function un(t,n){}function hn(t,n){if(t&1&&M(0,un,0,0,"ng-template",2),t&2){let e=n.$implicit;_("ngTemplateOutlet",e.template)}}function Cn(t,n){if(t&1&&se(0,2),t&2){l();let e=ce(6);_("ngTemplateOutlet",e)}}function fn(t,n){t&1&&X(0,"nz-icon",8)}function vn(t,n){if(t&1&&(A(0),f(1),v(2,fn,1,0,"nz-icon",8),V()),t&2){let e=l(3);r(),k(" ",e.nzPendingDot," "),r(),x(e.nzPendingDot?-1:2)}}function xn(t,n){if(t&1&&(A(0),f(1),V()),t&2){let e=l(3);r(),k(" ",e.isPendingBoolean?"":e.nzPending," ")}}function wn(t,n){if(t&1&&(s(0,"li",3),X(1,"div",4),s(2,"div",5),M(3,vn,3,2,"ng-container",6),c(),s(4,"div",7),M(5,xn,2,1,"ng-container",6),c()()),t&2){let e=l(2);r(3),_("nzStringTemplateOutlet",e.nzPendingDot),r(2),_("nzStringTemplateOutlet",e.nzPending)}}function zn(t,n){if(t&1&&v(0,wn,6,2,"li",3),t&2){let e=l();x(e.nzPending?0:-1)}}var ye=(()=>{class t{check$=new Ee(1);markForCheck(){this.check$.next()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),Mn=["red","blue","green","grey","gray"];function bn(t){return Mn.findIndex(n=>n===t)!==-1}var vt=(()=>{class t{cdr=O(Y);timelineService=O(ye);template;nzPosition;nzColor="blue";nzDot;nzLabel;isLast=!1;borderColor=null;position;ngOnChanges(e){this.timelineService.markForCheck();let{nzColor:i}=e;i&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=bn(this.nzColor)?null:this.nzColor}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(i,o){if(i&1&&B(cn,5),i&2){let a;R(a=F())&&(o.template=a.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],features:[Q],ngContentSelectors:ft,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],[1,"ant-timeline-item-label"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"]],template:function(i,o){i&1&&(N(),M(0,gn,7,20,"ng-template",null,0,de))},dependencies:[ge,pe],encapsulation:2,changeDetection:0})}return t})(),On=(()=>{class t{cdr=O(Y);timelineService=O(ye);directionality=O(we);destroyRef=O(Ce);listOfItems;nzMode="left";nzPending;nzPendingDot;nzReverse=!1;isPendingBoolean=!1;timelineItems=[];dir="ltr";hasLabelItem=!1;ngOnChanges(e){let{nzMode:i,nzReverse:o,nzPending:a}=e;(Ct(i)||Ct(o))&&this.updateChildren(),a&&(this.isPendingBoolean=a.currentValue===!0)}ngOnInit(){this.timelineService.check$.pipe(J(this.destroyRef)).subscribe(()=>{this.cdr.markForCheck()}),this.directionality.change?.pipe(J(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe(J(this.destroyRef)).subscribe(()=>{this.updateChildren()})}updateChildren(){if(this.listOfItems&&this.listOfItems.length){let e=this.listOfItems.length,i=!1;this.listOfItems.forEach((o,a)=>{o.isLast=this.nzReverse?a===0:a===e-1,o.position=kn(a,this.nzMode),!i&&o.nzLabel&&(i=!0),o.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=i}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-timeline"]],contentQueries:function(i,o,a){if(i&1&&fe(a,vt,4),i&2){let g;R(g=F())&&(o.listOfItems=g)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:[2,"nzReverse","nzReverse",me]},exportAs:["nzTimeline"],features:[qe([ye]),Q],ngContentSelectors:ft,decls:8,vars:14,consts:[["pendingTemplate",""],[1,"ant-timeline"],[3,"ngTemplateOutlet"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nzType","loading"]],template:function(i,o){i&1&&(N(),s(0,"ul",1),v(1,_n,1,1,"ng-container",2),I(2,hn,1,1,null,2,$),v(4,Cn,1,1,"ng-container",2),c(),M(5,zn,1,1,"ng-template",null,0,de),E(7)),i&2&&(T("ant-timeline-label",o.hasLabelItem)("ant-timeline-right",!o.hasLabelItem&&o.nzMode==="right")("ant-timeline-alternate",o.nzMode==="alternate"||o.nzMode==="custom")("ant-timeline-pending",!!o.nzPending)("ant-timeline-reverse",o.nzReverse)("ant-timeline-rtl",o.dir==="rtl"),r(),x(o.nzReverse?1:-1),r(),D(o.timelineItems),r(2),x(o.nzReverse?-1:4))},dependencies:[ie,ge,pe,Me,ze],encapsulation:2,changeDetection:0})}return t})();function Ct(t){return!!(t&&(t.previousValue!==t.currentValue||t.isFirstChange()))}function kn(t,n){if(n!=="custom")return n==="left"||n==="right"?n:n==="alternate"&&t%2===0?"left":"right"}var to=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ne({type:t});static \u0275inj=te({imports:[vt,On]})}return t})();function io(t,n,e,i){let o=(t??"").trim();if(!o)return{summary:"",imageUrl:null,imageAlt:""};let a=null,g="",h=/!\[([^\]]*)\]\(([^)]+)\)/.exec(o);if(h&&(g=h[1]?.trim()??"",a=Pn(h[2]??"",n,e,i)),!a){let m=/<img\b[^>]*\bsrc\s*=\s*['"]([^'"]+)['"][^>]*>/i.exec(o);m&&(a=m[1]?.trim()??null,g=/<img\b[^>]*\balt\s*=\s*['"]([^'"]*)['"][^>]*>/i.exec(m[0]??"")?.[1]?.trim()??"")}return{summary:o.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,"\u3010\u56FE\u7247\u3011").replace(/<img\b[^>]*>/gi," ").replace(/```[\s\S]*?```/g," ").replace(/`([^`]*)`/g,"$1").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").replace(/^#{1,6}\s+/gm,"").replace(/^\s*>\s?/gm,"").replace(/^\s*[-*+]\s+/gm,"").replace(/<\/?[^>]+>/g," ").replace(/[*_~]/g,"").replace(/\r?\n+/g," ").replace(/\s+/g," ").trim(),imageUrl:a||null,imageAlt:g}}function Pn(t,n,e,i){let o=t.trim();if(!o)return null;let a=o.match(/\/api\/admin\/uploads\/([a-zA-Z0-9_-]+)\/raw/);if(!a)return o;let g=a[1];return`/api/client/hub-token/projects/${n}/${i}/${e}/uploads/${g}/raw`}function oo(t,n,e,i){let o=/!\[.*?\]\((\/api\/admin\/uploads\/[a-zA-Z0-9_-]+\/raw)\)/g;return t.replace(o,(a,g)=>{let h=g.match(/uploads\/([a-zA-Z0-9_-]+)/);if(!h)return a;let z=h[1],m=`/api/client/hub-token/projects/${n}/${i}/${e}/uploads/${z}/raw`;return a.replace(g,m)})}function ro(t,n,e,i){let o=[],a=/!\[.*?\]\((\/api\/admin\/uploads\/[a-zA-Z0-9_-]+\/raw)\)/g;return{text:t.replace(a,(h,z)=>{let m=z.match(/uploads\/([a-zA-Z0-9_-]+)/);if(!m)return h;let L=m[1],b=`/api/client/hub-token/projects/${n}/${i}/${e}/uploads/${L}/raw`;return o.push(b),""}).replace(/\n{2,}/g,`
|
|
2
|
+
`).trim(),imgUrls:o}}function ao(t,n,e=/(@[^\s@,,.。;;::!?!?]+)/g){if(!t)return[];let i=new Set(n),o=[],a=0,g=new RegExp(e.source,e.flags);for(let h of t.matchAll(g)){let z=h.index,m=h[0],L=m.slice(1);z>a&&o.push({text:t.slice(a,z)}),o.push({text:m,mention:i.has(L)}),a=z+m.length}return a<t.length&&o.push({text:t.slice(a)}),o}var yn=["textRef"],Tn=["*"];function Sn(t,n){t&1&&E(0)}function In(t,n){t&1&&se(0)}function Dn(t,n){if(t&1&&M(0,In,1,0,"ng-container",4),t&2){l();let e=ce(5);_("ngTemplateOutlet",e)}}function En(t,n){if(t&1&&f(0),t&2){let e=l();k(" ",e.text()," ")}}function Nn(t,n){if(t&1){let e=W();s(0,"a",5),U("click",function(){H(e);let o=l();return j(o.toggle())}),f(1),c()}if(t&2){let e=l();r(),k(" ",e.expanded()?"\u6536\u8D77":"\u5C55\u5F00"," ")}}var xt=class t{text=P("");lines=P(2);maxHeight=P(null);enableToggle=P(!0);textRef;observer;expanded=Pe(!1);showToggle=Pe(!1);hasTextInput=We(()=>!!this.text());ngAfterViewInit(){this.checkOverflow(),this.initObserver()}ngOnDestroy(){this.observer?.disconnect()}constructor(){ve(()=>{this.text(),this.lines(),setTimeout(()=>this.checkOverflow())})}initObserver(){let n=this.textRef?.nativeElement;n&&(this.observer=new MutationObserver(()=>{this.checkOverflow()}),this.observer.observe(n,{childList:!0,subtree:!0,characterData:!0}))}checkOverflow(){this.toggle(!1),this.showToggle.set(!1);let n=this.textRef?.nativeElement;n&&requestAnimationFrame(()=>{let e=n.scrollHeight>n.clientHeight,i=this.maxHeight()!=null&&n.scrollHeight>this.maxHeight();this.showToggle.set(e||i)})}toggle(n){n!==void 0?this.expanded.set(n):this.expanded.update(e=>!e)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-ellipsis-text"]],viewQuery:function(e,i){if(e&1&&B(yn,5),e&2){let o;R(o=F())&&(i.textRef=o.first)}},inputs:{text:[1,"text"],lines:[1,"lines"],maxHeight:[1,"maxHeight"],enableToggle:[1,"enableToggle"]},ngContentSelectors:Tn,decls:7,vars:8,consts:[["textRef",""],["textTpl",""],[1,"text"],[1,"toggle"],[4,"ngTemplateOutlet"],[1,"toggle",3,"click"]],template:function(e,i){e&1&&(N(),s(0,"span",2,0),v(2,Sn,1,0)(3,Dn,1,1,"ng-container"),M(4,En,1,1,"ng-template",null,1,de),c(),v(6,Nn,2,1,"a",3)),e&2&&(Z("--line-clamp",i.lines())("--max-height",i.maxHeight(),"px"),T("expanded",i.expanded()),r(2),x(i.hasTextInput()?3:2),r(4),x(i.showToggle()&&i.enableToggle()?6:-1))},dependencies:[oe,ie],styles:[".text[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;-webkit-line-clamp:var(--line-clamp);max-height:var(--max-height)}.text.expanded[_ngcontent-%COMP%]{-webkit-line-clamp:unset!important;max-height:none!important}.toggle[_ngcontent-%COMP%]{font-size:.8rem;font-weight:700;color:#1677ff;cursor:pointer;-webkit-user-select:none;user-select:none}"]})};var Rn=["container"],Fn=["*"],Ln=(t,n)=>n.title;function An(t,n){if(t&1&&(s(0,"th",3),f(1),c()),t&2){let e=n.$implicit,i=l();_("nzWidth",i.getColumnWidth(e.width))("nzEllipsis",e.ellipsis||!1),r(),k(" ",e.title," ")}}var wt=class t{data=P([]);columns=P([]);loading=P(!1);container;constructor(){let n=this.data();ve(()=>{let e=this.data();e!==n&&(n=e,requestAnimationFrame(()=>{this.container.nativeElement.scrollTop=0}))})}getColumnWidth(n){return n===void 0?"auto":n===""?"":typeof n=="number"?`${n}px`:n}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-scrollable-table-list"]],viewQuery:function(e,i){if(e&1&&B(Rn,7),e&2){let o;R(o=F())&&(i.container=o.first)}},inputs:{data:[1,"data"],columns:[1,"columns"],loading:[1,"loading"]},ngContentSelectors:Fn,decls:9,vars:4,consts:[["container",""],[1,"scrollable-table"],["nzTableLayout","fixed",1,"table",3,"nzData","nzFrontPagination","nzShowPagination","nzLoading"],[3,"nzWidth","nzEllipsis"],[1,"table-body"]],template:function(e,i){e&1&&(N(),s(0,"div",1,0)(2,"nz-table",2)(3,"thead")(4,"tr"),I(5,An,2,3,"th",3,Ln),c()(),s(7,"tbody",4),E(8),c()()()),e&2&&(r(2),_("nzData",i.data())("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",i.loading()),r(3),D(i.columns()))},dependencies:[pt,ct,rt,at,mt,st,dt,lt,oe],styles:[".scrollable-table[_ngcontent-%COMP%]{width:100%;height:100%;min-height:0;border-radius:8px;border:1px solid #f0f0f0;overflow:auto}.scrollable-table[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px;height:6px}.scrollable-table[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f0f0f0;border-radius:3px}.scrollable-table[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#d9d9d9;border-radius:3px}.scrollable-table[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#bfbfbf} .table-body>tr{cursor:pointer} .table-body>tr:hover>td{background-color:#f5f5f5} .table-body>tr.selected>td:first-child{border-left:4px solid #91d5ff} .table-body>tr.selected:hover>td{background-color:#e6f7ff} .table-body>tr.selected>td{background-color:#e6f7ff} .nz-disable-td.ant-table-cell{border-bottom:0} .ant-table-thead.ng-star-inserted{position:sticky;top:0;z-index:100}"]})};var Vn=[[["","actions",""]],"*"],Bn=["[actions]","*"],$n=t=>({maxHeight:t});function Hn(t,n){if(t&1&&X(0,"nz-badge",5),t&2){let e=l(2);_("nzCount",e.count())}}function jn(t,n){if(t&1&&(s(0,"div",1)(1,"h2",4),f(2),v(3,Hn,1,1,"nz-badge",5),c(),E(4),c()),t&2){let e=l();r(2),k(" ",e.title()," "),r(),x(e.count()!==null?3:-1)}}function Qn(t,n){if(t&1&&(s(0,"div",3),f(1),c()),t&2){let e=l();r(),q(e.emptyText())}}function Un(t,n){t&1&&E(0,1)}var zt=class t{title=P();maxHeight=P();count=P(null);emptyStatus=P(!1);emptyText=P("\u6682\u65E0\u6570\u636E");static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-detail-item-card"]],inputs:{title:[1,"title"],maxHeight:[1,"maxHeight"],count:[1,"count"],emptyStatus:[1,"emptyStatus"],emptyText:[1,"emptyText"]},ngContentSelectors:Bn,decls:5,vars:6,consts:[[1,"detail-item"],[1,"actions"],[1,"content"],[1,"empty"],[1,"wrap-title"],["nzStandalone","","nzShowZero","","nzColor","#eaeaea",3,"nzCount"]],template:function(e,i){e&1&&(N(Vn),s(0,"nz-card",0),v(1,jn,5,2,"div",1),s(2,"div",2),v(3,Qn,2,1,"div",3)(4,Un,1,0),c()()),e&2&&(Ue(Ge(4,$n,i.maxHeight())),r(),x(i.title()?1:-1),r(2),x(i.emptyStatus()?3:4))},dependencies:[Je,Xe,ot,it],styles:[".detail-item[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column}.detail-item[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{margin-bottom:12px;padding:0 4px 4px;display:flex;border-bottom:1px solid #f0f0f0}.detail-item[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .wrap-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:0;width:100%;font-size:18px;font-weight:700}[_nghost-%COMP%] .ant-card-body{min-height:0;height:100%;flex:1;display:flex;flex-direction:column}.content[_ngcontent-%COMP%]{overflow-y:auto;flex:1}.empty[_ngcontent-%COMP%]{font-size:.875rem;text-align:center;color:gray}[_nghost-%COMP%] .ant-card-bordered{border-radius:10px}"]})};var qn=["textEl"],Mt=["*"];function Gn(t,n){if(t&1&&X(0,"nz-icon",1),t&2){let e=l();_("nzType",e.nzIcon)}}function Wn(t,n){if(t&1){let e=W();s(0,"img",4),U("error",function(o){H(e);let a=l();return j(a.imgError(o))}),c()}if(t&2){let e=l();_("src",e.nzSrc,Be),le("srcset",e.nzSrcSet)("alt",e.nzAlt)("loading",e.nzLoading()||"eager")("fetchpriority",e.nzFetchPriority()||"auto")}}function Zn(t,n){if(t&1&&(s(0,"span",3,0),f(2),c()),t&2){let e=l();r(2),q(e.nzText)}}var Yn="avatar",Kn=(()=>{var m;let t,n=[],e=[],i,o=[],a=[],g,h=[],z=[];return m=class{_nzModuleName=Yn;nzShape=S(this,n,"circle");nzSize=(S(this,e),S(this,o,"default"));nzGap=(S(this,a),S(this,h,4));nzText=S(this,z);nzSrc;nzSrcSet;nzAlt;nzIcon;nzLoading=P();nzFetchPriority=P();nzError=new $e;hasText=!1;hasSrc=!0;hasIcon=!1;customSize=null;textEl;el=O(Ve).nativeElement;cdr=O(Y);constructor(){He(()=>this.calcStringSize())}imgError(b){this.nzError.emit(b),b.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.calcStringSize())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.calcStringSize()}calcStringSize(){if(!this.hasText||!this.textEl)return;let b=this.textEl.nativeElement,p=b.offsetWidth,u=this.el.getBoundingClientRect?.().width??0,C=this.nzGap*2<u?this.nzGap*2:8,d=u-C<p?(u-C)/p:1;b.style.transform=`scale(${d}) translateX(-50%)`,b.style.lineHeight=this.customSize||""}setSizeStyle(){typeof this.nzSize=="number"?this.customSize=Ye(this.nzSize):this.customSize=null,this.cdr.markForCheck()}},(()=>{let b=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[K()],i=[K()],g=[K()],G(null,null,t,{kind:"field",name:"nzShape",static:!1,private:!1,access:{has:p=>"nzShape"in p,get:p=>p.nzShape,set:(p,u)=>{p.nzShape=u}},metadata:b},n,e),G(null,null,i,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:p=>"nzSize"in p,get:p=>p.nzSize,set:(p,u)=>{p.nzSize=u}},metadata:b},o,a),G(null,null,g,{kind:"field",name:"nzGap",static:!1,private:!1,access:{has:p=>"nzGap"in p,get:p=>p.nzGap,set:(p,u)=>{p.nzGap=u}},metadata:b},h,z),b&&Object.defineProperty(m,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:b})})(),ee(m,"\u0275fac",function(p){return new(p||m)}),ee(m,"\u0275cmp",y({type:m,selectors:[["nz-avatar"]],viewQuery:function(p,u){if(p&1&&B(qn,5),p&2){let C;R(C=F())&&(u.textEl=C.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(p,u){p&2&&(Z("width",u.customSize)("height",u.customSize)("line-height",u.customSize)("font-size",u.hasIcon&&u.customSize?u.nzSize/2:null,"px"),T("ant-avatar-lg",u.nzSize==="large")("ant-avatar-sm",u.nzSize==="small")("ant-avatar-square",u.nzShape==="square")("ant-avatar-circle",u.nzShape==="circle")("ant-avatar-icon",u.nzIcon)("ant-avatar-image",u.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:[2,"nzGap","nzGap",xe],nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon",nzLoading:[1,"nzLoading"],nzFetchPriority:[1,"nzFetchPriority"]},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[Q],ngContentSelectors:Mt,decls:4,vars:1,consts:[["textEl",""],[3,"nzType"],[3,"src"],[1,"ant-avatar-string"],[3,"error","src"]],template:function(p,u){p&1&&(N(),v(0,Gn,1,1,"nz-icon",1)(1,Wn,1,5,"img",2)(2,Zn,3,1,"span",3),E(3)),p&2&&x(u.nzIcon&&u.hasIcon?0:u.nzSrc&&u.hasSrc?1:u.nzText&&u.hasText?2:-1)},dependencies:[Me,ze],encapsulation:2,changeDetection:0})),m})(),Uo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-avatar-group"]],hostAttrs:[1,"ant-avatar-group"],exportAs:["nzAvatarGroup"],ngContentSelectors:Mt,decls:1,vars:0,template:function(i,o){i&1&&(N(),E(0))},encapsulation:2,changeDetection:0})}return t})(),qo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ne({type:t});static \u0275inj=te({imports:[Kn]})}return t})();var Xn=["viewerRef"],Ot=(t,n)=>n.id;function Jn(t,n){if(t&1){let e=W();s(0,"li")(1,"button",12),U("click",function(){let o=H(e).$implicit,a=l(3);return j(a.jumpToHeading(o.id))}),f(2),c()()}if(t&2){let e=n.$implicit,i=l(3);r(),Z("padding-left",(e.level-1)*12,"px"),T("is-active",i.activeTocId===e.id),le("data-toc-id",e.id),r(),k(" ",e.text," ")}}function ei(t,n){if(t&1&&(s(0,"aside",9)(1,"div",10),f(2,"On this page"),c(),s(3,"ul",11),I(4,Jn,3,6,"li",null,Ot),c()()),t&2){let e=l(2);r(4),D(e.tocItems)}}function ti(t,n){if(t&1){let e=W();s(0,"div",7)(1,"button",8),U("click",function(){H(e);let o=l();return j(o.toggleToc())}),f(2),c(),v(3,ei,6,0,"aside",9),c()}if(t&2){let e=l();T("is-collapsed",e.tocCollapsed),r(2),k(" ",e.tocCollapsed?"\u76EE\u5F55":"\u6536\u8D77\u76EE\u5F55"," "),r(),x(e.tocCollapsed?-1:3)}}function ni(t,n){if(t&1){let e=W();s(0,"li")(1,"button",12),U("click",function(){let o=H(e).$implicit,a=l(2);return j(a.jumpToHeading(o.id))}),f(2),c()()}if(t&2){let e=n.$implicit,i=l(2);r(),Z("padding-left",(e.level-1)*12,"px"),T("is-active",i.activeTocId===e.id),le("data-toc-id",e.id),r(),k(" ",e.text," ")}}function ii(t,n){if(t&1&&(s(0,"aside",4)(1,"div",10),f(2,"On this page"),c(),s(3,"ul",11),I(4,ni,3,6,"li",null,Ot),c()()),t&2){let e=l();r(4),D(e.tocItems)}}var bt=class t{imageService=O(gt);cdr=O(Y);viewerRef;content="";showToc=!0;tocVariant="inline";tocCollapsedByDefault=!1;tocItems=[];activeTocId=null;tocCollapsed=!1;headingElements=[];scrollContainer=null;scrollListener=null;ngOnChanges(n){(n.content||n.showToc||n.tocCollapsedByDefault||n.tocVariant)&&queueMicrotask(()=>this.buildToc())}onMarkdownReady(){this.buildToc()}ngOnDestroy(){this.teardownScrollTracking()}jumpToHeading(n){let i=this.viewerRef?.nativeElement?.querySelector(`#${CSS.escape(n)}`);if(!i)return;this.activeTocId=n,this.cdr.markForCheck(),queueMicrotask(()=>this.ensureActiveTocItemVisible());let o=this.scrollContainer instanceof HTMLElement?this.scrollContainer:null,a=16;if(o){let h=o.getBoundingClientRect(),z=i.getBoundingClientRect(),m=o.scrollTop+(z.top-h.top)-a;o.scrollTo({top:Math.max(0,m),behavior:"smooth"});return}let g=i.getBoundingClientRect().top+window.scrollY-88;window.scrollTo({top:Math.max(0,g),behavior:"smooth"})}toggleToc(){this.tocCollapsed=!this.tocCollapsed}onContentClick(n){let i=n.target?.closest("img");if(!i?.src)return;let o=this.viewerRef?.nativeElement,a=o?Array.from(o.querySelectorAll("img")):[i],g=a.map(m=>({src:m.currentSrc||m.src,alt:m.alt||void 0})).filter(m=>!!m.src),h=Math.max(0,a.findIndex(m=>m===i));if(g.length===0)return;let z=this.imageService.preview(g,{nzMaskClosable:!0,nzKeyboard:!0});h>0&&z.switchTo(h)}buildToc(){if(!this.showToc){this.tocItems=[],this.activeTocId=null,this.tocCollapsed=!0,this.teardownScrollTracking(),this.cdr.markForCheck();return}let n=this.viewerRef?.nativeElement;if(!n){this.tocItems=[],this.activeTocId=null,this.tocCollapsed=this.tocCollapsedByDefault,this.teardownScrollTracking(),this.cdr.markForCheck();return}let e=Array.from(n.querySelectorAll("h1, h2, h3")),i=new Map,o=[];for(let a=0;a<e.length;a+=1){let g=e[a],h=(g.textContent||"").trim();if(!h)continue;let z=Number(g.tagName.slice(1))||1,m=this.slugify(h)||`section-${a+1}`,L=i.get(m)??0;i.set(m,L+1),L>0&&(m=`${m}-${L+1}`),g.id=g.id||m,o.push({id:g.id,text:h,level:z})}this.tocItems=o,this.activeTocId=o[0]?.id??null,this.tocCollapsed=this.tocCollapsedByDefault,this.setupScrollTracking(n,e),this.cdr.markForCheck()}setupScrollTracking(n,e){if(this.teardownScrollTracking(),e.length===0)return;this.headingElements=e;let i=this.findScrollContainer(n);this.scrollContainer=i??window,this.scrollListener=()=>this.syncActiveHeading(),this.scrollContainer.addEventListener("scroll",this.scrollListener,{passive:!0}),window.addEventListener("resize",this.scrollListener,{passive:!0}),this.syncActiveHeading()}teardownScrollTracking(){this.scrollListener&&(this.scrollContainer?.removeEventListener("scroll",this.scrollListener),window.removeEventListener("resize",this.scrollListener)),this.headingElements=[],this.scrollContainer=null,this.scrollListener=null}syncActiveHeading(){if(this.headingElements.length===0)return;let n=96,e=this.headingElements[0],i=this.scrollContainer instanceof HTMLElement?this.scrollContainer:null;if(i){let o=i.getBoundingClientRect(),a=i.scrollTop+n;Math.max(i.scrollHeight-i.clientHeight,0)-i.scrollTop<=2&&(e=this.headingElements[this.headingElements.length-1]);for(let z of this.headingElements)if(z.getBoundingClientRect().top-o.top+i.scrollTop<=a)e=z;else break}else for(let o of this.headingElements)if(o.getBoundingClientRect().top<=n)e=o;else break;!e.id||e.id===this.activeTocId||(this.activeTocId=e.id,this.cdr.markForCheck(),queueMicrotask(()=>this.ensureActiveTocItemVisible()))}ensureActiveTocItemVisible(){let n=this.viewerRef?.nativeElement;if(!n||!this.activeTocId)return;let e=n.querySelector(`.markdown-toc__item[data-toc-id="${CSS.escape(this.activeTocId)}"]`);if(!e)return;let i=e.closest(".markdown-toc--floating, .markdown-toc");if(!i)return;e.scrollIntoView({block:"nearest",inline:"nearest"});let o=e.offsetTop,a=o+e.offsetHeight,g=i.scrollTop,h=g+i.clientHeight;o<g?i.scrollTop=Math.max(o-8,0):a>h&&(i.scrollTop=a-i.clientHeight+8)}findScrollContainer(n){let e=n.parentElement;for(;e;){let o=getComputedStyle(e).overflowY;if((o==="auto"||o==="scroll")&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return null}slugify(n){return n.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\u4e00-\u9fa5-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-markdown-viewer"]],viewQuery:function(e,i){if(e&1&&B(Xn,7),e&2){let o;R(o=F())&&(i.viewerRef=o.first)}},inputs:{content:"content",showToc:"showToc",tocVariant:"tocVariant",tocCollapsedByDefault:"tocCollapsedByDefault"},features:[Q],decls:7,vars:6,consts:[["viewerRef",""],[1,"markdown-viewer","markdown-body",3,"click"],[1,"markdown-layout"],[1,"markdown-toc-floating",3,"is-collapsed"],[1,"markdown-toc"],[1,"markdown-content"],[3,"ready","data","clipboard"],[1,"markdown-toc-floating"],["type","button",1,"markdown-toc-floating__toggle",3,"click"],[1,"markdown-toc","markdown-toc--floating"],[1,"markdown-toc__title"],[1,"markdown-toc__list"],["type","button",1,"markdown-toc__item",3,"click"]],template:function(e,i){if(e&1){let o=W();s(0,"div",1,0),U("click",function(g){return H(o),j(i.onContentClick(g))}),s(2,"div",2),v(3,ti,4,4,"div",3),v(4,ii,6,0,"aside",4),s(5,"div",5)(6,"markdown",6),U("ready",function(){return H(o),j(i.onMarkdownReady())}),c()()()()}e&2&&(r(2),T("has-toc",i.showToc&&i.tocItems.length>0&&i.tocVariant==="inline"),r(),x(i.showToc&&i.tocItems.length>0&&i.tocVariant==="floating"?3:-1),r(),x(i.showToc&&i.tocItems.length>0&&i.tocVariant==="inline"?4:-1),r(2),_("data",i.content)("clipboard",!0))},dependencies:[oe,ht,ut,_t],styles:['[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%]{font-size:14px;line-height:1.8;color:var(--text-primary, #262626);word-break:break-word}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-layout[_ngcontent-%COMP%]{display:block;position:relative}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-layout.has-toc[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-content[_ngcontent-%COMP%]{min-width:0;order:1;display:flow-root}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating[_ngcontent-%COMP%]{position:sticky;top:8px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:8px;float:right;clear:right;margin:0 0 8px 16px;width:fit-content}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%]{height:30px;min-width:64px;padding:0 10px;border:1px solid var(--border-color-soft, #d9dde6);border-radius:999px;background:var(--surface-elevated, rgba(255, 255, 255, .92));color:var(--text-secondary, #475569);font-size:12px;line-height:28px;cursor:pointer;box-shadow:0 6px 16px #0f172a1a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%]:hover{color:var(--text-primary, #0f172a)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%]{width:220px;max-height:min(55vh,420px);overflow:auto;margin:0;padding:10px 0 10px 14px;border-radius:14px;border:1px solid var(--border-color-soft, #e5e6eb);background:var(--surface-elevated, rgba(255, 255, 255, .96));box-shadow:0 14px 28px #0f172a29;position:static}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc.markdown-toc--floating[_ngcontent-%COMP%]{position:static;top:auto;order:initial;border-left:0;padding-left:14px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc[_ngcontent-%COMP%]{margin:0;padding:6px 0 6px 18px;border-left:1px solid var(--border-color-soft, #e5e6eb);position:sticky;top:76px;order:2;min-width:0;max-height:min(68vh,calc(100vh - 140px));overflow:auto}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--text-heading, #1f2937)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:2px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]{position:relative;width:100%;min-height:30px;border:0;border-radius:0;background:transparent;color:var(--text-muted, #64748b);text-align:left;font-size:13px;line-height:1.45;padding:4px 8px 4px 10px;cursor:pointer;white-space:normal;word-break:break-word;overflow-wrap:anywhere}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover{background:transparent;color:var(--text-primary, #0f172a)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%]{color:var(--primary-500, #2563eb);font-weight:600}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%]:after{content:"";position:absolute;left:2px;top:7px;bottom:7px;width:2px;border-radius:999px;background:var(--primary-500, #2563eb)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]{padding-left:10px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h1, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h2, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h3, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h4, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h5, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h6{margin:1.2em 0 .6em;font-weight:600;line-height:1.4;word-break:break-word;overflow-wrap:anywhere}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h1{font-size:28px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h2{font-size:24px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h3{font-size:20px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h1, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h2, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h3, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h4, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h5, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h6{scroll-margin-top:88px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] p{margin:0 0 12px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] ul, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] ol{margin:0 0 12px;padding-left:24px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] li{margin:4px 0}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] blockquote{margin:0 0 12px;padding:8px 12px;color:#595959;border-left:4px solid #d9d9d9;background:#fafafa}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] pre{overflow:auto;padding:12px 14px;border-radius:8px;background:#f6f8fa;border:1px solid var(--border-color-soft, #e5e6eb)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] code{font-family:Consolas,Courier New,monospace}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] :not(pre)>code{padding:2px 6px;border-radius:6px;background:var(--bg-subtle, #f5f7fa);border:1px solid var(--border-color-soft, #e5e6eb);color:var(--text-primary, #262626);font-size:13px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] pre code{background:transparent;border:0;padding:0;color:inherit;font-size:13px;line-height:1.7}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] table{width:100%;margin:0 0 12px;border-collapse:collapse}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] th, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] td{padding:8px 10px;border:1px solid #e5e6eb;text-align:left}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] img{display:block;max-width:100%;width:auto;max-height:min(32vh,100px);margin:12px 0;border-radius:10px;object-fit:contain;border:1px solid var(--border-color-soft, #e5e6eb);background:var(--bg-elevated, #fff);cursor:zoom-in;box-shadow:0 4px 12px #0f172a14}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] a{color:#1677ff;text-decoration:none}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] a:hover{text-decoration:underline}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] pre, html[data-theme="dark"] [_nghost-%COMP%] pre{background:#0f172a;border-color:#94a3b83d}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] :not(pre)>code, html[data-theme="dark"] [_nghost-%COMP%] :not(pre)>code{background:#94a3b824;border-color:#94a3b83d;color:#e2e8f0}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%]{border-color:#94a3b83d;background:transparent}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%]{border-color:#94a3b847;background:#162033!important;box-shadow:0 14px 28px #02061773}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%]{border-color:#94a3b84d!important;background:#162033!important;color:#e2e8f0!important;box-shadow:0 10px 22px #0206176b}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%]{color:#e2e8f0}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]{color:#cbd5e1}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, html.dark [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover{color:#f1f5f9}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%]{color:#60a5fa}@media (max-width: 1024px){[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-layout.has-toc[_ngcontent-%COMP%]{grid-template-columns:1fr}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc[_ngcontent-%COMP%]{position:static;margin-bottom:12px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating[_ngcontent-%COMP%]{position:static;margin-bottom:8px;align-items:flex-start}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%]{width:100%;max-height:none}}'],changeDetection:0})};export{on as a,ln as b,Li as c,vt as d,On as e,to as f,oi as g,ri as h,ai as i,li as j,si as k,ci as l,di as m,mi as n,pi as o,gi as p,zt as q,Kn as r,Uo as s,qo as t,ui as u,hi as v,Ci as w,bt as x,io as y,oo as z,ro as A,ao as B,xt as C,wt as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ga as V,Ha as R,a as K,pb as H,qb as G,ra as Q,ta as $}from"./chunk-VZYJ3MSW.js";import{$b as P,Fb as O,Fc as S,Gb as W,Gc as _,Hc as j,Ic as T,Jc as b,Kc as k,Lb as w,Lc as Z,Oa as v,Ub as Y,Wb as f,Yb as g,_b as M,a as L,ac as I,bc as p,cc as d,dc as c,ec as x,f as D,ic as A,jc as N,nb as s,nc as q,oa as U,r as B,s as C,sa as y,uc as l,vc as F,wc as E,yd as m,zd as J}from"./chunk-4BRW6LCZ.js";function an(t,r){if(t&1&&(d(0,"p",3),b(1),c()),t&2){let n=r.$implicit,o=l(2).$index,e=l(2);_("current",n===e.countArray[o]),s(),Z(" ",n," ")}}function rn(t,r){if(t&1&&P(0,an,2,3,"p",2,M),t&2){let n=l(3);I(n.countSingleArray)}}function ln(t,r){if(t&1&&(d(0,"span",1),f(1,rn,2,0),c()),t&2){let n=r.$index,o=l(2);S("transform","translateY("+-o.countArray[n]*100+"%)"),p("nzNoAnimation",o.noAnimation),s(),g(!o.nzDot&&o.countArray[n]!==void 0?1:-1)}}function sn(t,r){if(t&1&&P(0,ln,2,4,"span",0,M),t&2){let n=l();I(n.maxNumberArray)}}function zn(t,r){if(t&1&&b(0),t&2){let n=l();Z(" ",n.nzOverflowCount,"+ ")}}var X=["*"];function un(t,r){if(t&1&&(A(0),b(1),N()),t&2){let n=l(2);s(),k(n.nzText)}}function pn(t,r){if(t&1&&(x(0,"span",1),d(1,"span",2),w(2,un,2,1,"ng-container",0),c()),t&2){let n=l();j(n.mergedStyle),T((n.nzStatus||n.presetColor)&&"ant-badge-status-"+(n.nzStatus||n.presetColor)),s(2),p("nzStringTemplateOutlet",n.nzText)}}function dn(t,r){if(t&1&&x(0,"nz-badge-sup",3),t&2){let n=l(2);p("isPresetColor",n.nzStatus||n.presetColor)("nzColor",n.nzStatus||n.presetColor||n.nzColor)("nzOffset",n.nzOffset)("nzSize",n.nzSize)("nzTitle",n.nzTitle)("nzStyle",n.mergedStyle)("nzDot",n.nzDot)("nzCount",n.nzCount)("nzOverflowCount",n.nzOverflowCount)("disableAnimation",!!(n.nzStandalone||n.nzStatus||n.presetColor||n.noAnimation!=null&&n.noAnimation.nzNoAnimation))("noAnimation",!!(n.noAnimation!=null&&n.noAnimation.nzNoAnimation))}}function cn(t,r){if(t&1&&(A(0),f(1,dn,1,11,"nz-badge-sup",3),N()),t&2){let n=l();s(),g(n.showSup?1:-1)}}function mn(t,r){if(t&1&&(A(0),d(1,"span",3),b(2),c(),N()),t&2){let n=l();s(2),k(n.nzText)}}var Cn=(()=>{class t{nzOffset;nzTitle;nzStyle=null;nzDot=!1;nzOverflowCount=99;disableAnimation=!1;nzCount;noAnimation=!1;nzSize="default";isPresetColor=!1;nzColor;maxNumberArray=[];countArray=[];count=0;countSingleArray=[0,1,2,3,4,5,6,7,8,9];generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("").map((n,o)=>`${n}-${o}`)}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(n){let{nzOverflowCount:o,nzCount:e}=n;e&&typeof e.currentValue=="number"&&(this.count=Math.max(0,e.currentValue),this.countArray=this.count.toString().split("").map(h=>+h)),o&&this.generateMaxNumberArray()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=O({type:t,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:19,hostBindings:function(o,e){o&2&&(q("@.disabled",e.disableAnimation)("@zoomBadgeMotion",void 0),Y("title",e.nzTitle===null?"":e.nzTitle||e.nzCount),j(e.nzStyle),T(e.isPresetColor?"ant-badge-status-"+e.nzColor:""),S("right",e.nzOffset&&e.nzOffset[0]?-e.nzOffset[0]:null,"px")("margin-top",e.nzOffset&&e.nzOffset[1]?e.nzOffset[1]:null,"px"),_("ant-badge-count",!e.nzDot)("ant-badge-count-sm",e.nzSize==="small")("ant-badge-dot",e.nzDot)("ant-badge-multiple-words",e.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:[2,"nzOverflowCount","nzOverflowCount",J],disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize",isPresetColor:[2,"isPresetColor","isPresetColor",m],nzColor:"nzColor"},exportAs:["nzBadgeSup"],features:[v],decls:2,vars:1,consts:[[1,"ant-scroll-number-only",3,"nzNoAnimation","transform"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[1,"ant-scroll-number-only-unit",3,"current"],[1,"ant-scroll-number-only-unit"]],template:function(o,e){o&1&&f(0,sn,2,0)(1,zn,1,1),o&2&&g(e.count<=e.nzOverflowCount?0:1)},dependencies:[G],encapsulation:2,data:{animation:[H]},changeDetection:0})}return t})(),nn=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],fn="badge",gn=(()=>{var z;let t,r=[],n=[],o,e=[],h=[];return z=class{nzConfigService=y(Q);dir=y(K).valueSignal;noAnimation=y(G,{host:!0,optional:!0});_nzModuleName=fn;showSup=!1;presetColor=null;nzShowZero=!1;nzShowDot=!0;nzStandalone=!1;nzDot=!1;nzOverflowCount=C(this,r,99);nzColor=(C(this,n),C(this,e,void 0));nzStyle=(C(this,h),null);nzText=null;nzTitle;nzStatus;nzCount;nzOffset;nzSize="default";get mergedStyle(){return L({backgroundColor:!this.presetColor&&this.nzColor},this.nzStyle??{})}ngOnChanges(u){let{nzColor:i,nzShowDot:a,nzDot:tn,nzCount:en,nzShowZero:on}=u;i&&(this.presetColor=this.nzColor&&nn.indexOf(this.nzColor)!==-1?this.nzColor:null),(a||tn||en||on)&&(this.showSup=this.nzShowDot&&this.nzDot||typeof this.nzCount=="number"&&(this.nzCount>0||this.nzShowZero))}},(()=>{let u=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[$()],o=[$()],B(null,null,t,{kind:"field",name:"nzOverflowCount",static:!1,private:!1,access:{has:i=>"nzOverflowCount"in i,get:i=>i.nzOverflowCount,set:(i,a)=>{i.nzOverflowCount=a}},metadata:u},r,n),B(null,null,o,{kind:"field",name:"nzColor",static:!1,private:!1,access:{has:i=>"nzColor"in i,get:i=>i.nzColor,set:(i,a)=>{i.nzColor=a}},metadata:u},e,h),u&&Object.defineProperty(z,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u})})(),D(z,"\u0275fac",function(i){return new(i||z)}),D(z,"\u0275cmp",O({type:z,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:6,hostBindings:function(i,a){i&2&&_("ant-badge-status",a.nzStatus)("ant-badge-not-a-wrapper",!!(a.nzStandalone||(a.nzStatus||a.nzColor)&&!a.showSup&&!a.nzCount))("ant-badge-rtl",a.dir()==="rtl")},inputs:{nzShowZero:[2,"nzShowZero","nzShowZero",m],nzShowDot:[2,"nzShowDot","nzShowDot",m],nzStandalone:[2,"nzStandalone","nzStandalone",m],nzDot:[2,"nzDot","nzDot",m],nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],features:[v],ngContentSelectors:X,decls:3,vars:2,consts:[[4,"nzStringTemplateOutlet"],[1,"ant-badge-status-dot"],[1,"ant-badge-status-text"],[3,"isPresetColor","nzColor","nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzCount","nzOverflowCount","disableAnimation","noAnimation"]],template:function(i,a){i&1&&(F(),f(0,pn,3,5),E(1),w(2,cn,2,1,"ng-container",0)),i&2&&(g((a.nzStatus||a.nzColor)&&!a.showSup&&!a.nzCount?0:-1),s(2),p("nzStringTemplateOutlet",a.nzCount))},dependencies:[Cn,R,V],encapsulation:2,data:{animation:[H]},changeDetection:0})),z})(),Sn=(()=>{class t{nzColor;nzPlacement="end";nzText=null;presetColor=null;ngOnChanges(n){let{nzColor:o}=n;o&&(this.presetColor=this.nzColor&&nn.indexOf(this.nzColor)!==-1?this.nzColor:null)}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=O({type:t,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[v],ngContentSelectors:X,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(o,e){o&1&&(F(),E(0),d(1,"div",0),w(2,mn,3,1,"ng-container",1),x(3,"div",2),c()),o&2&&(s(),T(e.presetColor&&"ant-ribbon-color-"+e.presetColor),S("background-color",!e.presetColor&&e.nzColor),_("ant-ribbon-placement-end",e.nzPlacement==="end")("ant-ribbon-placement-start",e.nzPlacement==="start"),s(),p("nzStringTemplateOutlet",e.nzText),s(),S("color",!e.presetColor&&e.nzColor))},dependencies:[R,V],encapsulation:2,changeDetection:0})}return t})(),Pn=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=W({type:t});static \u0275inj=U({imports:[gn,Sn]})}return t})();export{gn as a,Pn as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./chunk-WUA5JFDD.js";import"./chunk-KRYMOHYF.js";import{Gb as n,oa as e}from"./chunk-4BRW6LCZ.js";var m=[{path:"",loadComponent:()=>import("./chunk-
|
|
1
|
+
import{h as t}from"./chunk-WUA5JFDD.js";import"./chunk-KRYMOHYF.js";import{Gb as n,oa as e}from"./chunk-4BRW6LCZ.js";var m=[{path:"",loadComponent:()=>import("./chunk-YV6QPLF5.js").then(o=>o.AboutComponent)},{path:"feedback",loadComponent:()=>import("./chunk-TS5ZQYYY.js").then(o=>o.FeedbackComponent)}],i=class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=n({type:o});static \u0275inj=e({imports:[t.forChild(m),t]})};export{i as AboutRoutingModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ie,b as Ae}from"./chunk-PY3AUTHC.js";import{a as Te,b as Ne,c as Ve,d as Re}from"./chunk-NNOWADVM.js";import{c as ke,e as Oe,h as Se}from"./chunk-RMIYLAEM.js";import{g as ue,h as me,i as fe,k as he,l as ge}from"./chunk-U2YWR3HF.js";import{e as Ee,i as Z,j as we,k as R,m as De}from"./chunk-K6C5ZIV2.js";import{$b as Fe,Db as _e,Ea as se,Fa as ae,Fb as Pe,Jb as be,Na as le,Oa as pe,Qa as ce,Ra as de,Tb as ve,Xb as Ce,Yb as xe,Zb as ze,ac as ye,dc as Me,fc as je}from"./chunk-VZYJ3MSW.js";import{e as re}from"./chunk-WUA5JFDD.js";import{n as oe,u as H}from"./chunk-KRYMOHYF.js";import{$b as k,B as J,Ec as G,Fb as X,Ha as g,Jc as y,Lb as ee,Lc as S,Mc as ie,Oc as T,Pc as N,Qc as V,Uc as ne,Wb as L,Yb as q,Zb as te,a as U,ac as O,b as $,bc as b,cc as s,dc as a,ec as f,ic as W,id as z,jc as K,lc as j,na as E,nb as l,rc as v,sa as P,uc as _,y as Y,ya as u,za as m,zb as Q}from"./chunk-4BRW6LCZ.js";var w=class o{api=P(R);ls(e,t=!1){let i=new H().set("path",e).set("showSystem",t?"1":"0");return this.api.get("/api/fs/ls",i)}mkdir(e,t){return this.api.post("/api/fs/mkdir",{path:e,name:t})}pathExists(e){let t=new H().set("path",e);return this.api.get("/api/fs/path-exists",t).pipe(J(i=>i.exists))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=E({token:o,factory:o.\u0275fac,providedIn:"root"})};var A=class o{fsApi=P(w);localState=P(we);path=g("D:\\");currentPath=g("");entries=g([]);reloading=g(!1);isEditingPath=g(!1);showSystemFolders=g(!1);isCreateFolderModalVisible=g(!1);newFolderName=g("");segments=z(()=>{let e=this.currentPath()||this.path()||"";return this.buildSegments(e)});isRoot=z(()=>{let e=(this.currentPath()||this.path()||"").trim();if(!e||/^\\\\[^\\]+\\[^\\]+$/.test(e.replaceAll("/","\\")))return!0;let t=e.replaceAll("/","\\");return/^[a-zA-Z]:\\?$/.test(t)?!0:e.replaceAll("\\","/")==="/"});canUp=z(()=>!this.reloading()&&!this.isRoot());favorites=g(this.normalizeFavorites(this.localState.get(Z.fs.explorer.favorites,[])));isCurFavorited=z(()=>{let e=this.normalizePath(this.currentPath()||this.path()||"");return e?this.favorites().some(t=>t.path===e):!1});toggleFavoriteCurrent(){let e=this.normalizePath(this.currentPath()||this.path()||"");if(!e)return;let t=this.favorites(),i=t.findIndex(r=>r.path===e),n;i>=0?n=t.slice(0,i).concat(t.slice(i+1)):n=[{path:e,label:this.buildFavoriteLabel(e),createdAt:Date.now()},...t],n=this.normalizeFavorites(n),this.favorites.set(n),this.persistFavorites(n)}openFavorite(e){e?.path&&(this.path.set(e.path),this.load())}removeFavorite(e){let t=this.normalizeFavorites(this.favorites().filter(i=>i.path!==e.path));this.favorites.set(t),this.persistFavorites(t)}clearFavorites(){this.favorites.set([]),this.persistFavorites([])}persistFavorites(e){this.localState.set(Z.fs.explorer.favorites,e)}normalizeFavorites(e){let t=new Map;for(let i of e||[]){let n=this.normalizePath(i?.path||"");n&&t.set(n,{path:n,label:String(i?.label||this.buildFavoriteLabel(n)).trim(),createdAt:Number(i?.createdAt||Date.now())})}return Array.from(t.values()).sort((i,n)=>n.createdAt-i.createdAt)}buildFavoriteLabel(e){let t=e.replaceAll("/","\\");if(/^[a-zA-Z]:\\?$/.test(t))return t.slice(0,2);if(/^\\\\[^\\]+\\[^\\]+$/.test(t))return t;if(/^\\\\/.test(t)){let r=t.split("\\").filter(Boolean);return r[r.length-1]||t}let i=e.replaceAll("\\","/");if(i==="/")return"/";let n=i.split("/").filter(Boolean);return n[n.length-1]||i}load(e=!1){let t=(this.path()||"").trim();if(!t)return;let i=(this.currentPath()||"").trim();if(i&&this.normalizePath(i)===this.normalizePath(t)&&this.entries().length&&!e){this.isEditingPath.set(!1);return}this.reloading.set(!0),this.isEditingPath.set(!1),this.fsApi.ls(t,this.showSystemFolders()).subscribe({next:n=>{this.currentPath.set(n.path),this.entries.set(n.entries),this.path.set(n.path)},error:()=>{this.reloading.set(!1)},complete:()=>{this.reloading.set(!1)}})}toggleShowSystemFolders(){this.showSystemFolders.update(e=>!e),this.load()}editPath(){this.isEditingPath.update(e=>!e)}open(e){e.type==="dir"&&(this.path.set(e.fullPath),this.load())}up(){if(!this.canUp())return;let e=(this.currentPath()||this.path()||"").trim();if(!e)return;let t=this.normalizePath(e),i=t.replaceAll("/","\\"),n=/^\\\\[^\\]+\\[^\\]+/.test(i),r=/^[a-zA-Z]:\\/.test(i),x=n||r?"\\":"/";if(n){let d=i.match(/^\\\\([^\\]+)\\([^\\]+)(?:\\(.*))?$/);if(!d)return;let p=`\\\\${d[1]}\\${d[2]}`;if(i===p)return;let F=i.lastIndexOf("\\"),D=F<=p.length?p:i.slice(0,F);if(this.normalizePath(D)===this.normalizePath(this.currentPath()))return;this.path.set(D),this.load();return}if(r){let d=i.lastIndexOf("\\");if(d<=2){let F=`${i.slice(0,2)}\\`;if(this.normalizePath(F)===this.normalizePath(this.currentPath()))return;this.path.set(F),this.load();return}let p=i.slice(0,d);if(this.normalizePath(p)===this.normalizePath(this.currentPath()))return;this.path.set(p),this.load();return}let h=t.replaceAll("\\","/");if(h==="/")return;let C=h.lastIndexOf("/"),M=C<=0?"/":h.slice(0,C);this.normalizePath(M)!==this.normalizePath(this.currentPath())&&(this.path.set(M),this.load())}jumpTo(e){e.disabled||(this.path.set(e.fullPath),this.load())}openCreateFolderModal(){this.newFolderName.set(""),this.isCreateFolderModalVisible.set(!0)}cancelCreateFolder(){this.isCreateFolderModalVisible.set(!1),this.newFolderName.set("")}confirmCreateFolder(){let e=(this.newFolderName()||"").trim();if(!e)return;let t=this.currentPath()||this.path();this.fsApi.mkdir(t,e).subscribe(()=>{this.isCreateFolderModalVisible.set(!1),this.newFolderName.set(""),this.load(!0)})}buildSegments(e){let t=(e||"").trim();if(!t)return[];let i=/^[a-zA-Z]:[\\/]/.test(t)||/^[a-zA-Z]:$/.test(t),n=i?"\\":"/",r=i?t.replaceAll("/","\\"):t.replaceAll("\\","/"),c=i?r.slice(0,2):"/",x=r;if(i){let p=r.match(/^([a-zA-Z]:)(?:[\\\/])?(.*)$/);p&&(c=p[1],x=p[2]||"")}else x=r.startsWith("/")?r.slice(1):r;let h=x.split(i?/[\\]+/:/[\/]+/).filter(Boolean),C=[],M=i?`${c}\\`:"/";C.push({key:"root",label:c,fullPath:M,disabled:h.length===0});let d=M;for(let p=0;p<h.length;p++){let F=h[p];d=d.endsWith(n)?d+F:d+n+F;let D=p===h.length-1,$e=D?d:d+n;C.push({key:`${p}-${F}`,label:F,fullPath:$e,disabled:D})}return C}normalizePath(e){let t=(e||"").trim();if(!t)return"";let i=/^\\\\[^\\]+\\[^\\]+/.test(t.replaceAll("/","\\")),n=/^[a-zA-Z]:([\\/]|$)/.test(t),r=i||n,c=r?t.replaceAll("/","\\"):t.replaceAll("\\","/");if(n){let x=c.slice(0,2);if(c===x||c===`${x}\\`)return`${x}\\`}return!r&&c==="/"?"/":(c=c.replace(/[\\\/]+$/,""),c)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=E({token:o,factory:o.\u0275fac,providedIn:"root"})};var qe=(o,e)=>e.path,We=(o,e)=>e.key;function Ke(o,e){if(o&1){let t=j();s(0,"div",6)(1,"nz-input-wrapper")(2,"input",27),V("ngModelChange",function(n){u(t);let r=_();return N(r.fs.path,n)||(r.fs.path=n),m(n)}),v("keyup.enter",function(){u(t);let n=_();return m(n.fs.load())}),a(),s(3,"button",28),f(4,"nz-icon",29),a()()()}if(o&2){let t=_();l(2),T("ngModel",t.fs.path)}}function Ge(o,e){if(o&1){let t=j();s(0,"div",31)(1,"button",32),v("click",function(){let n=u(t).$implicit,r=_(2);return m(r.fs.jumpTo(n))}),y(2),a()()}if(o&2){let t=e.$implicit;l(2),S(" ",t.label," ")}}function He(o,e){if(o&1){let t=j();s(0,"div",7)(1,"div",30),k(2,Ge,3,1,"div",31,We),a(),s(4,"button",32),v("click",function(){u(t);let n=_();return m(n.fs.editPath())}),f(5,"nz-icon",33),a()()}if(o&2){let t=_();l(2),O(t.fs.segments())}}function Ze(o,e){if(o&1&&f(0,"nz-icon",38),o&2){let t=_().$implicit;b("nzType","proj:"+t.projectKind)}}function Ye(o,e){if(o&1){let t=j();s(0,"div",34),v("click",function(){let n=u(t).$implicit,r=_();return m(r.fs.open(n))}),s(1,"div",35),f(2,"span",36),a(),s(3,"div",37),y(4),L(5,Ze,1,1,"nz-icon",38),a()()}if(o&2){let t=e.$implicit;l(2),b("nzType",t.type==="dir"?"folder":"file"),l(),b("title",ne(t.name)),l(),S(" ",t.name," "),l(),q(t.projectKind&&t.projectKind!="unknown"?5:-1)}}function Je(o,e){if(o&1){let t=j();s(0,"li",19),f(1,"nz-icon",39),s(2,"button",40),v("click",function(){let n=u(t).$implicit,r=_();return m(r.fs.openFavorite(n))}),y(3),a()()}if(o&2){let t=e.$implicit;l(2),b("nz-tooltip",t.path),l(),S(" ",t.label," ")}}function Qe(o,e){if(o&1){let t=j();W(0),s(1,"div",41)(2,"label"),y(3,"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A "),a(),s(4,"nz-input-wrapper")(5,"input",42),V("ngModelChange",function(n){u(t);let r=_();return N(r.fs.newFolderName,n)||(r.fs.newFolderName=n),m(n)}),a(),f(6,"nz-icon",43)(7,"nz-icon",44),a(),s(8,"div",45),y(9),a()(),K()}if(o&2){let t=_();l(5),T("ngModel",t.fs.newFolderName),l(4),ie("",t.fs.currentPath(),"",t.fs.newFolderName())}}function Xe(o,e){if(o&1){let t=j();W(0),s(1,"button",46),v("click",function(){u(t);let n=_();return m(n.fs.isCreateFolderModalVisible.set(!1))}),y(2,"\u53D6\u6D88"),a(),s(3,"button",47),v("click",function(){u(t);let n=_();return m(n.fs.confirmCreateFolder())}),f(4,"nz-icon",48),y(5," \u521B\u5EFA "),a(),K()}if(o&2){let t=_();l(3),b("disabled",!t.fs.newFolderName().trim())}}var Be=class o{constructor(e){this.fs=e}ngOnInit(){this.fs.load()}static \u0275fac=function(t){return new(t||o)(Q(A))};static \u0275cmp=X({type:o,selectors:[["app-fs-explorer"]],decls:35,vars:10,consts:[["collectMenu","nzDropdownMenu"],["moreMenu","nzDropdownMenu"],[1,"page"],[1,"toolbar"],["nz-button","","nz-tooltip","\u4E0A\u4E00\u5C42",3,"click","disabled"],["nzType","up","nzTheme","outline"],[1,"path-edit"],[1,"current-path"],["nz-button","","nzType","primary","nz-tooltip","\u5237\u65B0",3,"click","nzLoading"],["nzTheme","outline",3,"nzType"],["nz-button","","nz-tooltip","\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF",3,"click"],["nzType","star",3,"nzTheme"],["nz-button","","nz-tooltip","\u6536\u85CF\u7684\u6587\u4EF6\u5939","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nzType","caret-down","nzTheme","outline"],["nz-button","","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click","nz-tooltip","\u66F4\u591A\u64CD\u4F5C",3,"nzDropdownMenu"],["nzType","more","nzTheme","outline"],[1,"folders"],[1,"folder-item"],["nz-menu",""],["nz-menu-item",""],["nz-menu-item","",3,"click"],["nzType","folder-add","nzTheme","fill",2,"font-size","16px"],["nzType","eye","nzTheme","fill",2,"font-size","16px"],[2,"margin-left","8px",3,"ngModel"],["nzTitle","\u65B0\u5EFA\u6587\u4EF6\u5939",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],["nz-input","","nzSize","small","placeholder","\u8F93\u5165\u6587\u4EF6\u5939\u5B8C\u6574\u8DEF\u5F84\uFF0C\u5982 D:\\work \u6216 /Users/xx",3,"ngModelChange","keyup.enter","ngModel"],["nzInputSuffix","","nz-button","","nzType","link"],["nzInputSuffix","","nzType","edit","nzTheme","outline"],[1,"path-value"],[1,"path-part"],["nz-button","","nzType","link",3,"click"],["nzType","edit","nzTheme","outline"],[1,"folder-item",3,"click"],[1,"icon"],["nz-icon","",3,"nzType"],[1,"name",3,"title"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],["nzType","folder","nzTheme","fill"],["nz-button","","nzType","link",3,"click","nz-tooltip"],[1,"modal-body"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],["nzInputSuffix","","nzType","question-circle","nzTheme","outline","nz-tooltip","\u4F60\u53EF\u4EE5\u4F7F\u7528\u8DEF\u5F84\u5206\u9694\u7B26\u6765\u521B\u5EFA\u5D4C\u5957\u7684\u6587\u4EF6\u5939","nzTooltipTrigger","hover","nzTooltipPlacement","right"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","folder-add","nzTheme","fill"]],template:function(t,i){if(t&1){let n=j();s(0,"div",2)(1,"div",3)(2,"button",4),v("click",function(){return u(n),m(i.fs.up())}),f(3,"nz-icon",5),a(),L(4,Ke,5,1,"div",6)(5,He,6,0,"div",7),s(6,"button",8),v("click",function(){return u(n),m(i.fs.load(!0))}),f(7,"nz-icon",9),a(),s(8,"button",10),v("click",function(){return u(n),m(i.fs.toggleFavoriteCurrent())}),f(9,"nz-icon",11),a(),s(10,"button",12),f(11,"nz-icon",13),a(),s(12,"button",14),f(13,"nz-icon",15),a()(),s(14,"div",16),k(15,Ye,6,5,"div",17,te),a()(),s(17,"nz-dropdown-menu",null,0)(19,"ul",18),k(20,Je,4,2,"li",19,qe),a()(),s(22,"nz-dropdown-menu",null,1)(24,"ul",18)(25,"li",20),v("click",function(){return u(n),m(i.fs.openCreateFolderModal())}),f(26,"nz-icon",21),y(27," \u65B0\u5EFA\u6587\u4EF6\u5939 "),a(),s(28,"li",20),v("click",function(){return u(n),m(i.fs.toggleShowSystemFolders())}),f(29,"nz-icon",22),y(30," \u662F\u5426\u9690\u85CF\u7CFB\u7EDF\u6587\u4EF6\u5939 "),f(31,"nz-switch",23),a()()(),s(32,"nz-modal",24),V("nzVisibleChange",function(c){return u(n),N(i.fs.isCreateFolderModalVisible,c)||(i.fs.isCreateFolderModalVisible=c),m(c)}),v("nzOnCancel",function(){return u(n),m(i.fs.isCreateFolderModalVisible.set(!1))}),ee(33,Qe,10,3,"ng-container",25)(34,Xe,6,1,"ng-container",26),a()}if(t&2){let n=G(18),r=G(23);l(2),b("disabled",!i.fs.canUp()),l(2),q(i.fs.isEditingPath()?4:5),l(2),b("nzLoading",i.fs.reloading()),l(),b("nzType",i.fs.reloading()?"loading":"reload"),l(2),b("nzTheme",i.fs.isCurFavorited()?"fill":"outline"),l(),b("nzDropdownMenu",n),l(2),b("nzDropdownMenu",r),l(3),O(i.fs.entries()),l(5),O(i.fs.favorites()),l(11),b("ngModel",i.fs.showSystemFolders()),l(),T("nzVisible",i.fs.isCreateFolderModalVisible),b("nzMaskClosable",!1)}},dependencies:[oe,ve,_e,Pe,be,ye,ze,Fe,Ce,xe,de,ce,le,pe,ae,se,je,Me,Re,Oe,ke,Te,Ve,Ne,Se,Ae,Ie,ge,he,fe,me],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.toolbar[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;padding:16px 0;flex:0 0 auto}.folders[_ngcontent-%COMP%]{flex:100% 1 1;height:0;overflow-x:hidden;overflow-y:auto;position:relative}.current-path[_ngcontent-%COMP%]{min-width:0;flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;height:34px}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%]{flex:auto 1 1;display:flex;flex-direction:row;align-items:stretch}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%] .path-part[_ngcontent-%COMP%]{flex:auto 0 0;border-left-width:2px;border-left-style:solid}.path-edit[_ngcontent-%COMP%]{flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;border:none;outline:none}.folder-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;position:relative}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin:0 4px;flex:auto 0 0}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:24px}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:100% 1 1;display:inline-flex;align-items:center;margin-left:16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:16px;margin-left:4px}.modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.default [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000000d9}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#fff}html.default [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.dark [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#ffffffd9}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#141414}html.dark [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}"]})};var B=class o{api=P(R);fs=P(w);async checkPathExists(e){return await Y(this.fs.pathExists(e))}detect(e){let t={rootPath:e};return this.api.post("/api/projects/detect",t)}async pickFolder(){return null}bootstrapByCli(e){return this.api.post("/api/projects/bootstrap/cli",{parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,packageManager:e.packageManager,overwriteIfExists:e.overwriteIfExists,skipOnboarding:e.skipOnboarding,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,cliFramework:e.cliFramework,cliTool:e.cliTool,cliArgs:e.cliArgs??[]})}bootstrapPickRoot(e){return this.api.post("/api/projects/bootstrap/pickRoot",e)}bootstrapByGit(e){return this.api.post("/api/projects/bootstrap/git",{repoUrl:e.repoUrl,parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,overwriteIfExists:e.overwriteIfExists,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,packageManager:e.packageManager,skipOnboarding:e.skipOnboarding??!0})}getProjectMembers(e){return this.api.hubRequestWithPrjId({projectId:e,path:"/members"})}list(){return this.api.get("/api/projects/list")}get(e){return this.api.get(`/api/projects/getInfo/${e}`)}check(e){let t={rootPath:e};return this.api.post("/api/projects/check",t)}createByPath(e){let t=e;return this.api.post("/api/projects/create",t)}checkImport(e){return this.api.post("/api/projects/checkImport",{root:e})}importByPath(e){let t=e;return this.api.post("/api/projects/import",t)}delete(e){return this.api.delete(`/api/projects/delete/${e}`)}update(e,t){return this.api.post(`/api/projects/update/${e}`,t)}setFavorite(e,t){let i={isFavorite:t};return this.api.post(`/api/projects/favorite/${e}`,i)}toggleFavorite(e){return this.api.post(`/api/projects/favorite/${e}/toggle`,{})}setLastOpened(e,t){let i={timestamp:t};return this.api.post(`/api/projects/lastOpened/${e}`,i)}openInEditor(e,t="code"){let i={editor:t};return this.api.post(`/api/projects/openInEditor/${e}`,i)}edit(e,t){let i=t;return this.api.post(`/api/projects/edit/${e}`,i)}updateAssets(e,t){let i={assets:t};return this.api.post(`/api/projects/updateAssets/${e}`,i)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=E({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ue=class o{modal=P(ue);notify=P(Ee);projectService=P(B);projectContext=P(De);router=P(re);projects=z(()=>this.projectContext.projects());keyword=g("");isEditModalVisible=g(!1);isEditSaving=g(!1);editingProject=g(null);filteredProjects=z(()=>{let e=this.keyword().trim().toLowerCase();return e?this.projects().filter(t=>t.name.toLowerCase().includes(e)):this.projects()});favoriteProjects=z(()=>this.filteredProjects().filter(e=>e.isFavorite));moreProjects=z(()=>this.filteredProjects().filter(e=>!e.isFavorite));recentProjects=z(()=>this.projects().slice().sort((e,t)=>{let i=new Date(e.lastOpened||0).getTime();return new Date(t.lastOpened||0).getTime()-i}).slice(0,5));selectProject(e){this.projectContext.setCurrentProject(e);let t=Date.now();this.projectContext.patchProject($(U({},e),{lastOpened:t})),this.projectService.setLastOpened(e.id,t).subscribe(),this.router.navigate(["/dashboard"])}openInEditor(e){this.projectService.openInEditor(e).subscribe({next:()=>{console.log("Opened project in editor:",e),this.notify.success("\u5DF2\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u9879\u76EE")}})}toggleFavorite(e){this.projectService.toggleFavorite(e).subscribe(t=>{this.projectContext.patchProject(t)})}getProjects(e){this.projectContext.loadProjects(e).subscribe()}setCurrentProjectById(e){this.projectContext.setCurrentProjectById(e)}isOpen(e){return this.projectContext.isOpen(e)}openEditModal(e){let t=e.env??{};this.editingProject.set({id:e.id,name:e.name??"",repoPageUrl:e.repoPageUrl??"",description:e.description??"",hubV2:{baseUrl:t.NGM_HUB_V2_BASE_URL||"http://192.168.1.31:7008",projectKey:t.NGM_HUB_V2_PROJECT_KEY||"",token:t.NGM_HUB_V2_TOKEN||""}}),this.isEditModalVisible.set(!0)}closeEditModal(){this.isEditModalVisible.set(!1),this.editingProject.set(null)}confirmEditProject(){if(this.isEditSaving()||!this.editingProject())return;let{id:e,name:t,description:i,repoPageUrl:n,hubV2:r}=this.editingProject();if(!e){this.notify.error("\u672A\u9009\u4E2D\u9700\u8981\u91CD\u547D\u540D\u7684\u9879\u76EE");return}if(!t)return;let c=i?.trim(),x=n?.trim(),h={baseUrl:r.baseUrl.trim(),projectKey:r.projectKey.trim(),token:r.token.trim()},C=this.projectContext.getProjectById(e),M=C?.env??{};if(C&&C.name===t&&C.description===c&&C.repoPageUrl===x&&(M.NGM_HUB_V2_BASE_URL??"")===h.baseUrl&&(M.NGM_HUB_V2_PROJECT_KEY??"")===h.projectKey&&(M.NGM_HUB_V2_TOKEN??"")===h.token){this.closeEditModal();return}this.isEditSaving.set(!0),this.projectService.edit(e,{name:t,description:c,repoPageUrl:x}).subscribe({next:()=>{let d=$(U({},C?.env??{}),{NGM_HUB_V2_BASE_URL:h.baseUrl,NGM_HUB_V2_PROJECT_KEY:h.projectKey,NGM_HUB_V2_TOKEN:h.token});this.projectService.update(e,{env:d}).subscribe({next:p=>{this.projectContext.patchProject(p),this.notify.success("\u4FEE\u6539\u6210\u529F"),this.isEditSaving.set(!1),this.closeEditModal()},error:p=>{this.notify.error(p?.message||"\u9879\u76EE\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25"),this.isEditSaving.set(!1)}})},error:d=>{this.notify.error(d?.message||"\u4FEE\u6539\u5931\u8D25"),this.isEditSaving.set(!1)}})}deleteProject(e){this.modal.confirm({nzTitle:"\u786E\u8BA4\u5220\u9664\u8BE5\u9879\u76EE\u5417\uFF1F",nzContent:"\u5220\u9664\u9879\u76EE\u53EA\u4F1A\u79FB\u9664\u9879\u76EE\u8BB0\u5F55\uFF0C\u4E0D\u4F1A\u5220\u9664\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u5939\u3002\u5982\u9700\u5220\u9664\u78C1\u76D8\u6587\u4EF6\uFF0C\u8BF7\u624B\u52A8\u64CD\u4F5C\u3002",nzOkText:"\u5220\u9664",nzCancelText:"\u53D6\u6D88",nzOkDanger:!0,nzOnOk:()=>{this.projectService.delete(e).subscribe({next:()=>{this.projectContext.removeProject(e),this.projectContext.currentProject()||this.notify.info("\u5F53\u524D\u6CA1\u6709\u9879\u76EE\uFF0C\u8BF7\u5148\u521B\u5EFA\u6216\u5BFC\u5165\u9879\u76EE"),this.notify.success("\u9879\u76EE\u5DF2\u5220\u9664")}})}})}static \u0275fac=function(t){return new(t||o)};static \u0275prov=E({token:o,factory:o.\u0275fac,providedIn:"root"})};export{w as a,A as b,Be as c,B as d,Ue as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as we,b as Te}from"./chunk-OUGN4APK.js";import{a as be,b as Ie}from"./chunk-HC5KLPHD.js";import{b as je}from"./chunk-WCHN62X6.js";import{a as Ne,b as Oe}from"./chunk-CO3CQHKV.js";import{b as le,c as se,d as pe,e as xe,g as De,h as ze}from"./chunk-TXAXE73U.js";import"./chunk-PB2LGZNW.js";import{d as Pe,k as ye,m as Me}from"./chunk-K6C5ZIV2.js";import{$b as _e,Db as me,Ea as ne,Fa as ie,Fb as ce,Jb as de,Na as oe,Qa as re,Ra as ae,Tb as ue,Xb as ge,Zb as fe,ac as Ce,dc as ve,fc as he}from"./chunk-VZYJ3MSW.js";import"./chunk-HFZLJHYR.js";import{h as V}from"./chunk-WUA5JFDD.js";import{i as te,n as E}from"./chunk-KRYMOHYF.js";import{$b as L,B as A,Ec as J,Fb as $,Gb as O,Ha as g,Jc as l,Kc as T,Lb as w,Lc as v,Oc as K,Pc as Q,Qc as X,Vb as U,Vc as Y,W as y,Wb as C,Yb as x,Zc as R,a as z,ac as W,b as P,bc as u,cc as o,dc as r,dd as Z,ec as m,ic as G,id as I,jc as H,jd as ee,kc as k,lc as M,na as q,nb as a,oa as N,rc as b,sa as _,uc as d,ya as h,za as D}from"./chunk-4BRW6LCZ.js";var j=class n{api=_(ye);getDeps(t){return this.api.get(`/api/deps/list/${t}`).pipe(A(e=>({items:[...e.dependencies,...e.devDependencies],meta:e.meta})))}install(t,e){return this.api.post(`/api/deps/install/${t}`,e)}uninstall(t,e){return this.api.post(`/api/deps/uninstall/${t}`,e)}installDevtools(t){return this.api.post(`/api/deps/devtools/install/${t}`,{tool:"devtools"})}getProjectNodeInfo(t){return this.api.post("/api/node-version/project-requirement",{projectPath:t})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})};var Fe=["class","component"],Se=n=>({$implicit:n,title:"\u8FD0\u884C\u4F9D\u8D56"}),ke=n=>({$implicit:n,title:"\u5F00\u53D1\u4F9D\u8D56"});function Re(n,t){if(n&1&&(o(0,"div",8),m(1,"span",15),o(2,"span",10),l(3,"Node \u7248\u672C\uFF1A"),r(),o(4,"span",11),l(5),r()()),n&2){let e,i=d(2);a(5),v(" ",((e=i.meta())==null?null:e.voltaConfig)||((e=i.meta())==null?null:e.enginesNode)," ")}}function Ve(n,t){if(n&1&&(o(0,"div",14),m(1,"span",15),o(2,"span",10),l(3,"\u63A8\u8350 Node \u7248\u672C\uFF1A"),r(),o(4,"span",11),l(5),r(),m(6,"span",16),r()),n&2){let e,i=d(2);a(5),v(" ",(e=i.nodeVersionInfo())==null?null:e.requiredVersion," "),a(),u("nz-tooltip","\u6839\u636E\u9879\u76EE\u6846\u67B6\u7248\u672C\u81EA\u52A8\u63A8\u8350")}}function Be(n,t){if(n&1&&(o(0,"div",6)(1,"div",8),m(2,"span",9),o(3,"span",10),l(4,"\u5305\u7BA1\u7406\u5668\uFF1A"),r(),o(5,"span",11),l(6),r()(),o(7,"div",8),m(8,"span",12),o(9,"span",10),l(10,"\u4ED3\u5E93\u72B6\u6001\uFF1A"),r(),o(11,"nz-tag",13),l(12),r()(),C(13,Re,6,1,"div",8)(14,Ve,7,2,"div",14),r()),n&2){let e,i,s,c,p,f=d();a(6),T(((e=f.meta())==null?null:e.packageManager)||"-"),a(2),u("nzType",(i=f.meta())!=null&&i.registryOnline?"cloud-server":"cloud"),a(3),u("nzColor",(s=f.meta())!=null&&s.registryOnline?"success":"error"),a(),v(" ",(c=f.meta())!=null&&c.registryOnline?"\u5728\u7EBF":"\u79BB\u7EBF"," "),a(),x((p=f.meta())!=null&&p.voltaConfig||(p=f.meta())!=null&&p.enginesNode?13:(p=f.nodeVersionInfo())!=null&&p.requiredVersion?14:-1)}}function Ae(n,t){n&1&&k(0)}function qe(n,t){n&1&&k(0)}function $e(n,t){n&1&&(o(0,"nz-tag",30),l(1,"\u5DF2\u5B89\u88C5"),r())}function Ue(n,t){n&1&&(o(0,"nz-tag",31),l(1,"\u672A\u5B89\u88C5"),r())}function Le(n,t){if(n&1){let e=M();o(0,"button",37),b("click",function(){h(e);let s=d().$implicit,c=d(2);return D(c.installOrUpdate(s))}),m(1,"nz-icon",38),r()}if(n&2){let e=d().$implicit,i=d(2);u("nzLoading",i.installing()[e.name])("nz-tooltip",e.hasUpdate?"\u66F4\u65B0\u5230\u6700\u65B0\u7248\u672C":"\u5B89\u88C5\u4F9D\u8D56")}}function We(n,t){if(n&1){let e=M();o(0,"button",39),b("nzOnConfirm",function(){h(e);let s=d().$implicit,c=d(2);return D(c.uninstall(s))}),m(1,"nz-icon",40),r()}if(n&2){let e=d().$implicit;u("nzPopconfirmTitle",Y("\u786E\u5B9A\u5378\u8F7D ",e.name,"\uFF1F")),a(),u("nz-tooltip","\u5378\u8F7D"+e.name)}}function Ge(n,t){if(n&1){let e=M();o(0,"div",19)(1,"div",21)(2,"div",22)(3,"div",23),m(4,"span",24),r(),o(5,"div",25)(6,"div",26),l(7),r(),o(8,"div",27)(9,"span"),l(10),r(),o(11,"span",28),l(12,"\xB7"),r(),o(13,"span"),l(14),r(),o(15,"span",28),l(16,"\xB7"),r(),o(17,"span"),l(18),r()()()(),o(19,"div",29),C(20,$e,2,0,"nz-tag",30)(21,Ue,2,0,"nz-tag",31),o(22,"a",32),b("click",function(){let s=h(e).$implicit,c=d(2);return D(c.openDetail(s))}),m(23,"span",33),l(24," \u67E5\u770B\u8BE6\u60C5 "),r()(),o(25,"div",34),C(26,Le,2,2,"button",35),C(27,We,2,3,"button",36),r()()()}if(n&2){let e=t.$implicit;a(7),T(e.name),a(3),v("\u7248\u672C ",e.current||"-"),a(4),v("\u8981\u6C42 ",e.required||"-"),a(4),v("\u6700\u65B0 ",e.latest||"-"),a(2),x(e.installed?20:21),a(6),x(e.hasUpdate||!e.installed?26:-1),a(),x(e.installed?27:-1)}}function He(n,t){n&1&&(o(0,"div",20),l(1,"\u65E0\u6570\u636E"),r())}function Je(n,t){if(n&1&&(o(0,"div",17),l(1),r(),o(2,"div",18),L(3,Ge,28,7,"div",19,U().trackByName,!0),C(5,He,2,0,"div",20),r()),n&2){let e=t.$implicit,i=t.title;a(),T(i),a(2),W(e),a(2),x(e.length===0?5:-1)}}var F=class n{api=_(j);msg=_(Pe);projectContext=_(Me);projectId=I(()=>this.projectContext.currentProjectId()||"");loading=g(!1);keyword=g("");items=g([]);meta=g(null);nodeVersionInfo=g(null);installing=g({});uninstalling=g({});runtimeItems=I(()=>this.filterItems(this.items().filter(t=>t.group==="dependencies")));devItems=I(()=>this.filterItems(this.items().filter(t=>t.group==="devDependencies")));runningCount=I(()=>this.items().filter(t=>t.hasUpdate).length);depsState=_(j);constructor(){ee(async()=>{this.refresh()})}filterItems(t){let e=this.keyword().trim().toLowerCase();return e?t.filter(i=>i.name.toLowerCase().includes(e)):t}refresh(){this.loading.set(!0),this.nodeVersionInfo.set(null),this.api.getDeps(this.projectId()).pipe(y(()=>this.loading.set(!1))).subscribe({next:({items:t,meta:e})=>{this.items.set(t),this.meta.set(e),!e?.voltaConfig&&!e?.enginesNode&&this.loadNodeVersionInfo()},error:t=>this.msg.error(t?.message||"\u52A0\u8F7D\u4F9D\u8D56\u5931\u8D25")})}loadNodeVersionInfo(){let t=this.projectContext.currentProject();t?.root&&this.api.getProjectNodeInfo(t.root).subscribe({next:e=>{this.nodeVersionInfo.set(e)},error:()=>{this.nodeVersionInfo.set(null)}})}openDetail(t){t.homepage?window.open(t.homepage,"_blank"):window.open(`https://www.npmjs.com/package/${encodeURIComponent(t.name)}`,"_blank")}installOrUpdate(t){let e=t.name;this.installing.set(P(z({},this.installing()),{[e]:!0}));let i=t.installed&&t.hasUpdate?"latest":"required",s=t.installed&&t.hasUpdate?"\u5DF2\u66F4\u65B0":"\u5DF2\u5B89\u88C5";this.api.install(this.projectId(),{name:t.name,group:t.group,target:i}).pipe(y(()=>this.installing.set(P(z({},this.installing()),{[e]:!1})))).subscribe({next:()=>{this.msg.success(s),this.refresh()}})}uninstall(t){let e=t.name;this.uninstalling.set(P(z({},this.uninstalling()),{[e]:!0})),this.api.uninstall(this.projectId(),{name:t.name,group:t.group}).pipe(y(()=>this.uninstalling.set(P(z({},this.uninstalling()),{[e]:!1})))).subscribe({next:()=>{this.msg.success("\u5DF2\u5378\u8F7D"),this.refresh()}})}installDevtools(){this.loading.set(!0),this.api.installDevtools(this.projectId()).pipe(y(()=>this.loading.set(!1))).subscribe({next:()=>{this.msg.success("devtools \u5DF2\u5B89\u88C5"),this.refresh()},error:t=>this.msg.error(t?.message||"devtools \u5B89\u88C5\u5931\u8D25")})}installAll(){let t=this.items().filter(i=>!i.installed);if(!t.length){this.msg.info("\u6CA1\u6709\u9700\u8981\u5B89\u88C5\u7684\u4F9D\u8D56");return}(async()=>{this.loading.set(!0);try{for(let i of t)await new Promise((s,c)=>{this.api.install(this.projectId(),{name:i.name,group:i.group,target:"required"}).subscribe({next:()=>s(),error:p=>c(p)})});this.msg.success("\u5DF2\u5B8C\u6210\u5B89\u88C5"),this.refresh()}catch{this.msg.error("\u6279\u91CF\u5B89\u88C5\u5931\u8D25")}finally{this.loading.set(!1)}})()}trackByName(t,e){return e.group+":"+e.name}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=$({type:n,selectors:[["app-project-deps",8,"component"]],attrs:Fe,decls:13,vars:12,consts:[["contentTemplate",""],[3,"title","loading"],["ngProjectAs","actions",5,["actions"]],["nz-input","","placeholder","\u641C\u7D22",1,"search",3,"ngModelChange","ngModel"],["nzType","search","nzInputPrefix",""],[1,"panel"],[1,"version-info"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"version-info-item"],["nz-icon","","nzType","inbox"],[1,"version-label"],[1,"version-value"],["nz-icon","",3,"nzType"],[3,"nzColor"],[1,"version-info-item","recommended-version"],["nz-icon","","nzType","proj:node"],["nz-icon","","nzType","question-circle",1,"recommended-badge",3,"nz-tooltip"],[1,"group-title"],[1,"list"],[1,"row"],[1,"empty"],["nz-row","","nzAlign","middle",1,"row-inner"],["nz-col","","nzFlex","400px",1,"left"],[1,"pkg-icon"],["nz-icon","","nzType","appstore"],[1,"pkg"],[1,"name"],[1,"sub"],[1,"sep"],["nz-col","","nzFlex","auto",1,"mid"],["nzColor","success"],["nzColor","warning"],[1,"detail",3,"click"],["nz-icon","","nzType","link"],["nz-col","","nzFlex","180px",1,"right"],["nz-button","","nzType","text",3,"nzLoading","nz-tooltip"],["nz-button","","nzType","text","nz-popconfirm","",3,"nzPopconfirmTitle"],["nz-button","","nzType","text",3,"click","nzLoading","nz-tooltip"],["nzType","download"],["nz-button","","nzType","text","nz-popconfirm","",3,"nzOnConfirm","nzPopconfirmTitle"],["nzType","delete","nzTheme","fill",3,"nz-tooltip"]],template:function(e,i){if(e&1){let s=M();o(0,"app-page-layout",1),G(1,2),m(2,"app-ng-devtool"),o(3,"nz-input-wrapper")(4,"input",3),X("ngModelChange",function(p){return h(s),Q(i.keyword,p)||(i.keyword=p),D(p)}),b("ngModelChange",function(p){return h(s),D(i.keyword.set(p))}),r(),m(5,"nz-icon",4),r(),H(),o(6,"div",5),C(7,Be,15,5,"div",6),w(8,Ae,1,0,"ng-container",7),m(9,"nz-divider"),w(10,qe,1,0,"ng-container",7),r()(),w(11,Je,6,2,"ng-template",null,0,Z)}if(e&2){let s=J(12);u("title","\u9879\u76EE\u914D\u7F6E")("loading",i.loading()),a(4),K("ngModel",i.keyword),a(3),x(i.meta()?7:-1),a(),u("ngTemplateOutlet",s)("ngTemplateOutletContext",R(8,Se,i.runtimeItems())),a(2),u("ngTemplateOutlet",s)("ngTemplateOutletContext",R(10,ke,i.devItems()))}},dependencies:[E,te,ue,me,ce,de,pe,se,le,ae,re,oe,Ce,fe,_e,ge,ie,ne,he,ve,Oe,Ne,je,Te,we,Ie,be,De,ze,xe],styles:[".panel[_ngcontent-%COMP%]{border-radius:10px;padding:16px 18px;box-shadow:0 2px 8px #0000000f}.version-info[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px 32px;padding:12px 16px;background:linear-gradient(135deg,#1890ff0a,#52c41a0a);border-radius:8px;margin-bottom:20px;border:1px solid rgba(24,144,255,.08)}.version-info-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;opacity:.85}.version-info-item[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:16px;opacity:.6}.version-info-item[_ngcontent-%COMP%] .version-label[_ngcontent-%COMP%]{font-weight:500;color:var(--text-color-secondary)}.version-info-item[_ngcontent-%COMP%] .version-value[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color-primary)}.version-info-item.recommended-version[_ngcontent-%COMP%]{padding:4px 12px;background:#52c41a14;border-radius:6px;border:1px solid rgba(82,196,26,.2)}.version-info-item.recommended-version[_ngcontent-%COMP%] .version-value[_ngcontent-%COMP%]{color:#52c41a}.version-info-item.recommended-version[_ngcontent-%COMP%] .recommended-badge[_ngcontent-%COMP%]{color:#52c41a;cursor:help}.group-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin:6px 0 12px;opacity:.65}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.row[_ngcontent-%COMP%]{border-radius:10px}.row[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #0000001a;background:var(--app-primary-3)}.row-inner[_ngcontent-%COMP%]{padding:10px 12px}.left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.left[_ngcontent-%COMP%] .pkg-icon[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:8px;opacity:.65;display:inline-flex;align-items:center;justify-content:center}.left[_ngcontent-%COMP%] .pkg[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;line-height:18px}.left[_ngcontent-%COMP%] .pkg[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{margin-top:2px;font-size:12px;opacity:.55}.left[_ngcontent-%COMP%] .pkg[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{margin:0 6px}.mid[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px}.mid[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;color:var(--text-color-primary)}.right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:6px}.empty[_ngcontent-%COMP%]{padding:16px 0;text-align:center}"]})};var Ke=[{path:"",component:F}],S=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=O({type:n});static \u0275inj=N({imports:[V.forChild(Ke),V]})};var Ee=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=O({type:n});static \u0275inj=N({imports:[E,S]})};export{Ee as DependenciesModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Y,b as Z,c as $,d as ee,e as te}from"./chunk-
|
|
1
|
+
import{a as Y,b as Z,c as $,d as ee,e as te}from"./chunk-7QR6RHLA.js";import{d as Q,e as U,f as X}from"./chunk-CPJTSA6E.js";import{b as P,c as W,e as H}from"./chunk-TXAXE73U.js";import"./chunk-PB2LGZNW.js";import{k as J}from"./chunk-K6C5ZIV2.js";import{Db as A,Fb as L,Gb as I,Ib as V,Jb as j,Kb as O,Na as w,Oa as D,Qa as T,Ra as x,Rb as K,Tb as R,Zb as q,ac as G}from"./chunk-VZYJ3MSW.js";import"./chunk-HFZLJHYR.js";import"./chunk-WUA5JFDD.js";import{n as B}from"./chunk-KRYMOHYF.js";import{$b as M,Fb as F,Gc as E,Ha as b,Jc as u,Kc as S,Oc as p,Pc as c,Qc as d,Wb as h,Yb as z,ac as _,bc as m,cc as o,dc as a,ec as k,na as C,nb as s,rc as v,sa as g,uc as N,z as y}from"./chunk-4BRW6LCZ.js";var f=class i{api=g(J);submit(r){return this.api.post("/api/hub/feedback",r)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})};var oe=["class","component"],ae=(i,r)=>r.value;function re(i,r){if(i&1&&k(0,"nz-option",5),i&2){let t=r.$implicit;m("nzLabel",t.label)("nzValue",t.value)}}function se(i,r){if(i&1&&(o(0,"p",11),u(1),a()),i&2){let t=N();E("error",t.submitType()==="error"),s(),S(t.submitMessage())}}var ne=class i{feedbackApi=g(f);version="0.1.12";categoryOptions=[{label:"\u95EE\u9898\u53CD\u9988",value:"bug"},{label:"\u529F\u80FD\u5EFA\u8BAE",value:"suggestion"},{label:"\u65B0\u529F\u80FD\u9700\u6C42",value:"feature"},{label:"\u5176\u4ED6",value:"other"}];category="suggestion";title="";content="";contact="";submitting=b(!1);submitMessage=b("");submitType=b("success");async submitFeedback(){let r=this.title.trim(),t=this.content.trim(),e=this.contact.trim();if(!r){this.submitType.set("error"),this.submitMessage.set("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!t){this.submitType.set("error"),this.submitMessage.set("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}this.submitting.set(!0),this.submitMessage.set("");try{await y(this.feedbackApi.submit({projectKey:"prj_kmf73us77x0r1z4b3g76soc5",category:this.category,title:r,content:t,contact:e||void 0,clientName:"ng-manager-webapp",clientVersion:"0.1.12",osInfo:typeof navigator>"u"?"unknown":navigator.userAgent})),this.submitType.set("success"),this.submitMessage.set("\u53CD\u9988\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u4F60\u7684\u5EFA\u8BAE\u3002"),this.title="",this.content="",this.contact="",this.category="suggestion"}catch(l){this.submitType.set("error"),this.submitMessage.set(l?.message||"\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002")}finally{this.submitting.set(!1)}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=F({type:i,selectors:[["app-feedback",8,"component"]],attrs:oe,decls:30,vars:15,consts:[[3,"title"],[1,"feedback-block"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],["nzRequired",""],["name","category",3,"ngModelChange","ngModel","disabled"],[3,"nzLabel","nzValue"],["nz-input","","name","title","placeholder","\u8BF7\u7B80\u8981\u63CF\u8FF0\u4F60\u7684\u95EE\u9898\u6216\u5EFA\u8BAE",3,"ngModelChange","ngModel","maxlength","disabled"],["nz-input","","name","content","rows","5","placeholder","\u8BF7\u8865\u5145\u8BE6\u7EC6\u4FE1\u606F\uFF0C\u4FBF\u4E8E\u6211\u4EEC\u5B9A\u4F4D\u95EE\u9898",3,"ngModelChange","ngModel","maxlength","disabled"],["nz-input","","name","contact","placeholder","\u90AE\u7BB1\u3001IM \u6216\u5176\u4ED6\u8054\u7CFB\u65B9\u5F0F\uFF08\u9009\u586B\uFF09",3,"ngModelChange","ngModel","maxlength","disabled"],["nz-button","","nzType","primary",3,"nzLoading","disabled"],[1,"submit-tip",3,"error"],[1,"submit-tip"]],template:function(t,e){t&1&&(o(0,"app-page-layout",0)(1,"div",1)(2,"h3"),u(3,"\u7528\u6237\u53CD\u9988"),a(),o(4,"form",2),v("ngSubmit",function(){return e.submitFeedback()}),o(5,"nz-form-item")(6,"nz-form-label",3),u(7,"\u53CD\u9988\u7C7B\u578B"),a(),o(8,"nz-form-control")(9,"nz-select",4),d("ngModelChange",function(n){return c(e.category,n)||(e.category=n),n}),M(10,re,1,2,"nz-option",5,ae),a()()(),o(12,"nz-form-item")(13,"nz-form-label",3),u(14,"\u6807\u9898"),a(),o(15,"nz-form-control")(16,"input",6),d("ngModelChange",function(n){return c(e.title,n)||(e.title=n),n}),a()()(),o(17,"nz-form-item")(18,"nz-form-label",3),u(19,"\u5185\u5BB9"),a(),o(20,"nz-form-control")(21,"textarea",7),d("ngModelChange",function(n){return c(e.content,n)||(e.content=n),n}),a()()(),o(22,"nz-form-item")(23,"nz-form-label"),u(24,"\u8054\u7CFB\u65B9\u5F0F"),a(),o(25,"nz-form-control")(26,"input",8),d("ngModelChange",function(n){return c(e.contact,n)||(e.contact=n),n}),a()()(),o(27,"button",9),u(28," \u63D0\u4EA4\u53CD\u9988 "),a()(),h(29,se,2,3,"p",10),a()()),t&2&&(m("title","\u7528\u6237\u53CD\u9988"),s(9),p("ngModel",e.category),m("disabled",e.submitting()),s(),_(e.categoryOptions),s(6),p("ngModel",e.title),m("maxlength",120)("disabled",e.submitting()),s(5),p("ngModel",e.content),m("maxlength",5e3)("disabled",e.submitting()),s(5),p("ngModel",e.contact),m("maxlength",120)("disabled",e.submitting()),s(),m("nzLoading",e.submitting())("disabled",e.submitting()),s(2),z(e.submitMessage()?29:-1))},dependencies:[B,R,O,A,L,I,K,j,V,te,W,P,Z,Y,ee,$,G,q,X,Q,U,x,T,w,D,H],styles:[".feedback-block[_ngcontent-%COMP%]{margin-top:24px;padding-top:16px;border-top:1px solid #f0f0f0;max-width:720px}.submit-tip[_ngcontent-%COMP%]{margin-top:12px;color:#389e0d}.submit-tip.error[_ngcontent-%COMP%]{color:#cf1322}"]})};export{ne as FeedbackComponent};
|