@skill-map/cli 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/cli/tutorial/sm-tutorial.md +7 -0
- package/dist/cli.js +12223 -6757
- package/dist/cli.js.map +1 -1
- package/dist/conformance/index.js +36 -14
- package/dist/conformance/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +776 -73
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +965 -134
- package/dist/kernel/index.js +776 -73
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +122 -12
- package/dist/ui/chunk-3R7E3HPC.js +7 -0
- package/dist/ui/chunk-7CAK6MVK.js +2638 -0
- package/dist/ui/chunk-BORRASJB.js +247 -0
- package/dist/ui/chunk-CZSS4D6J.js +454 -0
- package/dist/ui/chunk-EQD7AYYJ.js +227 -0
- package/dist/ui/chunk-ETTRVTFV.js +1 -0
- package/dist/ui/chunk-LFIE4SCX.js +965 -0
- package/dist/ui/chunk-OKO3QOH6.js +1 -0
- package/dist/ui/chunk-PMIMYHBM.js +61 -0
- package/dist/ui/chunk-UHFGCO24.js +1 -0
- package/dist/ui/chunk-UJOZYR5I.js +1 -0
- package/dist/ui/chunk-VHIPW3TH.js +1 -0
- package/dist/ui/chunk-VWAUXWQX.js +237 -0
- package/dist/ui/index.html +10 -2
- package/dist/ui/main-BSYMJKTL.js +1 -0
- package/dist/ui/{styles-CBPFNGXA.css → styles-UAABA7VK.css} +1 -1
- package/migrations/001_initial.sql +122 -12
- package/package.json +6 -6
- package/dist/ui/chunk-5ZGVBIPP.js +0 -1031
- package/dist/ui/chunk-BWUDZKB6.js +0 -247
- package/dist/ui/chunk-LUDNWV6G.js +0 -3091
- package/dist/ui/chunk-WMWULWZX.js +0 -237
- package/dist/ui/main-7LR4JN4M.js +0 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import{c as k,d as jt,e as Gt}from"./chunk-OKO3QOH6.js";import{a as zt}from"./chunk-UHFGCO24.js";import{a as wt,b as Ot,c as Lt,e as Ft,f as Vt,g as At,h as Bt,i as Ht,j as Nt,k as Rt,l as $t}from"./chunk-CZSS4D6J.js";import{a as Mt,b as kt,d as St,e as It,f as Pt,h as Dt}from"./chunk-VHIPW3TH.js";import{$ as tt,$a as ie,Aa as R,Ba as y,Bc as xt,Ec as ke,Fc as Y,Gc as Ze,Hb as ye,Hc as Se,I as Je,Ib as dt,J as me,Jb as ve,K as le,Ka as h,Kc as Ie,Lc as Pe,M as ue,Mc as Ct,Na as f,Nc as Qe,O as v,Oa as b,Oc as qe,Pa as at,Qa as st,Qb as we,Qc as yt,Ra as G,Rc as $,S as w,Sa as X,Sc as vt,T as E,Ta as d,Tb as x,U as q,Ua as g,Va as c,Wa as P,Wb as ct,Wc as De,X as et,Xa as p,Xb as F,Ya as m,Za as A,Zc as Et,_ as N,_a as ne,_c as Tt,ab as J,bc as M,bd as se,ca as S,cc as ae,cd as ze,da as _e,db as L,dd as Oe,eb as B,fa as V,fb as T,hb as s,ia as nt,ib as rt,ic as gt,ja as it,jb as Ne,ka as he,kb as be,lb as xe,lc as pt,mb as z,mc as mt,nb as O,nc as Ee,oa as a,oc as Te,pc as ge,rb as lt,sb as Ce,tb as oe,ub as ee,vb as D,wa as I,wb as l,xa as de,xb as _,xc as te,ya as ot,yb as C,za as fe,zb as ce}from"./chunk-LFIE4SCX.js";import{B as bt,D as Me,O as Ue,a as ut,d as Re,h as $e,l as je,m as Ge,p as _t,r as ht,v as Xe,y as ft}from"./chunk-3R7E3HPC.js";import{a as j,b as Ke}from"./chunk-Q7L6LLAK.js";var un=["data-p-icon","window-maximize"],Xt=(()=>{class t extends De{pathId;onInit(){this.pathId="url(#"+te()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275cmp=I({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[R],attrs:un,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){n&1&&(q(),p(0,"g"),A(1,"path",0),m(),p(2,"defs")(3,"clipPath",1),A(4,"rect",2),m()()),n&2&&(h("clip-path",o.pathId),a(3),B("id",o.pathId))},encapsulation:2})}return t})();var _n=["data-p-icon","window-minimize"],Ut=(()=>{class t extends De{pathId;onInit(){this.pathId="url(#"+te()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275cmp=I({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[R],attrs:_n,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){n&1&&(q(),p(0,"g"),A(1,"path",0),m(),p(2,"defs")(3,"clipPath",1),A(4,"rect",2),m()()),n&2&&(h("clip-path",o.pathId),a(3),B("id",o.pathId))},encapsulation:2})}return t})();var Zt=(()=>{class t extends Pe{pFocusTrapDisabled=!1;platformId=v(nt);document=v(et);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){ge(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&ge(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let n=o=>ht("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:o?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:o}=e,r=o===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(o)?ft(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Xe(r)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:o}=e,r=o===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(o)?bt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Xe(r)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275dir=ot({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",M]},features:[R]})}return t})();var Qt=`
|
|
2
|
+
.p-dialog {
|
|
3
|
+
max-height: 90%;
|
|
4
|
+
transform: scale(1);
|
|
5
|
+
border-radius: dt('dialog.border.radius');
|
|
6
|
+
box-shadow: dt('dialog.shadow');
|
|
7
|
+
background: dt('dialog.background');
|
|
8
|
+
border: 1px solid dt('dialog.border.color');
|
|
9
|
+
color: dt('dialog.color');
|
|
10
|
+
will-change: transform;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.p-dialog-content {
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
padding: dt('dialog.content.padding');
|
|
16
|
+
flex-grow: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-dialog-header {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
padding: dt('dialog.header.padding');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.p-dialog-title {
|
|
28
|
+
font-weight: dt('dialog.title.font.weight');
|
|
29
|
+
font-size: dt('dialog.title.font.size');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.p-dialog-footer {
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
padding: dt('dialog.footer.padding');
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: flex-end;
|
|
37
|
+
gap: dt('dialog.footer.gap');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.p-dialog-header-actions {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: dt('dialog.header.gap');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-dialog-top .p-dialog,
|
|
47
|
+
.p-dialog-bottom .p-dialog,
|
|
48
|
+
.p-dialog-left .p-dialog,
|
|
49
|
+
.p-dialog-right .p-dialog,
|
|
50
|
+
.p-dialog-topleft .p-dialog,
|
|
51
|
+
.p-dialog-topright .p-dialog,
|
|
52
|
+
.p-dialog-bottomleft .p-dialog,
|
|
53
|
+
.p-dialog-bottomright .p-dialog {
|
|
54
|
+
margin: 1rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.p-dialog-maximized {
|
|
58
|
+
width: 100vw !important;
|
|
59
|
+
height: 100vh !important;
|
|
60
|
+
top: 0px !important;
|
|
61
|
+
left: 0px !important;
|
|
62
|
+
max-height: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
border-radius: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.p-dialog .p-resizable-handle {
|
|
68
|
+
position: absolute;
|
|
69
|
+
font-size: 0.1px;
|
|
70
|
+
display: block;
|
|
71
|
+
cursor: se-resize;
|
|
72
|
+
width: 12px;
|
|
73
|
+
height: 12px;
|
|
74
|
+
right: 1px;
|
|
75
|
+
bottom: 1px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.p-dialog-enter-active {
|
|
79
|
+
animation: p-animate-dialog-enter 300ms cubic-bezier(.19,1,.22,1);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.p-dialog-leave-active {
|
|
83
|
+
animation: p-animate-dialog-leave 300ms cubic-bezier(.19,1,.22,1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes p-animate-dialog-enter {
|
|
87
|
+
from {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
transform: scale(0.93);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@keyframes p-animate-dialog-leave {
|
|
94
|
+
to {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transform: scale(0.93);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;var bn=["header"],qt=["content"],Yt=["footer"],xn=["closeicon"],Cn=["maximizeicon"],yn=["minimizeicon"],vn=["headless"],wn=["titlebar"],En=["*",[["p-footer"]]],Tn=["*","p-footer"],Mn=t=>({ariaLabelledBy:t});function kn(t,i){t&1&&J(0)}function Sn(t,i){if(t&1&&(ne(0),y(1,kn,1,0,"ng-container",11),ie()),t&2){let e=s(3);a(),d("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function In(t,i){if(t&1){let e=L();g(0,"div",16),T("mousedown",function(o){w(e);let r=s(4);return E(r.initResize(o))}),c()}if(t&2){let e=s(4);D(e.cx("resizeHandle")),Ce("z-index",90),d("pBind",e.ptm("resizeHandle"))}}function Pn(t,i){if(t&1&&(g(0,"span",21),l(1),c()),t&2){let e=s(5);D(e.cx("title")),d("id",e.ariaLabelledBy)("pBind",e.ptm("title")),a(),_(e.header)}}function Dn(t,i){t&1&&J(0)}function zn(t,i){if(t&1&&P(0,"span",25),t&2){let e=s(7);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function On(t,i){t&1&&(q(),P(0,"svg",28))}function Ln(t,i){t&1&&(q(),P(0,"svg",29))}function Fn(t,i){if(t&1&&(ne(0),y(1,On,1,0,"svg",26)(2,Ln,1,0,"svg",27),ie()),t&2){let e=s(7);a(),d("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),a(),d("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function Vn(t,i){}function An(t,i){t&1&&y(0,Vn,0,0,"ng-template")}function Bn(t,i){if(t&1&&(ne(0),y(1,An,1,0,null,11),ie()),t&2){let e=s(7);a(),d("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function Hn(t,i){}function Nn(t,i){t&1&&y(0,Hn,0,0,"ng-template")}function Rn(t,i){if(t&1&&(ne(0),y(1,Nn,1,0,null,11),ie()),t&2){let e=s(7);a(),d("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function $n(t,i){if(t&1&&y(0,zn,1,1,"span",23)(1,Fn,3,2,"ng-container",24)(2,Bn,2,1,"ng-container",24)(3,Rn,2,1,"ng-container",24),t&2){let e=s(6);d("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),a(),d("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),a(),d("ngIf",!e.maximized),a(),d("ngIf",e.maximized)}}function jn(t,i){if(t&1){let e=L();g(0,"p-button",22),T("onClick",function(){w(e);let o=s(5);return E(o.maximize())})("keydown.enter",function(){w(e);let o=s(5);return E(o.maximize())}),y(1,$n,4,4,"ng-template",null,4,we),c()}if(t&2){let e=s(5);d("pt",e.ptm("pcMaximizeButton"))("styleClass",e.cx("pcMaximizeButton"))("ariaLabel",e.maximized?e.minimizeLabel:e.maximizeLabel)("tabindex",e.maximizable?"0":"-1")("buttonProps",e.maximizeButtonProps)("unstyled",e.unstyled()),h("data-pc-group-section","headericon")}}function Gn(t,i){if(t&1&&P(0,"span"),t&2){let e=s(8);D(e.closeIcon)}}function Xn(t,i){t&1&&(q(),P(0,"svg",32))}function Un(t,i){if(t&1&&(ne(0),y(1,Gn,1,2,"span",30)(2,Xn,1,0,"svg",31),ie()),t&2){let e=s(7);a(),d("ngIf",e.closeIcon),a(),d("ngIf",!e.closeIcon)}}function Zn(t,i){}function Qn(t,i){t&1&&y(0,Zn,0,0,"ng-template")}function qn(t,i){if(t&1&&(g(0,"span"),y(1,Qn,1,0,null,11),c()),t&2){let e=s(7);a(),d("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function Yn(t,i){if(t&1&&y(0,Un,3,2,"ng-container",24)(1,qn,2,1,"span",24),t&2){let e=s(6);d("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),a(),d("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function Wn(t,i){if(t&1){let e=L();g(0,"p-button",22),T("onClick",function(o){w(e);let r=s(5);return E(r.close(o))})("keydown.enter",function(o){w(e);let r=s(5);return E(r.close(o))}),y(1,Yn,2,2,"ng-template",null,4,we),c()}if(t&2){let e=s(5);d("pt",e.ptm("pcCloseButton"))("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)("unstyled",e.unstyled()),h("data-pc-group-section","headericon")}}function Kn(t,i){if(t&1){let e=L();g(0,"div",16,3),T("mousedown",function(o){w(e);let r=s(4);return E(r.initDrag(o))}),y(2,Pn,2,5,"span",17)(3,Dn,1,0,"ng-container",18),g(4,"div",19),y(5,jn,3,7,"p-button",20)(6,Wn,3,7,"p-button",20),c()()}if(t&2){let e=s(4);D(e.cx("header")),d("pBind",e.ptm("header")),a(2),d("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),a(),d("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT)("ngTemplateOutletContext",ve(11,Mn,e.ariaLabelledBy)),a(),D(e.cx("headerActions")),d("pBind",e.ptm("headerActions")),a(),d("ngIf",e.maximizable),a(),d("ngIf",e.closable)}}function Jn(t,i){t&1&&J(0)}function ei(t,i){t&1&&J(0)}function ti(t,i){if(t&1&&(g(0,"div",19,5),Ne(2,1),y(3,ei,1,0,"ng-container",11),c()),t&2){let e=s(4);D(e.cx("footer")),d("pBind",e.ptm("footer")),a(3),d("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function ni(t,i){if(t&1&&(y(0,In,1,5,"div",12)(1,Kn,7,13,"div",13),g(2,"div",14,2),Ne(4),y(5,Jn,1,0,"ng-container",11),c(),y(6,ti,4,4,"div",15)),t&2){let e=s(3);d("ngIf",e.resizable),a(),d("ngIf",e.showHeader),a(),D(e.cn(e.cx("content"),e.contentStyleClass)),d("ngStyle",e.contentStyle)("pBind",e.ptm("content")),a(3),d("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),a(),d("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function ii(t,i){if(t&1){let e=L();g(0,"div",9,0),T("pMotionOnBeforeEnter",function(o){w(e);let r=s(2);return E(r.onBeforeEnter(o))})("pMotionOnAfterEnter",function(o){w(e);let r=s(2);return E(r.onAfterEnter(o))})("pMotionOnBeforeLeave",function(o){w(e);let r=s(2);return E(r.onBeforeLeave(o))})("pMotionOnAfterLeave",function(o){w(e);let r=s(2);return E(r.onAfterLeave(o))}),y(2,Sn,2,1,"ng-container",10)(3,ni,7,8,"ng-template",null,1,we),c()}if(t&2){let e=lt(4),n=s(2);ee(n.sx("root")),D(n.cn(n.cx("root"),n.styleClass)),d("ngStyle",n.style)("pBind",n.ptm("root"))("pFocusTrapDisabled",n.focusTrap===!1)("pMotion",n.visible)("pMotionAppear",!0)("pMotionName","p-dialog")("pMotionOptions",n.computedMotionOptions()),h("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0)("data-p",n.dataP),a(2),d("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function oi(t,i){if(t&1){let e=L();g(0,"div",7),T("pMotionOnAfterLeave",function(){w(e);let o=s();return E(o.onMaskAfterLeave())}),f(1,ii,5,17,"div",8),c()}if(t&2){let e=s();ee(e.sx("mask")),D(e.cn(e.cx("mask"),e.maskStyleClass)),d("ngStyle",e.maskStyle)("pBind",e.ptm("mask"))("pMotion",e.maskVisible)("pMotionAppear",!0)("pMotionEnterActiveClass",e.modal?"p-overlay-mask-enter-active":"")("pMotionLeaveActiveClass",e.modal?"p-overlay-mask-leave-active":"")("pMotionOptions",e.computedMaskMotionOptions()),h("data-p-scrollblocker-active",e.modal||e.blockScroll)("data-p",e.dataP),a(),b(e.renderDialog()?1:-1)}}var ai={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},si={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===t.position);return["p-dialog-mask",{"p-overlay-mask":t.modal},e?`p-dialog-${e}`:""]},root:({instance:t})=>["p-dialog p-component",{"p-dialog-maximized":t.maximizable&&t.maximized}],header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:()=>["p-dialog-content"],footer:"p-dialog-footer"},Wt=(()=>{class t extends Se{name="dialog";style=Qt;classes=si;inlineStyles=ai;static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Kt=new ue("DIALOG_INSTANCE"),Ye=(()=>{class t extends Pe{componentName="Dialog";hostName="";$pcDialog=v(Kt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=v($,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;draggable=!0;resizable=!0;contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";maskMotionOptions=F(void 0);computedMaskMotionOptions=x(()=>j(j({},this.ptm("maskMotion")),this.maskMotionOptions()));motionOptions=F(void 0);computedMotionOptions=x(()=>j(j({},this.ptm("motion")),this.motionOptions()));closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",variant:"text",rounded:!0};maximizeButtonProps={severity:"secondary",variant:"text",rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0,this.renderMask.set(!0),this.renderDialog.set(!0))}get style(){return this._style}set style(e){e&&(this._style=j({},e),this.originalStyle=e)}position;role="dialog";appendTo=F(void 0);onShow=new N;onHide=new N;visibleChange=new N;onResizeInit=new N;onResizeEnd=new N;onDragEnd=new N;onMaximize=new N;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;$appendTo=x(()=>this.appendTo()||this.config.overlayAppendTo());renderMask=S(!1);renderDialog=S(!1);_visible=!1;maskVisible;container=S(null);wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=te("pn_id_");_style={};originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=v(Wt);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;zIndexForLayering;get maximizeLabel(){return this.config.getTranslation(Ze.ARIA).maximizeLabel}get minimizeLabel(){return this.config.getTranslation(Ze.ARIA).minimizeLabel}zone=v(tt);overlayService=v(xt);get maskClass(){let n=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(o=>o===this.position);return{"p-dialog-mask":!0,"p-overlay-mask":this.modal||this.dismissableMask,[`p-dialog-${n}`]:n}}onInit(){this.breakpoints&&this.createStyle()}templates;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?te("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let n=/([\d\.]+)(ms|s)\b/g,o=0,r;for(;(r=n.exec(e))!==null;){let u=parseFloat(r[1]),H=r[2];H==="ms"?o+=u:H==="s"&&(o+=u*1e3)}if(o!==0)return o}_focus(e){if(e){let n=this.parseDurationToMilliseconds(this.transitionOptions),o=Ct.getFocusableElements(e);if(o&&o.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>o[0].focus(),n||5)}),!0}return!1}focus(e=this.contentViewChild?.nativeElement){let n=this._focus(e);n||(n=this._focus(this.footerViewChild?.nativeElement),n||(n=this._focus(this.headerViewChild?.nativeElement),n||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visible=!1,this.visibleChange.emit(this.visible),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Qe()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll('[data-p-scrollblocker-active="true"]');this.modal&&e&&e.length==1&&qe(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Qe():qe()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex?(se.set("modal",this.container(),this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container().style.zIndex,10)-1)):this.zIndexForLayering=se.generateZIndex("modal",(this.baseZIndex??0)+this.config.zIndex.modal)}createStyle(){if(ge(this.platformId)&&!this.styleElement&&!this.$unstyled()){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",Ue(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
|
|
100
|
+
@media screen and (max-width: ${n}) {
|
|
101
|
+
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
|
|
102
|
+
width: ${this.breakpoints[n]} !important;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
`;this.renderer.setProperty(this.styleElement,"innerHTML",e),Ue(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){e.target.closest("div")?.getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container().style.margin="0",this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&je(this.document.body,{"user-select":"none"}))}onDrag(e){if(this.dragging&&this.container()){let n=Ge(this.container()),o=Me(this.container()),r=e.pageX-this.lastPageX,u=e.pageY-this.lastPageY,H=this.container().getBoundingClientRect(),W=getComputedStyle(this.container()),K=parseFloat(W.marginLeft),pe=parseFloat(W.marginTop),Z=H.left+r-K,Q=H.top+u-pe,re=$e();this.container().style.position="fixed",this.keepInViewport?(Z>=this.minX&&Z+n<re.width&&(this._style.left=`${Z}px`,this.lastPageX=e.pageX,this.container().style.left=`${Z}px`),Q>=this.minY&&Q+o<re.height&&(this._style.top=`${Q}px`,this.lastPageY=e.pageY,this.container().style.top=`${Q}px`)):(this.lastPageX=e.pageX,this.container().style.left=`${Z}px`,this.lastPageY=e.pageY,this.container().style.top=`${Q}px`),this.overlayService.emitParentDrag(this.container())}}endDrag(e){this.dragging&&(this.dragging=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container().style.position="",this.container().style.left="",this.container().style.top="",this.container().style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&je(this.document.body,{"user-select":"none"}),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,r=Ge(this.container()),u=Me(this.container()),H=Me(this.contentViewChild?.nativeElement),W=r+n,K=u+o,pe=this.container().style.minWidth,Z=this.container().style.minHeight,Q=this.container().getBoundingClientRect(),re=$e();(!parseInt(this.container().style.top)||!parseInt(this.container().style.left))&&(W+=n,K+=o),(!pe||W>parseInt(pe))&&Q.left+W<re.width&&(this._style.width=W+"px",this.container().style.width=this._style.width),(!Z||K>parseInt(Z))&&Q.top+K<re.height&&(this.contentViewChild.nativeElement.style.height=H+K-u+"px",this._style.height&&(this._style.height=K+"px",this.container().style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{if(n.key=="Escape"){let o=this.container();if(!o)return;let r=se.getCurrent();(parseInt(o.style.zIndex)==r||this.zIndexForLayering==r)&&this.close(n)}})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.$appendTo()!=="self"&&_t(this.document.body,this.wrapper)}restoreAppend(){this.container()&&this.$appendTo()!=="self"&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onBeforeEnter(e){this.container.set(e.element),this.wrapper=this.container()?.parentElement,this.$attrSelector&&this.container()?.setAttribute(this.$attrSelector,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container()?.setAttribute(this.id,""),this.modal&&this.enableModality()}onAfterEnter(){this.focusOnShow&&this.focus(),this.onShow.emit({})}onBeforeLeave(){this.modal&&(this.maskVisible=!1)}onAfterLeave(){this.onContainerDestroy(),this.renderDialog.set(!1),this.modal?this.renderMask.set(!1):this.maskVisible=!1,this.onHide.emit({}),this.cd.markForCheck()}onMaskAfterLeave(){this.renderDialog()||this.renderMask.set(!1)}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maximized&&(Re(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),ut(this.document.body,"p-overflow-hidden")&&Re(this.document.body,"p-overflow-hidden"),this.container()&&this.autoZIndex&&se.clear(this.container()),this.zIndexForLayering&&se.revertZIndex(this.zIndexForLayering),this.container.set(null),this.wrapper=null,this._style=this.originalStyle?j({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}onDestroy(){this.container()&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}get dataP(){return this.cn({maximized:this.maximized,modal:this.modal})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275cmp=I({type:t,selectors:[["p-dialog"]],contentQueries:function(n,o,r){if(n&1&&be(r,bn,4)(r,qt,4)(r,Yt,4)(r,xn,4)(r,Cn,4)(r,yn,4)(r,vn,4)(r,ke,4),n&2){let u;z(u=O())&&(o._headerTemplate=u.first),z(u=O())&&(o._contentTemplate=u.first),z(u=O())&&(o._footerTemplate=u.first),z(u=O())&&(o._closeiconTemplate=u.first),z(u=O())&&(o._maximizeiconTemplate=u.first),z(u=O())&&(o._minimizeiconTemplate=u.first),z(u=O())&&(o._headlessTemplate=u.first),z(u=O())&&(o.templates=u)}},viewQuery:function(n,o){if(n&1&&xe(wn,5)(qt,5)(Yt,5),n&2){let r;z(r=O())&&(o.headerViewChild=r.first),z(r=O())&&(o.contentViewChild=r.first),z(r=O())&&(o.footerViewChild=r.first)}},inputs:{hostName:"hostName",header:"header",draggable:[2,"draggable","draggable",M],resizable:[2,"resizable","resizable",M],contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",M],closeOnEscape:[2,"closeOnEscape","closeOnEscape",M],dismissableMask:[2,"dismissableMask","dismissableMask",M],rtl:[2,"rtl","rtl",M],closable:[2,"closable","closable",M],breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",M],blockScroll:[2,"blockScroll","blockScroll",M],autoZIndex:[2,"autoZIndex","autoZIndex",M],baseZIndex:[2,"baseZIndex","baseZIndex",ae],minX:[2,"minX","minX",ae],minY:[2,"minY","minY",ae],focusOnShow:[2,"focusOnShow","focusOnShow",M],maximizable:[2,"maximizable","maximizable",M],keepInViewport:[2,"keepInViewport","keepInViewport",M],focusTrap:[2,"focusTrap","focusTrap",M],transitionOptions:"transitionOptions",maskMotionOptions:[1,"maskMotionOptions"],motionOptions:[1,"motionOptions"],closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",appendTo:[1,"appendTo"],headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[ye([Wt,{provide:Kt,useExisting:t},{provide:Ie,useExisting:t}]),fe([$]),R],ngContentSelectors:Tn,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"class","style","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],[3,"pMotionOnAfterLeave","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],["pFocusTrap","",3,"class","style","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],["pFocusTrap","",3,"pMotionOnBeforeEnter","pMotionOnAfterEnter","pMotionOnBeforeLeave","pMotionOnAfterLeave","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"class","pBind","z-index","mousedown",4,"ngIf"],[3,"class","pBind","mousedown",4,"ngIf"],[3,"ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"mousedown","pBind"],[3,"id","class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[3,"pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled","onClick","keydown.enter",4,"ngIf"],[3,"id","pBind"],[3,"onClick","keydown.enter","pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["data-p-icon","window-maximize",4,"ngIf"],["data-p-icon","window-minimize",4,"ngIf"],["data-p-icon","window-maximize"],["data-p-icon","window-minimize"],[3,"class",4,"ngIf"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(n,o){n&1&&(rt(En),f(0,oi,2,14,"div",6)),n&2&&b(o.renderMask()?0:-1)},dependencies:[Te,gt,pt,Ee,mt,Et,Zt,wt,Xt,Ut,Y,$,Vt,Ft],encapsulation:2,changeDetection:0})}return t})(),Jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=de({type:t});static \u0275inj=le({imports:[Ye,Y,Y]})}return t})();function li(t,i){if(t&1&&(p(0,"p",6),l(1),m()),t&2){let e=s();a(),ce(" ",e.texts.aboutErrorPrefix," ",e.loadError()," ")}}var Le=class t{dataSource=v(ze);updateCheck=v(jt);theme=v(Gt);visible=F.required();texts=k;health=S(null);loadError=S(null);markSrc=x(()=>this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");cliVersion=x(()=>this.updateCheck.current()??this.health()?.implVersion??this.texts.aboutUnknown);specVersion=x(()=>this.health()?.specVersion??this.texts.aboutLoading);schemaVersion=x(()=>this.health()?.schemaVersion??this.texts.aboutLoading);scope=x(()=>this.health()?.scope??this.texts.aboutLoading);cwd=x(()=>this.health()?.cwd??this.texts.aboutLoading);dbDisplay=x(()=>{let i=this.health();return i?this.texts.aboutDbValue(i.db,di(i.dbPath,i.cwd)):this.texts.aboutLoading});constructor(){_e(()=>{this.visible()&&this.health()===null&&this.load()})}async load(){this.loadError.set(null);try{let i=await this.dataSource.health();this.health.set(i)}catch(i){let e=i instanceof Oe||i instanceof Error?i.message:String(i);this.loadError.set(e)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["sm-settings-about"]],inputs:{visible:[1,"visible"]},decls:52,vars:22,consts:[["aria-labelledby","settings-about-heading","data-testid","settings-about",1,"settings-about"],[1,"settings-about__header"],["alt","","aria-hidden","true","data-testid","settings-about-logo",1,"settings-about__logo",3,"src"],[1,"settings-about__heading-text"],["id","settings-about-heading",1,"settings-about__title"],[1,"settings-about__intro"],["data-testid","settings-about-error",1,"settings-about__error"],[1,"settings-about__list"],[1,"settings-about__row"],[1,"settings-about__label"],[1,"settings-about__value"],["target","_blank","rel","noopener noreferrer","data-testid","settings-about-website",1,"settings-about__link",3,"href"],["target","_blank","rel","noopener noreferrer","data-testid","settings-about-github",1,"settings-about__link",3,"href"],["data-testid","settings-about-cli",1,"settings-about__value"],["data-testid","settings-about-spec",1,"settings-about__value"],["data-testid","settings-about-schema",1,"settings-about__value"],["data-testid","settings-about-scope",1,"settings-about__value"],["data-testid","settings-about-cwd",1,"settings-about__value"],["data-testid","settings-about-db",1,"settings-about__value"]],template:function(e,n){e&1&&(p(0,"section",0)(1,"header",1),A(2,"img",2),p(3,"div",3)(4,"h2",4),l(5),m(),p(6,"p",5),l(7),m()()(),f(8,li,2,2,"p",6),p(9,"dl",7)(10,"div",8)(11,"dt",9),l(12),m(),p(13,"dd",10)(14,"a",11),l(15),m()()(),p(16,"div",8)(17,"dt",9),l(18),m(),p(19,"dd",10)(20,"a",12),l(21),m()()(),p(22,"div",8)(23,"dt",9),l(24),m(),p(25,"dd",13),l(26),m()(),p(27,"div",8)(28,"dt",9),l(29),m(),p(30,"dd",14),l(31),m()(),p(32,"div",8)(33,"dt",9),l(34),m(),p(35,"dd",15),l(36),m()(),p(37,"div",8)(38,"dt",9),l(39),m(),p(40,"dd",16),l(41),m()(),p(42,"div",8)(43,"dt",9),l(44),m(),p(45,"dd",17),l(46),m()(),p(47,"div",8)(48,"dt",9),l(49),m(),p(50,"dd",18),l(51),m()()()()),e&2&&(a(2),B("src",n.markSrc(),he),a(3),C(" ",n.texts.aboutHeading," "),a(2),_(n.texts.aboutIntro),a(),b(n.loadError()?8:-1),a(4),_(n.texts.aboutWebsiteLabel),a(2),B("href",n.texts.aboutWebsiteUrl,he),a(),_(n.texts.aboutWebsiteUrl),a(3),_(n.texts.aboutGithubLabel),a(2),B("href",n.texts.aboutGithubUrl,he),a(),_(n.texts.aboutGithubUrl),a(3),_(n.texts.aboutCliLabel),a(2),C(" ",n.cliVersion()," "),a(3),_(n.texts.aboutSpecLabel),a(2),C(" ",n.specVersion()," "),a(3),_(n.texts.aboutSchemaLabel),a(2),C(" ",n.schemaVersion()," "),a(3),_(n.texts.aboutScopeLabel),a(2),C(" ",n.scope()," "),a(3),_(n.texts.aboutFolderLabel),a(2),C(" ",n.cwd()," "),a(3),_(n.texts.aboutDbLabel),a(2),C(" ",n.dbDisplay()," "))},styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-about[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.settings-about__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.settings-about__logo[_ngcontent-%COMP%]{width:64px;height:64px;flex-shrink:0}.settings-about__heading-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:0}.settings-about__title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;margin:0}.settings-about__intro[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);font-size:.875rem}.settings-about__error[_ngcontent-%COMP%]{margin:0;padding:.5rem .75rem;border-radius:var(--p-border-radius);background:var(--p-message-error-background);color:var(--p-message-error-color);font-size:.875rem}.settings-about__list[_ngcontent-%COMP%]{margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-about__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:180px 1fr;align-items:baseline;gap:.75rem;padding:.5rem .75rem;border-radius:var(--p-border-radius)}.settings-about__row[_ngcontent-%COMP%]:nth-child(odd){background:var(--p-content-hover-background)}.settings-about__label[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--p-text-muted-color)}.settings-about__value[_ngcontent-%COMP%]{margin:0;font-family:var(--p-monospace-font-family, ui-monospace, monospace);font-size:.875rem;word-break:break-all}.settings-about__link[_ngcontent-%COMP%]{color:var(--p-primary-color);text-decoration:none}.settings-about__link[_ngcontent-%COMP%]:hover, .settings-about__link[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}"],changeDetection:0})};function di(t,i){if(!t||!i)return t;let e=i.replace(/[/\\]+$/,"");return t.startsWith(e)?t.slice(e.length).replace(/^[/\\]+/,""):t}var en={schemaVersion:1,entries:[{version:"0.19.0",date:"2026-05-09",kind:"user-facing",highlights:[{body:`**Settings \u2192 Changelog.** The Changelog tab in Settings now lists what's new in skill-map: one entry per release, newest first, bullet points for the user-facing changes plus the workspace(s) each change affected. The same content is bundled with the demo so it's available offline too. The tab populates automatically on every release.
|
|
106
|
+
|
|
107
|
+
**Project DB path.** The "Project DB" row in Settings \u2192 About now shows the path relative to your project folder (\`.skill-map/skill-map.db\`) instead of repeating the absolute prefix already shown in the row above. Cleaner, less redundant.`,packages:["@skill-map/cli"]},{body:"**Tags zoom-to-matching.** Clicking a tag chip in the inspector now pans + zooms the graph to fit every node that carries the tag. Click the same chip again to clear the selection and return to the previous view. The chip itself lights up to show what's filtering \u2014 an active tag is unmistakable in the panel.",packages:["@skill-map/cli"]}]},{version:"0.18.0",date:"2026-05-07",kind:"user-facing",highlights:[{body:"**Bump sidecars in batch.** New `sm bump --pending` walks every node whose `.sm` sidecar reports drift (body or frontmatter hash mismatch) and refreshes them in one pass \u2014 bumps `annotations.version`, recomputes hashes, stamps `audit.lastBumpedAt` / `lastBumpedBy`. Single-node `sm bump <path>` also lands. The CLI surface mirrors the on-disk write.",packages:["@skill-map/cli","@skill-map/spec"]},{body:'**Annotation catalog now 14 fields.** Dropped `released` (redundant with `audit.lastBumpedAt`). The inspector and node card now read the activity timestamp from the reserved `audit:` block \u2014 no more confusion between "officially released" and "last bumped".',packages:["@skill-map/cli","@skill-map/spec"]}]},{version:"0.17.0",date:"2026-04-29",kind:"user-facing",highlights:[{body:"**View contribution system.** Plugins can now contribute slot-aware visuals to the inspector and the graph card without being wired by hand: per-node counters, alerts, key-value rows. Two built-ins ship today: `core/external-url-counter` (counts external URLs per node) and `core/link-counts` (in / out link counters).",packages:["@skill-map/cli","@skill-map/spec"]},{body:"**Multi-provider support.** The kernel registry is now open per Provider \u2014 Claude, Gemini, and the open-standard `agent-skills` flavour all coexist. Cards paint with each Provider's accent; the kind palette in the graph view filters on the actual node kind names rather than a closed enum.",packages:["@skill-map/cli","@skill-map/spec"]}]}]};var tn=en;var gi=(t,i)=>i.version;function pi(t,i){if(t&1&&(p(0,"p",3),l(1),m()),t&2){let e=s();a(),C(" ",e.texts.changelogEmpty," ")}}function mi(t,i){if(t&1&&(p(0,"p",10),l(1),m()),t&2){let e=s(3);a(),C(" ",e.texts.changelogInternalRelease," ")}}function ui(t,i){if(t&1&&(p(0,"li",15),l(1),m()),t&2){let e=i.$implicit;a(),_(e)}}function _i(t,i){if(t&1&&(p(0,"ul",14),G(1,ui,2,1,"li",15,st),m()),t&2){let e=s().$implicit,n=s(4);h("aria-label",n.texts.changelogAffectedPackages),a(),X(e.packages)}}function hi(t,i){if(t&1&&(p(0,"li",12),A(1,"div",13),f(2,_i,3,1,"ul",14),m()),t&2){let e=i.$implicit;a(),B("innerHTML",e.bodyHtml,it),a(),b(e.packages.length?2:-1)}}function fi(t,i){if(t&1&&(p(0,"ul",11),G(1,hi,3,2,"li",12,at),m()),t&2){let e=s().$implicit;a(),X(e.highlights)}}function bi(t,i){if(t&1&&(p(0,"li",6)(1,"header",7)(2,"span",8),l(3),m(),p(4,"span",9),l(5),m()(),f(6,mi,2,1,"p",10)(7,fi,3,0,"ul",11),m()),t&2){let e=i.$implicit;oe("settings-changelog__entry--internal",e.kind==="internal"),h("data-testid","settings-changelog-entry-"+e.version),a(3),C("v",e.version),a(2),_(e.date),a(),b(e.kind==="internal"?6:7)}}function xi(t,i){if(t&1&&(p(0,"ol",4),G(1,bi,8,6,"li",5,gi),m()),t&2){let e=s();a(),X(e.entries())}}var Ve=class t{markdown=v(zt);texts=k;entries=S([]);hasEntries=x(()=>this.entries().length>0);ngOnInit(){this.renderAll()}async renderAll(){let i=[];for(let e of tn.entries){let n=[];for(let o of e.highlights)n.push({bodyHtml:await this.markdown.render(o.body),packages:o.packages});i.push({version:e.version,date:this.formatDate(e.date),kind:e.kind,highlights:n})}this.entries.set(i)}formatDate(i){let e=new Date(i+"T00:00:00Z");return Number.isNaN(e.getTime())?i:new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(e)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["sm-settings-changelog"]],decls:7,vars:4,consts:[["data-testid","settings-changelog",1,"settings-changelog"],["id","settings-changelog-heading",1,"settings-changelog__title"],[1,"settings-changelog__intro"],["data-testid","settings-changelog-empty",1,"settings-changelog__empty"],["role","list",1,"settings-changelog__list"],[1,"settings-changelog__entry",3,"settings-changelog__entry--internal"],[1,"settings-changelog__entry"],[1,"settings-changelog__entry-header"],[1,"settings-changelog__version"],[1,"settings-changelog__date"],[1,"settings-changelog__internal-body"],["role","list",1,"settings-changelog__highlights"],[1,"settings-changelog__highlight"],[1,"settings-changelog__highlight-body",3,"innerHTML"],["role","list",1,"settings-changelog__packages"],[1,"settings-changelog__package"]],template:function(e,n){e&1&&(p(0,"section",0)(1,"h2",1),l(2),m(),p(3,"p",2),l(4),m(),f(5,pi,2,1,"p",3)(6,xi,3,0,"ol",4),m()),e&2&&(h("aria-labelledby","settings-changelog-heading"),a(2),C(" ",n.texts.changelogHeading," "),a(2),_(n.texts.changelogIntro),a(),b(n.hasEntries()?6:5))},styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-changelog__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}.settings-changelog__empty[_ngcontent-%COMP%]{margin:1.5rem 0 0;font-size:.9rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.25rem}.settings-changelog__entry[_ngcontent-%COMP%]{border-left:2px solid var(--p-primary-color);padding:.25rem 0 .25rem .85rem}.settings-changelog__entry--internal[_ngcontent-%COMP%]{border-left-color:var(--sm-border)}.settings-changelog__entry-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.6rem;margin-bottom:.45rem}.settings-changelog__version[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.95rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__date[_ngcontent-%COMP%]{font-size:.78rem;color:var(--sm-text-muted)}.settings-changelog__internal-body[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__highlights[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}.settings-changelog__highlight[_ngcontent-%COMP%]{font-size:.88rem;line-height:1.5;color:var(--p-text-color)}.settings-changelog__highlight-body[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p+p{margin-top:.45rem}[_nghost-%COMP%] .settings-changelog__highlight-body code{font-family:var(--sm-font-mono);font-size:.82rem;padding:.05rem .3rem;border-radius:3px;background:var(--sm-bg-hover);color:var(--p-text-color)}[_nghost-%COMP%] .settings-changelog__highlight-body a{color:var(--p-primary-color);text-decoration:underline}[_nghost-%COMP%] .settings-changelog__highlight-body strong{font-weight:600}.settings-changelog__packages[_ngcontent-%COMP%]{list-style:none;margin:.4rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem}.settings-changelog__package[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.7rem;padding:.1rem .4rem;border-radius:3px;background:var(--sm-bg-hover);color:var(--sm-text-muted);border:1px solid var(--sm-border);line-height:1.4}"],changeDetection:0})};var Ae=class t{sectionId=F.required();sectionLabel=F.required();texts=k;headingId=x(()=>`settings-coming-soon-${this.sectionId()}-heading`);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["sm-settings-coming-soon"]],inputs:{sectionId:[1,"sectionId"],sectionLabel:[1,"sectionLabel"]},decls:6,vars:5,consts:[[1,"settings-coming-soon"],["aria-hidden","true",1,"pi","pi-clock","settings-coming-soon__icon"],[1,"settings-coming-soon__title",3,"id"],[1,"settings-coming-soon__body"]],template:function(e,n){e&1&&(p(0,"section",0),A(1,"i",1),p(2,"h2",2),l(3),m(),p(4,"p",3),l(5),m()()),e&2&&(h("aria-labelledby",n.headingId())("data-testid","settings-coming-soon-"+n.sectionId()),a(2),B("id",n.headingId()),a(),C(" ",n.texts.comingSoonTitle," "),a(2),C(" ",n.texts.comingSoonBody(n.sectionLabel())," "))},styles:["[_nghost-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;padding:1.5rem}.settings-coming-soon[_ngcontent-%COMP%]{max-width:420px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem;color:var(--p-text-muted-color)}.settings-coming-soon__icon[_ngcontent-%COMP%]{font-size:2rem;opacity:.6}.settings-coming-soon__title[_ngcontent-%COMP%]{font-size:1.05rem;font-weight:600;margin:0;color:var(--p-text-color)}.settings-coming-soon__body[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.5}"],changeDetection:0})};var nn=`
|
|
108
|
+
.p-toggleswitch {
|
|
109
|
+
display: inline-block;
|
|
110
|
+
width: dt('toggleswitch.width');
|
|
111
|
+
height: dt('toggleswitch.height');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.p-toggleswitch-input {
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
appearance: none;
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 0;
|
|
119
|
+
inset-inline-start: 0;
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 100%;
|
|
122
|
+
padding: 0;
|
|
123
|
+
margin: 0;
|
|
124
|
+
opacity: 0;
|
|
125
|
+
z-index: 1;
|
|
126
|
+
outline: 0 none;
|
|
127
|
+
border-radius: dt('toggleswitch.border.radius');
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.p-toggleswitch-slider {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
border-width: dt('toggleswitch.border.width');
|
|
135
|
+
border-style: solid;
|
|
136
|
+
border-color: dt('toggleswitch.border.color');
|
|
137
|
+
background: dt('toggleswitch.background');
|
|
138
|
+
transition:
|
|
139
|
+
background dt('toggleswitch.transition.duration'),
|
|
140
|
+
color dt('toggleswitch.transition.duration'),
|
|
141
|
+
border-color dt('toggleswitch.transition.duration'),
|
|
142
|
+
outline-color dt('toggleswitch.transition.duration'),
|
|
143
|
+
box-shadow dt('toggleswitch.transition.duration');
|
|
144
|
+
border-radius: dt('toggleswitch.border.radius');
|
|
145
|
+
outline-color: transparent;
|
|
146
|
+
box-shadow: dt('toggleswitch.shadow');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.p-toggleswitch-handle {
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 50%;
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
align-items: center;
|
|
155
|
+
background: dt('toggleswitch.handle.background');
|
|
156
|
+
color: dt('toggleswitch.handle.color');
|
|
157
|
+
width: dt('toggleswitch.handle.size');
|
|
158
|
+
height: dt('toggleswitch.handle.size');
|
|
159
|
+
inset-inline-start: dt('toggleswitch.gap');
|
|
160
|
+
margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2));
|
|
161
|
+
border-radius: dt('toggleswitch.handle.border.radius');
|
|
162
|
+
transition:
|
|
163
|
+
background dt('toggleswitch.transition.duration'),
|
|
164
|
+
color dt('toggleswitch.transition.duration'),
|
|
165
|
+
inset-inline-start dt('toggleswitch.slide.duration'),
|
|
166
|
+
box-shadow dt('toggleswitch.slide.duration');
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {
|
|
170
|
+
background: dt('toggleswitch.checked.background');
|
|
171
|
+
border-color: dt('toggleswitch.checked.border.color');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {
|
|
175
|
+
background: dt('toggleswitch.handle.checked.background');
|
|
176
|
+
color: dt('toggleswitch.handle.checked.color');
|
|
177
|
+
inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap')));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {
|
|
181
|
+
background: dt('toggleswitch.hover.background');
|
|
182
|
+
border-color: dt('toggleswitch.hover.border.color');
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {
|
|
186
|
+
background: dt('toggleswitch.handle.hover.background');
|
|
187
|
+
color: dt('toggleswitch.handle.hover.color');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {
|
|
191
|
+
background: dt('toggleswitch.checked.hover.background');
|
|
192
|
+
border-color: dt('toggleswitch.checked.hover.border.color');
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {
|
|
196
|
+
background: dt('toggleswitch.handle.checked.hover.background');
|
|
197
|
+
color: dt('toggleswitch.handle.checked.hover.color');
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {
|
|
201
|
+
box-shadow: dt('toggleswitch.focus.ring.shadow');
|
|
202
|
+
outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color');
|
|
203
|
+
outline-offset: dt('toggleswitch.focus.ring.offset');
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.p-toggleswitch.p-invalid > .p-toggleswitch-slider {
|
|
207
|
+
border-color: dt('toggleswitch.invalid.border.color');
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.p-toggleswitch.p-disabled {
|
|
211
|
+
opacity: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.p-toggleswitch.p-disabled .p-toggleswitch-slider {
|
|
215
|
+
background: dt('toggleswitch.disabled.background');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.p-toggleswitch.p-disabled .p-toggleswitch-handle {
|
|
219
|
+
background: dt('toggleswitch.handle.disabled.background');
|
|
220
|
+
}
|
|
221
|
+
`;var Ci=["handle"],yi=["input"],vi=t=>({checked:t});function wi(t,i){t&1&&J(0)}function Ei(t,i){if(t&1&&y(0,wi,1,0,"ng-container",3),t&2){let e=s();d("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",ve(2,vi,e.checked()))}}var Ti=`
|
|
222
|
+
${nn}
|
|
223
|
+
|
|
224
|
+
p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch-slider {
|
|
225
|
+
border-color: dt('toggleswitch.invalid.border.color');
|
|
226
|
+
}
|
|
227
|
+
`,Mi={root:{position:"relative"}},ki={root:({instance:t})=>["p-toggleswitch p-component",{"p-toggleswitch p-component":!0,"p-toggleswitch-checked":t.checked(),"p-disabled":t.$disabled(),"p-invalid":t.invalid()}],input:"p-toggleswitch-input",slider:"p-toggleswitch-slider",handle:"p-toggleswitch-handle"},on=(()=>{class t extends Se{name="toggleswitch";style=Ti;classes=ki;inlineStyles=Mi;static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var an=new ue("TOGGLESWITCH_INSTANCE"),Si={provide:Mt,useExisting:Je(()=>Be),multi:!0},Be=(()=>{class t extends Dt{componentName="ToggleSwitch";$pcToggleSwitch=v(an,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=v($,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;tabindex;inputId;readonly;trueValue=!0;falseValue=!1;ariaLabel;size=F();ariaLabelledBy;autofocus;onChange=new N;input;handleTemplate;_handleTemplate;focused=!1;_componentStyle=v(on);templates;onHostClick(e){this.onClick(e)}onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="handle"?this._handleTemplate=e.template:this._handleTemplate=e.template})}onClick(e){!this.$disabled()&&!this.readonly&&(this.writeModelValue(this.checked()?this.falseValue:this.trueValue),this.onModelChange(this.modelValue()),this.onChange.emit({originalEvent:e,checked:this.modelValue()}),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}checked(){return this.modelValue()===this.trueValue}writeControlValue(e,n){n(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.checked(),disabled:this.$disabled(),invalid:this.invalid()})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=V(t)))(o||t)}})();static \u0275cmp=I({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(n,o,r){if(n&1&&be(r,Ci,4)(r,ke,4),n&2){let u;z(u=O())&&(o.handleTemplate=u.first),z(u=O())&&(o.templates=u)}},viewQuery:function(n,o){if(n&1&&xe(yi,5),n&2){let r;z(r=O())&&(o.input=r.first)}},hostVars:7,hostBindings:function(n,o){n&1&&T("click",function(u){return o.onHostClick(u)}),n&2&&(h("data-p-checked",o.checked())("data-p-disabled",o.$disabled())("data-p",o.dataP),ee(o.sx("root")),D(o.cn(o.cx("root"),o.styleClass)))},inputs:{styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",ae],inputId:"inputId",readonly:[2,"readonly","readonly",M],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",size:[1,"size"],ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",M]},outputs:{onChange:"onChange"},features:[ye([Si,on,{provide:an,useExisting:t},{provide:Ie,useExisting:t}]),fe([$]),R],decls:5,vars:22,consts:[["input",""],["type","checkbox","role","switch",3,"focus","blur","checked","pAutoFocus","pBind"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){n&1&&(g(0,"input",1,0),T("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),c(),g(2,"div",2)(3,"div",2),f(4,Ei,1,4,"ng-container"),c()()),n&2&&(D(o.cx("input")),d("checked",o.checked())("pAutoFocus",o.autofocus)("pBind",o.ptm("input")),h("id",o.inputId)("required",o.required()?"":void 0)("disabled",o.$disabled()?"":void 0)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name())("tabindex",o.tabindex),a(2),D(o.cx("slider")),d("pBind",o.ptm("slider")),h("data-p",o.dataP),a(),D(o.cx("handle")),d("pBind",o.ptm("handle")),h("data-p",o.dataP),a(),b(o.handleTemplate||o._handleTemplate?4:-1))},dependencies:[Te,Ee,yt,Y,vt,$],encapsulation:2,changeDetection:0})}return t})(),sn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=de({type:t});static \u0275inj=le({imports:[Be,Y,Y]})}return t})();var Pi={provider:"#7C3AED",extractor:"#A78BFA",rule:"#5FD17C",action:"#00C853",formatter:"#5BC0EB",hook:"#FFB627"};function rn(t){let i=t.toLowerCase();return Pi[i]??"currentColor"}var gn=(t,i)=>i.id;function Di(t,i){if(t&1&&(g(0,"p",9),P(1,"i",12),l(2),c()),t&2){let e=s();a(2),C(" ",e.texts.loading," ")}}function zi(t,i){if(t&1&&(g(0,"p-message",10),l(1),c()),t&2){let e=s();d("closable",!1),a(),ce(" ",e.texts.errorPrefix," ",e.loadError()," ")}}function Oi(t,i){if(t&1&&(g(0,"p",11),l(1),c()),t&2){let e=s();a(),C(" ",e.texts.empty," ")}}function Li(t,i){if(t&1){let e=L();g(0,"p-message",17),T("onClose",function(){w(e);let o=s(2);return E(o.toggleError.set(null))}),l(1),c()}if(t&2){let e=s(2);d("closable",!0),a(),ce(" ",e.texts.toggleErrorPrefix," ",e.toggleError()," ")}}function Fi(t,i){if(t&1&&(g(0,"p",14),P(1,"i",18),l(2),c()),t&2){let e=s(2);a(2),C(" ",e.texts.pluginsSearchEmpty(e.searchText())," ")}}function Vi(t,i){if(t&1){let e=L();g(0,"button",34),T("click",function(o){w(e);let r=s().$implicit;return s(2).toggleExpanded(r.id),E(o.stopPropagation())}),P(1,"i",35),c()}if(t&2){let e=s().$implicit,n=s(2);h("aria-expanded",n.isExpanded(e.id))("aria-label",n.isExpanded(e.id)?n.texts.collapseLabel:n.texts.expandLabel)("data-testid","settings-bundle-expand-"+e.id),a(),D(n.isExpanded(e.id)?"pi pi-chevron-down":"pi pi-chevron-right")}}function Ai(t,i){t&1&&P(0,"span",22)}function Bi(t,i){if(t&1&&(g(0,"span",27),l(1),c()),t&2){let e=s().$implicit;a(),C("v",e.version)}}function Hi(t,i){if(t&1&&(g(0,"span",28),l(1),c()),t&2){let e=s(3);a(),_(e.texts.granularityExtension)}}function Ni(t,i){if(t&1&&(g(0,"span",29),l(1),c()),t&2){let e=s().$implicit,n=s(2);a(),_(n.statusLabel(e))}}function Ri(t,i){if(t&1&&(g(0,"p",30),l(1),c()),t&2){let e=s().$implicit;a(),_(e.description)}}function $i(t,i){if(t&1&&(g(0,"span",31),l(1),c()),t&2){let e=s().$implicit;a(),_(e.reason)}}function ji(t,i){if(t&1){let e=L();g(0,"p-toggleswitch",36),T("ngModelChange",function(o){w(e);let r=s().$implicit,u=s(2);return E(u.onBundleToggle(r,o))}),c()}if(t&2){let e=s().$implicit,n=s(2);d("ngModel",e.status==="enabled")("disabled",n.isPending(e.id))("ariaLabel",n.texts.a11y.pluginToggle(e.id,e.status!=="enabled")),h("data-testid","settings-toggle-"+e.id)}}function Gi(t,i){if(t&1&&(g(0,"p",44),l(1),c()),t&2){let e=s().$implicit;a(),_(e.description)}}function Xi(t,i){if(t&1){let e=L();g(0,"li",38),T("click",function(o){let r=w(e).$implicit,u=s(2).$implicit,H=s(2);return E(H.onSubrowClick(u.id,r,o))}),g(1,"div",39)(2,"div",40)(3,"span",41),l(4),c(),g(5,"span",42),l(6),c(),g(7,"span",43),l(8),c()(),f(9,Gi,2,1,"p",44),c(),g(10,"p-toggleswitch",36),T("ngModelChange",function(o){let r=w(e).$implicit,u=s(2).$implicit,H=s(2);return E(H.onExtensionToggle(u.id,r,o))}),c()()}if(t&2){let e=i.$implicit,n=s(2).$implicit,o=s(2);h("data-testid","settings-extrow-"+n.id+"-"+e.id),a(4),_(e.id),a(),Ce("--kind-color",o.kindTint(e.kind)),a(),_(e.kind),a(2),C("v",e.version),a(),b(e.description?9:-1),a(),d("ngModel",e.enabled)("disabled",o.isPending(o.qualifiedExt(n.id,e.id)))("ariaLabel",o.texts.a11y.extensionToggle(o.qualifiedExt(n.id,e.id),!e.enabled)),h("data-testid","settings-ext-toggle-"+n.id+"-"+e.id)}}function Ui(t,i){if(t&1&&(g(0,"ul",33),G(1,Xi,11,11,"li",37,gn),c()),t&2){let e=s().$implicit;h("data-testid","settings-extensions-"+e.id),a(),X(e.extensions)}}function Zi(t,i){if(t&1){let e=L();g(0,"li",19)(1,"div",20),T("click",function(o){let r=w(e).$implicit,u=s(2);return E(u.onRowClick(r,o))}),f(2,Vi,2,5,"button",21)(3,Ai,1,0,"span",22),g(4,"div",23)(5,"div",24)(6,"span",25),l(7),c(),g(8,"span",26),l(9),c(),f(10,Bi,2,1,"span",27),f(11,Hi,2,1,"span",28),f(12,Ni,2,1,"span",29),c(),f(13,Ri,2,1,"p",30),f(14,$i,2,1,"span",31),c(),f(15,ji,1,4,"p-toggleswitch",32),c(),f(16,Ui,3,1,"ul",33),c()}if(t&2){let e=i.$implicit,n=s(2);oe("is-extension-bundle",e.granularity==="extension")("is-failed",!n.canToggleBundle(e)&&e.granularity==="bundle")("is-clickable",n.rowIsClickable(e)),h("data-testid","settings-row-"+e.id),a(2),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)?2:3),a(5),_(e.id),a(2),_(n.sourceLabel(e.source)),a(),b(e.version?10:-1),a(),b(e.granularity==="extension"?11:-1),a(),b(!n.canToggleBundle(e)&&e.granularity==="bundle"?12:-1),a(),b(e.description?13:-1),a(),b(e.reason?14:-1),a(),b(n.canToggleBundle(e)?15:-1),a(),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)&&n.isExpanded(e.id)?16:-1)}}function Qi(t,i){if(t&1&&(f(0,Li,2,3,"p-message",13),f(1,Fi,3,1,"p",14),g(2,"ul",15),G(3,Zi,17,17,"li",16,gn),c()),t&2){let e=s();b(e.toggleError()?0:-1),a(),b(e.searchActive()&&e.filteredPlugins().length===0?1:-1),a(2),X(e.filteredPlugins())}}var He=class t{dataSource=v(ze);visible=F.required();texts=k;loading=S(!1);loadError=S(null);toggleError=S(null);plugins=S([]);expanded=S(new Set);pending=S(new Set);hasFailureRows=x(()=>this.plugins().some(i=>We(i.status)));searchText=S("");searchActive=x(()=>this.searchText().trim().length>0);filteredPlugins=x(()=>{let i=this.searchText().trim().toLowerCase();return i.length===0?this.plugins():this.plugins().flatMap(e=>qi(e,i))});forcedExpand=x(()=>{if(!this.searchActive())return new Set;let i=this.searchText().trim().toLowerCase(),e=new Set;for(let n of this.filteredPlugins())pn(n,i)||n.granularity==="extension"&&(n.extensions?.length??0)>0&&e.add(n.id);return e});constructor(){_e(()=>{this.visible()&&this.refresh()})}async refresh(){this.loading.set(!0),this.loadError.set(null),this.toggleError.set(null);try{let i=await this.dataSource.listPlugins();this.plugins.set([...i.items])}catch(i){this.loadError.set(cn(i)),this.plugins.set([])}finally{this.loading.set(!1)}}toggleExpanded(i){let e=new Set(this.expanded());e.has(i)?e.delete(i):e.add(i),this.expanded.set(e)}isExpanded(i){return this.expanded().has(i)||this.forcedExpand().has(i)}isPending(i){return this.pending().has(i)}onBundleToggle(i,e){this.runToggle(i.id,()=>this.dataSource.setPluginEnabled(i.id,e))}onExtensionToggle(i,e,n){let o=ln(i,e.id);this.runToggle(o,()=>this.dataSource.setPluginExtensionEnabled(i,e.id,n))}async runToggle(i,e){if(this.pending().has(i))return;let n=new Set(this.pending());n.add(i),this.pending.set(n),this.toggleError.set(null);try{let o=await e();this.plugins.set([...o.items])}catch(o){this.toggleError.set(cn(o))}finally{let o=new Set(this.pending());o.delete(i),this.pending.set(o)}}canToggleBundle(i){return i.granularity==="extension"?!1:!We(i.status)}rowIsClickable(i){return!!(this.canToggleBundle(i)||i.granularity==="extension"&&(i.extensions?.length??0)>0)}onRowClick(i,e){if(!dn(e)){if(this.canToggleBundle(i)){this.onBundleToggle(i,i.status!=="enabled");return}i.granularity==="extension"&&(i.extensions?.length??0)>0&&this.toggleExpanded(i.id)}}onSubrowClick(i,e,n){dn(n)||this.onExtensionToggle(i,e,!e.enabled)}statusLabel(i){return We(i.status)?k.statusFailure[i.status]??i.status:i.status==="enabled"?k.enabledLabel:k.disabledLabel}sourceLabel(i){switch(i){case"built-in":return k.sourceBuiltIn;case"project":return k.sourceProject;case"global":return k.sourceGlobal}}qualifiedExt(i,e){return ln(i,e)}kindTint(i){return rn(i)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["sm-settings-plugins"]],inputs:{visible:[1,"visible"]},decls:18,vars:9,consts:[["aria-labelledby","settings-plugins-heading",1,"settings-plugins"],[1,"settings-plugins__header"],["id","settings-plugins-heading",1,"settings-plugins__title"],[1,"settings-plugins__intro"],["iconPosition","left",1,"settings-plugins__search"],["styleClass","pi pi-search"],["pInputText","","type","text","data-testid","settings-plugins-search",3,"ngModelChange","placeholder","ngModel"],["severity","warn","styleClass","settings-plugins__banner","data-testid","settings-banner-restart",3,"closable"],[1,"settings-plugins__banner-body"],["data-testid","settings-loading",1,"settings-plugins__hint"],["severity","error","data-testid","settings-error",3,"closable"],["data-testid","settings-empty",1,"settings-plugins__hint"],["aria-hidden","true",1,"pi","pi-spin","pi-spinner"],["severity","error","data-testid","settings-toggle-error",3,"closable"],["data-testid","settings-search-empty",1,"settings-plugins__hint"],["role","list",1,"settings-plugins__list"],[1,"settings-plugins__row",3,"is-extension-bundle","is-failed","is-clickable"],["severity","error","data-testid","settings-toggle-error",3,"onClose","closable"],["aria-hidden","true",1,"pi","pi-search"],[1,"settings-plugins__row"],[1,"settings-plugins__row-main",3,"click"],["type","button",1,"settings-plugins__expand"],["aria-hidden","true",1,"settings-plugins__expand-spacer"],[1,"settings-plugins__row-text"],[1,"settings-plugins__row-headline"],[1,"settings-plugins__row-id"],[1,"settings-plugins__row-source"],[1,"settings-plugins__row-version"],[1,"settings-plugins__row-granularity"],[1,"settings-plugins__row-status"],[1,"settings-plugins__row-description"],[1,"settings-plugins__row-reason"],[3,"ngModel","disabled","ariaLabel"],["role","list",1,"settings-plugins__sublist"],["type","button",1,"settings-plugins__expand",3,"click"],["aria-hidden","true"],[3,"ngModelChange","ngModel","disabled","ariaLabel"],[1,"settings-plugins__subrow","is-clickable"],[1,"settings-plugins__subrow","is-clickable",3,"click"],[1,"settings-plugins__subrow-text"],[1,"settings-plugins__subrow-headline"],[1,"settings-plugins__subrow-id"],[1,"settings-plugins__subrow-kind"],[1,"settings-plugins__subrow-version"],[1,"settings-plugins__subrow-description"]],template:function(e,n){e&1&&(g(0,"section",0)(1,"header",1)(2,"h2",2),l(3),c(),g(4,"p",3),l(5),c()(),g(6,"p-iconfield",4),P(7,"p-inputicon",5),g(8,"input",6),T("ngModelChange",function(r){return n.searchText.set(r)}),c()(),g(9,"p-message",7)(10,"strong"),l(11),c(),g(12,"span",8),l(13),c()(),f(14,Di,3,1,"p",9)(15,zi,2,3,"p-message",10)(16,Oi,2,1,"p",11)(17,Qi,5,2),c()),e&2&&(a(3),C(" ",n.texts.pluginsHeading," "),a(2),_(n.texts.pluginsIntro),a(3),d("placeholder",n.texts.pluginsSearchPlaceholder)("ngModel",n.searchText()),h("aria-label",n.texts.pluginsSearchA11y),a(),d("closable",!1),a(2),_(n.texts.restartBannerTitle),a(2),C(" \u2014 ",n.texts.restartBannerBody),a(),b(n.loading()?14:n.loadError()?15:n.plugins().length===0?16:17))},dependencies:[Pt,kt,St,It,Bt,At,Nt,Ht,Lt,Ot,$t,Rt,sn,Be],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-plugins[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.settings-plugins__header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.settings-plugins__title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;margin:0}.settings-plugins__intro[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);font-size:.875rem}.settings-plugins__search[_ngcontent-%COMP%]{display:block;width:100%}.settings-plugins__search[_ngcontent-%COMP%] :where(input[_ngcontent-%COMP%]){width:100%}.settings-plugins__banner[_ngcontent-%COMP%]{display:block}.settings-plugins__banner-body[_ngcontent-%COMP%]{font-weight:400}.settings-plugins__hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0;padding:1rem 0;color:var(--p-text-muted-color);font-size:.875rem}.settings-plugins__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-plugins__row[_ngcontent-%COMP%]{border:1px solid var(--p-content-border-color);border-radius:var(--p-border-radius);background:var(--p-content-background);padding:.75rem .875rem;display:flex;flex-direction:column;gap:.5rem}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__row.is-failed[_ngcontent-%COMP%]{border-color:var(--p-message-error-border-color);background:var(--p-message-error-background)}.settings-plugins__row.is-extension-bundle[_ngcontent-%COMP%]{background:var(--p-content-background)}.settings-plugins__row-main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.settings-plugins__expand[_ngcontent-%COMP%], .settings-plugins__expand-spacer[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.settings-plugins__expand[_ngcontent-%COMP%]{border:none;background:transparent;cursor:pointer;color:var(--p-text-muted-color);border-radius:var(--p-border-radius)}.settings-plugins__expand[_ngcontent-%COMP%]:hover{color:var(--p-text-color);background:var(--p-content-hover-background)}.settings-plugins__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__row-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__row-id[_ngcontent-%COMP%]{font-weight:600;font-family:var(--p-monospace-font-family, monospace)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__row-granularity[_ngcontent-%COMP%], .settings-plugins__subrow-kind[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.7rem;font-weight:500;letter-spacing:.02em;padding:.125rem .5rem;border-radius:999px;white-space:nowrap}.settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family, ui-monospace, monospace)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__row-granularity[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-text-color) 8%,transparent);border:1px solid color-mix(in oklab,var(--p-text-color) 18%,transparent);color:var(--p-text-color)}.app-dark[_nghost-%COMP%] .settings-plugins__row-source[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-source[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .settings-plugins__row-version[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-version[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .settings-plugins__row-granularity[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-granularity[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .settings-plugins__subrow-version[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__subrow-version[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-text-color) 14%,transparent);border-color:color-mix(in oklab,var(--p-text-color) 28%,transparent)}.settings-plugins__subrow-kind[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 14%,transparent);border:1px solid color-mix(in oklab,var(--kind-color, var(--p-text-color)) 38%,transparent);color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 70%,#111827)}.app-dark[_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 22%,transparent);border-color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 55%,transparent);color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 80%,#f9fafb)}.settings-plugins__row-status[_ngcontent-%COMP%]{font-weight:500}.settings-plugins__row-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.8125rem;line-height:1.4;color:var(--p-text-muted-color)}.settings-plugins__row-reason[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--p-message-error-color);font-family:var(--p-monospace-font-family, monospace);margin-top:.25rem}.settings-plugins__sublist[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.5rem 0 0 1.75rem;display:flex;flex-direction:column;gap:.25rem;border-top:1px dashed var(--p-content-border-color)}.settings-plugins__subrow[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.375rem .5rem;border-radius:var(--p-border-radius)}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__subrow-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__subrow-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__subrow-id[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family, monospace);font-size:.875rem}.settings-plugins__subrow-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.75rem;line-height:1.4;color:var(--p-text-muted-color)}"],changeDetection:0})};function ln(t,i){return`${t}/${i}`}function dn(t){let i=t.target;return!i||typeof i.closest!="function"?!1:i.closest('label, button, input, [role="switch"], p-toggleswitch')!==null}function qi(t,i){if(pn(t,i))return[t];if(t.granularity!=="extension"||!t.extensions)return[];let e=t.extensions.filter(n=>Yi(n,i));return e.length===0?[]:[Ke(j({},t),{extensions:e})]}function pn(t,i){return!!(t.id.toLowerCase().includes(i)||t.description&&t.description.toLowerCase().includes(i))}function Yi(t,i){return!!(t.id.toLowerCase().includes(i)||t.description&&t.description.toLowerCase().includes(i))}function We(t){return t==="incompatible-spec"||t==="invalid-manifest"||t==="load-error"||t==="id-collision"}function cn(t){return t instanceof Oe||t instanceof Error?t.message:String(t)}var Wi=()=>({width:"1024px",height:"720px",maxWidth:"92vw",maxHeight:"90vh"}),Ki=(t,i)=>i.id;function Ji(t,i){t&1&&(g(0,"span",9),l(1,"soon"),c())}function eo(t,i){if(t&1){let e=L();g(0,"li")(1,"button",7),T("click",function(){let o=w(e).$implicit,r=s();return E(r.selectSection(o.id))}),g(2,"span",8),l(3),c(),f(4,Ji,2,0,"span",9),c()()}if(t&2){let e=i.$implicit,n=s();a(),oe("is-active",n.activeSection()===e.id)("is-disabled",e.status==="coming-soon"),h("aria-current",n.activeSection()===e.id?"page":null)("data-testid","settings-nav-"+e.id),a(2),_(e.label),a(),b(e.status==="coming-soon"?4:-1)}}function to(t,i){if(t&1&&P(0,"sm-settings-plugins",5),t&2){let e=s();d("visible",e.pluginsVisible())}}function no(t,i){if(t&1&&P(0,"sm-settings-about",5),t&2){let e=s();d("visible",e.aboutVisible())}}function io(t,i){t&1&&P(0,"sm-settings-changelog")}function oo(t,i){if(t&1&&P(0,"sm-settings-coming-soon",6),t&2){let e=s();d("sectionId",e.activeDescriptor().id)("sectionLabel",e.activeDescriptor().label)}}var ao=[{id:"general",label:k.sections.general,status:"coming-soon"},{id:"plugins",label:k.sections.plugins,status:"available"},{id:"changelog",label:k.sections.changelog,status:"available"},{id:"about",label:k.sections.about,status:"available"}],mn=class t{visible=F.required();visibleChange=ct();texts=k;sections=ao;activeSection=S("plugins");pluginsVisible=x(()=>this.visible()&&this.activeSection()==="plugins");aboutVisible=x(()=>this.visible()&&this.activeSection()==="about");activeDescriptor=x(()=>this.sections.find(i=>i.id===this.activeSection())??this.sections[0]);onVisibleChange(i){this.visibleChange.emit(i)}selectSection(i){this.activeSection.set(i)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["sm-settings-modal"]],inputs:{visible:[1,"visible"]},outputs:{visibleChange:"visibleChange"},decls:11,vars:13,consts:[["contentStyleClass","settings-modal__content","data-testid","settings-modal",3,"visibleChange","visible","modal","draggable","resizable","closable","closeOnEscape","dismissableMask","header"],[1,"settings-modal__layout"],["data-testid","settings-modal-sidebar",1,"settings-modal__sidebar"],["role","list",1,"settings-modal__sidebar-list"],["data-testid","settings-modal-main",1,"settings-modal__main"],[3,"visible"],[3,"sectionId","sectionLabel"],["type","button",1,"settings-modal__sidebar-item",3,"click"],[1,"settings-modal__sidebar-label"],[1,"settings-modal__sidebar-badge"]],template:function(e,n){if(e&1&&(g(0,"p-dialog",0),T("visibleChange",function(r){return n.onVisibleChange(r)}),g(1,"div",1)(2,"nav",2)(3,"ul",3),G(4,eo,5,8,"li",null,Ki),c()(),g(6,"div",4),f(7,to,1,1,"sm-settings-plugins",5)(8,no,1,1,"sm-settings-about",5)(9,io,1,0,"sm-settings-changelog")(10,oo,1,2,"sm-settings-coming-soon",6),c()()()),e&2){let o;ee(dt(12,Wi)),d("visible",n.visible())("modal",!0)("draggable",!1)("resizable",!1)("closable",!0)("closeOnEscape",!0)("dismissableMask",!0)("header",n.texts.modalTitle),a(2),h("aria-label",n.texts.modalTitle),a(2),X(n.sections),a(3),b((o=n.activeSection())==="plugins"?7:o==="about"?8:o==="changelog"?9:10)}},dependencies:[Tt,Jt,Ye,Le,Ve,He,Ae],styles:["[_nghost-%COMP%]{display:contents}[_nghost-%COMP%] .settings-modal__content{padding:0;height:100%;display:flex;flex-direction:column;overflow:hidden}.settings-modal__layout[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:200px 1fr;min-height:0}.settings-modal__sidebar[_ngcontent-%COMP%]{border-right:1px solid var(--p-content-border-color);background:var(--p-content-background);padding:.5rem;overflow-y:auto}.settings-modal__sidebar-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.125rem}.settings-modal__sidebar-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;border-radius:var(--p-border-radius);background:transparent;color:var(--p-text-color);font:inherit;text-align:left;cursor:pointer;transition:background .15s ease,color .15s ease}.settings-modal__sidebar-item[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-modal__sidebar-item.is-active[_ngcontent-%COMP%]{background:var(--p-highlight-background);color:var(--p-highlight-color)}.settings-modal__sidebar-item.is-disabled[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}.settings-modal__sidebar-item.is-disabled[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-modal__sidebar-label[_ngcontent-%COMP%]{flex:1;font-size:.9rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-modal__sidebar-badge[_ngcontent-%COMP%]{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;padding:.125rem .5rem;border-radius:999px;background:color-mix(in oklab,var(--p-text-color) 14%,transparent);color:var(--p-text-color);border:1px solid color-mix(in oklab,var(--p-text-color) 24%,transparent)}.settings-modal__sidebar-item.is-active[_ngcontent-%COMP%] .settings-modal__sidebar-badge[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-highlight-color) 28%,transparent);color:var(--p-highlight-color);border-color:color-mix(in oklab,var(--p-highlight-color) 40%,transparent)}.settings-modal__main[_ngcontent-%COMP%]{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}.settings-modal__main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;min-height:0}"],changeDetection:0})};export{mn as SettingsModal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as N,l as k}from"./chunk-PMIMYHBM.js";import{Ba as ne,Ib as le,J as W,Jb as pe,Ka as g,Na as p,O as X,Oa as m,Pa as oe,Ra as I,S as Z,Sa as x,T as ee,Ta as T,Tb as i,Ua as u,Va as f,Wb as me,Xa as c,Xb as b,Ya as l,Za as re,ab as ie,ca as te,db as ae,gb as de,hb as a,jc as ue,oa as r,sb as se,tb as S,wa as _,wb as d,xb as s,yb as ce}from"./chunk-LFIE4SCX.js";import{c as Q}from"./chunk-Q7L6LLAK.js";var $=class n{registry=te({});setRegistry(e){e&&this.registry.set(e)}get(e){return this.registry()[e]}all(){return this.registry()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=W({token:n,factory:n.\u0275fac,providedIn:"root"})};var P="demo",O="sprinkler",Ie=4,xe=[0,1,3,6],ge=["\u{1F525}","\u26A1","\u2728","\u{1F3AF}","\u{1F680}","\u{1F48E}"],fe=["\u{1F3F7}\uFE0F","\u{1F516}","\u{1F4CC}"],A=class n{decorate(e,t){let o=he(e,Ie),y=xe[o]??0;if(y===0)return t;let v=[];for(let C=0;C<y;C++)v.push(C%2===0?Te(e,C):Ne(e,C));return[...t,...v]}lookup(e){if(!e.startsWith(`${P}/${O}/`))return;let t=e.split("/")[2]??"",o=t.match(/^count-(\d+)$/);if(o){let v=Number(o[1]);return{pluginId:P,extensionId:O,contributionId:t,contract:"node-counter",icon:ge[v%ge.length],label:"demo",emitWhenEmpty:!1}}let y=t.match(/^tag-(\d+)$/);if(y){let v=Number(y[1]);return{pluginId:P,extensionId:O,contributionId:t,contract:"node-tag",icon:fe[v%fe.length],label:"demo",emitWhenEmpty:!1}}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=W({token:n,factory:n.\u0275fac,providedIn:"root"})};function he(n,e){let t=0;for(let o=0;o<n.length;o++)t=(t<<5)-t+n.charCodeAt(o)|0;return Math.abs(t)%e}function Te(n,e){return{pluginId:P,extensionId:O,nodePath:n,contributionId:`count-${e}`,contract:"node-counter",payload:{value:(e+1)*7}}}function Ne(n,e){let t=["info","warn","success","danger"];return{pluginId:P,extensionId:O,nodePath:n,contributionId:`tag-${e}`,contract:"node-tag",payload:{label:`t${e}`,severity:t[e%t.length]}}}var h={panelHeader:"Plugin contributions",panelCount:n=>`${n} contribution${n===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownContract:n=>`Unknown contract: ${n}. Update the UI to a newer catalog version.`,overflowBadge:n=>`+${n}`,overflowTooltip:n=>`Hidden: ${n}`};var ke=(n,e)=>e.label;function Ee(n,e){if(n&1&&(c(0,"h5",1),d(1),l()),n&2){let t=a();r(),s(t.label())}}function we(n,e){if(n&1&&(c(0,"p",2),d(1),l()),n&2){let t=a();r(),s(t.emptyText())}}function Me(n,e){if(n&1&&(c(0,"li",4)(1,"span",5),d(2),l(),c(3,"span",6),re(4,"span",7),l(),c(5,"span",8),d(6),l()()),n&2){let t=e.$implicit,o=a(2);g("title",t.tooltip??""),r(2),s(t.label),r(2),se("width",o.percent(t.value),"%"),r(2),s(t.value)}}function Se(n,e){if(n&1&&(c(0,"ul",3),I(1,Me,7,5,"li",4,ke),l()),n&2){let t=a();r(),x(t.entries())}}var F=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);maxValue=i(()=>this.entries().reduce((t,o)=>o.value>t?o.value:t,0));percent(e){let t=this.maxValue();return t===0?0:Math.round(e/t*100)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(t,o){t&1&&(c(0,"section",0),p(1,Ee,2,1,"h5",1),p(2,we,2,1,"p",2)(3,Se,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-breakdown"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-surface-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:.25rem;height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function De(n,e){if(n&1&&(u(0,"span",1),d(1),f()),n&2){let t=a();r(),s(t.icon())}}var B=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=i(()=>this.typed().value);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=i(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:13,consts:[[1,"vc-counter",3,"pTooltip"],["aria-hidden","true",1,"vc-counter__icon"],[1,"vc-counter__value"]],template:function(t,o){t&1&&(u(0,"span",0),p(1,De,2,1,"span",1),u(2,"span",2),d(3),f()()),t&2&&(S("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),T("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-counter"),r(),m(o.icon()?1:-1),r(),g("aria-label",o.ariaLabel()),r(),s(o.value()))},dependencies:[k,N],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}.vc-counter--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:3px}.vc-counter--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:3px}.vc-counter--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:3px}.vc-counter--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:3px}"],changeDetection:0})};var Pe=(n,e)=>e.key;function Oe(n,e){if(n&1&&(u(0,"h5",1),d(1),f()),n&2){let t=a();r(),s(t.label())}}function Re(n,e){if(n&1&&(u(0,"p",2),d(1),f()),n&2){let t=a();r(),s(t.emptyText())}}function We(n,e){if(n&1&&(u(0,"dt",4),d(1),f(),u(2,"dd"),d(3),f()),n&2){let t=e.$implicit,o=a(2);T("pTooltip",t.tooltip??""),r(),s(t.key),r(2),s(o.formatValue(t.value))}}function $e(n,e){if(n&1&&(u(0,"dl",3),I(1,We,4,3,null,null,Pe),f()),n&2){let t=a();r(),x(t.entries())}}var L=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatValue(e){return e==null?"\u2014":typeof e=="boolean"?e?"true":"false":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(t,o){t&1&&(u(0,"section",0),p(1,Oe,2,1,"h5",1),p(2,Re,2,1,"p",2)(3,$e,3,0,"dl",3),f()),t&2&&(g("data-testid","renderer-node-key-values"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},dependencies:[k,N],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var Ae=(n,e)=>e.path;function Fe(n,e){if(n&1&&(c(0,"h5",1),d(1),l()),n&2){let t=a();r(),s(t.label())}}function Be(n,e){if(n&1&&(c(0,"p",2),d(1),l()),n&2){let t=a();r(),s(t.emptyText())}}function Le(n,e){if(n&1&&(c(0,"span",5),d(1),l()),n&2){let t=a().$implicit;r(),s(t.kind)}}function Ve(n,e){if(n&1){let t=ae();c(0,"li")(1,"button",4),de("click",function(){let y=Z(t).$implicit,v=a(2);return ee(v.openPath.emit(y.path))}),p(2,Le,2,1,"span",5),c(3,"span",6),d(4),l()()()}if(n&2){let t=e.$implicit;r(2),m(t.kind?2:-1),r(2),s(t.label??t.path)}}function ze(n,e){if(n&1&&(c(0,"ul",3),I(1,Ve,5,2,"li",null,Ae),l()),n&2){let t=a();r(),x(t.entries())}}var V=class n{inputs=b.required();openPath=me();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},outputs:{openPath:"openPath"},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(t,o){t&1&&(c(0,"section",0),p(1,Fe,2,1,"h5",1),p(2,Be,2,1,"p",2)(3,ze,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-link-list"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:.25rem;color:var(--p-primary-600);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-surface-500);font-family:var(--p-font-family-mono, monospace);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var ye=(n,e)=>e.key;function je(n,e){if(n&1&&(c(0,"h5",1),d(1),l()),n&2){let t=a();r(),s(t.label())}}function qe(n,e){if(n&1&&(c(0,"p",2),d(1),l()),n&2){let t=a();r(),s(t.emptyText())}}function Ke(n,e){if(n&1&&(c(0,"th"),d(1),l()),n&2){let t=e.$implicit;r(),s(t.label)}}function Ue(n,e){if(n&1&&(c(0,"td"),d(1),l()),n&2){let t=e.$implicit,o=a().$implicit,y=a(2);r(),s(y.formatCell(o[t.key]))}}function He(n,e){if(n&1&&(c(0,"tr"),I(1,Ue,2,1,"td",null,ye),l()),n&2){let t=a(2);r(),x(t.columns())}}function Xe(n,e){if(n&1&&(c(0,"table",3)(1,"thead")(2,"tr"),I(3,Ke,2,1,"th",null,ye),l()(),c(5,"tbody"),I(6,He,3,0,"tr",null,oe),l()()),n&2){let t=a();r(3),x(t.columns()),r(3),x(t.rows())}}var z=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{columns:[],rows:[]}:e});columns=i(()=>this.typed().columns??[]);rows=i(()=>this.typed().rows??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatCell(e){return e==null?"":typeof e=="boolean"?e?"\u2713":"\xB7":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"]],template:function(t,o){t&1&&(c(0,"section",0),p(1,je,2,1,"h5",1),p(2,qe,2,1,"p",2)(3,Xe,8,0,"table",3),l()),t&2&&(g("data-testid","renderer-node-records"),r(),m(o.label()?1:-1),r(),m(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-surface-700);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Ge(n,e){if(n&1&&(c(0,"h5",1),d(1),l()),n&2){let t=a();r(),s(t.label())}}function Ye(n,e){if(n&1&&(c(0,"p",2),d(1),l()),n&2){let t=a();r(),s(t.emptyText())}}function Je(n,e){if(n&1&&(c(0,"pre",3),d(1),l()),n&2){let t=a();r(),s(t.markdown())}}var j=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{markdown:""}:e});markdown=i(()=>this.typed().markdown??"");label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(t,o){t&1&&(c(0,"section",0),p(1,Ge,2,1,"h5",1),p(2,Ye,2,1,"p",2)(3,Je,2,1,"pre",3),l()),t&2&&(g("data-testid","renderer-node-markdown"),r(),m(o.label()?1:-1),r(),m(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);background:var(--p-surface-50);padding:.5rem;border-radius:.25rem;white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Qe(n,e){if(n&1&&(u(0,"span",1),d(1),f()),n&2){let t=a();r(),s(t.icon())}}var q=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=i(()=>this.typed().label||"");icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(t,o){t&1&&(u(0,"span",0),p(1,Qe,2,1,"span",1),u(2,"span",2),d(3),f()()),t&2&&(S("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),T("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-tag"),r(),m(o.icon()?1:-1),r(2),s(o.label()))},dependencies:[k,N],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:3px}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:3px}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:3px}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:3px}"],changeDetection:0})};var Ze=()=>[],ve=(n,e)=>e.label;function et(n,e){if(n&1&&(c(0,"h5",1),d(1),l()),n&2){let t=a();r(),s(t.label())}}function tt(n,e){if(n&1&&(c(0,"p",2),d(1),l()),n&2){let t=a();r(),s(t.emptyText())}}function nt(n,e){if(n&1&&(c(0,"span",5),d(1),l()),n&2){let t=a().$implicit;r(),s(t.marker)}}function ot(n,e){if(n&1&&(c(0,"span",5),d(1),l()),n&2){let t=a().$implicit;r(),s(t.marker)}}function rt(n,e){if(n&1&&(c(0,"li",4),p(1,ot,2,1,"span",5),c(2,"span",6),d(3),l()()),n&2){let t=e.$implicit;g("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),s(t.label)}}function it(n,e){if(n&1&&(c(0,"ul",7),I(1,rt,4,3,"li",4,ve),l()),n&2){let t=a().$implicit;r(),x(t.children)}}function at(n,e){if(n&1&&(c(0,"li",4),p(1,nt,2,1,"span",5),c(2,"span",6),d(3),l(),p(4,it,3,0,"ul",7),l()),n&2){let t=e.$implicit;g("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),s(t.label),r(),m(t.children&&t.children.length>0?4:-1)}}function dt(n,e){if(n&1&&(c(0,"ul",3),I(1,at,5,4,"li",4,ve),l()),n&2){let t=a();r(),x(t.root().children??le(0,Ze))}}var K=class n{inputs=b.required();root=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});rootIsEmpty=i(()=>{let e=this.root();return!e.children||e.children.length===0});label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(t,o){t&1&&(c(0,"section",0),p(1,et,2,1,"h5",1),p(2,tt,2,1,"p",2)(3,dt,3,1,"ul",3),l()),t&2&&(g("data-testid","renderer-node-tree"),r(),m(o.label()?1:-1),r(),m(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function st(n,e){if(n&1&&(u(0,"span",1),d(1),f()),n&2){let t=a();r(),s(t.icon())}}function ct(n,e){if(n&1&&(u(0,"span",2),d(1),f()),n&2){let t=a();r(),s(t.formattedCount())}}var U=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=i(()=>this.typed().icon??this.inputs().icon);severity=i(()=>this.typed().severity);count=i(()=>this.typed().count??null);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=i(()=>{let e=this.count();return e===null?"":e>=99?"99+":String(e)});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["aria-hidden","true",1,"vc-alert__icon"],[1,"vc-alert__count"]],template:function(t,o){t&1&&(u(0,"span",0),p(1,st,2,1,"span",1),p(2,ct,2,1,"span",2),f()),t&2&&(S("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),T("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-alert"),r(),m(o.icon()?1:-1),r(),m(o.count()!==null?2:-1))},dependencies:[k,N],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1rem;min-height:1rem;padding:.05rem .25rem;border-radius:.5rem;font-size:.7rem;background:var(--p-surface-200);color:var(--p-surface-800)}.vc-alert--info[_ngcontent-%COMP%]{background:var(--p-blue-200);color:var(--p-blue-800)}.vc-alert--warn[_ngcontent-%COMP%]{background:var(--p-yellow-200);color:var(--p-yellow-900)}.vc-alert--success[_ngcontent-%COMP%]{background:var(--p-green-200);color:var(--p-green-800)}.vc-alert--danger[_ngcontent-%COMP%]{background:var(--p-red-200);color:var(--p-red-800)}"],changeDetection:0})};function lt(n,e){if(n&1&&(u(0,"span",1),d(1),f()),n&2){let t=a();r(),s(t.icon())}}function pt(n,e){if(n&1&&(u(0,"span",3),d(1),f()),n&2){let t=a();r(),s(t.label())}}var H=class n{inputs=b.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=i(()=>String(this.typed().value??""));label=i(()=>this.typed().label??this.inputs().label);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["aria-hidden","true",1,"vc-stat__icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(t,o){t&1&&(u(0,"span",0),p(1,lt,2,1,"span",1),u(2,"span",2),d(3),f(),p(4,pt,2,1,"span",3),f()),t&2&&(S("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),T("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-scope-stat"),r(),m(o.icon()?1:-1),r(2),s(o.value()),r(),m(o.label()?4:-1))},dependencies:[k,N],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})};var G={"node-counter":B,"node-tag":q,"node-breakdown":F,"node-records":z,"node-tree":K,"node-key-values":L,"node-link-list":V,"node-markdown":j,"node-alert":U,"scope-stat":H},be={"node-counter":["card.footer.left","inspector.header.badge"],"node-tag":["inspector.header.badge"],"node-breakdown":["inspector.body.panel"],"node-records":["inspector.body.panel"],"node-tree":["inspector.body.panel"],"node-key-values":["inspector.body.panel"],"node-link-list":["inspector.body.panel"],"node-markdown":["inspector.body.panel"],"node-alert":["graph.node.alert"],"scope-stat":["topbar.actions.indicator"]};function Y(n){return n in G}var D={"topbar.actions.indicator":{id:"topbar.actions.indicator",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge":{id:"inspector.header.badge",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.body.panel":{id:"inspector.body.panel",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"alphabetical",strategy:"append"}};var mt=n=>({inputs:n}),ut=(n,e)=>e.qualifiedId;function gt(n,e){n&1&&ie(0)}function ft(n,e){if(n&1&&(u(0,"span",1),ne(1,gt,1,0,"ng-container",3),f()),n&2){let t=e.$implicit,o=a(2);g("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),r(),T("ngComponentOutlet",o.rendererFor(t.contract))("ngComponentOutletInputs",pe(3,mt,t.rendererInputs))}}function yt(n,e){if(n&1&&(u(0,"span",2),d(1),f()),n&2){let t=a(2);T("pTooltip",t.overflowTooltip()),r(),ce(" ",t.overflowBadge()," ")}}function vt(n,e){if(n&1&&(u(0,"span",0),I(1,ft,2,5,"span",1,ut),p(3,yt,2,2,"span",2),f()),n&2){let t=a();g("data-testid","view-contributions-host-"+t.testidSuffix()),r(),x(t.visible()),r(2),m(t.overflowCount()>0?3:-1)}}var _e=class n{slot=b.required();node=b(null);testidSuffix=i(()=>this.slot().replaceAll(".","-"));registry=X($);demo=X(A);dispatched=i(()=>{let e=this.node();if(!e)return[];let t=this.demo.decorate(e.path,e.contributions??[]);if(t.length===0)return[];let o=this.slot(),y=t.filter(v=>bt(v.contract,o)).filter(v=>Y(v.contract));return this.sortBySlotOrder(y,o).map(v=>({qualifiedId:`${v.pluginId}/${v.extensionId}/${v.contributionId}`,contract:v.contract,rendererInputs:this.buildInputs(v,o)}))});visible=i(()=>{let e=this.dispatched(),t=D[this.slot()].maxItems;return e.slice(0,t)});overflowCount=i(()=>{let e=this.dispatched(),t=D[this.slot()].maxItems;return Math.max(0,e.length-t)});overflowBadge=i(()=>h.overflowBadge(this.overflowCount()));overflowTooltip=i(()=>{let e=this.dispatched(),t=D[this.slot()].maxItems,o=e.slice(t).map(y=>y.qualifiedId).join(", ");return h.overflowTooltip(o)});rendererFor(e){return G[e]}buildInputs(e,t){let o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,y=this.registry.get(o)??this.demo.lookup(o),v=D[t].respectSeverity!==!1,C=e.payload;if(!v&&typeof C=="object"&&C!==null&&"severity"in C){let J=C,{severity:Ct}=J;C=Q(J,["severity"])}let M={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:C};return y?.label&&(M.label=y.label),y?.tooltip&&(M.tooltip=y.tooltip),y?.icon&&(M.icon=y.icon),y?.emptyText&&(M.emptyText=y.emptyText),M}sortBySlotOrder(e,t){let o=D[t].order;return o==="fifo"?e.slice():o==="priority"?e.slice().sort((y,v)=>{let C=this.priorityFor(y),M=this.priorityFor(v);return C!==M?C-M:Ce(y,v)}):e.slice().sort(Ce)}priorityFor(e){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return(this.registry.get(t)??this.demo.lookup(t))?.priority??100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-view-contributions-host"]],inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(t,o){t&1&&p(0,vt,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[ue,k,N],styles:[".vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})};function bt(n,e){return Y(n)?be[n].includes(e):!1}function Ce(n,e){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return t<o?-1:t>o?1:0}function _t(n){if(typeof n!="object"||n===null)return!1;let e=n;if(typeof e.type!="string"||e.type.length===0)return!1;let t=e.timestamp;return!(typeof t!="number"&&typeof t!="string"||!("data"in e))}function Gn(n){if(!_t(n)||n.type!=="sidecar.bumped")return!1;let e=n.data;if(typeof e!="object"||e===null||typeof e.nodePath!="string"||e.nodePath.length===0)return!1;let t=e.version;return!(t!==null&&typeof t!="number"||e.status!=="fresh")}export{$ as a,_e as b,_t as c,Gn as d};
|