@skill-map/cli 0.20.1 → 0.21.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-tutorial.md +93 -14
- package/dist/cli.js +1332 -339
- package/dist/cli.js.map +1 -1
- package/dist/index.js +300 -238
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +91 -11
- package/dist/kernel/index.js +300 -238
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +13 -0
- package/dist/ui/chunk-25AWRVIC.js +965 -0
- package/dist/ui/chunk-6FTVUS57.js +123 -0
- package/dist/ui/{chunk-4NLC7QD2.js → chunk-GXRWH2VL.js} +1 -1
- package/dist/ui/chunk-MF2M6GYF.js +1 -0
- package/dist/ui/{chunk-EZZF5RL5.js → chunk-MPMBTIUR.js} +2 -2
- package/dist/ui/chunk-N366HMME.js +1 -0
- package/dist/ui/{chunk-6GUHSAP5.js → chunk-OPPQMCMQ.js} +1 -1
- package/dist/ui/chunk-V3SZQETX.js +61 -0
- package/dist/ui/{chunk-E4ALROJS.js → chunk-VVOEPDQD.js} +1 -1
- package/dist/ui/{chunk-6BZZQV42.js → chunk-W2EFGI3J.js} +1 -1
- package/dist/ui/chunk-W62WVNU4.js +251 -0
- package/dist/ui/index.html +2 -10
- package/dist/ui/main-NIYE2VFS.js +2 -0
- package/dist/ui/media/fa-brands-400-AHOAZHCU.woff2 +0 -0
- package/dist/ui/media/fa-regular-400-VRZYIBIZ.woff2 +0 -0
- package/dist/ui/media/fa-solid-900-MDEYK55F.woff2 +0 -0
- package/dist/ui/media/fa-v4compatibility-ETEVP6IB.woff2 +0 -0
- package/dist/ui/styles-M2FETVAG.css +1 -0
- package/migrations/001_initial.sql +13 -0
- package/package.json +2 -2
- package/dist/ui/chunk-FWX4RRDF.js +0 -125
- package/dist/ui/chunk-GGMXMGRJ.js +0 -1
- package/dist/ui/chunk-K5PULFK7.js +0 -1
- package/dist/ui/chunk-OJ6W6OIB.js +0 -61
- package/dist/ui/chunk-PTCD42GB.js +0 -247
- package/dist/ui/chunk-ZSRIBCAW.js +0 -965
- package/dist/ui/main-5FJWWH5I.js +0 -1
- package/dist/ui/styles-VJ5Q6D2X.css +0 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import{c as y,d as ft,e as xt,f as vt}from"./chunk-N366HMME.js";import{a as dt,b as ct,c as pe,d as me,e as mt}from"./chunk-GXRWH2VL.js";import{a as _e,b as he,c as ut,d as _t,e as ht,f as bt,g as Z,h as ee}from"./chunk-VVOEPDQD.js";import{e as gt,f as ue,h as X,i as Y,j as J,l as pt}from"./chunk-OPPQMCMQ.js";import{$a as qe,Aa as Ke,Gb as q,Gc as ot,Hb as Je,Hc as ce,I as Ae,Ib as Ze,J as Re,Ja as u,Jc as rt,K as Le,M as Ve,Ma as h,Na as b,O as k,Oa as Ue,Oc as at,Pa as G,Qa as I,Ra as O,S,Sa as f,Sb as v,T as E,Ta as l,Ua as a,Uc as st,Va as P,Vb as de,Vc as re,Wa as g,Wb as D,Wc as lt,Xa as p,Xb as et,Ya as L,Z as ze,ba as x,bc as Me,bd as ge,ca as F,cb as T,cc as tt,cd as W,db as A,ea as Se,eb as w,gb as d,gd as z,hd as R,ia as Be,ja as oe,jb as Qe,kb as We,lb as ae,mb as se,na as o,nc as nt,ob as Xe,oc as it,pb as Ye,rb as Ee,sb as V,tb as le,ub as K,va as M,vb as s,wa as $e,wb as m,xb as _,ya as He,yb as j,za as Ge,zc as Q}from"./chunk-25AWRVIC.js";import"./chunk-3R7E3HPC.js";import{a as $,b as H}from"./chunk-Q7L6LLAK.js";function At(t,n){if(t&1&&(g(0,"p",6),s(1),p()),t&2){let e=d();o(),j(" ",e.texts.aboutErrorPrefix," ",e.loadError()," ")}}var be=class t{dataSource=k(z);updateCheck=k(xt);theme=k(vt);visible=D.required();texts=y;health=x(null);loadError=x(null);markSrc=v(()=>this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");cliVersion=v(()=>this.updateCheck.current()??this.health()?.implVersion??this.texts.aboutUnknown);specVersion=v(()=>this.health()?.specVersion??this.texts.aboutLoading);schemaVersion=v(()=>this.health()?.schemaVersion??this.texts.aboutLoading);scope=v(()=>this.health()?.scope??this.texts.aboutLoading);cwd=v(()=>this.health()?.cwd??this.texts.aboutLoading);dbDisplay=v(()=>{let n=this.health();return n?this.texts.aboutDbValue(n.db,Rt(n.dbPath,n.cwd)):this.texts.aboutLoading});homeDir=v(()=>this.health()?.homeDir??this.texts.aboutLoading);constructor(){F(()=>{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 R||n instanceof Error?n.message:String(n);this.loadError.set(e)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["sm-settings-about"]],inputs:{visible:[1,"visible"]},decls:67,vars:29,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-scope",1,"settings-about__value"],["data-testid","settings-about-cwd",1,"settings-about__value"],["data-testid","settings-about-db",1,"settings-about__value"],["data-testid","settings-about-home",1,"settings-about__value"]],template:function(e,i){e&1&&(g(0,"section",0)(1,"header",1),L(2,"img",2),g(3,"div",3)(4,"h2",4),s(5),p(),g(6,"p",5),s(7),p()()(),h(8,At,2,2,"p",6),g(9,"a",7),L(10,"i",8),g(11,"span",9)(12,"span",10),s(13),p(),g(14,"span",11),s(15),p()(),g(16,"span",12),L(17,"i",13),s(18),p()(),g(19,"dl",14)(20,"div",15)(21,"dt",16),s(22),p(),g(23,"dd",17)(24,"a",18),s(25),p()()(),g(26,"div",15)(27,"dt",16),s(28),p(),g(29,"dd",17)(30,"a",19),s(31),p()()(),g(32,"div",15)(33,"dt",16),s(34),p(),g(35,"dd",20),s(36),p()(),g(37,"div",15)(38,"dt",16),s(39),p(),g(40,"dd",21),s(41),p()(),g(42,"div",15)(43,"dt",16),s(44),p(),g(45,"dd",22),s(46),p()(),g(47,"div",15)(48,"dt",16),s(49),p(),g(50,"dd",23),s(51),p()(),g(52,"div",15)(53,"dt",16),s(54),p(),g(55,"dd",24),s(56),p()(),g(57,"div",15)(58,"dt",16),s(59),p(),g(60,"dd",25),s(61),p()(),g(62,"div",15)(63,"dt",16),s(64),p(),g(65,"dd",26),s(66),p()()()()),e&2&&(o(2),A("src",i.markSrc(),oe),o(3),_(" ",i.texts.aboutHeading," "),o(2),m(i.texts.aboutIntro),o(),b(i.loadError()?8:-1),o(),A("href",i.texts.aboutGithubUrl,oe),u("aria-label",i.texts.aboutStarA11y),o(4),m(i.texts.aboutStarHeading),o(2),m(i.texts.aboutStarBody),o(3),_(" ",i.texts.aboutStarCta," "),o(4),m(i.texts.aboutWebsiteLabel),o(2),A("href",i.texts.aboutWebsiteUrl,oe),o(),m(i.texts.aboutWebsiteUrl),o(3),m(i.texts.aboutGithubLabel),o(2),A("href",i.texts.aboutGithubUrl,oe),o(),m(i.texts.aboutGithubUrl),o(3),m(i.texts.aboutCliLabel),o(2),_(" ",i.cliVersion()," "),o(3),m(i.texts.aboutSpecLabel),o(2),_(" ",i.specVersion()," "),o(3),m(i.texts.aboutSchemaLabel),o(2),_(" ",i.schemaVersion()," "),o(3),m(i.texts.aboutScopeLabel),o(2),_(" ",i.scope()," "),o(3),m(i.texts.aboutFolderLabel),o(2),_(" ",i.cwd()," "),o(3),m(i.texts.aboutDbLabel),o(2),_(" ",i.dbDisplay()," "),o(3),m(i.texts.aboutHomeLabel),o(2),_(" ",i.homeDir()," "))},styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-about[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.settings-about__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.settings-about__logo[_ngcontent-%COMP%]{width:64px;height:64px;flex-shrink:0}.settings-about__heading-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:0}.settings-about__title[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:600;margin:0}.settings-about__intro[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);font-size:.875rem}.settings-about__error[_ngcontent-%COMP%]{margin:0;padding:.5rem .75rem;border-radius:var(--p-border-radius);background:var(--p-message-error-background);color:var(--p-message-error-color);font-size:.875rem}.settings-about__list[_ngcontent-%COMP%]{margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-about__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:180px 1fr;align-items:baseline;gap:.75rem;padding:.5rem .75rem;border-radius:var(--p-border-radius)}.settings-about__row[_ngcontent-%COMP%]:nth-child(odd){background:var(--p-content-hover-background)}.settings-about__label[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--p-text-muted-color)}.settings-about__value[_ngcontent-%COMP%]{margin:0;font-family:var(--p-monospace-font-family, ui-monospace, monospace);font-size:.875rem;word-break:break-all}.settings-about__link[_ngcontent-%COMP%]{color:var(--p-primary-color);text-decoration:none}.settings-about__link[_ngcontent-%COMP%]:hover, .settings-about__link[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.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:999px;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 Rt(t,n){if(!t||!n)return t;let e=n.replace(/[/\\]+$/,"");return t.startsWith(e)?t.slice(e.length).replace(/^[/\\]+/,""):t}var yt={schemaVersion:1,entries:[{version:"0.21.0",date:"2026-05-10",kind:"user-facing",highlights:[{body:"Expanded node cards now show the file path above the description and a provider chip (Claude, Gemini, Open Skills). Favorite toggle uses a star instead of a heart.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"Disabling a plugin now removes its card chips from the UI immediately. Previously the chips lingered until the next `sm scan`, making the toggle look broken.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"The card footer is cleaner: the three outgoing counters (`@`-mentions, markdown links, `/`-commands) share a single `\u2193` arrow glyph on the left, and the URL counter keeps its link glyph on the right. Three legacy hardcoded chips (in / out links, external URLs) were removed.",packages:["@skill-map/cli"]},{body:"`sm plugins show core/<ext>` now resolves like `enable`/`disable` do, and `sm plugins list` marks individually-disabled extensions with `\u2715`. The `sm tutorial` content is realigned with the v0.20.0 verbs (no more `sm graph --root` / `sm export --kind` / `kind: hook` claims).",packages:["@skill-map/cli"]},{body:"The view slot `card.footer.left.counter` was renamed to `card.footer.left` \u2014 symmetrical with `card.footer.right`. Plugin authors using the old literal in `plugin.json` need to update it; the scaffolder emits the new name automatically.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"The topbar now shows the full project path under the **skill-map** wordmark, so a screenshot or a quick glance at the UI is always self-identifying. Previously only the last folder segment was shown, and projects scanned from their own root saw no path at all.",packages:["@skill-map/cli"]}]},{version:"0.20.0",date:"2026-05-10",kind:"user-facing",highlights:[{body:'**Update-check is now a user preference.** Whether you see "Update available" notifications no longer depends on the project you are scanning. The toggle moved to **Settings \u2192 General**; the CLI equivalent is `sm config set -g updateCheck.enabled <bool>`.',packages:["@skill-map/cli"]},{body:"**`sm scan` now flags orphan job files.** A new check scans `.skill-map/jobs/` for MD files that no DB row references and reports each as a `warn` issue. To delete the files, run `sm bump prune --orphan-files` (unchanged).",packages:["@skill-map/cli"]},{body:"**`sm scan -g` now scans your HOME directory.** Run `sm scan -g` (without positional roots) to walk every active provider's HOME dir \u2014 typically `~/.claude`, `~/.gemini`, `~/.agents` \u2014 using the global config + DB.",packages:["@skill-map/cli"]},{body:"**Three new privacy-sensitive project settings** in Settings \u2192 Project: *include HOME provider directories*, *extra scan roots*, and *reference paths for link validation*. Every change that expands disk access beyond your project root requires explicit confirmation.",packages:["@skill-map/cli"]},{body:'**Reset Layout uses a proper dialog.** The "Reset all node positions" action used to fire a browser-native `confirm()` popup; it now uses the in-app dialog style with a destructive-styled "Reset" button and a "Cancel" escape.',packages:["@skill-map/cli"]},{body:'**Plugins can be locked by the host.** Settings \u2192 Plugins shows a "Locked" pill on plugins marked as mandatory (today only `core/markdown`, the universal `.md` fallback). The toggle stays visible but disabled, with a tooltip explaining why.',packages:["@skill-map/cli"]}]},{version:"0.19.0",date:"2026-05-09",kind:"user-facing",highlights:[{body:"**Settings \u2192 Changelog.** The Changelog tab in Settings now lists what's new in skill-map: one entry per release, newest first, bullet points for the user-facing changes. Bundled with the demo so it's available offline too.",packages:["@skill-map/cli"]},{body:"**Tags zoom-to-matching.** Clicking a tag chip in the inspector now pans + zooms the graph to fit every node that carries the tag. Click the same chip again to clear the selection and return to the previous view.",packages:["@skill-map/cli"]}]},{version:"0.18.0",date:"2026-05-07",kind:"user-facing",highlights:[{body:"**Bump sidecars in batch.** New `sm bump --pending` walks every node whose `.sm` sidecar reports drift and refreshes them in one pass. Single-node `sm bump <path>` also lands.",packages:["@skill-map/cli"]},{body:'**Annotation field dropped: `released`.** Redundant with `audit.lastBumpedAt`. The inspector and node card now read the activity timestamp from the `audit:` block \u2014 no more confusion between "officially released" and "last bumped".',packages:["@skill-map/cli"]}]},{version:"0.17.0",date:"2026-04-29",kind:"user-facing",highlights:[{body:"**Per-node chips in the graph card and inspector.** Plugins can now decorate nodes with counters, alerts, and key-value rows. Two come built-in: external-URL count per node, and in/out link counts.",packages:["@skill-map/cli"]},{body:"**Multi-provider graphs.** Claude, Gemini, and the open-standard `agent-skills` flavour now coexist in the same graph. Cards paint with each Provider's accent; the kind palette in the graph view filters on the actual node kind names.",packages:["@skill-map/cli"]}]}]};var Ct=yt;var Vt=(t,n)=>n.version;function zt(t,n){if(t&1&&(g(0,"p",3),s(1),p()),t&2){let e=d();o(),_(" ",e.texts.changelogEmpty," ")}}function Bt(t,n){if(t&1&&(g(0,"p",10),s(1),p()),t&2){let e=d(3);o(),_(" ",e.texts.changelogInternalRelease," ")}}function $t(t,n){if(t&1&&(g(0,"li",15),s(1),p()),t&2){let e=n.$implicit;o(),m(e)}}function Ht(t,n){if(t&1&&(g(0,"ul",14),I(1,$t,2,1,"li",15,G),p()),t&2){let e=d().$implicit,i=d(4);u("aria-label",i.texts.changelogAffectedPackages),o(),O(e.packages)}}function Gt(t,n){if(t&1&&(g(0,"li",12),L(1,"div",13),h(2,Ht,3,1,"ul",14),p()),t&2){let e=n.$implicit;o(),A("innerHTML",e.bodyHtml,Be),o(),b(e.packages.length?2:-1)}}function Kt(t,n){if(t&1&&(g(0,"ul",11),I(1,Gt,3,2,"li",12,Ue),p()),t&2){let e=d().$implicit;o(),O(e.highlights)}}function Ut(t,n){if(t&1&&(g(0,"li",6)(1,"header",7)(2,"span",8),s(3),p(),g(4,"span",9),s(5),p()(),h(6,Bt,2,1,"p",10)(7,Kt,3,0,"ul",11),p()),t&2){let e=n.$implicit;V("settings-changelog__entry--internal",e.kind==="internal"),u("data-testid","settings-changelog-entry-"+e.version),o(3),_("v",e.version),o(2),m(e.date),o(),b(e.kind==="internal"?6:7)}}function qt(t,n){if(t&1&&(g(0,"ol",4),I(1,Ut,8,6,"li",5,Vt),p()),t&2){let e=d();o(),O(e.entries())}}var fe=class t{markdown=k(mt);texts=y;entries=x([]);hasEntries=v(()=>this.entries().length>0);ngOnInit(){this.renderAll()}async renderAll(){let n=[];for(let e of Ct.entries){let i=[];for(let r of e.highlights)i.push({bodyHtml:await this.markdown.render(r.body),packages:r.packages});n.push({version:e.version,date:this.formatDate(e.date),kind:e.kind,highlights:i})}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=M({type:t,selectors:[["sm-settings-changelog"]],decls:7,vars:4,consts:[["data-testid","settings-changelog",1,"settings-changelog"],["id","settings-changelog-heading",1,"settings-changelog__title"],[1,"settings-changelog__intro"],["data-testid","settings-changelog-empty",1,"settings-changelog__empty"],["role","list",1,"settings-changelog__list"],[1,"settings-changelog__entry",3,"settings-changelog__entry--internal"],[1,"settings-changelog__entry"],[1,"settings-changelog__entry-header"],[1,"settings-changelog__version"],[1,"settings-changelog__date"],[1,"settings-changelog__internal-body"],["role","list",1,"settings-changelog__highlights"],[1,"settings-changelog__highlight"],[1,"settings-changelog__highlight-body",3,"innerHTML"],["role","list",1,"settings-changelog__packages"],[1,"settings-changelog__package"]],template:function(e,i){e&1&&(g(0,"section",0)(1,"h2",1),s(2),p(),g(3,"p",2),s(4),p(),h(5,zt,2,1,"p",3)(6,qt,3,0,"ol",4),p()),e&2&&(u("aria-labelledby","settings-changelog-heading"),o(2),_(" ",i.texts.changelogHeading," "),o(2),m(i.texts.changelogIntro),o(),b(i.hasEntries()?6:5))},styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-changelog__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}.settings-changelog__empty[_ngcontent-%COMP%]{margin:1.5rem 0 0;font-size:.9rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.25rem}.settings-changelog__entry[_ngcontent-%COMP%]{border-left:2px solid var(--p-primary-color);padding:.25rem 0 .25rem .85rem}.settings-changelog__entry--internal[_ngcontent-%COMP%]{border-left-color:var(--sm-border)}.settings-changelog__entry-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.6rem;margin-bottom:.45rem}.settings-changelog__version[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.95rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__date[_ngcontent-%COMP%]{font-size:.78rem;color:var(--sm-text-muted)}.settings-changelog__internal-body[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__highlights[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}.settings-changelog__highlight[_ngcontent-%COMP%]{font-size:.88rem;line-height:1.5;color:var(--p-text-color)}.settings-changelog__highlight-body[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p+p{margin-top:.45rem}[_nghost-%COMP%] .settings-changelog__highlight-body code{font-family:var(--sm-font-mono);font-size:.82rem;padding:.05rem .3rem;border-radius:3px;background:var(--sm-bg-hover);color:var(--p-text-color)}[_nghost-%COMP%] .settings-changelog__highlight-body a{color:var(--p-primary-color);text-decoration:underline}[_nghost-%COMP%] .settings-changelog__highlight-body strong{font-weight:600}.settings-changelog__packages[_ngcontent-%COMP%]{list-style:none;margin:.4rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem}.settings-changelog__package[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.7rem;padding:.1rem .4rem;border-radius:3px;background:var(--sm-bg-hover);color:var(--sm-text-muted);border:1px solid var(--sm-border);line-height:1.4}"],changeDetection:0})};var xe=class t{sectionId=D.required();sectionLabel=D.required();texts=y;headingId=v(()=>`settings-coming-soon-${this.sectionId()}-heading`);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["sm-settings-coming-soon"]],inputs:{sectionId:[1,"sectionId"],sectionLabel:[1,"sectionLabel"]},decls:6,vars:5,consts:[[1,"settings-coming-soon"],["aria-hidden","true",1,"fa-solid","fa-clock","settings-coming-soon__icon"],[1,"settings-coming-soon__title",3,"id"],[1,"settings-coming-soon__body"]],template:function(e,i){e&1&&(g(0,"section",0),L(1,"i",1),g(2,"h2",2),s(3),p(),g(4,"p",3),s(5),p()()),e&2&&(u("aria-labelledby",i.headingId())("data-testid","settings-coming-soon-"+i.sectionId()),o(2),A("id",i.headingId()),o(),_(" ",i.texts.comingSoonTitle," "),o(2),_(" ",i.texts.comingSoonBody(i.sectionLabel())," "))},styles:["[_nghost-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;padding:1.5rem}.settings-coming-soon[_ngcontent-%COMP%]{max-width:420px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem;color:var(--p-text-muted-color)}.settings-coming-soon__icon[_ngcontent-%COMP%]{font-size:2rem;opacity:.6}.settings-coming-soon__title[_ngcontent-%COMP%]{font-size:1.05rem;font-weight:600;margin:0;color:var(--p-text-color)}.settings-coming-soon__body[_ngcontent-%COMP%]{margin:0;font-size:.875rem;line-height:1.5}"],changeDetection:0})};var wt=`
|
|
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 Qt=["handle"],Wt=["input"],Xt=t=>({checked:t});function Yt(t,n){t&1&&qe(0)}function Jt(t,n){if(t&1&&Ke(0,Yt,1,0,"ng-container",3),t&2){let e=d();f("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",Ze(2,Xt,e.checked()))}}var Zt=`
|
|
116
|
+
${wt}
|
|
117
|
+
|
|
118
|
+
p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch-slider {
|
|
119
|
+
border-color: dt('toggleswitch.invalid.border.color');
|
|
120
|
+
}
|
|
121
|
+
`,en={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 rt{name="toggleswitch";style=Zt;classes=tn;inlineStyles=en;static \u0275fac=(()=>{let e;return function(r){return(e||(e=Se(t)))(r||t)}})();static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();var Pt=new Ve("TOGGLESWITCH_INSTANCE"),nn={provide:gt,useExisting:Ae(()=>B),multi:!0},B=(()=>{class t extends pt{componentName="ToggleSwitch";$pcToggleSwitch=k(Pt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=k(re,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;tabindex;inputId;readonly;trueValue=!0;falseValue=!1;ariaLabel;size=D();ariaLabelledBy;autofocus;onChange=new ze;input;handleTemplate;_handleTemplate;focused=!1;_componentStyle=k(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=Se(t)))(r||t)}})();static \u0275cmp=M({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,r,c){if(i&1&&Qe(c,Qt,4)(c,ot,4),i&2){let C;ae(C=se())&&(r.handleTemplate=C.first),ae(C=se())&&(r.templates=C)}},viewQuery:function(i,r){if(i&1&&We(Wt,5),i&2){let c;ae(c=se())&&(r.input=c.first)}},hostVars:7,hostBindings:function(i,r){i&1&&w("click",function(C){return r.onHostClick(C)}),i&2&&(u("data-p-checked",r.checked())("data-p-disabled",r.$disabled())("data-p",r.dataP),le(r.sx("root")),K(r.cn(r.cx("root"),r.styleClass)))},inputs:{styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",tt],inputId:"inputId",readonly:[2,"readonly","readonly",Me],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",size:[1,"size"],ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",Me]},outputs:{onChange:"onChange"},features:[q([nn,kt,{provide:Pt,useExisting:t},{provide:at,useExisting:t}]),He([re]),Ge],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&&(l(0,"input",1,0),w("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),a(),l(2,"div",2)(3,"div",2),h(4,Jt,1,4,"ng-container"),a()()),i&2&&(K(r.cx("input")),f("checked",r.checked())("pAutoFocus",r.autofocus)("pBind",r.ptm("input")),u("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),K(r.cx("slider")),f("pBind",r.ptm("slider")),u("data-p",r.dataP),o(),K(r.cx("handle")),f("pBind",r.ptm("handle")),u("data-p",r.dataP),o(),b(r.handleTemplate||r._handleTemplate?4:-1))},dependencies:[it,nt,st,ce,lt,re],encapsulation:2,changeDetection:0})}return t})(),ne=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=$e({type:t});static \u0275inj=Le({imports:[B,ce,ce]})}return t})();var on=(t,n)=>n.key;function rn(t,n){if(t&1&&(l(0,"p-message",3),s(1),a()),t&2){let e=d();f("closable",!1),o(),j(" ",e.texts.general.loadErrorPrefix," ",n," ")}}function an(t,n){if(t&1&&(l(0,"p-message",4),s(1),a()),t&2){let e=d();f("closable",!1),o(),j(" ",e.texts.general.saveErrorPrefix," ",n," ")}}function sn(t,n){if(t&1){let e=T();l(0,"li",6)(1,"div",7)(2,"div",8),s(3),a(),l(4,"div",9),s(5),a()(),l(6,"p-toggleswitch",10),w("ngModelChange",function(r){let c=S(e).$implicit,C=d();return E(C.onToggle(c,r))}),a()()}if(t&2){let e=n.$implicit,i=d();u("data-testid","settings-general-row-"+e.key),o(3),m(i.toggleLabel(e.key)),o(2),_(" ",i.toggleDescription(e.key)," "),o(),f("ngModel",i.valueOf(e))("disabled",i.loading()||i.isPending(e.key)||i.preferences()===null),u("data-testid","settings-general-toggle-"+e.key)}}var ln=[{key:"updateCheck.enabled",read:t=>t.updateCheck.enabled,patch:t=>({updateCheck:{enabled:t}})}],ve=class t{dataSource=k(z);visible=D.required();texts=y;toggles=ln;loading=x(!1);loadError=x(null);saveError=x(null);preferences=x(null);pending=x(new Set);constructor(){F(()=>{this.visible()&&this.refresh()})}toggleLabel(n){return y.general.toggles[n].label}toggleDescription(n){return y.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)}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(St(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(St(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=M({type:t,selectors:[["sm-settings-general"]],inputs:{visible:[1,"visible"]},decls:10,vars:5,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__row-text"],[1,"settings-general__row-label"],[1,"settings-general__row-description"],[3,"ngModelChange","ngModel","disabled"]],template:function(e,i){if(e&1&&(l(0,"section",0)(1,"h2",1),s(2),a(),l(3,"p",2),s(4),a(),h(5,rn,2,3,"p-message",3),h(6,an,2,3,"p-message",4),l(7,"ul",5),I(8,sn,7,6,"li",6,on),a()()),e&2){let r,c;u("aria-labelledby","settings-general-heading"),o(2),_(" ",i.texts.general.heading," "),o(2),m(i.texts.general.intro),o(),b((r=i.loadError())?5:-1,r),o(),b((c=i.saveError())?6:-1,c),o(2),O(i.toggles)}},dependencies:[J,X,Y,ee,Z,ne,B],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}"],changeDetection:0})};function St(t){return t instanceof R||t instanceof Error?t.message:String(t)}var Ie={provider:"#7C3AED",extractor:"#A78BFA",analyzer:"#5FD17C",action:"#00C853",formatter:"#5BC0EB",hook:"#FFB627"};function Tt(t){let n=t.toLowerCase();return Ie[n]??"currentColor"}var jt=(t,n)=>n.id;function gn(t,n){if(t&1){let e=T();l(0,"button",15),w("click",function(){let r=S(e).$implicit,c=d();return E(c.setKindFilter(r))}),s(1),a()}if(t&2){let e=n.$implicit,i=d();Ee("--kind-color",e==="all"?null:i.kindTint(e)),V("is-active",i.isKindFilterActive(e))("is-all",e==="all"),u("aria-pressed",i.isKindFilterActive(e))("aria-label",i.texts.pluginsKindFilterOptionA11y(e,!i.isKindFilterActive(e)))("data-testid","settings-plugins-kind-chip-"+e),o(),_(" ",e==="all"?i.texts.pluginsKindFilterAll:e," ")}}function pn(t,n){if(t&1&&(l(0,"p-message",10),s(1),a()),t&2){let e=d();f("closable",!1),o(),_(" ",e.texts.unsavedChangesMessage(e.dirtyIds().size)," ")}}function mn(t,n){if(t&1&&(l(0,"p",11),P(1,"i",16),s(2),a()),t&2){let e=d();o(2),_(" ",e.texts.loading," ")}}function un(t,n){if(t&1&&(l(0,"p-message",12),s(1),a()),t&2){let e=d();f("closable",!1),o(),j(" ",e.texts.errorPrefix," ",e.loadError()," ")}}function _n(t,n){if(t&1&&(l(0,"p",13),s(1),a()),t&2){let e=d();o(),_(" ",e.texts.empty," ")}}function hn(t,n){if(t&1){let e=T();l(0,"p-message",21),w("onClose",function(){S(e);let r=d(2);return E(r.toggleError.set(null))}),s(1),a()}if(t&2){let e=d(2);f("closable",!0),o(),j(" ",e.texts.toggleErrorPrefix," ",e.toggleError()," ")}}function bn(t,n){if(t&1&&(l(0,"p",18),P(1,"i",22),s(2),a()),t&2){let e=d(2);o(2),_(" ",e.texts.pluginsSearchEmpty(e.searchText())," ")}}function fn(t,n){if(t&1){let e=T();l(0,"button",40),w("click",function(r){S(e);let c=d().$implicit;return d(2).toggleExpanded(c.id),E(r.stopPropagation())}),P(1,"i",41),a()}if(t&2){let e=d().$implicit,i=d(2);u("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(i.isExpanded(e.id)?"fa-solid fa-chevron-down":"fa-solid fa-chevron-right")}}function xn(t,n){t&1&&P(0,"span",26)}function vn(t,n){if(t&1&&P(0,"span",29),t&2){let e=d().$implicit;u("data-testid","settings-row-dirty-"+e.id)}}function yn(t,n){if(t&1&&(l(0,"span",32),s(1),a()),t&2){let e=d().$implicit;o(),_("v",e.version)}}function Cn(t,n){if(t&1&&(l(0,"span",33),P(1,"i",42),s(2),a()),t&2){let e=d().$implicit,i=d(2);f("title",i.texts.lockedTooltip),u("data-testid","settings-row-locked-"+e.id),o(2),_(" ",i.texts.lockedLabel," ")}}function wn(t,n){if(t&1&&(l(0,"span",34),s(1),a()),t&2){let e=d().$implicit,i=d(2);o(),m(i.statusLabel(e))}}function kn(t,n){if(t&1&&(l(0,"p",35),s(1),a()),t&2){let e=d().$implicit;o(),m(e.description)}}function Pn(t,n){if(t&1&&(l(0,"span",36),s(1),a()),t&2){let e=d().$implicit;o(),m(e.reason)}}function Sn(t,n){if(t&1&&(l(0,"p",37),P(1,"i",43),s(2),a()),t&2){let e=d().$implicit,i=d(2);u("data-testid","settings-row-starts-disabled-"+e.id),o(2),_(" ",i.texts.startsAsDisabledRowHint," ")}}function En(t,n){if(t&1){let e=T();l(0,"p-toggleswitch",44),w("ngModelChange",function(r){S(e);let c=d().$implicit,C=d(2);return E(C.onBundleToggle(c,r))}),a()}if(t&2){let e=d().$implicit,i=d(2);f("ngModel",i.pendingEnabled(e.id))("disabled",i.applying()||!!e.locked)("ariaLabel",i.texts.a11y.pluginToggle(e.id,!i.pendingEnabled(e.id))),u("data-testid","settings-toggle-"+e.id)}}function Mn(t,n){if(t&1&&P(0,"span",29),t&2){let e=d().$implicit,i=d(2).$implicit;u("data-testid","settings-extrow-dirty-"+i.id+"-"+e.id)}}function Tn(t,n){if(t&1&&(l(0,"span",33),P(1,"i",42),s(2),a()),t&2){let e=d().$implicit,i=d(2).$implicit,r=d(2);f("title",r.texts.lockedTooltip),u("data-testid","settings-extrow-locked-"+i.id+"-"+e.id),o(2),_(" ",r.texts.lockedLabel," ")}}function In(t,n){if(t&1&&(l(0,"p",52),s(1),a()),t&2){let e=d().$implicit;o(),m(e.description)}}function On(t,n){if(t&1){let e=T();l(0,"li",46),w("click",function(r){let c=S(e).$implicit,C=d(2).$implicit,N=d(2);return E(N.onSubrowClick(C.id,c,r))}),l(1,"div",47)(2,"div",48),h(3,Mn,1,1,"span",29),l(4,"span",49),s(5),a(),l(6,"span",50),s(7),a(),l(8,"span",51),s(9),a(),h(10,Tn,3,3,"span",33),a(),h(11,In,2,1,"p",52),a(),l(12,"p-toggleswitch",44),w("ngModelChange",function(r){let c=S(e).$implicit,C=d(2).$implicit,N=d(2);return E(N.onExtensionToggle(C.id,c,r))}),a()()}if(t&2){let e=n.$implicit,i=d(2).$implicit,r=d(2);V("is-clickable",r.extensionToggleInteractive(e))("is-dirty",r.isDirty(r.qualifiedExt(i.id,e.id))),u("data-testid","settings-extrow-"+i.id+"-"+e.id),o(3),b(r.isDirty(r.qualifiedExt(i.id,e.id))?3:-1),o(2),m(e.id),o(),Ee("--kind-color",r.kindTint(e.kind)),o(),m(e.kind),o(2),_("v",e.version),o(),b(e.locked?10:-1),o(),b(e.description?11:-1),o(),f("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)))),u("data-testid","settings-ext-toggle-"+i.id+"-"+e.id)}}function Dn(t,n){if(t&1&&(l(0,"ul",39),I(1,On,13,17,"li",45,jt),a()),t&2){let e=d().$implicit;u("data-testid","settings-extensions-"+e.id),o(),O(e.extensions)}}function jn(t,n){if(t&1){let e=T();l(0,"li",23)(1,"div",24),w("click",function(r){let c=S(e).$implicit,C=d(2);return E(C.onRowClick(c,r))}),h(2,fn,2,5,"button",25)(3,xn,1,0,"span",26),l(4,"div",27)(5,"div",28),h(6,vn,1,1,"span",29),l(7,"span",30),s(8),a(),l(9,"span",31),s(10),a(),h(11,yn,2,1,"span",32),h(12,Cn,3,3,"span",33),h(13,wn,2,1,"span",34),a(),h(14,kn,2,1,"p",35),h(15,Pn,2,1,"span",36),h(16,Sn,3,2,"p",37),a(),h(17,En,1,4,"p-toggleswitch",38),a(),h(18,Dn,3,1,"ul",39),a()}if(t&2){let e=n.$implicit,i=d(2);V("is-extension-bundle",e.granularity==="extension")("is-failed",!i.canToggleBundle(e)&&e.granularity==="bundle")("is-clickable",i.rowIsClickable(e))("is-dirty",e.granularity==="bundle"&&i.isDirty(e.id)),u("data-testid","settings-row-"+e.id),o(2),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)?2:3),o(4),b(e.granularity==="bundle"&&i.isDirty(e.id)?6:-1),o(2),m(e.id),o(2),m(i.sourceLabel(e.source)),o(),b(e.version?11:-1),o(),b(e.locked?12:-1),o(),b(!i.canToggleBundle(e)&&e.granularity==="bundle"?13:-1),o(),b(e.description?14:-1),o(),b(e.reason?15:-1),o(),b(i.showStartsAsDisabledHint(e)?16:-1),o(),b(i.canToggleBundle(e)?17:-1),o(),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)&&i.isExpanded(e.id)?18:-1)}}function Fn(t,n){if(t&1&&(h(0,hn,2,3,"p-message",17),h(1,bn,3,1,"p",18),l(2,"ul",19),I(3,jn,19,21,"li",20,jt),a()),t&2){let e=d();b(e.toggleError()?0:-1),o(),b(e.searchActive()&&e.filteredPlugins().length===0?1:-1),o(2),O(e.filteredPlugins())}}function Nn(t,n){if(t&1&&(l(0,"em",53),s(1),a()),t&2){let e=d(2);o(),_(" ",e.texts.startsAsDisabledFooterHint," ")}}function An(t,n){if(t&1){let e=T();l(0,"footer",14),h(1,Nn,2,1,"em",53),l(2,"p-button",54),w("onClick",function(){S(e);let r=d();return E(r.discardChanges())}),a(),l(3,"p-button",55),w("onClick",function(){S(e);let r=d();return E(r.applyChanges())}),a()()}if(t&2){let e=d();o(),b(e.restartRecommended()?1:-1),o(),f("text",!0)("label",e.texts.discardChanges)("ariaLabel",e.texts.discardA11y)("disabled",e.applying()),o(),f("label",e.texts.applyAndClose)("ariaLabel",e.texts.applyA11y)("disabled",e.applying())("loading",e.applying())}}var Ft=["all",...Object.keys(Ie)],ye=["claude","gemini","agent-skills","core"],Ce=["provider","extractor","analyzer","action","formatter","hook"],Oe="sm.settings.plugins.collapsed",De="sm.settings.plugins.kind-filter",ie=class t{dataSource=k(z);scanTrigger=k(ft);visible=D.required();applied=de();texts=y;loading=x(!1);loadError=x(null);toggleError=x(null);plugins=x([]);collapsed=x(Hn());originalState=x(new Map);pendingState=x(new Map);applying=x(!1);dirtyIds=v(()=>{let n=this.originalState(),e=this.pendingState(),i=new Set;for(let[r,c]of e)n.get(r)!==c&&i.add(r);return i});hasPendingChanges=v(()=>this.dirtyIds().size>0);hasFailureRows=v(()=>this.plugins().some(n=>ke(n.status)));searchText=x("");searchActive=v(()=>this.searchText().trim().length>0);kindFilter=x(Kn());kindFilterActive=v(()=>this.kindFilter()!=="all");kindFilterOptions=Ft;visiblePlugins=v(()=>zn(this.plugins().flatMap(Vn)));filteredPlugins=v(()=>{let n=this.searchText().trim().toLowerCase(),e=this.kindFilter(),i=this.visiblePlugins();return e!=="all"&&(i=i.flatMap(r=>Ln(r,e))),n.length>0&&(i=i.flatMap(r=>Rn(r,n))),i});constructor(){F(()=>{this.visible()&&this.refresh()}),F(()=>Gn(this.collapsed())),F(()=>Un(this.kindFilter()))}async refresh(){this.loading.set(!0),this.loadError.set(null),this.toggleError.set(null);try{let n=await this.dataSource.listPlugins();this.plugins.set([...n.items]);let e=It(n.items);this.originalState.set(e),this.pendingState.set(new Map(e))}catch(n){this.loadError.set(Dt(n)),this.plugins.set([]),this.originalState.set(new Map),this.pendingState.set(new Map)}finally{this.loading.set(!1)}}setKindFilter(n){this.kindFilter.set(n)}isKindFilterActive(n){return this.kindFilter()===n}toggleExpanded(n){let e=new Set(this.collapsed());e.has(n)?e.delete(n):e.add(n),this.collapsed.set(e)}isExpanded(n){return!this.collapsed().has(n)}pendingEnabled(n){return this.pendingState().get(n)??!1}isDirty(n){return this.dirtyIds().has(n)}showStartsAsDisabledHint(n){return n.startsAsDisabled?this.pendingEnabled(n.id):!1}restartRecommended=v(()=>{let n=this.pendingState();for(let e of this.plugins())if(e.startsAsDisabled===!0&&n.get(e.id)===!0)return!0;return!1});onBundleToggle(n,e){if(this.applying())return;let i=new Map(this.pendingState());i.set(n.id,e),this.pendingState.set(i)}onExtensionToggle(n,e,i){if(this.applying())return;let r=we(n,e.id),c=new Map(this.pendingState());c.set(r,i),this.pendingState.set(c)}async applyChanges(){if(this.applying())return;let n=this.dirtyIds();if(n.size===0)return;let e=[],i=this.pendingState();for(let c of n)e.push({id:c,enabled:i.get(c)??!1});this.applying.set(!0),this.toggleError.set(null);let r=!1;try{let c=await this.dataSource.applyPluginChanges(e);this.plugins.set([...c.items]);let C=It(c.items);this.originalState.set(C),this.pendingState.set(new Map(C)),this.scanTrigger.run(),r=!0}catch(c){this.toggleError.set(Dt(c))}finally{this.applying.set(!1)}r&&this.applied.emit()}discardChanges(){this.pendingState.set(new Map(this.originalState())),this.toggleError.set(null)}canToggleBundle(n){return n.granularity==="extension"?!1:!ke(n.status)}bundleToggleInteractive(n){return this.canToggleBundle(n)&&!n.locked}extensionToggleInteractive(n){return!n.locked}rowIsClickable(n){return!!(this.bundleToggleInteractive(n)||n.granularity==="extension"&&(n.extensions?.length??0)>0)}onRowClick(n,e){if(!Ot(e)){if(this.bundleToggleInteractive(n)){this.onBundleToggle(n,!this.pendingEnabled(n.id));return}n.granularity==="extension"&&(n.extensions?.length??0)>0&&this.toggleExpanded(n.id)}}onSubrowClick(n,e,i){if(Ot(i)||!this.extensionToggleInteractive(e))return;let r=we(n,e.id);this.onExtensionToggle(n,e,!this.pendingEnabled(r))}statusLabel(n){return ke(n.status)?y.statusFailure[n.status]??n.status:n.status==="enabled"?y.enabledLabel:y.disabledLabel}sourceLabel(n){switch(n){case"built-in":return y.sourceBuiltIn;case"project":return y.sourceProject;case"global":return y.sourceGlobal}}qualifiedExt(n,e){return we(n,e)}kindTint(n){return Tt(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["sm-settings-plugins"]],inputs:{visible:[1,"visible"]},outputs:{applied:"applied"},decls:19,vars:9,consts:[["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"],["type","button",1,"settings-plugins__kind-chip",3,"is-active","is-all","--kind-color"],["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"],["type","button",1,"settings-plugins__kind-chip",3,"click"],["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-extension-bundle","is-failed","is-clickable","is-dirty"],["severity","error","data-testid","settings-toggle-error",3,"onClose","closable"],["aria-hidden","true",1,"fa-solid","fa-magnifying-glass"],[1,"settings-plugins__row"],[1,"settings-plugins__row-main",3,"click"],["type","button",1,"settings-plugins__expand"],["aria-hidden","true",1,"settings-plugins__expand-spacer"],[1,"settings-plugins__row-text"],[1,"settings-plugins__row-headline"],["aria-hidden","true",1,"settings-plugins__dirty-dot"],[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-status"],[1,"settings-plugins__row-description"],[1,"settings-plugins__row-reason"],[1,"settings-plugins__row-hint"],[3,"ngModel","disabled","ariaLabel"],["role","list",1,"settings-plugins__sublist"],["type","button",1,"settings-plugins__expand",3,"click"],["aria-hidden","true"],["aria-hidden","true",1,"fa-solid","fa-lock"],["aria-hidden","true",1,"fa-solid","fa-triangle-exclamation"],[3,"ngModelChange","ngModel","disabled","ariaLabel"],[1,"settings-plugins__subrow",3,"is-clickable","is-dirty"],[1,"settings-plugins__subrow",3,"click"],[1,"settings-plugins__subrow-text"],[1,"settings-plugins__subrow-headline"],[1,"settings-plugins__subrow-id"],[1,"settings-plugins__subrow-kind"],[1,"settings-plugins__subrow-version"],[1,"settings-plugins__subrow-description"],["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&&(l(0,"section",0)(1,"div",1)(2,"header",2)(3,"h2",3),s(4),a(),l(5,"p",4),s(6),a()(),l(7,"p-iconfield",5),P(8,"p-inputicon",6),l(9,"input",7),w("ngModelChange",function(c){return i.searchText.set(c)}),a()(),l(10,"div",8),I(11,gn,2,10,"button",9,G),a(),h(13,pn,2,2,"p-message",10),h(14,mn,3,1,"p",11)(15,un,2,3,"p-message",12)(16,_n,2,1,"p",13)(17,Fn,5,2),a(),h(18,An,4,9,"footer",14),a()),e&2&&(o(4),_(" ",i.texts.pluginsHeading," "),o(2),m(i.texts.pluginsIntro),o(3),f("placeholder",i.texts.pluginsSearchPlaceholder)("ngModel",i.searchText()),u("aria-label",i.texts.pluginsSearchA11y),o(),u("aria-label",i.texts.pluginsKindFilterA11y),o(),O(i.kindFilterOptions),o(2),b(i.hasPendingChanges()?13:-1),o(),b(i.loading()?14:i.loadError()?15:i.plugins().length===0?16:17),o(4),b(i.hasPendingChanges()?18:-1))},dependencies:[J,ue,X,Y,W,ge,_t,ut,bt,ht,he,_e,ee,Z,ne,B],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.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, var(--p-text-color));appearance:none;cursor:pointer;font:inherit;font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:lowercase;padding:.25rem .625rem;border-radius:999px;background:color-mix(in oklab,var(--chip-accent) 8%,transparent);border:1px solid color-mix(in oklab,var(--chip-accent) 35%,transparent);color:color-mix(in oklab,var(--chip-accent) 70%,var(--p-text-color));transition:background .12s ease,border-color .12s ease,color .12s ease}.settings-plugins__kind-chip[_ngcontent-%COMP%]:hover{background:color-mix(in oklab,var(--chip-accent) 18%,transparent);border-color:color-mix(in oklab,var(--chip-accent) 55%,transparent)}.settings-plugins__kind-chip[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--p-focus-ring-color, var(--chip-accent));outline-offset:2px}.settings-plugins__kind-chip.is-active[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--chip-accent) 80%,transparent);border-color:var(--chip-accent);color:#f9fafb}.app-dark[_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--chip-accent) 14%,transparent);border-color:color-mix(in oklab,var(--chip-accent) 50%,transparent);color:color-mix(in oklab,var(--chip-accent) 80%,var(--p-text-color))}.app-dark[_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%]:hover, .app-dark [_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%]:hover{background:color-mix(in oklab,var(--chip-accent) 26%,transparent);border-color:color-mix(in oklab,var(--chip-accent) 70%,transparent)}.app-dark[_nghost-%COMP%] .settings-plugins__kind-chip.is-active[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__kind-chip.is-active[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--chip-accent) 70%,transparent);border-color:var(--chip-accent);color:#0b0f17}.settings-plugins__banner[_ngcontent-%COMP%]{display:block}.settings-plugins__banner-body[_ngcontent-%COMP%]{font-weight:400}.settings-plugins__hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0;padding:1rem 0;color:var(--p-text-muted-color);font-size:.875rem}.settings-plugins__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-plugins__row[_ngcontent-%COMP%]{border:1px solid var(--p-content-border-color);border-radius:var(--p-border-radius);background:var(--p-content-background);padding:.75rem .875rem;display:flex;flex-direction:column;gap:.5rem}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__row.is-failed[_ngcontent-%COMP%]{border-color:var(--p-message-error-border-color);background:var(--p-message-error-background)}.settings-plugins__row.is-extension-bundle[_ngcontent-%COMP%]{background:var(--p-content-background)}.settings-plugins__row-main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.settings-plugins__expand[_ngcontent-%COMP%], .settings-plugins__expand-spacer[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.settings-plugins__expand[_ngcontent-%COMP%]{border:none;background:transparent;cursor:pointer;color:var(--p-text-muted-color);border-radius:var(--p-border-radius)}.settings-plugins__expand[_ngcontent-%COMP%]:hover{color:var(--p-text-color);background:var(--p-content-hover-background)}.settings-plugins__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__row-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__row-id[_ngcontent-%COMP%]{font-weight:600;font-family:var(--p-monospace-font-family, monospace)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-kind[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.7rem;font-weight:500;letter-spacing:.02em;padding:.125rem .5rem;border-radius:999px;white-space:nowrap}.settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family, ui-monospace, monospace)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__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, var(--p-text-color)) 14%,transparent);border:1px solid color-mix(in oklab,var(--kind-color, var(--p-text-color)) 38%,transparent);color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 70%,#111827)}.app-dark[_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 22%,transparent);border-color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 55%,transparent);color:color-mix(in oklab,var(--kind-color, var(--p-text-color)) 80%,#f9fafb)}.settings-plugins__row-status[_ngcontent-%COMP%]{font-weight:500}.settings-plugins__row-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:999px;white-space:nowrap;background:color-mix(in oklab,var(--p-message-warn-color, #b45309) 14%,transparent);border:1px solid color-mix(in oklab,var(--p-message-warn-color, #b45309) 35%,transparent);color:color-mix(in oklab,var(--p-message-warn-color, #b45309) 70%,#111827)}.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, #f59e0b) 22%,transparent);border-color:color-mix(in oklab,var(--p-message-warn-color, #f59e0b) 55%,transparent);color:color-mix(in oklab,var(--p-message-warn-color, #f59e0b) 85%,#f9fafb)}.settings-plugins__row-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.8125rem;line-height:1.4;color:var(--p-text-muted-color)}.settings-plugins__row-reason[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--p-message-error-color);font-family:var(--p-monospace-font-family, monospace);margin-top:.25rem}.settings-plugins__sublist[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.5rem 0 0 1.75rem;display:flex;flex-direction:column;gap:.25rem;border-top:1px dashed var(--p-content-border-color)}.settings-plugins__subrow[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.375rem .5rem;border-radius:var(--p-border-radius)}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__subrow-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__subrow-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__subrow-id[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family, monospace);font-size:.875rem}.settings-plugins__subrow-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.75rem;line-height:1.4;color:var(--p-text-muted-color)}.settings-plugins__dirty-dot[_ngcontent-%COMP%]{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--p-warn-color, #d97706);flex-shrink:0}.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, #d97706)}.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})};function we(t,n){return`${t}/${n}`}function It(t){let n=new Map;for(let e of t)if(!ke(e.status)){if(e.granularity==="bundle"){n.set(e.id,e.status==="enabled");continue}if(e.granularity==="extension"&&e.extensions)for(let i of e.extensions)n.set(we(e.id,i.id),i.enabled)}return n}function Ot(t){let n=t.target;return!n||typeof n.closest!="function"?!1:n.closest('label, button, input, [role="switch"], p-toggleswitch')!==null}function Rn(t,n){if(Bn(t,n))return[t];if(t.granularity!=="extension"||!t.extensions)return[];let e=t.extensions.filter(i=>$n(i,n));return e.length===0?[]:[H($({},t),{extensions:e})]}function Ln(t,n){if(t.granularity==="bundle")return t.kinds.some(i=>i.toLowerCase()===n)?[t]:[];if(!t.extensions)return[];let e=t.extensions.filter(i=>i.kind.toLowerCase()===n);return e.length===0?[]:[H($({},t),{extensions:e})]}function Vn(t){if(t.locked)return[];if(t.granularity!=="extension"||!t.extensions)return[t];let n=t.extensions.filter(e=>!e.locked);return n.length===0?[]:[H($({},t),{extensions:n})]}function zn(t){return t.slice().sort((e,i)=>{let r=ye.indexOf(e.id),c=ye.indexOf(i.id),C=r>=0?r:ye.length,N=c>=0?c:ye.length;return C!==N?C-N:e.id.localeCompare(i.id)}).map(e=>{if(e.granularity!=="extension"||!e.extensions)return e;let i=e.extensions.slice().sort((r,c)=>{let C=Ce.indexOf(r.kind.toLowerCase()),N=Ce.indexOf(c.kind.toLowerCase()),Fe=C>=0?C:Ce.length,Ne=N>=0?N:Ce.length;return Fe!==Ne?Fe-Ne:r.id.localeCompare(c.id)});return H($({},e),{extensions:i})})}function Bn(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function $n(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function ke(t){return t==="incompatible-spec"||t==="invalid-manifest"||t==="load-error"||t==="id-collision"}function Dt(t){return t instanceof R||t instanceof Error?t.message:String(t)}function Hn(){let t=null;try{t=localStorage.getItem(Oe)}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 Gn(t){try{if(t.size===0){localStorage.removeItem(Oe);return}localStorage.setItem(Oe,JSON.stringify([...t]))}catch{}}function Kn(){let t=null;try{t=localStorage.getItem(De)}catch{return"all"}return t&&Ft.includes(t)?t:"all"}function Un(t){try{if(t==="all"){localStorage.removeItem(De);return}localStorage.setItem(De,t)}catch{}}function Qn(t,n){if(t&1&&(l(0,"p-message",3),s(1),a()),t&2){let e=d();f("closable",!1),o(),j(" ",e.texts.project.loadErrorPrefix," ",n," ")}}function Wn(t,n){if(t&1&&(l(0,"p-message",4),s(1),a()),t&2){let e=d();f("closable",!1),o(),j(" ",e.texts.project.saveErrorPrefix," ",n," ")}}function Xn(t,n){if(t&1){let e=T();l(0,"li",12)(1,"span",19),s(2),a(),l(3,"p-button",20),w("onClick",function(){let r=S(e).$implicit,c=d();return E(c.onExtraRootRemove(r))}),a()()}if(t&2){let e=n.$implicit,i=d();o(2),m(e),o(),f("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.extraRoots")),u("data-testid","settings-project-extra-roots-remove")}}function Yn(t,n){if(t&1){let e=T();l(0,"li",12)(1,"span",19),s(2),a(),l(3,"p-button",20),w("onClick",function(){let r=S(e).$implicit,c=d();return E(c.onReferencePathRemove(r))}),a()()}if(t&2){let e=n.$implicit,i=d();o(2),m(e),o(),f("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.referencePaths")),u("data-testid","settings-project-reference-paths-remove")}}var Pe=class t{dataSource=k(z);confirmation=k(Q);visible=D.required();texts=y;loading=x(!1);loadError=x(null);saveError=x(null);preferences=x(null);pending=x(new Set);newExtraRoot=x("");newReferencePath=x("");includeHomeValue=v(()=>this.preferences()?.scan.includeHome??!1);extraRoots=v(()=>this.preferences()?.scan.extraRoots??[]);referencePaths=v(()=>this.preferences()?.scan.referencePaths??[]);constructor(){F(()=>{this.visible()&&this.refresh()})}isPending(n){return this.pending().has(n)}onIncludeHomeToggle(n){this.runPatch("scan.includeHome",{scan:{includeHome:n}})}onExtraRootAdd(){let n=this.newExtraRoot().trim();if(n.length===0)return;let e=[...this.extraRoots(),n];this.runPatch("scan.extraRoots",{scan:{extraRoots:e}}).then(()=>{this.newExtraRoot.set("")})}onExtraRootRemove(n){let e=this.extraRoots().filter(i=>i!==n);this.runPatch("scan.extraRoots",{scan:{extraRoots:[...e]}})}onReferencePathAdd(){let n=this.newReferencePath().trim();if(n.length===0)return;let e=[...this.referencePaths(),n];this.runPatch("scan.referencePaths",{scan:{referencePaths:e}}).then(()=>{this.newReferencePath.set("")})}onReferencePathRemove(n){let e=this.referencePaths().filter(i=>i!==n);this.runPatch("scan.referencePaths",{scan:{referencePaths:[...e]}})}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(je(n)),this.preferences.set(null)}finally{this.loading.set(!1)}}async runPatch(n,e){if(this.pending().has(n))return;let i=new Set(this.pending());i.add(n),this.pending.set(i),this.saveError.set(null);try{let r=await this.dataSource.setProjectPreferences(e);this.preferences.set(r)}catch(r){if(r instanceof R&&r.code==="confirm-required"){let c=r.paths??[];this.confirmDialog(c,async()=>{try{let C=await this.dataSource.setProjectPreferences(H($({},e),{confirm:!0}));this.preferences.set(C)}catch(C){this.saveError.set(je(C))}})}else this.saveError.set(je(r))}finally{let r=new Set(this.pending());r.delete(n),this.pending.set(r)}}confirmDialog(n,e){this.confirmation.confirm({header:y.project.confirmDialogHeader,message:y.project.confirmDialogIntro+`
|
|
122
|
+
`+n.map(i=>`\u2022 ${i}`).join(`
|
|
123
|
+
`),acceptLabel:y.project.confirmDialogAccept,rejectLabel:y.project.confirmDialogReject,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{e()}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["sm-settings-project"]],inputs:{visible:[1,"visible"]},features:[q([Q])],decls:39,vars:23,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-load-error",3,"closable"],["severity","error","data-testid","settings-project-save-error",3,"closable"],["data-testid","settings-project-include-home-row",1,"settings-project__row"],[1,"settings-project__row-text"],[1,"settings-project__row-label"],[1,"settings-project__row-description"],["data-testid","settings-project-include-home-toggle",3,"ngModelChange","ngModel","disabled"],["data-testid","settings-project-extra-roots-row",1,"settings-project__list-row"],["role","list",1,"settings-project__path-list"],[1,"settings-project__path-item"],[1,"settings-project__add-row"],["type","text","pInputText","","data-testid","settings-project-extra-roots-input",3,"ngModelChange","ngModel","placeholder","disabled"],["severity","primary","size","small","data-testid","settings-project-extra-roots-add",3,"onClick","label","disabled"],["data-testid","settings-project-reference-paths-row",1,"settings-project__list-row"],["type","text","pInputText","","data-testid","settings-project-reference-paths-input",3,"ngModelChange","ngModel","placeholder","disabled"],["severity","primary","size","small","data-testid","settings-project-reference-paths-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&&(l(0,"section",0)(1,"h2",1),s(2),a(),l(3,"p",2),s(4),a(),h(5,Qn,2,3,"p-message",3),h(6,Wn,2,3,"p-message",4),l(7,"div",5)(8,"div",6)(9,"div",7),s(10),a(),l(11,"div",8),s(12),a()(),l(13,"p-toggleswitch",9),w("ngModelChange",function(c){return i.onIncludeHomeToggle(c)}),a()(),l(14,"div",10)(15,"div",6)(16,"div",7),s(17),a(),l(18,"div",8),s(19),a()(),l(20,"ul",11),I(21,Xn,4,5,"li",12,G),a(),l(23,"div",13)(24,"input",14),w("ngModelChange",function(c){return i.newExtraRoot.set(c)}),a(),l(25,"p-button",15),w("onClick",function(){return i.onExtraRootAdd()}),a()()(),l(26,"div",16)(27,"div",6)(28,"div",7),s(29),a(),l(30,"div",8),s(31),a()(),l(32,"ul",11),I(33,Yn,4,5,"li",12,G),a(),l(35,"div",13)(36,"input",17),w("ngModelChange",function(c){return i.newReferencePath.set(c)}),a(),l(37,"p-button",18),w("onClick",function(){return i.onReferencePathAdd()}),a()()(),P(38,"p-confirmdialog"),a()),e&2){let r,c;u("aria-labelledby","settings-project-heading"),o(2),_(" ",i.texts.project.heading," "),o(2),m(i.texts.project.intro),o(),b((r=i.loadError())?5:-1,r),o(),b((c=i.saveError())?6:-1,c),o(4),m(i.texts.project.includeHomeLabel),o(2),_(" ",i.texts.project.includeHomeDescription," "),o(),f("ngModel",i.includeHomeValue())("disabled",i.loading()||i.isPending("scan.includeHome")||i.preferences()===null),o(4),m(i.texts.project.extraRootsLabel),o(2),_(" ",i.texts.project.extraRootsDescription," "),o(2),O(i.extraRoots()),o(3),f("ngModel",i.newExtraRoot())("placeholder",i.texts.project.extraRootsPlaceholder)("disabled",i.isPending("scan.extraRoots")),o(),f("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.extraRoots")||i.newExtraRoot().trim().length===0),o(4),m(i.texts.project.referencePathsLabel),o(2),_(" ",i.texts.project.referencePathsDescription," "),o(2),O(i.referencePaths()),o(3),f("ngModel",i.newReferencePath())("placeholder",i.texts.project.referencePathsPlaceholder)("disabled",i.isPending("scan.referencePaths")),o(),f("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.referencePaths")||i.newReferencePath().trim().length===0)}},dependencies:[J,ue,X,Y,W,ge,me,pe,he,_e,ee,Z,ne,B],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}.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, monospace);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, monospace);font-size:.8rem}"],changeDetection:0})};function je(t){return t instanceof R||t instanceof Error?t.message:String(t)}var Jn=()=>({width:"1024px",height:"720px",maxWidth:"92vw",maxHeight:"90vh"}),Zn=(t,n)=>n.id;function ei(t,n){t&1&&(l(0,"span",9),s(1,"soon"),a())}function ti(t,n){if(t&1){let e=T();l(0,"li")(1,"button",7),w("click",function(){let r=S(e).$implicit,c=d();return E(c.selectSection(r.id))}),l(2,"span",8),s(3),a(),h(4,ei,2,0,"span",9),a()()}if(t&2){let e=n.$implicit,i=d();o(),V("is-active",i.activeSection()===e.id)("is-disabled",e.status==="coming-soon"),u("aria-current",i.activeSection()===e.id?"page":null)("data-testid","settings-nav-"+e.id),o(2),m(e.label),o(),b(e.status==="coming-soon"?4:-1)}}function ni(t,n){if(t&1){let e=T();l(0,"sm-settings-plugins",10),w("applied",function(){S(e);let r=d();return E(r.onPluginsApplied())}),a()}if(t&2){let e=d();f("visible",e.pluginsVisible())}}function ii(t,n){if(t&1&&P(0,"sm-settings-general",5),t&2){let e=d();f("visible",e.generalVisible())}}function oi(t,n){if(t&1&&P(0,"sm-settings-project",5),t&2){let e=d();f("visible",e.projectVisible())}}function ri(t,n){if(t&1&&P(0,"sm-settings-about",5),t&2){let e=d();f("visible",e.aboutVisible())}}function ai(t,n){t&1&&P(0,"sm-settings-changelog")}function si(t,n){if(t&1&&P(0,"sm-settings-coming-soon",6),t&2){let e=d();f("sectionId",e.activeDescriptor().id)("sectionLabel",e.activeDescriptor().label)}}var li=[{id:"general",label:y.sections.general,status:"available"},{id:"project",label:y.sections.project,status:"available"},{id:"plugins",label:y.sections.plugins,status:"available"},{id:"changelog",label:y.sections.changelog,status:"available"},{id:"about",label:y.sections.about,status:"available"}],Nt=class t{visible=D.required();visibleChange=de();confirmation=k(Q);pluginsPanel=et(ie);texts=y;sections=li;activeSection=x("plugins");pluginsVisible=v(()=>this.visible()&&this.activeSection()==="plugins");generalVisible=v(()=>this.visible()&&this.activeSection()==="general");projectVisible=v(()=>this.visible()&&this.activeSection()==="project");aboutVisible=v(()=>this.visible()&&this.activeSection()==="about");activeDescriptor=v(()=>this.sections.find(n=>n.id===this.activeSection())??this.sections[0]);onVisibleChange(n){if(n){this.visibleChange.emit(!0);return}let e=this.pluginsPanel(),i=e?.dirtyIds().size??0;if(i===0){this.visibleChange.emit(!1);return}this.confirmation.confirm({header:this.texts.confirmCloseTitle,message:this.texts.confirmCloseBody(i),acceptLabel:this.texts.applyAndClose,rejectLabel:this.texts.discardChanges,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{e?.applyChanges()},reject:()=>{e?.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=M({type:t,selectors:[["sm-settings-modal"]],viewQuery:function(e,i){e&1&&Xe(i.pluginsPanel,ie,5),e&2&&Ye()},inputs:{visible:[1,"visible"]},outputs:{visibleChange:"visibleChange"},features:[q([Q])],decls:14,vars:13,consts:[["contentStyleClass","settings-modal__content","data-testid","settings-modal",3,"visibleChange","visible","modal","draggable","resizable","closable","closeOnEscape","dismissableMask","header"],[1,"settings-modal__layout"],["data-testid","settings-modal-sidebar",1,"settings-modal__sidebar"],["role","list",1,"settings-modal__sidebar-list"],["data-testid","settings-modal-main",1,"settings-modal__main"],[3,"visible"],[3,"sectionId","sectionLabel"],["type","button",1,"settings-modal__sidebar-item",3,"click"],[1,"settings-modal__sidebar-label"],[1,"settings-modal__sidebar-badge"],[3,"applied","visible"]],template:function(e,i){if(e&1&&(l(0,"p-dialog",0),w("visibleChange",function(c){return i.onVisibleChange(c)}),l(1,"div",1)(2,"nav",2)(3,"ul",3),I(4,ti,5,8,"li",null,Zn),a()(),l(6,"div",4),h(7,ni,1,1,"sm-settings-plugins",5)(8,ii,1,1,"sm-settings-general",5)(9,oi,1,1,"sm-settings-project",5)(10,ri,1,1,"sm-settings-about",5)(11,ai,1,0,"sm-settings-changelog")(12,si,1,2,"sm-settings-coming-soon",6),a()(),P(13,"p-confirmdialog"),a()),e&2){let r;le(Je(12,Jn)),f("visible",i.visible())("modal",!0)("draggable",!1)("resizable",!1)("closable",!0)("closeOnEscape",!0)("dismissableMask",!0)("header",i.texts.modalTitle),o(2),u("aria-label",i.texts.modalTitle),o(2),O(i.sections),o(3),b((r=i.activeSection())==="plugins"?7:r==="general"?8:r==="project"?9:r==="about"?10:r==="changelog"?11:12)}},dependencies:[W,me,pe,ct,dt,be,fe,ve,ie,Pe,xe],styles:["[_nghost-%COMP%]{display:contents}[_nghost-%COMP%] .settings-modal__content{padding:0;height:100%;display:flex;flex-direction:column;overflow:hidden}.settings-modal__layout[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:200px 1fr;min-height:0}.settings-modal__sidebar[_ngcontent-%COMP%]{border-right:1px solid var(--p-content-border-color);background:var(--p-content-background);padding:.5rem;overflow-y:auto}.settings-modal__sidebar-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.125rem}.settings-modal__sidebar-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;border-radius:var(--p-border-radius);background:transparent;color:var(--p-text-color);font:inherit;text-align:left;cursor:pointer;transition:background .15s ease,color .15s ease}.settings-modal__sidebar-item[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-modal__sidebar-item.is-active[_ngcontent-%COMP%]{background:var(--p-highlight-background);color:var(--p-highlight-color)}.settings-modal__sidebar-item.is-disabled[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}.settings-modal__sidebar-item.is-disabled[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-modal__sidebar-label[_ngcontent-%COMP%]{flex:1;font-size:.9rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-modal__sidebar-badge[_ngcontent-%COMP%]{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;padding:.125rem .5rem;border-radius:999px;background:color-mix(in oklab,var(--p-text-color) 14%,transparent);color:var(--p-text-color);border:1px solid color-mix(in oklab,var(--p-text-color) 24%,transparent)}.settings-modal__sidebar-item.is-active[_ngcontent-%COMP%] .settings-modal__sidebar-badge[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-highlight-color) 28%,transparent);color:var(--p-highlight-color);border-color:color-mix(in oklab,var(--p-highlight-color) 40%,transparent)}.settings-modal__main[_ngcontent-%COMP%]{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}.settings-modal__main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;min-height:0}"],changeDetection:0})};export{Nt as SettingsModal};
|
|
@@ -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-OPPQMCMQ.js";import{$a as S,Aa as c,Dc as nt,Fc as ot,Gb as Ce,Gc as Ie,Hc as V,Ib as be,Ic as U,J as N,Ja as L,Jc as De,K as ne,Kb as qe,M as de,Ma as x,Na as T,O as f,Oc as ze,Pb as D,Pc as ee,Qc as at,Rc as Oe,S as g,Sa as s,Sb as q,Sc as Ve,T as h,Ta as u,U as F,Ua as C,Va as E,Vc as k,W as je,Wa as Z,Wb as W,Xa as $,Ya as Q,Z as y,Za as X,_ as me,_a as Y,_c as we,ba as _e,bc as d,bd as Me,cb as w,cc as G,db as fe,ea as v,eb as I,fd as te,gb as l,ha as Re,hb as ge,ia as Pe,ib as ae,ic as ye,jb as he,kb as Ze,lb as m,lc as xe,mb as _,mc as We,na as p,nc as Te,oc as ve,pc 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 Ge,xa as Ne,xc as M,ya as ue,yc as K,za as z,zc as it}from"./chunk-25AWRVIC.js";import{B as tt,D as Ee,O as J,a as Je,d as Le,h as Se,l as Be,m as Ae,p as Ke,r as Ue,u as re,v as Fe,y as et}from"./chunk-3R7E3HPC.js";import{a as P}from"./chunk-Q7L6LLAK.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(Re);document=f(je);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=>Ue("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 @@
|
|
|
1
|
+
import{i as N,j as w}from"./chunk-V3SZQETX.js";import{$a as ae,Aa as re,Hb as pe,Ib as me,J as Z,Ja as y,Ma as p,Na as m,O as ee,Oa as ie,Qa as I,Ra as x,S as te,Sa as C,Sb as i,T as ne,Ta as f,Ua as v,Va as P,Vb as ue,Wa as d,Wb as g,Xa as c,Ya as $,ba as oe,cb as se,fb as de,gb as a,jc as ye,na as r,rb as le,sb as D,ub as X,va as _,vb as s,wb as l,xb as ce}from"./chunk-25AWRVIC.js";import{c as Q}from"./chunk-Q7L6LLAK.js";var L=class n{registry=oe({});setRegistry(e){e&&this.registry.set(e)}get(e){return this.registry()[e]}all(){return this.registry()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"})};var h={panelHeader:"Plugin contributions",panelCount:n=>`${n} contribution${n===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:n=>`Unknown slot: ${n}. Update the UI to a newer catalog version.`,overflowBadge:n=>`+${n}`,overflowTooltip:n=>`Hidden: ${n}`};var Ce=(n,e)=>e.label;function Ie(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function xe(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function he(n,e){if(n&1&&(d(0,"li",4)(1,"span",5),s(2),c(),d(3,"span",6),$(4,"span",7),c(),d(5,"span",8),s(6),c()()),n&2){let t=e.$implicit,o=a(2);y("title",t.tooltip??""),r(2),l(t.label),r(2),le("width",o.percent(t.value),"%"),r(2),l(t.value)}}function Ne(n,e){if(n&1&&(d(0,"ul",3),I(1,he,7,5,"li",4,Ce),c()),n&2){let t=a();r(),x(t.entries())}}var B=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);maxValue=i(()=>this.entries().reduce((t,o)=>o.value>t?o.value:t,0));percent(e){let t=this.maxValue();return t===0?0:Math.round(e/t*100)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Ie,2,1,"h5",1),p(2,xe,2,1,"p",2)(3,Ne,3,0,"ul",3),c()),t&2&&(y("data-testid","renderer-node-breakdown"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-surface-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:.25rem;height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function we(n,e){if(n&1&&(d(0,"span",1),s(1),c()),n&2){let t=a(),o=a();X(o.hostClass()),r(),l(t.text)}}function Te(n,e){if(n&1&&$(0,"i",1),n&2){let t=a(),o=a();X(o.hostClass()+" "+t.cls)}}function Me(n,e){n&1&&p(0,we,2,3,"span",0)(1,Te,1,2,"i",0),n&2&&m(e.kind==="emoji"?0:1)}function ke(n){if(!n)return null;let e=n.trim();if(e.length===0)return null;let t=e.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:e};if(/^pi pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:e};if(/^pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:`pi ${e}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(e))return{kind:"fa",cls:e};if(/^fa-[a-z0-9-]+$/.test(e)){let u=e.slice(3);return u==="solid"||u==="regular"||u==="brands"||u.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${e}`}}return null}var S=class n{icon=g(void 0);hostClass=g("");resolved=i(()=>{let e=this.icon(),t=ke(e);return e&&!t&&console.warn(`[sm-icon] Invalid icon string "${e}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),t});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(t,o){if(t&1&&p(0,Me,2,1),t&2){let u;m((u=o.resolved())?0:-1,u)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})};function Ee(n,e){if(n&1&&(f(0,"span",3),s(1),v()),n&2){let t=a();y("aria-label",t.ariaLabel()),r(),l(t.value())}}var O=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=i(()=>this.typed().value);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=i(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(t,o){t&1&&(f(0,"span",0)(1,"span",1),P(2,"sm-icon",2),v(),p(3,Ee,2,2,"span",3),v()),t&2&&(D("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-counter"),r(2),C("icon",o.icon()),r(),m(o.value()>0?3:-1))},dependencies:[w,N,S],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%], .vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%], .vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var De=(n,e)=>e.key;function Se(n,e){if(n&1&&(f(0,"h5",1),s(1),v()),n&2){let t=a();r(),l(t.label())}}function Pe(n,e){if(n&1&&(f(0,"p",2),s(1),v()),n&2){let t=a();r(),l(t.emptyText())}}function Oe(n,e){if(n&1&&(f(0,"dt",4),s(1),v(),f(2,"dd"),s(3),v()),n&2){let t=e.$implicit,o=a(2);C("pTooltip",t.tooltip??""),r(),l(t.key),r(2),l(o.formatValue(t.value))}}function Re(n,e){if(n&1&&(f(0,"dl",3),I(1,Oe,4,3,null,null,De),v()),n&2){let t=a();r(),x(t.entries())}}var F=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatValue(e){return e==null?"\u2014":typeof e=="boolean"?e?"true":"false":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(t,o){t&1&&(f(0,"section",0),p(1,Se,2,1,"h5",1),p(2,Pe,2,1,"p",2)(3,Re,3,0,"dl",3),v()),t&2&&(y("data-testid","renderer-node-key-values"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},dependencies:[w,N],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var We=(n,e)=>e.path;function $e(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Le(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function Be(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.kind)}}function Fe(n,e){if(n&1){let t=se();d(0,"li")(1,"button",4),de("click",function(){let u=te(t).$implicit,b=a(2);return ne(b.openPath.emit(u.path))}),p(2,Be,2,1,"span",5),d(3,"span",6),s(4),c()()()}if(n&2){let t=e.$implicit;r(2),m(t.kind?2:-1),r(2),l(t.label??t.path)}}function ze(n,e){if(n&1&&(d(0,"ul",3),I(1,Fe,5,2,"li",null,We),c()),n&2){let t=a();r(),x(t.entries())}}var z=class n{inputs=g.required();openPath=ue();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},outputs:{openPath:"openPath"},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,$e,2,1,"h5",1),p(2,Le,2,1,"p",2)(3,ze,3,0,"ul",3),c()),t&2&&(y("data-testid","renderer-node-link-list"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:.25rem;color:var(--p-primary-600);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-surface-500);font-family:var(--p-font-family-mono, monospace);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var ge=(n,e)=>e.key;function Ve(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Ae(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function je(n,e){if(n&1&&(d(0,"th"),s(1),c()),n&2){let t=e.$implicit;r(),l(t.label)}}function qe(n,e){if(n&1&&(d(0,"td"),s(1),c()),n&2){let t=e.$implicit,o=a().$implicit,u=a(2);r(),l(u.formatCell(o[t.key]))}}function Ke(n,e){if(n&1&&(d(0,"tr"),I(1,qe,2,1,"td",null,ge),c()),n&2){let t=a(2);r(),x(t.columns())}}function Ue(n,e){if(n&1&&(d(0,"table",3)(1,"thead")(2,"tr"),I(3,je,2,1,"th",null,ge),c()(),d(5,"tbody"),I(6,Ke,3,0,"tr",null,ie),c()()),n&2){let t=a();r(3),x(t.columns()),r(3),x(t.rows())}}var V=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{columns:[],rows:[]}:e});columns=i(()=>this.typed().columns??[]);rows=i(()=>this.typed().rows??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatCell(e){return e==null?"":typeof e=="boolean"?e?"\u2713":"\xB7":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Ve,2,1,"h5",1),p(2,Ae,2,1,"p",2)(3,Ue,8,0,"table",3),c()),t&2&&(y("data-testid","renderer-node-records"),r(),m(o.label()?1:-1),r(),m(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-surface-700);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function He(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Xe(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function Ye(n,e){if(n&1&&(d(0,"pre",3),s(1),c()),n&2){let t=a();r(),l(t.markdown())}}var A=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{markdown:""}:e});markdown=i(()=>this.typed().markdown??"");label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,He,2,1,"h5",1),p(2,Xe,2,1,"p",2)(3,Ye,2,1,"pre",3),c()),t&2&&(y("data-testid","renderer-node-markdown"),r(),m(o.label()?1:-1),r(),m(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);background:var(--p-surface-50);padding:.5rem;border-radius:.25rem;white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Ge(n,e){if(n&1&&(f(0,"span",1),s(1),v()),n&2){let t=a();r(),l(t.icon())}}var j=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=i(()=>this.typed().label||"");icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(t,o){t&1&&(f(0,"span",0),p(1,Ge,2,1,"span",1),f(2,"span",2),s(3),v()()),t&2&&(D("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-tag"),r(),m(o.icon()?1:-1),r(2),l(o.label()))},dependencies:[w,N],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:3px}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:3px}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:3px}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:3px}"],changeDetection:0})};var Je=()=>[],fe=(n,e)=>e.label;function Qe(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Ze(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function et(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.marker)}}function tt(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.marker)}}function nt(n,e){if(n&1&&(d(0,"li",4),p(1,tt,2,1,"span",5),d(2,"span",6),s(3),c()()),n&2){let t=e.$implicit;y("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),l(t.label)}}function ot(n,e){if(n&1&&(d(0,"ul",7),I(1,nt,4,3,"li",4,fe),c()),n&2){let t=a().$implicit;r(),x(t.children)}}function rt(n,e){if(n&1&&(d(0,"li",4),p(1,et,2,1,"span",5),d(2,"span",6),s(3),c(),p(4,ot,3,0,"ul",7),c()),n&2){let t=e.$implicit;y("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),l(t.label),r(),m(t.children&&t.children.length>0?4:-1)}}function it(n,e){if(n&1&&(d(0,"ul",3),I(1,rt,5,4,"li",4,fe),c()),n&2){let t=a();r(),x(t.root().children??pe(0,Je))}}var q=class n{inputs=g.required();root=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});rootIsEmpty=i(()=>{let e=this.root();return!e.children||e.children.length===0});label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Qe,2,1,"h5",1),p(2,Ze,2,1,"p",2)(3,it,3,1,"ul",3),c()),t&2&&(y("data-testid","renderer-node-tree"),r(),m(o.label()?1:-1),r(),m(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function at(n,e){if(n&1&&(f(0,"span",2),s(1),v()),n&2){let t=a();r(),l(t.formattedCount())}}var K=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=i(()=>this.typed().icon??this.inputs().icon);severity=i(()=>this.typed().severity);count=i(()=>this.typed().count??null);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=i(()=>{let e=this.count();return e===null?"":e>=99?"99+":String(e)});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),p(2,at,2,1,"span",2),v()),t&2&&(D("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-alert"),r(),C("icon",o.icon()),r(),m(o.count()!==null?2:-1))},dependencies:[w,N,S],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var U=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=i(()=>this.typed().icon??this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=i(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),v()),t&2&&(D("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),r(),C("icon",o.icon()))},dependencies:[w,N,S],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};function st(n,e){if(n&1&&(f(0,"span",3),s(1),v()),n&2){let t=a();r(),l(t.label())}}var H=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=i(()=>String(this.typed().value??""));label=i(()=>this.typed().label??this.inputs().label);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),f(2,"span",2),s(3),v(),p(4,st,2,1,"span",3),v()),t&2&&(D("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-scope-stat"),r(),C("icon",o.icon()),r(2),l(o.value()),r(),m(o.label()?4:-1))},dependencies:[w,N,S],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})};var Y={"card.title.right":U,"card.subtitle.left":O,"card.footer.left":O,"card.footer.right":O,"graph.node.alert":K,"inspector.header.badge.counter":O,"inspector.header.badge.tag":j,"inspector.body.panel.breakdown":B,"inspector.body.panel.records":V,"inspector.body.panel.tree":q,"inspector.body.panel.key-values":F,"inspector.body.panel.link-list":z,"inspector.body.panel.markdown":A,"topbar.nav.start":H};function ve(n){return n in Y}var R={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge.counter":{id:"inspector.header.badge.counter",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.header.badge.tag":{id:"inspector.header.badge.tag",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};var dt=n=>({inputs:n}),lt=(n,e)=>e.qualifiedId;function ct(n,e){n&1&&ae(0)}function pt(n,e){if(n&1&&(f(0,"span",1),re(1,ct,1,0,"ng-container",3),v()),n&2){let t=e.$implicit,o=a(2);y("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),r(),C("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",me(3,dt,t.rendererInputs))}}function mt(n,e){if(n&1&&(f(0,"span",2),s(1),v()),n&2){let t=a(2);C("pTooltip",t.overflowTooltip()),r(),ce(" ",t.overflowBadge()," ")}}function ut(n,e){if(n&1&&(f(0,"span",0),I(1,pt,2,5,"span",1,lt),p(3,mt,2,2,"span",2),v()),n&2){let t=a();y("data-testid","view-contributions-host-"+t.testidSuffix()),r(),x(t.visible()),r(2),m(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var _e=class n{slot=g.required();node=g(null);testidSuffix=i(()=>this.slot().replaceAll(".","-"));registry=ee(L);dispatched=i(()=>{let e=this.node();if(!e)return[];let t=e.contributions??[];if(t.length===0)return[];let o=this.slot(),u=t.filter(b=>b.slot===o).filter(b=>ve(b.slot));return this.sortBySlotOrder(u,o).map(b=>({qualifiedId:`${b.pluginId}/${b.extensionId}/${b.contributionId}`,slot:b.slot,rendererInputs:this.buildInputs(b,o)}))});visible=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return e.slice(0,t)});overflowCount=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return Math.max(0,e.length-t)});showOverflowBadge=i(()=>R[this.slot()].showOverflowBadge!==!1);overflowBadge=i(()=>h.overflowBadge(this.overflowCount()));overflowTooltip=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems,o=e.slice(t).map(u=>u.qualifiedId).join(", ");return h.overflowTooltip(o)});rendererFor(e){return Y[e]}buildInputs(e,t){let o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,u=this.registry.get(o),b=R[t].respectSeverity!==!1,M=e.payload;if(!b&&typeof M=="object"&&M!==null&&"severity"in M){let J=M,{severity:gt}=J;M=Q(J,["severity"])}let E={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:M};return u?.label&&(E.label=u.label),u?.tooltip&&(E.tooltip=u.tooltip),u?.icon&&(E.icon=u.icon),u?.emptyText&&(E.emptyText=u.emptyText),E}sortBySlotOrder(e,t){let o=R[t].order;return o==="fifo"?e.slice():o==="priority"?e.slice().sort((u,b)=>{let M=this.priorityFor(u),E=this.priorityFor(b);return M!==E?M-E:G(u,b)}):o==="severity"?e.slice().sort((u,b)=>{let M=be(u),E=be(b);return M!==E?E-M:G(u,b)}):e.slice().sort(G)}priorityFor(e){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return this.registry.get(t)?.priority??100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-view-contributions-host"]],inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(t,o){t&1&&p(0,ut,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[ye,w,N],styles:[".vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})};function G(n,e){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return t<o?-1:t>o?1:0}function be(n){let e=n.payload;if(typeof e!="object"||e===null)return 0;switch(e.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}function yt(n){if(typeof n!="object"||n===null)return!1;let e=n;if(typeof e.type!="string"||e.type.length===0)return!1;let t=e.timestamp;return!(typeof t!="number"&&typeof t!="string"||!("data"in e))}function no(n){if(!yt(n)||n.type!=="sidecar.bumped")return!1;let e=n.data;if(typeof e!="object"||e===null||typeof e.nodePath!="string"||e.nodePath.length===0)return!1;let t=e.version;return!(t!==null&&typeof t!="number"||e.status!=="fresh")}export{L as a,_e as b,yt as c,no as d};
|