@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.
Files changed (104) hide show
  1. package/lib/app.js +0 -4
  2. package/lib/env.js +5 -1
  3. package/lib/plugins/success-handle.plugin.js +1 -1
  4. package/lib/plugins/ws/topics/nginx.ws.js +1 -1
  5. package/lib/plugins/ws/ws.context.js +3 -1
  6. package/lib/plugins/ws/ws.plugin.js +14 -2
  7. package/lib/routes/api-client/collection.routes.js +35 -35
  8. package/lib/routes/api-client/env.routes.js +12 -8
  9. package/lib/routes/api-client/history.routes.js +10 -5
  10. package/lib/routes/api-client/request.routes.js +14 -8
  11. package/lib/routes/api-client/route-mappers.d.ts +7 -0
  12. package/lib/routes/api-client/route-mappers.js +78 -0
  13. package/lib/routes/api-client/send.routes.js +12 -8
  14. package/lib/routes/config.routes.js +73 -49
  15. package/lib/routes/deps.route.js +47 -5
  16. package/lib/routes/nginx/nginx-config.routes.js +3 -3
  17. package/lib/routes/nginx/nginx-lifecycle.routes.js +14 -13
  18. package/lib/routes/nginx/nginx-module.routes.js +6 -6
  19. package/lib/routes/nginx/nginx-route.context.d.ts +16 -1
  20. package/lib/routes/nginx/nginx-route.context.js +136 -1
  21. package/lib/routes/nginx/nginx-server.routes.js +5 -5
  22. package/lib/routes/project.routes.js +90 -13
  23. package/lib/routes/sprite-browse.routes.js +17 -11
  24. package/lib/routes/sprite.routes.d.ts +1 -1
  25. package/lib/routes/sprite.routes.js +68 -11
  26. package/lib/routes/svn.routes.js +48 -14
  27. package/lib/routes/task.routes.js +99 -7
  28. package/package.json +7 -7
  29. package/www/3rdpartylicenses.txt +5 -5
  30. package/www/browser/{chunk-OZCK4XVV.js → chunk-2VJVGBXG.js} +1 -1
  31. package/www/browser/{chunk-FL6GDGHW.js → chunk-3ODVU46S.js} +1 -1
  32. package/www/browser/chunk-442QFABJ.js +1 -0
  33. package/www/browser/{chunk-WD2EKZQC.js → chunk-6J6G7JEP.js} +1 -1
  34. package/www/browser/{chunk-7U44RF5F.js → chunk-6UFDNETG.js} +1 -1
  35. package/www/browser/{chunk-75W3GVSO.js → chunk-7AKVG375.js} +1 -1
  36. package/www/browser/chunk-7GLWEFTM.js +1 -0
  37. package/www/browser/{chunk-DIJPUYIA.js → chunk-7QR6RHLA.js} +1 -1
  38. package/www/browser/{chunk-HJTXXSMC.js → chunk-CO3CQHKV.js} +1 -1
  39. package/www/browser/{chunk-3XNNQFWR.js → chunk-CPJTSA6E.js} +1 -1
  40. package/www/browser/chunk-DENFXXOY.js +1 -0
  41. package/www/browser/{chunk-HDNG236Q.js → chunk-HC5KLPHD.js} +1 -1
  42. package/www/browser/chunk-HJAP6WBI.js +1 -0
  43. package/www/browser/{chunk-N2PELLMM.js → chunk-JM6DCZP6.js} +7 -7
  44. package/www/browser/chunk-K6C5ZIV2.js +20 -0
  45. package/www/browser/chunk-M6NZ6C2R.js +2 -0
  46. package/www/browser/{chunk-RGOYDY7H.js → chunk-MBPB43C6.js} +1 -1
  47. package/www/browser/chunk-MPLGMTLT.js +3 -0
  48. package/www/browser/chunk-NNOWADVM.js +1 -0
  49. package/www/browser/{chunk-M4QRBV3K.js → chunk-NREWZQVN.js} +1 -1
  50. package/www/browser/{chunk-6YYNHZ2A.js → chunk-OUGN4APK.js} +1 -1
  51. package/www/browser/chunk-PB2LGZNW.js +1 -0
  52. package/www/browser/chunk-PDI3HSSH.js +4 -0
  53. package/www/browser/chunk-PUG3VNTI.js +3 -0
  54. package/www/browser/{chunk-QJP5F735.js → chunk-PY3AUTHC.js} +1 -1
  55. package/www/browser/{chunk-3M56F2S2.js → chunk-R4HSZU2J.js} +1 -1
  56. package/www/browser/{chunk-DE6E23ET.js → chunk-RKK4I2RT.js} +1 -1
  57. package/www/browser/chunk-RMIYLAEM.js +1 -0
  58. package/www/browser/chunk-RZA3IFQV.js +2 -0
  59. package/www/browser/{chunk-K7PESFPY.js → chunk-SD2HFD54.js} +1 -1
  60. package/www/browser/{chunk-BTQIUVTQ.js → chunk-SEJGGBE2.js} +1 -1
  61. package/www/browser/chunk-SSCUT2GF.js +1 -0
  62. package/www/browser/chunk-TCBOC5FF.js +1 -0
  63. package/www/browser/{chunk-AZ6SIMYH.js → chunk-TS5ZQYYY.js} +1 -1
  64. package/www/browser/chunk-TVJHI463.js +1 -0
  65. package/www/browser/{chunk-YNW4HEJO.js → chunk-TXAXE73U.js} +17 -17
  66. package/www/browser/{chunk-4X42HB6N.js → chunk-U2YWR3HF.js} +1 -1
  67. package/www/browser/{chunk-D2ODDESN.js → chunk-U3EUR236.js} +1 -1
  68. package/www/browser/chunk-UKCMUTYL.js +1 -0
  69. package/www/browser/{chunk-DLGJD6YU.js → chunk-UPOORT3S.js} +1 -1
  70. package/www/browser/chunk-VW3S7C2Z.js +1 -0
  71. package/www/browser/chunk-VZYJ3MSW.js +15 -0
  72. package/www/browser/{chunk-AELTP6YN.js → chunk-WCHN62X6.js} +1 -1
  73. package/www/browser/chunk-WWIPELAV.js +1 -0
  74. package/www/browser/{chunk-B3C35ET3.js → chunk-WYNERG74.js} +1 -1
  75. package/www/browser/{chunk-ZTDLWBW5.js → chunk-XJDJL3TQ.js} +1 -1
  76. package/www/browser/{chunk-EEDA5U4V.js → chunk-YV6QPLF5.js} +1 -1
  77. package/www/browser/{chunk-ONXBYGIG.js → chunk-YVRGRFK2.js} +1 -1
  78. package/www/browser/index.html +1 -1
  79. package/www/browser/main-7GYUOEJY.js +38 -0
  80. package/lib/plugins/api-client.plugin.d.ts +0 -3
  81. package/lib/plugins/api-client.plugin.js +0 -55
  82. package/lib/plugins/nginx.binding.store.d.ts +0 -4
  83. package/lib/plugins/nginx.binding.store.js +0 -39
  84. package/lib/plugins/nginx.plugin.d.ts +0 -3
  85. package/lib/plugins/nginx.plugin.js +0 -23
  86. package/www/browser/chunk-2L7NUOMX.js +0 -2
  87. package/www/browser/chunk-2NZJ7CN2.js +0 -20
  88. package/www/browser/chunk-3CM4SKDO.js +0 -15
  89. package/www/browser/chunk-3OHBKMAA.js +0 -1
  90. package/www/browser/chunk-4LBSLURA.js +0 -1
  91. package/www/browser/chunk-5DYX4DUX.js +0 -11
  92. package/www/browser/chunk-6SYVDN5L.js +0 -1
  93. package/www/browser/chunk-AMXRL4GR.js +0 -1
  94. package/www/browser/chunk-AV2ZODEH.js +0 -1
  95. package/www/browser/chunk-CN5J4WNO.js +0 -1
  96. package/www/browser/chunk-FK6Z4HLL.js +0 -1
  97. package/www/browser/chunk-FXCG34QS.js +0 -1
  98. package/www/browser/chunk-H5HGMOE6.js +0 -1
  99. package/www/browser/chunk-HB3HECPD.js +0 -1
  100. package/www/browser/chunk-HUMCWAKJ.js +0 -3
  101. package/www/browser/chunk-IKB3EQCP.js +0 -2
  102. package/www/browser/chunk-OSBDR36P.js +0 -1
  103. package/www/browser/chunk-XLFHB7RS.js +0 -3
  104. package/www/browser/main-N64WJCHX.js +0 -34
