@skill-map/cli 0.38.0 → 0.40.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/references/tour-authoring.md +0 -4
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +279 -26
- package/dist/cli.js +1779 -1512
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -14
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +57 -47
- package/dist/kernel/index.js +30 -14
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/{chunk-AAR3Y55J.js → chunk-2W6BCESO.js} +30 -29
- package/dist/ui/{chunk-NTM2J2WO.js → chunk-3FPS5OIY.js} +1 -1
- package/dist/ui/chunk-4KQGLZV2.js +123 -0
- package/dist/ui/chunk-ASCTZSBZ.js +107 -0
- package/dist/ui/chunk-GSTYLDCL.js +135 -0
- package/dist/ui/chunk-MHEKCBIR.js +317 -0
- package/dist/ui/chunk-PFA2CVPN.js +61 -0
- package/dist/ui/chunk-PURF7B6R.js +411 -0
- package/dist/ui/chunk-UFCOGNZX.js +1 -0
- package/dist/ui/chunk-WQ42JTZB.js +90 -0
- package/dist/ui/chunk-XEWWXGNE.js +1 -0
- package/dist/ui/chunk-YXFKPYK3.js +965 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/main-WLCA4YLM.js +3 -0
- package/package.json +2 -2
- package/dist/ui/chunk-47MG5XH2.js +0 -317
- package/dist/ui/chunk-4CDTW64C.js +0 -500
- package/dist/ui/chunk-4XEJUDPL.js +0 -123
- package/dist/ui/chunk-5AZ5S6JB.js +0 -1
- package/dist/ui/chunk-G5CKBDBB.js +0 -107
- package/dist/ui/chunk-KKOZFBXQ.js +0 -135
- package/dist/ui/chunk-O5N7UH37.js +0 -965
- package/dist/ui/chunk-QZM2G474.js +0 -61
- package/dist/ui/chunk-Z4LANJFK.js +0 -1
- package/dist/ui/main-EO5QNLE4.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as st,c as lt,d as rt}from"./chunk-
|
|
1
|
+
import{a as st,c as lt,d as rt}from"./chunk-GSTYLDCL.js";import{$ as me,$a as S,$c as Me,Aa as c,Dc as nt,Fc as ot,Gb as Ce,Gc as Ie,Hc as V,I as N,Ib as be,Ic as K,J as ne,Ja as L,Jc as De,Kb as qe,L as de,Ma as x,Mc as ze,N as f,Na as T,Nc as ee,Oc as at,Pb as D,Pc as Oe,Qc as Ve,S as g,Sa as s,Sb as q,T as h,Ta as u,Tc as k,U as F,Ua as C,Va as E,Wa as Z,Wb as G,X as Re,Xa as $,Ya as Q,Yc as we,Za as X,_ as y,_a as Y,bc as d,ca as _e,cb as w,cc as W,db as fe,dd as te,eb as I,fa as v,gb as l,hb as ge,hc as ye,ia as je,ib as ae,ja as Pe,jb as he,kb as Ze,kc as xe,lb as m,lc as Ge,mb as _,mc as Te,na as p,nc as ve,oc as le,qb as $e,ra as ke,rb as Qe,tb as se,ub as b,va as O,vb as Xe,wa as oe,wb as Ye,wc as We,xa as Ne,xc as M,ya as ue,yc as U,za as z,zc as it}from"./chunk-YXFKPYK3.js";import{B as tt,D as Ee,P as J,a as Je,d as Le,h as Se,l as Be,m as Ae,p as Ue,r as Ke,u as re,v as Fe,y as et}from"./chunk-3SI3TVER.js";import{a as P}from"./chunk-VB56BUGO.js";var xt=["data-p-icon","window-maximize"],ct=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[z],attrs:xt,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,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var Tt=["data-p-icon","window-minimize"],pt=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[z],attrs:Tt,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,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var dt=(()=>{class t extends ee{pFocusTrapDisabled=!1;platformId=f(je);document=f(Re);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){le(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&le(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=i=>Ke("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:i?.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:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?et(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Fe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?tt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Fe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",d]},features:[z]})}return t})();var mt=`
|
|
2
2
|
.p-dialog {
|
|
3
3
|
max-height: 90%;
|
|
4
4
|
transform: scale(1);
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import{b as Lt,c as S,d as Vt,e as Te}from"./chunk-UFCOGNZX.js";import{a as yt,b as Ct,c as Se,d as ke,e as Tt}from"./chunk-3FPS5OIY.js";import{a as Ot,b as Dt,c as jt,d as Ft,e as At,f as Nt,g as ge,h as pe}from"./chunk-PURF7B6R.js";import{a as Me,b as Ie}from"./chunk-WQ42JTZB.js";import{e as Et,f as Mt,g as It}from"./chunk-GSTYLDCL.js";import{$a as lt,$c as Pe,Aa as ie,Gb as re,Gc as Ce,H as Ye,Hc as we,I as be,Ib as pt,J as Je,Ja as v,Jc as ft,L as Ze,Ma as _,Mc as bt,N as P,Na as f,Oa as st,Pa as ee,Pb as mt,Qa as T,R as et,Ra as O,S as k,Sa as m,Sb as y,Sc as vt,T as E,Ta as s,Tc as _e,Ua as a,Uc as xt,Va as I,Vb as ye,Wa as b,Wb as V,Xa as x,Y as tt,Ya as oe,_ as nt,ad as se,bc as Ke,ca as p,cb as j,cc as ut,da as L,db as q,eb as C,fa as ze,gb as d,gd as W,hd as $,ja as it,jb as dt,ka as Z,kb as ct,lb as ve,mb as xe,mc as ht,md as wt,na as o,nc as _t,nd as Ee,pd as le,qd as de,rb as Be,rd as Pt,sb as K,sd as St,tb as gt,td as kt,ub as he,ud as ce,va as F,vb as l,wa as ot,wb as u,xb as h,ya as rt,yb as D,za as at,zc as ae}from"./chunk-YXFKPYK3.js";import"./chunk-3SI3TVER.js";import{a as U,b as J}from"./chunk-VB56BUGO.js";function cn(t,n){if(t&1&&(b(0,"p",6),l(1),x()),t&2){let e=d();o(),D(" ",e.texts.aboutErrorPrefix," ",e.loadError()," ")}}var Oe=class t{dataSource=P(W);updateCheck=P(Lt);theme=P(Te);visible=V.required();texts=S;health=p(null);loadError=p(null);markSrc=y(()=>this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");cliVersion=y(()=>this.updateCheck.current()??this.health()?.implVersion??this.texts.aboutUnknown);specVersion=y(()=>this.health()?.specVersion??this.texts.aboutLoading);schemaVersion=y(()=>this.health()?.schemaVersion??this.texts.aboutLoading);cwd=y(()=>this.health()?.cwd??this.texts.aboutLoading);dbDisplay=y(()=>{let n=this.health();return n?this.texts.aboutDbValue(n.db,gn(n.dbPath,n.cwd)):this.texts.aboutLoading});constructor(){L(()=>{this.visible()&&this.health()===null&&this.load()})}async load(){this.loadError.set(null);try{let n=await this.dataSource.health();this.health.set(n)}catch(n){let e=n instanceof $||n instanceof Error?n.message:String(n);this.loadError.set(e)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=F({type:t,selectors:[["sm-settings-about"]],inputs:{visible:[1,"visible"]},decls:57,vars:25,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"],["target","_blank","rel","noopener noreferrer","data-testid","settings-about-star",1,"settings-about__star",3,"href"],["aria-hidden","true",1,"fa-solid","fa-star","settings-about__star-icon"],[1,"settings-about__star-text"],[1,"settings-about__star-heading"],[1,"settings-about__star-body"],[1,"settings-about__star-cta"],["aria-hidden","true",1,"fa-solid","fa-star"],[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-cwd",1,"settings-about__value"],["data-testid","settings-about-db",1,"settings-about__value"]],template:function(e,i){e&1&&(b(0,"section",0)(1,"header",1),oe(2,"img",2),b(3,"div",3)(4,"h2",4),l(5),x(),b(6,"p",5),l(7),x()()(),_(8,cn,2,2,"p",6),b(9,"a",7),oe(10,"i",8),b(11,"span",9)(12,"span",10),l(13),x(),b(14,"span",11),l(15),x()(),b(16,"span",12),oe(17,"i",13),l(18),x()(),b(19,"dl",14)(20,"div",15)(21,"dt",16),l(22),x(),b(23,"dd",17)(24,"a",18),l(25),x()()(),b(26,"div",15)(27,"dt",16),l(28),x(),b(29,"dd",17)(30,"a",19),l(31),x()()(),b(32,"div",15)(33,"dt",16),l(34),x(),b(35,"dd",20),l(36),x()(),b(37,"div",15)(38,"dt",16),l(39),x(),b(40,"dd",21),l(41),x()(),b(42,"div",15)(43,"dt",16),l(44),x(),b(45,"dd",22),l(46),x()(),b(47,"div",15)(48,"dt",16),l(49),x(),b(50,"dd",23),l(51),x()(),b(52,"div",15)(53,"dt",16),l(54),x(),b(55,"dd",24),l(56),x()()()()),e&2&&(o(2),q("src",i.markSrc(),Z),o(3),h(" ",i.texts.aboutHeading," "),o(2),u(i.texts.aboutIntro),o(),f(i.loadError()?8:-1),o(),q("href",i.texts.aboutGithubUrl,Z),v("aria-label",i.texts.aboutStarA11y),o(4),u(i.texts.aboutStarHeading),o(2),u(i.texts.aboutStarBody),o(3),h(" ",i.texts.aboutStarCta," "),o(4),u(i.texts.aboutWebsiteLabel),o(2),q("href",i.texts.aboutWebsiteUrl,Z),o(),u(i.texts.aboutWebsiteUrl),o(3),u(i.texts.aboutGithubLabel),o(2),q("href",i.texts.aboutGithubUrl,Z),o(),u(i.texts.aboutGithubUrl),o(3),u(i.texts.aboutCliLabel),o(2),h(" ",i.cliVersion()," "),o(3),u(i.texts.aboutSpecLabel),o(2),h(" ",i.specVersion()," "),o(3),u(i.texts.aboutSchemaLabel),o(2),h(" ",i.schemaVersion()," "),o(3),u(i.texts.aboutFolderLabel),o(2),h(" ",i.cwd()," "),o(3),u(i.texts.aboutDbLabel),o(2),h(" ",i.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);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}.settings-about__star[_ngcontent-%COMP%]{--star-accent: #f4b400;display:flex;align-items:center;gap:.875rem;padding:.875rem 1rem;border-radius:var(--p-border-radius);border:1px solid color-mix(in oklab,var(--star-accent) 45%,transparent);background:color-mix(in oklab,var(--star-accent) 12%,transparent);color:var(--p-text-color);text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}.settings-about__star[_ngcontent-%COMP%]:hover, .settings-about__star[_ngcontent-%COMP%]:focus-visible{background:color-mix(in oklab,var(--star-accent) 22%,transparent);border-color:color-mix(in oklab,var(--star-accent) 70%,transparent);transform:translateY(-1px);outline:none}.app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--star-accent) 18%,transparent);border-color:color-mix(in oklab,var(--star-accent) 55%,transparent)}.app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:hover, .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:hover, .app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:focus-visible, .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:focus-visible{background:color-mix(in oklab,var(--star-accent) 30%,transparent);border-color:var(--star-accent)}.settings-about__star-icon[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--star-accent);flex-shrink:0}.settings-about__star-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-about__star-heading[_ngcontent-%COMP%]{font-weight:600;font-size:.95rem}.settings-about__star-body[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--p-text-muted-color);line-height:1.4}.settings-about__star-cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border-radius:var(--sm-radius-pill);background:var(--star-accent);color:#1a1a1a;font-weight:600;font-size:.8125rem;white-space:nowrap;flex-shrink:0}.settings-about__star[_ngcontent-%COMP%]:hover .settings-about__star-cta[_ngcontent-%COMP%], .settings-about__star[_ngcontent-%COMP%]:focus-visible .settings-about__star-cta[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--star-accent) 88%,white)}"],changeDetection:0})};function gn(t,n){if(!t||!n)return t;let e=n.replace(/[/\\]+$/,"");return t.startsWith(e)?t.slice(e.length).replace(/^[/\\]+/,""):t}var me=class t{ownerSig=p(null);dirtyCount=y(()=>{let n=this.ownerSig();return n?n.dirtyIds().size:0});register(n){this.ownerSig.set(n)}deregister(n){this.ownerSig()===n&&this.ownerSig.set(null)}async applyChanges(){let n=this.ownerSig();return n?n.applyChanges():{ok:!1}}discardChanges(){this.ownerSig()?.discardChanges()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=be({token:t,factory:t.\u0275fac,providedIn:"root"})};var Rt={schemaVersion:1,entries:[{version:"0.40.0",date:"2026-05-26",kind:"user-facing",highlights:[{body:"**Changelog tab is now bounded.** The Settings \u2192 Changelog tab shows the most recent 10 releases and links out to the full changelog on GitHub for older entries.",packages:["@skill-map/cli"]},{body:"Plugins no longer have a bundle-level switch; each extension toggles on its own. `sm plugins disable <bundle>` cascades across the bundle's extensions (multi-extension bundles need `--yes`). The kind filter narrows extensions inside matched bundles instead of leaking siblings.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"**Cleaner Plugins view.** Settings \u2192 Plugins and `sm plugins show <bundle>` no longer print a per-extension version chip for built-in plugins (they all share the CLI version). External (user-authored) plugins are unchanged and still show per-extension semver.",packages:["@skill-map/cli"]},{body:'`sm scan` summary now splits findings per severity (`N errors \xB7 M warnings \xB7 K info`), colored and collapsed when zero. The graph view gains a third palette to filter cards with errors / warnings; the perf-HUD says "links" instead of "edges".',packages:["@skill-map/cli"]},{body:"**List view** is live. Click **List** in the topbar for a sortable, filterable table of every node (Kind, Name, Tags, Path, Tokens, Stability, Stale, Issues). Click a row to inspect on the graph. Graph card chips now share the same icons as the list.",packages:["@skill-map/cli"]},{body:'Graph cards drop the corner badge for routine warnings; count + tooltip stay on the footer chip. Broken refs now escalate `sm scan` to exit 1 (were exit 0). `sm init` prints the "no provider markers" advisory as a two-line yellow `\u26A0` block.',packages:["@skill-map/cli","@skill-map/spec"]},{body:'`sm check --analyzers <id>` now errors with the valid id list when mistyped, instead of silently saying "No issues." `/invoke` and `@mention` links from any markdown body now contribute to the target\'s `IN`. `sm plugins doctor` summary spells out its bundle + extension split.',packages:["@skill-map/cli","@skill-map/spec"]}]},{version:"0.39.0",date:"2026-05-25",kind:"user-facing",highlights:[{body:"Renamed `core/field-unknown` to `core/annotation-field-unknown` so the sidecar typo-guard rule groups with the other `core/annotation-*` rules. Update references in `settings.json` or `sm check --analyzers <id>` to the new name.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"Renamed 14 built-in extension ids to a `<area>-<detail>` shape (e.g. `core/broken-ref` is now `core/reference-broken`). If you reference these by qualified id in `settings.json` or via `sm check --analyzers <id>`, update to the new names.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"In dev builds the topbar and the `sm serve` banner now show only the `dev` marker instead of pairing it with the published version number.",packages:["@skill-map/cli"]},{body:"When a scan adds or removes nodes, the graph view animates the camera to frame the new layout, refreshes auto positions so nodes never land on top of each other, and keeps your manually-dragged pins where you put them.",packages:["@skill-map/cli"]},{body:"`sm` log lines now lead with a coloured glyph per level (`\u26A0 WARN`, `\u2715 ERROR`, `\u2139 INFO`) so advisories stand out from the rest of the output.",packages:["@skill-map/cli"]},{body:"In Settings, expanding a bundle plugin (claude, antigravity, openai, agent-skills) now shows the correct per-extension state and the toggles persist, the next scan honours them. `sm plugins list` reflects effective state too.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"Plugins always list `core` first across CLI, BFF, and Settings; the project path stays visible in the topbar (truncated with `\u2026` on the LEFT so the project name reaches the eye); and the SPA reconnects on its own when `sm serve` restarts.",packages:["@skill-map/cli"]},{body:'`sm list` IN counts and the inspector\'s "Linked nodes \u2192 INCOMING" now include every `@mention` and `/invoke`, not just markdown links. `sm plugins doctor` no longer raises a spurious `claude/agent` warning on a clean install.',packages:["@skill-map/cli"]}]},{version:"0.38.0",date:"2026-05-24",kind:"user-facing",highlights:[{body:"`sm <verb> --json` now also suppresses info banners on stderr, keeping both streams clean for piping into `jq`.",packages:["@skill-map/cli"]}]},{version:"0.37.0",date:"2026-05-23",kind:"user-facing",highlights:[{body:"`sm scan` now warns once when provider markers on disk drifted since `activeProvider` was set (e.g. you added `.codex/` after picking the `claude` lens). Run `sm config set activeProvider <id>` to switch the lens, or ignore the warn and keep going, it never blocks the scan.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"**Clearer CLI errors.** Errors from `sm serve`, `bump`, `db`, `plugins`, `refresh`, `list`, `watch`, `graph`, `hooks`, and `sidecar` now print a `\u2715` headline plus a dim hint on the next line. Fixes a `sm refresh` persist-failure that rendered `{{glyph}}` literally.",packages:["@skill-map/cli"]},{body:"`sm` now detects when the local `.skill-map/` DB was written by an incompatible CLI version: newer minor or different major refuses to open with a clear hint; older same-major prints a one-shot warning and continues. Defensive parse errors include the same hint.",packages:["@skill-map/cli"]},{body:'`sm init --force` now also resets the DB (was overwriting only the config files). Solves the "Failed to read scan rows" crash on the first auto-scan when re-initialising a project that already had a DB from an older CLI version.',packages:["@skill-map/cli"]},{body:"**Two scan-time bugs fixed.** Resolved `/slash` and `@mention` links now correctly land at confidence `1.0` (were stuck at the emit floor), and the markdown-link extractor no longer flags `[label](path)` shown inside backticks or fenced code blocks as broken references.",packages:["@skill-map/cli"]},{body:"Cross-provider files (e.g. a `.codex/agents/*.toml` while the lens is `claude`) are no longer claimed by the foreign provider. They surface as plain markdown / unclassified instead, matching how the agent itself would see them at runtime.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"Card chips for incoming / outgoing links no longer count self-loops, so a node that links back to itself stops showing inflated 1 in / 1 out. The `core/self-loop` analyzer still surfaces the self-reference as a warning, only the misleading count goes away.",packages:["@skill-map/cli"]},{body:"**CLI + inspector polish.** `sm init` now prompts for the active lens when markers compete; `sm config set activeProvider` rejects unknown ids upfront; error blocks across the CLI gain a `\u2715` glyph + hint; the inspector hides self-loops and paints kinds in their canonical colour.",packages:["@skill-map/cli"]},{body:'**Inspector overhaul.** Links show numeric confidence, a Findings list, per-row issue chips, and per-site "Occurs at" lines. New "External references" section. Self-loops hidden by default. Two new analyzers flag redundant multi-form references and self-loops.',packages:["@skill-map/cli","@skill-map/spec"]},{body:"`sm scan` now warns when two extractors detect overlapping byte ranges. The graph keeps the winner; the issue panel explains which detection lost and why, so a markdown link wrapping an `@`-directive no longer looks like silent disappearing intent.",packages:["@skill-map/cli","@skill-map/spec"]}]},{version:"0.36.0",date:"2026-05-22",kind:"user-facing",highlights:[{body:"**Gemini CLI support retired.** Antigravity CLI projects (Google's May 2026 replacement) scan via the open-standard `.agents/skills/` paths under the existing `agent-skills` lens. Run `sm config set activeProvider antigravity` to flag a project as Antigravity-flavoured.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"**Files whose name shadows a built-in are flagged.** A file like `.claude/commands/help.md` now emits a `warn` (Claude's runtime ignores it for its own `/help`), and incoming `/help` edges resolve to it at confidence `0.1` instead of `1.0`.",packages:["@skill-map/cli","@skill-map/spec"]}]}]};var zt=Rt;var mn=(t,n)=>n.version;function un(t,n){if(t&1&&(b(0,"p",3),l(1),x()),t&2){let e=d();o(),h(" ",e.texts.changelogEmpty," ")}}function hn(t,n){if(t&1&&(b(0,"p",12),l(1),x()),t&2){let e=d(3);o(),h(" ",e.texts.changelogInternalRelease," ")}}function _n(t,n){if(t&1&&(b(0,"li",17),l(1),x()),t&2){let e=n.$implicit;o(),u(e)}}function fn(t,n){if(t&1&&(b(0,"ul",16),T(1,_n,2,1,"li",17,ee),x()),t&2){let e=d().$implicit,i=d(4);v("aria-label",i.texts.changelogAffectedPackages),o(),O(e.packages)}}function bn(t,n){if(t&1&&(b(0,"li",14),oe(1,"div",15),_(2,fn,3,1,"ul",16),x()),t&2){let e=n.$implicit;o(),q("innerHTML",e.bodyHtml,it),o(),f(e.packages.length?2:-1)}}function vn(t,n){if(t&1&&(b(0,"ul",13),T(1,bn,3,2,"li",14,st),x()),t&2){let e=d().$implicit;o(),O(e.highlights)}}function xn(t,n){if(t&1&&(b(0,"li",8)(1,"header",9)(2,"span",10),l(3),x(),b(4,"span",11),l(5),x()(),_(6,hn,2,1,"p",12)(7,vn,3,0,"ul",13),x()),t&2){let e=n.$implicit;K("settings-changelog__entry--internal",e.kind==="internal"),v("data-testid","settings-changelog-entry-"+e.version),o(3),h("v",e.version),o(2),u(e.date),o(),f(e.kind==="internal"?6:7)}}function yn(t,n){if(t&1&&(b(0,"ol",4),T(1,xn,8,6,"li",7,mn),x()),t&2){let e=d();o(),O(e.entries())}}var Cn=10,De=class t{markdown=P(Tt);texts=S;entries=p([]);hasEntries=y(()=>this.entries().length>0);ngOnInit(){this.renderAll()}async renderAll(){let n=[],e=zt.entries.slice(0,Cn);for(let i of e){let r=[];for(let c of i.highlights)r.push({bodyHtml:await this.markdown.render(c.body),packages:c.packages});n.push({version:i.version,date:this.formatDate(i.date),kind:i.kind,highlights:r})}this.entries.set(n)}formatDate(n){let e=new Date(n+"T00:00:00Z");return Number.isNaN(e.getTime())?n: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=F({type:t,selectors:[["sm-settings-changelog"]],decls:11,vars:7,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"],["data-testid","settings-changelog-footer",1,"settings-changelog__footer"],["target","_blank","rel","noopener noreferrer",1,"settings-changelog__footer-link",3,"href"],[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,i){e&1&&(b(0,"section",0)(1,"h2",1),l(2),x(),b(3,"p",2),l(4),x(),_(5,un,2,1,"p",3)(6,yn,3,0,"ol",4),b(7,"p",5),l(8),b(9,"a",6),l(10),x()()()),e&2&&(v("aria-labelledby","settings-changelog-heading"),o(2),h(" ",i.texts.changelogHeading," "),o(2),u(i.texts.changelogIntro),o(),f(i.hasEntries()?6:5),o(3),h(" ",i.texts.changelogFooterText," "),o(),q("href",i.texts.changelogFooterUrl,Z),o(),h(" ",i.texts.changelogFooterLinkLabel," "))},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:var(--sm-radius-sm);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:var(--sm-radius-sm);background:var(--sm-bg-hover);color:var(--sm-text-muted);border:1px solid var(--sm-border);line-height:1.4}.settings-changelog__footer[_ngcontent-%COMP%]{margin:1.75rem 0 0;padding-top:1rem;border-top:1px solid var(--sm-border);font-size:.82rem;color:var(--sm-text-muted);text-align:center}.settings-changelog__footer-link[_ngcontent-%COMP%]{margin-left:.3rem;color:var(--p-primary-color);text-decoration:none;font-weight:500}.settings-changelog__footer-link[_ngcontent-%COMP%]:hover{text-decoration:underline}"],changeDetection:0})};var Bt=`
|
|
2
|
+
.p-toggleswitch {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
width: dt('toggleswitch.width');
|
|
5
|
+
height: dt('toggleswitch.height');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.p-toggleswitch-input {
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
appearance: none;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
inset-inline-start: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
outline: 0 none;
|
|
21
|
+
border-radius: dt('toggleswitch.border.radius');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.p-toggleswitch-slider {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
border-width: dt('toggleswitch.border.width');
|
|
29
|
+
border-style: solid;
|
|
30
|
+
border-color: dt('toggleswitch.border.color');
|
|
31
|
+
background: dt('toggleswitch.background');
|
|
32
|
+
transition:
|
|
33
|
+
background dt('toggleswitch.transition.duration'),
|
|
34
|
+
color dt('toggleswitch.transition.duration'),
|
|
35
|
+
border-color dt('toggleswitch.transition.duration'),
|
|
36
|
+
outline-color dt('toggleswitch.transition.duration'),
|
|
37
|
+
box-shadow dt('toggleswitch.transition.duration');
|
|
38
|
+
border-radius: dt('toggleswitch.border.radius');
|
|
39
|
+
outline-color: transparent;
|
|
40
|
+
box-shadow: dt('toggleswitch.shadow');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.p-toggleswitch-handle {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 50%;
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
background: dt('toggleswitch.handle.background');
|
|
50
|
+
color: dt('toggleswitch.handle.color');
|
|
51
|
+
width: dt('toggleswitch.handle.size');
|
|
52
|
+
height: dt('toggleswitch.handle.size');
|
|
53
|
+
inset-inline-start: dt('toggleswitch.gap');
|
|
54
|
+
margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2));
|
|
55
|
+
border-radius: dt('toggleswitch.handle.border.radius');
|
|
56
|
+
transition:
|
|
57
|
+
background dt('toggleswitch.transition.duration'),
|
|
58
|
+
color dt('toggleswitch.transition.duration'),
|
|
59
|
+
inset-inline-start dt('toggleswitch.slide.duration'),
|
|
60
|
+
box-shadow dt('toggleswitch.slide.duration');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {
|
|
64
|
+
background: dt('toggleswitch.checked.background');
|
|
65
|
+
border-color: dt('toggleswitch.checked.border.color');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {
|
|
69
|
+
background: dt('toggleswitch.handle.checked.background');
|
|
70
|
+
color: dt('toggleswitch.handle.checked.color');
|
|
71
|
+
inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap')));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {
|
|
75
|
+
background: dt('toggleswitch.hover.background');
|
|
76
|
+
border-color: dt('toggleswitch.hover.border.color');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {
|
|
80
|
+
background: dt('toggleswitch.handle.hover.background');
|
|
81
|
+
color: dt('toggleswitch.handle.hover.color');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {
|
|
85
|
+
background: dt('toggleswitch.checked.hover.background');
|
|
86
|
+
border-color: dt('toggleswitch.checked.hover.border.color');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {
|
|
90
|
+
background: dt('toggleswitch.handle.checked.hover.background');
|
|
91
|
+
color: dt('toggleswitch.handle.checked.hover.color');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {
|
|
95
|
+
box-shadow: dt('toggleswitch.focus.ring.shadow');
|
|
96
|
+
outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color');
|
|
97
|
+
outline-offset: dt('toggleswitch.focus.ring.offset');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.p-toggleswitch.p-invalid > .p-toggleswitch-slider {
|
|
101
|
+
border-color: dt('toggleswitch.invalid.border.color');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.p-toggleswitch.p-disabled {
|
|
105
|
+
opacity: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.p-toggleswitch.p-disabled .p-toggleswitch-slider {
|
|
109
|
+
background: dt('toggleswitch.disabled.background');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.p-toggleswitch.p-disabled .p-toggleswitch-handle {
|
|
113
|
+
background: dt('toggleswitch.handle.disabled.background');
|
|
114
|
+
}
|
|
115
|
+
`;var wn=["handle"],Pn=["input"],Sn=t=>({checked:t});function kn(t,n){t&1&<(0)}function En(t,n){if(t&1&&ie(0,kn,1,0,"ng-container",3),t&2){let e=d();m("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",pt(2,Sn,e.checked()))}}var Mn=`
|
|
116
|
+
${Bt}
|
|
117
|
+
|
|
118
|
+
p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch-slider {
|
|
119
|
+
border-color: dt('toggleswitch.invalid.border.color');
|
|
120
|
+
}
|
|
121
|
+
`,In={root:{position:"relative"}},Tn={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"},Kt=(()=>{class t extends ft{name="toggleswitch";style=Mn;classes=Tn;inlineStyles=In;static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(t)))(r||t)}})();static \u0275prov=be({token:t,factory:t.\u0275fac})}return t})();var $t=new Ze("TOGGLESWITCH_INSTANCE"),On={provide:wt,useExisting:Ye(()=>ue),multi:!0},ue=(()=>{class t extends Et{componentName="ToggleSwitch";$pcToggleSwitch=P($t,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=P(_e,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;tabindex;inputId;readonly;trueValue=!0;falseValue=!1;ariaLabel;size=V();ariaLabelledBy;autofocus;onChange=new nt;input;handleTemplate;_handleTemplate;focused=!1;_componentStyle=P(Kt);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,i){i(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.checked(),disabled:this.$disabled(),invalid:this.invalid()})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ze(t)))(r||t)}})();static \u0275cmp=F({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,r,c){if(i&1&&dt(c,wn,4)(c,Ce,4),i&2){let g;ve(g=xe())&&(r.handleTemplate=g.first),ve(g=xe())&&(r.templates=g)}},viewQuery:function(i,r){if(i&1&&ct(Pn,5),i&2){let c;ve(c=xe())&&(r.input=c.first)}},hostVars:7,hostBindings:function(i,r){i&1&&C("click",function(g){return r.onHostClick(g)}),i&2&&(v("data-p-checked",r.checked())("data-p-disabled",r.$disabled())("data-p",r.dataP),gt(r.sx("root")),he(r.cn(r.cx("root"),r.styleClass)))},inputs:{styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",ut],inputId:"inputId",readonly:[2,"readonly","readonly",Ke],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",size:[1,"size"],ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",Ke]},outputs:{onChange:"onChange"},features:[re([On,Kt,{provide:$t,useExisting:t},{provide:bt,useExisting:t}]),rt([_e]),at],decls:5,vars:22,consts:[["input",""],["type","checkbox","role","switch",3,"focus","blur","checked","pAutoFocus","pBind"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(s(0,"input",1,0),C("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),a(),s(2,"div",2)(3,"div",2),_(4,En,1,4,"ng-container"),a()()),i&2&&(he(r.cx("input")),m("checked",r.checked())("pAutoFocus",r.autofocus)("pBind",r.ptm("input")),v("id",r.inputId)("required",r.required()?"":void 0)("disabled",r.$disabled()?"":void 0)("aria-checked",r.checked())("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("name",r.name())("tabindex",r.tabindex),o(2),he(r.cx("slider")),m("pBind",r.ptm("slider")),v("data-p",r.dataP),o(),he(r.cx("handle")),m("pBind",r.ptm("handle")),v("data-p",r.dataP),o(),f(r.handleTemplate||r._handleTemplate?4:-1))},dependencies:[_t,ht,vt,we,xt,_e],encapsulation:2,changeDetection:0})}return t})(),je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ot({type:t});static \u0275inj=Je({imports:[ue,we,we]})}return t})();var Dn=(t,n)=>n.key;function jn(t,n){if(t&1&&(s(0,"p-message",3),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.general.loadErrorPrefix," ",n," ")}}function Fn(t,n){if(t&1&&(s(0,"p-message",4),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.general.saveErrorPrefix," ",n," ")}}function An(t,n){if(t&1){let e=j();s(0,"li",6)(1,"div",9)(2,"div",10),l(3),a(),s(4,"div",11),l(5),a()(),s(6,"p-toggleswitch",14),C("ngModelChange",function(r){let c=k(e).$implicit,g=d();return E(g.onToggle(c,r))}),a()()}if(t&2){let e=n.$implicit,i=d();v("data-testid","settings-general-row-"+e.key),o(3),u(i.toggleLabel(e.key)),o(2),h(" ",i.toggleDescription(e.key)," "),o(),m("ngModel",i.valueOf(e))("disabled",i.loading()||i.isPending(e.key)||i.preferences()===null),v("data-testid","settings-general-toggle-"+e.key)}}function Nn(t,n){if(t&1&&(s(0,"span",15),l(1),a()),t&2){let e=n.$implicit,i=d();o(),h(" ",i.extraThemeLabel(e.labelKey)," ")}}var Ln=[{key:"updateCheck.enabled",read:t=>t.updateCheck.enabled,patch:t=>({updateCheck:{enabled:t}})}],Vn=[{value:"none",labelKey:"none"},{value:"matrix",labelKey:"matrix"}];function Rn(t){return t==="matrix"?"matrix":"none"}function zn(t){return t==="matrix"?"matrix":null}var Fe=class t{dataSource=P(W);themeService=P(Te);visible=V.required();texts=S;toggles=Ln;extraThemeOptions=Vn;extraThemeWire=y(()=>Rn(this.themeService.extraTheme()));loading=p(!1);loadError=p(null);saveError=p(null);preferences=p(null);pending=p(new Set);constructor(){L(()=>{this.visible()&&this.refresh()})}toggleLabel(n){return S.general.toggles[n].label}toggleDescription(n){return S.general.toggles[n].description}valueOf(n){let e=this.preferences();return e?n.read(e):!1}isPending(n){return this.pending().has(n)}onToggle(n,e){this.runToggle(n,e)}onExtraThemeChange(n){this.themeService.setExtraTheme(zn(n??"none"))}extraThemeLabel(n){return S.general.extraTheme.options[n].label}async refresh(){this.loading.set(!0),this.loadError.set(null),this.saveError.set(null);try{let n=await this.dataSource.getPreferences();this.preferences.set(n)}catch(n){this.loadError.set(Ht(n)),this.preferences.set(null)}finally{this.loading.set(!1)}}async runToggle(n,e){if(this.pending().has(n.key))return;let i=new Set(this.pending());i.add(n.key),this.pending.set(i),this.saveError.set(null);try{let r=await this.dataSource.setPreferences(n.patch(e));this.preferences.set(r)}catch(r){this.saveError.set(Ht(r))}finally{let r=new Set(this.pending());r.delete(n.key),this.pending.set(r)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=F({type:t,selectors:[["sm-settings-general"]],inputs:{visible:[1,"visible"]},decls:23,vars:12,consts:[["data-testid","settings-general",1,"settings-general"],["id","settings-general-heading",1,"settings-general__title"],[1,"settings-general__intro"],["severity","error","data-testid","settings-general-load-error",3,"closable"],["severity","error","data-testid","settings-general-save-error",3,"closable"],["role","list",1,"settings-general__list"],[1,"settings-general__row"],[1,"settings-general__subheading"],["data-testid","settings-general-row-extra-theme",1,"settings-general__row","settings-general__row--stacked"],[1,"settings-general__row-text"],[1,"settings-general__row-label"],[1,"settings-general__row-description"],["optionLabel","labelKey","optionValue","value","data-testid","settings-general-extra-theme",3,"ngModelChange","options","ngModel","allowEmpty"],["pTemplate","item"],[3,"ngModelChange","ngModel","disabled"],["data-testid","settings-general-extra-theme-option"]],template:function(e,i){if(e&1&&(s(0,"section",0)(1,"h2",1),l(2),a(),s(3,"p",2),l(4),a(),_(5,jn,2,3,"p-message",3),_(6,Fn,2,3,"p-message",4),s(7,"ul",5),T(8,An,7,6,"li",6,Dn),a(),s(10,"h3",7),l(11),a(),s(12,"p",2),l(13),a(),s(14,"ul",5)(15,"li",8)(16,"div",9)(17,"div",10),l(18),a(),s(19,"div",11),l(20),a()(),s(21,"p-selectbutton",12),C("ngModelChange",function(c){return i.onExtraThemeChange(c)}),ie(22,Nn,2,1,"ng-template",13),a()()()()),e&2){let r,c;v("aria-labelledby","settings-general-heading"),o(2),h(" ",i.texts.general.heading," "),o(2),u(i.texts.general.intro),o(),f((r=i.loadError())?5:-1,r),o(),f((c=i.saveError())?6:-1,c),o(2),O(i.toggles),o(3),h(" ",i.texts.general.localPreferences.heading," "),o(2),h(" ",i.texts.general.localPreferences.intro," "),o(5),h(" ",i.texts.general.extraTheme.label," "),o(2),h(" ",i.texts.general.extraTheme.description," "),o(),m("options",i.extraThemeOptions)("ngModel",i.extraThemeWire())("allowEmpty",!1)}},dependencies:[ce,le,de,pe,ge,Ce,Nt,At,je,ue],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-general__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-general__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}.settings-general__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}.settings-general__row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--p-content-border-color);border-radius:.5rem;background:var(--p-content-background)}.settings-general__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 1 auto;min-width:0}.settings-general__row-label[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600;color:var(--p-text-color)}.settings-general__row-description[_ngcontent-%COMP%]{font-size:.8rem;color:var(--sm-text-muted);line-height:1.45}.settings-general__subheading[_ngcontent-%COMP%]{margin:1.75rem 0 .25rem;font-size:.95rem;font-weight:600;color:var(--p-text-color)}.settings-general__row--stacked[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:.65rem}"],changeDetection:0})};function Ht(t){return t instanceof $||t instanceof Error?t.message:String(t)}var $e={provider:"#7C3AED",extractor:"#A78BFA",analyzer:"#5FD17C",action:"#00C853",formatter:"#5BC0EB",hook:"#FFB627"};function Wt(t){let n=t.toLowerCase();return $e[n]??"currentColor"}var Ne=["all",...Object.keys($e)],Ae=["core","claude","antigravity","openai","agent-skills"];function X(t,n){return`${t}/${n}`}function Ge(t){let n=new Map;for(let e of t)if(!Le(e.status)&&e.extensions)for(let i of e.extensions)n.set(X(e.id,i.id),i.enabled);return n}function He(t){let n=t.target;return!n||typeof n.closest!="function"?!1:n.closest('label, button, input, [role="switch"], p-toggleswitch')!==null}function Xt(t,n){if(Bn(t,n))return[t];if(!t.extensions)return[];let e=t.extensions.filter(i=>Kn(i,n));return e.length===0?[]:[J(U({},t),{extensions:e})]}function Qt(t,n){if(!t.extensions)return[];let e=t.extensions.filter(i=>i.kind.toLowerCase()===n);return e.length===0?[]:[J(U({},t),{extensions:e})]}function Yt(t){if(t.locked)return[];if(!t.extensions)return[t];let n=t.extensions.filter(e=>!e.locked);return n.length===0?[]:[J(U({},t),{extensions:n})]}function Jt(t){return t.slice().sort((e,i)=>{let r=Ae.indexOf(e.id),c=Ae.indexOf(i.id),g=r>=0?r:Ae.length,w=c>=0?c:Ae.length;return g!==w?g-w:e.id.localeCompare(i.id)}).map(e=>{if(!e.extensions)return e;let i=e.extensions.slice().sort((r,c)=>r.id.localeCompare(c.id));return J(U({},e),{extensions:i})})}function Bn(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function Kn(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function Le(t){return t==="incompatible-spec"||t==="invalid-manifest"||t==="load-error"||t==="id-collision"}function Ue(t){return t instanceof $||t instanceof Error?t.message:String(t)}function Zt(t,n){return Le(t.status)?n.statusFailure[t.status]??t.status:t.status==="enabled"?n.enabledLabel:n.disabledLabel}function en(t,n){switch(t){case"built-in":return n.sourceBuiltIn;case"project":return n.sourceProject}}var qe="sm.settings.plugins.collapsed",We="sm.settings.plugins.kind-filter";function tn(){let t=null;try{t=localStorage.getItem(qe)}catch{return new Set}if(!t)return new Set;let n;try{n=JSON.parse(t)}catch{return new Set}if(!Array.isArray(n))return new Set;let e=new Set;for(let i of n)typeof i=="string"&&i.length>0&&e.add(i);return e}function nn(t){try{if(t.size===0){localStorage.removeItem(qe);return}localStorage.setItem(qe,JSON.stringify([...t]))}catch{}}function on(){let t=null;try{t=localStorage.getItem(We)}catch{return"all"}return t&&Ne.includes(t)?t:"all"}function rn(t){try{if(t==="all"){localStorage.removeItem(We);return}localStorage.setItem(We,t)}catch{}}function Xe(){et(Xe);let t=p(tn());L(()=>nn(t()));let n=i=>{let r=new Set(t());r.has(i)?r.delete(i):r.add(i),t.set(r)},e=i=>!t().has(i);return{collapsed:t.asReadonly(),toggleExpanded:n,isExpanded:e}}function an(t){let n=p(""),e=y(()=>n().trim().length>0),i=p(on()),r=y(()=>i()!=="all");L(()=>rn(i()));let c=y(()=>Jt(t.plugins().flatMap(Yt))),g=y(()=>{let R=n().trim().toLowerCase(),Q=i(),z=c();return Q!=="all"&&(z=z.flatMap(Y=>Qt(Y,Q))),R.length>0&&(z=z.flatMap(Y=>Xt(Y,R))),z});return{searchText:n,searchActive:e,kindFilter:i,setKindFilter:R=>{i.set(R)},isKindFilterActive:R=>i()===R,kindFilterActive:r,kindFilterOptions:Ne,visiblePlugins:c,filteredPlugins:g}}function sn(t){let n=p(!1),e=p(null),i=p(null),r=p([]),c=p(new Map),g=p(new Map),w=p(!1),G=y(()=>{let M=c(),A=g(),H=new Set;for(let[B,N]of A)M.get(B)!==N&&H.add(B);return H}),R=y(()=>G().size>0),Q=y(()=>r().some(M=>Le(M.status))),z=y(()=>{let M=g();for(let A of r()){if(A.startsAsDisabled!==!0)continue;let H=A.extensions??[];for(let B of H)if(M.get(X(A.id,B.id))===!0)return!0}return!1});return{plugins:r,loading:n,loadError:e,toggleError:i,applying:w,hasFailureRows:Q,originalState:c,pendingState:g,dirtyIds:G,hasPendingChanges:R,restartRecommended:z,pendingEnabled:M=>g().get(M)??!1,isDirty:M=>G().has(M),refresh:async()=>{n.set(!0),e.set(null),i.set(null);try{let M=await t.dataSource.listPlugins();r.set([...M.items]);let A=Ge(M.items);c.set(A),g.set(new Map(A))}catch(M){e.set(Ue(M)),r.set([]),c.set(new Map),g.set(new Map)}finally{n.set(!1)}},onExtensionToggle:(M,A,H)=>{if(w())return;let B=X(M,A.id),N=new Map(g());N.set(B,H),g.set(N)},applyChanges:async()=>{if(w())return{ok:!1};let M=G();if(M.size===0)return{ok:!1};let A=[],H=g();for(let N of M)A.push({id:N,enabled:H.get(N)??!1});w.set(!0),i.set(null);let B=!1;try{let N=await t.dataSource.applyPluginChanges(A);r.set([...N.items]);let Qe=Ge(N.items);c.set(Qe),g.set(new Map(Qe)),t.scanTrigger.run(),B=!0}catch(N){i.set(Ue(N))}finally{w.set(!1)}return{ok:B}},discardChanges:()=>{g.set(new Map(c())),i.set(null)}}}var ln=(t,n)=>n.id;function Hn(t,n){if(t&1&&l(0),t&2){let e=d().$implicit,i=d();h(" ",e==="all"?i.texts.pluginsKindFilterAll:e," ")}}function Un(t,n){if(t&1){let e=j();s(0,"p-togglebutton",16),C("ngModelChange",function(){let r=k(e).$implicit,c=d();return E(c.setKindFilter(r))}),ie(1,Hn,1,1,"ng-template",null,0,mt),a()}if(t&2){let e=n.$implicit,i=d();Be("--kind-color",e==="all"?null:i.kindTint(e)),m("ngModel",i.isKindFilterActive(e))("styleClass","settings-plugins__kind-chip"+(e==="all"?" is-all":""))("ariaLabel",i.texts.pluginsKindFilterOptionA11y(e,!i.isKindFilterActive(e))),v("data-testid","settings-plugins-kind-chip-"+e)}}function qn(t,n){if(t&1&&(s(0,"p-message",11),l(1),a()),t&2){let e=d();m("closable",!1),o(),h(" ",e.texts.unsavedChangesMessage(e.dirtyIds().size)," ")}}function Wn(t,n){if(t&1&&(s(0,"p",12),I(1,"i",17),l(2),a()),t&2){let e=d();o(2),h(" ",e.texts.loading," ")}}function Xn(t,n){if(t&1&&(s(0,"p-message",13),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.errorPrefix," ",e.loadError()," ")}}function Qn(t,n){if(t&1&&(s(0,"p",14),l(1),a()),t&2){let e=d();o(),h(" ",e.texts.empty," ")}}function Yn(t,n){if(t&1){let e=j();s(0,"p-message",22),C("onClose",function(){k(e);let r=d(2);return E(r.toggleError.set(null))}),l(1),a()}if(t&2){let e=d(2);m("closable",!0),o(),D(" ",e.texts.toggleErrorPrefix," ",e.toggleError()," ")}}function Jn(t,n){if(t&1&&(s(0,"p",19),I(1,"i",23),l(2),a()),t&2){let e=d(2);o(2),h(" ",e.texts.pluginsSearchEmpty(e.searchText())," ")}}function Zn(t,n){if(t&1){let e=j();s(0,"button",38),C("click",function(r){k(e);let c=d().$implicit;return d(2).toggleExpanded(c.id),E(r.stopPropagation())}),I(1,"i",39),a()}if(t&2){let e=d().$implicit,i=d(2);v("aria-expanded",i.isExpanded(e.id))("aria-label",i.isExpanded(e.id)?i.texts.collapseLabel:i.texts.expandLabel)("data-testid","settings-bundle-expand-"+e.id),o(),K("fa-chevron-down",i.isExpanded(e.id))("fa-chevron-right",!i.isExpanded(e.id))}}function ei(t,n){t&1&&I(0,"span",27)}function ti(t,n){if(t&1&&(s(0,"span",32),l(1),a()),t&2){let e=d().$implicit;o(),h("v",e.version)}}function ni(t,n){if(t&1&&(s(0,"span",33),I(1,"i",40),l(2),a()),t&2){let e=d().$implicit,i=d(2);m("title",i.texts.lockedTooltip),v("data-testid","settings-row-locked-"+e.id),o(2),h(" ",i.texts.lockedLabel," ")}}function ii(t,n){if(t&1&&(s(0,"p",34),l(1),a()),t&2){let e=d().$implicit;o(),u(e.description)}}function oi(t,n){if(t&1&&(s(0,"span",35),l(1),a()),t&2){let e=d().$implicit;o(),u(e.reason)}}function ri(t,n){if(t&1&&(s(0,"p",36),I(1,"i",41),l(2),a()),t&2){let e=d().$implicit,i=d(2);v("data-testid","settings-row-starts-disabled-"+e.id),o(2),h(" ",i.texts.startsAsDisabledRowHint," ")}}function ai(t,n){if(t&1&&(s(0,"span",49),l(1),a()),t&2){let e=d().$implicit;o(),h("v",e.version)}}function si(t,n){if(t&1&&(s(0,"span",33),I(1,"i",40),l(2),a()),t&2){let e=d().$implicit,i=d(2).$implicit,r=d(2);m("title",r.texts.lockedTooltip),v("data-testid","settings-extrow-locked-"+i.id+"-"+e.id),o(2),h(" ",r.texts.lockedLabel," ")}}function li(t,n){if(t&1&&(s(0,"p",50),l(1),a()),t&2){let e=d().$implicit;o(),u(e.description)}}function di(t,n){if(t&1){let e=j();s(0,"li",43),C("click",function(r){let c=k(e).$implicit,g=d(2).$implicit,w=d(2);return E(w.onSubrowClick(g.id,c,r))})("keydown.enter",function(r){let c=k(e).$implicit,g=d(2).$implicit,w=d(2);return E(w.onSubrowClick(g.id,c,r))})("keydown.space",function(r){let c=k(e).$implicit,g=d(2).$implicit,w=d(2);return r.preventDefault(),E(w.onSubrowClick(g.id,c,r))}),s(1,"div",44)(2,"div",45),I(3,"span",46),s(4,"span",47),l(5),a(),s(6,"span",48),l(7),a(),_(8,ai,2,1,"span",49),_(9,si,3,3,"span",33),a(),_(10,li,2,1,"p",50),a(),s(11,"p-toggleswitch",51),C("ngModelChange",function(r){let c=k(e).$implicit,g=d(2).$implicit,w=d(2);return E(w.onExtensionToggle(g.id,c,r))}),a()()}if(t&2){let e=n.$implicit,i=d(2).$implicit,r=d(2);K("is-clickable",r.extensionToggleInteractive(e))("is-dirty",r.isDirty(r.qualifiedExt(i.id,e.id))),v("aria-label",r.texts.a11y.extensionRow(r.qualifiedExt(i.id,e.id)))("data-testid","settings-extrow-"+i.id+"-"+e.id),o(3),K("settings-plugins__dirty-dot--visible",r.isDirty(r.qualifiedExt(i.id,e.id))),v("data-testid","settings-extrow-dirty-"+i.id+"-"+e.id),o(2),u(e.id),o(),Be("--kind-color",r.kindTint(e.kind)),o(),u(e.kind),o(),f(i.source==="project"?8:-1),o(),f(e.locked?9:-1),o(),f(e.description?10:-1),o(),m("ngModel",r.pendingEnabled(r.qualifiedExt(i.id,e.id)))("disabled",r.applying()||!!e.locked)("ariaLabel",r.texts.a11y.extensionToggle(r.qualifiedExt(i.id,e.id),!r.pendingEnabled(r.qualifiedExt(i.id,e.id)))),v("data-testid","settings-ext-toggle-"+i.id+"-"+e.id)}}function ci(t,n){if(t&1&&(s(0,"ul",37),T(1,di,12,20,"li",42,ln),a()),t&2){let e=d().$implicit;v("data-testid","settings-extensions-"+e.id),o(),O(e.extensions)}}function gi(t,n){if(t&1){let e=j();s(0,"li",24)(1,"div",25),C("click",function(r){let c=k(e).$implicit,g=d(2);return E(g.onRowClick(c,r))})("keydown.enter",function(r){let c=k(e).$implicit,g=d(2);return E(g.onRowClick(c,r))})("keydown.space",function(r){let c=k(e).$implicit,g=d(2);return r.preventDefault(),E(g.onRowClick(c,r))}),_(2,Zn,2,7,"button",26)(3,ei,1,0,"span",27),s(4,"div",28)(5,"div",29)(6,"span",30),l(7),a(),s(8,"span",31),l(9),a(),_(10,ti,2,1,"span",32),_(11,ni,3,3,"span",33),a(),_(12,ii,2,1,"p",34),_(13,oi,2,1,"span",35),_(14,ri,3,2,"p",36),a()(),_(15,ci,3,1,"ul",37),a()}if(t&2){let e=n.$implicit,i=d(2);K("is-clickable",i.rowIsClickable(e)),v("data-testid","settings-row-"+e.id),o(),v("aria-label",i.texts.a11y.pluginRow(e.id)),o(),f(i.canExpandExtensions(e)?2:3),o(5),u(e.id),o(2),u(i.sourceLabel(e.source)),o(),f(e.source==="project"&&e.version?10:-1),o(),f(e.locked?11:-1),o(),f(e.description?12:-1),o(),f(e.reason?13:-1),o(),f(i.showStartsAsDisabledHint(e)?14:-1),o(),f(i.canExpandExtensions(e)&&i.isExpanded(e.id)?15:-1)}}function pi(t,n){if(t&1&&(_(0,Yn,2,3,"p-message",18),_(1,Jn,3,1,"p",19),s(2,"ul",20),T(3,gi,16,13,"li",21,ln),a()),t&2){let e=d();f(e.toggleError()?0:-1),o(),f(e.searchActive()&&e.filteredPlugins().length===0?1:-1),o(2),O(e.filteredPlugins())}}function mi(t,n){if(t&1&&(s(0,"em",52),l(1),a()),t&2){let e=d(2);o(),h(" ",e.texts.startsAsDisabledFooterHint," ")}}function ui(t,n){if(t&1){let e=j();s(0,"footer",15),_(1,mi,2,1,"em",52),s(2,"p-button",53),C("onClick",function(){k(e);let r=d();return E(r.discardChanges())}),a(),s(3,"p-button",54),C("onClick",function(){k(e);let r=d();return E(r.applyChanges())}),a()()}if(t&2){let e=d();o(),f(e.restartRecommended()?1:-1),o(),m("text",!0)("label",e.texts.discardChanges)("ariaLabel",e.texts.discardA11y)("disabled",e.applying()),o(),m("label",e.texts.applyAndClose)("ariaLabel",e.texts.applyA11y)("disabled",e.applying())("loading",e.applying())}}var Ve=class t{dataSource=P(W);scanTrigger=P(Vt);buffer=P(me);destroyRef=P(tt);visible=V.required();applied=ye();texts=S;pluginState=sn({dataSource:this.dataSource,scanTrigger:this.scanTrigger});plugins=this.pluginState.plugins;loading=this.pluginState.loading;loadError=this.pluginState.loadError;toggleError=this.pluginState.toggleError;applying=this.pluginState.applying;hasFailureRows=this.pluginState.hasFailureRows;originalState=this.pluginState.originalState;pendingState=this.pluginState.pendingState;dirtyIds=this.pluginState.dirtyIds;hasPendingChanges=this.pluginState.hasPendingChanges;restartRecommended=this.pluginState.restartRecommended;pluginCollapse=Xe();collapsed=this.pluginCollapse.collapsed;pluginFilter=an({plugins:this.plugins});searchText=this.pluginFilter.searchText;searchActive=this.pluginFilter.searchActive;kindFilter=this.pluginFilter.kindFilter;kindFilterActive=this.pluginFilter.kindFilterActive;kindFilterOptions=this.pluginFilter.kindFilterOptions;visiblePlugins=this.pluginFilter.visiblePlugins;filteredPlugins=this.pluginFilter.filteredPlugins;constructor(){L(()=>{this.visible()&&this.pluginState.refresh()});let n={dirtyIds:this.pluginState.dirtyIds,applyChanges:async()=>{let e=await this.pluginState.applyChanges();return e.ok&&this.applied.emit(),e},discardChanges:()=>this.pluginState.discardChanges()};this.buffer.register(n),this.destroyRef.onDestroy(()=>this.buffer.deregister(n))}setKindFilter(n){this.pluginFilter.setKindFilter(n)}isKindFilterActive(n){return this.pluginFilter.isKindFilterActive(n)}toggleExpanded(n){this.pluginCollapse.toggleExpanded(n)}isExpanded(n){return this.pluginCollapse.isExpanded(n)}pendingEnabled(n){return this.pluginState.pendingEnabled(n)}isDirty(n){return this.pluginState.isDirty(n)}showStartsAsDisabledHint(n){return!n.startsAsDisabled||!n.extensions?!1:n.extensions.some(e=>this.pendingEnabled(X(n.id,e.id)))}onExtensionToggle(n,e,i){this.pluginState.onExtensionToggle(n,e,i)}async applyChanges(){(await this.pluginState.applyChanges()).ok&&this.applied.emit()}discardChanges(){this.pluginState.discardChanges()}canExpandExtensions(n){return(n.extensions?.length??0)>0}extensionToggleInteractive(n){return!n.locked}rowIsClickable(n){return this.canExpandExtensions(n)}onRowClick(n,e){He(e)||this.canExpandExtensions(n)&&this.toggleExpanded(n.id)}onSubrowClick(n,e,i){if(He(i)||!this.extensionToggleInteractive(e))return;let r=X(n,e.id);this.onExtensionToggle(n,e,!this.pendingEnabled(r))}statusLabel(n){return Zt(n,this.texts)}sourceLabel(n){return en(n,this.texts)}qualifiedExt(n,e){return X(n,e)}kindTint(n){return Wt(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=F({type:t,selectors:[["sm-settings-plugins"]],inputs:{visible:[1,"visible"]},outputs:{applied:"applied"},decls:19,vars:9,consts:[["content",""],["aria-labelledby","settings-plugins-heading",1,"settings-plugins"],[1,"settings-plugins__scroll"],[1,"settings-plugins__header"],["id","settings-plugins-heading",1,"settings-plugins__title"],[1,"settings-plugins__intro"],["iconPosition","left",1,"settings-plugins__search"],["styleClass","fa-solid fa-magnifying-glass"],["pInputText","","type","text","data-testid","settings-plugins-search",3,"ngModelChange","placeholder","ngModel"],["role","group","data-testid","settings-plugins-kind-filter",1,"settings-plugins__kind-filter"],[3,"ngModel","styleClass","--kind-color","ariaLabel"],["severity","warn","styleClass","settings-plugins__banner","data-testid","settings-banner-unsaved",3,"closable"],["data-testid","settings-loading",1,"settings-plugins__hint"],["severity","error","data-testid","settings-error",3,"closable"],["data-testid","settings-empty",1,"settings-plugins__hint"],["data-testid","settings-plugins-footer",1,"settings-plugins__footer"],[3,"ngModelChange","ngModel","styleClass","ariaLabel"],["aria-hidden","true",1,"fa-solid","fa-spinner","fa-spin"],["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-clickable"],["severity","error","data-testid","settings-toggle-error",3,"onClose","closable"],["aria-hidden","true",1,"fa-solid","fa-magnifying-glass"],[1,"settings-plugins__row"],["role","button","tabindex","0",1,"settings-plugins__row-main",3,"click","keydown.enter","keydown.space"],["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-locked",3,"title"],[1,"settings-plugins__row-description"],[1,"settings-plugins__row-reason"],[1,"settings-plugins__row-hint"],["role","list",1,"settings-plugins__sublist"],["type","button",1,"settings-plugins__expand",3,"click"],["aria-hidden","true",1,"fa-solid"],["aria-hidden","true",1,"fa-solid","fa-lock"],["aria-hidden","true",1,"fa-solid","fa-triangle-exclamation"],["role","button","tabindex","0",1,"settings-plugins__subrow",3,"is-clickable","is-dirty"],["role","button","tabindex","0",1,"settings-plugins__subrow",3,"click","keydown.enter","keydown.space"],[1,"settings-plugins__subrow-text"],[1,"settings-plugins__subrow-headline"],["aria-hidden","true",1,"settings-plugins__dirty-dot"],[1,"settings-plugins__subrow-id"],[1,"settings-plugins__subrow-kind"],[1,"settings-plugins__subrow-version"],[1,"settings-plugins__subrow-description"],[3,"ngModelChange","ngModel","disabled","ariaLabel"],["data-testid","settings-plugins-restart-hint",1,"settings-plugins__footer-hint"],["severity","secondary","data-testid","settings-plugins-discard",3,"onClick","text","label","ariaLabel","disabled"],["data-testid","settings-plugins-apply",3,"onClick","label","ariaLabel","disabled","loading"]],template:function(e,i){e&1&&(s(0,"section",1)(1,"div",2)(2,"header",3)(3,"h2",4),l(4),a(),s(5,"p",5),l(6),a()(),s(7,"p-iconfield",6),I(8,"p-inputicon",7),s(9,"input",8),C("ngModelChange",function(c){return i.searchText.set(c)}),a()(),s(10,"div",9),T(11,Un,3,6,"p-togglebutton",10,ee),a(),_(13,qn,2,2,"p-message",11),_(14,Wn,3,1,"p",12)(15,Xn,2,3,"p-message",13)(16,Qn,2,1,"p",14)(17,pi,5,2),a(),_(18,ui,4,9,"footer",15),a()),e&2&&(o(4),h(" ",i.texts.pluginsHeading," "),o(2),u(i.texts.pluginsIntro),o(3),m("placeholder",i.texts.pluginsSearchPlaceholder)("ngModel",i.searchText()),v("aria-label",i.texts.pluginsSearchA11y),o(),v("aria-label",i.texts.pluginsKindFilterA11y),o(),O(i.kindFilterOptions),o(2),f(i.hasPendingChanges()?13:-1),o(),f(i.loading()?14:i.loadError()?15:i.plugins().length===0?16:17),o(4),f(i.hasPendingChanges()?18:-1))},dependencies:[ce,Ee,le,de,se,Pe,Dt,Ot,Ft,jt,Ie,Me,pe,ge,It,Mt,je,ue],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden;--kind-color: var(--p-text-color)}.settings-plugins[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0}.settings-plugins__scroll[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:.75rem;min-height:0}.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__kind-filter[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.375rem}.settings-plugins__kind-chip[_ngcontent-%COMP%]{--chip-accent: var(--kind-color);--p-togglebutton-padding: .25rem .625rem;--p-togglebutton-content-padding: 0;--p-togglebutton-content-checked-background: transparent;--p-togglebutton-content-checked-shadow: none;--p-togglebutton-border-radius: var(--sm-radius-pill);--p-togglebutton-background: color-mix(in oklab, var(--chip-accent) 8%, transparent);--p-togglebutton-hover-background: color-mix(in oklab, var(--chip-accent) 18%, transparent);--p-togglebutton-checked-background: color-mix(in oklab, var(--chip-accent) 80%, transparent);--p-togglebutton-border-color: color-mix(in oklab, var(--chip-accent) 35%, transparent);--p-togglebutton-hover-border-color: color-mix(in oklab, var(--chip-accent) 55%, transparent);--p-togglebutton-checked-border-color: var(--chip-accent);--p-togglebutton-color: color-mix(in oklab, var(--chip-accent) 70%, var(--p-text-color));--p-togglebutton-hover-color: color-mix(in oklab, var(--chip-accent) 70%, var(--p-text-color));--p-togglebutton-checked-color: var(--p-surface-50);font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:lowercase}.app-dark[_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%]{--p-togglebutton-background: color-mix(in oklab, var(--chip-accent) 14%, transparent);--p-togglebutton-hover-background: color-mix(in oklab, var(--chip-accent) 26%, transparent);--p-togglebutton-checked-background: color-mix(in oklab, var(--chip-accent) 70%, transparent);--p-togglebutton-border-color: color-mix(in oklab, var(--chip-accent) 50%, transparent);--p-togglebutton-hover-border-color: color-mix(in oklab, var(--chip-accent) 70%, transparent);--p-togglebutton-color: color-mix(in oklab, var(--chip-accent) 80%, var(--p-text-color));--p-togglebutton-hover-color: color-mix(in oklab, var(--chip-accent) 80%, var(--p-text-color));--p-togglebutton-checked-color: var(--p-surface-900)}.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;position:relative}.settings-plugins__row-id[_ngcontent-%COMP%]{font-weight:600;font-family:var(--p-monospace-font-family)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_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:var(--sm-radius-pill);white-space:nowrap}.settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_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__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) 14%,transparent);border:1px solid color-mix(in oklab,var(--kind-color) 38%,transparent);color:color-mix(in oklab,var(--kind-color) 70%,var(--p-surface-900))}.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) 22%,transparent);border-color:color-mix(in oklab,var(--kind-color) 55%,transparent);color:color-mix(in oklab,var(--kind-color) 80%,var(--p-surface-50))}.settings-plugins__row-status[_ngcontent-%COMP%]{font-weight:500}.settings-plugins__row-locked[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;font-size:.7rem;font-weight:500;letter-spacing:.02em;padding:.125rem .5rem;border-radius:var(--sm-radius-pill);white-space:nowrap;background:color-mix(in oklab,var(--p-message-warn-color) 14%,transparent);border:1px solid color-mix(in oklab,var(--p-message-warn-color) 35%,transparent);color:color-mix(in oklab,var(--p-message-warn-color) 70%,var(--p-surface-900))}.settings-plugins__row-locked[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{font-size:.7rem}.app-dark[_nghost-%COMP%] .settings-plugins__row-locked[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-locked[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-message-warn-color) 22%,transparent);border-color:color-mix(in oklab,var(--p-message-warn-color) 55%,transparent);color:color-mix(in oklab,var(--p-message-warn-color) 85%,var(--p-surface-50))}.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);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;position:relative}.settings-plugins__subrow-id[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family);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)}.settings-plugins__dirty-dot[_ngcontent-%COMP%]{position:absolute;left:-.75rem;top:50%;transform:translateY(-50%);width:.5rem;height:.5rem;border-radius:50%;background:var(--p-warn-color);visibility:hidden}.settings-plugins__dirty-dot--visible[_ngcontent-%COMP%]{visibility:visible}.settings-plugins__row-hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;margin:.25rem 0 0;font-size:.75rem;line-height:1.4;color:var(--p-warn-color)}.settings-plugins__row-hint[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-top:.125rem}.settings-plugins__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border-top:1px solid var(--p-content-border-color);background:var(--p-content-background)}.settings-plugins__footer-hint[_ngcontent-%COMP%]{font-style:italic;font-size:.75rem;line-height:1.4;color:var(--p-warn-color);margin-right:auto}"],changeDetection:0})};var _i=(t,n)=>n.id;function fi(t,n){if(t&1&&(s(0,"p-message",3),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.project.loadErrorPrefix," ",n," ")}}function bi(t,n){if(t&1&&(s(0,"p-message",4),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.project.saveErrorPrefix," ",n," ")}}function vi(t,n){t&1&&(s(0,"p-message",5),l(1),a()),t&2&&(m("closable",!1),o(),h(" ",n," "))}function xi(t,n){if(t&1&&(s(0,"span",11),l(1),a()),t&2){let e=d();o(),u(e.texts.project.activeProviderSourceConfig)}}function yi(t,n){if(t&1&&(s(0,"span",11),l(1),a()),t&2){let e=d();o(),u(e.texts.project.activeProviderSourceAutodetect)}}function Ci(t,n){if(t&1&&(s(0,"span",11),l(1),a()),t&2){let e=d();o(),u(e.texts.project.activeProviderSourceNone)}}function wi(t,n){if(t&1&&(s(0,"span",11),l(1),a()),t&2){let e=d(),i=d();o(),D(" ",i.texts.project.activeProviderDetectedPrefix," ",e," ")}}function Pi(t,n){t&1&&_(0,wi,2,2,"span",11),t&2&&f(n.length>0?0:-1)}function Si(t,n){if(t&1&&(s(0,"option",15),l(1),a()),t&2){let e=n.$implicit;m("value",e.id),o(),u(e.label)}}function ki(t,n){if(t&1&&(s(0,"p-message",16),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.project.loadErrorPrefix," ",n," ")}}function Ei(t,n){if(t&1&&(s(0,"p-message",17),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.project.saveErrorPrefix," ",n," ")}}function Mi(t,n){if(t&1){let e=j();s(0,"li",20)(1,"span",28),l(2),a(),s(3,"p-button",29),C("onClick",function(){let r=k(e).$implicit,c=d();return E(c.onReferencePathRemove(r))}),a()()}if(t&2){let e=n.$implicit,i=d();o(2),u(e),o(),m("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.referencePaths")),v("data-testid","settings-project-reference-paths-remove")}}function Ii(t,n){if(t&1&&(s(0,"p-message",23),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.project.loadErrorPrefix," ",n," ")}}function Ti(t,n){if(t&1&&(s(0,"p-message",24),l(1),a()),t&2){let e=d();m("closable",!1),o(),D(" ",e.texts.project.saveErrorPrefix," ",n," ")}}function Oi(t,n){if(t&1){let e=j();s(0,"li",20)(1,"span",28),l(2),a(),s(3,"p-button",29),C("onClick",function(){let r=k(e).$implicit,c=d();return E(c.onIgnorePatternRemove(r))}),a()()}if(t&2){let e=n.$implicit,i=d();o(2),u(e),o(),m("label",i.texts.project.removeIgnorePatternLabel)("outlined",!0)("disabled",i.isPending("ignore.patterns")),v("data-testid","settings-project-ignore-patterns-remove")}}var Di=[{id:"claude",label:"Claude Code"},{id:"gemini",label:"Gemini CLI"},{id:"openai",label:"OpenAI Codex"},{id:"cursor",label:"Cursor"}],ji=/[\n\r\x00-\x1F\x7F]/,Re=class t{dataSource=P(W);confirmation=P(ae);visible=V.required();texts=S;loading=p(!1);loadError=p(null);saveError=p(null);preferences=p(null);pending=p(new Set);newReferencePath=p("");referencePaths=y(()=>this.preferences()?.scan.referencePaths??[]);ignoreLoadError=p(null);ignoreSaveError=p(null);ignoreEnvelope=p(null);newIgnorePattern=p("");ignorePatterns=y(()=>this.ignoreEnvelope()?.patterns??[]);activeProviderEnvelope=p(null);activeProviderLoadError=p(null);activeProviderSaveError=p(null);activeProviderSwitchAnnouncement=p(null);knownProviders=Di;activeProviderValue=y(()=>this.activeProviderEnvelope()?.activeProvider??"");activeProviderDetectedLabel=y(()=>(this.activeProviderEnvelope()?.detected??[]).join(", "));activeProviderSource=y(()=>this.activeProviderEnvelope()?.source??"none");constructor(){L(()=>{this.visible()&&(this.refresh(),this.refreshIgnore(),this.refreshActiveProvider())})}isPending(n){return this.pending().has(n)}onReferencePathAdd(){let n=this.newReferencePath().trim();if(n.length===0)return;if(n.includes(",")){this.saveError.set(this.texts.project.commaForbidden);return}let e=[...this.referencePaths(),n];this.runPatch("scan.referencePaths",{scan:{referencePaths:e}}).then(i=>{i&&this.newReferencePath.set("")})}onReferencePathRemove(n){let e=this.referencePaths().filter(i=>i!==n);this.runPatch("scan.referencePaths",{scan:{referencePaths:[...e]}})}onIgnorePatternAdd(){let n=this.newIgnorePattern().trim();if(n.length===0){this.ignoreSaveError.set(this.texts.project.ignorePatternEmpty);return}if(ji.test(n)){this.ignoreSaveError.set(this.texts.project.ignorePatternHasControlChar);return}let e=this.ignorePatterns();if(e.includes(n)){this.ignoreSaveError.set(this.texts.project.ignorePatternDuplicate);return}let i=[...e,n];this.runIgnorePatch({patterns:i}).then(r=>{r&&this.newIgnorePattern.set("")})}onIgnorePatternRemove(n){let e=this.ignorePatterns().filter(i=>i!==n);this.runIgnorePatch({patterns:[...e]})}onActiveProviderChange(n){n===""||n===this.activeProviderValue()||this.confirmActiveProviderSwitch(n,async()=>{await this.runActiveProviderSwitch(n)})}async refresh(){this.loading.set(!0),this.loadError.set(null),this.saveError.set(null);try{let n=await this.dataSource.getProjectPreferences();this.preferences.set(n)}catch(n){this.loadError.set(ne(n)),this.preferences.set(null)}finally{this.loading.set(!1)}}async refreshIgnore(){this.ignoreLoadError.set(null),this.ignoreSaveError.set(null);try{let n=await this.dataSource.getProjectIgnore();this.ignoreEnvelope.set(n)}catch(n){this.ignoreLoadError.set(ne(n)),this.ignoreEnvelope.set(null)}}async refreshActiveProvider(){this.activeProviderLoadError.set(null),this.activeProviderSaveError.set(null);try{let n=await this.dataSource.getActiveProvider();this.activeProviderEnvelope.set(n)}catch(n){this.activeProviderLoadError.set(ne(n)),this.activeProviderEnvelope.set(null)}}async runActiveProviderSwitch(n){this.activeProviderSaveError.set(null),this.activeProviderSwitchAnnouncement.set(null);try{let e=await this.dataSource.setActiveProvider(n);this.activeProviderEnvelope.set({activeProvider:e.activeProvider,detected:e.detected,source:e.source});let i=e.switch.dropped;if(i===null)this.activeProviderSwitchAnnouncement.set(this.texts.project.activeProviderSwitchedNoDb);else{let r=this.texts.project;this.activeProviderSwitchAnnouncement.set(`${r.activeProviderSwitchedPrefix} ${i.tableCount} ${r.activeProviderSwitchedSuffix}`)}}catch(e){this.activeProviderSaveError.set(ne(e))}}confirmActiveProviderSwitch(n,e){this.confirmation.confirm({header:this.texts.project.activeProviderConfirmHeader,message:this.texts.project.activeProviderConfirmIntro,acceptLabel:this.texts.project.activeProviderConfirmAccept,rejectLabel:this.texts.project.activeProviderConfirmReject,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{e()},reject:()=>{let i=this.activeProviderEnvelope();i&&this.activeProviderEnvelope.set(U({},i))}})}async runPatch(n,e){if(this.pending().has(n))return!1;let i=new Set(this.pending());i.add(n),this.pending.set(i),this.saveError.set(null);let r=!1;try{let c=await this.dataSource.setProjectPreferences(e);this.preferences.set(c),r=!0}catch(c){if(c instanceof $&&c.code==="confirm-required"){let g=c.paths??[];this.confirmDialog(g,async()=>{try{let w=await this.dataSource.setProjectPreferences(J(U({},e),{confirm:!0}));this.preferences.set(w),this.newReferencePath.set("")}catch(w){this.saveError.set(ne(w))}})}else this.saveError.set(ne(c))}finally{let c=new Set(this.pending());c.delete(n),this.pending.set(c)}return r}async runIgnorePatch(n){let e="ignore.patterns";if(this.pending().has(e))return!1;let i=new Set(this.pending());i.add(e),this.pending.set(i),this.ignoreSaveError.set(null);let r=!1;try{let c=await this.dataSource.setProjectIgnore(n);this.ignoreEnvelope.set(c),r=!0}catch(c){this.ignoreSaveError.set(ne(c))}finally{let c=new Set(this.pending());c.delete(e),this.pending.set(c)}return r}confirmDialog(n,e){this.confirmation.confirm({header:S.project.confirmDialogHeader,message:S.project.confirmDialogIntro+`
|
|
122
|
+
`+n.map(i=>`\u2022 ${i}`).join(`
|
|
123
|
+
`),acceptLabel:S.project.confirmDialogAccept,rejectLabel:S.project.confirmDialogReject,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{e()}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=F({type:t,selectors:[["sm-settings-project"]],inputs:{visible:[1,"visible"]},features:[re([ae])],decls:54,vars:30,consts:[["data-testid","settings-project",1,"settings-project"],["id","settings-project-heading",1,"settings-project__title"],[1,"settings-project__intro"],["severity","error","data-testid","settings-project-active-provider-load-error",3,"closable"],["severity","error","data-testid","settings-project-active-provider-save-error",3,"closable"],["severity","info","data-testid","settings-project-active-provider-switch-announce",3,"closable"],["data-testid","settings-project-active-provider-row",1,"settings-project__list-row"],[1,"settings-project__row-text"],[1,"settings-project__row-label"],[1,"settings-project__row-description"],[1,"settings-project__row-meta"],[1,"settings-project__meta-line"],[1,"settings-project__add-row"],["data-testid","settings-project-active-provider-select",1,"settings-project__provider-select",3,"ngModelChange","ngModel"],["value",""],[3,"value"],["severity","error","data-testid","settings-project-load-error",3,"closable"],["severity","error","data-testid","settings-project-save-error",3,"closable"],["data-testid","settings-project-reference-paths-row",1,"settings-project__list-row"],["role","list",1,"settings-project__path-list"],[1,"settings-project__path-item"],["type","text","pInputText","","data-testid","settings-project-reference-paths-input",3,"ngModelChange","keydown.enter","ngModel","placeholder","disabled"],["severity","primary","size","small","data-testid","settings-project-reference-paths-add",3,"onClick","label","disabled"],["severity","error","data-testid","settings-project-ignore-load-error",3,"closable"],["severity","error","data-testid","settings-project-ignore-save-error",3,"closable"],["data-testid","settings-project-ignore-patterns-row",1,"settings-project__list-row"],["type","text","pInputText","","data-testid","settings-project-ignore-patterns-input",3,"ngModelChange","keydown.enter","ngModel","placeholder","disabled"],["severity","primary","size","small","data-testid","settings-project-ignore-patterns-add",3,"onClick","label","disabled"],[1,"settings-project__path-text"],["severity","secondary","size","small",3,"onClick","label","outlined","disabled"]],template:function(e,i){if(e&1&&(s(0,"section",0)(1,"h2",1),l(2),a(),s(3,"p",2),l(4),a(),_(5,fi,2,3,"p-message",3),_(6,bi,2,3,"p-message",4),_(7,vi,2,2,"p-message",5),s(8,"div",6)(9,"div",7)(10,"div",8),l(11),a(),s(12,"div",9),l(13),a(),s(14,"div",10),_(15,xi,2,1,"span",11)(16,yi,2,1,"span",11)(17,Ci,2,1,"span",11),_(18,Pi,1,1),a()(),s(19,"div",12)(20,"select",13),C("ngModelChange",function(c){return i.onActiveProviderChange(c)}),s(21,"option",14),l(22),a(),T(23,Si,2,2,"option",15,_i),a()()(),_(25,ki,2,3,"p-message",16),_(26,Ei,2,3,"p-message",17),s(27,"div",18)(28,"div",7)(29,"div",8),l(30),a(),s(31,"div",9),l(32),a()(),s(33,"ul",19),T(34,Mi,4,5,"li",20,ee),a(),s(36,"div",12)(37,"input",21),C("ngModelChange",function(c){return i.newReferencePath.set(c)})("keydown.enter",function(){return i.onReferencePathAdd()}),a(),s(38,"p-button",22),C("onClick",function(){return i.onReferencePathAdd()}),a()()(),_(39,Ii,2,3,"p-message",23),_(40,Ti,2,3,"p-message",24),s(41,"div",25)(42,"div",7)(43,"div",8),l(44),a(),s(45,"div",9),l(46),a()(),s(47,"ul",19),T(48,Oi,4,5,"li",20,ee),a(),s(50,"div",12)(51,"input",26),C("ngModelChange",function(c){return i.newIgnorePattern.set(c)})("keydown.enter",function(){return i.onIgnorePatternAdd()}),a(),s(52,"p-button",27),C("onClick",function(){return i.onIgnorePatternAdd()}),a()()(),I(53,"p-confirmdialog"),a()),e&2){let r,c,g,w,G,R,Q,z,Y;v("aria-labelledby","settings-project-heading"),o(2),h(" ",i.texts.project.heading," "),o(2),u(i.texts.project.intro),o(),f((r=i.activeProviderLoadError())?5:-1,r),o(),f((c=i.activeProviderSaveError())?6:-1,c),o(),f((g=i.activeProviderSwitchAnnouncement())?7:-1,g),o(4),u(i.texts.project.activeProviderLabel),o(2),h(" ",i.texts.project.activeProviderDescription," "),o(2),f((w=i.activeProviderSource())==="config"?15:w==="autodetect"?16:w==="none"?17:-1),o(3),f((G=i.activeProviderDetectedLabel())?18:-1,G),o(2),m("ngModel",i.activeProviderValue()),o(2),u(i.texts.project.activeProviderEmptyOption),o(),O(i.knownProviders),o(2),f((R=i.loadError())?25:-1,R),o(),f((Q=i.saveError())?26:-1,Q),o(4),u(i.texts.project.referencePathsLabel),o(2),h(" ",i.texts.project.referencePathsDescription," "),o(2),O(i.referencePaths()),o(3),m("ngModel",i.newReferencePath())("placeholder",i.texts.project.referencePathsPlaceholder)("disabled",i.isPending("scan.referencePaths")),o(),m("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.referencePaths")||i.newReferencePath().trim().length===0),o(),f((z=i.ignoreLoadError())?39:-1,z),o(),f((Y=i.ignoreSaveError())?40:-1,Y),o(4),u(i.texts.project.ignorePatternsLabel),o(2),h(" ",i.texts.project.ignorePatternsDescription," "),o(2),O(i.ignorePatterns()),o(3),m("ngModel",i.newIgnorePattern())("placeholder",i.texts.project.ignorePatternsPlaceholder)("disabled",i.isPending("ignore.patterns")),o(),m("label",i.texts.project.addIgnorePatternLabel)("disabled",i.isPending("ignore.patterns")||i.newIgnorePattern().trim().length===0)}},dependencies:[ce,St,kt,Ee,Pt,le,de,se,Pe,ke,Se,Ie,Me,pe,ge],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-project__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-project__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}[_nghost-%COMP%] p-message[_ngcontent-%COMP%]{display:block;margin-bottom:1rem}.settings-project__row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--p-content-border-color);border-radius:.5rem;background:var(--p-content-background);margin-bottom:1rem}.settings-project__row[_ngcontent-%COMP%] > p-toggleswitch[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center}.settings-project__list-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;padding:.85rem 1rem;border:1px solid var(--p-content-border-color);border-radius:.5rem;background:var(--p-content-background);margin-bottom:1rem}.settings-project__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 1 auto;min-width:0}.settings-project__row-label[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600;color:var(--p-text-color)}.settings-project__row-description[_ngcontent-%COMP%]{font-size:.8rem;color:var(--sm-text-muted);line-height:1.45}.settings-project__path-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}.settings-project__path-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.4rem .6rem;border-radius:.35rem;background:var(--p-content-hover-background)}.settings-project__path-text[_ngcontent-%COMP%]{font-family:var(--p-font-family-mono);font-size:.8rem;word-break:break-all;flex:1 1 auto}.settings-project__add-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.settings-project__add-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1 1 auto;font-family:var(--p-font-family-mono);font-size:.8rem}.settings-project__row-meta[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.15rem;font-size:.75rem;color:var(--p-text-muted-color)}.settings-project__meta-line[_ngcontent-%COMP%]{line-height:1.3}.settings-project__provider-select[_ngcontent-%COMP%]{flex:1 1 auto;font-family:var(--p-font-family);font-size:.85rem;padding:.4rem .6rem;border-radius:.25rem;border:1px solid var(--p-form-field-border-color);background:var(--p-form-field-background);color:var(--p-form-field-color)}"],changeDetection:0})};function ne(t){return t instanceof $||t instanceof Error?t.message:String(t)}var Fi=(t,n)=>n.id;function Ai(t,n){if(t&1){let e=j();s(0,"li")(1,"button",6),C("click",function(){let r=k(e).$implicit,c=d();return E(c.selectSection(r.id))}),s(2,"span",7),l(3),a()()()}if(t&2){let e=n.$implicit,i=d();o(),K("is-active",i.activeSection()===e.id),v("aria-current",i.activeSection()===e.id?"page":null)("data-testid","settings-nav-"+e.id),o(2),u(e.label)}}function Ni(t,n){if(t&1){let e=j();s(0,"sm-settings-plugins",8),C("applied",function(){k(e);let r=d();return E(r.onPluginsApplied())}),a()}if(t&2){let e=d();m("visible",e.pluginsVisible())}}function Li(t,n){if(t&1&&I(0,"sm-settings-general",5),t&2){let e=d();m("visible",e.generalVisible())}}function Vi(t,n){if(t&1&&I(0,"sm-settings-project",5),t&2){let e=d();m("visible",e.projectVisible())}}function Ri(t,n){if(t&1&&I(0,"sm-settings-about",5),t&2){let e=d();m("visible",e.aboutVisible())}}function zi(t,n){t&1&&I(0,"sm-settings-changelog")}var Bi=[{id:"general",label:S.sections.general},{id:"project",label:S.sections.project},{id:"plugins",label:S.sections.plugins},{id:"changelog",label:S.sections.changelog},{id:"about",label:S.sections.about}],dn=class t{visible=V.required();visibleChange=ye();confirmation=P(ae);buffer=P(me);texts=S;sections=Bi;activeSection=p("plugins");pluginsVisible=y(()=>this.visible()&&this.activeSection()==="plugins");generalVisible=y(()=>this.visible()&&this.activeSection()==="general");projectVisible=y(()=>this.visible()&&this.activeSection()==="project");aboutVisible=y(()=>this.visible()&&this.activeSection()==="about");onVisibleChange(n){if(n){this.visibleChange.emit(!0);return}let e=this.buffer.dirtyCount();if(e===0){this.visibleChange.emit(!1);return}this.confirmation.confirm({header:this.texts.confirmCloseTitle,message:this.texts.confirmCloseBody(e),acceptLabel:this.texts.applyAndClose,rejectLabel:this.texts.discardChanges,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{this.buffer.applyChanges()},reject:()=>{this.buffer.discardChanges(),this.visibleChange.emit(!1)}})}selectSection(n){this.activeSection.set(n)}onPluginsApplied(){this.visibleChange.emit(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=F({type:t,selectors:[["sm-settings-modal"]],inputs:{visible:[1,"visible"]},outputs:{visibleChange:"visibleChange"},features:[re([ae])],decls:13,vars:10,consts:[["styleClass","settings-modal__dialog","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"],["type","button",1,"settings-modal__sidebar-item",3,"click"],[1,"settings-modal__sidebar-label"],[3,"applied","visible"]],template:function(e,i){if(e&1&&(s(0,"p-dialog",0),C("visibleChange",function(c){return i.onVisibleChange(c)}),s(1,"div",1)(2,"nav",2)(3,"ul",3),T(4,Ai,4,5,"li",null,Fi),a()(),s(6,"div",4),_(7,Ni,1,1,"sm-settings-plugins",5)(8,Li,1,1,"sm-settings-general",5)(9,Vi,1,1,"sm-settings-project",5)(10,Ri,1,1,"sm-settings-about",5)(11,zi,1,0,"sm-settings-changelog"),a()(),I(12,"p-confirmdialog"),a()),e&2){let r;m("visible",i.visible())("modal",!0)("draggable",!1)("resizable",!1)("closable",!0)("closeOnEscape",!0)("dismissableMask",!0)("header",i.texts.modalTitle),o(2),v("aria-label",i.texts.modalTitle),o(2),O(i.sections),o(3),f((r=i.activeSection())==="plugins"?7:r==="general"?8:r==="project"?9:r==="about"?10:r==="changelog"?11:-1)}},dependencies:[se,ke,Se,Ct,yt,Oe,De,Fe,Ve,Re],styles:["[_nghost-%COMP%]{display:contents;--p-message-error-color: #fca5a5;--p-message-error-background: color-mix(in srgb, #ef4444 14%, transparent);--p-message-error-border-color: color-mix(in srgb, #ef4444 45%, transparent)}[_nghost-%COMP%] .settings-modal__dialog{width:1024px;height:720px;max-width:92vw;max-height:90vh}[_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-label[_ngcontent-%COMP%]{flex:1;font-size:.9rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.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{dn as SettingsModal};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import{Aa as l,Gb as $,Gc as G,Hc as C,I as b,Ic as pe,J as L,Ja as f,Jc as U,L as A,Mc as Y,N as m,Nc as Z,Pb as ae,S as h,Sa as r,Sb as ce,T as y,Ta as u,Tc as g,U as D,Ua as _,Va as F,Wa as X,Xa as J,Ya as ee,Yc as le,Za as k,_ as W,_a as S,bc as B,cb as E,db as ie,eb as M,fa as v,gb as c,hb as P,hc as Q,ib as R,jb as j,ka as ne,kc as K,lb as T,ld as de,mb as w,mc as H,na as s,nc as q,qb as oe,tb as re,ub as p,va as I,vb as z,wa as V,wb as O,xc as se,ya as N,za as x}from"./chunk-YXFKPYK3.js";var me=class e{loader=m(de);bySeverity=ce(()=>{let a=this.loader.scan(),t=new Set,i=new Set;if(!a)return{errors:t,warns:i};for(let n of a.issues){let o=n.severity==="error"?t:n.severity==="warn"?i:null;if(o)for(let d of n.nodeIds)o.add(d)}return{errors:t,warns:i}});static \u0275fac=function(t){return new(t||e)};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})};var Je={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 ge=`
|
|
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,a){if(e&1&&F(0,"span",4),e&2){let t=c(2);p(t.cx("icon")),r("ngClass",t.icon)("pBind",t.ptm("icon"))}}function we(e,a){if(e&1&&(k(0),l(1,Te,1,4,"span",3),S()),e&2){let t=c();s(),r("ngIf",t.icon)}}function ke(e,a){}function Se(e,a){e&1&&l(0,ke,0,0,"ng-template")}function Ee(e,a){if(e&1&&(u(0,"span",2),l(1,Se,1,0,null,5),_()),e&2){let t=c();p(t.cx("icon")),r("pBind",t.ptm("icon")),s(),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"},fe=(()=>{class e extends U{name="tag";style=ge;classes=Me;static \u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();var ue=new A("TAG_INSTANCE"),Be=(()=>{class e extends Z{componentName="Tag";$pcTag=m(ue,{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(fe);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=v(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["p-tag"]],contentQueries:function(i,n,o){if(i&1&&j(o,Ie,4)(o,G,4),i&2){let d;T(d=w())&&(n.iconTemplate=d.first),T(d=w())&&(n.templates=d)}},hostVars:3,hostBindings:function(i,n){i&2&&(f("data-p",n.dataP),p(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[2,"rounded","rounded",B]},features:[$([fe,{provide:ue,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(),R(0),l(1,we,2,1,"ng-container",0)(2,Ee,2,4,"span",1),u(3,"span",2),z(4),_()),i&2&&(s(),r("ngIf",!n.iconTemplate&&!n._iconTemplate),s(),r("ngIf",n.iconTemplate||n._iconTemplate),s(),p(n.cx("label")),r("pBind",n.ptm("label")),s(),O(n.value))},dependencies:[q,Q,K,H,C,g],encapsulation:2,changeDetection:0})}return e})(),ht=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=V({type:e});static \u0275inj=L({imports:[Be,C,C]})}return e})();var Ct={stable:"success",experimental:"info",deprecated:"warn"},bt={invokes:"warn",references:"info",mentions:"secondary",supersedes:"success"};function Le(e){return e>=.75?"high":e>=.45?"medium":"low"}function It(e){let a=Le(e);return a==="high"?"success":a==="medium"?"info":"warn"}var Ae=["data-p-icon","times-circle"],_e=(()=>{class e extends le{pathId;onInit(){this.pathId="url(#"+se()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["","data-p-icon","times-circle"]],features:[x],attrs:Ae,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&&(D(),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),s(3),ie("id",n.pathId))},encapsulation:2})}return e})();var he=`
|
|
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 De=["removeicon"],Ve=["*"];function Ne(e,a){if(e&1){let t=E();u(0,"img",4),M("error",function(n){h(t);let o=c();return y(o.imageError(n))}),_()}if(e&2){let t=c();p(t.cx("image")),r("pBind",t.ptm("image"))("src",t.image,ne)("alt",t.alt)}}function Fe(e,a){if(e&1&&F(0,"span",6),e&2){let t=c(2);p(t.icon),r("pBind",t.ptm("icon"))("ngClass",t.cx("icon"))}}function Pe(e,a){if(e&1&&l(0,Fe,1,4,"span",5),e&2){let t=c();r("ngIf",t.icon)}}function Re(e,a){if(e&1&&(u(0,"div",7),z(1),_()),e&2){let t=c();p(t.cx("label")),r("pBind",t.ptm("label")),s(),O(t.label)}}function je(e,a){if(e&1){let t=E();u(0,"span",11),M("click",function(n){h(t);let o=c(3);return y(o.close(n))})("keydown",function(n){h(t);let o=c(3);return y(o.onKeydown(n))}),_()}if(e&2){let t=c(3);p(t.removeIcon),r("pBind",t.ptm("removeIcon"))("ngClass",t.cx("removeIcon")),f("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel)}}function ze(e,a){if(e&1){let t=E();D(),u(0,"svg",12),M("click",function(n){h(t);let o=c(3);return y(o.close(n))})("keydown",function(n){h(t);let o=c(3);return y(o.onKeydown(n))}),_()}if(e&2){let t=c(3);p(t.cx("removeIcon")),r("pBind",t.ptm("removeIcon")),f("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel)}}function Oe(e,a){if(e&1&&(k(0),l(1,je,1,6,"span",9)(2,ze,1,5,"svg",10),S()),e&2){let t=c(2);s(),r("ngIf",t.removeIcon),s(),r("ngIf",!t.removeIcon)}}function $e(e,a){}function Qe(e,a){e&1&&l(0,$e,0,0,"ng-template")}function Ke(e,a){if(e&1){let t=E();u(0,"span",13),M("click",function(n){h(t);let o=c(2);return y(o.close(n))})("keydown",function(n){h(t);let o=c(2);return y(o.onKeydown(n))}),l(1,Qe,1,0,null,14),_()}if(e&2){let t=c(2);p(t.cx("removeIcon")),r("pBind",t.ptm("removeIcon")),f("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel),s(),r("ngTemplateOutlet",t.removeIconTemplate||t._removeIconTemplate)}}function He(e,a){if(e&1&&(k(0),l(1,Oe,3,2,"ng-container",3)(2,Ke,2,6,"span",8),S()),e&2){let t=c();s(),r("ngIf",!t.removeIconTemplate&&!t._removeIconTemplate),s(),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"},ye=(()=>{class e extends U{name="chip";style=he;classes=Ge;inlineStyles=qe;static \u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();var ve=new A("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(pe.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(ye);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=v(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["p-chip"]],contentQueries:function(i,n,o){if(i&1&&j(o,De,4)(o,G,4),i&2){let d;T(d=w())&&(n.removeIconTemplate=d.first),T(d=w())&&(n.templates=d)}},hostVars:6,hostBindings:function(i,n){i&2&&(f("aria-label",n.label)("data-p",n.dataP),re(n.sx("root")),p(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:[$([ye,{provide:ve,useExisting:e},{provide:Y,useExisting:e}]),N([g]),x],ngContentSelectors:Ve,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(),R(0),l(1,Ne,1,5,"img",1)(2,Pe,1,1,"ng-template",null,0,ae)(4,Re,2,4,"div",2)(5,He,3,2,"ng-container",3)),i&2){let o=oe(3);s(),r("ngIf",n.image)("ngIfElse",o),s(3),r("ngIf",n.label),s(),r("ngIf",n.removable)}},dependencies:[q,Q,K,H,_e,C,g],encapsulation:2,changeDetection:0})}return e})(),Ht=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=V({type:e});static \u0275inj=L({imports:[Ue,C,C]})}return e})();export{me as a,Je as b,Ue as c,Ht as d,Be as e,ht as f,Ct as g,bt as h,Le as i,It as j};
|