@skill-map/cli 0.22.0 → 0.23.1

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.
@@ -0,0 +1,123 @@
1
+ import{a as Tt,b as w,c as It,d as Ot}from"./chunk-SCSYN7U2.js";import{a as vt,b as yt,c as we,d as ke,e as kt}from"./chunk-2TPMJJYQ.js";import{a as Pe,b as Ee,c as St,d as Pt,e as Et,f as Mt,g as oe,h as re}from"./chunk-GJJZ5QH6.js";import{e as Ct,f as Se,h as te,i as ne,j as ie,l as wt}from"./chunk-KRNW54CI.js";import{$c as Ce,Fb as J,Gb as dt,Gc as _t,Hb as ct,Hc as ye,I as qe,Ia as _,J as We,Jc as ht,K as Qe,La as h,M as Xe,Ma as f,Mc as ft,Na as it,O as M,Oa as Q,Pa as O,Qa as F,Ra as b,Rb as y,S as k,Sa as l,Sc as bt,T as S,Ta as s,Tc as ue,Ua as T,Ub as ve,Uc as xt,Va as u,Vb as N,Wa as m,Wb as gt,Xa as Y,Z as Ye,_a as ot,ac as Le,ad as ee,ba as v,bb as I,bc as pt,ca as L,cb as X,db as C,ea as Ne,fb as a,gd as H,hd as K,ia as Je,ib as rt,ja as ge,jb as at,kb as fe,lb as be,ma as r,mc as ut,nb as st,nc as mt,ob as lt,qb as Ve,rb as B,sb as xe,tb as pe,ua as A,ub as d,va as Ze,vb as p,wb as x,xa as et,xb as R,ya as tt,za as nt,zc as Z}from"./chunk-NJ4PSNK3.js";import"./chunk-3R7E3HPC.js";import{a as q,b as W}from"./chunk-Q7L6LLAK.js";function nn(t,n){if(t&1&&(u(0,"p",6),d(1),m()),t&2){let e=a();r(),R(" ",e.texts.aboutErrorPrefix," ",e.loadError()," ")}}var Me=class t{dataSource=M(H);updateCheck=M(Tt);theme=M(Ot);visible=N.required();texts=w;health=v(null);loadError=v(null);markSrc=y(()=>this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");cliVersion=y(()=>this.updateCheck.current()??this.health()?.implVersion??this.texts.aboutUnknown);specVersion=y(()=>this.health()?.specVersion??this.texts.aboutLoading);schemaVersion=y(()=>this.health()?.schemaVersion??this.texts.aboutLoading);scope=y(()=>this.health()?.scope??this.texts.aboutLoading);cwd=y(()=>this.health()?.cwd??this.texts.aboutLoading);dbDisplay=y(()=>{let n=this.health();return n?this.texts.aboutDbValue(n.db,on(n.dbPath,n.cwd)):this.texts.aboutLoading});homeDir=y(()=>this.health()?.homeDir??this.texts.aboutLoading);constructor(){L(()=>{this.visible()&&this.health()===null&&this.load()})}async load(){this.loadError.set(null);try{let n=await this.dataSource.health();this.health.set(n)}catch(n){let e=n instanceof K||n instanceof Error?n.message:String(n);this.loadError.set(e)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({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&&(u(0,"section",0)(1,"header",1),Y(2,"img",2),u(3,"div",3)(4,"h2",4),d(5),m(),u(6,"p",5),d(7),m()()(),h(8,nn,2,2,"p",6),u(9,"a",7),Y(10,"i",8),u(11,"span",9)(12,"span",10),d(13),m(),u(14,"span",11),d(15),m()(),u(16,"span",12),Y(17,"i",13),d(18),m()(),u(19,"dl",14)(20,"div",15)(21,"dt",16),d(22),m(),u(23,"dd",17)(24,"a",18),d(25),m()()(),u(26,"div",15)(27,"dt",16),d(28),m(),u(29,"dd",17)(30,"a",19),d(31),m()()(),u(32,"div",15)(33,"dt",16),d(34),m(),u(35,"dd",20),d(36),m()(),u(37,"div",15)(38,"dt",16),d(39),m(),u(40,"dd",21),d(41),m()(),u(42,"div",15)(43,"dt",16),d(44),m(),u(45,"dd",22),d(46),m()(),u(47,"div",15)(48,"dt",16),d(49),m(),u(50,"dd",23),d(51),m()(),u(52,"div",15)(53,"dt",16),d(54),m(),u(55,"dd",24),d(56),m()(),u(57,"div",15)(58,"dt",16),d(59),m(),u(60,"dd",25),d(61),m()(),u(62,"div",15)(63,"dt",16),d(64),m(),u(65,"dd",26),d(66),m()()()()),e&2&&(r(2),X("src",i.markSrc(),ge),r(3),x(" ",i.texts.aboutHeading," "),r(2),p(i.texts.aboutIntro),r(),f(i.loadError()?8:-1),r(),X("href",i.texts.aboutGithubUrl,ge),_("aria-label",i.texts.aboutStarA11y),r(4),p(i.texts.aboutStarHeading),r(2),p(i.texts.aboutStarBody),r(3),x(" ",i.texts.aboutStarCta," "),r(4),p(i.texts.aboutWebsiteLabel),r(2),X("href",i.texts.aboutWebsiteUrl,ge),r(),p(i.texts.aboutWebsiteUrl),r(3),p(i.texts.aboutGithubLabel),r(2),X("href",i.texts.aboutGithubUrl,ge),r(),p(i.texts.aboutGithubUrl),r(3),p(i.texts.aboutCliLabel),r(2),x(" ",i.cliVersion()," "),r(3),p(i.texts.aboutSpecLabel),r(2),x(" ",i.specVersion()," "),r(3),p(i.texts.aboutSchemaLabel),r(2),x(" ",i.schemaVersion()," "),r(3),p(i.texts.aboutScopeLabel),r(2),x(" ",i.scope()," "),r(3),p(i.texts.aboutFolderLabel),r(2),x(" ",i.cwd()," "),r(3),p(i.texts.aboutDbLabel),r(2),x(" ",i.dbDisplay()," "),r(3),p(i.texts.aboutHomeLabel),r(2),x(" ",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);font-size:.875rem;word-break:break-all}.settings-about__link[_ngcontent-%COMP%]{color:var(--p-primary-color);text-decoration:none}.settings-about__link[_ngcontent-%COMP%]:hover, .settings-about__link[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}.settings-about__star[_ngcontent-%COMP%]{--star-accent: #f4b400;display:flex;align-items:center;gap:.875rem;padding:.875rem 1rem;border-radius:var(--p-border-radius);border:1px solid color-mix(in oklab,var(--star-accent) 45%,transparent);background:color-mix(in oklab,var(--star-accent) 12%,transparent);color:var(--p-text-color);text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}.settings-about__star[_ngcontent-%COMP%]:hover, .settings-about__star[_ngcontent-%COMP%]:focus-visible{background:color-mix(in oklab,var(--star-accent) 22%,transparent);border-color:color-mix(in oklab,var(--star-accent) 70%,transparent);transform:translateY(-1px);outline:none}.app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--star-accent) 18%,transparent);border-color:color-mix(in oklab,var(--star-accent) 55%,transparent)}.app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:hover, .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:hover, .app-dark[_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:focus-visible, .app-dark [_nghost-%COMP%] .settings-about__star[_ngcontent-%COMP%]:focus-visible{background:color-mix(in oklab,var(--star-accent) 30%,transparent);border-color:var(--star-accent)}.settings-about__star-icon[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--star-accent);flex-shrink:0}.settings-about__star-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-about__star-heading[_ngcontent-%COMP%]{font-weight:600;font-size:.95rem}.settings-about__star-body[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--p-text-muted-color);line-height:1.4}.settings-about__star-cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border-radius:var(--sm-radius-pill);background:var(--star-accent);color:#1a1a1a;font-weight:600;font-size:.8125rem;white-space:nowrap;flex-shrink:0}.settings-about__star[_ngcontent-%COMP%]:hover .settings-about__star-cta[_ngcontent-%COMP%], .settings-about__star[_ngcontent-%COMP%]:focus-visible .settings-about__star-cta[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--star-accent) 88%,white)}"],changeDetection:0})};function on(t,n){if(!t||!n)return t;let e=n.replace(/[/\\]+$/,"");return t.startsWith(e)?t.slice(e.length).replace(/^[/\\]+/,""):t}var Ft={schemaVersion:1,entries:[{version:"0.23.1",date:"2026-05-12",kind:"user-facing",highlights:[{body:"Inspector chips and the hero card now render their variant styling (link, warn, broken, danger, hero accent border). They had silently been rendering as bare defaults since PrimeNG 21 changed how `[styleClass]` is applied to chip and card hosts.",packages:["@skill-map/cli"]}]},{version:"0.23.0",date:"2026-05-12",kind:"user-facing",highlights:[{body:'Node inspector will split actions into "Applicable" (always available) and "Recommended" (per finding). First pairing: stale sidecar recommends running `bump`. UI hookup lands in the next iteration; the spec field ships first.',packages:["@skill-map/cli","@skill-map/spec"]},{body:"`sm plugins create <id> -g` now scaffolds under `~/.skill-map/plugins/<id>` instead of the project dir. The flag was advertised in `--help` but previously ignored.",packages:["@skill-map/cli"]},{body:"`sm refresh`, `sm plugins doctor`, and `sm conformance run` now respect `--json` for machine-readable output. `sm graph --format json` is a new format that emits the full ScanResult. CI / scripts can parse these instead of the human text.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"`sm serve` now rejects browser requests whose `Host` or `Origin` is not a loopback name. Closes a DNS-rebinding lane where a malicious page could trigger scans or settings writes. `--dev-cors` still works for Vite-style dev UIs on a different loopback port.",packages:["@skill-map/cli","@skill-map/spec"]},{body:"`sm` now refuses to grant the `.sm` write consent (or apply `scan.extraFolders` / `scan.referencePaths`) from user-level config. The first prompt re-appears per project. Move stray values into `<project>/.skill-map/settings.local.json` (gitignored).",packages:["@skill-map/cli"]}]},{version:"0.22.0",date:"2026-05-12",kind:"user-facing",highlights:[{body:'The "include HOME" toggle is gone. To scan paths outside the project, list them in **Extra folders to scan** (renamed from *Extra roots*). If you had `scan.includeHome: true`, add the paths you actually need (e.g. `~/.claude/agents`) \u2014 not one click anymore.',packages:["@skill-map/cli","@skill-map/spec"]}]},{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 Dt=Ft;var an=(t,n)=>n.version;function sn(t,n){if(t&1&&(u(0,"p",3),d(1),m()),t&2){let e=a();r(),x(" ",e.texts.changelogEmpty," ")}}function ln(t,n){if(t&1&&(u(0,"p",10),d(1),m()),t&2){let e=a(3);r(),x(" ",e.texts.changelogInternalRelease," ")}}function dn(t,n){if(t&1&&(u(0,"li",15),d(1),m()),t&2){let e=n.$implicit;r(),p(e)}}function cn(t,n){if(t&1&&(u(0,"ul",14),O(1,dn,2,1,"li",15,Q),m()),t&2){let e=a().$implicit,i=a(4);_("aria-label",i.texts.changelogAffectedPackages),r(),F(e.packages)}}function gn(t,n){if(t&1&&(u(0,"li",12),Y(1,"div",13),h(2,cn,3,1,"ul",14),m()),t&2){let e=n.$implicit;r(),X("innerHTML",e.bodyHtml,Je),r(),f(e.packages.length?2:-1)}}function pn(t,n){if(t&1&&(u(0,"ul",11),O(1,gn,3,2,"li",12,it),m()),t&2){let e=a().$implicit;r(),F(e.highlights)}}function un(t,n){if(t&1&&(u(0,"li",6)(1,"header",7)(2,"span",8),d(3),m(),u(4,"span",9),d(5),m()(),h(6,ln,2,1,"p",10)(7,pn,3,0,"ul",11),m()),t&2){let e=n.$implicit;B("settings-changelog__entry--internal",e.kind==="internal"),_("data-testid","settings-changelog-entry-"+e.version),r(3),x("v",e.version),r(2),p(e.date),r(),f(e.kind==="internal"?6:7)}}function mn(t,n){if(t&1&&(u(0,"ol",4),O(1,un,8,6,"li",5,an),m()),t&2){let e=a();r(),F(e.entries())}}var Te=class t{markdown=M(kt);texts=w;entries=v([]);hasEntries=y(()=>this.entries().length>0);ngOnInit(){this.renderAll()}async renderAll(){let n=[];for(let e of Dt.entries){let i=[];for(let o of e.highlights)i.push({bodyHtml:await this.markdown.render(o.body),packages:o.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=A({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&&(u(0,"section",0)(1,"h2",1),d(2),m(),u(3,"p",2),d(4),m(),h(5,sn,2,1,"p",3)(6,mn,3,0,"ol",4),m()),e&2&&(_("aria-labelledby","settings-changelog-heading"),r(2),x(" ",i.texts.changelogHeading," "),r(2),p(i.texts.changelogIntro),r(),f(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:var(--sm-radius-sm);background:var(--sm-bg-hover);color:var(--p-text-color)}[_nghost-%COMP%] .settings-changelog__highlight-body a{color:var(--p-primary-color);text-decoration:underline}[_nghost-%COMP%] .settings-changelog__highlight-body strong{font-weight:600}.settings-changelog__packages[_ngcontent-%COMP%]{list-style:none;margin:.4rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem}.settings-changelog__package[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.7rem;padding:.1rem .4rem;border-radius:var(--sm-radius-sm);background:var(--sm-bg-hover);color:var(--sm-text-muted);border:1px solid var(--sm-border);line-height:1.4}"],changeDetection:0})};var At=`
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 _n=["handle"],hn=["input"],fn=t=>({checked:t});function bn(t,n){t&1&&ot(0)}function xn(t,n){if(t&1&&nt(0,bn,1,0,"ng-container",3),t&2){let e=a();b("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",ct(2,fn,e.checked()))}}var vn=`
116
+ ${At}
117
+
118
+ p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch-slider {
119
+ border-color: dt('toggleswitch.invalid.border.color');
120
+ }
121
+ `,yn={root:{position:"relative"}},Cn={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"},jt=(()=>{class t extends ht{name="toggleswitch";style=vn;classes=Cn;inlineStyles=yn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ne(t)))(o||t)}})();static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();var Nt=new Xe("TOGGLESWITCH_INSTANCE"),wn={provide:Ct,useExisting:qe(()=>se),multi:!0},se=(()=>{class t extends wt{componentName="ToggleSwitch";$pcToggleSwitch=M(Nt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=M(ue,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;tabindex;inputId;readonly;trueValue=!0;falseValue=!1;ariaLabel;size=N();ariaLabelledBy;autofocus;onChange=new Ye;input;handleTemplate;_handleTemplate;focused=!1;_componentStyle=M(jt);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(o){return(e||(e=Ne(t)))(o||t)}})();static \u0275cmp=A({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,o,c){if(i&1&&rt(c,_n,4)(c,_t,4),i&2){let g;fe(g=be())&&(o.handleTemplate=g.first),fe(g=be())&&(o.templates=g)}},viewQuery:function(i,o){if(i&1&&at(hn,5),i&2){let c;fe(c=be())&&(o.input=c.first)}},hostVars:7,hostBindings:function(i,o){i&1&&C("click",function(g){return o.onHostClick(g)}),i&2&&(_("data-p-checked",o.checked())("data-p-disabled",o.$disabled())("data-p",o.dataP),xe(o.sx("root")),pe(o.cn(o.cx("root"),o.styleClass)))},inputs:{styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",pt],inputId:"inputId",readonly:[2,"readonly","readonly",Le],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",size:[1,"size"],ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",Le]},outputs:{onChange:"onChange"},features:[J([wn,jt,{provide:Nt,useExisting:t},{provide:ft,useExisting:t}]),et([ue]),tt],decls:5,vars:22,consts:[["input",""],["type","checkbox","role","switch",3,"focus","blur","checked","pAutoFocus","pBind"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(l(0,"input",1,0),C("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),s(),l(2,"div",2)(3,"div",2),h(4,xn,1,4,"ng-container"),s()()),i&2&&(pe(o.cx("input")),b("checked",o.checked())("pAutoFocus",o.autofocus)("pBind",o.ptm("input")),_("id",o.inputId)("required",o.required()?"":void 0)("disabled",o.$disabled()?"":void 0)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name())("tabindex",o.tabindex),r(2),pe(o.cx("slider")),b("pBind",o.ptm("slider")),_("data-p",o.dataP),r(),pe(o.cx("handle")),b("pBind",o.ptm("handle")),_("data-p",o.dataP),r(),f(o.handleTemplate||o._handleTemplate?4:-1))},dependencies:[mt,ut,bt,ye,xt,ue],encapsulation:2,changeDetection:0})}return t})(),Ie=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ze({type:t});static \u0275inj=Qe({imports:[se,ye,ye]})}return t})();var kn=(t,n)=>n.key;function Sn(t,n){if(t&1&&(l(0,"p-message",3),d(1),s()),t&2){let e=a();b("closable",!1),r(),R(" ",e.texts.general.loadErrorPrefix," ",n," ")}}function Pn(t,n){if(t&1&&(l(0,"p-message",4),d(1),s()),t&2){let e=a();b("closable",!1),r(),R(" ",e.texts.general.saveErrorPrefix," ",n," ")}}function En(t,n){if(t&1){let e=I();l(0,"li",6)(1,"div",7)(2,"div",8),d(3),s(),l(4,"div",9),d(5),s()(),l(6,"p-toggleswitch",10),C("ngModelChange",function(o){let c=k(e).$implicit,g=a();return S(g.onToggle(c,o))}),s()()}if(t&2){let e=n.$implicit,i=a();_("data-testid","settings-general-row-"+e.key),r(3),p(i.toggleLabel(e.key)),r(2),x(" ",i.toggleDescription(e.key)," "),r(),b("ngModel",i.valueOf(e))("disabled",i.loading()||i.isPending(e.key)||i.preferences()===null),_("data-testid","settings-general-toggle-"+e.key)}}var Mn=[{key:"updateCheck.enabled",read:t=>t.updateCheck.enabled,patch:t=>({updateCheck:{enabled:t}})}],Oe=class t{dataSource=M(H);visible=N.required();texts=w;toggles=Mn;loading=v(!1);loadError=v(null);saveError=v(null);preferences=v(null);pending=v(new Set);constructor(){L(()=>{this.visible()&&this.refresh()})}toggleLabel(n){return w.general.toggles[n].label}toggleDescription(n){return w.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(Lt(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 o=await this.dataSource.setPreferences(n.patch(e));this.preferences.set(o)}catch(o){this.saveError.set(Lt(o))}finally{let o=new Set(this.pending());o.delete(n.key),this.pending.set(o)}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({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),d(2),s(),l(3,"p",2),d(4),s(),h(5,Sn,2,3,"p-message",3),h(6,Pn,2,3,"p-message",4),l(7,"ul",5),O(8,En,7,6,"li",6,kn),s()()),e&2){let o,c;_("aria-labelledby","settings-general-heading"),r(2),x(" ",i.texts.general.heading," "),r(2),p(i.texts.general.intro),r(),f((o=i.loadError())?5:-1,o),r(),f((c=i.saveError())?6:-1,c),r(2),F(i.toggles)}},dependencies:[ie,te,ne,re,oe,Ie,se],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 Lt(t){return t instanceof K||t instanceof Error?t.message:String(t)}var Re={provider:"#7C3AED",extractor:"#A78BFA",analyzer:"#5FD17C",action:"#00C853",formatter:"#5BC0EB",hook:"#FFB627"};function Bt(t){let n=t.toLowerCase();return Re[n]??"currentColor"}var Ae=["all",...Object.keys(Re)],Fe=["claude","gemini","agent-skills","core"],De=["provider","extractor","analyzer","action","formatter","hook"];function le(t,n){return`${t}/${n}`}function ze(t){let n=new Map;for(let e of t)if(!de(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(le(e.id,i.id),i.enabled)}return n}function Be(t){let n=t.target;return!n||typeof n.closest!="function"?!1:n.closest('label, button, input, [role="switch"], p-toggleswitch')!==null}function Kt(t,n){if(Tn(t,n))return[t];if(t.granularity!=="extension"||!t.extensions)return[];let e=t.extensions.filter(i=>In(i,n));return e.length===0?[]:[W(q({},t),{extensions:e})]}function $t(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?[]:[W(q({},t),{extensions:e})]}function Ht(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?[]:[W(q({},t),{extensions:n})]}function Gt(t){return t.slice().sort((e,i)=>{let o=Fe.indexOf(e.id),c=Fe.indexOf(i.id),g=o>=0?o:Fe.length,P=c>=0?c:Fe.length;return g!==P?g-P:e.id.localeCompare(i.id)}).map(e=>{if(e.granularity!=="extension"||!e.extensions)return e;let i=e.extensions.slice().sort((o,c)=>{let g=De.indexOf(o.kind.toLowerCase()),P=De.indexOf(c.kind.toLowerCase()),$=g>=0?g:De.length,V=P>=0?P:De.length;return $!==V?$-V:o.id.localeCompare(c.id)});return W(q({},e),{extensions:i})})}function Tn(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function In(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function de(t){return t==="incompatible-spec"||t==="invalid-manifest"||t==="load-error"||t==="id-collision"}function Ke(t){return t instanceof K||t instanceof Error?t.message:String(t)}function Ut(t,n){return de(t.status)?n.statusFailure[t.status]??t.status:t.status==="enabled"?n.enabledLabel:n.disabledLabel}function qt(t,n){switch(t){case"built-in":return n.sourceBuiltIn;case"project":return n.sourceProject;case"global":return n.sourceGlobal}}var $e="sm.settings.plugins.collapsed",He="sm.settings.plugins.kind-filter";function Wt(){let t=null;try{t=localStorage.getItem($e)}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 Qt(t){try{if(t.size===0){localStorage.removeItem($e);return}localStorage.setItem($e,JSON.stringify([...t]))}catch{}}function Xt(){let t=null;try{t=localStorage.getItem(He)}catch{return"all"}return t&&Ae.includes(t)?t:"all"}function Yt(t){try{if(t==="all"){localStorage.removeItem(He);return}localStorage.setItem(He,t)}catch{}}function Jt(t){let n=v(""),e=y(()=>n().trim().length>0),i=v(Xt()),o=y(()=>i()!=="all");L(()=>Yt(i()));let c=y(()=>Gt(t.plugins().flatMap(Ht))),g=y(()=>{let V=n().trim().toLowerCase(),_e=i(),G=c();return _e!=="all"&&(G=G.flatMap(he=>$t(he,_e))),V.length>0&&(G=G.flatMap(he=>Kt(he,V))),G});return{searchText:n,searchActive:e,kindFilter:i,setKindFilter:V=>{i.set(V)},isKindFilterActive:V=>i()===V,kindFilterActive:o,kindFilterOptions:Ae,visiblePlugins:c,filteredPlugins:g}}function Zt(t){let n=v(!1),e=v(null),i=v(null),o=v([]),c=v(new Map),g=v(new Map),P=v(!1),$=y(()=>{let E=c(),D=g(),z=new Set;for(let[U,j]of D)E.get(U)!==j&&z.add(U);return z}),V=y(()=>$().size>0),_e=y(()=>o().some(E=>de(E.status))),G=y(()=>{let E=g();for(let D of o())if(D.startsAsDisabled===!0&&E.get(D.id)===!0)return!0;return!1});return{plugins:o,loading:n,loadError:e,toggleError:i,applying:P,hasFailureRows:_e,originalState:c,pendingState:g,dirtyIds:$,hasPendingChanges:V,restartRecommended:G,pendingEnabled:E=>g().get(E)??!1,isDirty:E=>$().has(E),refresh:async()=>{n.set(!0),e.set(null),i.set(null);try{let E=await t.dataSource.listPlugins();o.set([...E.items]);let D=ze(E.items);c.set(D),g.set(new Map(D))}catch(E){e.set(Ke(E)),o.set([]),c.set(new Map),g.set(new Map)}finally{n.set(!1)}},onBundleToggle:(E,D)=>{if(P())return;let z=new Map(g());z.set(E.id,D),g.set(z)},onExtensionToggle:(E,D,z)=>{if(P())return;let U=le(E,D.id),j=new Map(g());j.set(U,z),g.set(j)},applyChanges:async()=>{if(P())return{ok:!1};let E=$();if(E.size===0)return{ok:!1};let D=[],z=g();for(let j of E)D.push({id:j,enabled:z.get(j)??!1});P.set(!0),i.set(null);let U=!1;try{let j=await t.dataSource.applyPluginChanges(D);o.set([...j.items]);let Ue=ze(j.items);c.set(Ue),g.set(new Map(Ue)),t.scanTrigger.run(),U=!0}catch(j){i.set(Ke(j))}finally{P.set(!1)}return{ok:U}},discardChanges:()=>{g.set(new Map(c())),i.set(null)}}}var en=(t,n)=>n.id;function Dn(t,n){if(t&1){let e=I();l(0,"button",15),C("click",function(){let o=k(e).$implicit,c=a();return S(c.setKindFilter(o))}),d(1),s()}if(t&2){let e=n.$implicit,i=a();Ve("--kind-color",e==="all"?null:i.kindTint(e)),B("is-active",i.isKindFilterActive(e))("is-all",e==="all"),_("aria-pressed",i.isKindFilterActive(e))("aria-label",i.texts.pluginsKindFilterOptionA11y(e,!i.isKindFilterActive(e)))("data-testid","settings-plugins-kind-chip-"+e),r(),x(" ",e==="all"?i.texts.pluginsKindFilterAll:e," ")}}function An(t,n){if(t&1&&(l(0,"p-message",10),d(1),s()),t&2){let e=a();b("closable",!1),r(),x(" ",e.texts.unsavedChangesMessage(e.dirtyIds().size)," ")}}function jn(t,n){if(t&1&&(l(0,"p",11),T(1,"i",16),d(2),s()),t&2){let e=a();r(2),x(" ",e.texts.loading," ")}}function Nn(t,n){if(t&1&&(l(0,"p-message",12),d(1),s()),t&2){let e=a();b("closable",!1),r(),R(" ",e.texts.errorPrefix," ",e.loadError()," ")}}function Vn(t,n){if(t&1&&(l(0,"p",13),d(1),s()),t&2){let e=a();r(),x(" ",e.texts.empty," ")}}function Ln(t,n){if(t&1){let e=I();l(0,"p-message",21),C("onClose",function(){k(e);let o=a(2);return S(o.toggleError.set(null))}),d(1),s()}if(t&2){let e=a(2);b("closable",!0),r(),R(" ",e.texts.toggleErrorPrefix," ",e.toggleError()," ")}}function Rn(t,n){if(t&1&&(l(0,"p",18),T(1,"i",22),d(2),s()),t&2){let e=a(2);r(2),x(" ",e.texts.pluginsSearchEmpty(e.searchText())," ")}}function zn(t,n){if(t&1){let e=I();l(0,"button",40),C("click",function(o){k(e);let c=a().$implicit;return a(2).toggleExpanded(c.id),S(o.stopPropagation())}),T(1,"i",41),s()}if(t&2){let e=a().$implicit,i=a(2);_("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),r(),B("fa-chevron-down",i.isExpanded(e.id))("fa-chevron-right",!i.isExpanded(e.id))}}function Bn(t,n){t&1&&T(0,"span",26)}function Kn(t,n){if(t&1&&T(0,"span",29),t&2){let e=a().$implicit;_("data-testid","settings-row-dirty-"+e.id)}}function $n(t,n){if(t&1&&(l(0,"span",32),d(1),s()),t&2){let e=a().$implicit;r(),x("v",e.version)}}function Hn(t,n){if(t&1&&(l(0,"span",33),T(1,"i",42),d(2),s()),t&2){let e=a().$implicit,i=a(2);b("title",i.texts.lockedTooltip),_("data-testid","settings-row-locked-"+e.id),r(2),x(" ",i.texts.lockedLabel," ")}}function Gn(t,n){if(t&1&&(l(0,"span",34),d(1),s()),t&2){let e=a().$implicit,i=a(2);r(),p(i.statusLabel(e))}}function Un(t,n){if(t&1&&(l(0,"p",35),d(1),s()),t&2){let e=a().$implicit;r(),p(e.description)}}function qn(t,n){if(t&1&&(l(0,"span",36),d(1),s()),t&2){let e=a().$implicit;r(),p(e.reason)}}function Wn(t,n){if(t&1&&(l(0,"p",37),T(1,"i",43),d(2),s()),t&2){let e=a().$implicit,i=a(2);_("data-testid","settings-row-starts-disabled-"+e.id),r(2),x(" ",i.texts.startsAsDisabledRowHint," ")}}function Qn(t,n){if(t&1){let e=I();l(0,"p-toggleswitch",44),C("ngModelChange",function(o){k(e);let c=a().$implicit,g=a(2);return S(g.onBundleToggle(c,o))}),s()}if(t&2){let e=a().$implicit,i=a(2);b("ngModel",i.pendingEnabled(e.id))("disabled",i.applying()||!!e.locked)("ariaLabel",i.texts.a11y.pluginToggle(e.id,!i.pendingEnabled(e.id))),_("data-testid","settings-toggle-"+e.id)}}function Xn(t,n){if(t&1&&T(0,"span",29),t&2){let e=a().$implicit,i=a(2).$implicit;_("data-testid","settings-extrow-dirty-"+i.id+"-"+e.id)}}function Yn(t,n){if(t&1&&(l(0,"span",33),T(1,"i",42),d(2),s()),t&2){let e=a().$implicit,i=a(2).$implicit,o=a(2);b("title",o.texts.lockedTooltip),_("data-testid","settings-extrow-locked-"+i.id+"-"+e.id),r(2),x(" ",o.texts.lockedLabel," ")}}function Jn(t,n){if(t&1&&(l(0,"p",52),d(1),s()),t&2){let e=a().$implicit;r(),p(e.description)}}function Zn(t,n){if(t&1){let e=I();l(0,"li",46),C("click",function(o){let c=k(e).$implicit,g=a(2).$implicit,P=a(2);return S(P.onSubrowClick(g.id,c,o))})("keydown.enter",function(o){let c=k(e).$implicit,g=a(2).$implicit,P=a(2);return S(P.onSubrowClick(g.id,c,o))})("keydown.space",function(o){let c=k(e).$implicit,g=a(2).$implicit,P=a(2);return o.preventDefault(),S(P.onSubrowClick(g.id,c,o))}),l(1,"div",47)(2,"div",48),h(3,Xn,1,1,"span",29),l(4,"span",49),d(5),s(),l(6,"span",50),d(7),s(),l(8,"span",51),d(9),s(),h(10,Yn,3,3,"span",33),s(),h(11,Jn,2,1,"p",52),s(),l(12,"p-toggleswitch",44),C("ngModelChange",function(o){let c=k(e).$implicit,g=a(2).$implicit,P=a(2);return S(P.onExtensionToggle(g.id,c,o))}),s()()}if(t&2){let e=n.$implicit,i=a(2).$implicit,o=a(2);B("is-clickable",o.extensionToggleInteractive(e))("is-dirty",o.isDirty(o.qualifiedExt(i.id,e.id))),_("aria-label",o.texts.a11y.extensionRow(o.qualifiedExt(i.id,e.id)))("data-testid","settings-extrow-"+i.id+"-"+e.id),r(3),f(o.isDirty(o.qualifiedExt(i.id,e.id))?3:-1),r(2),p(e.id),r(),Ve("--kind-color",o.kindTint(e.kind)),r(),p(e.kind),r(2),x("v",e.version),r(),f(e.locked?10:-1),r(),f(e.description?11:-1),r(),b("ngModel",o.pendingEnabled(o.qualifiedExt(i.id,e.id)))("disabled",o.applying()||!!e.locked)("ariaLabel",o.texts.a11y.extensionToggle(o.qualifiedExt(i.id,e.id),!o.pendingEnabled(o.qualifiedExt(i.id,e.id)))),_("data-testid","settings-ext-toggle-"+i.id+"-"+e.id)}}function ei(t,n){if(t&1&&(l(0,"ul",39),O(1,Zn,13,18,"li",45,en),s()),t&2){let e=a().$implicit;_("data-testid","settings-extensions-"+e.id),r(),F(e.extensions)}}function ti(t,n){if(t&1){let e=I();l(0,"li",23)(1,"div",24),C("click",function(o){let c=k(e).$implicit,g=a(2);return S(g.onRowClick(c,o))})("keydown.enter",function(o){let c=k(e).$implicit,g=a(2);return S(g.onRowClick(c,o))})("keydown.space",function(o){let c=k(e).$implicit,g=a(2);return o.preventDefault(),S(g.onRowClick(c,o))}),h(2,zn,2,7,"button",25)(3,Bn,1,0,"span",26),l(4,"div",27)(5,"div",28),h(6,Kn,1,1,"span",29),l(7,"span",30),d(8),s(),l(9,"span",31),d(10),s(),h(11,$n,2,1,"span",32),h(12,Hn,3,3,"span",33),h(13,Gn,2,1,"span",34),s(),h(14,Un,2,1,"p",35),h(15,qn,2,1,"span",36),h(16,Wn,3,2,"p",37),s(),h(17,Qn,1,4,"p-toggleswitch",38),s(),h(18,ei,3,1,"ul",39),s()}if(t&2){let e=n.$implicit,i=a(2);B("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)),_("data-testid","settings-row-"+e.id),r(),_("aria-label",i.texts.a11y.pluginRow(e.id)),r(),f(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)?2:3),r(4),f(e.granularity==="bundle"&&i.isDirty(e.id)?6:-1),r(2),p(e.id),r(2),p(i.sourceLabel(e.source)),r(),f(e.version?11:-1),r(),f(e.locked?12:-1),r(),f(!i.canToggleBundle(e)&&e.granularity==="bundle"?13:-1),r(),f(e.description?14:-1),r(),f(e.reason?15:-1),r(),f(i.showStartsAsDisabledHint(e)?16:-1),r(),f(i.canToggleBundle(e)?17:-1),r(),f(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)&&i.isExpanded(e.id)?18:-1)}}function ni(t,n){if(t&1&&(h(0,Ln,2,3,"p-message",17),h(1,Rn,3,1,"p",18),l(2,"ul",19),O(3,ti,19,22,"li",20,en),s()),t&2){let e=a();f(e.toggleError()?0:-1),r(),f(e.searchActive()&&e.filteredPlugins().length===0?1:-1),r(2),F(e.filteredPlugins())}}function ii(t,n){if(t&1&&(l(0,"em",53),d(1),s()),t&2){let e=a(2);r(),x(" ",e.texts.startsAsDisabledFooterHint," ")}}function oi(t,n){if(t&1){let e=I();l(0,"footer",14),h(1,ii,2,1,"em",53),l(2,"p-button",54),C("onClick",function(){k(e);let o=a();return S(o.discardChanges())}),s(),l(3,"p-button",55),C("onClick",function(){k(e);let o=a();return S(o.applyChanges())}),s()()}if(t&2){let e=a();r(),f(e.restartRecommended()?1:-1),r(),b("text",!0)("label",e.texts.discardChanges)("ariaLabel",e.texts.discardA11y)("disabled",e.applying()),r(),b("label",e.texts.applyAndClose)("ariaLabel",e.texts.applyA11y)("disabled",e.applying())("loading",e.applying())}}var ce=class t{dataSource=M(H);scanTrigger=M(It);visible=N.required();applied=ve();texts=w;pluginState=Zt({dataSource:this.dataSource,scanTrigger:this.scanTrigger});plugins=this.pluginState.plugins;loading=this.pluginState.loading;loadError=this.pluginState.loadError;toggleError=this.pluginState.toggleError;applying=this.pluginState.applying;hasFailureRows=this.pluginState.hasFailureRows;originalState=this.pluginState.originalState;pendingState=this.pluginState.pendingState;dirtyIds=this.pluginState.dirtyIds;hasPendingChanges=this.pluginState.hasPendingChanges;restartRecommended=this.pluginState.restartRecommended;collapsed=v(Wt());pluginFilter=Jt({plugins:this.plugins});searchText=this.pluginFilter.searchText;searchActive=this.pluginFilter.searchActive;kindFilter=this.pluginFilter.kindFilter;kindFilterActive=this.pluginFilter.kindFilterActive;kindFilterOptions=this.pluginFilter.kindFilterOptions;visiblePlugins=this.pluginFilter.visiblePlugins;filteredPlugins=this.pluginFilter.filteredPlugins;constructor(){L(()=>{this.visible()&&this.pluginState.refresh()}),L(()=>Qt(this.collapsed()))}setKindFilter(n){this.pluginFilter.setKindFilter(n)}isKindFilterActive(n){return this.pluginFilter.isKindFilterActive(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.pluginState.pendingEnabled(n)}isDirty(n){return this.pluginState.isDirty(n)}showStartsAsDisabledHint(n){return n.startsAsDisabled?this.pendingEnabled(n.id):!1}onBundleToggle(n,e){this.pluginState.onBundleToggle(n,e)}onExtensionToggle(n,e,i){this.pluginState.onExtensionToggle(n,e,i)}async applyChanges(){(await this.pluginState.applyChanges()).ok&&this.applied.emit()}discardChanges(){this.pluginState.discardChanges()}canToggleBundle(n){return n.granularity==="extension"?!1:!de(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(!Be(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(Be(i)||!this.extensionToggleInteractive(e))return;let o=le(n,e.id);this.onExtensionToggle(n,e,!this.pendingEnabled(o))}statusLabel(n){return Ut(n,this.texts)}sourceLabel(n){return qt(n,this.texts)}qualifiedExt(n,e){return le(n,e)}kindTint(n){return Bt(n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({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"],["role","button","tabindex","0",1,"settings-plugins__row-main",3,"click","keydown.enter","keydown.space"],["type","button",1,"settings-plugins__expand"],["aria-hidden","true",1,"settings-plugins__expand-spacer"],[1,"settings-plugins__row-text"],[1,"settings-plugins__row-headline"],["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",1,"fa-solid"],["aria-hidden","true",1,"fa-solid","fa-lock"],["aria-hidden","true",1,"fa-solid","fa-triangle-exclamation"],[3,"ngModelChange","ngModel","disabled","ariaLabel"],["role","button","tabindex","0",1,"settings-plugins__subrow",3,"is-clickable","is-dirty"],["role","button","tabindex","0",1,"settings-plugins__subrow",3,"click","keydown.enter","keydown.space"],[1,"settings-plugins__subrow-text"],[1,"settings-plugins__subrow-headline"],[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),d(4),s(),l(5,"p",4),d(6),s()(),l(7,"p-iconfield",5),T(8,"p-inputicon",6),l(9,"input",7),C("ngModelChange",function(c){return i.searchText.set(c)}),s()(),l(10,"div",8),O(11,Dn,2,10,"button",9,Q),s(),h(13,An,2,2,"p-message",10),h(14,jn,3,1,"p",11)(15,Nn,2,3,"p-message",12)(16,Vn,2,1,"p",13)(17,ni,5,2),s(),h(18,oi,4,9,"footer",14),s()),e&2&&(r(4),x(" ",i.texts.pluginsHeading," "),r(2),p(i.texts.pluginsIntro),r(3),b("placeholder",i.texts.pluginsSearchPlaceholder)("ngModel",i.searchText()),_("aria-label",i.texts.pluginsSearchA11y),r(),_("aria-label",i.texts.pluginsKindFilterA11y),r(),F(i.kindFilterOptions),r(2),f(i.hasPendingChanges()?13:-1),r(),f(i.loading()?14:i.loadError()?15:i.plugins().length===0?16:17),r(4),f(i.hasPendingChanges()?18:-1))},dependencies:[ie,Se,te,ne,ee,Ce,Pt,St,Mt,Et,Ee,Pe,re,oe,Ie,se],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:var(--sm-radius-pill);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);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:var(--p-surface-50)}.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:var(--p-surface-900)}.settings-plugins__banner[_ngcontent-%COMP%]{display:block}.settings-plugins__banner-body[_ngcontent-%COMP%]{font-weight:400}.settings-plugins__hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0;padding:1rem 0;color:var(--p-text-muted-color);font-size:.875rem}.settings-plugins__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-plugins__row[_ngcontent-%COMP%]{border:1px solid var(--p-content-border-color);border-radius:var(--p-border-radius);background:var(--p-content-background);padding:.75rem .875rem;display:flex;flex-direction:column;gap:.5rem}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__row.is-failed[_ngcontent-%COMP%]{border-color:var(--p-message-error-border-color);background:var(--p-message-error-background)}.settings-plugins__row.is-extension-bundle[_ngcontent-%COMP%]{background:var(--p-content-background)}.settings-plugins__row-main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.settings-plugins__expand[_ngcontent-%COMP%], .settings-plugins__expand-spacer[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.settings-plugins__expand[_ngcontent-%COMP%]{border:none;background:transparent;cursor:pointer;color:var(--p-text-muted-color);border-radius:var(--p-border-radius)}.settings-plugins__expand[_ngcontent-%COMP%]:hover{color:var(--p-text-color);background:var(--p-content-hover-background)}.settings-plugins__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__row-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__row-id[_ngcontent-%COMP%]{font-weight:600;font-family:var(--p-monospace-font-family)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-kind[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.7rem;font-weight:500;letter-spacing:.02em;padding:.125rem .5rem;border-radius:var(--sm-radius-pill);white-space:nowrap}.settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family)}.settings-plugins__row-source[_ngcontent-%COMP%], .settings-plugins__row-version[_ngcontent-%COMP%], .settings-plugins__subrow-version[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-text-color) 8%,transparent);border:1px solid color-mix(in oklab,var(--p-text-color) 18%,transparent);color:var(--p-text-color)}.app-dark[_nghost-%COMP%] .settings-plugins__row-source[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-source[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .settings-plugins__row-version[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-version[_ngcontent-%COMP%], .app-dark[_nghost-%COMP%] .settings-plugins__subrow-version[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__subrow-version[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-text-color) 14%,transparent);border-color:color-mix(in oklab,var(--p-text-color) 28%,transparent)}.settings-plugins__subrow-kind[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--kind-color, 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%,var(--p-surface-900))}.app-dark[_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__subrow-kind[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--kind-color, 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%,var(--p-surface-50))}.settings-plugins__row-status[_ngcontent-%COMP%]{font-weight:500}.settings-plugins__row-locked[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;font-size:.7rem;font-weight:500;letter-spacing:.02em;padding:.125rem .5rem;border-radius:var(--sm-radius-pill);white-space:nowrap;background:color-mix(in oklab,var(--p-message-warn-color) 14%,transparent);border:1px solid color-mix(in oklab,var(--p-message-warn-color) 35%,transparent);color:color-mix(in oklab,var(--p-message-warn-color) 70%,var(--p-surface-900))}.settings-plugins__row-locked[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{font-size:.7rem}.app-dark[_nghost-%COMP%] .settings-plugins__row-locked[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__row-locked[_ngcontent-%COMP%]{background:color-mix(in oklab,var(--p-message-warn-color) 22%,transparent);border-color:color-mix(in oklab,var(--p-message-warn-color) 55%,transparent);color:color-mix(in oklab,var(--p-message-warn-color) 85%,var(--p-surface-50))}.settings-plugins__row-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.8125rem;line-height:1.4;color:var(--p-text-muted-color)}.settings-plugins__row-reason[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--p-message-error-color);font-family:var(--p-monospace-font-family);margin-top:.25rem}.settings-plugins__sublist[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.5rem 0 0 1.75rem;display:flex;flex-direction:column;gap:.25rem;border-top:1px dashed var(--p-content-border-color)}.settings-plugins__subrow[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.375rem .5rem;border-radius:var(--p-border-radius)}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__subrow.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__subrow-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__subrow-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.settings-plugins__subrow-id[_ngcontent-%COMP%]{font-family:var(--p-monospace-font-family);font-size:.875rem}.settings-plugins__subrow-description[_ngcontent-%COMP%]{margin:.25rem 0 0;font-size:.75rem;line-height:1.4;color:var(--p-text-muted-color)}.settings-plugins__dirty-dot[_ngcontent-%COMP%]{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--p-warn-color);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)}.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 ai(t,n){if(t&1&&(l(0,"p-message",3),d(1),s()),t&2){let e=a();b("closable",!1),r(),R(" ",e.texts.project.loadErrorPrefix," ",n," ")}}function si(t,n){if(t&1&&(l(0,"p-message",4),d(1),s()),t&2){let e=a();b("closable",!1),r(),R(" ",e.texts.project.saveErrorPrefix," ",n," ")}}function li(t,n){if(t&1){let e=I();l(0,"li",10)(1,"span",17),d(2),s(),l(3,"p-button",18),C("onClick",function(){let o=k(e).$implicit,c=a();return S(c.onExtraFolderRemove(o))}),s()()}if(t&2){let e=n.$implicit,i=a();r(2),p(e),r(),b("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.extraFolders")),_("data-testid","settings-project-extra-folders-remove")}}function di(t,n){if(t&1){let e=I();l(0,"li",10)(1,"span",17),d(2),s(),l(3,"p-button",18),C("onClick",function(){let o=k(e).$implicit,c=a();return S(c.onReferencePathRemove(o))}),s()()}if(t&2){let e=n.$implicit,i=a();r(2),p(e),r(),b("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.referencePaths")),_("data-testid","settings-project-reference-paths-remove")}}var je=class t{dataSource=M(H);confirmation=M(Z);visible=N.required();texts=w;loading=v(!1);loadError=v(null);saveError=v(null);preferences=v(null);pending=v(new Set);newExtraFolder=v("");newReferencePath=v("");extraFolders=y(()=>this.preferences()?.scan.extraFolders??[]);referencePaths=y(()=>this.preferences()?.scan.referencePaths??[]);constructor(){L(()=>{this.visible()&&this.refresh()})}isPending(n){return this.pending().has(n)}onExtraFolderAdd(){let n=this.newExtraFolder().trim();if(n.length===0)return;let e=[...this.extraFolders(),n];this.runPatch("scan.extraFolders",{scan:{extraFolders:e}}).then(()=>{this.newExtraFolder.set("")})}onExtraFolderRemove(n){let e=this.extraFolders().filter(i=>i!==n);this.runPatch("scan.extraFolders",{scan:{extraFolders:[...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(Ge(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 o=await this.dataSource.setProjectPreferences(e);this.preferences.set(o)}catch(o){if(o instanceof K&&o.code==="confirm-required"){let c=o.paths??[];this.confirmDialog(c,async()=>{try{let g=await this.dataSource.setProjectPreferences(W(q({},e),{confirm:!0}));this.preferences.set(g)}catch(g){this.saveError.set(Ge(g))}})}else this.saveError.set(Ge(o))}finally{let o=new Set(this.pending());o.delete(n),this.pending.set(o)}}confirmDialog(n,e){this.confirmation.confirm({header:w.project.confirmDialogHeader,message:w.project.confirmDialogIntro+`
122
+ `+n.map(i=>`\u2022 ${i}`).join(`
123
+ `),acceptLabel:w.project.confirmDialogAccept,rejectLabel:w.project.confirmDialogReject,acceptButtonProps:{severity:"primary"},rejectButtonProps:{severity:"secondary"},accept:()=>{e()}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["sm-settings-project"]],inputs:{visible:[1,"visible"]},features:[J([Z])],decls:32,vars:19,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-extra-folders-row",1,"settings-project__list-row"],[1,"settings-project__row-text"],[1,"settings-project__row-label"],[1,"settings-project__row-description"],["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-folders-input",3,"ngModelChange","ngModel","placeholder","disabled"],["severity","primary","size","small","data-testid","settings-project-extra-folders-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),d(2),s(),l(3,"p",2),d(4),s(),h(5,ai,2,3,"p-message",3),h(6,si,2,3,"p-message",4),l(7,"div",5)(8,"div",6)(9,"div",7),d(10),s(),l(11,"div",8),d(12),s()(),l(13,"ul",9),O(14,li,4,5,"li",10,Q),s(),l(16,"div",11)(17,"input",12),C("ngModelChange",function(c){return i.newExtraFolder.set(c)}),s(),l(18,"p-button",13),C("onClick",function(){return i.onExtraFolderAdd()}),s()()(),l(19,"div",14)(20,"div",6)(21,"div",7),d(22),s(),l(23,"div",8),d(24),s()(),l(25,"ul",9),O(26,di,4,5,"li",10,Q),s(),l(28,"div",11)(29,"input",15),C("ngModelChange",function(c){return i.newReferencePath.set(c)}),s(),l(30,"p-button",16),C("onClick",function(){return i.onReferencePathAdd()}),s()()(),T(31,"p-confirmdialog"),s()),e&2){let o,c;_("aria-labelledby","settings-project-heading"),r(2),x(" ",i.texts.project.heading," "),r(2),p(i.texts.project.intro),r(),f((o=i.loadError())?5:-1,o),r(),f((c=i.saveError())?6:-1,c),r(4),p(i.texts.project.extraFoldersLabel),r(2),x(" ",i.texts.project.extraFoldersDescription," "),r(2),F(i.extraFolders()),r(3),b("ngModel",i.newExtraFolder())("placeholder",i.texts.project.extraFoldersPlaceholder)("disabled",i.isPending("scan.extraFolders")),r(),b("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.extraFolders")||i.newExtraFolder().trim().length===0),r(4),p(i.texts.project.referencePathsLabel),r(2),x(" ",i.texts.project.referencePathsDescription," "),r(2),F(i.referencePaths()),r(3),b("ngModel",i.newReferencePath())("placeholder",i.texts.project.referencePathsPlaceholder)("disabled",i.isPending("scan.referencePaths")),r(),b("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.referencePaths")||i.newReferencePath().trim().length===0)}},dependencies:[ie,Se,te,ne,ee,Ce,ke,we,Ee,Pe,re,oe],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);font-size:.8rem;word-break:break-all;flex:1 1 auto}.settings-project__add-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.settings-project__add-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1 1 auto;font-family:var(--p-font-family-mono);font-size:.8rem}"],changeDetection:0})};function Ge(t){return t instanceof K||t instanceof Error?t.message:String(t)}var ci=()=>({width:"1024px",height:"720px",maxWidth:"92vw",maxHeight:"90vh"}),gi=(t,n)=>n.id;function pi(t,n){if(t&1){let e=I();l(0,"li")(1,"button",6),C("click",function(){let o=k(e).$implicit,c=a();return S(c.selectSection(o.id))}),l(2,"span",7),d(3),s()()()}if(t&2){let e=n.$implicit,i=a();r(),B("is-active",i.activeSection()===e.id),_("aria-current",i.activeSection()===e.id?"page":null)("data-testid","settings-nav-"+e.id),r(2),p(e.label)}}function ui(t,n){if(t&1){let e=I();l(0,"sm-settings-plugins",8),C("applied",function(){k(e);let o=a();return S(o.onPluginsApplied())}),s()}if(t&2){let e=a();b("visible",e.pluginsVisible())}}function mi(t,n){if(t&1&&T(0,"sm-settings-general",5),t&2){let e=a();b("visible",e.generalVisible())}}function _i(t,n){if(t&1&&T(0,"sm-settings-project",5),t&2){let e=a();b("visible",e.projectVisible())}}function hi(t,n){if(t&1&&T(0,"sm-settings-about",5),t&2){let e=a();b("visible",e.aboutVisible())}}function fi(t,n){t&1&&T(0,"sm-settings-changelog")}var bi=[{id:"general",label:w.sections.general},{id:"project",label:w.sections.project},{id:"plugins",label:w.sections.plugins},{id:"changelog",label:w.sections.changelog},{id:"about",label:w.sections.about}],tn=class t{visible=N.required();visibleChange=ve();confirmation=M(Z);pluginsPanel=gt(ce);texts=w;sections=bi;activeSection=v("plugins");pluginsVisible=y(()=>this.visible()&&this.activeSection()==="plugins");generalVisible=y(()=>this.visible()&&this.activeSection()==="general");projectVisible=y(()=>this.visible()&&this.activeSection()==="project");aboutVisible=y(()=>this.visible()&&this.activeSection()==="about");onVisibleChange(n){if(n){this.visibleChange.emit(!0);return}let e=this.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=A({type:t,selectors:[["sm-settings-modal"]],viewQuery:function(e,i){e&1&&st(i.pluginsPanel,ce,5),e&2&&lt()},inputs:{visible:[1,"visible"]},outputs:{visibleChange:"visibleChange"},features:[J([Z])],decls:13,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"],["type","button",1,"settings-modal__sidebar-item",3,"click"],[1,"settings-modal__sidebar-label"],[3,"applied","visible"]],template:function(e,i){if(e&1&&(l(0,"p-dialog",0),C("visibleChange",function(c){return i.onVisibleChange(c)}),l(1,"div",1)(2,"nav",2)(3,"ul",3),O(4,pi,4,5,"li",null,gi),s()(),l(6,"div",4),h(7,ui,1,1,"sm-settings-plugins",5)(8,mi,1,1,"sm-settings-general",5)(9,_i,1,1,"sm-settings-project",5)(10,hi,1,1,"sm-settings-about",5)(11,fi,1,0,"sm-settings-changelog"),s()(),T(12,"p-confirmdialog"),s()),e&2){let o;xe(dt(12,ci)),b("visible",i.visible())("modal",!0)("draggable",!1)("resizable",!1)("closable",!0)("closeOnEscape",!0)("dismissableMask",!0)("header",i.texts.modalTitle),r(2),_("aria-label",i.texts.modalTitle),r(2),F(i.sections),r(3),f((o=i.activeSection())==="plugins"?7:o==="general"?8:o==="project"?9:o==="about"?10:o==="changelog"?11:-1)}},dependencies:[ee,ke,we,yt,vt,Me,Te,Oe,ce,je],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-label[_ngcontent-%COMP%]{flex:1;font-size:.9rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-modal__main[_ngcontent-%COMP%]{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}.settings-modal__main[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;min-height:0}"],changeDetection:0})};export{tn as SettingsModal};
@@ -1,4 +1,4 @@
1
- import{a as he,d as ve,g as xe,k as ye}from"./chunk-OPPQMCMQ.js";import{$a as H,Aa as N,Gb as T,Gc as ge,Hc as w,Ib as le,J as h,Ja as d,Jc as M,K as b,Ka as te,La as ne,M as v,Ma as _,Na as C,O as i,Oc as k,Pb as de,Pc as A,S as W,Sa as a,Sb as U,T as X,Ta as D,U as J,Ua as B,Va as j,Vc as s,Wb as g,Wc as $,Z as K,Zc as fe,ad as be,ba as Y,bc as S,ca as Q,cb as oe,ea as u,eb as R,gb as c,hb as F,ia as Z,ib as E,ic as pe,jb as ie,lb as O,lc as ue,mb as V,na as p,nc as me,oc as P,qb as se,sb as ae,ub as l,va as z,vb as re,wa as x,wb as ce,xa as ee,ya as y,za as I}from"./chunk-25AWRVIC.js";import{a as L}from"./chunk-Q7L6LLAK.js";var Ie=`
1
+ import{a as he,d as ve,g as xe,k as ye}from"./chunk-KRNW54CI.js";import{Fb as T,Gc as ge,Hb as le,Hc as w,Ia as d,J as h,Ja as te,Jc as M,K as b,Ka as ne,La as _,M as v,Ma as C,Mc as k,Nc as A,O as i,Ob as de,Ra as a,Rb as U,S as W,Sa as D,T as X,Ta as B,Tc as s,U as J,Ua as j,Uc as $,Vb as g,Xc as fe,Z as K,_a as H,_c as be,ac as S,ba as Y,bb as oe,ca as Q,db as R,ea as u,fb as c,gb as F,hb as E,hc as pe,ia as Z,ib as ie,kb as O,kc as ue,lb as V,ma as p,mc as me,nc as P,pb as se,rb as ae,tb as l,ua as z,ub as re,va as x,vb as ce,wa as ee,xa as y,ya as I,za as N}from"./chunk-NJ4PSNK3.js";import{a as L}from"./chunk-Q7L6LLAK.js";var Ie=`
2
2
  .p-message {
3
3
  display: grid;
4
4
  grid-template-rows: 1fr;
@@ -0,0 +1 @@
1
+ import{d as ve,i as N,j as T}from"./chunk-4BVLXZO3.js";import{Gb as ge,Hb as ye,Ia as g,J as F,La as p,Ma as m,Na as se,O as L,Pa as h,Qa as I,Ra as C,Rb as r,S as ie,Sa as f,T as re,Ta as v,Ua as P,Va as s,Vb as y,Wa as c,Xa as B,_a as le,ba as V,bb as ce,ca as ae,eb as pe,fb as a,ic as fe,ma as i,qb as me,rb as k,tb as Z,ua as _,ub as d,vb as l,wb as ue,za as de}from"./chunk-NJ4PSNK3.js";import{c as oe}from"./chunk-Q7L6LLAK.js";var z="sm-debug-slots",xe="debug-slots",Ne="is-debug-slots",A=class n{visible=V(!1);constructor(){this.visible.set(this.resolveInitial()),ae(()=>{let e=this.visible();document.documentElement.classList.toggle(Ne,e)})}toggle(){let e=!this.visible();this.visible.set(e);try{localStorage.setItem(z,e?"1":"0")}catch{}}resolveInitial(){let t=new URLSearchParams(window.location.search).get(xe);if(t==="1"||t==="true"){try{localStorage.setItem(z,"1")}catch{}return!0}if(t==="0"||t==="false"){try{localStorage.setItem(z,"0")}catch{}return!1}try{return localStorage.getItem(z)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=F({token:n,factory:n.\u0275fac,providedIn:"root"})};var j=class n{registry=V({});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=F({token:n,factory:n.\u0275fac,providedIn:"root"})};var x={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 Te=(n,e)=>e.label;function we(n,e){if(n&1&&(s(0,"h5",1),d(1),c()),n&2){let t=a();i(),l(t.label())}}function Me(n,e){if(n&1&&(s(0,"p",2),d(1),c()),n&2){let t=a();i(),l(t.emptyText())}}function ke(n,e){if(n&1&&(s(0,"li",4)(1,"span",5),d(2),c(),s(3,"span",6),B(4,"span",7),c(),s(5,"span",8),d(6),c()()),n&2){let t=e.$implicit,o=a(2);g("title",t.tooltip??""),i(2),l(t.label),i(2),me("width",o.percent(t.value),"%"),i(2),l(t.value)}}function Ee(n,e){if(n&1&&(s(0,"ul",3),h(1,ke,7,5,"li",4,Te),c()),n&2){let t=a();i(),I(t.entries())}}var q=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??x.emptyDefault);maxValue=r(()=>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&&(s(0,"section",0),p(1,we,2,1,"h5",1),p(2,Me,2,1,"p",2)(3,Ee,3,0,"ul",3),c()),t&2&&(g("data-testid","renderer-node-breakdown"),i(),m(o.label()?1:-1),i(),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:var(--sm-radius-md);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 Se(n,e){if(n&1&&(s(0,"span",1),d(1),c()),n&2){let t=a(),o=a();Z(o.hostClass()),i(),l(t.text)}}function De(n,e){if(n&1&&B(0,"i",1),n&2){let t=a(),o=a();Z(o.hostClass()+" "+t.cls)}}function Pe(n,e){n&1&&p(0,Se,2,3,"span",0)(1,De,1,2,"i",0),n&2&&m(e.kind==="emoji"?0:1)}function Oe(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 D=class n{icon=y(void 0);hostClass=y("");resolved=r(()=>{let e=this.icon(),t=Oe(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,Pe,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 Re(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();g("aria-label",t.ariaLabel()),i(),l(t.value())}}var O=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=r(()=>this.typed().value);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>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,Re,2,2,"span",3),v()),t&2&&(k("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()),g("data-testid","renderer-node-counter"),i(2),C("icon",o.icon()),i(),m(o.value()>0?3:-1))},dependencies:[T,N,D],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 $e=(n,e)=>e.key;function Le(n,e){if(n&1&&(f(0,"h5",1),d(1),v()),n&2){let t=a();i(),l(t.label())}}function Fe(n,e){if(n&1&&(f(0,"p",2),d(1),v()),n&2){let t=a();i(),l(t.emptyText())}}function Ve(n,e){if(n&1&&(f(0,"dt",4),d(1),v(),f(2,"dd"),d(3),v()),n&2){let t=e.$implicit,o=a(2);C("pTooltip",t.tooltip??""),i(),l(t.key),i(2),l(o.formatValue(t.value))}}function Be(n,e){if(n&1&&(f(0,"dl",3),h(1,Ve,4,3,null,null,$e),v()),n&2){let t=a();i(),I(t.entries())}}var K=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??x.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,Le,2,1,"h5",1),p(2,Fe,2,1,"p",2)(3,Be,3,0,"dl",3),v()),t&2&&(g("data-testid","renderer-node-key-values"),i(),m(o.label()?1:-1),i(),m(o.entries().length===0?2:3))},dependencies:[T,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 ze=(n,e)=>e.path;function Ae(n,e){if(n&1&&(s(0,"h5",1),d(1),c()),n&2){let t=a();i(),l(t.label())}}function je(n,e){if(n&1&&(s(0,"p",2),d(1),c()),n&2){let t=a();i(),l(t.emptyText())}}function qe(n,e){if(n&1&&(s(0,"span",5),d(1),c()),n&2){let t=a().$implicit;i(),l(t.kind)}}function Ke(n,e){if(n&1){let t=ce();s(0,"li")(1,"button",4),pe("click",function(){let u=ie(t).$implicit,b=a(2);return re(b.onOpenPath(u.path))}),p(2,qe,2,1,"span",5),s(3,"span",6),d(4),c()()()}if(n&2){let t=e.$implicit;i(2),m(t.kind?2:-1),i(2),l(t.label??t.path)}}function He(n,e){if(n&1&&(s(0,"ul",3),h(1,Ke,5,2,"li",null,ze),c()),n&2){let t=a();i(),I(t.entries())}}var H=class n{router=L(ve);inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??x.emptyDefault);onOpenPath(e){this.router.navigate(["/graph"],{queryParams:{path:e}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},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&&(s(0,"section",0),p(1,Ae,2,1,"h5",1),p(2,je,2,1,"p",2)(3,He,3,0,"ul",3),c()),t&2&&(g("data-testid","renderer-node-link-list"),i(),m(o.label()?1:-1),i(),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:var(--sm-radius-md);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);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 _e=(n,e)=>e.key;function Ue(n,e){if(n&1&&(s(0,"h5",1),d(1),c()),n&2){let t=a();i(),l(t.label())}}function We(n,e){if(n&1&&(s(0,"p",2),d(1),c()),n&2){let t=a();i(),l(t.emptyText())}}function Xe(n,e){if(n&1&&(s(0,"th"),d(1),c()),n&2){let t=e.$implicit;i(),l(t.label)}}function Ye(n,e){if(n&1&&(s(0,"td"),d(1),c()),n&2){let t=e.$implicit,o=a().$implicit,u=a(2);i(),l(u.formatCell(o[t.key]))}}function Ge(n,e){if(n&1&&(s(0,"tr"),h(1,Ye,2,1,"td",null,_e),c()),n&2){let t=a(2);i(),I(t.columns())}}function Qe(n,e){if(n&1&&(s(0,"table",3)(1,"thead")(2,"tr"),h(3,Xe,2,1,"th",null,_e),c()(),s(5,"tbody"),h(6,Ge,3,0,"tr",null,se),c()()),n&2){let t=a();i(3),I(t.columns()),i(3),I(t.rows())}}var U=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{columns:[],rows:[]}:e});columns=r(()=>this.typed().columns??[]);rows=r(()=>this.typed().rows??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??x.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&&(s(0,"section",0),p(1,Ue,2,1,"h5",1),p(2,We,2,1,"p",2)(3,Qe,8,0,"table",3),c()),t&2&&(g("data-testid","renderer-node-records"),i(),m(o.label()?1:-1),i(),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 Je(n,e){if(n&1&&(s(0,"h5",1),d(1),c()),n&2){let t=a();i(),l(t.label())}}function Ze(n,e){if(n&1&&(s(0,"p",2),d(1),c()),n&2){let t=a();i(),l(t.emptyText())}}function et(n,e){if(n&1&&(s(0,"pre",3),d(1),c()),n&2){let t=a();i(),l(t.markdown())}}var W=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{markdown:""}:e});markdown=r(()=>this.typed().markdown??"");label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??x.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&&(s(0,"section",0),p(1,Je,2,1,"h5",1),p(2,Ze,2,1,"p",2)(3,et,2,1,"pre",3),c()),t&2&&(g("data-testid","renderer-node-markdown"),i(),m(o.label()?1:-1),i(),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:var(--sm-radius-md);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 tt(n,e){if(n&1&&(f(0,"span",1),d(1),v()),n&2){let t=a();i(),l(t.icon())}}var X=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=r(()=>this.typed().label||"");icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>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,tt,2,1,"span",1),f(2,"span",2),d(3),v()()),t&2&&(k("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()),g("data-testid","renderer-node-tag"),i(),m(o.icon()?1:-1),i(2),l(o.label()))},dependencies:[T,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:var(--sm-radius-sm)}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}"],changeDetection:0})};var nt=()=>[],be=(n,e)=>e.label;function ot(n,e){if(n&1&&(s(0,"h5",1),d(1),c()),n&2){let t=a();i(),l(t.label())}}function it(n,e){if(n&1&&(s(0,"p",2),d(1),c()),n&2){let t=a();i(),l(t.emptyText())}}function rt(n,e){if(n&1&&(s(0,"span",5),d(1),c()),n&2){let t=a().$implicit;i(),l(t.marker)}}function at(n,e){if(n&1&&(s(0,"span",5),d(1),c()),n&2){let t=a().$implicit;i(),l(t.marker)}}function dt(n,e){if(n&1&&(s(0,"li",4),p(1,at,2,1,"span",5),s(2,"span",6),d(3),c()()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),l(t.label)}}function st(n,e){if(n&1&&(s(0,"ul",7),h(1,dt,4,3,"li",4,be),c()),n&2){let t=a().$implicit;i(),I(t.children)}}function lt(n,e){if(n&1&&(s(0,"li",4),p(1,rt,2,1,"span",5),s(2,"span",6),d(3),c(),p(4,st,3,0,"ul",7),c()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),l(t.label),i(),m(t.children&&t.children.length>0?4:-1)}}function ct(n,e){if(n&1&&(s(0,"ul",3),h(1,lt,5,4,"li",4,be),c()),n&2){let t=a();i(),I(t.root().children??ge(0,nt))}}var Y=class n{inputs=y.required();root=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});rootIsEmpty=r(()=>{let e=this.root();return!e.children||e.children.length===0});label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??x.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&&(s(0,"section",0),p(1,ot,2,1,"h5",1),p(2,it,2,1,"p",2)(3,ct,3,1,"ul",3),c()),t&2&&(g("data-testid","renderer-node-tree"),i(),m(o.label()?1:-1),i(),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 pt(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a();i(),l(t.formattedCount())}}var G=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);count=r(()=>this.typed().count??null);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=r(()=>{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,pt,2,1,"span",2),v()),t&2&&(k("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()),g("data-testid","renderer-node-alert"),i(),C("icon",o.icon()),i(),m(o.count()!==null?2:-1))},dependencies:[T,N,D],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 Q=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>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&&(k("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()),g("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),i(),C("icon",o.icon()))},dependencies:[T,N,D],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 mt(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();i(),l(t.label())}}var J=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=r(()=>String(this.typed().value??""));label=r(()=>this.typed().label??this.inputs().label);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>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),d(3),v(),p(4,mt,2,1,"span",3),v()),t&2&&(k("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()),g("data-testid","renderer-scope-stat"),i(),C("icon",o.icon()),i(2),l(o.value()),i(),m(o.label()?4:-1))},dependencies:[T,N,D],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 ee={"card.title.right":Q,"card.subtitle.left":O,"card.footer.left":O,"card.footer.right":O,"graph.node.alert":G,"inspector.header.badge.counter":O,"inspector.header.badge.tag":X,"inspector.body.panel.breakdown":q,"inspector.body.panel.records":U,"inspector.body.panel.tree":Y,"inspector.body.panel.key-values":K,"inspector.body.panel.link-list":H,"inspector.body.panel.markdown":W,"topbar.nav.start":J};function Ce(n){return n in ee}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 ut=n=>({inputs:n}),gt=(n,e)=>e.qualifiedId;function yt(n,e){n&1&&le(0)}function ft(n,e){if(n&1&&(f(0,"span",1),de(1,yt,1,0,"ng-container",3),v()),n&2){let t=e.$implicit,o=a(2);g("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),i(),C("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",ye(3,ut,t.rendererInputs))}}function vt(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a(2);C("pTooltip",t.overflowTooltip()),i(),ue(" ",t.overflowBadge()," ")}}function _t(n,e){if(n&1&&(f(0,"span",0),h(1,ft,2,5,"span",1,gt),p(3,vt,2,2,"span",2),v()),n&2){let t=a();g("data-testid","view-contributions-host-"+t.testidSuffix()),i(),I(t.visible()),i(2),m(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var he=class n{slot=y.required();node=y(null);debugSlots=L(A);debugVisible=this.debugSlots.visible;testidSuffix=r(()=>this.slot().replaceAll(".","-"));registry=L(j);dispatched=r(()=>{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=>Ce(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=r(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return e.slice(0,t)});overflowCount=r(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return Math.max(0,e.length-t)});showOverflowBadge=r(()=>R[this.slot()].showOverflowBadge!==!1);overflowBadge=r(()=>x.overflowBadge(this.overflowCount()));overflowTooltip=r(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems,o=e.slice(t).map(u=>u.qualifiedId).join(", ");return x.overflowTooltip(o)});rendererFor(e){return ee[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 ne=M,{severity:bt}=ne;M=oe(ne,["severity"])}let S={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:M};return u?.label&&(S.label=u.label),u?.tooltip&&(S.tooltip=u.tooltip),u?.icon&&(S.icon=u.icon),u?.emptyText&&(S.emptyText=u.emptyText),S}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),S=this.priorityFor(b);return M!==S?M-S:te(u,b)}):o==="severity"?e.slice().sort((u,b)=>{let M=Ie(u),S=Ie(b);return M!==S?S-M:te(u,b)}):e.slice().sort(te)}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"]],hostVars:3,hostBindings:function(t,o){t&2&&(g("data-debug-slot",o.debugVisible()?o.slot():null),k("sm-debug-slot",o.debugVisible()))},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,_t,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[fe,T,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 te(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 Ie(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}}export{A as a,j as b,he as c};
@@ -1,4 +1,4 @@
1
- import{Da as Le,Gb as N,I as se,J as ae,Jc as Ye,K as T,M as E,Ma as Be,Na as ke,O as I,Oc as me,Pc as L,Rb as b,Sb as C,U as xe,Vb as u,Vc as X,Wb as o,Wc as Ke,Ya as Re,Z as U,_c as Je,ac as We,ba as D,bc as S,ca as W,d as Ie,da as Te,dc as ue,ea as M,eb as je,fc as ce,ga as le,h as Ne,hb as Ge,ib as He,n as Se,oc as qe,qa as de,ra as v,sb as $e,t as Oe,ub as Ue,va as q,wa as P,xa as _,ya as Pe,za as m}from"./chunk-25AWRVIC.js";import{I as Ze,K as Z,P as fe,T as Xe,b as z,d as he,fa as pe,g as ze}from"./chunk-3R7E3HPC.js";import{a as p,b as A}from"./chunk-Q7L6LLAK.js";var Et=["data-p-icon","times"],Mn=(()=>{class t extends Je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["","data-p-icon","times"]],features:[m],attrs:Et,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){i&1&&(xe(),Re(0,"path",0))},encapsulation:2})}return t})();var Ft=Object.defineProperty,Qe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,et=(t,n,e)=>n in t?Ft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,tt=(t,n)=>{for(var e in n||(n={}))wt.call(n,e)&&et(t,e,n[e]);if(Qe)for(var e of Qe(n))It.call(n,e)&&et(t,e,n[e]);return t},Nt=(t,n,e)=>new Promise((i,r)=>{var s=l=>{try{f(e.next(l))}catch(c){r(c)}},a=l=>{try{f(e.throw(l))}catch(c){r(c)}},f=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);f((e=e.apply(t,n)).next())}),K="animation",B="transition";function St(t){return t?t.disabled||!!(t.safe&&Ze()):!1}function Ot(t,n){return t?tt(tt({},t),Object.entries(n).reduce((e,[i,r])=>{var s;return e[i]=(s=t[i])!=null?s:r,e},{})):n}function xt(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function Tt(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function Pt(t,n){let e=window.getComputedStyle(t),i=g=>{let F=e[`${g}Delay`],V=e[`${g}Duration`];return[F.split(", ").map(pe),V.split(", ").map(pe)]},[r,s]=i(B),[a,f]=i(K),l=Math.max(...s.map((g,F)=>g+r[F])),c=Math.max(...f.map((g,F)=>g+a[F])),d,h=0,y=0;return n===B?l>0&&(d=B,h=l,y=s.length):n===K?c>0&&(d=K,h=c,y=f.length):(h=Math.max(l,c),d=h>0?l>c?B:K:void 0,y=d?d===B?s.length:f.length:0),{type:d,timeout:h,count:y}}function J(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function Lt(t,n=!0,e=!1){if(!n&&!e)return;let i=ze(t);n&&fe(t,"--pui-motion-height",i.height+"px"),e&&fe(t,"--pui-motion-width",i.width+"px")}var Bt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function ge(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,r={},s=null,a={},f=d=>{if(Object.assign(e,Ot(d,Bt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=Tt(e),i=St(e),r=xt(e),s=null},l=d=>Nt(null,null,function*(){s?.();let{onBefore:h,onStart:y,onAfter:g,onCancelled:F}=a[d]||{},V={element:t};if(i){h?.(V),y?.(V),g?.(V);return}let{from:Ve,active:Ae,to:Ee}=r[d]||{};return Lt(t,e.autoHeight,e.autoWidth),h?.(V),z(t,Ve),z(t,Ae),t.offsetHeight,he(t,Ve),z(t,Ee),y?.(V),new Promise(Fe=>{let Vt=J(e.duration,d),we=()=>{he(t,[Ee,Ae]),s=null},At=()=>{we(),g?.(V),Fe()};s=()=>{we(),F?.(V),Fe()},Rt(t,e.type,Vt,At)})});f(n);let c={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{s?.(),s=null},update:(d,h)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(h)}};return e.appear&&c.enter(),c}var kt=0;function Rt(t,n,e,i){let r=t._motionEndId=++kt,s=()=>{r===t._motionEndId&&i()};if(e!=null)return setTimeout(s,e);let{type:a,timeout:f,count:l}=Pt(t,n);if(!a){i();return}let c=a+"end",d=0,h=()=>{t.removeEventListener(c,y,!0),s()},y=g=>{g.target===t&&++d>=l&&h()};t.addEventListener(c,y,{capture:!0,once:!0}),setTimeout(()=>{d<l&&h()},f+1)}var jt=["*"];function Gt(t,n){t&1&&He(0)}var Q=new WeakMap;function k(t,n){if(t)switch(Q.has(t)||Q.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ee(t,n){if(!t)return;let e=Q.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Q.delete(t)}var Ht=`
1
+ import{$b as We,Ca as Le,Fb as N,I as se,J as ae,Jc as Ye,K as T,La as Be,M as E,Ma as ke,Mc as me,Nc as L,O as I,Qb as b,Rb as C,Tc as X,U as xe,Ub as u,Uc as Ke,Vb as o,Xa as Re,Yc as Je,Z as U,ac as S,ba as D,ca as W,cc as ue,d as Ie,da as Te,db as je,ea as M,ec as ce,ga as le,gb as Ge,h as Ne,hb as He,n as Se,nc as qe,pa as de,qa as v,rb as $e,t as Oe,tb as Ue,ua as q,va as P,wa as _,xa as Pe,ya as m}from"./chunk-NJ4PSNK3.js";import{I as Ze,K as Z,P as fe,T as Xe,b as z,d as he,fa as pe,g as ze}from"./chunk-3R7E3HPC.js";import{a as p,b as A}from"./chunk-Q7L6LLAK.js";var Et=["data-p-icon","times"],Mn=(()=>{class t extends Je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["","data-p-icon","times"]],features:[m],attrs:Et,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){i&1&&(xe(),Re(0,"path",0))},encapsulation:2})}return t})();var Ft=Object.defineProperty,Qe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,et=(t,n,e)=>n in t?Ft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,tt=(t,n)=>{for(var e in n||(n={}))wt.call(n,e)&&et(t,e,n[e]);if(Qe)for(var e of Qe(n))It.call(n,e)&&et(t,e,n[e]);return t},Nt=(t,n,e)=>new Promise((i,r)=>{var s=l=>{try{f(e.next(l))}catch(c){r(c)}},a=l=>{try{f(e.throw(l))}catch(c){r(c)}},f=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);f((e=e.apply(t,n)).next())}),K="animation",B="transition";function St(t){return t?t.disabled||!!(t.safe&&Ze()):!1}function Ot(t,n){return t?tt(tt({},t),Object.entries(n).reduce((e,[i,r])=>{var s;return e[i]=(s=t[i])!=null?s:r,e},{})):n}function xt(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function Tt(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function Pt(t,n){let e=window.getComputedStyle(t),i=g=>{let F=e[`${g}Delay`],V=e[`${g}Duration`];return[F.split(", ").map(pe),V.split(", ").map(pe)]},[r,s]=i(B),[a,f]=i(K),l=Math.max(...s.map((g,F)=>g+r[F])),c=Math.max(...f.map((g,F)=>g+a[F])),d,h=0,y=0;return n===B?l>0&&(d=B,h=l,y=s.length):n===K?c>0&&(d=K,h=c,y=f.length):(h=Math.max(l,c),d=h>0?l>c?B:K:void 0,y=d?d===B?s.length:f.length:0),{type:d,timeout:h,count:y}}function J(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function Lt(t,n=!0,e=!1){if(!n&&!e)return;let i=ze(t);n&&fe(t,"--pui-motion-height",i.height+"px"),e&&fe(t,"--pui-motion-width",i.width+"px")}var Bt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function ge(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,r={},s=null,a={},f=d=>{if(Object.assign(e,Ot(d,Bt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=Tt(e),i=St(e),r=xt(e),s=null},l=d=>Nt(null,null,function*(){s?.();let{onBefore:h,onStart:y,onAfter:g,onCancelled:F}=a[d]||{},V={element:t};if(i){h?.(V),y?.(V),g?.(V);return}let{from:Ve,active:Ae,to:Ee}=r[d]||{};return Lt(t,e.autoHeight,e.autoWidth),h?.(V),z(t,Ve),z(t,Ae),t.offsetHeight,he(t,Ve),z(t,Ee),y?.(V),new Promise(Fe=>{let Vt=J(e.duration,d),we=()=>{he(t,[Ee,Ae]),s=null},At=()=>{we(),g?.(V),Fe()};s=()=>{we(),F?.(V),Fe()},Rt(t,e.type,Vt,At)})});f(n);let c={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{s?.(),s=null},update:(d,h)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(h)}};return e.appear&&c.enter(),c}var kt=0;function Rt(t,n,e,i){let r=t._motionEndId=++kt,s=()=>{r===t._motionEndId&&i()};if(e!=null)return setTimeout(s,e);let{type:a,timeout:f,count:l}=Pt(t,n);if(!a){i();return}let c=a+"end",d=0,h=()=>{t.removeEventListener(c,y,!0),s()},y=g=>{g.target===t&&++d>=l&&h()};t.addEventListener(c,y,{capture:!0,once:!0}),setTimeout(()=>{d<l&&h()},f+1)}var jt=["*"];function Gt(t,n){t&1&&He(0)}var Q=new WeakMap;function k(t,n){if(t)switch(Q.has(t)||Q.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ee(t,n){if(!t)return;let e=Q.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Q.delete(t)}var Ht=`
2
2
  .p-motion {
3
3
  display: block;
4
4
  }