@@ -1 +1 @@
1
- import{L as C,a as G,ua as H,va as Z}from"./chunk-3CM4SKDO.js";import{i as W}from"./chunk-KRYMOHYF.js";import{Da as M,Ec as k,Fb as w,Gb as E,Gc as z,Ha as O,Jc as A,Kc as P,Lb as S,Oa as j,V as I,Wb as d,Yb as m,bc as R,cc as s,da as N,dc as p,dd as B,ea as _,ec as F,f,i as y,m as v,n as x,nb as l,oa as T,r as b,s as g,sa as c,u as D,uc as u,ud as U,vc as L,wc as $,yd as h,zd as V}from"./chunk-4BRW6LCZ.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
1
+ import{L as C,a as G,sa as H,ta as Z}from"./chunk-VZYJ3MSW.js";import{i as W}from"./chunk-KRYMOHYF.js";import{Da as M,Ec as k,Fb as w,Gb as E,Gc as z,Ha as O,Jc as A,Kc as P,Lb as S,Oa as j,V as I,Wb as d,Yb as m,bc as R,cc as s,da as N,dc as p,dd as B,ea as _,ec as F,f,i as y,m as v,n as x,nb as l,oa as T,r as b,s as g,sa as c,u as D,uc as u,ud as U,vc as L,wc as $,yd as h,zd as V}from"./chunk-4BRW6LCZ.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
@@ -0,0 +1 @@
1
+ import{b as sn}from"./chunk-7AKVG375.js";import{a as it,b as ot,c as Tt}from"./chunk-2VJVGBXG.js";import{a as cn}from"./chunk-WCHN62X6.js";import{a as He,c as bt,d as nt}from"./chunk-NNOWADVM.js";import{c as St,e as xt}from"./chunk-RMIYLAEM.js";import{b as nn,c as on,d as an,e as ln,f as rn}from"./chunk-CPJTSA6E.js";import{Ea as ke,Fa as Me,Fb as Re,Ga as Jt,Ha as Xt,Jb as Ee,L as _,Na as Yt,Oa as qt,Qa as Zt,Ra as Ut,T as Qt,Tb as $e,Ua as tt,V as Ct,_ as _t,a as Ie,c as Vt,j as Bt,l as At,la as Ht,n as We,o as Lt,pa as et,q as Wt,ra as Qe,rb as Kt,sa as jt,ta as X,tb as Gt,ub as en,wb as tn}from"./chunk-VZYJ3MSW.js";import{i as G,j as gt}from"./chunk-KRYMOHYF.js";import{$b as _e,Ac as L,B as Z,C as ae,D as Je,Da as U,Ec as V,Fb as R,Fc as Te,Gb as Ze,Gc as E,Hb as ze,Hc as Ae,Jc as K,Kc as ye,L as be,Lb as k,Lc as we,M as Be,Oa as J,Q as mt,Ra as te,U as Xe,Ub as se,V as Ye,Vb as Nt,Wb as S,Xb as It,Xc as Et,Yb as x,Zb as zt,_b as kt,_c as Le,a as pt,ac as Se,ad as Fe,b as ht,bc as d,bd as Ne,ca as Dt,cc as m,da as me,dc as u,dd as ie,ea as ee,ec as F,f as re,hc as Mt,ic as Ue,jc as Ke,kc as ft,l as Ce,lc as B,m as q,mc as Rt,n as Q,na as ut,nb as c,oa as qe,od as $t,q as je,r as j,rc as N,s as w,sa as p,sb as D,tb as Pe,u as Pt,uc as r,ud as fe,vc as ce,wb as Ft,wc as oe,xc as De,ya as O,yb as ue,yc as ne,yd as v,za as P,zc as A,zd as Ge}from"./chunk-4BRW6LCZ.js";var Dn=["nz-pagination-item",""],Fn=(t,a)=>({$implicit:t,page:a});function Nn(t,a){if(t&1&&(m(0,"a"),K(1),u()),t&2){let e=r().page;c(),ye(e)}}function In(t,a){t&1&&F(0,"nz-icon",4)}function kn(t,a){t&1&&F(0,"nz-icon",5)}function Mn(t,a){if(t&1&&(m(0,"button",2),S(1,In,1,0,"nz-icon",4)(2,kn,1,0,"nz-icon",5),u()),t&2){let e=r(2);d("disabled",e.disabled),se("title",e.locale.prev_page),c(),x(e.direction==="rtl"?1:2)}}function Rn(t,a){t&1&&F(0,"nz-icon",5)}function En(t,a){t&1&&F(0,"nz-icon",4)}function $n(t,a){if(t&1&&(m(0,"button",2),S(1,Rn,1,0,"nz-icon",5)(2,En,1,0,"nz-icon",4),u()),t&2){let e=r(2);d("disabled",e.disabled),se("title",e.locale.next_page),c(),x(e.direction==="rtl"?1:2)}}function Vn(t,a){t&1&&F(0,"nz-icon",8)}function Bn(t,a){t&1&&F(0,"nz-icon",9)}function An(t,a){if(t&1&&S(0,Vn,1,0,"nz-icon",8)(1,Bn,1,0,"nz-icon",9),t&2){let e=r(3);x(e.direction==="rtl"?0:1)}}function Ln(t,a){t&1&&F(0,"nz-icon",9)}function Wn(t,a){t&1&&F(0,"nz-icon",8)}function Qn(t,a){if(t&1&&S(0,Ln,1,0,"nz-icon",9)(1,Wn,1,0,"nz-icon",8),t&2){let e=r(3);x(e.direction==="rtl"?0:1)}}function Hn(t,a){if(t&1&&(m(0,"a",3)(1,"div",6),S(2,An,2,1)(3,Qn,2,1),m(4,"span",7),K(5,"\u2022\u2022\u2022"),u()()()),t&2){let e,n=r().$implicit;c(2),x((e=n)==="prev_5"?2:e==="next_5"?3:-1)}}function jn(t,a){if(t&1&&S(0,Nn,2,1,"a")(1,Mn,3,3,"button",2)(2,$n,3,3,"button",2)(3,Hn,6,1,"a",3),t&2){let e,n=a.$implicit;x((e=n)==="page"?0:e==="prev"?1:e==="next"?2:3)}}function Jn(t,a){}var Xn=["nz-pagination-options",""],Yn=(t,a)=>a.value;function qn(t,a){if(t&1&&F(0,"nz-option",3),t&2){let e=a.$implicit;d("nzLabel",e.label)("nzValue",e.value)}}function Zn(t,a){if(t&1){let e=B();m(0,"nz-select",2),N("ngModelChange",function(i){O(e);let o=r();return P(o.onPageSizeChange(i))}),_e(1,qn,1,2,"nz-option",3,Yn),u()}if(t&2){let e=r();d("nzDisabled",e.disabled)("nzSize",e.nzSize)("ngModel",e.pageSize),c(),Se(e.listOfPageSizeOption)}}function Un(t,a){if(t&1){let e=B();m(0,"div",1),K(1),m(2,"input",4),N("keydown.enter",function(i){O(e);let o=r();return P(o.jumpToPageViaInput(i))}),u(),K(3),u()}if(t&2){let e=r();c(),we(" ",e.locale.jump_to," "),c(),d("disabled",e.disabled),c(),we(" ",e.locale.page," ")}}var dn=["containerTemplate"],Kn=(t,a)=>({$implicit:t,range:a});function Gn(t,a){}function ei(t,a){if(t&1&&(m(0,"li",1),k(1,Gn,0,0,"ng-template",4),u()),t&2){let e=r(2);c(),d("ngTemplateOutlet",e.showTotal)("ngTemplateOutletContext",Le(2,Kn,e.total,e.ranges))}}function ti(t,a){if(t&1){let e=B();m(0,"li",5),N("gotoIndex",function(i){O(e);let o=r(2);return P(o.jumpPage(i))})("diffIndex",function(i){O(e);let o=r(2);return P(o.jumpDiff(i))}),u()}if(t&2){let e=a.$implicit,n=r(2);d("locale",n.locale)("type",e.type)("index",e.index)("disabled",!!e.disabled)("itemRender",n.itemRender)("active",n.pageIndex===e.index)("direction",n.dir)}}function ni(t,a){if(t&1){let e=B();m(0,"li",6),N("pageIndexChange",function(i){O(e);let o=r(2);return P(o.onPageIndexChange(i))})("pageSizeChange",function(i){O(e);let o=r(2);return P(o.onPageSizeChange(i))}),u()}if(t&2){let e=r(2);d("total",e.total)("locale",e.locale)("disabled",e.disabled)("nzSize",e.nzSize)("showSizeChanger",e.showSizeChanger)("showQuickJumper",e.showQuickJumper)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)}}function ii(t,a){if(t&1&&(m(0,"ul"),S(1,ei,2,5,"li",1),_e(2,ti,1,7,"li",2,Nt().trackByPageItem,!0),S(4,ni,1,9,"li",3),u()),t&2){let e=r();c(),x(e.showTotal?1:-1),c(),Se(e.listOfPageItem),c(2),x(e.showQuickJumper||e.showSizeChanger?4:-1)}}function oi(t,a){if(t&1){let e=B();m(0,"ul")(1,"li",1),N("click",function(){O(e);let i=r();return P(i.prePage())}),u(),m(2,"li",2)(3,"input",3),N("keydown.enter",function(i){O(e);let o=r();return P(o.jumpToPageViaInput(i))}),u(),m(4,"span",4),K(5,"/"),u(),K(6),u(),m(7,"li",5),N("click",function(){O(e);let i=r();return P(i.nextPage())}),u()()}if(t&2){let e=r();c(),d("locale",e.locale)("disabled",e.isFirstIndex)("direction",e.dir)("itemRender",e.itemRender),se("title",e.locale.prev_page),c(),se("title",e.pageIndex+"/"+e.lastIndex),c(),d("disabled",e.disabled)("value",e.pageIndex),c(3),we(" ",e.lastIndex," "),c(),d("locale",e.locale)("disabled",e.isLastIndex)("direction",e.dir)("itemRender",e.itemRender),se("title",e.locale==null?null:e.locale.next_page)}}function ai(t,a){}function li(t,a){if(t&1&&k(0,ai,0,0,"ng-template",4),t&2){r(2);let e=V(2);d("ngTemplateOutlet",e.template)}}function ri(t,a){}function si(t,a){if(t&1&&k(0,ri,0,0,"ng-template",4),t&2){r(2);let e=V(4);d("ngTemplateOutlet",e.template)}}function ci(t,a){if(t&1&&S(0,li,1,1,null,4)(1,si,1,1,null,4),t&2){let e=r();x(e.nzSimple?0:1)}}var yt=(()=>{class t{active=!1;locale;index=null;disabled=!1;direction="ltr";type=null;itemRender=null;diffIndex=new D;gotoIndex=new D;title=null;clickItem(){this.disabled||(this.type==="page"?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(e){let{locale:n,index:i,type:o}=e;(n||i||o)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(n,i){n&1&&N("click",function(){return i.clickItem()}),n&2&&(se("title",i.title),E("ant-pagination-prev",i.type==="prev")("ant-pagination-next",i.type==="next")("ant-pagination-item",i.type==="page")("ant-pagination-jump-prev",i.type==="prev_5")("ant-pagination-jump-prev-custom-icon",i.type==="prev_5")("ant-pagination-jump-next",i.type==="next_5")("ant-pagination-jump-next-custom-icon",i.type==="next_5")("ant-pagination-disabled",i.disabled)("ant-pagination-item-active",i.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[J],attrs:Dn,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",1,"ant-pagination-item-link",3,"disabled"],[1,"ant-pagination-item-link"],["nzType","right"],["nzType","left"],[1,"ant-pagination-item-container"],[1,"ant-pagination-item-ellipsis"],["nzType","double-right",1,"ant-pagination-item-link-icon"],["nzType","double-left",1,"ant-pagination-item-link-icon"]],template:function(n,i){if(n&1&&k(0,jn,4,1,"ng-template",null,0,ie)(2,Jn,0,0,"ng-template",1),n&2){let o=V(1);c(2),d("ngTemplateOutlet",i.itemRender||o)("ngTemplateOutletContext",Le(2,Fn,i.type,i.index))}},dependencies:[Me,ke,G],encapsulation:2,changeDetection:0})}return t})(),pn=(()=>{class t{nzSize="default";disabled=!1;showSizeChanger=!1;showQuickJumper=!1;locale;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[];pageIndexChange=new D;pageSizeChange=new D;listOfPageSizeOption=[];onPageSizeChange(e){this.pageSize!==e&&this.pageSizeChange.next(e)}jumpToPageViaInput(e){let n=e.target,i=Math.floor(_t(n.value,this.pageIndex));this.pageIndexChange.next(i),n.value=""}ngOnChanges(e){let{pageSize:n,pageSizeOptions:i,locale:o}=e;(n||i||o)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(l=>({value:l,label:`${l} ${this.locale.items_per_page}`})))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[J],attrs:Xn,decls:2,vars:2,consts:[[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel"],[1,"ant-pagination-options-quick-jumper"],[1,"ant-pagination-options-size-changer",3,"ngModelChange","nzDisabled","nzSize","ngModel"],[3,"nzLabel","nzValue"],[3,"keydown.enter","disabled"]],template:function(n,i){n&1&&(S(0,Zn,3,3,"nz-select",0),S(1,Un,4,3,"div",1)),n&2&&(x(i.showSizeChanger?0:-1),c(),x(i.showQuickJumper?1:-1))},dependencies:[rn,an,ln,$e,Re,Ee],encapsulation:2,changeDetection:0})}return t})(),hn=(()=>{class t{cdr=p(fe);directionality=p(Ie);destroyRef=p(U);template;nzSize="default";itemRender=null;showTotal=null;disabled=!1;locale;showSizeChanger=!1;showQuickJumper=!1;total=0;pageIndex=1;pageSize=10;pageSizeOptions=[10,20,30,40];pageIndexChange=new D;pageSizeChange=new D;ranges=[0,0];listOfPageItem=[];dir="ltr";constructor(){let e=p(te).nativeElement,n=p(ue);n.removeChild(n.parentNode(e),e)}ngOnInit(){this.directionality.change?.pipe(_(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}jumpPage(e){this.onPageIndexChange(e)}jumpDiff(e){this.jumpPage(this.pageIndex+e)}trackByPageItem(e,n){return`${n.type}-${n.index}`}onPageIndexChange(e){this.pageIndexChange.next(e)}onPageSizeChange(e){this.pageSizeChange.next(e)}getLastIndex(e,n){return Math.ceil(e/n)}buildIndexes(){let e=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,e)}getListOfPageItem(e,n){let i=l=>{let s={type:"prev",disabled:e===1},z={type:"next",disabled:e===n};return[s,...l,z]},o=(l,s)=>{let z=[];for(let y=l;y<=s;y++)z.push({index:y,type:"page"});return z};return n<=9?i(o(1,n)):i(((s,z)=>{let y=[],I={type:"prev_5"},$={type:"next_5"},Y=o(1,1),de=o(n,n);if(s<5)y=[...o(2,s===4?6:5),$];else if(s<z-3)y=[I,...o(s-2,s+2),$];else{let le=s===z-3?z-5:z-4;y=[I,...o(le,z-1)]}return[...Y,...y,...de]})(e,n))}ngOnChanges(e){let{pageIndex:n,pageSize:i,total:o}=e;(n||i||o)&&(this.ranges=[(this.pageIndex-1)*this.pageSize+1,Math.min(this.pageIndex*this.pageSize,this.total)],this.buildIndexes())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-pagination-default"]],viewQuery:function(n,i){if(n&1&&ne(dn,7),n&2){let o;A(o=L())&&(i.template=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&E("ant-pagination-rtl",i.dir==="rtl")},inputs:{nzSize:"nzSize",itemRender:"itemRender",showTotal:"showTotal",disabled:"disabled",locale:"locale",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[J],decls:2,vars:0,consts:[["containerTemplate",""],[1,"ant-pagination-total-text"],["nz-pagination-item","",3,"locale","type","index","disabled","itemRender","active","direction"],["nz-pagination-options","",3,"total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-pagination-item","",3,"gotoIndex","diffIndex","locale","type","index","disabled","itemRender","active","direction"],["nz-pagination-options","",3,"pageIndexChange","pageSizeChange","total","locale","disabled","nzSize","showSizeChanger","showQuickJumper","pageIndex","pageSize","pageSizeOptions"]],template:function(n,i){n&1&&k(0,ii,5,2,"ng-template",null,0,ie)},dependencies:[G,yt,pn],encapsulation:2,changeDetection:0})}return t})(),mn=(()=>{class t{cdr=p(fe);directionality=p(Ie);destroyRef=p(U);template;itemRender=null;disabled=!1;locale;total=0;pageIndex=1;pageSize=10;pageIndexChange=new D;lastIndex=0;isFirstIndex=!1;isLastIndex=!1;dir="ltr";constructor(){let e=p(te).nativeElement,n=p(ue);n.removeChild(n.parentNode(e),e)}ngOnInit(){this.directionality.change?.pipe(_(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}jumpToPageViaInput(e){let n=e.target,i=_t(n.value,this.pageIndex);this.onPageIndexChange(i),n.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(e){this.pageIndexChange.next(e)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=this.pageIndex===1,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(e){let{pageIndex:n,total:i,pageSize:o}=e;(n||i||o)&&this.updateBindingValue()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-pagination-simple"]],viewQuery:function(n,i){if(n&1&&ne(dn,7),n&2){let o;A(o=L())&&(i.template=o.first)}},hostVars:2,hostBindings:function(n,i){n&2&&E("ant-pagination-rtl",i.dir==="rtl")},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[J],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"click","locale","disabled","direction","itemRender"],[1,"ant-pagination-simple-pager"],["size","3",3,"keydown.enter","disabled","value"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"click","locale","disabled","direction","itemRender"]],template:function(n,i){n&1&&k(0,oi,8,14,"ng-template",null,0,ie)},dependencies:[yt],encapsulation:2,changeDetection:0})}return t})(),di="pagination",wt=(()=>{var W;let t,a=[],e=[],n,i=[],o=[],l,s=[],z=[],y,I=[],$=[],Y,de=[],le=[];return W=class{_nzModuleName=di;i18n=p(tt);cdr=p(fe);breakpointService=p(tn);nzConfigService=p(Qe);directionality=p(Ie);destroyRef=p(U);nzPageSizeChange=new D;nzPageIndexChange=new D;nzShowTotal=null;nzItemRender=null;nzSize=w(this,a,"default");nzPageSizeOptions=(w(this,e),w(this,i,[10,20,30,40]));nzShowSizeChanger=(w(this,o),w(this,s,!1));nzShowQuickJumper=(w(this,z),w(this,I,!1));nzSimple=(w(this,$),w(this,de,!1));nzDisabled=(w(this,le),!1);nzResponsive=!1;nzHideOnSinglePage=!1;nzTotal=0;nzPageIndex=1;nzPageSize=10;nzAlign=$t("start");showPagination=!0;locale;size="default";dir="ltr";total$=new Q(1);validatePageIndex(b,f){return b>f?f:b<1?1:b}onPageIndexChange(b){let f=this.getLastIndex(this.nzTotal,this.nzPageSize),g=this.validatePageIndex(b,f);g!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=g,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(b){this.nzPageSize=b,this.nzPageSizeChange.emit(b);let f=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>f&&this.onPageIndexChange(f)}onTotalChange(b){let f=this.getLastIndex(b,this.nzPageSize);this.nzPageIndex>f&&Promise.resolve().then(()=>{this.onPageIndexChange(f),this.cdr.markForCheck()})}getLastIndex(b,f){return Math.ceil(b/f)}ngOnInit(){this.i18n.localeChange.pipe(_(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe(_(this.destroyRef)).subscribe(b=>{this.onTotalChange(b)}),this.breakpointService.subscribe(en).pipe(_(this.destroyRef)).subscribe(b=>{this.nzResponsive&&(this.size=b===Gt.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe(_(this.destroyRef)).subscribe(b=>{this.dir=b,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(b){let{nzHideOnSinglePage:f,nzTotal:g,nzPageSize:ge,nzSize:H}=b;g&&this.total$.next(this.nzTotal),(f||g||ge)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),H&&(this.size=H.currentValue)}},(()=>{let b=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],n=[X()],l=[X()],y=[X()],Y=[X()],j(null,null,t,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:f=>"nzSize"in f,get:f=>f.nzSize,set:(f,g)=>{f.nzSize=g}},metadata:b},a,e),j(null,null,n,{kind:"field",name:"nzPageSizeOptions",static:!1,private:!1,access:{has:f=>"nzPageSizeOptions"in f,get:f=>f.nzPageSizeOptions,set:(f,g)=>{f.nzPageSizeOptions=g}},metadata:b},i,o),j(null,null,l,{kind:"field",name:"nzShowSizeChanger",static:!1,private:!1,access:{has:f=>"nzShowSizeChanger"in f,get:f=>f.nzShowSizeChanger,set:(f,g)=>{f.nzShowSizeChanger=g}},metadata:b},s,z),j(null,null,y,{kind:"field",name:"nzShowQuickJumper",static:!1,private:!1,access:{has:f=>"nzShowQuickJumper"in f,get:f=>f.nzShowQuickJumper,set:(f,g)=>{f.nzShowQuickJumper=g}},metadata:b},I,$),j(null,null,Y,{kind:"field",name:"nzSimple",static:!1,private:!1,access:{has:f=>"nzSimple"in f,get:f=>f.nzSimple,set:(f,g)=>{f.nzSimple=g}},metadata:b},de,le),b&&Object.defineProperty(W,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:b})})(),re(W,"\u0275fac",function(f){return new(f||W)}),re(W,"\u0275cmp",R({type:W,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:14,hostBindings:function(f,g){f&2&&E("ant-pagination-simple",g.nzSimple)("ant-pagination-disabled",g.nzDisabled)("ant-pagination-mini",!g.nzSimple&&g.size==="small")("ant-pagination-rtl",g.dir==="rtl")("ant-pagination-start",g.nzAlign()==="start")("ant-pagination-center",g.nzAlign()==="center")("ant-pagination-end",g.nzAlign()==="end")},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",v],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",v],nzSimple:[2,"nzSimple","nzSimple",v],nzDisabled:[2,"nzDisabled","nzDisabled",v],nzResponsive:[2,"nzResponsive","nzResponsive",v],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",v],nzTotal:[2,"nzTotal","nzTotal",Ge],nzPageIndex:[2,"nzPageIndex","nzPageIndex",Ge],nzPageSize:[2,"nzPageSize","nzPageSize",Ge],nzAlign:[1,"nzAlign"]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[J],decls:5,vars:18,consts:[["simplePagination",""],["defaultPagination",""],[3,"pageIndexChange","disabled","itemRender","locale","pageSize","total","pageIndex"],[3,"pageIndexChange","pageSizeChange","nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet"]],template:function(f,g){if(f&1){let ge=B();S(0,ci,2,1),m(1,"nz-pagination-simple",2,0),N("pageIndexChange",function(Ve){return O(ge),P(g.onPageIndexChange(Ve))}),u(),m(3,"nz-pagination-default",3,1),N("pageIndexChange",function(Ve){return O(ge),P(g.onPageIndexChange(Ve))})("pageSizeChange",function(Ve){return O(ge),P(g.onPageSizeChange(Ve))}),u()}f&2&&(x(g.showPagination?0:-1),c(),d("disabled",g.nzDisabled)("itemRender",g.nzItemRender)("locale",g.locale)("pageSize",g.nzPageSize)("total",g.nzTotal)("pageIndex",g.nzPageIndex),c(2),d("nzSize",g.size)("itemRender",g.nzItemRender)("showTotal",g.nzShowTotal)("disabled",g.nzDisabled)("locale",g.locale)("showSizeChanger",g.nzShowSizeChanger)("showQuickJumper",g.nzShowQuickJumper)("total",g.nzTotal)("pageIndex",g.nzPageIndex)("pageSize",g.nzPageSize)("pageSizeOptions",g.nzPageSizeOptions))},dependencies:[G,mn,hn],encapsulation:2,changeDetection:0})),W})(),un=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ze({type:t});static \u0275inj=qe({imports:[wt,mn,pn,yt,hn]})}return t})();var xe=["*"],hi=(t,a)=>a.value;function mi(t,a){}function ui(t,a){if(t&1){let e=B();m(0,"label",14),N("ngModelChange",function(){O(e);let i=r().$implicit,o=r(2);return P(o.check(i))}),u()}if(t&2){let e=r().$implicit;d("ngModel",e.checked)}}function zi(t,a){if(t&1){let e=B();m(0,"label",15),N("ngModelChange",function(){O(e);let i=r().$implicit,o=r(2);return P(o.check(i))}),u()}if(t&2){let e=r().$implicit;d("ngModel",e.checked)}}function fi(t,a){if(t&1){let e=B();m(0,"li",11),N("click",function(){let i=O(e).$implicit,o=r(2);return P(o.check(i))}),S(1,ui,1,1,"label",12)(2,zi,1,1,"label",13),m(3,"span"),K(4),u()()}if(t&2){let e=a.$implicit,n=r(2);d("nzSelected",e.checked),c(),x(n.filterMultiple?2:1),c(3),ye(e.text)}}function gi(t,a){if(t&1){let e=B();m(0,"nz-filter-trigger",3),N("nzVisibleChange",function(i){O(e);let o=r();return P(o.onVisibleChange(i))}),F(1,"nz-icon",4),u(),m(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),_e(6,fi,5,3,"li",7,hi),u(),m(8,"div",8)(9,"button",9),N("click",function(){O(e);let i=r();return P(i.reset())}),K(10),u(),m(11,"button",10),N("click",function(){O(e);let i=r();return P(i.confirm())}),K(12),u()()()()}if(t&2){let e=V(3),n=r();d("nzVisible",n.isVisible)("nzActive",n.isChecked)("nzDropdownMenu",e),c(6),Se(n.listOfParsedFilter),c(3),d("disabled",!n.isChecked),c(),we(" ",n.locale.filterReset," "),c(2),ye(n.locale.filterConfirm)}}function Ci(t,a){if(t&1&&ft(0,2),t&2){let e=r();d("ngTemplateOutlet",e.extraTemplate)}}function _i(t,a){if(t&1){let e=B();m(0,"label",3),N("ngModelChange",function(i){O(e);let o=r();return P(o.onCheckedChange(i))}),u()}if(t&2){let e=r();E("ant-table-selection-select-all-custom",e.showRowSelection),d("ngModel",e.checked)("nzDisabled",e.disabled)("nzIndeterminate",e.indeterminate),se("aria-label",e.label)}}function Si(t,a){if(t&1){let e=B();m(0,"li",8),N("click",function(){let i=O(e).$implicit;return P(i.onSelect())}),K(1),u()}if(t&2){let e=a.$implicit;c(),we(" ",e.text," ")}}function xi(t,a){if(t&1&&(m(0,"div",2)(1,"span",4),F(2,"nz-icon",5),u(),m(3,"nz-dropdown-menu",null,0)(5,"ul",6),_e(6,Si,2,1,"li",7,kt),u()()()),t&2){let e=V(4),n=r();c(),d("nzDropdownMenu",e),c(5),Se(n.listOfSelections)}}function bi(t,a){}function Ti(t,a){if(t&1&&F(0,"nz-icon",6),t&2){let e=r();E("active",e.sortOrder==="ascend")}}function yi(t,a){if(t&1&&F(0,"nz-icon",7),t&2){let e=r();E("active",e.sortOrder==="descend")}}var wi=["nzChecked",""];function vi(t,a){}function Oi(t,a){if(t&1&&k(0,vi,0,0,"ng-template",2),t&2){let e=r(2);d("ngTemplateOutlet",e.nzExpandIcon)}}function Pi(t,a){if(t&1){let e=B();m(0,"button",4),N("expandChange",function(i){O(e);let o=r(2);return P(o.onExpandChange(i))}),u()}if(t&2){let e=r(2);d("expand",e.nzExpand)("spaceMode",!e.nzShowExpand)}}function Di(t,a){if(t&1&&(F(0,"nz-row-indent",1),S(1,Oi,1,1,null,2)(2,Pi,1,2,"button",3)),t&2){let e=r();d("indentSize",e.nzIndentSize),c(),x(e.nzExpandIcon?1:2)}}function Fi(t,a){if(t&1){let e=B();m(0,"label",5),N("ngModelChange",function(i){O(e);let o=r();return P(o.onCheckedChange(i))}),u()}if(t&2){let e=r();d("nzDisabled",e.nzDisabled)("ngModel",e.nzChecked)("nzIndeterminate",e.nzIndeterminate),se("aria-label",e.nzLabel)}}var Ni=["nzColumnKey",""],Ii=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],ki=["[nz-th-extra]","nz-filter-trigger","*"];function Mi(t,a){if(t&1){let e=B();m(0,"nz-table-filter",6),N("filterChange",function(i){O(e);let o=r();return P(o.onFilterValueChange(i))}),u()}if(t&2){let e=r(),n=V(3),i=V(5);d("contentTemplate",n)("extraTemplate",i)("customFilter",e.nzCustomFilter)("filterMultiple",e.nzFilterMultiple)("listOfFilter",e.nzFilters)}}function Ri(t,a){if(t&1&&ft(0,5),t&2){r();let e=V(3);d("ngTemplateOutlet",e)}}function Ei(t,a){}function $i(t,a){if(t&1&&k(0,Ei,0,0,"ng-template",5),t&2){let e=r(),n=V(7),i=V(9);d("ngTemplateOutlet",e.nzShowSort?n:i)}}function Vi(t,a){t&1&&(oe(0),oe(1,1))}function Bi(t,a){if(t&1&&F(0,"nz-table-sorters",7),t&2){let e=r(),n=V(9);d("sortOrder",e.sortOrder)("sortDirections",e.sortDirections)("contentTemplate",n)}}function Ai(t,a){t&1&&oe(0,2)}var Li=["nzSelections",""],Wi=["nz-table-content",""];function Qi(t,a){if(t&1&&F(0,"col"),t&2){let e=a.$implicit;Te("width",e)("min-width",e)}}function Hi(t,a){if(t&1&&(m(0,"colgroup"),_e(1,Qi,1,4,"col",3,zt),u()),t&2){let e=r();c(),Se(e.listOfColWidth)}}function ji(t,a){}function Ji(t,a){if(t&1&&(m(0,"thead",0),k(1,ji,0,0,"ng-template",1),u()),t&2){let e=r();c(),d("ngTemplateOutlet",e.theadTemplate)}}function Xi(t,a){}function Yi(t,a){}function qi(t,a){if(t&1&&(m(0,"tfoot",2),k(1,Yi,0,0,"ng-template",1),u()),t&2){let e=r();c(),d("ngTemplateOutlet",e.tfootTemplate)}}var fn=["tdElement"],Zi=["nz-table-fixed-row",""];function Ui(t,a){}function Ki(t,a){if(t&1&&(m(0,"div",5),Fe(1,"async"),k(2,Ui,0,0,"ng-template",4),u()),t&2){let e=r(),n=V(6);Te("width",Ne(1,3,e.hostWidth$),"px"),c(2),d("ngTemplateOutlet",n)}}function Gi(t,a){}function eo(t,a){if(t&1&&k(0,Gi,0,0,"ng-template",4),t&2){r();let e=V(6);d("ngTemplateOutlet",e)}}function to(t,a){t&1&&oe(0)}var no=["nz-table-measure-row",""];function io(t,a){t&1&&Mt(0,"td",1,0)}function oo(t,a){if(t&1){let e=B();m(0,"tr",2),N("listOfAutoWidth",function(i){O(e);let o=r(2);return P(o.onListOfAutoWidthChange(i))}),u()}if(t&2){let e=r();d("listOfMeasureColumn",e)}}function ao(t,a){if(t&1&&S(0,oo,1,1,"tr",1),t&2){let e=r();x(e.isInsideTable&&a.length?0:-1)}}function lo(t,a){if(t&1&&(m(0,"tr",0),F(1,"nz-embed-empty",3),Fe(2,"async"),u()),t&2){let e=r();c(),d("specificContent",Ne(2,1,e.noResult$))}}var ro=["tableHeaderElement"],so=["tableBodyElement"],co=["tableFootElement"],po=(t,a)=>({$implicit:t,index:a});function ho(t,a){if(t&1&&(m(0,"div",9,1),F(2,"table",10),u()),t&2){let e=r(2);Ae(e.bodyStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("contentTemplate",e.contentTemplate)}}function mo(t,a){}function uo(t,a){if(t&1&&(Ue(0),k(1,mo,0,0,"ng-template",14),Ke()),t&2){let e=a.$implicit,n=a.index,i=r(3);c(),d("ngTemplateOutlet",i.virtualTemplate)("ngTemplateOutletContext",Le(2,po,e,n))}}function zo(t,a){if(t&1&&(m(0,"cdk-virtual-scroll-viewport",11,1)(2,"table",12)(3,"tbody"),k(4,uo,2,5,"ng-container",13),u()()()),t&2){let e=r(2);Te("height",e.data.length?e.scrollY:e.noDataVirtualHeight),d("itemSize",e.virtualItemSize)("maxBufferPx",e.virtualMaxBufferPx)("minBufferPx",e.virtualMinBufferPx),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth),c(2),d("cdkVirtualForOf",e.data)("cdkVirtualForTrackBy",e.virtualForTrackBy)}}function fo(t,a){if(t&1&&(m(0,"div",15,2),F(2,"table",16),u()),t&2){let e=r(2);Ae(e.headerStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("tfootTemplate",e.tfootTemplate)}}function go(t,a){if(t&1&&(m(0,"div",4,0),F(2,"table",5),u(),S(3,ho,3,5,"div",6)(4,zo,5,9,"cdk-virtual-scroll-viewport",7),S(5,fo,3,5,"div",8)),t&2){let e=r();Ae(e.headerStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("tfootTemplate",e.tfootFixed==="top"?e.tfootTemplate:null),c(),x(e.virtualTemplate?4:3),c(2),x(e.tfootFixed==="bottom"?5:-1)}}function Co(t,a){if(t&1&&(m(0,"div",17,1),F(2,"table",18),u()),t&2){let e=r();Ae(e.bodyStyleMap),c(2),d("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",e.contentTemplate)("tfootTemplate",e.tfootTemplate)}}function _o(t,a){if(t&1&&(Ue(0),K(1),Ke()),t&2){let e=r();c(),ye(e.title)}}function So(t,a){if(t&1&&(Ue(0),K(1),Ke()),t&2){let e=r();c(),ye(e.footer)}}function xo(t,a){}function bo(t,a){if(t&1&&k(0,xo,0,0,"ng-template",4),t&2){r();let e=V(10);d("ngTemplateOutlet",e)}}function To(t,a){if(t&1&&F(0,"nz-table-title-footer",6),t&2){let e=r();d("title",e.nzTitle)}}function yo(t,a){if(t&1&&F(0,"nz-table-inner-scroll",7),t&2){let e=r(),n=V(3),i=V(12);d("data",e.data)("scrollX",e.scrollX)("scrollY",e.scrollY)("contentTemplate",i)("listOfColWidth",e.listOfAutoColWidth)("theadTemplate",e.theadTemplate)("tfootTemplate",e.tfootTemplate)("tfootFixed",e.tfootFixed)("verticalScrollBarWidth",e.verticalScrollBarWidth)("virtualTemplate",e.nzVirtualScrollDirective?e.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",e.nzVirtualItemSize)("virtualMaxBufferPx",e.nzVirtualMaxBufferPx)("virtualMinBufferPx",e.nzVirtualMinBufferPx)("tableMainElement",n)("virtualForTrackBy",e.nzVirtualForTrackBy)("noDataVirtualHeight",e.noDataVirtualHeight)}}function wo(t,a){if(t&1&&F(0,"nz-table-inner-default",8),t&2){let e=r(),n=V(12);d("tableLayout",e.nzTableLayout)("listOfColWidth",e.listOfManualColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",n)("tfootTemplate",e.tfootTemplate)}}function vo(t,a){if(t&1&&F(0,"nz-table-title-footer",9),t&2){let e=r();d("footer",e.nzFooter)}}function Oo(t,a){}function Po(t,a){if(t&1&&k(0,Oo,0,0,"ng-template",4),t&2){r();let e=V(10);d("ngTemplateOutlet",e)}}function Do(t,a){if(t&1){let e=B();m(0,"nz-pagination",11),N("nzPageSizeChange",function(i){O(e);let o=r(2);return P(o.onPageSizeChange(i))})("nzPageIndexChange",function(i){O(e);let o=r(2);return P(o.onPageIndexChange(i))}),u()}if(t&2){let e=r(2);d("hidden",!e.showPagination)("nzShowSizeChanger",e.nzShowSizeChanger)("nzPageSizeOptions",e.nzPageSizeOptions)("nzItemRender",e.nzItemRender)("nzShowQuickJumper",e.nzShowQuickJumper)("nzHideOnSinglePage",e.nzHideOnSinglePage)("nzShowTotal",e.nzShowTotal)("nzSize",e.nzPaginationType==="small"?"small":e.nzSize==="default"?"default":"small")("nzPageSize",e.nzPageSize)("nzTotal",e.nzTotal)("nzSimple",e.nzSimple)("nzPageIndex",e.nzPageIndex)}}function Fo(t,a){if(t&1&&S(0,Do,1,12,"nz-pagination",10),t&2){let e=r();x(e.nzShowPagination&&e.data.length?0:-1)}}function No(t,a){t&1&&oe(0)}var Io=["contentTemplate"];function ko(t,a){t&1&&oe(0)}function Mo(t,a){}function Ro(t,a){if(t&1&&k(0,Mo,0,0,"ng-template",1),t&2){r();let e=V(1);d("ngTemplateOutlet",e)}}var Eo="filterTrigger",gn=(()=>{var n;let t,a=[],e=[];return n=class{_nzModuleName=Eo;nzConfigService=p(Qe);cdr=p(fe);destroyRef=p(U);nzActive=!1;nzDropdownMenu;nzVisible=!1;nzBackdrop=w(this,a,!1);nzVisibleChange=(w(this,e),new D);nzDropdown;onVisibleChange(o){this.nzVisible=o,this.nzVisibleChange.next(o)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){et(this.nzDropdown.nativeElement,"click").pipe(_(this.destroyRef)).subscribe(o=>o.stopPropagation())}},(()=>{let o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],j(null,null,t,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:l=>"nzBackdrop"in l,get:l=>l.nzBackdrop,set:(l,s)=>{l.nzBackdrop=s}},metadata:o},a,e),o&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),re(n,"\u0275fac",function(l){return new(l||n)}),re(n,"\u0275cmp",R({type:n,selectors:[["nz-filter-trigger"]],viewQuery:function(l,s){if(l&1&&ne(He,7,te),l&2){let z;A(z=L())&&(s.nzDropdown=z.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",v]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],ngContentSelectors:xe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(l,s){l&1&&(ce(),m(0,"span",0),N("nzVisibleChange",function(y){return s.onVisibleChange(y)}),oe(1),u()),l&2&&(E("active",s.nzActive)("ant-table-filter-open",s.nzVisible),d("nzBackdrop",s.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",s.nzDropdownMenu)("nzVisible",s.nzVisible))},dependencies:[nt,He],encapsulation:2,changeDetection:0})),n})(),Cn=(()=>{class t{cdr=p(fe);i18n=p(tt);destroyRef=p(U);contentTemplate=null;customFilter=!1;extraTemplate=null;filterMultiple=!0;listOfFilter=[];filterChange=new D;locale;isChecked=!1;isVisible=!1;listOfParsedFilter=[];listOfChecked=[];check(e){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(n=>n===e?ht(pt({},n),{checked:!e.checked}):n),e.checked=!e.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(n=>ht(pt({},n),{checked:n===e})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(e){this.isVisible=e,e?this.listOfChecked=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value):this.emitFilterData()}emitFilterData(){let e=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value);Qt(this.listOfChecked,e)||(this.filterMultiple?this.filterChange.emit(e):this.filterChange.emit(e.length>0?e[0]:null))}parseListOfFilter(e,n){return e.map(i=>{let o=n?!1:!!i.byDefault;return{text:i.text,value:i.value,checked:o}})}getCheckedStatus(e){return e.some(n=>n.checked)}ngOnInit(){this.i18n.localeChange.pipe(_(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(e){let{listOfFilter:n}=e;n&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[J],decls:4,vars:2,consts:[["filterMenu","nzDropdownMenu"],[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[3,"nzVisibleChange","nzVisible","nzActive","nzDropdownMenu"],["nzType","filter","nzTheme","fill"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"click","disabled"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"click","nzSelected"],["nz-radio","",3,"ngModel"],["nz-checkbox","",3,"ngModel"],["nz-radio","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(n,i){n&1&&(m(0,"span",1),k(1,mi,0,0,"ng-template",2),u(),S(2,gi,13,6)(3,Ci,1,1,"ng-container",2)),n&2&&(c(),d("ngTemplateOutlet",i.contentTemplate),c(),x(i.customFilter?3:2))},dependencies:[G,gn,Me,ke,nt,xt,St,bt,sn,ot,it,$e,Re,Ee,Ut,Zt,Yt,qt],encapsulation:2,changeDetection:0})}return t})(),$o=(()=>{class t{expand=!1;spaceMode=!1;expandChange=new D;onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(n,i){n&1&&N("click",function(){return i.onHostClick()}),n&2&&(Rt("type","button"),E("ant-table-row-expand-icon-expanded",!i.spaceMode&&i.expand===!0)("ant-table-row-expand-icon-collapsed",!i.spaceMode&&i.expand===!1)("ant-table-row-expand-icon-spaced",i.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"}})}return t})(),Vo=(()=>{class t{indentSize=0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(n,i){n&2&&Te("padding-left",i.indentSize,"px")},inputs:{indentSize:"indentSize"}})}return t})(),_n=(()=>{class t{listOfSelections=[];checked=!1;disabled=!1;indeterminate=!1;label=null;showCheckbox=!1;showRowSelection=!1;checkedChange=new D;onCheckedChange(e){this.checked=e,this.checkedChange.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},decls:2,vars:2,consts:[["selectionMenu","nzDropdownMenu"],["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate"],[1,"ant-table-selection-extra"],["nz-checkbox","",3,"ngModelChange","ngModel","nzDisabled","nzIndeterminate"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nzType","down"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(n,i){n&1&&(S(0,_i,1,6,"label",1),S(1,xi,8,1,"div",2)),n&2&&(x(i.showCheckbox?0:-1),c(),x(i.showRowSelection?1:-1))},dependencies:[$e,Re,Ee,ot,it,nt,xt,St,He,bt,Me,ke],encapsulation:2,changeDetection:0})}return t})(),Sn=(()=>{class t{sortDirections=["ascend","descend",null];sortOrder=null;contentTemplate=null;isUp=!1;isDown=!1;ngOnChanges(e){let{sortDirections:n}=e;n&&(this.isUp=this.sortDirections.indexOf("ascend")!==-1,this.isDown=this.sortDirections.indexOf("descend")!==-1)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[J],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nzType","caret-up",1,"ant-table-column-sorter-up",3,"active"],["nzType","caret-down",1,"ant-table-column-sorter-down",3,"active"],["nzType","caret-up",1,"ant-table-column-sorter-up"],["nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(n,i){n&1&&(m(0,"span",0),k(1,bi,0,0,"ng-template",1),u(),m(2,"span",2)(3,"span",3),S(4,Ti,1,2,"nz-icon",4),S(5,yi,1,2,"nz-icon",5),u()()),n&2&&(c(),d("ngTemplateOutlet",i.contentTemplate),c(),E("ant-table-column-sorter-full",i.isDown&&i.isUp),c(2),x(i.isUp?4:-1),c(),x(i.isDown?5:-1))},dependencies:[Me,ke,G],encapsulation:2,changeDetection:0})}return t})(),Bo=(()=>{class t{renderer=p(ue);el=p(te).nativeElement;nzRight=!1;nzLeft=!1;colspan=null;colSpan=null;changes$=new Ce;isAutoLeft=!1;isAutoRight=!1;isFixedLeft=!1;isFixedRight=!1;isFixed=!1;setAutoLeftWidth(e){this.renderer.setStyle(this.el,"left",e)}setAutoRightWidth(e){this.renderer.setStyle(this.el,"right",e)}setIsFirstRight(e){this.setFixClass(e,"ant-table-cell-fix-right-first")}setIsLastLeft(e){this.setFixClass(e,"ant-table-cell-fix-left-last")}setFixClass(e,n){this.renderer.removeClass(this.el,n),e&&this.renderer.addClass(this.el,n)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=this.nzLeft===""||this.nzLeft===!0,this.isAutoRight=this.nzRight===""||this.nzRight===!0,this.isFixedLeft=this.nzLeft!==!1,this.isFixedRight=this.nzRight!==!1,this.isFixed=this.isFixedLeft||this.isFixedRight;let e=n=>typeof n=="string"&&n!==""?n:null;this.setAutoLeftWidth(e(this.nzLeft)),this.setAutoRightWidth(e(this.nzRight)),this.changes$.next()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(n,i){n&2&&(Te("position",i.isFixed?"sticky":null),E("ant-table-cell-fix-right",i.isFixedRight)("ant-table-cell-fix-left",i.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[J]})}return t})(),ve=(()=>{class t{theadTemplate$=new Q(1);tfootTemplate$=new Q(1);tfootFixed$=new Q(1);hasFixLeft$=new Q(1);hasFixRight$=new Q(1);hostWidth$=new Q(1);columnCount$=new Q(1);showEmpty$=new Q(1);noResult$=new Q(1);listOfThWidthConfigPx$=new q([]);tableWidthConfigPx$=new q([]);manualWidthConfigPx$=ae([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(Z(([e,n])=>e.length?e:n));listOfAutoWidthPx$=new Q(1);listOfListOfThWidthPx$=be(this.manualWidthConfigPx$,ae([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(Z(([e,n])=>e.length===n.length?e.map((i,o)=>i==="0px"?n[o]||null:n[o]||i):n)));listOfMeasureColumn$=new Q(1);listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(Z(e=>e.map(n=>parseInt(n,10))));enableAutoMeasure$=new Q(1);setTheadTemplate(e){this.theadTemplate$.next(e)}setTfootTemplate(e){this.tfootTemplate$.next(e)}setTfootFixed(e){this.tfootFixed$.next(e)}setHasFixLeft(e){this.hasFixLeft$.next(e)}setHasFixRight(e){this.hasFixRight$.next(e)}setTableWidthConfig(e){this.tableWidthConfigPx$.next(e)}setListOfTh(e){let n=0;e.forEach(o=>{n+=o.colspan&&+o.colspan||o.colSpan&&+o.colSpan||1});let i=e.map(o=>o.nzWidth);this.columnCount$.next(n),this.listOfThWidthConfigPx$.next(i)}setListOfMeasureColumn(e){let n=[];e.forEach(i=>{let o=i.colspan&&+i.colspan||i.colSpan&&+i.colSpan||1;for(let l=0;l<o;l++)n.push(`measure_key_${l}`)}),this.listOfMeasureColumn$.next(n)}setListOfAutoWidth(e){this.listOfAutoWidthPx$.next(e.map(n=>`${n}px`))}setShowEmpty(e){this.showEmpty$.next(e)}setNoResult(e){this.noResult$.next(e)}setScroll(e,n){let i=!!(e||n);i||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ut({token:t,factory:t.\u0275fac})}return t})(),cl=(()=>{class t{isInsideTable=!!p(ve,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["th",9,"nz-disable-th"],["td",9,"nz-disable-td"]],hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-cell",i.isInsideTable)}})}return t})(),vt=(()=>{class t{destroyRef=p(U);pageIndex$=new q(1);frontPagination$=new q(!0);pageSize$=new q(10);listOfData$=new q([]);listOfCustomColumn$=new q([]);pageIndexDistinct$=this.pageIndex$.pipe(Ye());pageSizeDistinct$=this.pageSize$.pipe(Ye());listOfCalcOperator$=new q([]);queryParams$=ae([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(mt(0),Dt(1),Z(([e,n,i])=>({pageIndex:e,pageSize:n,sort:i.filter(o=>o.sortFn).map(o=>({key:o.key,value:o.sortOrder})),filter:i.filter(o=>o.filterFn).map(o=>({key:o.key,value:o.filterValue}))})));listOfDataAfterCalc$=ae([this.listOfData$,this.listOfCalcOperator$]).pipe(Z(([e,n])=>{let i=[...e],o=n.filter(s=>{let{filterValue:z,filterFn:y}=s;return!(z==null||Array.isArray(z)&&z.length===0)&&typeof y=="function"});for(let s of o){let{filterFn:z,filterValue:y}=s;i=i.filter(I=>z(y,I))}let l=n.filter(s=>s.sortOrder!==null&&typeof s.sortFn=="function").sort((s,z)=>+z.sortPriority-+s.sortPriority);return n.length&&i.sort((s,z)=>{for(let y of l){let{sortFn:I,sortOrder:$}=y;if(I&&$){let Y=I(s,z,$);if(Y!==0)return $==="ascend"?Y:-Y}}return 0}),i}));listOfFrontEndCurrentPageData$=ae([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(_(this.destroyRef),Be(e=>{let[n,i,o]=e,l=Math.ceil(o.length/i)||1;return n<=l}),Z(([e,n,i])=>i.slice((e-1)*n,e*n)));listOfCurrentPageData$=this.frontPagination$.pipe(ee(e=>e?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$));total$=this.frontPagination$.pipe(ee(e=>e?this.listOfDataAfterCalc$:this.listOfData$),Z(e=>e.length),Ye());updatePageSize(e){this.pageSize$.next(e)}updateFrontPagination(e){this.frontPagination$.next(e)}updatePageIndex(e){this.pageIndex$.next(e)}updateListOfData(e){this.listOfData$.next(e)}updateListOfCustomColumn(e){this.listOfCustomColumn$.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ut({token:t,factory:t.\u0275fac})}return t})();var Ao=(()=>{class t{nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzIndentSize=0;nzShowExpand=!1;nzShowCheckbox=!1;nzExpand=!1;nzExpandIcon=null;nzCheckedChange=new D;nzExpandChange=new D;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}onExpandChange(e){this.nzExpand=e,this.nzExpandChange.emit(e)}ngOnChanges(e){let n=z=>z&&z.firstChange&&z.currentValue!==void 0,{nzExpand:i,nzChecked:o,nzShowExpand:l,nzShowCheckbox:s}=e;l&&(this.isNzShowExpandChanged=!0),s&&(this.isNzShowCheckboxChanged=!0),n(i)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),n(o)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(n,i){n&2&&E("ant-table-cell-with-append",i.nzShowExpand||i.nzIndentSize>0)("ant-table-selection-column",i.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",v],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",v],nzExpand:[2,"nzExpand","nzExpand",v],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},features:[J],attrs:wi,ngContentSelectors:xe,decls:3,vars:2,consts:[["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate"],[3,"indentSize"],[3,"ngTemplateOutlet"],["nz-row-expand-button","",3,"expand","spaceMode"],["nz-row-expand-button","",3,"expandChange","expand","spaceMode"],["nz-checkbox","",3,"ngModelChange","nzDisabled","ngModel","nzIndeterminate"]],template:function(n,i){n&1&&(ce(),S(0,Di,3,2),S(1,Fi,1,4,"label",0),oe(2)),n&2&&(x(i.nzShowExpand||i.nzIndentSize>0?0:-1),c(),x(i.nzShowCheckbox?1:-1))},dependencies:[Vo,$o,G,ot,it,$e,Re,Ee],encapsulation:2,changeDetection:0})}return t})(),Lo="table",xn=(()=>{var n;let t,a=[],e=[];return n=class{_nzModuleName=Lo;nzConfigService=p(Qe);el=p(te).nativeElement;destroyRef=p(U);cdr=p(fe);ngZone=p(Pe);manualClickOrder$=new Ce;calcOperatorChange$=new Ce;nzFilterValue=null;sortOrder=null;sortDirections=["ascend","descend",null];sortOrderChange$=new Ce;isNzShowSortChanged=!1;isNzShowFilterChanged=!1;nzColumnKey;nzFilterMultiple=!0;nzSortOrder=null;nzSortPriority=!1;nzSortDirections=w(this,a,["ascend","descend",null]);nzFilters=(w(this,e),[]);nzSortFn=null;nzFilterFn=null;nzShowSort=!1;nzShowFilter=!1;nzCustomFilter=!1;nzCheckedChange=new D;nzSortOrderChange=new D;nzFilterChange=new D;getNextSortDirection(o,l){let s=o.indexOf(l);return s===o.length-1?o[0]:o[s+1]}setSortOrder(o){this.sortOrderChange$.next(o)}clearSortOrder(){this.sortOrder!==null&&this.setSortOrder(null)}onFilterValueChange(o){this.nzFilterChange.emit(o),this.nzFilterValue=o,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){et(this.el,"click").pipe(Be(()=>this.nzShowSort),_(this.destroyRef)).subscribe(()=>{let o=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(o),this.manualClickOrder$.next(this)})}),this.sortOrderChange$.pipe(_(this.destroyRef)).subscribe(o=>{this.sortOrder!==o&&(this.sortOrder=o,this.nzSortOrderChange.emit(o)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(o){let{nzSortDirections:l,nzFilters:s,nzSortOrder:z,nzSortFn:y,nzFilterFn:I,nzSortPriority:$,nzFilterMultiple:Y,nzShowSort:de,nzShowFilter:le}=o;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),z&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),de&&(this.isNzShowSortChanged=!0),le&&(this.isNzShowFilterChanged=!0);let W=pe=>pe&&pe.firstChange&&pe.currentValue!==void 0;if((W(z)||W(y))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),W(s)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(s||Y)&&this.nzShowFilter){let pe=this.nzFilters.filter(b=>b.byDefault).map(b=>b.value);this.nzFilterValue=this.nzFilterMultiple?pe:pe[0]||null}(y||I||$||s)&&this.updateCalcOperator()}},(()=>{let o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],j(null,null,t,{kind:"field",name:"nzSortDirections",static:!1,private:!1,access:{has:l=>"nzSortDirections"in l,get:l=>l.nzSortDirections,set:(l,s)=>{l.nzSortDirections=s}},metadata:o},a,e),o&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),re(n,"\u0275fac",function(l){return new(l||n)}),re(n,"\u0275cmp",R({type:n,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(l,s){l&2&&E("ant-table-column-has-sorters",s.nzShowSort)("ant-table-column-sort",s.sortOrder==="descend"||s.sortOrder==="ascend")},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",v],nzShowFilter:[2,"nzShowFilter","nzShowFilter",v],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",v]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[J],attrs:Ni,ngContentSelectors:ki,decls:10,vars:1,consts:[["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"ngTemplateOutlet"],[3,"filterChange","contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(l,s){l&1&&(ce(Ii),S(0,Mi,1,5,"nz-table-filter",4)(1,Ri,1,1,"ng-container",5),k(2,$i,1,1,"ng-template",null,0,ie)(4,Vi,2,0,"ng-template",null,1,ie)(6,Bi,1,3,"ng-template",null,2,ie)(8,Ai,1,0,"ng-template",null,3,ie)),l&2&&x(s.nzShowFilter||s.nzCustomFilter?0:1)},dependencies:[Cn,G,Sn],encapsulation:2,changeDetection:0})),n})(),Wo=(()=>{class t{renderer=p(ue);el=p(te).nativeElement;changes$=new Ce;nzWidth=null;colspan=null;colSpan=null;rowspan=null;rowSpan=null;ngOnChanges(e){let{nzWidth:n,colspan:i,rowspan:o,colSpan:l,rowSpan:s}=e;if(i||l){let z=this.colspan||this.colSpan;Ct(z)?this.renderer.removeAttribute(this.el,"colspan"):this.renderer.setAttribute(this.el,"colspan",`${z}`)}if(o||s){let z=this.rowspan||this.rowSpan;Ct(z)?this.renderer.removeAttribute(this.el,"rowspan"):this.renderer.setAttribute(this.el,"rowspan",`${z}`)}(n||i)&&this.changes$.next()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[J]})}return t})(),Qo=(()=>{class t{nzSelections=[];nzChecked=!1;nzDisabled=!1;nzIndeterminate=!1;nzLabel=null;nzShowCheckbox=!1;nzShowRowSelection=!1;nzCheckedChange=new D;isNzShowExpandChanged=!1;isNzShowCheckboxChanged=!1;onCheckedChange(e){this.nzChecked=e,this.nzCheckedChange.emit(e)}ngOnChanges(e){let n=z=>z&&z.firstChange&&z.currentValue!==void 0,{nzChecked:i,nzSelections:o,nzShowExpand:l,nzShowCheckbox:s}=e;l&&(this.isNzShowExpandChanged=!0),s&&(this.isNzShowCheckboxChanged=!0),n(o)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),n(i)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",v],nzDisabled:[2,"nzDisabled","nzDisabled",v],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",v],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",v]},outputs:{nzCheckedChange:"nzCheckedChange"},features:[J],attrs:Li,ngContentSelectors:xe,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(n,i){n&1&&(ce(),m(0,"nz-table-selection",0),N("checkedChange",function(l){return i.onCheckedChange(l)}),u(),oe(1)),n&2&&d("checked",i.nzChecked)("disabled",i.nzDisabled)("indeterminate",i.nzIndeterminate)("label",i.nzLabel)("listOfSelections",i.nzSelections)("showCheckbox",i.nzShowCheckbox)("showRowSelection",i.nzShowRowSelection)},dependencies:[_n],encapsulation:2,changeDetection:0})}return t})();var dl=(()=>{class t{nzEllipsis=!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["th","nzEllipsis",""],["td","nzEllipsis",""]],hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-cell-ellipsis",i.nzEllipsis)},inputs:{nzEllipsis:[2,"nzEllipsis","nzEllipsis",v]}})}return t})();var bn=(()=>{class t{tableLayout="auto";theadTemplate=null;contentTemplate=null;tfootTemplate=null;listOfColWidth=[];scrollX=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(n,i){n&2&&(Te("table-layout",i.tableLayout)("width",i.scrollX)("min-width",i.scrollX?"100%":null),E("ant-table-fixed",i.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",tfootTemplate:"tfootTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Wi,ngContentSelectors:xe,decls:5,vars:4,consts:[[1,"ant-table-thead"],[3,"ngTemplateOutlet"],[1,"ant-table-summary"],[3,"width","minWidth"]],template:function(n,i){n&1&&(ce(),S(0,Hi,3,0,"colgroup"),S(1,Ji,2,1,"thead",0),k(2,Xi,0,0,"ng-template",1),oe(3),S(4,qi,2,1,"tfoot",2)),n&2&&(x(i.listOfColWidth.length>0?0:-1),c(),x(i.theadTemplate?1:-1),c(),d("ngTemplateOutlet",i.contentTemplate),c(2),x(i.tfootTemplate?4:-1))},dependencies:[G],encapsulation:2,changeDetection:0})}return t})(),Ho=(()=>{class t{nzTableStyleService=p(ve);renderer=p(ue);destroyRef=p(U);tdElement;hostWidth$=new q(null);enableAutoMeasure$=new q(!1);ngOnInit(){if(this.nzTableStyleService){let{enableAutoMeasure$:e,hostWidth$:n}=this.nzTableStyleService;e.pipe(_(this.destroyRef)).subscribe(this.enableAutoMeasure$),n.pipe(_(this.destroyRef)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe(_(this.destroyRef)).subscribe(e=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${e}`)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(n,i){if(n&1&&ne(fn,7),n&2){let o;A(o=L())&&(i.tdElement=o.first)}},attrs:Zi,ngContentSelectors:xe,decls:7,vars:3,consts:[["tdElement",""],["contentTemplate",""],[1,"nz-disable-td","ant-table-cell"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden",3,"width"],[3,"ngTemplateOutlet"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden"]],template:function(n,i){n&1&&(ce(),m(0,"td",2,0),S(2,Ki,3,5,"div",3),Fe(3,"async"),It(4,eo,1,1,null,4),u(),k(5,to,1,0,"ng-template",null,1,ie)),n&2&&(c(2),x(Ne(3,1,i.enableAutoMeasure$)?2:4))},dependencies:[G,gt],encapsulation:2,changeDetection:0})}return t})(),jo=(()=>{class t{tableLayout="auto";listOfColWidth=[];theadTemplate=null;contentTemplate=null;tfootTemplate=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",tfootTemplate:"tfootTemplate"},decls:2,vars:5,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate","tfootTemplate"]],template:function(n,i){n&1&&(m(0,"div",0),F(1,"table",1),u()),n&2&&(c(),d("contentTemplate",i.contentTemplate)("tableLayout",i.tableLayout)("listOfColWidth",i.listOfColWidth)("theadTemplate",i.theadTemplate)("tfootTemplate",i.tfootTemplate))},dependencies:[bn],encapsulation:2,changeDetection:0})}return t})(),Jo=(()=>{class t{nzResizeObserver=p(Tt);ngZone=p(Pe);destroyRef=p(U);listOfMeasureColumn=[];listOfAutoWidth=new D;listOfTdElement;ngAfterViewInit(){this.listOfTdElement.changes.pipe(me(this.listOfTdElement)).pipe(ee(e=>ae(e.toArray().map(n=>this.nzResizeObserver.observe(n).pipe(Z(([i])=>{let{width:o}=i.target.getBoundingClientRect();return Math.floor(o)}))))),mt(16),_(this.destroyRef)).subscribe(e=>{this.ngZone instanceof Pe&&Pe.isInAngularZone()?this.listOfAutoWidth.next(e):this.ngZone.run(()=>this.listOfAutoWidth.next(e))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(n,i){if(n&1&&ne(fn,5),n&2){let o;A(o=L())&&(i.listOfTdElement=o)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:no,decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(n,i){n&1&&_e(0,io,2,0,"td",1,zt),n&2&&Se(i.listOfMeasureColumn)},encapsulation:2,changeDetection:0})}return t})(),Tn=(()=>{class t{showEmpty$=new q(!1);noResult$=new q(void 0);listOfMeasureColumn$=new q([]);nzTableStyleService=p(ve,{optional:!0});isInsideTable=!!this.nzTableStyleService;constructor(){if(this.nzTableStyleService){let{showEmpty$:e,noResult$:n,listOfMeasureColumn$:i}=this.nzTableStyleService;n.pipe(_()).subscribe(this.noResult$),i.pipe(_()).subscribe(this.listOfMeasureColumn$),e.pipe(_()).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(e){this.nzTableStyleService?.setListOfAutoWidth(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["tbody"]],hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-tbody",i.isInsideTable)},ngContentSelectors:xe,decls:5,vars:6,consts:[["nz-table-fixed-row","",1,"ant-table-placeholder"],["nz-table-measure-row","",3,"listOfMeasureColumn"],["nz-table-measure-row","",3,"listOfAutoWidth","listOfMeasureColumn"],["nzComponentName","table",3,"specificContent"]],template:function(n,i){if(n&1&&(ce(),S(0,ao,1,1),Fe(1,"async"),oe(2),S(3,lo,3,3,"tr",0),Fe(4,"async")),n&2){let o;x((o=Ne(1,2,i.listOfMeasureColumn$))?0:-1,o),c(3),x(Ne(4,4,i.showEmpty$)?3:-1)}},dependencies:[Jo,Ho,on,nn,gt],encapsulation:2,changeDetection:0})}return t})(),Ot=(()=>{class t{renderer=p(ue);ngZone=p(Pe);platform=p(Vt);resizeService=p(Kt);destroyRef=p(U);data=[];scrollX=null;scrollY=null;contentTemplate=null;widthConfig=[];listOfColWidth=[];theadTemplate=null;tfootTemplate=null;tfootFixed=null;virtualTemplate=null;virtualItemSize=0;virtualMaxBufferPx=200;virtualMinBufferPx=100;tableMainElement;virtualForTrackBy=e=>e;tableHeaderElement;tableBodyElement;tableFootElement;cdkVirtualScrollViewport;headerStyleMap={};bodyStyleMap={};verticalScrollBarWidth=0;noDataVirtualHeight="182px";data$=new Ce;scroll$=new Ce;setScrollPositionClassName(e=!1){let{scrollWidth:n,scrollLeft:i,clientWidth:o}=this.tableBodyElement.nativeElement,l="ant-table-ping-left",s="ant-table-ping-right";n===o&&n!==0||e?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.removeClass(this.tableMainElement,s)):i===0?(this.renderer.removeClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,s)):n===i+o?(this.renderer.removeClass(this.tableMainElement,s),this.renderer.addClass(this.tableMainElement,l)):(this.renderer.addClass(this.tableMainElement,l),this.renderer.addClass(this.tableMainElement,s))}constructor(){this.destroyRef.onDestroy(()=>{this.setScrollPositionClassName(!0)})}ngOnChanges(e){let{scrollX:n,scrollY:i,data:o}=e;if(n||i){let l=this.verticalScrollBarWidth!==0;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&l?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())}o&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){if(this.platform.isBrowser){let e=this.scroll$.pipe(me(null),Xe(0),ee(()=>et(this.tableBodyElement.nativeElement,"scroll").pipe(me(!0)))),n=this.resizeService.connect();be(e,n,this.data$,this.scroll$).pipe(me(!0),Xe(0),_(this.destroyRef)).subscribe(()=>this.setScrollPositionClassName()),e.pipe(Be(()=>!!this.scrollY)).subscribe(()=>{this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft,this.tableFootElement&&(this.tableFootElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-inner-scroll"]],viewQuery:function(n,i){if(n&1&&(ne(ro,5,te),ne(so,5,te),ne(co,5,te),ne(We,5,We)),n&2){let o;A(o=L())&&(i.tableHeaderElement=o.first),A(o=L())&&(i.tableBodyElement=o.first),A(o=L())&&(i.tableFootElement=o.first),A(o=L())&&(i.cdkVirtualScrollViewport=o.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",tfootTemplate:"tfootTemplate",tfootFixed:"tfootFixed",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth",noDataVirtualHeight:"noDataVirtualHeight"},features:[J],decls:2,vars:1,consts:[["tableHeaderElement",""],["tableBodyElement",""],["tableFootElement",""],[1,"ant-table-content",3,"style"],[1,"ant-table-header","nz-table-hide-scrollbar"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","tfootTemplate"],["cdkScrollable","",1,"ant-table-body",3,"style"],[3,"itemSize","maxBufferPx","minBufferPx","height"],[1,"ant-table-summary",3,"style"],["cdkScrollable","",1,"ant-table-body"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-summary"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","tfootTemplate"],[1,"ant-table-content"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate","tfootTemplate"]],template:function(n,i){n&1&&S(0,go,6,8)(1,Co,3,7,"div",3),n&2&&x(i.scrollY?0:1)},dependencies:[bn,Wt,At,Bt,Lt,We,G,Tn],encapsulation:2,changeDetection:0})}return t})(),Xo=(()=>{class t{templateRef=p(Ft);static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]})}return t})(),yn=(()=>{class t{title=null;footer=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(n,i){n&2&&E("ant-table-title",i.title!==null)("ant-table-footer",i.footer!==null)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&k(0,_o,2,1,"ng-container",0)(1,So,2,1,"ng-container",0),n&2&&(d("nzStringTemplateOutlet",i.title),c(),d("nzStringTemplateOutlet",i.footer))},dependencies:[Xt,Jt],encapsulation:2,changeDetection:0})}return t})(),zn="table",Yo=(()=>{var H;let t,a=[],e=[],n,i=[],o=[],l,s=[],z=[],y,I=[],$=[],Y,de=[],le=[],W,pe=[],b=[],f,g=[],ge=[];return H=class{_nzModuleName=zn;elementRef=p(te);nzResizeObserver=p(Tt);cdr=p(fe);nzTableStyleService=p(ve);nzTableDataService=p(vt);directionality=p(Ie);destroyRef=p(U);nzTableLayout="auto";nzShowTotal=null;nzItemRender=null;nzTitle=null;nzFooter=null;nzNoResult=void 0;nzPageSizeOptions=[10,20,30,40,50];nzVirtualItemSize=0;nzVirtualMaxBufferPx=200;nzVirtualMinBufferPx=100;nzVirtualForTrackBy=M=>M;nzLoadingDelay=0;nzPageIndex=1;nzPageSize=10;nzTotal=0;nzWidthConfig=[];nzData=[];nzCustomColumn=[];nzPaginationPosition="bottom";nzScroll={x:null,y:null};noDataVirtualHeight="182px";nzPaginationType="default";nzFrontPagination=!0;nzTemplateMode=!1;nzShowPagination=!0;nzLoading=!1;nzOuterBordered=!1;nzLoadingIndicator=w(this,a,null);nzBordered=(w(this,e),w(this,i,!1));nzSize=(w(this,o),w(this,s,"default"));nzShowSizeChanger=(w(this,z),w(this,I,!1));nzHideOnSinglePage=(w(this,$),w(this,de,!1));nzShowQuickJumper=(w(this,le),w(this,pe,!1));nzSimple=(w(this,b),w(this,g,!1));nzPageSizeChange=(w(this,ge),new D);nzPageIndexChange=new D;nzQueryParams=new D;nzCurrentPageDataChange=new D;nzCustomColumnChange=new D;data=[];cdkVirtualScrollViewport;scrollX=null;scrollY=null;theadTemplate=null;tfootTemplate=null;tfootFixed=null;listOfAutoColWidth=[];listOfManualColWidth=[];hasFixLeft=!1;hasFixRight=!1;showPagination=!0;templateMode$=new q(!1);dir="ltr";nzVirtualScrollDirective;nzTableInnerScrollComponent;verticalScrollBarWidth=0;onPageSizeChange(M){this.nzTableDataService.updatePageSize(M)}onPageIndexChange(M){this.nzTableDataService.updatePageIndex(M)}constructor(){jt(zn,()=>this.cdr.markForCheck())}ngOnInit(){let{pageIndexDistinct$:M,pageSizeDistinct$:h,listOfCurrentPageData$:C,total$:he,queryParams$:Oe,listOfCustomColumn$:at}=this.nzTableDataService,{theadTemplate$:lt,tfootTemplate$:rt,tfootFixed$:st,hasFixLeft$:ct,hasFixRight$:wn}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe(_(this.destroyRef)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),Oe.pipe(_(this.destroyRef)).subscribe(this.nzQueryParams),M.pipe(_(this.destroyRef)).subscribe(T=>{T!==this.nzPageIndex&&(this.nzPageIndex=T,this.nzPageIndexChange.next(T))}),h.pipe(_(this.destroyRef)).subscribe(T=>{T!==this.nzPageSize&&(this.nzPageSize=T,this.nzPageSizeChange.next(T))}),he.pipe(_(this.destroyRef),Be(T=>this.nzFrontPagination&&T!==this.nzTotal)).subscribe(T=>{this.nzTotal=T,this.cdr.markForCheck()}),C.pipe(_(this.destroyRef)).subscribe(T=>{this.data=T,this.nzCurrentPageDataChange.next(T),this.cdr.markForCheck()}),at.pipe(_(this.destroyRef)).subscribe(T=>{this.nzCustomColumn=T,this.nzCustomColumnChange.next(T),this.cdr.markForCheck()}),lt.pipe(_(this.destroyRef)).subscribe(T=>{this.theadTemplate=T,this.cdr.markForCheck()}),ae([rt,st]).pipe(_(this.destroyRef)).subscribe(([T,dt])=>{this.tfootTemplate=T,this.tfootFixed=dt,this.cdr.markForCheck()}),ct.pipe(_(this.destroyRef)).subscribe(T=>{this.hasFixLeft=T,this.cdr.markForCheck()}),wn.pipe(_(this.destroyRef)).subscribe(T=>{this.hasFixRight=T,this.cdr.markForCheck()}),ae([he,this.templateMode$]).pipe(Z(([T,dt])=>T===0&&!dt),_(this.destroyRef)).subscribe(T=>{this.nzTableStyleService.setShowEmpty(T)}),this.verticalScrollBarWidth=Ht("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(_(this.destroyRef)).subscribe(T=>{this.listOfAutoColWidth=T,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe(_(this.destroyRef)).subscribe(T=>{this.listOfManualColWidth=T,this.cdr.markForCheck()})}ngOnChanges(M){let{nzScroll:h,nzPageIndex:C,nzPageSize:he,nzFrontPagination:Oe,nzData:at,nzCustomColumn:lt,nzWidthConfig:rt,nzNoResult:st,nzTemplateMode:ct}=M;C&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),he&&this.nzTableDataService.updatePageSize(this.nzPageSize),at&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),lt&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),Oe&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),h&&this.setScrollOnChanges(),rt&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),ct&&this.templateMode$.next(this.nzTemplateMode),st&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe(Z(([M])=>{let{width:h}=M.target.getBoundingClientRect(),C=this.scrollY?this.verticalScrollBarWidth:0;return Math.floor(h-C)}),_(this.destroyRef)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}},(()=>{let M=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[X()],n=[X()],l=[X()],y=[X()],Y=[X()],W=[X()],f=[X()],j(null,null,t,{kind:"field",name:"nzLoadingIndicator",static:!1,private:!1,access:{has:h=>"nzLoadingIndicator"in h,get:h=>h.nzLoadingIndicator,set:(h,C)=>{h.nzLoadingIndicator=C}},metadata:M},a,e),j(null,null,n,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:h=>"nzBordered"in h,get:h=>h.nzBordered,set:(h,C)=>{h.nzBordered=C}},metadata:M},i,o),j(null,null,l,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:h=>"nzSize"in h,get:h=>h.nzSize,set:(h,C)=>{h.nzSize=C}},metadata:M},s,z),j(null,null,y,{kind:"field",name:"nzShowSizeChanger",static:!1,private:!1,access:{has:h=>"nzShowSizeChanger"in h,get:h=>h.nzShowSizeChanger,set:(h,C)=>{h.nzShowSizeChanger=C}},metadata:M},I,$),j(null,null,Y,{kind:"field",name:"nzHideOnSinglePage",static:!1,private:!1,access:{has:h=>"nzHideOnSinglePage"in h,get:h=>h.nzHideOnSinglePage,set:(h,C)=>{h.nzHideOnSinglePage=C}},metadata:M},de,le),j(null,null,W,{kind:"field",name:"nzShowQuickJumper",static:!1,private:!1,access:{has:h=>"nzShowQuickJumper"in h,get:h=>h.nzShowQuickJumper,set:(h,C)=>{h.nzShowQuickJumper=C}},metadata:M},pe,b),j(null,null,f,{kind:"field",name:"nzSimple",static:!1,private:!1,access:{has:h=>"nzSimple"in h,get:h=>h.nzSimple,set:(h,C)=>{h.nzSimple=C}},metadata:M},g,ge),M&&Object.defineProperty(H,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:M})})(),re(H,"\u0275fac",function(h){return new(h||H)}),re(H,"\u0275cmp",R({type:H,selectors:[["nz-table"]],contentQueries:function(h,C,he){if(h&1&&De(he,Xo,5),h&2){let Oe;A(Oe=L())&&(C.nzVirtualScrollDirective=Oe.first)}},viewQuery:function(h,C){if(h&1&&ne(Ot,5),h&2){let he;A(he=L())&&(C.nzTableInnerScrollComponent=he.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(h,C){h&2&&E("ant-table-wrapper-rtl",C.dir==="rtl")("ant-table-custom-column",C.nzCustomColumn.length)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzCustomColumn:"nzCustomColumn",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",noDataVirtualHeight:"noDataVirtualHeight",nzPaginationType:"nzPaginationType",nzFrontPagination:[2,"nzFrontPagination","nzFrontPagination",v],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",v],nzShowPagination:[2,"nzShowPagination","nzShowPagination",v],nzLoading:[2,"nzLoading","nzLoading",v],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",v],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",v],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",v],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",v],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",v],nzSimple:[2,"nzSimple","nzSimple",v]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],features:[Et([ve,vt]),J],ngContentSelectors:xe,decls:13,vars:26,consts:[["tableMainElement",""],["paginationTemplate",""],["contentTemplate",""],[3,"nzDelay","nzSpinning","nzIndicator"],[3,"ngTemplateOutlet"],[1,"ant-table"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","tfootTemplate","tfootFixed","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy","noDataVirtualHeight"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate","tfootTemplate"],[3,"footer"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzPageSizeChange","nzPageIndexChange","hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"]],template:function(h,C){h&1&&(ce(),m(0,"nz-spin",3),S(1,bo,1,1,null,4),m(2,"div",5,0),S(4,To,1,1,"nz-table-title-footer",6),S(5,yo,1,16,"nz-table-inner-scroll",7)(6,wo,1,5,"nz-table-inner-default",8),S(7,vo,1,1,"nz-table-title-footer",9),u(),S(8,Po,1,1,null,4),u(),k(9,Fo,1,1,"ng-template",null,1,ie)(11,No,1,0,"ng-template",null,2,ie)),h&2&&(d("nzDelay",C.nzLoadingDelay)("nzSpinning",C.nzLoading)("nzIndicator",C.nzLoadingIndicator),c(),x(C.nzPaginationPosition==="both"||C.nzPaginationPosition==="top"?1:-1),c(),E("ant-table-rtl",C.dir==="rtl")("ant-table-fixed-header",C.nzData.length&&C.scrollY)("ant-table-fixed-column",C.scrollX)("ant-table-has-fix-left",C.hasFixLeft)("ant-table-has-fix-right",C.hasFixRight)("ant-table-bordered",C.nzBordered)("nz-table-out-bordered",C.nzOuterBordered&&!C.nzBordered)("ant-table-middle",C.nzSize==="middle")("ant-table-small",C.nzSize==="small"),c(2),x(C.nzTitle?4:-1),c(),x(C.scrollY||C.scrollX?5:6),c(2),x(C.nzFooter?7:-1),c(),x(C.nzPaginationPosition==="both"||C.nzPaginationPosition==="bottom"?8:-1))},dependencies:[cn,G,yn,Ot,jo,un,wt],encapsulation:2,changeDetection:0})),H})();var qo=(()=>{class t{destroyRef=p(U);listOfNzThDirective;listOfCellFixedDirective;listOfFixedColumns$=new Q(1);listOfColumns$=new Q(1);listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe(ee(e=>be(this.listOfFixedColumns$,...e.map(n=>n.changes$)).pipe(Je(()=>this.listOfFixedColumns$))),_(this.destroyRef));listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Z(e=>e.filter(n=>n.nzLeft!==!1)));listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Z(e=>e.filter(n=>n.nzRight!==!1)));listOfColumnsChanges$=this.listOfColumns$.pipe(ee(e=>be(this.listOfColumns$,...e.map(n=>n.changes$)).pipe(Je(()=>this.listOfColumns$))),_(this.destroyRef));nzTableStyleService=p(ve,{optional:!0});isInsideTable=!!this.nzTableStyleService;ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe(me(this.listOfCellFixedDirective),_(this.destroyRef)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe(me(this.listOfNzThDirective),_(this.destroyRef)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(e=>{e.forEach(n=>n.setIsLastLeft(n===e[e.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(e=>{e.forEach(n=>n.setIsFirstRight(n===e[0]))}),ae([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe(_(this.destroyRef)).subscribe(([e,n])=>{n.forEach((i,o)=>{if(i.isAutoLeft){let s=n.slice(0,o).reduce((y,I)=>y+(I.colspan||I.colSpan||1),0),z=e.slice(0,s).reduce((y,I)=>y+I,0);i.setAutoLeftWidth(`${z}px`)}})}),ae([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe(_(this.destroyRef)).subscribe(([e,n])=>{n.forEach((i,o)=>{let l=n[n.length-o-1];if(l.isAutoRight){let z=n.slice(n.length-o,n.length).reduce((I,$)=>I+($.colspan||$.colSpan||1),0),y=e.slice(e.length-z,e.length).reduce((I,$)=>I+$,0);l.setAutoRightWidth(`${y}px`)}})}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ze({type:t,selectors:[["tr",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(n,i,o){if(n&1&&(De(o,Wo,4),De(o,Bo,4)),n&2){let l;A(l=L())&&(i.listOfNzThDirective=l),A(l=L())&&(i.listOfCellFixedDirective=l)}},hostVars:2,hostBindings:function(n,i){n&2&&E("ant-table-row",i.isInsideTable)}})}return t})(),pl=(()=>{class t{nzTableStyleService=p(ve,{optional:!0});nzTableDataService=p(vt,{optional:!0});destroyRef=p(U);el=p(te).nativeElement;renderer=p(ue);isInsideTable=!!this.nzTableStyleService;templateRef;listOfNzTrDirective;listOfNzThAddOnComponent;nzSortOrderChange=new D;ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){let e=this.listOfNzTrDirective.changes.pipe(me(this.listOfNzTrDirective),Z(l=>l&&l.first),_(this.destroyRef)),n=e.pipe(ee(l=>l?l.listOfColumnsChanges$:je));n.subscribe(l=>this.nzTableStyleService.setListOfTh(l)),this.nzTableStyleService.enableAutoMeasure$.pipe(ee(l=>l?n:Pt([]))).pipe(_(this.destroyRef)).subscribe(l=>this.nzTableStyleService.setListOfMeasureColumn(l));let i=e.pipe(ee(l=>l?l.listOfFixedLeftColumnChanges$:je)),o=e.pipe(ee(l=>l?l.listOfFixedRightColumnChanges$:je));i.subscribe(l=>{this.nzTableStyleService.setHasFixLeft(l.length!==0)}),o.subscribe(l=>{this.nzTableStyleService.setHasFixRight(l.length!==0)})}if(this.nzTableDataService){let e=this.listOfNzThAddOnComponent.changes.pipe(me(this.listOfNzThAddOnComponent));e.pipe(ee(()=>be(...this.listOfNzThAddOnComponent.map(o=>o.manualClickOrder$))),_(this.destroyRef)).subscribe(o=>{let l={key:o.nzColumnKey,value:o.sortOrder};this.nzSortOrderChange.emit(l),o.nzSortFn&&o.nzSortPriority===!1&&this.listOfNzThAddOnComponent.filter(s=>s!==o).forEach(s=>s.clearSortOrder())}),e.pipe(ee(o=>be(e,...o.map(l=>l.calcOperatorChange$)).pipe(Je(()=>e))),Z(o=>o.filter(l=>!!l.nzSortFn||!!l.nzFilterFn).map(l=>{let{nzSortFn:s,sortOrder:z,nzFilterFn:y,nzFilterValue:I,nzSortPriority:$,nzColumnKey:Y}=l;return{key:Y,sortFn:s,sortPriority:$,sortOrder:z,filterFn:y,filterValue:I}})),Xe(0),_(this.destroyRef)).subscribe(o=>{this.nzTableDataService?.listOfCalcOperator$.next(o)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.el),this.el)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=R({type:t,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(n,i,o){if(n&1&&(De(o,qo,5),De(o,xn,5)),n&2){let l;A(l=L())&&(i.listOfNzTrDirective=l),A(l=L())&&(i.listOfNzThAddOnComponent=l)}},viewQuery:function(n,i){if(n&1&&ne(Io,7),n&2){let o;A(o=L())&&(i.templateRef=o.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:xe,decls:3,vars:1,consts:[["contentTemplate",""],[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&(ce(),k(0,ko,1,0,"ng-template",null,0,ie),S(2,Ro,1,1,null,1)),n&2&&(c(2),x(i.isInsideTable?-1:2))},dependencies:[G],encapsulation:2,changeDetection:0})}return t})();var hl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ze({type:t});static \u0275inj=qe({imports:[Yo,xn,Ao,Tn,yn,Ot,Sn,Cn,_n,gn,Qo]})}return t})();export{wt as a,un as b,cl as c,Wo as d,dl as e,Tn as f,Yo as g,qo as h,pl as i,hl as j};
@@ -1,2 +1,2 @@
1
- import{b as Dn}from"./chunk-6YYNHZ2A.js";import{a as Tn,c as _t,d as yt}from"./chunk-DE6E23ET.js";import{b as In}from"./chunk-ONXBYGIG.js";import{b as _n}from"./chunk-HDNG236Q.js";import{c as Fn,d as Pn,e as Nn}from"./chunk-HUMCWAKJ.js";import{a as Mn,b as wn,c as En,d as zn}from"./chunk-4LBSLURA.js";import{a as gt,b as ht,c as Ct,d as vt,e as St}from"./chunk-DIJPUYIA.js";import{b as ft}from"./chunk-QJP5F735.js";import{c as rt}from"./chunk-WD2EKZQC.js";import{a as je,b as dt}from"./chunk-UJKK4A7Y.js";import{a as yn,b as ut}from"./chunk-OZCK4XVV.js";import{a as xn,b as mt}from"./chunk-AELTP6YN.js";import{a as bn,b as Se}from"./chunk-HJTXXSMC.js";import"./chunk-FXCG34QS.js";import{a as De,b as fe}from"./chunk-RGOYDY7H.js";import{a as he,c as Ce,d as vn,e as Sn,f as ve}from"./chunk-3XNNQFWR.js";import{a as Vt,b as Ie,c as Te,d as ke,e as mn,g as dn}from"./chunk-YNW4HEJO.js";import{a as lt,b as ct}from"./chunk-K7PESFPY.js";import{e as pn,f as ln,g as ot,l as cn}from"./chunk-4X42HB6N.js";import{a as hn}from"./chunk-AV2ZODEH.js";import{d as Be,e as fn,k as gn,m as Cn}from"./chunk-2NZJ7CN2.js";import{Fb as Oe,Ga as me,Ha as U,Hb as ie,Ib as at,Kb as st,Lb as oe,Mb as pt,Na as sn,Oa as nt,Pa as de,Qa as it,Sa as Ne,Sb as un,Ta as H,Vb as Y,ac as ge,dc as Z,gc as Ae,ic as re}from"./chunk-3CM4SKDO.js";import"./chunk-HFZLJHYR.js";import{h as $t}from"./chunk-WUA5JFDD.js";import{h as an,n as N,u as tt}from"./chunk-KRYMOHYF.js";import{$b as pe,Ac as Ze,Ec as Bt,Fb as O,Fc as ne,Gb as Qe,Gc as we,Ha as F,Jc as c,Kc as k,Lb as Pe,Lc as te,Oa as qe,Oc as B,Pc as j,Qc as $,Uc as on,V as Zt,Wb as I,Yb as T,Yc as et,a as q,ac as le,b as ee,bc as y,cc as r,d as Hn,dc as a,dd as jt,e as Yn,ec as g,g as Ge,ic as tn,id as W,jc as nn,l as ze,lc as A,m as Xt,na as Fe,nb as p,oa as Ke,od as Le,ra as en,rc as P,sa as z,sd as rn,uc as v,ya as x,yc as Je,z as se,za as b,zc as Xe}from"./chunk-4BRW6LCZ.js";var $n=Hn((Yt,Gt)=>{"use strict";(function(i,t){typeof Yt=="object"&&typeof Gt<"u"?Gt.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self).dayjs=t()})(Yt,function(){"use strict";var i=1e3,t=6e4,e=36e5,n="millisecond",o="second",s="minute",l="hour",h="day",G="week",w="month",ye="quarter",J="year",ae="date",qt="Invalid Date",Rn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Wn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ln={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var d=["th","st","nd","rd"],u=C%100;return"["+C+(d[(u-20)%10]||d[u]||d[0])+"]"}},Ot=function(C,d,u){var f=String(C);return!f||f.length>=d?C:""+Array(d+1-f.length).join(u)+C},Un={s:Ot,z:function(C){var d=-C.utcOffset(),u=Math.abs(d),f=Math.floor(u/60),m=u%60;return(d<=0?"+":"-")+Ot(f,2,"0")+":"+Ot(m,2,"0")},m:function C(d,u){if(d.date()<u.date())return-C(u,d);var f=12*(u.year()-d.year())+(u.month()-d.month()),m=d.clone().add(f,w),S=u-m<0,_=d.clone().add(f+(S?-1:1),w);return+(-(f+(u-m)/(S?m-_:_-m))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:w,y:J,w:G,d:h,D:ae,h:l,m:s,s:o,ms:n,Q:ye}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},Ve="en",xe={};xe[Ve]=Ln;var Qt="$isDayjsObject",At=function(C){return C instanceof He||!(!C||!C[Qt])},Ue=function C(d,u,f){var m;if(!d)return Ve;if(typeof d=="string"){var S=d.toLowerCase();xe[S]&&(m=S),u&&(xe[S]=u,m=S);var _=d.split("-");if(!m&&_.length>1)return C(_[0])}else{var E=d.name;xe[E]=d,m=E}return!f&&m&&(Ve=m),m||!f&&Ve},V=function(C,d){if(At(C))return C.clone();var u=typeof d=="object"?d:{};return u.date=C,u.args=arguments,new He(u)},M=Un;M.l=Ue,M.i=At,M.w=function(C,d){return V(C,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var He=(function(){function C(u){this.$L=Ue(u.locale,null,!0),this.parse(u),this.$x=this.$x||u.x||{},this[Qt]=!0}var d=C.prototype;return d.parse=function(u){this.$d=(function(f){var m=f.date,S=f.utc;if(m===null)return new Date(NaN);if(M.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var _=m.match(Rn);if(_){var E=_[2]-1||0,D=(_[7]||"0").substring(0,3);return S?new Date(Date.UTC(_[1],E,_[3]||1,_[4]||0,_[5]||0,_[6]||0,D)):new Date(_[1],E,_[3]||1,_[4]||0,_[5]||0,_[6]||0,D)}}return new Date(m)})(u),this.init()},d.init=function(){var u=this.$d;this.$y=u.getFullYear(),this.$M=u.getMonth(),this.$D=u.getDate(),this.$W=u.getDay(),this.$H=u.getHours(),this.$m=u.getMinutes(),this.$s=u.getSeconds(),this.$ms=u.getMilliseconds()},d.$utils=function(){return M},d.isValid=function(){return this.$d.toString()!==qt},d.isSame=function(u,f){var m=V(u);return this.startOf(f)<=m&&m<=this.endOf(f)},d.isAfter=function(u,f){return V(u)<this.startOf(f)},d.isBefore=function(u,f){return this.endOf(f)<V(u)},d.$g=function(u,f,m){return M.u(u)?this[f]:this.set(m,u)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(u,f){var m=this,S=!!M.u(f)||f,_=M.p(u),E=function(Me,K){var ue=M.w(m.$u?Date.UTC(m.$y,K,Me):new Date(m.$y,K,Me),m);return S?ue:ue.endOf(h)},D=function(Me,K){return M.w(m.toDate()[Me].apply(m.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(K)),m)},R=this.$W,L=this.$M,X=this.$D,Ee="set"+(this.$u?"UTC":"");switch(_){case J:return S?E(1,0):E(31,11);case w:return S?E(1,L):E(0,L+1);case G:var be=this.$locale().weekStart||0,Re=(R<be?R+7:R)-be;return E(S?X-Re:X+(6-Re),L);case h:case ae:return D(Ee+"Hours",0);case l:return D(Ee+"Minutes",1);case s:return D(Ee+"Seconds",2);case o:return D(Ee+"Milliseconds",3);default:return this.clone()}},d.endOf=function(u){return this.startOf(u,!1)},d.$set=function(u,f){var m,S=M.p(u),_="set"+(this.$u?"UTC":""),E=(m={},m[h]=_+"Date",m[ae]=_+"Date",m[w]=_+"Month",m[J]=_+"FullYear",m[l]=_+"Hours",m[s]=_+"Minutes",m[o]=_+"Seconds",m[n]=_+"Milliseconds",m)[S],D=S===h?this.$D+(f-this.$W):f;if(S===w||S===J){var R=this.clone().set(ae,1);R.$d[E](D),R.init(),this.$d=R.set(ae,Math.min(this.$D,R.daysInMonth())).$d}else E&&this.$d[E](D);return this.init(),this},d.set=function(u,f){return this.clone().$set(u,f)},d.get=function(u){return this[M.p(u)]()},d.add=function(u,f){var m,S=this;u=Number(u);var _=M.p(f),E=function(L){var X=V(S);return M.w(X.date(X.date()+Math.round(L*u)),S)};if(_===w)return this.set(w,this.$M+u);if(_===J)return this.set(J,this.$y+u);if(_===h)return E(1);if(_===G)return E(7);var D=(m={},m[s]=t,m[l]=e,m[o]=i,m)[_]||1,R=this.$d.getTime()+u*D;return M.w(R,this)},d.subtract=function(u,f){return this.add(-1*u,f)},d.format=function(u){var f=this,m=this.$locale();if(!this.isValid())return m.invalidDate||qt;var S=u||"YYYY-MM-DDTHH:mm:ssZ",_=M.z(this),E=this.$H,D=this.$m,R=this.$M,L=m.weekdays,X=m.months,Ee=m.meridiem,be=function(K,ue,We,Ye){return K&&(K[ue]||K(f,S))||We[ue].slice(0,Ye)},Re=function(K){return M.s(E%12||12,K,"0")},Me=Ee||function(K,ue,We){var Ye=K<12?"AM":"PM";return We?Ye.toLowerCase():Ye};return S.replace(Wn,function(K,ue){return ue||(function(We){switch(We){case"YY":return String(f.$y).slice(-2);case"YYYY":return M.s(f.$y,4,"0");case"M":return R+1;case"MM":return M.s(R+1,2,"0");case"MMM":return be(m.monthsShort,R,X,3);case"MMMM":return be(X,R);case"D":return f.$D;case"DD":return M.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return be(m.weekdaysMin,f.$W,L,2);case"ddd":return be(m.weekdaysShort,f.$W,L,3);case"dddd":return L[f.$W];case"H":return String(E);case"HH":return M.s(E,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return Me(E,D,!0);case"A":return Me(E,D,!1);case"m":return String(D);case"mm":return M.s(D,2,"0");case"s":return String(f.$s);case"ss":return M.s(f.$s,2,"0");case"SSS":return M.s(f.$ms,3,"0");case"Z":return _}return null})(K)||_.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(u,f,m){var S,_=this,E=M.p(f),D=V(u),R=(D.utcOffset()-this.utcOffset())*t,L=this-D,X=function(){return M.m(_,D)};switch(E){case J:S=X()/12;break;case w:S=X();break;case ye:S=X()/3;break;case G:S=(L-R)/6048e5;break;case h:S=(L-R)/864e5;break;case l:S=L/e;break;case s:S=L/t;break;case o:S=L/i;break;default:S=L}return m?S:M.a(S)},d.daysInMonth=function(){return this.endOf(w).$D},d.$locale=function(){return xe[this.$L]},d.locale=function(u,f){if(!u)return this.$L;var m=this.clone(),S=Ue(u,f,!0);return S&&(m.$L=S),m},d.clone=function(){return M.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},C})(),Jt=He.prototype;return V.prototype=Jt,[["$ms",n],["$s",o],["$m",s],["$H",l],["$W",h],["$M",w],["$y",J],["$D",ae]].forEach(function(C){Jt[C[1]]=function(d){return this.$g(d,C[0],C[1])}}),V.extend=function(C,d){return C.$i||(C(d,He,V),C.$i=!0),V},V.locale=Ue,V.isDayjs=At,V.unix=function(C){return V(1e3*C)},V.en=xe[Ve],V.Ls=xe,V.p={},V})});var _e=class i{api=z(gn);generate(t,e={}){return this.api.post(`/api/sprite/generate/${t}`,e)}getConfig(t){return this.api.get(`/api/sprite/config/${t}`)}createConfig(t,e,n){return this.api.post(`/api/sprite/config/${t}`,{config:n,assets:e})}checkout(t,e={}){return this.api.post(`/api/svn/sync/${t}`,e)}streamCheckout(t,e={}){return this.api.post(`/api/svn/sync/stream/${t}`,e)}getRuntimes(t){return this.api.get(`/api/svn/runtime/${t}`)}getSprites(t,e=!1){let n=new tt().set("local",e.toString());return this.api.get(`/api/sprite/list/${t}`,n)}browseIconGroups(t){return this.api.get(`/api/sprite/browse/icons/groups/${t}`)}browseIconFiles(t,e){let n=new tt().set("group",e);return this.api.get(`/api/sprite/browse/icons/files/${t}`,n)}browseImages(t,e=""){let n=new tt().set("dir",e);return this.api.get(`/api/sprite/browse/images/list/${t}`,n)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var $e=class i{projectContext=z(Cn);api=z(_e);project=W(()=>this.projectContext.currentProject());async loadConfig(){if(!this.project())throw new Error("No project selected");let t=this.project().id;return await se(this.api.getConfig(t))}async createConfig(t,e){if(!this.project())throw new Error("No project selected");let n=this.project().id,o=await se(this.api.createConfig(n,t,e));return this.projectContext.patchProject(o.project),o.cfg}async checkout(t={}){let e=this.ensureProjectId();return await se(this.api.checkout(e,t))}async streamCheckout(t={}){let e=this.ensureProjectId();return await se(this.api.streamCheckout(e,t))}async getSvnRuntimes(){let t=this.ensureProjectId();return await se(this.api.getRuntimes(t))}async generate(){let t=this.ensureProjectId();return await se(this.api.generate(t))}async getSprites(){let t=this.ensureProjectId();return await se(this.api.getSprites(t))}async getLocalSprites(){let t=this.ensureProjectId();return await se(this.api.getSprites(t,!0))}ensureProjectId(){let t=this.project();if(!t)throw new Error("No project selected");return t.id}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var xt=class i{constructor(t){this.ws=t;this.ws.messages().subscribe(e=>this.onMessage(e)),this.ws.stateChanges().subscribe(e=>{e==="open"&&this.lastWsState!=="open"&&this.replaySubs(),this.lastWsState=e})}subs=new Map;lastWsState="idle";event$=new ze;eventByProject=new Map;runtimesByProject=new Map;outputByKey=new Map;ensureConnected(){this.ws.connect()}subscribeProject(t,e=1e3){let n=String(t??"").trim();if(!n)return;let o=Math.max(0,Math.min(5e3,e|0));this.subs.get(n)!==o&&(this.subs.set(n,o),this.ensureProjectEventSubject(n),this.ensureProjectRuntimesSubject(n),this.ws.isOpen()&&this.ws.send({op:"sub",topic:"svn",projectId:n,tail:o}))}unsubscribeProject(t){let e=String(t??"").trim();this.subs.has(e)&&(this.subs.delete(e),this.ws.isOpen()&&this.ws.send({op:"unsub",topic:"svn",projectId:e}))}watchProject(t,e=1e3){let n=String(t??"").trim();this.ensureConnected(),this.subscribeProject(n,e);let o=new Ge;return o.add(()=>this.unsubscribeProject(n)),o}bindToDestroyRef(t,e,n=1e3){let o=String(t??"").trim();this.ensureConnected(),this.subscribeProject(o,n),e.onDestroy(()=>this.unsubscribeProject(o))}events$(){return this.event$.asObservable()}eventsByProject$(t){let e=String(t??"").trim();return this.ensureProjectEventSubject(e).asObservable()}runtimes$(t){let e=String(t??"").trim();return this.ensureProjectRuntimesSubject(e).asObservable().pipe(Zt())}output$(t){let e=this.keyOf(t);return this.outputByKey.has(e)||this.outputByKey.set(e,new ze),this.outputByKey.get(e).asObservable()}replaySubs(){for(let[t,e]of this.subs.entries())this.ws.send({op:"sub",topic:"svn",projectId:t,tail:e})}onMessage(t){if(t?.op!=="svn.event")return;let e=t,n=e.type,o=e.payload,s=String(o?.projectId??"").trim();s&&(this.event$.next(e),this.ensureProjectEventSubject(s).next(e),this.applyEvent(n,o,e.ts??Date.now()))}applyEvent(t,e,n){let o=String(e?.projectId??"").trim(),s=String(e?.sourceId??"").trim();if(!(!o||!s))switch(t){case"runtime":{let l=e;this.upsert(o,s,h=>ee(q(q({},h),l),{lastEventAt:n}),!0);return}case"started":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n}));return}case"output":{let l=e,h=l.type,G=String(l.data??"");if(G){let w=this.keyOf(o);this.outputByKey.has(w)||this.outputByKey.set(w,new ze),this.outputByKey.get(w).next({projectId:o,sourceId:s,stream:h,text:G,status:l.status,ts:n})}this.upsert(o,s,w=>ee(q({},w),{status:l.status,lastEventAt:n,lastStdout:h==="stdout"?G:w.lastStdout,lastStderr:h==="stderr"?G:w.lastStderr}));return}case"progress":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,total:l.total??h.total,changed:l.changed??h.changed,percent:l.percent??h.percent}));return}case"done":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,updatedAt:l.updatedAt,lastSyncAt:l.updatedAt,lastSyncMode:l.mode,desiredUrl:l.desiredUrl,currentUrl:l.currentUrl}));return}case"failed":{let l=e;if(this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,updatedAt:l.updatedAt,lastError:l.error,lastStderr:l.error?`[failed] ${l.error}`:h.lastStderr})),l.error){let h=this.keyOf(o);this.outputByKey.has(h)||this.outputByKey.set(h,new ze),this.outputByKey.get(h).next({projectId:o,sourceId:s,stream:"stderr",text:`[failed] ${l.error}
1
+ import{b as Dn}from"./chunk-OUGN4APK.js";import{a as Tn,c as _t,d as yt}from"./chunk-RKK4I2RT.js";import{b as In}from"./chunk-YVRGRFK2.js";import{b as _n}from"./chunk-HC5KLPHD.js";import{a as Fn,b as Pn,c as Nn}from"./chunk-DENFXXOY.js";import{a as Mn,b as wn,c as En,d as zn}from"./chunk-HJAP6WBI.js";import{a as gt,b as ht,c as Ct,d as vt,e as St}from"./chunk-7QR6RHLA.js";import{b as ft}from"./chunk-PY3AUTHC.js";import{c as rt}from"./chunk-6J6G7JEP.js";import{a as je,b as dt}from"./chunk-UJKK4A7Y.js";import"./chunk-MPLGMTLT.js";import{a as yn,b as ut}from"./chunk-2VJVGBXG.js";import{a as xn,b as mt}from"./chunk-WCHN62X6.js";import{a as bn,b as Se}from"./chunk-CO3CQHKV.js";import"./chunk-NNOWADVM.js";import"./chunk-RMIYLAEM.js";import{a as De,b as fe}from"./chunk-MBPB43C6.js";import{a as he,c as Ce,d as vn,e as Sn,f as ve}from"./chunk-CPJTSA6E.js";import{a as Vt,b as Ie,c as Te,d as ke,e as mn,g as dn}from"./chunk-TXAXE73U.js";import{a as lt,b as ct}from"./chunk-SD2HFD54.js";import{e as pn,f as ln,g as ot,l as cn}from"./chunk-U2YWR3HF.js";import{a as hn}from"./chunk-PB2LGZNW.js";import{d as Be,e as fn,k as gn,m as Cn}from"./chunk-K6C5ZIV2.js";import{Db as Oe,Ea as me,Fa as U,Fb as ie,Gb as at,Ib as st,Jb as oe,Kb as pt,La as sn,Ma as nt,Na as de,Oa as it,Qa as Ne,Qb as un,Ra as H,Tb as Y,Zb as ge,ac as Z,dc as Ae,fc as re}from"./chunk-VZYJ3MSW.js";import"./chunk-HFZLJHYR.js";import{h as $t}from"./chunk-WUA5JFDD.js";import{h as an,n as N,u as tt}from"./chunk-KRYMOHYF.js";import{$b as pe,Ac as Ze,Ec as Bt,Fb as O,Fc as ne,Gb as Qe,Gc as we,Ha as F,Jc as c,Kc as k,Lb as Pe,Lc as te,Oa as qe,Oc as B,Pc as j,Qc as $,Uc as on,V as Zt,Wb as I,Yb as T,Yc as et,a as q,ac as le,b as ee,bc as y,cc as r,d as Hn,dc as a,dd as jt,e as Yn,ec as g,g as Ge,ic as tn,id as W,jc as nn,l as ze,lc as A,m as Xt,na as Fe,nb as p,oa as Ke,od as Le,ra as en,rc as P,sa as z,sd as rn,uc as v,ya as x,yc as Je,z as se,za as b,zc as Xe}from"./chunk-4BRW6LCZ.js";var $n=Hn((Yt,Gt)=>{"use strict";(function(i,t){typeof Yt=="object"&&typeof Gt<"u"?Gt.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self).dayjs=t()})(Yt,function(){"use strict";var i=1e3,t=6e4,e=36e5,n="millisecond",o="second",s="minute",l="hour",h="day",G="week",w="month",ye="quarter",J="year",ae="date",qt="Invalid Date",Rn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Wn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ln={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var d=["th","st","nd","rd"],u=C%100;return"["+C+(d[(u-20)%10]||d[u]||d[0])+"]"}},Ot=function(C,d,u){var f=String(C);return!f||f.length>=d?C:""+Array(d+1-f.length).join(u)+C},Un={s:Ot,z:function(C){var d=-C.utcOffset(),u=Math.abs(d),f=Math.floor(u/60),m=u%60;return(d<=0?"+":"-")+Ot(f,2,"0")+":"+Ot(m,2,"0")},m:function C(d,u){if(d.date()<u.date())return-C(u,d);var f=12*(u.year()-d.year())+(u.month()-d.month()),m=d.clone().add(f,w),S=u-m<0,_=d.clone().add(f+(S?-1:1),w);return+(-(f+(u-m)/(S?m-_:_-m))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:w,y:J,w:G,d:h,D:ae,h:l,m:s,s:o,ms:n,Q:ye}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},Ve="en",xe={};xe[Ve]=Ln;var Qt="$isDayjsObject",At=function(C){return C instanceof He||!(!C||!C[Qt])},Ue=function C(d,u,f){var m;if(!d)return Ve;if(typeof d=="string"){var S=d.toLowerCase();xe[S]&&(m=S),u&&(xe[S]=u,m=S);var _=d.split("-");if(!m&&_.length>1)return C(_[0])}else{var E=d.name;xe[E]=d,m=E}return!f&&m&&(Ve=m),m||!f&&Ve},V=function(C,d){if(At(C))return C.clone();var u=typeof d=="object"?d:{};return u.date=C,u.args=arguments,new He(u)},M=Un;M.l=Ue,M.i=At,M.w=function(C,d){return V(C,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var He=(function(){function C(u){this.$L=Ue(u.locale,null,!0),this.parse(u),this.$x=this.$x||u.x||{},this[Qt]=!0}var d=C.prototype;return d.parse=function(u){this.$d=(function(f){var m=f.date,S=f.utc;if(m===null)return new Date(NaN);if(M.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var _=m.match(Rn);if(_){var E=_[2]-1||0,D=(_[7]||"0").substring(0,3);return S?new Date(Date.UTC(_[1],E,_[3]||1,_[4]||0,_[5]||0,_[6]||0,D)):new Date(_[1],E,_[3]||1,_[4]||0,_[5]||0,_[6]||0,D)}}return new Date(m)})(u),this.init()},d.init=function(){var u=this.$d;this.$y=u.getFullYear(),this.$M=u.getMonth(),this.$D=u.getDate(),this.$W=u.getDay(),this.$H=u.getHours(),this.$m=u.getMinutes(),this.$s=u.getSeconds(),this.$ms=u.getMilliseconds()},d.$utils=function(){return M},d.isValid=function(){return this.$d.toString()!==qt},d.isSame=function(u,f){var m=V(u);return this.startOf(f)<=m&&m<=this.endOf(f)},d.isAfter=function(u,f){return V(u)<this.startOf(f)},d.isBefore=function(u,f){return this.endOf(f)<V(u)},d.$g=function(u,f,m){return M.u(u)?this[f]:this.set(m,u)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(u,f){var m=this,S=!!M.u(f)||f,_=M.p(u),E=function(Me,K){var ue=M.w(m.$u?Date.UTC(m.$y,K,Me):new Date(m.$y,K,Me),m);return S?ue:ue.endOf(h)},D=function(Me,K){return M.w(m.toDate()[Me].apply(m.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(K)),m)},R=this.$W,L=this.$M,X=this.$D,Ee="set"+(this.$u?"UTC":"");switch(_){case J:return S?E(1,0):E(31,11);case w:return S?E(1,L):E(0,L+1);case G:var be=this.$locale().weekStart||0,Re=(R<be?R+7:R)-be;return E(S?X-Re:X+(6-Re),L);case h:case ae:return D(Ee+"Hours",0);case l:return D(Ee+"Minutes",1);case s:return D(Ee+"Seconds",2);case o:return D(Ee+"Milliseconds",3);default:return this.clone()}},d.endOf=function(u){return this.startOf(u,!1)},d.$set=function(u,f){var m,S=M.p(u),_="set"+(this.$u?"UTC":""),E=(m={},m[h]=_+"Date",m[ae]=_+"Date",m[w]=_+"Month",m[J]=_+"FullYear",m[l]=_+"Hours",m[s]=_+"Minutes",m[o]=_+"Seconds",m[n]=_+"Milliseconds",m)[S],D=S===h?this.$D+(f-this.$W):f;if(S===w||S===J){var R=this.clone().set(ae,1);R.$d[E](D),R.init(),this.$d=R.set(ae,Math.min(this.$D,R.daysInMonth())).$d}else E&&this.$d[E](D);return this.init(),this},d.set=function(u,f){return this.clone().$set(u,f)},d.get=function(u){return this[M.p(u)]()},d.add=function(u,f){var m,S=this;u=Number(u);var _=M.p(f),E=function(L){var X=V(S);return M.w(X.date(X.date()+Math.round(L*u)),S)};if(_===w)return this.set(w,this.$M+u);if(_===J)return this.set(J,this.$y+u);if(_===h)return E(1);if(_===G)return E(7);var D=(m={},m[s]=t,m[l]=e,m[o]=i,m)[_]||1,R=this.$d.getTime()+u*D;return M.w(R,this)},d.subtract=function(u,f){return this.add(-1*u,f)},d.format=function(u){var f=this,m=this.$locale();if(!this.isValid())return m.invalidDate||qt;var S=u||"YYYY-MM-DDTHH:mm:ssZ",_=M.z(this),E=this.$H,D=this.$m,R=this.$M,L=m.weekdays,X=m.months,Ee=m.meridiem,be=function(K,ue,We,Ye){return K&&(K[ue]||K(f,S))||We[ue].slice(0,Ye)},Re=function(K){return M.s(E%12||12,K,"0")},Me=Ee||function(K,ue,We){var Ye=K<12?"AM":"PM";return We?Ye.toLowerCase():Ye};return S.replace(Wn,function(K,ue){return ue||(function(We){switch(We){case"YY":return String(f.$y).slice(-2);case"YYYY":return M.s(f.$y,4,"0");case"M":return R+1;case"MM":return M.s(R+1,2,"0");case"MMM":return be(m.monthsShort,R,X,3);case"MMMM":return be(X,R);case"D":return f.$D;case"DD":return M.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return be(m.weekdaysMin,f.$W,L,2);case"ddd":return be(m.weekdaysShort,f.$W,L,3);case"dddd":return L[f.$W];case"H":return String(E);case"HH":return M.s(E,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return Me(E,D,!0);case"A":return Me(E,D,!1);case"m":return String(D);case"mm":return M.s(D,2,"0");case"s":return String(f.$s);case"ss":return M.s(f.$s,2,"0");case"SSS":return M.s(f.$ms,3,"0");case"Z":return _}return null})(K)||_.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(u,f,m){var S,_=this,E=M.p(f),D=V(u),R=(D.utcOffset()-this.utcOffset())*t,L=this-D,X=function(){return M.m(_,D)};switch(E){case J:S=X()/12;break;case w:S=X();break;case ye:S=X()/3;break;case G:S=(L-R)/6048e5;break;case h:S=(L-R)/864e5;break;case l:S=L/e;break;case s:S=L/t;break;case o:S=L/i;break;default:S=L}return m?S:M.a(S)},d.daysInMonth=function(){return this.endOf(w).$D},d.$locale=function(){return xe[this.$L]},d.locale=function(u,f){if(!u)return this.$L;var m=this.clone(),S=Ue(u,f,!0);return S&&(m.$L=S),m},d.clone=function(){return M.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},C})(),Jt=He.prototype;return V.prototype=Jt,[["$ms",n],["$s",o],["$m",s],["$H",l],["$W",h],["$M",w],["$y",J],["$D",ae]].forEach(function(C){Jt[C[1]]=function(d){return this.$g(d,C[0],C[1])}}),V.extend=function(C,d){return C.$i||(C(d,He,V),C.$i=!0),V},V.locale=Ue,V.isDayjs=At,V.unix=function(C){return V(1e3*C)},V.en=xe[Ve],V.Ls=xe,V.p={},V})});var _e=class i{api=z(gn);generate(t,e={}){return this.api.post(`/api/sprite/generate/${t}`,e)}getConfig(t){return this.api.get(`/api/sprite/config/${t}`)}createConfig(t,e,n){return this.api.post(`/api/sprite/config/${t}`,{config:n,assets:e})}checkout(t,e={}){return this.api.post(`/api/svn/sync/${t}`,e)}streamCheckout(t,e={}){return this.api.post(`/api/svn/sync/stream/${t}`,e)}getRuntimes(t){return this.api.get(`/api/svn/runtime/${t}`)}getSprites(t,e=!1){let n=new tt().set("local",e.toString());return this.api.get(`/api/sprite/list/${t}`,n)}browseIconGroups(t){return this.api.get(`/api/sprite/browse/icons/groups/${t}`)}browseIconFiles(t,e){let n=new tt().set("group",e);return this.api.get(`/api/sprite/browse/icons/files/${t}`,n)}browseImages(t,e=""){let n=new tt().set("dir",e);return this.api.get(`/api/sprite/browse/images/list/${t}`,n)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var $e=class i{projectContext=z(Cn);api=z(_e);project=W(()=>this.projectContext.currentProject());async loadConfig(){if(!this.project())throw new Error("No project selected");let t=this.project().id;return await se(this.api.getConfig(t))}async createConfig(t,e){if(!this.project())throw new Error("No project selected");let n=this.project().id,o=await se(this.api.createConfig(n,t,e));return this.projectContext.patchProject(o.project),o.cfg}async checkout(t={}){let e=this.ensureProjectId();return await se(this.api.checkout(e,t))}async streamCheckout(t={}){let e=this.ensureProjectId();return await se(this.api.streamCheckout(e,t))}async getSvnRuntimes(){let t=this.ensureProjectId();return await se(this.api.getRuntimes(t))}async generate(){let t=this.ensureProjectId();return await se(this.api.generate(t))}async getSprites(){let t=this.ensureProjectId();return await se(this.api.getSprites(t))}async getLocalSprites(){let t=this.ensureProjectId();return await se(this.api.getSprites(t,!0))}ensureProjectId(){let t=this.project();if(!t)throw new Error("No project selected");return t.id}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var xt=class i{constructor(t){this.ws=t;this.ws.messages().subscribe(e=>this.onMessage(e)),this.ws.stateChanges().subscribe(e=>{e==="open"&&this.lastWsState!=="open"&&this.replaySubs(),this.lastWsState=e})}subs=new Map;lastWsState="idle";event$=new ze;eventByProject=new Map;runtimesByProject=new Map;outputByKey=new Map;ensureConnected(){this.ws.connect()}subscribeProject(t,e=1e3){let n=String(t??"").trim();if(!n)return;let o=Math.max(0,Math.min(5e3,e|0));this.subs.get(n)!==o&&(this.subs.set(n,o),this.ensureProjectEventSubject(n),this.ensureProjectRuntimesSubject(n),this.ws.isOpen()&&this.ws.send({op:"sub",topic:"svn",projectId:n,tail:o}))}unsubscribeProject(t){let e=String(t??"").trim();this.subs.has(e)&&(this.subs.delete(e),this.ws.isOpen()&&this.ws.send({op:"unsub",topic:"svn",projectId:e}))}watchProject(t,e=1e3){let n=String(t??"").trim();this.ensureConnected(),this.subscribeProject(n,e);let o=new Ge;return o.add(()=>this.unsubscribeProject(n)),o}bindToDestroyRef(t,e,n=1e3){let o=String(t??"").trim();this.ensureConnected(),this.subscribeProject(o,n),e.onDestroy(()=>this.unsubscribeProject(o))}events$(){return this.event$.asObservable()}eventsByProject$(t){let e=String(t??"").trim();return this.ensureProjectEventSubject(e).asObservable()}runtimes$(t){let e=String(t??"").trim();return this.ensureProjectRuntimesSubject(e).asObservable().pipe(Zt())}output$(t){let e=this.keyOf(t);return this.outputByKey.has(e)||this.outputByKey.set(e,new ze),this.outputByKey.get(e).asObservable()}replaySubs(){for(let[t,e]of this.subs.entries())this.ws.send({op:"sub",topic:"svn",projectId:t,tail:e})}onMessage(t){if(t?.op!=="svn.event")return;let e=t,n=e.type,o=e.payload,s=String(o?.projectId??"").trim();s&&(this.event$.next(e),this.ensureProjectEventSubject(s).next(e),this.applyEvent(n,o,e.ts??Date.now()))}applyEvent(t,e,n){let o=String(e?.projectId??"").trim(),s=String(e?.sourceId??"").trim();if(!(!o||!s))switch(t){case"runtime":{let l=e;this.upsert(o,s,h=>ee(q(q({},h),l),{lastEventAt:n}),!0);return}case"started":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n}));return}case"output":{let l=e,h=l.type,G=String(l.data??"");if(G){let w=this.keyOf(o);this.outputByKey.has(w)||this.outputByKey.set(w,new ze),this.outputByKey.get(w).next({projectId:o,sourceId:s,stream:h,text:G,status:l.status,ts:n})}this.upsert(o,s,w=>ee(q({},w),{status:l.status,lastEventAt:n,lastStdout:h==="stdout"?G:w.lastStdout,lastStderr:h==="stderr"?G:w.lastStderr}));return}case"progress":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,total:l.total??h.total,changed:l.changed??h.changed,percent:l.percent??h.percent}));return}case"done":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,updatedAt:l.updatedAt,lastSyncAt:l.updatedAt,lastSyncMode:l.mode,desiredUrl:l.desiredUrl,currentUrl:l.currentUrl}));return}case"failed":{let l=e;if(this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,updatedAt:l.updatedAt,lastError:l.error,lastStderr:l.error?`[failed] ${l.error}`:h.lastStderr})),l.error){let h=this.keyOf(o);this.outputByKey.has(h)||this.outputByKey.set(h,new ze),this.outputByKey.get(h).next({projectId:o,sourceId:s,stream:"stderr",text:`[failed] ${l.error}
2
2
  `,status:l.status,ts:n})}return}default:return}}upsert(t,e,n,o=!1){let s=this.ensureProjectRuntimesSubject(t),l=s.value??[],h=l.findIndex(ae=>ae.projectId===t&&ae.sourceId===e),G=h>=0?l[h]:{projectId:t,sourceId:e},w=n(G),ye=o?q(q({},G),w):w,J=l.slice();h>=0?J[h]=ye:J.unshift(ye),s.next(J.slice(0,200))}ensureProjectEventSubject(t){let e=String(t??"").trim();return this.eventByProject.has(e)||this.eventByProject.set(e,new ze),this.eventByProject.get(e)}ensureProjectRuntimesSubject(t){let e=String(t??"").trim();return this.runtimesByProject.has(e)||this.runtimesByProject.set(e,new Xt([])),this.runtimesByProject.get(e)}keyOf(t){return`svn:${t}`}static \u0275fac=function(e){return new(e||i)(en(hn))};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var Rt=()=>({type:"question-circle",theme:"outline"}),bt=class i{draft;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-step-basic"]],inputs:{draft:"draft"},decls:35,vars:11,consts:[["nzTitle","\u57FA\u7840\u8BBE\u7F6E"],["nz-form","","nzLayout","vertical"],["nzTooltipTitle","\u9879\u76EE\u7684\u539F\u5C3A\u5BF8\u56FE\u6807SVN\u5730\u5740\uFF0C\u7528\u4E8E\u5236\u4F5C\u9879\u76EE\u6240\u9700\u96EA\u78A7\u56FE\uFF08\u53EF\u9009\uFF09",3,"nzTooltipIcon"],["nz-input","","name","iconSvnPath","placeholder","\u8F93\u5165\u539F\u5C3A\u5BF8\u56FE\u6807SVN\u5730\u5740\uFF08\u53EF\u9009\uFF09",3,"ngModelChange","ngModel"],[1,"hint"],["nzTooltipTitle","\u9879\u76EE\u7684\u5176\u4ED6\u5207\u56FESVN\u5730\u5740\uFF0C\u65B9\u4FBF\u6D4F\u89C8\u548C\u67E5\u770B\u8BE6\u60C5",3,"nzTooltipIcon"],["nz-input","","name","otherImagesSvnPath","placeholder","\u8F93\u5165\u5176\u4ED6\u5207\u56FE SVN \u5730\u5740",3,"ngModelChange","ngModel"],["nzTooltipTitle","\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939\u8DEF\u5F84\uFF0C\u652F\u6301\u4E24\u7EA7\u904D\u5386\uFF08\u6839\u76EE\u5F55 + \u4E00\u7EA7\u5B50\u76EE\u5F55\uFF09\u751F\u6210\u96EA\u78A7\u56FE",3,"nzTooltipIcon"],["nzHasFeedback","","nzErrorTip","\u8BF7\u8F93\u5165\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939\u8DEF\u5F84"],["nz-input","","name","localImageRoot","placeholder","\u8F93\u5165\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939\u8DEF\u5F84",3,"ngModelChange","ngModel"],["nzRequired","","nzTooltipTitle","\u7528\u4E8E\u5B58\u653E\u751F\u6210\u7684\u96EA\u78A7\u56FE\u6587\u4EF6"],["nzHasFeedback","","nzErrorTip","\u8BF7\u8F93\u5165\u5B58\u653E\u96EA\u78A7\u56FE\u7684\u5BFC\u51FA\u76EE\u5F55"],["nz-input","","required","","name","spriteExportDir","placeholder","\u8F93\u5165\u96EA\u78A7\u56FE\u5BFC\u51FA\u76EE\u5F55",3,"ngModelChange","ngModel"],["nzRequired","","nzTooltipTitle","\u7528\u4E8E\u5B58\u653E\u751F\u6210\u7684Less\u6587\u4EF6"],["nzHasFeedback","","nzErrorTip","\u8BF7\u8F93\u5165\u5B58\u653ELess\u6587\u4EF6\u7684\u5BFC\u51FA\u76EE\u5F55"],["nz-input","","required","","name","lessExportDir","placeholder","\u8F93\u5165Less\u5BFC\u51FA\u76EE\u5F55",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"form",1)(2,"nz-form-item")(3,"nz-form-label",2),c(4,"\u539F\u5C3A\u5BF8\u56FE\u6807 SVN \u5730\u5740"),a(),r(5,"nz-form-control")(6,"input",3),$("ngModelChange",function(s){return j(n.draft.iconSvnPath,s)||(n.draft.iconSvnPath=s),s}),a()(),r(7,"div",4),c(8,"\u793A\u4F8B\uFF1Asvn://192.168.1.10/\u9879\u76EE\u7BA1\u7406/xx\u9879\u76EE/02.\u9879\u76EE\u6587\u6863/05.\u7CFB\u7EDF\u8BBE\u8BA1/02-\u539F\u578B\u8BBE\u8BA1/02-UI\u8BBE\u8BA1\u6548\u679C\u56FE&\u5207\u56FE/3-\u539F\u5C3A\u5BF8\u56FE\u6807"),a()(),r(9,"nz-form-item")(10,"nz-form-label",5),c(11,"\u5176\u4ED6\u5207\u56FE SVN \u5730\u5740"),a(),r(12,"nz-form-control")(13,"input",6),$("ngModelChange",function(s){return j(n.draft.otherImagesSvnPath,s)||(n.draft.otherImagesSvnPath=s),s}),a()()(),r(14,"nz-form-item")(15,"nz-form-label",7),c(16,"\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939"),a(),r(17,"nz-form-control",8)(18,"input",9),$("ngModelChange",function(s){return j(n.draft.localImageRoot,s)||(n.draft.localImageRoot=s),s}),a()(),r(19,"div",4),c(20,"\u793A\u4F8B\uFF1AD:workicons \u6216 /home/user/icons\u3002\u5982\u679C\u8BBE\u7F6E\u6B64\u8DEF\u5F84\uFF0C\u5C06\u4F18\u5148\u4F7F\u7528\u6B64\u76EE\u5F55\u751F\u6210\u96EA\u78A7\u56FE\u3002"),a()(),r(21,"nz-form-item")(22,"nz-form-label",10),c(23,"\u96EA\u78A7\u56FE\u5BFC\u51FA\u76EE\u5F55"),a(),r(24,"nz-form-control",11)(25,"input",12),$("ngModelChange",function(s){return j(n.draft.spriteExportDir,s)||(n.draft.spriteExportDir=s),s}),a()(),r(26,"div",4),c(27," \u793A\u4F8B\uFF1A\u524D\u7AEF\u9879\u76EE\u4E2D\u516C\u5171\u8D44\u6E90\u76EE\u5F55\u4E00\u822C\u4E3A assets \u6216 public\uFF0C\u5EFA\u8BAE\u8BBE\u7F6E\u4E3A 'assets/icons' \u6216 'public/icons' "),a()(),r(28,"nz-form-item")(29,"nz-form-label",13),c(30,"Less \u5BFC\u51FA\u76EE\u5F55"),a(),r(31,"nz-form-control",14)(32,"input",15),$("ngModelChange",function(s){return j(n.draft.lessExportDir,s)||(n.draft.lessExportDir=s),s}),a()(),r(33,"div",4),c(34," \u793A\u4F8B\uFF1A\u524D\u7AEF\u9879\u76EE\u4E2D\u6837\u5F0F\u6587\u4EF6\u76EE\u5F55\u4E00\u822C\u4E3A '/src/styles'\uFF0C\u5EFA\u8BAE\u8BBE\u7F6E\u4E3A '/src/styles/icons' "),a()()()()),e&2&&(p(3),y("nzTooltipIcon",et(8,Rt)),p(3),B("ngModel",n.draft.iconSvnPath),p(4),y("nzTooltipIcon",et(9,Rt)),p(3),B("ngModel",n.draft.otherImagesSvnPath),p(2),y("nzTooltipIcon",et(10,Rt)),p(3),B("ngModel",n.draft.localImageRoot),p(7),B("ngModel",n.draft.spriteExportDir),p(7),B("ngModel",n.draft.lessExportDir))},dependencies:[N,Y,pt,Oe,ie,at,un,oe,st,St,Te,Ie,ht,gt,vt,Ct,Z,ge,H,ve,ft,fe,De,re,U],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}.emit[_ngcontent-%COMP%]{margin-top:8px}"]})};var wt=class i{draft;spriteUrlHint="\u9879\u76EE\u4E2D\u5B9E\u9645\u96EA\u78A7\u56FE\u8DEF\u5F84\uFF0C\u9ED8\u8BA4\uFF1A/assets/icons/{group}.png\uFF0C\u5982\uFF1A/assets/icons/16-16.png\u3002\u652F\u6301\u5360\u4F4D\u7B26\uFF1A {group} \u5206\u7EC4\u540D\uFF08\u5982 16-16\uFF09\uFF0C {size} \u5C3A\u5BF8\u524D\u7F00\uFF08\u5982 16\uFF09\u3002";templatePlaceholder='\u8F93\u5165\u590D\u5236\u6A21\u677F,\u9ED8\u8BA4\uFF1A<i class="{base} {class}"></i>';templateHint='\u5B9E\u9645\u590D\u5236\u7684\u6587\u672C\uFF0C\u9ED8\u8BA4\uFF1A<i class="{base} {class}"></i>\uFF0C\u5982\uFF1A<i class="sl-16 sl-16-1"></i>\u3002\u652F\u6301\u5360\u4F4D\u7B26\uFF1A{base} \u57FA\u7C7B\u540D\uFF0C{class} CSS \u7C7B\u540D\uFF1B{name} \u56FE\u6807\u540D\u79F0\uFF1B\u652F\u6301\u4F7F\u7528\u81EA\u5B9A\u4E49\u7EC4\u4EF6\uFF0C\u5982\u5C0F\u7A0B\u5E8F\u4E2D\u7528\u6CD5\uFF1A<SlIcon name="16-16-1" size="16" />\uFF0C\u5219\u6A21\u677F\u4E3A\uFF1A<SlIcon name="{name}" size="{size}"/>\u3002';static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-step-advance"]],inputs:{draft:"draft"},decls:23,vars:7,consts:[["nzTitle","\u9AD8\u7EA7\u8BBE\u7F6E"],["nz-form","","nzLayout","vertical"],["nz-input","","name","cssPrefix","placeholder","\u8F93\u5165 CSS \u524D\u7F00\uFF0C\u9ED8\u8BA4\uFF1Asl",3,"ngModelChange","ngModel"],[1,"hint"],["nz-input","","name","spriteUrl","placeholder","\u8F93\u5165\u96EA\u78A7\u56FE URL\uFF0C\u9ED8\u8BA4\uFF1A/assets/icons/{group}.png",3,"ngModelChange","ngModel"],["nz-input","","name","template","rows","3",2,"resize","none",3,"ngModelChange","ngModel","placeholder"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"form",1)(2,"nz-form-item")(3,"nz-form-label"),c(4,"CSS \u524D\u7F00"),a(),r(5,"nz-form-control")(6,"input",2),$("ngModelChange",function(s){return j(n.draft.cssPrefix,s)||(n.draft.cssPrefix=s),s}),a(),r(7,"div",3),c(8," \u53EF\u9009\uFF0C\u9ED8\u8BA4\u4E3A sl\u3002\u751F\u6210\u7684 CSS \u7C7B\u540D\u5C06\u4EE5\u8BE5\u524D\u7F00\u5F00\u5934\uFF0C\u5982\uFF1Asl-16-1\u3002 "),a()()(),r(9,"nz-form-item")(10,"nz-form-label"),c(11,"\u96EA\u78A7\u56FE URL"),a(),r(12,"nz-form-control")(13,"input",4),$("ngModelChange",function(s){return j(n.draft.spriteUrl,s)||(n.draft.spriteUrl=s),s}),a(),r(14,"div",3),c(15),a()()(),r(16,"nz-form-item")(17,"nz-form-label"),c(18,"\u590D\u5236\u6A21\u677F"),a(),r(19,"nz-form-control")(20,"textarea",5),$("ngModelChange",function(s){return j(n.draft.template,s)||(n.draft.template=s),s}),a(),r(21,"div",3),c(22),a()()()()()),e&2&&(p(6),B("ngModel",n.draft.cssPrefix),p(7),B("ngModel",n.draft.spriteUrl),p(2),te(" ",n.spriteUrlHint," "),p(5),y("placeholder",on(n.templatePlaceholder)),B("ngModel",n.draft.template),p(2),te(" ",n.templateHint," "))},dependencies:[N,Y,pt,Oe,ie,at,oe,st,St,Te,Ie,ht,gt,vt,Ct,Z,ge,H,ve,ft,fe,De,re,U],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}.emit[_ngcontent-%COMP%]{margin-top:8px}"]})};var Et=class i{draft;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-step-summary-aside"]],inputs:{draft:"draft"},decls:48,vars:14,consts:[["nzTitle","\u6458\u8981","nzSize","small"],[1,"item"],[1,"k"],[1,"v"],[1,"v","mono",3,"nz-tooltip"],[1,"v",3,"nz-tooltip"],[1,"sep"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"div",1)(2,"span",2),c(3,"\u9879\u76EE\u540D\u79F0"),a(),r(4,"span",3),c(5),a()(),r(6,"div",1)(7,"span",2),c(8,"\u539F\u5C3A\u5BF8\u56FE\u6807"),a(),r(9,"span",4),c(10),a()(),r(11,"div",1)(12,"span",2),c(13,"\u5176\u4ED6\u5207\u56FE"),a(),r(14,"span",5),c(15),a()(),g(16,"div",6),r(17,"div",1)(18,"span",2),c(19,"\u672C\u5730\u76EE\u5F55"),a(),r(20,"span",5),c(21),a()(),r(22,"div",1)(23,"span",2),c(24,"\u96EA\u78A7\u56FE\u5BFC\u51FA"),a(),r(25,"span",5),c(26),a()(),r(27,"div",1)(28,"span",2),c(29,"Less \u5BFC\u51FA\u76EE\u5F55"),a(),r(30,"span",5),c(31),a()(),g(32,"div",6),r(33,"div",1)(34,"span",2),c(35,"CSS\u524D\u7F00"),a(),r(36,"span",3),c(37),a()(),r(38,"div",1)(39,"span",2),c(40,"\u96EA\u78A7\u56FE URL"),a(),r(41,"span",3),c(42),a()(),r(43,"div",1)(44,"span",2),c(45,"\u590D\u5236\u6A21\u677F"),a(),r(46,"span",3),c(47),a()()()),e&2&&(p(5),k(n.draft.name||"-"),p(4),y("nz-tooltip",n.draft.iconSvnPath),p(),k(n.draft.iconSvnPath||"-"),p(4),y("nz-tooltip",n.draft.otherImagesSvnPath),p(),k(n.draft.otherImagesSvnPath||"-"),p(5),y("nz-tooltip",n.draft.localDir),p(),k(n.draft.localDir||"-"),p(4),y("nz-tooltip",n.draft.spriteExportDir),p(),k(n.draft.spriteExportDir??"-"),p(4),y("nz-tooltip",n.draft.lessExportDir),p(),k(n.draft.lessExportDir??"-"),p(6),k(n.draft.cssPrefix??"-"),p(5),k(n.draft.spriteUrl??"-"),p(5),k(n.draft.template??"-"))},dependencies:[N,fe,De,Se,re,Ae,U,H,rt],styles:[".item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;padding:6px 0;align-items:center}.k[_ngcontent-%COMP%]{opacity:.7;width:90px;font-size:14px}.v[_ngcontent-%COMP%]{text-align:right;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;word-break:break-all}.sep[_ngcontent-%COMP%]{height:1px;background:#0000000f;margin:10px 0}.tag[_ngcontent-%COMP%]{margin-top:8px;text-align:right}.warn[_ngcontent-%COMP%]{margin-top:10px;font-size:12px;color:#d46b08}"]})};var zt=class i{cssText="";clipboard=z(je);msg=z(Be);async copyCss(){let t=this.cssText;t&&(this.clipboard.copy(t),this.msg.success("\u5DF2\u590D\u5236\u6837\u5F0F"))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-less-viewport"]],inputs:{cssText:"cssText"},decls:11,vars:2,consts:[[1,"view-card","bg-fx"],[1,"view-header"],[1,"text"],[1,"actions"],["nz-button","","nzType","text","nz-tooltip","\u590D\u5236\u6837\u5F0F",3,"click","disabled"],["nzType","copy"],[1,"viewport"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),c(3,"\u6837\u5F0F\u4EE3\u7801"),a(),r(4,"div",3)(5,"button",4),P("click",function(){return n.copyCss()}),g(6,"nz-icon",5),a()()(),r(7,"div",6)(8,"pre")(9,"code"),c(10),a()()()()),e&2&&(p(5),y("disabled",!n.cssText),p(5),k(n.cssText))},dependencies:[N,ut,Y,nt,H,Ne,de,U,me,dt,re,Ae],styles:["[_nghost-%COMP%]{display:block;height:100%}.bg-fx[_ngcontent-%COMP%]{background:radial-gradient(1200px 650px at 20% 10%,rgba(34,211,238,.14),transparent 55%),radial-gradient(900px 520px at 80% 35%,rgba(124,58,237,.16),transparent 55%),radial-gradient(900px 520px at 40% 90%,rgba(52,211,153,.1),transparent 55%),linear-gradient(180deg,#050816,#070b18 40%,#050816);position:relative}.view-card[_ngcontent-%COMP%]{border:1px solid rgba(15,23,42,.12);position:relative;border-radius:12px;display:flex;flex-direction:column;height:100%;overflow:hidden}.view-header[_ngcontent-%COMP%]{padding:8px 12px;display:flex;align-items:center;justify-content:space-between;flex:0 0 auto}.view-header[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#ffffffd9}.view-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.view-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[nz-button][_ngcontent-%COMP%]{color:#ffffffd9}.viewport[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;cursor:default;background-color:#050815;position:relative;color:#fff;padding-left:12px;overflow-x:hidden;overflow-y:auto}"]})};var qn=["viewport"],Qn=(i,t)=>t.name;function Jn(i,t){if(i&1){let e=A();r(0,"div",19),P("mousemove",function(o){let s=x(e).$implicit,l=v();return b(l.onBoxMove(o,s))})("mouseleave",function(){x(e);let o=v();return b(o.onBoxLeave())})("click",function(o){let s=x(e).$implicit,l=v();return o.stopPropagation(),b(l.setActive(s.name))}),a()}if(i&2){let e=t.$implicit,n=v();ne("left",e.x,"px")("top",e.y,"px")("width",e.width,"px")("height",e.height,"px"),we("active",n.activeClassName()===e.className)}}var Ft=class i{item=null;viewportRef;activeClassName=rn("");showGrid=!0;showBoxes=!0;scale=F(1);tx=F(0);ty=F(0);dragging=F(!1);last=F({x:0,y:0});tooltip=F({visible:!1,left:0,top:0,name:"\u2014",meta:"\u2014"});get classes(){return this.meta?.classes??[]}get meta(){return this.item?.meta}get previewSpriteUrl(){return this.item?.previewSpriteUrl??""}setActive(t){this.activeClassName.set(t)}stageTransform=W(()=>`translate(${this.tx()}px, ${this.ty()}px) scale(${this.scale()})`);onBoxMove(t,e){if(!this.showBoxes)return;this.activeClassName()!==e.className&&this.setActive(e.className);let n=this.viewportRef.nativeElement.getBoundingClientRect();this.tooltip.set({visible:!0,left:t.clientX-n.left+10,top:t.clientY-n.top+10,name:e.name,meta:`${e.width}\xD7${e.height} \xB7 (-${e.x}px, -${e.y}px)`})}onBoxLeave(){this.tooltip.set(ee(q({},this.tooltip()),{visible:!1}))}onMouseDown(t){this.dragging.set(!0),this.last.set({x:t.clientX,y:t.clientY})}onMouseUp(){this.dragging.set(!1)}onMouseMove(t){if(!this.dragging())return;let e=this.last(),n=t.clientX-e.x,o=t.clientY-e.y;this.last.set({x:t.clientX,y:t.clientY}),this.tx.set(this.tx()+n),this.ty.set(this.ty()+o)}onWheel(t){t.preventDefault();let e=this.viewportRef.nativeElement.getBoundingClientRect(),n=t.clientX-e.left,o=t.clientY-e.top,s=-Math.sign(t.deltaY)*.08,l=this.scale(),h=this.clamp(l*(1+s),.6,3),G=(n-this.tx())/l,w=(o-this.ty())/l;this.scale.set(h),this.tx.set(n-G*h),this.ty.set(o-w*h)}clearActiveIfBlank(t){t.target.id==="viewport"&&this.setActive("")}resetView(){this.scale.set(1),this.tx.set(0),this.ty.set(0)}clamp(t,e,n){return Math.max(e,Math.min(n,t))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-viewport"]],viewQuery:function(e,n){if(e&1&&Je(qn,7),e&2){let o;Xe(o=Ze())&&(n.viewportRef=o.first)}},inputs:{item:"item",activeClassName:[1,"activeClassName"]},outputs:{activeClassName:"activeClassNameChange"},decls:32,vars:24,consts:[["viewport",""],[1,"view-card","bg-fx"],[1,"view-header"],[1,"tip"],["nzColor","purple"],["nzColor","geekblue"],[1,"actions"],["href","javascript:;",1,"tip",3,"click"],["nz-checkbox","",3,"ngModelChange","ngModel"],[1,"viewport",3,"mousedown","mousemove","mouseup","mouseleave","wheel","click"],[1,"stage","abs","inset-0",2,"transform-origin","0 0"],[1,"sprite","abs"],[1,"abs","inset-0",2,"background-repeat","no-repeat","background-position","0 0","background-size","100% 100%","opacity",".95"],[1,"abs","inset-0","abs2"],[1,"abs","inset-0","boxes"],[1,"abs","box-item","transition",3,"active","left","top","width","height"],[1,"tooltip","abs"],[1,"font-medium"],[1,"info-bar"],[1,"abs","box-item","transition",3,"mousemove","mouseleave","click"]],template:function(e,n){if(e&1){let o=A();r(0,"div",1)(1,"div",2)(2,"nz-space")(3,"div",3),g(4,"nz-badge",4),c(5," \u9F20\u6807\u6EDA\u8F6E\u7F29\u653E "),a(),r(6,"div",3),g(7,"nz-badge",5),c(8," \u62D6\u62FD\u79FB\u52A8 "),a()(),r(9,"div",6)(10,"nz-space")(11,"a",7),P("click",function(){return x(o),b(n.resetView())}),c(12,"\u91CD\u7F6E\u89C6\u56FE"),a(),r(13,"label",8),$("ngModelChange",function(l){return x(o),j(n.showGrid,l)||(n.showGrid=l),b(l)}),c(14,"\u50CF\u7D20\u7F51\u683C"),a(),r(15,"label",8),$("ngModelChange",function(l){return x(o),j(n.showBoxes,l)||(n.showBoxes=l),b(l)}),c(16,"\u5207\u7247\u6846"),a()()()(),r(17,"div",9,0),P("mousedown",function(l){return x(o),b(n.onMouseDown(l))})("mousemove",function(l){return x(o),b(n.onMouseMove(l))})("mouseup",function(){return x(o),b(n.onMouseUp())})("mouseleave",function(){return x(o),b(n.onMouseUp())})("wheel",function(l){return x(o),b(n.onWheel(l))})("click",function(l){return x(o),b(n.clearActiveIfBlank(l))}),r(19,"div",10)(20,"div",11),g(21,"div",12)(22,"div",13),r(23,"div",14),pe(24,Jn,1,10,"div",15,Qn),a()()(),r(26,"div",16)(27,"div",17),c(28),a(),r(29,"div"),c(30),a()()(),g(31,"div",18),a()}e&2&&(p(13),B("ngModel",n.showGrid),p(2),B("ngModel",n.showBoxes),p(2),ne("height",((n.meta==null?null:n.meta.spriteHeight)??0)+48,"px"),we("grid-fx",n.showGrid),p(2),ne("transform",n.stageTransform()),p(),ne("width",n.meta==null?null:n.meta.spriteWidth,"px")("height",n.meta==null?null:n.meta.spriteHeight,"px"),p(),ne("background-image","url("+n.previewSpriteUrl+")"),p(2),ne("display",n.showBoxes?"block":"none"),p(),le(n.classes),p(2),ne("left",n.tooltip().left,"px")("top",n.tooltip().top,"px"),we("hidden",!n.tooltip().visible),p(2),k(n.tooltip().name),p(2),k(n.tooltip().meta))},dependencies:[N,ut,yn,Y,ie,oe,nt,sn,ct,lt],styles:[`.view-card[_ngcontent-%COMP%]{border:1px solid rgba(15,23,42,.12);position:relative;border-radius:12px;overflow:hidden}.view-header[_ngcontent-%COMP%]{padding:8px 12px;display:flex;align-items:center;justify-content:space-between}.view-header[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;color:#fffc;font-size:12px}.view-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fffc}.viewport[_ngcontent-%COMP%]{cursor:default;min-height:360px;background-color:#050815;position:relative;overflow:hidden}.viewport.grid-fx[_ngcontent-%COMP%]{background-image:linear-gradient(to right,rgba(148,163,184,.06) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.06) 1px,transparent 1px);background-size:28px 28px}.bg-fx[_ngcontent-%COMP%]{background:radial-gradient(1200px 650px at 20% 10%,rgba(34,211,238,.14),transparent 55%),radial-gradient(900px 520px at 80% 35%,rgba(124,58,237,.16),transparent 55%),radial-gradient(900px 520px at 40% 90%,rgba(52,211,153,.1),transparent 55%),linear-gradient(180deg,#050816,#070b18 40%,#050816);position:relative}.bg-fx[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");mix-blend-mode:overlay}.sprite[_ngcontent-%COMP%]{border-radius:12px;background-color:#ffffff05;top:24px;left:24px;--tw-ring-offset-shadow: 0 0 #0000;--tw-shadow: 0 0 0 1px rgba(34, 211, 238, .14), 0 24px 80px rgba(0, 0, 0, .55);--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color), 0 24px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.abs[_ngcontent-%COMP%]{position:absolute}.inset-0[_ngcontent-%COMP%]{inset:0}.abs2[_ngcontent-%COMP%]{border-radius:12px;background:linear-gradient(135deg,#22d3ee14,#7c3aed1a)}.transition[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.box-item[_ngcontent-%COMP%]{border-width:1px;border-style:solid;border-color:#ffffff26}.box-item[_ngcontent-%COMP%]:hover{border-color:#7c3aed66}.box-item.active[_ngcontent-%COMP%]{border-color:#22d3eeb3;box-shadow:0 0 0 1px #22d3ee40,0 0 28px #22d3ee2e}.tooltip[_ngcontent-%COMP%]{pointer-events:none;z-index:10;border-radius:8px;border:1px solid rgba(148,163,184,.14);background-color:#121c34b3;padding:6px 10px;box-shadow:0 0 0 1px #22d3ee40,0 10px 30px #7c3aed2e;color:#fff}.tooltip.hidden[_ngcontent-%COMP%]{display:none}`]})};var Zn=(i,t)=>t.group,ei=(i,t)=>t.name,ti=(i,t)=>t.className;function ni(i,t){if(i&1&&g(0,"nz-option",5),i&2){let e=t.$implicit;y("nzLabel",e.group)("nzValue",e.group)}}function ii(i,t){i&1&&g(0,"nz-empty",6)}function oi(i,t){i&1&&g(0,"nz-empty",15)}function ri(i,t){if(i&1&&g(0,"img",25),i&2){let e=v().$implicit;y("nzSrc",e.url)("alt",e.name)}}function ai(i,t){if(i&1){let e=A();r(0,"div",23),P("click",function(){let o=x(e).$implicit,s=v(4);return b(s.copySvg(o))}),r(1,"div",24),I(2,ri,1,2,"img",25),a(),r(3,"div",26)(4,"div",27),c(5),a()()()}if(i&2){let e=t.$implicit;p(2),T(e.kind==="file"&&e.url?2:-1),p(3),k(e.name)}}function si(i,t){if(i&1&&pe(0,ai,6,2,"div",22,ei),i&2){let e=v(3);le(e.icons())}}function pi(i,t){if(i&1){let e=A();r(0,"div",23),P("click",function(){let o=x(e).$implicit,s=v(4);return b(s.copySpriteClass(o.className))}),r(1,"div",24),g(2,"div",28),a(),r(3,"div",26)(4,"div",27),c(5),a(),r(6,"div",29),c(7),a(),g(8,"nz-badge",30),a()()}if(i&2){let e=t.$implicit,n=v(4);p(2),y("ngStyle",n.spriteStyle(e)),p(3),k(e.name),p(2),k(e.className),p(),y("nzStatus",n.activeClassName()===e.className?"processing":"default")}}function li(i,t){if(i&1&&pe(0,pi,9,4,"div",22,ti),i&2){let e=v(3);le(e.iconClasses())}}function ci(i,t){if(i&1&&(r(0,"div",16),I(1,si,2,0)(2,li,2,0),a()),i&2){let e=v(2);p(),T(e.mode()==="svg"?1:2)}}function ui(i,t){if(i&1){let e=A();r(0,"div",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),c(5,"\u56FE\u6807\u9884\u89C8"),a(),r(6,"div",12),c(7),a()(),r(8,"div",13),g(9,"input",14),a()(),I(10,oi,1,0,"nz-empty",15)(11,ci,3,1,"div",16),a(),r(12,"div",8)(13,"div",9)(14,"div",10)(15,"div",11),c(16,"\u751F\u6210\u7ED3\u679C"),a(),r(17,"div",12),c(18,"LESS/CSS \u6837\u5F0F\uFF0C\u5305\u542B\u96EA\u78A7\u56FE\u80CC\u666F\u5B9A\u4F4D\u7B49\u4FE1\u606F"),a()(),g(19,"div",17),a(),r(20,"div",18)(21,"app-sprite-viewport",19),$("activeClassNameChange",function(o){x(e);let s=v();return j(s.activeClassName,o)||(s.activeClassName=o),b(o)}),a()(),r(22,"div",20),g(23,"app-less-viewport",21),a()()()}if(i&2){let e=v();p(7),te("\u5171",e.icons().length+e.iconClasses().length,"\u4E2A\u56FE\u6807"),p(3),T(e.iconClasses().length===0&&e.icons().length===0?10:11),p(11),B("activeClassName",e.activeClassName),y("item",e.activeItem()),p(2),y("cssText",e.cssText())}}var Pt=class i{clipboard=z(je);msg=z(Be);api=z(_e);sprite=Le(null);groups=W(()=>this.sprite()?.groups??[]);group=F("");activeItem=W(()=>{let t=this.group();return this.groups().find(e=>e.group===t)??null});mode=W(()=>this.activeItem()?.kind==="svg"?"svg":"png");activeClassName=F("");activePreviewSpriteUrl=W(()=>this.activeItem()?.previewSpriteUrl??null);ngOnChanges(t){if(t.sprite){let e=this.sprite()?.groups?.[0];if(e){let n=e.group??"";this.group.set(n),this.groupChange(n)}}}groupChange(t){this.activeItem()?.kind==="svg"&&this.loadImages(t)}loadImages(t){let e=this.sprite()?.projectId??"";e&&this.api.browseIconFiles(e,t).subscribe(n=>{let o=n.entries??[];this.icons.set(o)})}baseClass=W(()=>{let t=this.sprite()?.config?.prefix||"sl",e=this.group(),n=String(e).split("-");if(n.length>1){let[o,s]=n;return o!==s?`${t}-${n[0]}-${n[1]}`:`${t}-${n[0]}`}return`${t}-${n[0]}`});iconClasses=W(()=>(this.activeItem()?.meta?.classes??[]).filter(o=>!!o.className));icons=F([]);cssText=W(()=>{let t=this.activeItem();return String(t?.lessText??"")});async copySpriteClass(t){let n=(this.sprite()?.config?.template||'<i class="{base} {class}"></i>').replaceAll("{base}",this.baseClass()).replaceAll("{class}",t);this.activeClassName.set(t),this.clipboard.copy(n);let s=`\u5DF2\u590D\u5236\uFF1A${jn(n)}`;this.msg.success(s)}async copySvg(t){let e=this.sprite()?.config?.template;if(!e)return;let o=this.activeItem()?.meta;if(!o)return;let s=o?.size,l=o.icons.find(ye=>ye.file===t.name);if(!l)return;let h=e.replaceAll("{name}",l.name).replaceAll("{size}",s).replaceAll("{base}",l.className).replaceAll("{group}",o.group);this.clipboard.copy(h);let w=`\u5DF2\u590D\u5236\uFF1A${jn(h)}`;this.msg.success(w)}async copyCss(){let t=this.cssText();t&&(this.clipboard.copy(t),this.msg.success("\u5DF2\u590D\u5236"))}baseSpriteStyle(){let t=this.activeItem(),e=t?.previewSpriteUrl;if(!e)return{};let n=t?.meta;return{backgroundImage:`url("${e}")`,backgroundRepeat:"no-repeat",backgroundSize:n?`${n.spriteWidth}px ${n.spriteHeight}px`:"initial"}}spriteStyle(t){if(!t)return{};let e=this.baseSpriteStyle();return ee(q({},e),{width:`${t.width}px`,height:`${t.height}px`,backgroundPosition:`-${t.x}px -${t.y}px`})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-icons-panel"]],inputs:{sprite:[1,"sprite"]},features:[qe],decls:10,vars:2,consts:[[1,"wrap"],[1,"bar"],[1,"left"],[1,"label"],["nzPlaceHolder","\u8BF7\u9009\u62E9",2,"width","220px",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],["nzNotFoundContent","\u6CA1\u6709\u53EF\u5C55\u793A\u7684\u5206\u7EC4"],[1,"grid"],[1,"panel"],[1,"panel-header"],[1,"panel-title","column"],[1,"text"],[1,"sub-text"],[1,"search"],["type","text","placeholder","\u641C\u7D22\u56FE\u6807\u540D\u79F0\u6216\u7C7B\u540D","nz-input",""],["nzNotFoundContent","\u8BE5\u5206\u7EC4\u6CA1\u6709\u53EF\u7528\u56FE\u6807"],[1,"icon-grid"],[1,"actions"],[1,"sprite-content"],[3,"activeClassNameChange","activeClassName","item"],[1,"css-content"],[3,"cssText"],[1,"icon-card"],[1,"icon-card",3,"click"],[1,"thumb"],["nz-image","","loading","lazy",3,"nzSrc","alt"],[1,"meta"],[1,"name"],[1,"sprite",3,"ngStyle"],[1,"cls"],[3,"nzStatus"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),c(4,"\u5206\u7EC4"),a(),r(5,"nz-select",4),P("ngModelChange",function(s){return n.group.set(s),n.groupChange(s)}),pe(6,ni,1,2,"nz-option",5,Zn),a()()(),I(8,ii,1,0,"nz-empty",6)(9,ui,24,5,"div",7),a()),e&2&&(p(5),y("ngModel",n.group()),p(),le(n.groups()),p(2),T(n.activeItem()?9:8))},dependencies:[N,an,Y,ie,oe,ve,vn,Sn,ke,Ce,he,In,H,U,dt,Z,ge,Ft,zt,ct,lt,yt,_t],styles:[".wrap[_ngcontent-%COMP%]{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}.bar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.label[_ngcontent-%COMP%]{opacity:.8}.hint[_ngcontent-%COMP%]{opacity:.75;max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ok[_ngcontent-%COMP%]{color:#52c41a}.grid[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr);gap:12px}@media (max-width: 1100px){.grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.panel[_ngcontent-%COMP%]{border:1px solid rgba(15,23,42,.12);border-radius:20px;min-height:0;display:flex;flex-direction:column;background:#ffffff05}.panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid rgba(15,23,42,.12)}.panel-title[_ngcontent-%COMP%]{display:flex}.panel-title.column[_ngcontent-%COMP%]{flex-direction:column}.panel-title[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.panel-title[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{font-size:12px;opacity:.75}.search[_ngcontent-%COMP%]{width:240px}.icon-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;overflow:auto;padding:12px}.icon-card[_ngcontent-%COMP%]{cursor:pointer;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:#00000080;transition:transform .08s ease,border-color .08s ease;-webkit-user-select:none;user-select:none;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.icon-card[_ngcontent-%COMP%]:hover{transform:translateY(-1px);border-color:#ffffffe6}.thumb[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:32px;min-height:32px}.meta[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:12px;opacity:.9}.meta[_ngcontent-%COMP%] .cls[_ngcontent-%COMP%]{font-size:12px;opacity:.65}.meta[_ngcontent-%COMP%]{position:relative}.meta[_ngcontent-%COMP%] nz-badge[_ngcontent-%COMP%]{position:absolute;top:-12px;right:0}.sprite-content[_ngcontent-%COMP%]{padding:16px 16px 0}.css-content[_ngcontent-%COMP%]{padding:12px;line-height:1.5;flex:1 1 auto;overflow:hidden}"]})};function jn(i){return i.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;")}var mi=(i,t)=>t.dir,di=(i,t)=>t.url;function fi(i,t){i&1&&g(0,"nz-empty",4)}function gi(i,t){i&1&&g(0,"nz-icon",9)}function hi(i,t){if(i&1){let e=A();r(0,"nz-tag",8),P("click",function(){let o=x(e).$implicit,s=v(2);return b(s.loadDir(o))}),c(1),a(),I(2,gi,1,0,"nz-icon",9)}if(i&2){let e=t.$implicit,n=t.$index,o=v(2);p(),te(" ",e.label," "),p(),T(n<o.dirStack.length-1?2:-1)}}function Ci(i,t){if(i&1&&g(0,"img",11),i&2){let e=v().$implicit;y("nzSrc",e.url)("nzFallback","/images/placeholder.png")("nzPlaceholder","/images/placeholder.png")("alt",e.name)}}function vi(i,t){if(i&1){let e=A();r(0,"div",16),P("click",function(){x(e);let o=v().$implicit,s=v(2);return b(s.openDir(o))}),g(1,"nz-icon",17),a()}}function Si(i,t){if(i&1&&(r(0,"div",15),c(1),a()),i&2){let e=v().$implicit;p(),te("\u5171",e.fileCount," \u5F20\u56FE\u7247")}}function _i(i,t){if(i&1&&(r(0,"div",7)(1,"div",10),I(2,Ci,1,4,"img",11)(3,vi,2,0,"div",12),a(),r(4,"div",13)(5,"div",14),c(6),a(),I(7,Si,2,1,"div",15),a()()),i&2){let e=t.$implicit;p(2),T(e.kind==="file"?2:3),p(4),k(e.name),p(),T(e.kind==="dir"&&e.fileCount!==void 0?7:-1)}}function yi(i,t){if(i&1&&(r(0,"div",5),pe(1,hi,3,2,null,null,mi),a(),r(3,"nz-image-group")(4,"div",6),pe(5,_i,8,3,"div",7,di),a()()),i&2){let e=v();p(),le(e.dirStack),p(4),le(e.images())}}var Nt=class i{sprite=null;api=z(_e);clipboard=z(je);msg=z(Be);currentDir=F("");dirStack=[{label:"\u6839\u76EE\u5F55",dir:""}];cachedImages=F([]);imagesCount=W(()=>this.images().filter(t=>t.kind==="file").length);keyword=F("");ngOnInit(){}ngOnChanges(t){let e=t.sprite.currentValue;e&&(this.dirStack=[{label:"\u6839\u76EE\u5F55",dir:""}],this.loadImages(e.projectId))}images=W(()=>{let t=this.keyword().trim().toLowerCase();return t?this.cachedImages().filter(e=>e.name.toLowerCase().includes(t)):this.cachedImages()});loadImages(t,e=""){this.keyword.set(""),this.currentDir.set(e),this.api.browseImages(t,e).subscribe(n=>{this.cachedImages.set(n.entries)})}loadDir(t){if(!this.sprite?.projectId)return;let e=this.dirStack.findIndex(n=>n.dir===t.dir);e>=0&&(this.dirStack=this.dirStack.slice(0,e+1)),this.loadImages(this.sprite.projectId,t.dir)}openDir(t){if(!this.sprite?.projectId||t.kind!=="dir")return;let e=String(t.name??"").trim();if(!e)return;let n=this.currentDir(),o=n?`${n}/${e}`:e;this.dirStack=[...this.dirStack,{label:e,dir:o}],this.loadImages(this.sprite.projectId,o)}copy(t){this.clipboard.copy(t),this.msg.success("\u5DF2\u590D\u5236\u56FE\u7247 URL")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-images-panel"]],inputs:{sprite:"sprite"},features:[qe],decls:7,vars:3,consts:[[1,"wrap"],[1,"header"],["nz-input","","placeholder","\u641C\u7D22\u6587\u4EF6\u540D",3,"ngModelChange","ngModel"],[1,"count"],["nzNotFoundContent","\u6682\u65E0\u56FE\u7247\u5217\u8868"],[1,"dir-stack"],[1,"img-grid"],[1,"img-card"],["color","blue",1,"dir-item",3,"click"],["nzType","right","nzTheme","outline"],[1,"thumb"],["nz-image","","loading","lazy",3,"nzSrc","nzFallback","nzPlaceholder","alt"],["title","\u76EE\u5F55",1,"dir"],[1,"meta"],[1,"name"],[1,"file-count"],["title","\u76EE\u5F55",1,"dir",3,"click"],["nzType","folder","nzTheme","fill"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"input",2),$("ngModelChange",function(s){return j(n.keyword,s)||(n.keyword=s),s}),a(),r(3,"div",3),c(4),a()(),I(5,fi,1,0,"nz-empty",4)(6,yi,7,0),a()),e&2&&(p(2),B("ngModel",n.keyword),p(2),te(" \u5171 ",n.imagesCount()," \u5F20\u56FE\u7247 "),p(),T(n.cachedImages().length===0?5:6))},dependencies:[N,Y,Oe,ie,oe,Ce,he,H,de,U,me,Z,ge,Se,bn,yt,_t,Tn],styles:[".wrap[_ngcontent-%COMP%]{height:100%;min-height:0;overflow-y:auto;padding:12px}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{font-size:14px;opacity:.45;flex:0 0 auto;white-space:nowrap}.dir-stack[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-bottom:12px;flex-wrap:wrap}.dir-item[_ngcontent-%COMP%]{cursor:pointer}.img-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;overflow:auto;padding-right:4px}.img-card[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;background:#ffffff05;display:flex;flex-direction:column}.thumb[_ngcontent-%COMP%]{height:160px;background:#0000002e;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;object-fit:contain;cursor:pointer}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:focus, .thumb[_ngcontent-%COMP%]:focus{outline:none}.thumb[_ngcontent-%COMP%] .dir[_ngcontent-%COMP%]{color:#fff9;font-size:56px;cursor:pointer}.meta[_ngcontent-%COMP%]{padding:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0000000a}.name[_ngcontent-%COMP%]{font-size:14px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-count[_ngcontent-%COMP%]{font-size:14px;opacity:.45;flex:0 0 auto;white-space:nowrap}"]})};function bi(i,t){if(i&1&&g(0,"app-step-basic",10),i&2){let e=v();y("draft",e.draft())}}function Mi(i,t){if(i&1&&g(0,"app-step-advance",10),i&2){let e=v();y("draft",e.draft())}}function wi(i,t){if(i&1){let e=A();r(0,"button",16),P("click",function(){x(e);let o=v();return b(o.cancel())}),g(1,"nz-icon",17),c(2," \u53D6\u6D88 "),a()}}function Ei(i,t){if(i&1){let e=A();r(0,"button",16),P("click",function(){x(e);let o=v();return b(o.prev())}),g(1,"nz-icon",18),c(2," \u4E0A\u4E00\u6B65 "),a()}}function zi(i,t){if(i&1){let e=A();r(0,"button",19),P("click",function(){x(e);let o=v();return b(o.create())}),g(1,"nz-icon",20),c(2," \u786E\u5B9A "),a()}}function Fi(i,t){if(i&1){let e=A();r(0,"button",21),P("click",function(){x(e);let o=v();return b(o.next())}),c(1," \u4E0B\u4E00\u6B65 "),g(2,"nz-icon",22),a()}if(i&2){let e=v();y("disabled",!e.canNext())}}var Dt=class i{step=F(0);creating=F(!1);draft=F({name:"",iconSvnPath:"",otherImagesSvnPath:"",localDir:""});nzModalData=z(pn);modalRef=z(ln);modal=z(ot);state=z($e);notify=z(fn);constructor(){let t=this.state.project();if(t){let e=t.assets?.iconsSvn?.url||"",n=t.assets?.iconsSvn?.id||"",o=t.assets?.cutImageSvn?.url||"",s=this.nzModalData.cfg;this.draft.update(l=>(l.name=t.name,l.sourceId=n,l.iconSvnPath=e,l.otherImagesSvnPath=o,l.localDir=s?.localDir||"",l.cssPrefix=s?.prefix||"sl",l.spriteUrl=s?.spriteUrl||"/assets/icons/{group}.png",l.template=s?.template||'<i class="{base} {class}"></i>',l.spriteExportDir=s?.spriteExportDir||"",l.lessExportDir=s?.lessExportDir||"",l.localImageRoot=s?.localImageRoot||"",l))}}canNext(){let t=this.step(),e=this.draft();if(t===0){let n=e.iconSvnPath?.trim(),o=e.localImageRoot?.trim();return!(!n&&!o)}return!0}next(){this.step.update(t=>t+1)}prev(){this.step.update(t=>t-1)}canCreateHere(){return this.step()===1}async create(){if(this.creating())return;this.creating.set(!0);let t=this.draft(),e={};if(t.iconSvnPath?.trim()&&(e.iconsSvn={kind:"svn",url:t.iconSvnPath,label:"icons",mode:"manual",localDir:t.localDir,id:t.sourceId}),t.otherImagesSvnPath){let s=this.state.project()?.assets?.cutImageSvn?.id||"";e.cutImageSvn={kind:"svn",url:t.otherImagesSvnPath,label:"images",mode:"manual",localDir:t.localDir,id:s}}let n={enabled:!0,persistLess:!0,localDir:t.localDir,localImageRoot:t.localImageRoot||void 0,template:t.template||'<i class="{base} {class}"></i>',prefix:t.cssPrefix||"sl",sourceId:t.sourceId||"",spriteUrl:t.spriteUrl||"/assets/icons/{group}.png",algorithm:"binary-tree",spriteExportDir:t.spriteExportDir||"",lessExportDir:t.lessExportDir||""},o=await this.state.createConfig(e,n);this.creating.set(!1),this.notify.success("\u914D\u7F6E\u5DF2\u4FDD\u5B58"),this.modalRef.close({ok:!0,cfg:o})}cancel(){this.modalRef.close()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-conf-modal"]],decls:19,vars:7,consts:[["nz-row","","nzJustify","center"],["nz-col","","nzSpan","16"],[3,"nzCurrent"],["nzTitle","\u8BE6\u60C5"],["nzTitle","\u914D\u7F6E"],["nz-row","","nzJustify","start"],["nz-col","","nzSpan","24"],[3,"nzSpinning"],[1,"content"],[1,"main"],[3,"draft"],[1,"actions"],["nz-button",""],["nz-button","","nzType","primary"],["nz-button","","nzType","primary",3,"disabled"],[1,"aside"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nzType","arrow-left","nzTheme","outline"],["nz-button","","nzType","primary",3,"click"],["nzType","check","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","arrow-right","nzTheme","outline"]],template:function(e,n){if(e&1&&(r(0,"div",0)(1,"div",1)(2,"nz-steps",2),g(3,"nz-step",3)(4,"nz-step",4),a()()(),r(5,"div",5)(6,"div",6)(7,"nz-spin",7)(8,"div",8)(9,"div",9),I(10,bi,1,1,"app-step-basic",10)(11,Mi,1,1,"app-step-advance",10),r(12,"div",11),I(13,wi,3,0,"button",12),I(14,Ei,3,0,"button",12),I(15,zi,3,0,"button",13)(16,Fi,3,1,"button",14),a()(),r(17,"div",15),g(18,"app-step-summary-aside",10),a()()()()()),e&2){let o;p(2),y("nzCurrent",n.step()),p(5),y("nzSpinning",n.creating()),p(3),T((o=n.step())===0?10:o===1?11:-1),p(3),T(n.step()===0?13:-1),p(),T(n.step()>0?14:-1),p(),T(n.canCreateHere()?15:16),p(3),y("draft",n.draft())}},dependencies:[N,Y,cn,fe,ke,Te,Ie,Nn,Pn,Fn,H,Ne,de,it,Z,U,me,mt,xn,bt,wt,Et],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 360px;gap:16px;margin-top:16px}.main[_ngcontent-%COMP%]{min-height:420px}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.aside[_ngcontent-%COMP%]{position:sticky;top:16px;height:fit-content}"]})};function Pi(i,t){if(i&1&&g(0,"app-sprite-icons-panel",5),i&2){let e=v();y("sprite",e.sprite())}}function Ni(i,t){if(i&1&&g(0,"app-sprite-images-panel",5),i&2){let e=v();y("sprite",e.sprite())}}function Di(i,t){if(i&1&&g(0,"app-sprite-icons-panel",5),i&2){let e=v(2);y("sprite",e.localSprite())}}function Ii(i,t){i&1&&g(0,"nz-empty",6)}function Ti(i,t){if(i&1&&I(0,Di,1,1,"app-sprite-icons-panel",5)(1,Ii,1,0,"nz-empty",6),i&2){let e=v();T(e.localSprite()?0:1)}}var It=class i{sprite=Le(null);localSprite=Le(null);tabIndex=0;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-result-tabs"]],inputs:{sprite:[1,"sprite"],localSprite:[1,"localSprite"]},decls:7,vars:1,consts:[[3,"nzSelectedIndexChange","nzSelectedIndex"],["nzTitle","SVN \u56FE\u6807"],["nz-tab",""],["nzTitle","SVN \u56FE\u7247"],["nzTitle","\u672C\u5730\u56FE\u6807"],[3,"sprite"],["nzNotFoundContent","\u672A\u914D\u7F6E\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939"]],template:function(e,n){e&1&&(r(0,"nz-tabs",0),$("nzSelectedIndexChange",function(s){return j(n.tabIndex,s)||(n.tabIndex=s),s}),r(1,"nz-tab",1),Pe(2,Pi,1,1,"ng-template",2),a(),r(3,"nz-tab",3),Pe(4,Ni,1,1,"ng-template",2),a(),r(5,"nz-tab",4),Pe(6,Ti,2,1,"ng-template",2),a()()),e&2&&B("nzSelectedIndex",n.tabIndex)},dependencies:[N,zn,En,wn,Mn,Ce,he,ve,Se,Nt,Pt],styles:["[_nghost-%COMP%]{display:block;height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%] .ant-tabs-content-holder{height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%] .ant-tabs-content-holder .ant-tabs-content{height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%] .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane{height:100%}"]})};var Kt=Yn($n());function ki(i,t){if(i&1){let e=A();r(0,"button",16),P("click",function(){x(e);let o=v(2);return b(o.streamCheckout())}),g(1,"nz-icon",17),r(2,"span"),c(3),a()()}if(i&2){let e=v(2);p(3),te("\u540C\u6B65 ",e.lastSyncAt())}}function Oi(i,t){if(i&1){let e=A();r(0,"button",13),P("click",function(){x(e);let o=v();return b(o.generate())}),g(1,"nz-icon",14),r(2,"span"),c(3,"\u751F\u6210\u96EA\u78A7\u56FE"),a()(),I(4,ki,4,1,"button",15)}if(i&2){let e=v();p(4),T(e.hasSvnSource()?4:-1)}}function Ai(i,t){if(i&1&&g(0,"nz-empty",10),i&2){v();let e=Bt(14),n=Bt(16);y("nzNotFoundContent",e)("nzNotFoundFooter",n)}}function Bi(i,t){if(i&1&&g(0,"app-sprite-result-tabs",11),i&2){let e=v();y("sprite",e.sprite())("localSprite",e.localSprite())}}function ji(i,t){i&1&&(r(0,"span"),c(1,"\u6682\u65E0\u96EA\u78A7\u56FE\u914D\u7F6E\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C"),g(2,"nz-icon",7),c(3,"\u201D \u65B0\u589E\u914D\u7F6E"),a())}function $i(i,t){if(i&1){let e=A();r(0,"button",18),P("click",function(){x(e);let o=v();return b(o.openSettingModal())}),c(1,"\u7ACB\u5373\u65B0\u589E"),a()}}var Tt=class i{isDrawerOpen=!1;loading=F(!1);cfg=F(null);lastSyncAt=F("N/A");sub=new Ge;state=z($e);modal=z(ot);svnStream=z(xt);term;sprite=F(null);localSprite=F(null);async ngOnInit(){if(await this.loadConfig(),this.isEmpty())return;let t=this.state.project()?.id;if(!t)return;let e=await this.state.getSvnRuntimes();e?.length&&(e.forEach(o=>{let s=o.lastSyncAt?(0,Kt.default)(o.lastSyncAt).format("YYYY-MM-DD HH:mm:ss"):"N/A",l=o.lastStderr?"\u5931\u8D25":"\u6210\u529F",h=o.desiredUrl?`${o.desiredUrl}`:"No desired URL";this.term?.writeln(`[\u66F4\u65B0\u65F6\u95F4]: ${s}`),this.term?.writeln(`[\u66F4\u65B0\u72B6\u6001]: ${l}`),this.term?.writeln(`[SVN \u8DEF\u5F84]: ${h}`),this.term?.writeln("-----------------------------")}),this.updateLastSyncAt(e));let n=await this.state.getSprites();if(this.sprite.set(n),this.cfg()?.localImageRoot){let o=await this.state.getLocalSprites();this.localSprite.set(o)}this.sub.add(this.svnStream.watchProject(t,1e3)),this.sub.add(this.svnStream.runtimes$(t).subscribe(o=>{this.updateLastSyncAt(o)})),this.sub.add(this.svnStream.output$(t).subscribe(o=>{this.term&&this.term.write(o.text)}))}ngOnDestroy(){this.term&&this.term.clear(),this.sub.unsubscribe()}isEmpty=W(()=>{let t=this.cfg(),e=this.state.project(),n=t&&(e?.assets?.iconsSvn||t?.sourceId),o=!!t?.localImageRoot;return!n&&!o});hasSvnSource=W(()=>{let t=this.cfg(),e=this.state.project();return!!(t&&(e?.assets?.iconsSvn||t?.sourceId))});async loadConfig(){try{this.loading.set(!0);let t=await this.state.loadConfig();this.cfg.set(t),this.loading.set(!1)}catch{this.loading.set(!1)}}async generate(){this.loading.set(!0),await this.state.generate();let t=await this.state.getSprites();if(this.sprite.set(t),this.cfg()?.localImageRoot){let e=await this.state.getLocalSprites();this.localSprite.set(e)}else this.localSprite.set(null);this.loading.set(!1)}async checkout(){this.loading.set(!0);let t=await this.state.checkout();this.loading.set(!1)}async streamCheckout(){if(this.hasSvnSource())try{this.loading.set(!0),this.isDrawerOpen=!0,await this.state.streamCheckout();let t=await this.state.getSvnRuntimes();this.updateLastSyncAt(t)}finally{this.loading.set(!1)}}updateLastSyncAt(t){let e=this.cfg()?.sourceId;if(!e)return;let n=t.find(o=>o.sourceId===e&&o.lastSyncAt);n?.lastSyncAt&&this.lastSyncAt.set((0,Kt.default)(n.lastSyncAt).format("YYYY-MM-DD HH:mm:ss"))}openSettingModal(){let t=this.modal.create({nzTitle:"\u96EA\u78A7\u56FE\u914D\u7F6E",nzFooter:null,nzKeyboard:!1,nzMaskClosable:!1,nzClosable:!0,nzContent:Dt,nzData:{cfg:this.cfg()},nzWidth:"1020px",nzCentered:!0}),e=t.getContentComponent();t.afterClose.subscribe(n=>{n?.ok&&this.loadConfig()})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite"]],viewQuery:function(e,n){if(e&1&&Je(Vt,5),e&2){let o;Xe(o=Ze())&&(n.term=o.first)}},decls:17,vars:12,consts:[["contentTpl",""],["footerTpl",""],[3,"title","loading","isFullscreen","isOverflowYAuto"],["ngProjectAs","actions",5,["actions"]],["nz-button","","nzType","text","nz-tooltip","","nzTooltipTitle","\u67E5\u770B\u65E5\u5FD7",3,"click"],["nzType","desktop","nzTheme","outline"],["nz-button","","nzType","text","nz-tooltip","","nzTooltipTitle","\u914D\u7F6E\u96EA\u78A7\u56FE",3,"click"],["nzType","setting","nzTheme","outline"],[1,"page"],[1,"content"],[3,"nzNotFoundContent","nzNotFoundFooter"],[3,"sprite","localSprite"],[1,"aside"],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTitle","\u751F\u6210\u96EA\u78A7\u56FE",3,"click"],["nzType","play-circle","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTitle","\u4ECEsvn\u66F4\u65B0\u8D44\u6E90"],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTitle","\u4ECEsvn\u66F4\u65B0\u8D44\u6E90",3,"click"],["nzType","sync","nzTheme","outline"],["nz-button","","nzType","primary",3,"click"]],template:function(e,n){if(e&1){let o=A();r(0,"app-page-layout",2),tn(1,3),I(2,Oi,5,1),r(3,"button",4),P("click",function(){return x(o),b(n.isDrawerOpen=!n.isDrawerOpen)}),g(4,"nz-icon",5),a(),r(5,"button",6),P("click",function(){return x(o),b(n.openSettingModal())}),g(6,"nz-icon",7),a(),nn(),r(7,"div",8)(8,"div",9),I(9,Ai,1,2,"nz-empty",10)(10,Bi,1,2,"app-sprite-result-tabs",11),a(),r(11,"div",12),g(12,"app-terminal-view"),a()()(),Pe(13,ji,4,0,"ng-template",null,0,jt)(15,$i,2,0,"ng-template",null,1,jt)}e&2&&(y("title","\u96EA\u78A7\u56FE")("loading",n.loading())("isFullscreen",!0)("isOverflowYAuto",!1),p(2),T(n.isEmpty()?-1:2),p(6),we("empty",n.isEmpty()),p(),T(n.isEmpty()?9:10),p(2),we("open",n.isDrawerOpen),p(),ne("height",100,"%"))},dependencies:[N,Y,ke,H,Ne,de,it,Z,U,me,re,Ae,Se,mt,Dn,_n,dn,mn,Ce,he,rt,Vt,It],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:row;overflow:hidden;gap:16px;padding:0 16px}.content[_ngcontent-%COMP%]{flex:1 1 auto;width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.content.empty[_ngcontent-%COMP%]{justify-content:center}.aside[_ngcontent-%COMP%]{width:0;flex:0 0 auto;height:100%;padding:16px;background:#000;transition:transform .2s ease;transform:translate(150%)}.aside.open[_ngcontent-%COMP%]{width:400px;transform:translate(0)}"]})};var Vi=[{path:"",component:Tt}],kt=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=Qe({type:i});static \u0275inj=Ke({imports:[$t.forChild(Vi),$t]})};var Vn=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=Qe({type:i});static \u0275inj=Ke({imports:[N,kt]})};export{Vn as SpriteModule};
@@ -1 +1 @@
1
- import{c as G}from"./chunk-FXCG34QS.js";import{$ as V,Ga as L,Ha as q,L as W,a as Q,c as E,oa as H,xb as $,yb as U}from"./chunk-3CM4SKDO.js";import{i as I}from"./chunk-KRYMOHYF.js";import{Ac as D,Da as y,Ec as M,Fb as l,Fc as B,Gb as P,Gc as C,Lb as m,Oa as _,Wb as z,Yb as u,bc as s,cc as S,dc as N,dd as x,ec as f,lc as F,nb as v,oa as A,rc as O,sa as a,sb as Z,uc as r,ud as j,vc as d,wc as p,xc as k,ya as R,yd as T,za as b,zc as w}from"./chunk-4BRW6LCZ.js";var h=["*"],X=["nz-sider-trigger",""];function Y(e,o){}function ee(e,o){if(e&1&&m(0,Y,0,0,"ng-template",2),e&2){let n=r(),t=M(5);s("ngTemplateOutlet",n.nzZeroTrigger||t)}}function te(e,o){}function ne(e,o){if(e&1&&m(0,te,0,0,"ng-template",2),e&2){let n=r(),t=M(3);s("ngTemplateOutlet",n.nzTrigger||t)}}function ie(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"left":"right")}}function oe(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"right":"left")}}function re(e,o){if(e&1&&z(0,ie,1,1,"nz-icon",3)(1,oe,1,1,"nz-icon",3),e&2){let n=r();u(n.nzReverseArrow?0:1)}}function ae(e,o){e&1&&f(0,"nz-icon",4)}function le(e,o){if(e&1){let n=F();S(0,"div",2),O("click",function(){R(n);let i=r();return b(i.setCollapsed(!i.nzCollapsed))}),N()}if(e&2){let n=r();s("matchBreakPoint",n.matchBreakPoint)("nzCollapsedWidth",n.nzCollapsedWidth)("nzCollapsed",n.nzCollapsed)("nzBreakpoint",n.nzBreakpoint)("nzReverseArrow",n.nzReverseArrow)("nzTrigger",n.nzTrigger)("nzZeroTrigger",n.nzZeroTrigger)("siderWidth",n.widthSetting)}}var De=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-content"]],hostAttrs:[1,"ant-layout-content"],exportAs:["nzContent"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Me=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-footer"]],hostAttrs:[1,"ant-layout-footer"],exportAs:["nzFooter"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Be=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-header"]],hostAttrs:[1,"ant-layout-header"],exportAs:["nzHeader"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),J=(()=>{class e{nzCollapsed=!1;nzReverseArrow=!1;nzZeroTrigger=null;nzTrigger=void 0;matchBreakPoint=!1;nzCollapsedWidth=null;siderWidth=null;nzBreakpoint=null;isZeroTrigger=!1;isNormalTrigger=!1;updateTriggerType(){this.isZeroTrigger=this.nzCollapsedWidth===0&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=this.nzCollapsedWidth!==0}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(t,i){t&2&&(B("width",i.isNormalTrigger?i.siderWidth:null),C("ant-layout-sider-trigger",i.isNormalTrigger)("ant-layout-sider-zero-width-trigger",i.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",i.isZeroTrigger&&i.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",i.isZeroTrigger&&!i.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[_],attrs:X,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],[3,"nzType"],["nzType","bars"]],template:function(t,i){t&1&&(z(0,ee,1,1,null,2),z(1,ne,1,1,null,2),m(2,re,2,1,"ng-template",null,0,x)(4,ae,1,0,"ng-template",null,1,x)),t&2&&(u(i.isZeroTrigger?0:-1),v(),u(i.isNormalTrigger?1:-1))},dependencies:[I,q,L],encapsulation:2,changeDetection:0})}return e})(),K=(()=>{class e{destroyRef=a(y);platform=a(E);cdr=a(j);breakpointService=a(U);nzMenuDirective=null;nzCollapsedChange=new Z;nzWidth=200;nzTheme="dark";nzCollapsedWidth=80;nzBreakpoint=null;nzZeroTrigger=null;nzTrigger=void 0;nzReverseArrow=!1;nzCollapsible=!1;nzCollapsed=!1;matchBreakPoint=!1;flexSetting=null;widthSetting=null;updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:V(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&this.nzMenuDirective.nzMode==="inline"&&this.nzCollapsedWidth!==0&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(n){n!==this.nzCollapsed&&(this.nzCollapsed=n,this.nzCollapsedChange.emit(n),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe($,!0).pipe(W(this.destroyRef)).subscribe(n=>{let t=this.nzBreakpoint;t&&H().subscribe(()=>{this.matchBreakPoint=!n[t],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(n){let{nzCollapsed:t,nzCollapsedWidth:i,nzWidth:c}=n;(t||i||c)&&this.updateStyleMap(),t&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-sider"]],contentQueries:function(t,i,c){if(t&1&&k(c,G,5),t&2){let g;w(g=D())&&(i.nzMenuDirective=g.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(t,i){t&2&&(B("flex",i.flexSetting)("max-width",i.widthSetting)("min-width",i.widthSetting)("width",i.widthSetting),C("ant-layout-sider-zero-width",i.nzCollapsed&&i.nzCollapsedWidth===0)("ant-layout-sider-light",i.nzTheme==="light")("ant-layout-sider-dark",i.nzTheme==="dark")("ant-layout-sider-collapsed",i.nzCollapsed)("ant-layout-sider-has-trigger",i.nzCollapsible&&i.nzTrigger!==null))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:[2,"nzReverseArrow","nzReverseArrow",T],nzCollapsible:[2,"nzCollapsible","nzCollapsible",T],nzCollapsed:[2,"nzCollapsed","nzCollapsed",T]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[_],ngContentSelectors:h,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"],["nz-sider-trigger","",3,"click","matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"]],template:function(t,i){t&1&&(d(),S(0,"div",0),p(1),N(),z(2,le,1,8,"div",1)),t&2&&(v(2),u(i.nzCollapsible&&i.nzTrigger!==null?2:-1))},dependencies:[J],encapsulation:2,changeDetection:0})}return e})(),xe=(()=>{class e{destroyRef=a(y);directionality=a(Q);listOfNzSiderComponent;dir="ltr";ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(W(this.destroyRef)).subscribe(n=>{this.dir=n})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-layout"]],contentQueries:function(t,i,c){if(t&1&&k(c,K,4),t&2){let g;w(g=D())&&(i.listOfNzSiderComponent=g)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(t,i){t&2&&C("ant-layout-rtl",i.dir==="rtl")("ant-layout-has-sider",i.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),We=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=P({type:e});static \u0275inj=A({imports:[K,J]})}return e})();export{De as a,Me as b,Be as c,K as d,xe as e,We as f};
1
+ import{e as G}from"./chunk-RMIYLAEM.js";import{$ as V,Ea as L,Fa as q,L as W,a as Q,c as E,ma as H,vb as $,wb as U}from"./chunk-VZYJ3MSW.js";import{i as I}from"./chunk-KRYMOHYF.js";import{Ac as D,Da as y,Ec as M,Fb as l,Fc as B,Gb as P,Gc as C,Lb as m,Oa as _,Wb as z,Yb as u,bc as s,cc as S,dc as N,dd as x,ec as f,lc as F,nb as v,oa as A,rc as O,sa as a,sb as Z,uc as r,ud as j,vc as d,wc as p,xc as k,ya as R,yd as T,za as b,zc as w}from"./chunk-4BRW6LCZ.js";var h=["*"],X=["nz-sider-trigger",""];function Y(e,o){}function ee(e,o){if(e&1&&m(0,Y,0,0,"ng-template",2),e&2){let n=r(),t=M(5);s("ngTemplateOutlet",n.nzZeroTrigger||t)}}function te(e,o){}function ne(e,o){if(e&1&&m(0,te,0,0,"ng-template",2),e&2){let n=r(),t=M(3);s("ngTemplateOutlet",n.nzTrigger||t)}}function ie(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"left":"right")}}function oe(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"right":"left")}}function re(e,o){if(e&1&&z(0,ie,1,1,"nz-icon",3)(1,oe,1,1,"nz-icon",3),e&2){let n=r();u(n.nzReverseArrow?0:1)}}function ae(e,o){e&1&&f(0,"nz-icon",4)}function le(e,o){if(e&1){let n=F();S(0,"div",2),O("click",function(){R(n);let i=r();return b(i.setCollapsed(!i.nzCollapsed))}),N()}if(e&2){let n=r();s("matchBreakPoint",n.matchBreakPoint)("nzCollapsedWidth",n.nzCollapsedWidth)("nzCollapsed",n.nzCollapsed)("nzBreakpoint",n.nzBreakpoint)("nzReverseArrow",n.nzReverseArrow)("nzTrigger",n.nzTrigger)("nzZeroTrigger",n.nzZeroTrigger)("siderWidth",n.widthSetting)}}var De=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-content"]],hostAttrs:[1,"ant-layout-content"],exportAs:["nzContent"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Me=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-footer"]],hostAttrs:[1,"ant-layout-footer"],exportAs:["nzFooter"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Be=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-header"]],hostAttrs:[1,"ant-layout-header"],exportAs:["nzHeader"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),J=(()=>{class e{nzCollapsed=!1;nzReverseArrow=!1;nzZeroTrigger=null;nzTrigger=void 0;matchBreakPoint=!1;nzCollapsedWidth=null;siderWidth=null;nzBreakpoint=null;isZeroTrigger=!1;isNormalTrigger=!1;updateTriggerType(){this.isZeroTrigger=this.nzCollapsedWidth===0&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=this.nzCollapsedWidth!==0}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(t,i){t&2&&(B("width",i.isNormalTrigger?i.siderWidth:null),C("ant-layout-sider-trigger",i.isNormalTrigger)("ant-layout-sider-zero-width-trigger",i.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",i.isZeroTrigger&&i.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",i.isZeroTrigger&&!i.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[_],attrs:X,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],[3,"nzType"],["nzType","bars"]],template:function(t,i){t&1&&(z(0,ee,1,1,null,2),z(1,ne,1,1,null,2),m(2,re,2,1,"ng-template",null,0,x)(4,ae,1,0,"ng-template",null,1,x)),t&2&&(u(i.isZeroTrigger?0:-1),v(),u(i.isNormalTrigger?1:-1))},dependencies:[I,q,L],encapsulation:2,changeDetection:0})}return e})(),K=(()=>{class e{destroyRef=a(y);platform=a(E);cdr=a(j);breakpointService=a(U);nzMenuDirective=null;nzCollapsedChange=new Z;nzWidth=200;nzTheme="dark";nzCollapsedWidth=80;nzBreakpoint=null;nzZeroTrigger=null;nzTrigger=void 0;nzReverseArrow=!1;nzCollapsible=!1;nzCollapsed=!1;matchBreakPoint=!1;flexSetting=null;widthSetting=null;updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:V(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&this.nzMenuDirective.nzMode==="inline"&&this.nzCollapsedWidth!==0&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(n){n!==this.nzCollapsed&&(this.nzCollapsed=n,this.nzCollapsedChange.emit(n),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe($,!0).pipe(W(this.destroyRef)).subscribe(n=>{let t=this.nzBreakpoint;t&&H().subscribe(()=>{this.matchBreakPoint=!n[t],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(n){let{nzCollapsed:t,nzCollapsedWidth:i,nzWidth:c}=n;(t||i||c)&&this.updateStyleMap(),t&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-sider"]],contentQueries:function(t,i,c){if(t&1&&k(c,G,5),t&2){let g;w(g=D())&&(i.nzMenuDirective=g.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(t,i){t&2&&(B("flex",i.flexSetting)("max-width",i.widthSetting)("min-width",i.widthSetting)("width",i.widthSetting),C("ant-layout-sider-zero-width",i.nzCollapsed&&i.nzCollapsedWidth===0)("ant-layout-sider-light",i.nzTheme==="light")("ant-layout-sider-dark",i.nzTheme==="dark")("ant-layout-sider-collapsed",i.nzCollapsed)("ant-layout-sider-has-trigger",i.nzCollapsible&&i.nzTrigger!==null))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:[2,"nzReverseArrow","nzReverseArrow",T],nzCollapsible:[2,"nzCollapsible","nzCollapsible",T],nzCollapsed:[2,"nzCollapsed","nzCollapsed",T]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[_],ngContentSelectors:h,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"],["nz-sider-trigger","",3,"click","matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"]],template:function(t,i){t&1&&(d(),S(0,"div",0),p(1),N(),z(2,le,1,8,"div",1)),t&2&&(v(2),u(i.nzCollapsible&&i.nzTrigger!==null?2:-1))},dependencies:[J],encapsulation:2,changeDetection:0})}return e})(),xe=(()=>{class e{destroyRef=a(y);directionality=a(Q);listOfNzSiderComponent;dir="ltr";ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(W(this.destroyRef)).subscribe(n=>{this.dir=n})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-layout"]],contentQueries:function(t,i,c){if(t&1&&k(c,K,4),t&2){let g;w(g=D())&&(i.listOfNzSiderComponent=g)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(t,i){t&2&&C("ant-layout-rtl",i.dir==="rtl")("ant-layout-has-sider",i.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),We=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=P({type:e});static \u0275inj=A({imports:[K,J]})}return e})();export{De as a,Me as b,Be as c,K as d,xe as e,We as f};
@@ -1 +1 @@
1
- import{e as C}from"./chunk-DIJPUYIA.js";import{f as A}from"./chunk-3XNNQFWR.js";import{d as p,e as s}from"./chunk-YNW4HEJO.js";import{Ta as a,Vb as F,dc as d}from"./chunk-3CM4SKDO.js";import"./chunk-HFZLJHYR.js";import{n as r}from"./chunk-KRYMOHYF.js";import{Fb as m,Jc as e,Lc as l,bc as E,cc as u,dc as t,nb as o}from"./chunk-4BRW6LCZ.js";var D=["class","component"],c=class i{version="0.1.12";static \u0275fac=function(n){return new(n||i)};static \u0275cmp=m({type:i,selectors:[["app-about",8,"component"]],attrs:D,decls:31,vars:2,consts:[[3,"title"],[1,"header"],[1,"content"],["href","http://192.168.1.31:7006","target","_blank"]],template:function(n,B){n&1&&(u(0,"app-page-layout",0)(1,"div",1)(2,"h2"),e(3,"\u5173\u4E8E Ng-Manager"),t()(),u(4,"div",2)(5,"p"),e(6,"Ng-Manager \u662F\u4E00\u4E2A\u5F00\u6E90\u7684 Angular \u9879\u76EE\u7BA1\u7406\u5DE5\u5177\uFF0C\u65E8\u5728\u5E2E\u52A9\u5F00\u53D1\u8005\u66F4\u9AD8\u6548\u5730\u7BA1\u7406\u548C\u7EC4\u7EC7\u4ED6\u4EEC\u7684 Angular/Vue \u9879\u76EE\u3002"),t(),u(7,"p"),e(8,"\u5B83\u63D0\u4F9B\u4E86\u4E00\u4E2A\u76F4\u89C2\u7684\u754C\u9762\uFF0C\u5141\u8BB8\u7528\u6237\u8F7B\u677E\u521B\u5EFA\u3001\u5BFC\u5165\u548C\u7BA1\u7406\u591A\u4E2A Angular/Vue \u9879\u76EE\uFF0C\u540C\u65F6\u96C6\u6210\u4E86\u5E38\u7528\u7684\u5F00\u53D1\u5DE5\u5177\u548C\u529F\u80FD\u3002"),t(),u(9,"div")(10,"p"),e(11,"\u4E3B\u8981\u529F\u80FD\u5305\u62EC\uFF1A"),t(),u(12,"ul")(13,"li"),e(14,"\u9879\u76EE\u521B\u5EFA\u4E0E\u5BFC\u5165"),t(),u(15,"li"),e(16,"\u9879\u76EE\u4EEA\u8868\u76D8\u81EA\u5B9A\u4E49"),t(),u(17,"li"),e(18,"\u4F9D\u8D56\u7BA1\u7406"),t(),u(19,"li"),e(20,"\u9879\u76EE\u4EFB\u52A1\u7BA1\u7406"),t(),u(21,"li"),e(22,"\u591A\u9879\u76EE\u652F\u6301"),t(),u(23,"li"),e(24,"\u96C6\u6210\u5E38\u7528\u5F00\u53D1\u5DE5\u5177"),t()()(),u(25,"p"),e(26),t(),u(27,"p"),e(28," \u5B98\u65B9\u7F51\u7AD9\uFF1A"),u(29,"a",3),e(30,"http://192.168.1.31:7006"),t()()()()),n&2&&(E("title","\u5173\u4E8E"),o(26),l("\u7248\u672C\uFF1A",B.version))},dependencies:[r,F,p,C,d,A,a,s],encapsulation:2})};export{c as AboutComponent};
1
+ import{e as C}from"./chunk-7QR6RHLA.js";import{f as A}from"./chunk-CPJTSA6E.js";import{d as p,e as s}from"./chunk-TXAXE73U.js";import{Ra as a,Tb as F,ac as d}from"./chunk-VZYJ3MSW.js";import"./chunk-HFZLJHYR.js";import{n as r}from"./chunk-KRYMOHYF.js";import{Fb as m,Jc as e,Lc as l,bc as E,cc as u,dc as t,nb as o}from"./chunk-4BRW6LCZ.js";var D=["class","component"],c=class i{version="0.1.12";static \u0275fac=function(n){return new(n||i)};static \u0275cmp=m({type:i,selectors:[["app-about",8,"component"]],attrs:D,decls:31,vars:2,consts:[[3,"title"],[1,"header"],[1,"content"],["href","http://192.168.1.31:7006","target","_blank"]],template:function(n,B){n&1&&(u(0,"app-page-layout",0)(1,"div",1)(2,"h2"),e(3,"\u5173\u4E8E Ng-Manager"),t()(),u(4,"div",2)(5,"p"),e(6,"Ng-Manager \u662F\u4E00\u4E2A\u5F00\u6E90\u7684 Angular \u9879\u76EE\u7BA1\u7406\u5DE5\u5177\uFF0C\u65E8\u5728\u5E2E\u52A9\u5F00\u53D1\u8005\u66F4\u9AD8\u6548\u5730\u7BA1\u7406\u548C\u7EC4\u7EC7\u4ED6\u4EEC\u7684 Angular/Vue \u9879\u76EE\u3002"),t(),u(7,"p"),e(8,"\u5B83\u63D0\u4F9B\u4E86\u4E00\u4E2A\u76F4\u89C2\u7684\u754C\u9762\uFF0C\u5141\u8BB8\u7528\u6237\u8F7B\u677E\u521B\u5EFA\u3001\u5BFC\u5165\u548C\u7BA1\u7406\u591A\u4E2A Angular/Vue \u9879\u76EE\uFF0C\u540C\u65F6\u96C6\u6210\u4E86\u5E38\u7528\u7684\u5F00\u53D1\u5DE5\u5177\u548C\u529F\u80FD\u3002"),t(),u(9,"div")(10,"p"),e(11,"\u4E3B\u8981\u529F\u80FD\u5305\u62EC\uFF1A"),t(),u(12,"ul")(13,"li"),e(14,"\u9879\u76EE\u521B\u5EFA\u4E0E\u5BFC\u5165"),t(),u(15,"li"),e(16,"\u9879\u76EE\u4EEA\u8868\u76D8\u81EA\u5B9A\u4E49"),t(),u(17,"li"),e(18,"\u4F9D\u8D56\u7BA1\u7406"),t(),u(19,"li"),e(20,"\u9879\u76EE\u4EFB\u52A1\u7BA1\u7406"),t(),u(21,"li"),e(22,"\u591A\u9879\u76EE\u652F\u6301"),t(),u(23,"li"),e(24,"\u96C6\u6210\u5E38\u7528\u5F00\u53D1\u5DE5\u5177"),t()()(),u(25,"p"),e(26),t(),u(27,"p"),e(28," \u5B98\u65B9\u7F51\u7AD9\uFF1A"),u(29,"a",3),e(30,"http://192.168.1.31:7006"),t()()()()),n&2&&(E("title","\u5173\u4E8E"),o(26),l("\u7248\u672C\uFF1A",B.version))},dependencies:[r,F,p,C,d,A,a,s],encapsulation:2})};export{c as AboutComponent};
@@ -1 +1 @@
1
- import{a as ot}from"./chunk-AELTP6YN.js";import{Cb as it,L as d,R as J,S as v,c as Y,oa as K,ra as Q,ta as tt,ua as et}from"./chunk-3CM4SKDO.js";import{i as X}from"./chunk-KRYMOHYF.js";import{B as u,C as T,Ca as V,Da as $,Fb as U,Gb as Z,Lb as G,M as A,Q as p,Ra as j,V as N,Wb as g,Xc as W,Yb as m,a as o,bc as q,cc as C,dc as E,ec as B,ha as x,l as S,m as h,ma as F,n as y,na as R,nb as f,oa as _,sa as r,sb as k,tb as P,u as b,uc as H,yd as z}from"./chunk-4BRW6LCZ.js";function nt(e,c){e&1&&(C(0,"div",0),B(1,"nz-spin"),E())}function st(e,c){}function rt(e,c){if(e&1&&(C(0,"div",1),G(1,st,0,0,"ng-template",2),E()),e&2){let t=H();f(),q("ngTemplateOutlet",t.nzToolkit)}}var a={UNLOAD:"unload",LOADING:"loading",LOADED:"LOADED"},O="codeEditor";function I(e){return(...c)=>{e&&e(...c)}}var D=new y(1),l=a.UNLOAD,dt=(()=>{class e{nzConfigService=r(tt);document=r(V);firstEditorInitialized=!1;option={};config;option$=new h(this.option);constructor(){let t=this.nzConfigService.getConfigForComponent(O);this.config=o({},t),this.config.monacoEnvironment&&(window.MonacoEnvironment=o({},this.config.monacoEnvironment)),this.option=this.config.defaultEditorOption||{},et(O,()=>{let i=this.nzConfigService.getConfigForComponent(O);i&&this._updateDefaultOption(i.defaultEditorOption)})}_updateDefaultOption(t){this.option=o(o({},this.option),t),this.option$.next(this.option),"theme"in t&&t.theme&&monaco.editor.setTheme(t.theme)}requestToInit(){return l===a.LOADED?(this.onInit(),b(this.getLatestOption())):(l===a.UNLOAD&&(this.config.useStaticLoading&&typeof monaco>"u"?v("You choose to use static loading but it seems that you forget to config webpack plugin correctly. Please refer to our official websitefor more details about static loading."):this.loadMonacoScript()),D.pipe(x(()=>this.onInit()),u(()=>this.getLatestOption())))}loadMonacoScript(){if(this.config.useStaticLoading){Promise.resolve().then(()=>this.onLoad());return}if(l===a.LOADING)return;l=a.LOADING;let t=this.config.assetsRoot,i=t?`${t}/vs`:"assets/vs",n=window,s=this.document.createElement("script");s.type="text/javascript",s.src=`${i}/loader.js`;let L=()=>{w(),n.require.config(o({paths:{vs:i}},this.config.extraConfig)),n.require(["vs/editor/editor.main"],()=>{this.onLoad()})},M=()=>{throw w(),new Error(`${J} cannot load assets of monaco editor from source "${i}".`)},w=()=>{s.removeEventListener("load",L),s.removeEventListener("error",M),this.document.documentElement.removeChild(s)};s.addEventListener("load",L),s.addEventListener("error",M),this.document.documentElement.appendChild(s)}onLoad(){l=a.LOADED,D.next(!0),D.complete(),I(this.config.onLoad)()}onInit(){this.firstEditorInitialized||(this.firstEditorInitialized=!0,I(this.config.onFirstEditorInit)()),I(this.config.onInit)()}getLatestOption(){return o({},this.option)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),at=(()=>{class e{nzCodeEditorService=r(dt);ngZone=r(P);platform=r(Y);destroyRef=r($);nzEditorMode="normal";nzOriginalText="";nzLoading=!1;nzFullControl=!1;nzToolkit;set nzEditorOption(t){this.editorOption$.next(t)}nzEditorInitialized=new k;editorOptionCached={};el=r(j).nativeElement;resize$=new S;editorOption$=new h({});editorInstance=null;value="";modelSet=!1;onDidChangeContentDisposable=null;constructor(){this.el.classList.add("ant-code-editor"),this.destroyRef.onDestroy(()=>{this.onDidChangeContentDisposable&&(this.onDidChangeContentDisposable.dispose(),this.onDidChangeContentDisposable=null),this.editorInstance&&(this.editorInstance.dispose(),this.editorInstance=null)})}ngAfterViewInit(){this.platform.isBrowser&&this.nzCodeEditorService.requestToInit().pipe(d(this.destroyRef)).subscribe(t=>this.setup(t))}writeValue(t){this.value=t,this.setValue()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}onChange=t=>{};onTouch=()=>{};layout(){this.resize$.next()}setup(t){this.ngZone.runOutsideAngular(()=>K().pipe(d(this.destroyRef)).subscribe(()=>{this.editorOptionCached=t,this.registerOptionChanges(),this.initMonacoEditorInstance(),this.registerResizeChange(),this.setValue(),this.nzFullControl||this.setValueEmitter(),this.nzEditorInitialized.observers.length&&this.ngZone.run(()=>this.nzEditorInitialized.emit(this.editorInstance))}))}registerOptionChanges(){T([this.editorOption$,this.nzCodeEditorService.option$]).pipe(d(this.destroyRef)).subscribe(([t,i])=>{this.editorOptionCached=o(o(o({},this.editorOptionCached),i),t),this.updateOptionToMonaco()})}initMonacoEditorInstance(){this.ngZone.runOutsideAngular(()=>{this.editorInstance=this.nzEditorMode==="normal"?monaco.editor.create(this.el,o({},this.editorOptionCached)):monaco.editor.createDiffEditor(this.el,o({},this.editorOptionCached))})}registerResizeChange(){Q(window,"resize").pipe(p(300),d(this.destroyRef)).subscribe(()=>{this.layout()}),this.resize$.pipe(d(this.destroyRef),A(()=>!!this.editorInstance),u(()=>({width:this.el.clientWidth,height:this.el.clientHeight})),N((t,i)=>t.width===i.width&&t.height===i.height),p(50)).subscribe(()=>{this.editorInstance.layout()})}setValue(){if(this.editorInstance){if(this.nzFullControl&&this.value){v("should not set value when you are using full control mode! It would result in ambiguous data flow!");return}if(this.nzEditorMode==="normal")if(this.modelSet){let t=this.editorInstance.getModel();this.preservePositionAndSelections(()=>t.setValue(this.value))}else this.editorInstance.setModel(monaco.editor.createModel(this.value,this.editorOptionCached.language)),this.modelSet=!0;else if(this.modelSet){let t=this.editorInstance.getModel();this.preservePositionAndSelections(()=>{t.modified.setValue(this.value),t.original.setValue(this.nzOriginalText)})}else{let t=this.editorOptionCached.language;this.editorInstance.setModel({original:monaco.editor.createModel(this.nzOriginalText,t),modified:monaco.editor.createModel(this.value,t)}),this.modelSet=!0}}}preservePositionAndSelections(t){if(!this.editorInstance){t();return}let i=this.editorInstance.getPosition(),n=this.editorInstance.getSelections();t(),i&&this.editorInstance.setPosition(i),n&&this.editorInstance.setSelections(n)}setValueEmitter(){let t=this.nzEditorMode==="normal"?this.editorInstance.getModel():this.editorInstance.getModel().modified;this.onDidChangeContentDisposable=t.onDidChangeContent(()=>{this.emitValue(t.getValue())})}emitValue(t){this.value!==t&&(this.value=t,this.ngZone.run(()=>{this.onChange(t)}))}updateOptionToMonaco(){this.editorInstance&&this.editorInstance.updateOptions(o({},this.editorOptionCached))}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=U({type:e,selectors:[["nz-code-editor"]],inputs:{nzEditorMode:"nzEditorMode",nzOriginalText:"nzOriginalText",nzLoading:[2,"nzLoading","nzLoading",z],nzFullControl:[2,"nzFullControl","nzFullControl",z],nzToolkit:"nzToolkit",nzEditorOption:"nzEditorOption"},outputs:{nzEditorInitialized:"nzEditorInitialized"},exportAs:["nzCodeEditor"],features:[W([{provide:it,useExisting:F(()=>e),multi:!0}])],decls:2,vars:2,consts:[[1,"ant-code-editor-loading"],[1,"ant-code-editor-toolkit"],[3,"ngTemplateOutlet"]],template:function(i,n){i&1&&(g(0,nt,2,0,"div",0),g(1,rt,2,1,"div",1)),i&2&&(m(n.nzLoading?0:-1),f(),m(n.nzToolkit?1:-1))},dependencies:[ot,X],encapsulation:2,changeDetection:0})}return e})(),yt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Z({type:e});static \u0275inj=_({imports:[at]})}return e})();export{at as a,yt as b};
1
+ import{a as ot}from"./chunk-WCHN62X6.js";import{Ab as it,L as d,R as J,S as v,c as Y,ma as K,pa as Q,ra as tt,sa as et}from"./chunk-VZYJ3MSW.js";import{i as X}from"./chunk-KRYMOHYF.js";import{B as u,C as T,Ca as V,Da as $,Fb as U,Gb as Z,Lb as G,M as A,Q as p,Ra as j,V as N,Wb as g,Xc as W,Yb as m,a as o,bc as q,cc as C,dc as E,ec as B,ha as x,l as S,m as h,ma as F,n as y,na as R,nb as f,oa as _,sa as r,sb as k,tb as P,u as b,uc as H,yd as z}from"./chunk-4BRW6LCZ.js";function nt(e,c){e&1&&(C(0,"div",0),B(1,"nz-spin"),E())}function st(e,c){}function rt(e,c){if(e&1&&(C(0,"div",1),G(1,st,0,0,"ng-template",2),E()),e&2){let t=H();f(),q("ngTemplateOutlet",t.nzToolkit)}}var a={UNLOAD:"unload",LOADING:"loading",LOADED:"LOADED"},O="codeEditor";function I(e){return(...c)=>{e&&e(...c)}}var D=new y(1),l=a.UNLOAD,dt=(()=>{class e{nzConfigService=r(tt);document=r(V);firstEditorInitialized=!1;option={};config;option$=new h(this.option);constructor(){let t=this.nzConfigService.getConfigForComponent(O);this.config=o({},t),this.config.monacoEnvironment&&(window.MonacoEnvironment=o({},this.config.monacoEnvironment)),this.option=this.config.defaultEditorOption||{},et(O,()=>{let i=this.nzConfigService.getConfigForComponent(O);i&&this._updateDefaultOption(i.defaultEditorOption)})}_updateDefaultOption(t){this.option=o(o({},this.option),t),this.option$.next(this.option),"theme"in t&&t.theme&&monaco.editor.setTheme(t.theme)}requestToInit(){return l===a.LOADED?(this.onInit(),b(this.getLatestOption())):(l===a.UNLOAD&&(this.config.useStaticLoading&&typeof monaco>"u"?v("You choose to use static loading but it seems that you forget to config webpack plugin correctly. Please refer to our official websitefor more details about static loading."):this.loadMonacoScript()),D.pipe(x(()=>this.onInit()),u(()=>this.getLatestOption())))}loadMonacoScript(){if(this.config.useStaticLoading){Promise.resolve().then(()=>this.onLoad());return}if(l===a.LOADING)return;l=a.LOADING;let t=this.config.assetsRoot,i=t?`${t}/vs`:"assets/vs",n=window,s=this.document.createElement("script");s.type="text/javascript",s.src=`${i}/loader.js`;let L=()=>{w(),n.require.config(o({paths:{vs:i}},this.config.extraConfig)),n.require(["vs/editor/editor.main"],()=>{this.onLoad()})},M=()=>{throw w(),new Error(`${J} cannot load assets of monaco editor from source "${i}".`)},w=()=>{s.removeEventListener("load",L),s.removeEventListener("error",M),this.document.documentElement.removeChild(s)};s.addEventListener("load",L),s.addEventListener("error",M),this.document.documentElement.appendChild(s)}onLoad(){l=a.LOADED,D.next(!0),D.complete(),I(this.config.onLoad)()}onInit(){this.firstEditorInitialized||(this.firstEditorInitialized=!0,I(this.config.onFirstEditorInit)()),I(this.config.onInit)()}getLatestOption(){return o({},this.option)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),at=(()=>{class e{nzCodeEditorService=r(dt);ngZone=r(P);platform=r(Y);destroyRef=r($);nzEditorMode="normal";nzOriginalText="";nzLoading=!1;nzFullControl=!1;nzToolkit;set nzEditorOption(t){this.editorOption$.next(t)}nzEditorInitialized=new k;editorOptionCached={};el=r(j).nativeElement;resize$=new S;editorOption$=new h({});editorInstance=null;value="";modelSet=!1;onDidChangeContentDisposable=null;constructor(){this.el.classList.add("ant-code-editor"),this.destroyRef.onDestroy(()=>{this.onDidChangeContentDisposable&&(this.onDidChangeContentDisposable.dispose(),this.onDidChangeContentDisposable=null),this.editorInstance&&(this.editorInstance.dispose(),this.editorInstance=null)})}ngAfterViewInit(){this.platform.isBrowser&&this.nzCodeEditorService.requestToInit().pipe(d(this.destroyRef)).subscribe(t=>this.setup(t))}writeValue(t){this.value=t,this.setValue()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}onChange=t=>{};onTouch=()=>{};layout(){this.resize$.next()}setup(t){this.ngZone.runOutsideAngular(()=>K().pipe(d(this.destroyRef)).subscribe(()=>{this.editorOptionCached=t,this.registerOptionChanges(),this.initMonacoEditorInstance(),this.registerResizeChange(),this.setValue(),this.nzFullControl||this.setValueEmitter(),this.nzEditorInitialized.observers.length&&this.ngZone.run(()=>this.nzEditorInitialized.emit(this.editorInstance))}))}registerOptionChanges(){T([this.editorOption$,this.nzCodeEditorService.option$]).pipe(d(this.destroyRef)).subscribe(([t,i])=>{this.editorOptionCached=o(o(o({},this.editorOptionCached),i),t),this.updateOptionToMonaco()})}initMonacoEditorInstance(){this.ngZone.runOutsideAngular(()=>{this.editorInstance=this.nzEditorMode==="normal"?monaco.editor.create(this.el,o({},this.editorOptionCached)):monaco.editor.createDiffEditor(this.el,o({},this.editorOptionCached))})}registerResizeChange(){Q(window,"resize").pipe(p(300),d(this.destroyRef)).subscribe(()=>{this.layout()}),this.resize$.pipe(d(this.destroyRef),A(()=>!!this.editorInstance),u(()=>({width:this.el.clientWidth,height:this.el.clientHeight})),N((t,i)=>t.width===i.width&&t.height===i.height),p(50)).subscribe(()=>{this.editorInstance.layout()})}setValue(){if(this.editorInstance){if(this.nzFullControl&&this.value){v("should not set value when you are using full control mode! It would result in ambiguous data flow!");return}if(this.nzEditorMode==="normal")if(this.modelSet){let t=this.editorInstance.getModel();this.preservePositionAndSelections(()=>t.setValue(this.value))}else this.editorInstance.setModel(monaco.editor.createModel(this.value,this.editorOptionCached.language)),this.modelSet=!0;else if(this.modelSet){let t=this.editorInstance.getModel();this.preservePositionAndSelections(()=>{t.modified.setValue(this.value),t.original.setValue(this.nzOriginalText)})}else{let t=this.editorOptionCached.language;this.editorInstance.setModel({original:monaco.editor.createModel(this.nzOriginalText,t),modified:monaco.editor.createModel(this.value,t)}),this.modelSet=!0}}}preservePositionAndSelections(t){if(!this.editorInstance){t();return}let i=this.editorInstance.getPosition(),n=this.editorInstance.getSelections();t(),i&&this.editorInstance.setPosition(i),n&&this.editorInstance.setSelections(n)}setValueEmitter(){let t=this.nzEditorMode==="normal"?this.editorInstance.getModel():this.editorInstance.getModel().modified;this.onDidChangeContentDisposable=t.onDidChangeContent(()=>{this.emitValue(t.getValue())})}emitValue(t){this.value!==t&&(this.value=t,this.ngZone.run(()=>{this.onChange(t)}))}updateOptionToMonaco(){this.editorInstance&&this.editorInstance.updateOptions(o({},this.editorOptionCached))}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=U({type:e,selectors:[["nz-code-editor"]],inputs:{nzEditorMode:"nzEditorMode",nzOriginalText:"nzOriginalText",nzLoading:[2,"nzLoading","nzLoading",z],nzFullControl:[2,"nzFullControl","nzFullControl",z],nzToolkit:"nzToolkit",nzEditorOption:"nzEditorOption"},outputs:{nzEditorInitialized:"nzEditorInitialized"},exportAs:["nzCodeEditor"],features:[W([{provide:it,useExisting:F(()=>e),multi:!0}])],decls:2,vars:2,consts:[[1,"ant-code-editor-loading"],[1,"ant-code-editor-toolkit"],[3,"ngTemplateOutlet"]],template:function(i,n){i&1&&(g(0,nt,2,0,"div",0),g(1,rt,2,1,"div",1)),i&2&&(m(n.nzLoading?0:-1),f(),m(n.nzToolkit?1:-1))},dependencies:[ot,X],encapsulation:2,changeDetection:0})}return e})(),yt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Z({type:e});static \u0275inj=_({imports:[at]})}return e})();export{at as a,yt as b};
@@ -9,5 +9,5 @@
9
9
  <link rel="stylesheet" href="styles-ROAHD7MY.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-ROAHD7MY.css"></noscript></head>
10
10
  <body>
11
11
  <app-root></app-root>
12
- <link rel="modulepreload" href="chunk-7U44RF5F.js"><link rel="modulepreload" href="chunk-ZTDLWBW5.js"><link rel="modulepreload" href="chunk-6SYVDN5L.js"><link rel="modulepreload" href="chunk-QJP5F735.js"><link rel="modulepreload" href="chunk-WD2EKZQC.js"><link rel="modulepreload" href="chunk-HJTXXSMC.js"><link rel="modulepreload" href="chunk-FXCG34QS.js"><link rel="modulepreload" href="chunk-OSBDR36P.js"><link rel="modulepreload" href="chunk-K7PESFPY.js"><link rel="modulepreload" href="chunk-4X42HB6N.js"><script src="scripts-U25HCVEI.js" defer></script><script src="main-N64WJCHX.js" type="module"></script></body>
12
+ <link rel="modulepreload" href="chunk-6UFDNETG.js"><link rel="modulepreload" href="chunk-XJDJL3TQ.js"><link rel="modulepreload" href="chunk-SSCUT2GF.js"><link rel="modulepreload" href="chunk-PY3AUTHC.js"><link rel="modulepreload" href="chunk-6J6G7JEP.js"><link rel="modulepreload" href="chunk-CO3CQHKV.js"><link rel="modulepreload" href="chunk-NNOWADVM.js"><link rel="modulepreload" href="chunk-RMIYLAEM.js"><link rel="modulepreload" href="chunk-442QFABJ.js"><link rel="modulepreload" href="chunk-SD2HFD54.js"><script src="scripts-U25HCVEI.js" defer></script><script src="main-7GYUOEJY.js" type="module"></script></body>
13
13
  </html>