@skill-map/cli 0.47.1 → 0.49.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/dist/cli/tutorial/sm-master/SKILL.md +3 -2
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +2 -2
- package/dist/cli.js +441 -108
- package/dist/index.js +7 -5
- package/dist/kernel/index.d.ts +23 -28
- package/dist/kernel/index.js +7 -5
- package/dist/ui/chunk-7EVKMO5A.js +1110 -0
- package/dist/ui/chunk-FDJ5FDGM.js +2 -0
- package/dist/ui/chunk-LBYK5DLL.js +123 -0
- package/dist/ui/chunk-MO37AU3M.js +1 -0
- package/dist/ui/{chunk-HAWX5WNM.js → chunk-NV5DRQPL.js} +2 -2
- package/dist/ui/chunk-OUNBYGMY.js +1 -0
- package/dist/ui/{chunk-CRWK2NFZ.js → chunk-QKL5B4RS.js} +1 -1
- package/dist/ui/chunk-RDYHTZW7.js +1066 -0
- package/dist/ui/{chunk-RT7E4S5B.js → chunk-YA64YJXF.js} +1 -1
- package/dist/ui/chunk-YRBZKMG6.js +2610 -0
- package/dist/ui/{chunk-22CKFAEU.js → chunk-YV7KWLC4.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/dist/ui/main-EVGVBPDA.js +4 -0
- package/dist/ui/{styles-HI4A6IWA.css → styles-HWRPHKTJ.css} +1 -1
- package/package.json +5 -3
- package/dist/ui/chunk-3AKR33GE.js +0 -1
- package/dist/ui/chunk-3HLMBEDX.js +0 -124
- package/dist/ui/chunk-7K36273M.js +0 -809
- package/dist/ui/chunk-CO2ZOUSD.js +0 -90
- package/dist/ui/chunk-EPBUSS3I.js +0 -2
- package/dist/ui/chunk-K365TVPA.js +0 -1
- package/dist/ui/chunk-QCMLB44L.js +0 -123
- package/dist/ui/chunk-UIUGLD7F.js +0 -107
- package/dist/ui/chunk-UV3QRBRR.js +0 -135
- package/dist/ui/chunk-VNA3TMIO.js +0 -1
- package/dist/ui/chunk-VW2A6WZ3.js +0 -1
- package/dist/ui/chunk-WPUUCIS3.js +0 -1021
- package/dist/ui/chunk-XWU3YFSM.js +0 -315
- package/dist/ui/chunk-YOF6HQCQ.js +0 -2190
- package/dist/ui/chunk-ZZJ7XWDX.js +0 -1
- package/dist/ui/main-M4W7H6RY.js +0 -4
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import{A as pe,R as de,a as se,j as G,k as C,l as le,m as U,p as Y,q as Z,w as g}from"./chunk-WPUUCIS3.js";import{g as Q,j as K,l as H,m as q}from"./chunk-VNA3TMIO.js";import{Ab as ee,Bb as k,Cb as E,Gb as S,Ha as ne,Hb as ie,Ib as M,Ic as B,Ka as c,Kb as a,L as b,Lb as P,M as L,Mb as j,Nb as R,O as D,Pb as T,Q as m,Qb as w,Ub as oe,W as h,X as v,Xb as re,Y as V,Yb as l,Za as I,Zb as z,_a as A,_b as O,ab as N,bb as x,ca as W,cb as d,ic as $,la as y,lb as f,rc as ae,ub as r,uc as ce,vb as u,wb as _,xb as F,yb as X,zb as J}from"./chunk-HAWX5WNM.js";var Xe=(()=>{class e{loader=m(de);bySeverity=ce(()=>{let t=this.loader.scan(),i=new Set,n=new Set;if(!t)return{errors:i,warns:n};for(let o of t.issues){let p=o.severity==="error"?i:o.severity==="warn"?n:null;if(p)for(let ye of o.nodeIds)p.add(ye)}return{errors:i,warns:n}});static \u0275fac=function(i){return new(i||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var et={llm:{when:{label:"when",tooltip:"When to use (LLM-inferred)"},style:{label:"style",tooltip:"Interaction style (LLM-inferred)"},does:{label:"does",tooltip:"Capabilities (LLM-inferred)"},steps:{label:"steps",tooltip:"Recipe / ordered steps (LLM-inferred)"},pre:{label:"pre",tooltip:"Preconditions (LLM-inferred)"},out:{label:"out",tooltip:"Outputs / produced artifacts (LLM-inferred)"},fx:{label:"fx",tooltip:"Side effects (LLM-inferred)"},eg:{label:"eg",tooltip:"Invocation example (LLM-inferred)"},topics:{label:"topics",tooltip:"Topics covered (LLM-inferred)"},facts:{label:"facts",tooltip:"Key facts (LLM-inferred discrete claims)"}},meta:{model:"model",allowed:"allowed",tags:"tags"},stats:{errors:e=>`${e} error${e===1?"":"s"}`,warns:e=>`${e} warning${e===1?"":"s"}`,bytes:e=>`${e.toLocaleString("en-US")} bytes`,tokens:e=>`${e.toLocaleString("en-US")} tokens`},stability:{experimental:"experimental",deprecated:"deprecated"},sidecar:{staleBody:"Stale: body content changed since the last bump.",staleFrontmatter:"Stale: frontmatter changed since the last bump.",staleBoth:"Stale: body and frontmatter changed since the last bump."},tagOverflow:e=>`+${e} more`,ariaExpand:"Expand",ariaFavoriteAdd:"Add to favorites",ariaFavoriteRemove:"Remove from favorites",favoriteAddTooltip:"Mark as favorite",favoriteRemoveTooltip:"Unfavorite"};var me=`
|
|
2
|
-
.p-tag {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
background: dt('tag.primary.background');
|
|
7
|
-
color: dt('tag.primary.color');
|
|
8
|
-
font-size: dt('tag.font.size');
|
|
9
|
-
font-weight: dt('tag.font.weight');
|
|
10
|
-
padding: dt('tag.padding');
|
|
11
|
-
border-radius: dt('tag.border.radius');
|
|
12
|
-
gap: dt('tag.gap');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.p-tag-icon {
|
|
16
|
-
font-size: dt('tag.icon.size');
|
|
17
|
-
width: dt('tag.icon.size');
|
|
18
|
-
height: dt('tag.icon.size');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-tag-rounded {
|
|
22
|
-
border-radius: dt('tag.rounded.border.radius');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.p-tag-success {
|
|
26
|
-
background: dt('tag.success.background');
|
|
27
|
-
color: dt('tag.success.color');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-tag-info {
|
|
31
|
-
background: dt('tag.info.background');
|
|
32
|
-
color: dt('tag.info.color');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-tag-warn {
|
|
36
|
-
background: dt('tag.warn.background');
|
|
37
|
-
color: dt('tag.warn.color');
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.p-tag-danger {
|
|
41
|
-
background: dt('tag.danger.background');
|
|
42
|
-
color: dt('tag.danger.color');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.p-tag-secondary {
|
|
46
|
-
background: dt('tag.secondary.background');
|
|
47
|
-
color: dt('tag.secondary.color');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.p-tag-contrast {
|
|
51
|
-
background: dt('tag.contrast.background');
|
|
52
|
-
color: dt('tag.contrast.color');
|
|
53
|
-
}
|
|
54
|
-
`;var Ie=["icon"],xe=["*"];function Te(e,s){if(e&1&&F(0,"span",4),e&2){let t=a(2);l(t.cx("icon")),r("ngClass",t.icon)("pBind",t.ptm("icon"))}}function we(e,s){if(e&1&&(k(0),d(1,Te,1,4,"span",3),E()),e&2){let t=a();c(),r("ngIf",t.icon)}}function ke(e,s){}function Ee(e,s){e&1&&d(0,ke,0,0,"ng-template")}function Se(e,s){if(e&1&&(u(0,"span",2),d(1,Ee,1,0,null,5),_()),e&2){let t=a();l(t.cx("icon")),r("pBind",t.ptm("icon")),c(),r("ngTemplateOutlet",t.iconTemplate||t._iconTemplate)}}var Me={root:({instance:e})=>["p-tag p-component",{"p-tag-info":e.severity==="info","p-tag-success":e.severity==="success","p-tag-warn":e.severity==="warn","p-tag-danger":e.severity==="danger","p-tag-secondary":e.severity==="secondary","p-tag-contrast":e.severity==="contrast","p-tag-rounded":e.rounded}],icon:"p-tag-icon",label:"p-tag-label"},ge=(()=>{class e extends U{name="tag";style=me;classes=Me;static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();var fe=new D("TAG_INSTANCE"),Be=(()=>{class e extends Z{componentName="Tag";$pcTag=m(fe,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=m(g,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;severity;value;icon;rounded;iconTemplate;templates;_iconTemplate;_componentStyle=m(ge);onAfterContentInit(){this.templates?.forEach(t=>{t.getType()==="icon"&&(this._iconTemplate=t.template)})}get dataP(){return this.cn({rounded:this.rounded,[this.severity]:this.severity})}static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["p-tag"]],contentQueries:function(i,n,o){if(i&1&&R(o,Ie,4)(o,G,4),i&2){let p;T(p=w())&&(n.iconTemplate=p.first),T(p=w())&&(n.templates=p)}},hostVars:3,hostBindings:function(i,n){i&2&&(f("data-p",n.dataP),l(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[2,"rounded","rounded",B]},features:[$([ge,{provide:fe,useExisting:e},{provide:Y,useExisting:e}]),N([g]),x],ngContentSelectors:xe,decls:5,vars:6,consts:[[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"pBind"],[3,"class","ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],[4,"ngTemplateOutlet"]],template:function(i,n){i&1&&(P(),j(0),d(1,we,2,1,"ng-container",0)(2,Se,2,4,"span",1),u(3,"span",2),z(4),_()),i&2&&(c(),r("ngIf",!n.iconTemplate&&!n._iconTemplate),c(),r("ngIf",n.iconTemplate||n._iconTemplate),c(),l(n.cx("label")),r("pBind",n.ptm("label")),c(),O(n.value))},dependencies:[q,Q,K,H,C,g],encapsulation:2,changeDetection:0})}return e})(),vt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=A({type:e});static \u0275inj=L({imports:[Be,C,C]})}return e})();var bt={stable:"success",experimental:"info",deprecated:"warn"},It={invokes:"warn",references:"info",mentions:"secondary",supersedes:"success"};function Le(e){return e>=.75?"high":e>=.45?"medium":"low"}function xt(e){let s=Le(e);return s==="high"?"success":s==="medium"?"info":"warn"}var De=["data-p-icon","times-circle"],ue=(()=>{class e extends pe{pathId;onInit(){this.pathId="url(#"+se()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["","data-p-icon","times-circle"]],features:[x],attrs:De,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(V(),X(0,"g"),ee(1,"path",0),J(),X(2,"defs")(3,"clipPath",1),ee(4,"rect",2),J()()),i&2&&(f("clip-path",n.pathId),c(3),ie("id",n.pathId))},encapsulation:2})}return e})();var _e=`
|
|
55
|
-
.p-chip {
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
background: dt('chip.background');
|
|
59
|
-
color: dt('chip.color');
|
|
60
|
-
border-radius: dt('chip.border.radius');
|
|
61
|
-
padding-block: dt('chip.padding.y');
|
|
62
|
-
padding-inline: dt('chip.padding.x');
|
|
63
|
-
gap: dt('chip.gap');
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.p-chip-icon {
|
|
67
|
-
color: dt('chip.icon.color');
|
|
68
|
-
font-size: dt('chip.icon.size');
|
|
69
|
-
width: dt('chip.icon.size');
|
|
70
|
-
height: dt('chip.icon.size');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.p-chip-image {
|
|
74
|
-
border-radius: 50%;
|
|
75
|
-
width: dt('chip.image.width');
|
|
76
|
-
height: dt('chip.image.height');
|
|
77
|
-
margin-inline-start: calc(-1 * dt('chip.padding.y'));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.p-chip:has(.p-chip-remove-icon) {
|
|
81
|
-
padding-inline-end: dt('chip.padding.y');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.p-chip:has(.p-chip-image) {
|
|
85
|
-
padding-block-start: calc(dt('chip.padding.y') / 2);
|
|
86
|
-
padding-block-end: calc(dt('chip.padding.y') / 2);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.p-chip-remove-icon {
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
font-size: dt('chip.remove.icon.size');
|
|
92
|
-
width: dt('chip.remove.icon.size');
|
|
93
|
-
height: dt('chip.remove.icon.size');
|
|
94
|
-
color: dt('chip.remove.icon.color');
|
|
95
|
-
border-radius: 50%;
|
|
96
|
-
transition:
|
|
97
|
-
outline-color dt('chip.transition.duration'),
|
|
98
|
-
box-shadow dt('chip.transition.duration');
|
|
99
|
-
outline-color: transparent;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.p-chip-remove-icon:focus-visible {
|
|
103
|
-
box-shadow: dt('chip.remove.icon.focus.ring.shadow');
|
|
104
|
-
outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
|
|
105
|
-
outline-offset: dt('chip.remove.icon.focus.ring.offset');
|
|
106
|
-
}
|
|
107
|
-
`;var Ve=["removeicon"],Ae=["*"];function Ne(e,s){if(e&1){let t=S();u(0,"img",4),M("error",function(n){h(t);let o=a();return v(o.imageError(n))}),_()}if(e&2){let t=a();l(t.cx("image")),r("pBind",t.ptm("image"))("src",t.image,ne)("alt",t.alt)}}function Fe(e,s){if(e&1&&F(0,"span",6),e&2){let t=a(2);l(t.icon),r("pBind",t.ptm("icon"))("ngClass",t.cx("icon"))}}function Pe(e,s){if(e&1&&d(0,Fe,1,4,"span",5),e&2){let t=a();r("ngIf",t.icon)}}function je(e,s){if(e&1&&(u(0,"div",7),z(1),_()),e&2){let t=a();l(t.cx("label")),r("pBind",t.ptm("label")),c(),O(t.label)}}function Re(e,s){if(e&1){let t=S();u(0,"span",11),M("click",function(n){h(t);let o=a(3);return v(o.close(n))})("keydown",function(n){h(t);let o=a(3);return v(o.onKeydown(n))}),_()}if(e&2){let t=a(3);l(t.removeIcon),r("pBind",t.ptm("removeIcon"))("ngClass",t.cx("removeIcon")),f("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel)}}function ze(e,s){if(e&1){let t=S();V(),u(0,"svg",12),M("click",function(n){h(t);let o=a(3);return v(o.close(n))})("keydown",function(n){h(t);let o=a(3);return v(o.onKeydown(n))}),_()}if(e&2){let t=a(3);l(t.cx("removeIcon")),r("pBind",t.ptm("removeIcon")),f("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel)}}function Oe(e,s){if(e&1&&(k(0),d(1,Re,1,6,"span",9)(2,ze,1,5,"svg",10),E()),e&2){let t=a(2);c(),r("ngIf",t.removeIcon),c(),r("ngIf",!t.removeIcon)}}function $e(e,s){}function Qe(e,s){e&1&&d(0,$e,0,0,"ng-template")}function Ke(e,s){if(e&1){let t=S();u(0,"span",13),M("click",function(n){h(t);let o=a(2);return v(o.close(n))})("keydown",function(n){h(t);let o=a(2);return v(o.onKeydown(n))}),d(1,Qe,1,0,null,14),_()}if(e&2){let t=a(2);l(t.cx("removeIcon")),r("pBind",t.ptm("removeIcon")),f("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel),c(),r("ngTemplateOutlet",t.removeIconTemplate||t._removeIconTemplate)}}function He(e,s){if(e&1&&(k(0),d(1,Oe,3,2,"ng-container",3)(2,Ke,2,6,"span",8),E()),e&2){let t=a();c(),r("ngIf",!t.removeIconTemplate&&!t._removeIconTemplate),c(),r("ngIf",t.removeIconTemplate||t._removeIconTemplate)}}var qe={root:({instance:e})=>({display:!e.visible&&"none"})},Ge={root:({instance:e})=>["p-chip p-component",{"p-disabled":e.disabled}],image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},he=(()=>{class e extends U{name="chip";style=_e;classes=Ge;inlineStyles=qe;static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();var ve=new D("CHIP_INSTANCE"),Ue=(()=>{class e extends Z{componentName="Chip";$pcChip=m(ve,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=m(g,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new W;onImageError=new W;visible=!0;get removeAriaLabel(){return this.config.getTranslation(le.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(t){this._chipProps=t,t&&typeof t=="object"&&Object.entries(t).forEach(([i,n])=>this[`_${i}`]!==n&&(this[`_${i}`]=n))}_chipProps;_componentStyle=m(he);removeIconTemplate;templates;_removeIconTemplate;onAfterContentInit(){this.templates.forEach(t=>{t.getType()==="removeicon"?this._removeIconTemplate=t.template:this._removeIconTemplate=t.template})}onChanges(t){if(t.chipProps&&t.chipProps.currentValue){let{currentValue:i}=t.chipProps;i.label!==void 0&&(this.label=i.label),i.icon!==void 0&&(this.icon=i.icon),i.image!==void 0&&(this.image=i.image),i.alt!==void 0&&(this.alt=i.alt),i.styleClass!==void 0&&(this.styleClass=i.styleClass),i.removable!==void 0&&(this.removable=i.removable),i.removeIcon!==void 0&&(this.removeIcon=i.removeIcon)}}close(t){this.visible=!1,this.onRemove.emit(t)}onKeydown(t){(t.key==="Enter"||t.key==="Backspace")&&this.close(t)}imageError(t){this.onImageError.emit(t)}get dataP(){return this.cn({removable:this.removable})}static \u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["p-chip"]],contentQueries:function(i,n,o){if(i&1&&R(o,Ve,4)(o,G,4),i&2){let p;T(p=w())&&(n.removeIconTemplate=p.first),T(p=w())&&(n.templates=p)}},hostVars:6,hostBindings:function(i,n){i&2&&(f("aria-label",n.label)("data-p",n.dataP),re(n.sx("root")),l(n.cn(n.cx("root"),n.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",B],removable:[2,"removable","removable",B],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[$([he,{provide:ve,useExisting:e},{provide:Y,useExisting:e}]),N([g]),x],ngContentSelectors:Ae,decls:6,vars:4,consts:[["iconTemplate",""],[3,"pBind","class","src","alt","error",4,"ngIf","ngIfElse"],[3,"pBind","class",4,"ngIf"],[4,"ngIf"],[3,"error","pBind","src","alt"],[3,"pBind","class","ngClass",4,"ngIf"],[3,"pBind","ngClass"],[3,"pBind"],["role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"pBind","class","ngClass","click","keydown",4,"ngIf"],["data-p-icon","times-circle","role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"click","keydown","pBind","ngClass"],["data-p-icon","times-circle","role","button",3,"click","keydown","pBind"],["role","button",3,"click","keydown","pBind"],[4,"ngTemplateOutlet"]],template:function(i,n){if(i&1&&(P(),j(0),d(1,Ne,1,5,"img",1)(2,Pe,1,1,"ng-template",null,0,ae)(4,je,2,4,"div",2)(5,He,3,2,"ng-container",3)),i&2){let o=oe(3);c(),r("ngIf",n.image)("ngIfElse",o),c(3),r("ngIf",n.label),c(),r("ngIf",n.removable)}},dependencies:[q,Q,K,H,ue,C,g],encapsulation:2,changeDetection:0})}return e})(),qt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=A({type:e});static \u0275inj=L({imports:[Ue,C,C]})}return e})();export{Xe as a,et as b,Ue as c,qt as d,Be as e,vt as f,bt as g,It as h,Le as i,xt as j};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import{A as Pe,C as He,S as je,Y as Ve,j as $e,k as W,m as K,p as w,q as ge,w as y,x as Y}from"./chunk-WPUUCIS3.js";import{I as xe,K as Q,P as ce,b as U,d as ue,fa as pe,g as Fe}from"./chunk-4SG4352Z.js";import{l as Se,m as G}from"./chunk-VNA3TMIO.js";import{$a as V,Ab as Ae,Db as le,Ib as Ne,Ic as L,Jc as we,K as Ee,Ka as O,Kb as k,Kc as de,L as x,Lb as Be,M as $,Mb as Oe,Nb as ke,O as B,Pb as z,Q as m,Qb as q,Y as Le,Yb as E,Za as D,Zb as Ie,_a as j,_b as _e,ab as R,bb as C,ca as De,cb as ne,ha as P,ic as I,ja as H,kc as re,la as b,lb as oe,ob as T,pb as A,tc as se,ub as N,uc as _,vb as ie,wb as ae,xb as Te,xc as u,yc as a}from"./chunk-HAWX5WNM.js";import{a as te}from"./chunk-WCABR6TI.js";var tt=["data-p-icon","times"],wt=(()=>{class t extends Pe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=b(t)))(o||t)}})();static \u0275cmp=D({type:t,selectors:[["","data-p-icon","times"]],features:[C],attrs:tt,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){n&1&&(Le(),Ae(0,"path",0))},encapsulation:2})}return t})();var nt=Object.defineProperty,Re=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ze=(t,i,e)=>i in t?nt(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,qe=(t,i)=>{for(var e in i||(i={}))ot.call(i,e)&&ze(t,e,i[e]);if(Re)for(var e of Re(i))it.call(i,e)&&ze(t,e,i[e]);return t},at=(t,i,e)=>new Promise((n,o)=>{var l=s=>{try{f(e.next(s))}catch(c){o(c)}},r=s=>{try{f(e.throw(s))}catch(c){o(c)}},f=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,r);f((e=e.apply(t,i)).next())}),Z="animation",S="transition";function lt(t){return t?t.disabled||!!(t.safe&&xe()):!1}function rt(t,i){return t?qe(qe({},t),Object.entries(i).reduce((e,[n,o])=>{var l;return e[n]=(l=t[n])!=null?l:o,e},{})):i}function st(t){let{name:i,enterClass:e,leaveClass:n}=t||{};return{enter:{from:e?.from||`${i}-enter-from`,to:e?.to||`${i}-enter-to`,active:e?.active||`${i}-enter-active`},leave:{from:n?.from||`${i}-leave-from`,to:n?.to||`${i}-leave-to`,active:n?.active||`${i}-leave-active`}}}function dt(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function ut(t,i){let e=window.getComputedStyle(t),n=g=>{let M=e[`${g}Delay`],v=e[`${g}Duration`];return[M.split(", ").map(pe),v.split(", ").map(pe)]},[o,l]=n(S),[r,f]=n(Z),s=Math.max(...l.map((g,M)=>g+o[M])),c=Math.max(...f.map((g,M)=>g+r[M])),d,p=0,h=0;return i===S?s>0&&(d=S,p=s,h=l.length):i===Z?c>0&&(d=Z,p=c,h=f.length):(p=Math.max(s,c),d=p>0?s>c?S:Z:void 0,h=d?d===S?l.length:f.length:0),{type:d,timeout:p,count:h}}function J(t,i){return typeof t=="number"?t:typeof t=="object"&&t[i]!=null?t[i]:null}function ct(t,i=!0,e=!1){if(!i&&!e)return;let n=Fe(t);i&&ce(t,"--pui-motion-height",n.height+"px"),e&&ce(t,"--pui-motion-width",n.width+"px")}var pt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function he(t,i){if(!t)throw new Error("Element is required.");let e={},n=!1,o={},l=null,r={},f=d=>{if(Object.assign(e,rt(d,pt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");r=dt(e),n=lt(e),o=st(e),l=null},s=d=>at(null,null,function*(){l?.();let{onBefore:p,onStart:h,onAfter:g,onCancelled:M}=r[d]||{},v={element:t};if(n){p?.(v),h?.(v),g?.(v);return}let{from:me,active:be,to:Ce}=o[d]||{};return ct(t,e.autoHeight,e.autoWidth),p?.(v),U(t,me),U(t,be),t.offsetHeight,ue(t,me),U(t,Ce),h?.(v),new Promise(ye=>{let Xe=J(e.duration,d),Me=()=>{ue(t,[Ce,be]),l=null},et=()=>{Me(),g?.(v),ye()};l=()=>{Me(),M?.(v),ye()},ft(t,e.type,Xe,et)})});f(i);let c={enter:()=>e.enter?s("enter"):Promise.resolve(),leave:()=>e.leave?s("leave"):Promise.resolve(),cancel:()=>{l?.(),l=null},update:(d,p)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(p)}};return e.appear&&c.enter(),c}var gt=0;function ft(t,i,e,n){let o=t._motionEndId=++gt,l=()=>{o===t._motionEndId&&n()};if(e!=null)return setTimeout(l,e);let{type:r,timeout:f,count:s}=ut(t,i);if(!r){n();return}let c=r+"end",d=0,p=()=>{t.removeEventListener(c,h,!0),l()},h=g=>{g.target===t&&++d>=s&&p()};t.addEventListener(c,h,{capture:!0,once:!0}),setTimeout(()=>{d<s&&p()},f+1)}var vt=["*"];function mt(t,i){t&1&&Oe(0)}var X=new WeakMap;function F(t,i){if(t)switch(X.has(t)||X.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),i){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ee(t,i){if(!t)return;let e=X.get(t)??t.style;switch(i){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}X.delete(t)}var bt=`
|
|
2
|
-
.p-motion {
|
|
3
|
-
display: block;
|
|
4
|
-
}
|
|
5
|
-
`,Ct={root:"p-motion"},ve=(()=>{class t extends K{name="motion";style=bt;classes=Ct;static \u0275fac=(()=>{let e;return function(o){return(e||(e=b(t)))(o||t)}})();static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();var Ge=new B("MOTION_INSTANCE"),yt=(()=>{class t extends ge{$pcMotion=m(Ge,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=m(y,{self:!0});onAfterViewChecked(){let n=this.options()?.root||{};this.bindDirectiveInstance.setAttrs(te(te({},this.ptms(["host","root"])),n))}_componentStyle=m(ve);visible=a(!1);mountOnEnter=a(!0);unmountOnLeave=a(!0);name=a(void 0);type=a(void 0);safe=a(void 0);disabled=a(!1);appear=a(!1);enter=a(!0);leave=a(!0);duration=a(void 0);hideStrategy=a("display");enterFromClass=a(void 0);enterToClass=a(void 0);enterActiveClass=a(void 0);leaveFromClass=a(void 0);leaveToClass=a(void 0);leaveActiveClass=a(void 0);options=a({});onBeforeEnter=u();onEnter=u();onAfterEnter=u();onEnterCancelled=u();onBeforeLeave=u();onLeave=u();onAfterLeave=u();onLeaveCancelled=u();motionOptions=_(()=>{let e=this.options();return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;rendered=P(!1);handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),H(()=>{let e=this.hideStrategy();this.isInitialMount?(F(this.$el,e),this.rendered.set(this.visible()&&this.mountOnEnter()||!this.mountOnEnter())):this.visible()&&!this.rendered()&&(F(this.$el,e),this.rendered.set(!0))}),H(()=>{this.motion||(this.motion=he(this.$el,this.motionOptions()))}),de(async()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),n=this.hideStrategy();this.visible()?(await Q(),ee(this.$el,n),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount||(await Q(),this.applyMotionDuration("leave"),this.motion?.leave()?.then(async()=>{this.$el&&!this.cancelled&&!this.visible()&&(F(this.$el,n),this.unmountOnLeave()&&(await Q(),this.cancelled||this.rendered.set(!1)))})),this.isInitialMount=!1})}applyMotionDuration(e){let n=se(this.motionOptions),o=J(n.duration,e);if(o==null||!this.$el)return;let l=this.$el,r=`${o}ms`;n.type==="transition"?l.style.transitionDuration=r:l.style.animationDuration=r}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,ee(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=D({type:t,selectors:[["p-motion"]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.cx("root"))},inputs:{visible:[1,"visible"],mountOnEnter:[1,"mountOnEnter"],unmountOnLeave:[1,"unmountOnLeave"],name:[1,"name"],type:[1,"type"],safe:[1,"safe"],disabled:[1,"disabled"],appear:[1,"appear"],enter:[1,"enter"],leave:[1,"leave"],duration:[1,"duration"],hideStrategy:[1,"hideStrategy"],enterFromClass:[1,"enterFromClass"],enterToClass:[1,"enterToClass"],enterActiveClass:[1,"enterActiveClass"],leaveFromClass:[1,"leaveFromClass"],leaveToClass:[1,"leaveToClass"],leaveActiveClass:[1,"leaveActiveClass"],options:[1,"options"]},outputs:{onBeforeEnter:"onBeforeEnter",onEnter:"onEnter",onAfterEnter:"onAfterEnter",onEnterCancelled:"onEnterCancelled",onBeforeLeave:"onBeforeLeave",onLeave:"onLeave",onAfterLeave:"onAfterLeave",onLeaveCancelled:"onLeaveCancelled"},features:[I([ve,{provide:Ge,useExisting:t},{provide:w,useExisting:t}]),R([y]),C],ngContentSelectors:vt,decls:1,vars:1,template:function(n,o){n&1&&(Be(),T(0,mt,1,0)),n&2&&A(o.rendered()?0:-1)},dependencies:[G,Y],encapsulation:2})}return t})(),Ue=new B("MOTION_DIRECTIVE_INSTANCE"),Kt=(()=>{class t extends ge{$pcMotionDirective=m(Ue,{optional:!0,skipSelf:!0})??void 0;visible=a(!1,{alias:"pMotion"});name=a(void 0,{alias:"pMotionName"});type=a(void 0,{alias:"pMotionType"});safe=a(void 0,{alias:"pMotionSafe"});disabled=a(!1,{alias:"pMotionDisabled"});appear=a(!1,{alias:"pMotionAppear"});enter=a(!0,{alias:"pMotionEnter"});leave=a(!0,{alias:"pMotionLeave"});duration=a(void 0,{alias:"pMotionDuration"});hideStrategy=a("display",{alias:"pMotionHideStrategy"});enterFromClass=a(void 0,{alias:"pMotionEnterFromClass"});enterToClass=a(void 0,{alias:"pMotionEnterToClass"});enterActiveClass=a(void 0,{alias:"pMotionEnterActiveClass"});leaveFromClass=a(void 0,{alias:"pMotionLeaveFromClass"});leaveToClass=a(void 0,{alias:"pMotionLeaveToClass"});leaveActiveClass=a(void 0,{alias:"pMotionLeaveActiveClass"});options=a({},{alias:"pMotionOptions"});onBeforeEnter=u({alias:"pMotionOnBeforeEnter"});onEnter=u({alias:"pMotionOnEnter"});onAfterEnter=u({alias:"pMotionOnAfterEnter"});onEnterCancelled=u({alias:"pMotionOnEnterCancelled"});onBeforeLeave=u({alias:"pMotionOnBeforeLeave"});onLeave=u({alias:"pMotionOnLeave"});onAfterLeave=u({alias:"pMotionOnAfterLeave"});onLeaveCancelled=u({alias:"pMotionOnLeaveCancelled"});motionOptions=_(()=>{let e=this.options()??{};return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),H(()=>{this.motion||(this.motion=he(this.$el,this.motionOptions()))}),de(()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),n=this.hideStrategy();this.visible()?(ee(this.$el,n),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount?F(this.$el,n):(this.applyMotionDuration("leave"),this.motion?.leave()?.then(()=>{this.$el&&!this.cancelled&&!this.visible()&&F(this.$el,n)})),this.isInitialMount=!1})}applyMotionDuration(e){let n=se(this.motionOptions),o=J(n.duration,e);if(o==null||!this.$el)return;let l=this.$el,r=`${o}ms`;n.type==="transition"?l.style.transitionDuration=r:l.style.animationDuration=r}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,ee(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","pMotion",""]],inputs:{visible:[1,"pMotion","visible"],name:[1,"pMotionName","name"],type:[1,"pMotionType","type"],safe:[1,"pMotionSafe","safe"],disabled:[1,"pMotionDisabled","disabled"],appear:[1,"pMotionAppear","appear"],enter:[1,"pMotionEnter","enter"],leave:[1,"pMotionLeave","leave"],duration:[1,"pMotionDuration","duration"],hideStrategy:[1,"pMotionHideStrategy","hideStrategy"],enterFromClass:[1,"pMotionEnterFromClass","enterFromClass"],enterToClass:[1,"pMotionEnterToClass","enterToClass"],enterActiveClass:[1,"pMotionEnterActiveClass","enterActiveClass"],leaveFromClass:[1,"pMotionLeaveFromClass","leaveFromClass"],leaveToClass:[1,"pMotionLeaveToClass","leaveToClass"],leaveActiveClass:[1,"pMotionLeaveActiveClass","leaveActiveClass"],options:[1,"pMotionOptions","options"]},outputs:{onBeforeEnter:"pMotionOnBeforeEnter",onEnter:"pMotionOnEnter",onAfterEnter:"pMotionOnAfterEnter",onEnterCancelled:"pMotionOnEnterCancelled",onBeforeLeave:"pMotionOnBeforeLeave",onLeave:"pMotionOnLeave",onAfterLeave:"pMotionOnAfterLeave",onLeaveCancelled:"pMotionOnLeaveCancelled"},features:[I([ve,{provide:Ue,useExisting:t},{provide:w,useExisting:t}]),C]})}return t})(),Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=j({type:t});static \u0275inj=$({imports:[yt]})}return t})();var Qe=`
|
|
6
|
-
.p-togglebutton {
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
user-select: none;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
position: relative;
|
|
12
|
-
color: dt('togglebutton.color');
|
|
13
|
-
background: dt('togglebutton.background');
|
|
14
|
-
border: 1px solid dt('togglebutton.border.color');
|
|
15
|
-
padding: dt('togglebutton.padding');
|
|
16
|
-
font-size: 1rem;
|
|
17
|
-
font-family: inherit;
|
|
18
|
-
font-feature-settings: inherit;
|
|
19
|
-
transition:
|
|
20
|
-
background dt('togglebutton.transition.duration'),
|
|
21
|
-
color dt('togglebutton.transition.duration'),
|
|
22
|
-
border-color dt('togglebutton.transition.duration'),
|
|
23
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
24
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
25
|
-
border-radius: dt('togglebutton.border.radius');
|
|
26
|
-
outline-color: transparent;
|
|
27
|
-
font-weight: dt('togglebutton.font.weight');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-togglebutton-content {
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
gap: dt('togglebutton.gap');
|
|
36
|
-
padding: dt('togglebutton.content.padding');
|
|
37
|
-
background: transparent;
|
|
38
|
-
border-radius: dt('togglebutton.content.border.radius');
|
|
39
|
-
transition:
|
|
40
|
-
background dt('togglebutton.transition.duration'),
|
|
41
|
-
color dt('togglebutton.transition.duration'),
|
|
42
|
-
border-color dt('togglebutton.transition.duration'),
|
|
43
|
-
outline-color dt('togglebutton.transition.duration'),
|
|
44
|
-
box-shadow dt('togglebutton.transition.duration');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
|
|
48
|
-
background: dt('togglebutton.hover.background');
|
|
49
|
-
color: dt('togglebutton.hover.color');
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.p-togglebutton.p-togglebutton-checked {
|
|
53
|
-
background: dt('togglebutton.checked.background');
|
|
54
|
-
border-color: dt('togglebutton.checked.border.color');
|
|
55
|
-
color: dt('togglebutton.checked.color');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.p-togglebutton-checked .p-togglebutton-content {
|
|
59
|
-
background: dt('togglebutton.content.checked.background');
|
|
60
|
-
box-shadow: dt('togglebutton.content.checked.shadow');
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.p-togglebutton:focus-visible {
|
|
64
|
-
box-shadow: dt('togglebutton.focus.ring.shadow');
|
|
65
|
-
outline: dt('togglebutton.focus.ring.width') dt('togglebutton.focus.ring.style') dt('togglebutton.focus.ring.color');
|
|
66
|
-
outline-offset: dt('togglebutton.focus.ring.offset');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-togglebutton.p-invalid {
|
|
70
|
-
border-color: dt('togglebutton.invalid.border.color');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.p-togglebutton:disabled {
|
|
74
|
-
opacity: 1;
|
|
75
|
-
cursor: default;
|
|
76
|
-
background: dt('togglebutton.disabled.background');
|
|
77
|
-
border-color: dt('togglebutton.disabled.border.color');
|
|
78
|
-
color: dt('togglebutton.disabled.color');
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.p-togglebutton-label,
|
|
82
|
-
.p-togglebutton-icon {
|
|
83
|
-
position: relative;
|
|
84
|
-
transition: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-togglebutton-icon {
|
|
88
|
-
color: dt('togglebutton.icon.color');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
|
|
92
|
-
color: dt('togglebutton.icon.hover.color');
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
|
|
96
|
-
color: dt('togglebutton.icon.checked.color');
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.p-togglebutton:disabled .p-togglebutton-icon {
|
|
100
|
-
color: dt('togglebutton.icon.disabled.color');
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.p-togglebutton-sm {
|
|
104
|
-
padding: dt('togglebutton.sm.padding');
|
|
105
|
-
font-size: dt('togglebutton.sm.font.size');
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.p-togglebutton-sm .p-togglebutton-content {
|
|
109
|
-
padding: dt('togglebutton.content.sm.padding');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.p-togglebutton-lg {
|
|
113
|
-
padding: dt('togglebutton.lg.padding');
|
|
114
|
-
font-size: dt('togglebutton.lg.font.size');
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.p-togglebutton-lg .p-togglebutton-content {
|
|
118
|
-
padding: dt('togglebutton.content.lg.padding');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.p-togglebutton-fluid {
|
|
122
|
-
width: 100%;
|
|
123
|
-
}
|
|
124
|
-
`;var We=(()=>{class t extends Ve{required=a(void 0,{transform:L});invalid=a(void 0,{transform:L});disabled=a(void 0,{transform:L});name=a();_disabled=P(!1);$disabled=_(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,n){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=b(t)))(o||t)}})();static \u0275dir=V({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[C]})}return t})();var Mt=["icon"],Et=["content"],Ze=t=>({$implicit:t});function Lt(t,i){t&1&&le(0)}function Dt(t,i){if(t&1&&Te(0,"span",0),t&2){let e=k(3);E(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),N("pBind",e.ptm("icon"))}}function Tt(t,i){if(t&1&&T(0,Dt,1,3,"span",2),t&2){let e=k(2);A(e.onIcon||e.offIcon?0:-1)}}function At(t,i){t&1&&le(0)}function Nt(t,i){if(t&1&&ne(0,At,1,0,"ng-container",1),t&2){let e=k(2);N("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",re(2,Ze,e.checked))}}function Bt(t,i){if(t&1&&(T(0,Tt,1,1)(1,Nt,1,4,"ng-container"),ie(2,"span",0),Ie(3),ae()),t&2){let e=k();A(e.iconTemplate?1:0),O(2),E(e.cx("label")),N("pBind",e.ptm("label")),O(),_e(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var Ot=`
|
|
125
|
-
${Qe}
|
|
126
|
-
|
|
127
|
-
/* For PrimeNG (iconPos) */
|
|
128
|
-
.p-togglebutton-icon-right {
|
|
129
|
-
order: 1;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.p-togglebutton.ng-invalid.ng-dirty {
|
|
133
|
-
border-color: dt('togglebutton.invalid.border.color');
|
|
134
|
-
}
|
|
135
|
-
`,kt={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},Ke=(()=>{class t extends K{name="togglebutton";style=Ot;classes=kt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=b(t)))(o||t)}})();static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();var Ye=new B("TOGGLEBUTTON_INSTANCE"),It={provide:je,useExisting:Ee(()=>Je),multi:!0},Je=(()=>{class t extends We{componentName="ToggleButton";$pcToggleButton=m(Ye,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=m(y,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=a(void 0,{transform:L});onChange=new De;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=m(Ke);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,n){this.checked=e,n(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.active,invalid:this.invalid(),[this.size]:this.size})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=b(t)))(o||t)}})();static \u0275cmp=D({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(n,o,l){if(n&1&&ke(l,Mt,4)(l,Et,4)(l,$e,4),n&2){let r;z(r=q())&&(o.iconTemplate=r.first),z(r=q())&&(o.contentTemplate=r.first),z(r=q())&&(o.templates=r)}},hostVars:11,hostBindings:function(n,o){n&1&&Ne("keydown",function(r){return o.onKeyDown(r)})("click",function(r){return o.toggle(r)}),n&2&&(oe("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-pressed",o.checked?"true":"false")("role","button")("tabindex",o.tabindex!==void 0?o.tabindex:o.$disabled()?-1:0)("data-pc-name","togglebutton")("data-p-checked",o.active)("data-p-disabled",o.$disabled())("data-p",o.dataP),E(o.cn(o.cx("root"),o.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",we],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",L],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[I([It,Ke,{provide:Ye,useExisting:t},{provide:w,useExisting:t}]),R([He,y]),C],decls:3,vars:9,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(n,o){n&1&&(ie(0,"span",0),ne(1,Lt,1,0,"ng-container",1),T(2,Bt,4,5),ae()),n&2&&(E(o.cx("content")),N("pBind",o.ptm("content")),oe("data-p",o.dataP),O(),N("ngTemplateOutlet",o.contentTemplate||o._contentTemplate)("ngTemplateOutletContext",re(7,Ze,o.checked)),O(),A(o.contentTemplate?-1:2))},dependencies:[G,Se,W,Y,y],encapsulation:2,changeDetection:0})}return t})(),Tn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=j({type:t});static \u0275inj=$({imports:[Je,W,W]})}return t})();export{wt as a,yt as b,Kt as c,Yt as d,We as e,Je as f,Tn as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as D,$a as d,Ec as M,Fc as Z,Gc as Y,I as b,Ic as F,Jc as T,L as c,La as j,M as k,O as g,Oa as z,P as f,Q as o,Qa as L,Sa as C,Ta as u,Ua as y,Va as V,Vb as W,Xa as G,_ as E,_a as H,aa as x,d as N,ka as p,na as m,ta as $,ua as I,wa as U}from"./chunk-HAWX5WNM.js";var K=null;function w(){return K}function ae(n){K??=n}var R=class{},A=(()=>{class n{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:()=>o(X),providedIn:"platform"})}return n})();var X=(()=>{class n extends A{_location;_history;_doc=o(D);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w().getBaseHref(this._doc)}onPopState(e){let t=w().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){let t=w().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,t,i){this._history.pushState(e,t,i)}replaceState(e,t,i){this._history.replaceState(e,t,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:()=>new n,providedIn:"platform"})}return n})();function Q(n,r){return n?r?n.endsWith("/")?r.startsWith("/")?n+r.slice(1):n+r:r.startsWith("/")?n+r:`${n}/${r}`:n:r}function q(n){let r=n.search(/#|\?|$/);return n[r-1]==="/"?n.slice(0,r-1)+n.slice(r):n}function l(n){return n&&n[0]!=="?"?`?${n}`:n}var S=(()=>{class n{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:()=>o(ce),providedIn:"root"})}return n})(),ue=new g(""),ce=(()=>{class n extends S{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??o(D).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Q(this._baseHref,e)}path(e=!1){let t=this._platformLocation.pathname+l(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${t}${i}`:t}pushState(e,t,i,s){let a=this.prepareExternalUrl(i+l(s));this._platformLocation.pushState(e,t,a)}replaceState(e,t,i,s){let a=this.prepareExternalUrl(i+l(s));this._platformLocation.replaceState(e,t,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(t){return new(t||n)(f(A),f(ue,8))};static \u0275prov=c({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ee=(()=>{class n{_subject=new N;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let t=this._locationStrategy.getBaseHref();this._basePath=fe(q(J(t))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+l(t))}normalize(e){return n.stripTrailingSlash(le(this._basePath,J(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",i=null){this._locationStrategy.pushState(i,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l(t)),i)}replaceState(e,t="",i=null){this._locationStrategy.replaceState(i,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l(t)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}),()=>{let t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(i=>i(e,t))}subscribe(e,t,i){return this._subject.subscribe({next:e,error:t??void 0,complete:i??void 0})}static normalizeQueryParams=l;static joinWithSlash=Q;static stripTrailingSlash=q;static \u0275fac=function(t){return new(t||n)(f(S))};static \u0275prov=c({token:n,factory:()=>de(),providedIn:"root"})}return n})();function de(){return new ee(f(S))}function le(n,r){if(!n||!r.startsWith(n))return r;let e=r.substring(n.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function J(n){return n.replace(/\/index.html$/,"")}function fe(n){if(new RegExp("^(https?:)?//").test(n)){let[,e]=n.split(/\/\/[^\/]+/);return e}return n}var P=/\s+/,te=[],ge=(()=>{class n{_ngEl;_renderer;initialClasses=te;rawClass;stateMap=new Map;constructor(e,t){this._ngEl=e,this._renderer=t}set klass(e){this.initialClasses=e!=null?e.trim().split(P):te}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(P):e}ngDoCheck(){for(let t of this.initialClasses)this._updateState(t,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let t of e)this._updateState(t,!0);else if(e!=null)for(let t of Object.keys(e))this._updateState(t,!!e[t]);this._applyStateDiff()}_updateState(e,t){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==t&&(i.changed=!0,i.enabled=t),i.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let t=e[0],i=e[1];i.changed?(this._toggleClass(t,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),i.touched=!1}}_toggleClass(e,t){e=e.trim(),e.length>0&&e.split(P).forEach(i=>{t?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(t){return new(t||n)(u(m),u(C))};static \u0275dir=d({type:n,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return n})(),De=(()=>{class n{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletEnvironmentInjector;ngComponentOutletContent;ngComponentOutletNgModule;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(e){this._viewContainerRef=e}_needToReCreateNgModuleInstance(e){return e.ngComponentOutletNgModule!==void 0}_needToReCreateComponentInstance(e){return e.ngComponentOutlet!==void 0||e.ngComponentOutletContent!==void 0||e.ngComponentOutletInjector!==void 0||e.ngComponentOutletEnvironmentInjector!==void 0||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=G(this.ngComponentOutletNgModule,pe(t)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:t,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent,environmentInjector:this.ngComponentOutletEnvironmentInjector})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(let[t,i]of this._inputsUsed)i?(e.setInput(t,this.ngComponentOutletInputs[t]),this._inputsUsed.set(t,!1)):(e.setInput(t,void 0),this._inputsUsed.delete(t))}static \u0275fac=function(t){return new(t||n)(u(y))};static \u0275dir=d({type:n,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletEnvironmentInjector:"ngComponentOutletEnvironmentInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule"},exportAs:["ngComponentOutlet"],features:[p]})}return n})();function pe(n){return n.get(V).injector}var _=class{$implicit;ngForOf;index;count;constructor(r,e,t,i){this.$implicit=r,this.ngForOf=e,this.index=t,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},re=(()=>{class n{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,t,i){this._viewContainer=e,this._template=t,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let t=this._viewContainer;e.forEachOperation((i,s,a)=>{if(i.previousIndex==null)t.createEmbeddedView(this._template,new _(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)t.remove(s===null?void 0:s);else if(s!==null){let h=t.get(s);t.move(h,a),ne(h,i)}});for(let i=0,s=t.length;i<s;i++){let h=t.get(i).context;h.index=i,h.count=s,h.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{let s=t.get(i.currentIndex);ne(s,i)})}static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||n)(u(y),u(L),u(Z))};static \u0275dir=d({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return n})();function ne(n,r){n.context.$implicit=r.item}var me=(()=>{class n{_viewContainer;_context=new v;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,t){this._viewContainer=e,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ie(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ie(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||n)(u(y),u(L))};static \u0275dir=d({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return n})(),v=class{$implicit=null;ngIf=null};function ie(n,r){if(n&&!n.createEmbeddedView)throw new b(2020,!1)}var Ce=(()=>{class n{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,t,i){this._ngEl=e,this._differs=t,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){let[i,s]=e.split("."),a=i.indexOf("-")===-1?void 0:j.DashCase;t!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${t}${s}`:t,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(e){e.forEachRemovedItem(t=>this._setStyle(t.key,null)),e.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),e.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}static \u0275fac=function(t){return new(t||n)(u(m),u(Y),u(C))};static \u0275dir=d({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return n})(),ye=(()=>{class n{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=o(E);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let t=this._viewContainerRef;if(this._viewRef&&t.remove(t.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=t.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,t,i):!1,get:(e,t,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,i)}})}static \u0275fac=function(t){return new(t||n)(u(y))};static \u0275dir=d({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[p]})}return n})();var Fe=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=k({})}return n})();function Ee(n,r){r=encodeURIComponent(r);for(let e of n.split(";")){let t=e.indexOf("="),[i,s]=t==-1?[e,""]:[e.slice(0,t),e.slice(t+1)];if(i.trim()===r)return decodeURIComponent(s)}return null}var B=class{};var we="browser",Ae="server";function Mn(n){return n===we}function Tn(n){return n===Ae}var oe=n=>n.src,Se=new g("",{factory:()=>oe});var se=/^((\s*\d+w\s*(,|$)){1,})$/;var _e=[1,2],ve=640;var be=1920,Ie=1080;var Rn=(()=>{class n{imageLoader=o(Se);config=Le(o(I));renderer=o(C);imgElement=o(m).nativeElement;injector=o(E);destroyRef=o(x);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){this.destroyRef.onDestroy(()=>{this.renderer.removeAttribute(this.imgElement,"loading")})}ngOnInit(){z("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");let e=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&se.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(e){if(e.ngSrc&&!e.ngSrc.isFirstChange()){let t=this._renderedSrc;this.updateSrcAndSrcset(!0)}}getAspectRatio(){return this.width&&this.height&&this.height!==0?this.width/this.height:null}callImageLoader(e){let t=e;this.loaderParams&&(t.loaderParams=this.loaderParams);let i=this.getAspectRatio();return i!==null&&t.width&&(t.height=Math.round(t.width/i)),this.imageLoader(t)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){let e=se.test(this.ngSrcset);return this.ngSrcset.split(",").filter(i=>i!=="").map(i=>{i=i.trim();let s=e?parseFloat(i):parseFloat(i)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${i}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:e}=this.config,t=e;return this.sizes?.trim()==="100vw"&&(t=e.filter(s=>s>=ve)),t.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);let t=this.getRewrittenSrc();this.setHostAttribute("src",t);let i;return this.ngSrcset?i=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(i=this.getAutomaticSrcset()),i&&this.setHostAttribute("srcset",i),i}getFixedSrcset(){return _e.map(t=>`${this.callImageLoader({src:this.ngSrc,width:this.width*t})} ${t}x`).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>be||this.height>Ie),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==oe&&!e}generatePlaceholder(e){let{placeholderResolution:t}=this.config;return e===!0?`url(${this.callImageLoader({src:this.ngSrc,width:t,isPlaceholder:!0})})`:typeof e=="string"?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")?!0:!!e.blur}removePlaceholderOnLoad(e){let t=()=>{let a=this.injector.get(M);i(),s(),this.placeholder=!1,a.markForCheck()},i=this.renderer.listen(e,"load",t),s=this.renderer.listen(e,"error",t);this.destroyRef.onDestroy(()=>{i(),s()}),Me(e,t)}setHostAttribute(e,t){this.renderer.setAttribute(this.imgElement,e,t)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=d({type:n,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(t,i){t&2&&W("position",i.fill?"absolute":null)("width",i.fill?"100%":null)("height",i.fill?"100%":null)("inset",i.fill?"0":null)("background-size",i.placeholder?"cover":null)("background-position",i.placeholder?"50% 50%":null)("background-repeat",i.placeholder?"no-repeat":null)("background-image",i.placeholder?i.generatePlaceholder(i.placeholder):null)("filter",i.placeholder&&i.shouldBlurPlaceholder(i.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Te],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",T],height:[2,"height","height",T],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",F],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",F],fill:[2,"fill","fill",F],placeholder:[2,"placeholder","placeholder",Re],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[p]})}return n})();function Le(n){let r={};return n.breakpoints&&(r.breakpoints=n.breakpoints.sort((e,t)=>e-t)),Object.assign({},$,n,r)}function Me(n,r){n.complete&&n.naturalWidth&&r()}function Te(n){return typeof n=="string"?n:U(n)}function Re(n){return typeof n=="string"&&n!=="true"&&n!=="false"&&n!==""?n:F(n)}export{w as a,ae as b,R as c,A as d,S as e,ee as f,ge as g,De as h,re as i,me as j,Ce as k,ye as l,Fe as m,Ee as n,B as o,we as p,Mn as q,Tn as r,Rn as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as E,L as g,Q as f,aa as y,ha as c,ja as x,uc as _}from"./chunk-HAWX5WNM.js";var L="https://bb9dce0fd2cb4ab27ac0475aa394aeb4@o4511475590037504.ingest.de.sentry.io/4511475725959248",u="phc_vMX3PcNeDsacWNg2hYEbKVXDijSWcjKFzabCkzU7RNEr",b="https://eu.i.posthog.com";var D="<HOME>",O=["server_name","user"],A=[/[A-Za-z]:[\\/]Users[\\/][^\\/\s:*?"<>|]+/g,/\/(?:home|Users)\/[^/\s:]+/g,/\/root(?=\/|\b)/g];function v(t){let o=t;for(let e of A)o=o.replace(e,D);return o}function T(t){let o=m(t);if(o!==null&&typeof o=="object"&&!Array.isArray(o)){let e=o;for(let r of O)r in e&&delete e[r]}return o}function m(t){if(typeof t=="string")return v(t);if(Array.isArray(t))return t.map(o=>m(o));if(t!==null&&typeof t=="object"){let o={};for(let[e,r]of Object.entries(t))o[e]=m(r);return o}return t}var k=!1,i=null;async function K(t){if(k||u===""||!t.consentEnabled||t.distinctId===null)return;let{default:o}=await import("./chunk-P3SNMV4X.js");o.init(u,{api_host:b,autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:{distinctID:t.distinctId},before_send:e=>e===null?null:T(e)}),i=o,k=!0}function F(t,o={}){i!==null&&i.capture(t,o)}function V(t){i!==null&&i.register(t)}var h=[{id:"matrix",htmlClass:"app-matrix",forcesDark:!0,favicon:"favicon-matrix.svg",fontHref:"https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",fontLinkId:"sm-matrix-font",label:"Matrix",description:"Cyber-green retint on the dark palette."}];function l(t){return t?h.find(o=>o.id===t)??null:null}var S="skill-map.ui.theme",p="skill-map.ui.extra-theme",M="app-dark",P="dark",I="(prefers-color-scheme: dark)",R="favicon.svg",U='link[rel="icon"][type="image/svg+xml"]',W=(()=>{class t{doc=f(E);destroyRef=f(y);mode=c(this.readInitialMode());extraTheme=c(this.readInitialExtra());systemPrefersDark=c(this.readSystemPref());resolved=_(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),x(()=>{let e=this.extraTheme(),r=l(e),a=this.resolved()==="dark"||r?.forcesDark===!0,d=this.doc.documentElement;d.classList.toggle(M,a),d.classList.toggle(P,a);for(let n of h)d.classList.toggle(n.htmlClass,r?.id===n.id);this.applyFavicon(r?.favicon??R),r&&this.ensureExtraThemeFont(r);try{let n=this.doc.defaultView?.localStorage;n?.setItem(S,this.mode()),r===null?n?.removeItem(p):n?.setItem(p,r.id)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(l(e)?.id??null)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(S);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(p);return l(e)?.id??null}catch{return null}}readSystemPref(){try{return this.doc.defaultView?.matchMedia(I).matches??!1}catch{return!1}}ensureExtraThemeFont(e){if(!e.fontHref||!e.fontLinkId||this.doc.getElementById(e.fontLinkId))return;let r=this.doc.head;if(!r)return;let s=this.doc.createElement("link");s.id=e.fontLinkId,s.rel="stylesheet",s.href=e.fontHref,r.appendChild(s)}applyFavicon(e){let r=this.doc.querySelector(U);r&&r.getAttribute("href")!==e&&r.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let r=e.matchMedia(I),s=a=>{this.systemPrefersDark.set(a.matches)};r.addEventListener("change",s),this.destroyRef.onDestroy(()=>r.removeEventListener("change",s))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{L as a,T as b,K as c,F as d,V as e,h as f,W as g};
|