@skill-map/cli 0.24.0 → 0.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/{chunk-JVJ4QSO5.js → chunk-7KJXEUBZ.js} +1 -1
- package/dist/ui/{chunk-YUNWCUTD.js → chunk-BA5FEGFM.js} +31 -81
- package/dist/ui/chunk-CUNKB7ZS.js +61 -0
- package/dist/ui/{chunk-2W3RSIZM.js → chunk-DUE22NNK.js} +1 -1
- package/dist/ui/chunk-EI3A2R5P.js +1 -0
- package/dist/ui/chunk-IN3Q4IBM.js +123 -0
- package/dist/ui/chunk-NLLFX5I7.js +500 -0
- package/dist/ui/{chunk-MVSNYBW2.js → chunk-S3F7ZJKD.js} +7 -7
- package/dist/ui/chunk-SG23AWC6.js +124 -0
- package/dist/ui/{chunk-ZR2E2QJ4.js → chunk-XPMAU22J.js} +15 -15
- package/dist/ui/{chunk-YEWLFFFB.js → chunk-ZYPPIYEF.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/dist/ui/{main-T42DPEJX.js → main-6UGKLU2M.js} +2 -2
- package/dist/ui/{styles-YEWJTI4X.css → styles-DLFC3F2G.css} +1 -1
- package/package.json +1 -1
- package/dist/ui/chunk-DWG7CV5P.js +0 -450
- package/dist/ui/chunk-KHERXP5A.js +0 -61
- package/dist/ui/chunk-MGTS4JDZ.js +0 -1
- package/dist/ui/chunk-O7JJFUMD.js +0 -123
- package/dist/ui/chunk-ZM3N6TZQ.js +0 -124
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import{b as Dt,c as w,d as At,e as jt}from"./chunk-MGTS4JDZ.js";import{a as Ct,b as wt,c as ke,d as Se,e as Mt}from"./chunk-ZM3N6TZQ.js";import{a as Ee,b as Me,c as Tt,d as It,e as Ot,f as Ft,g as oe,h as re}from"./chunk-DWG7CV5P.js";import{e as kt,f as Pe,h as te,i as ne,j as ie,l as St,m as Pt,n as Et}from"./chunk-YEWLFFFB.js";import{$a as at,Aa as be,Ac as Z,Gb as J,Hc as bt,I as Qe,Ib as gt,Ic as Ce,J as Xe,Ja as _,K as Ye,Kc as ft,M as Je,Ma as h,Na as b,Nc as xt,O as M,Oa as rt,Pa as Q,Pb as pt,Qa as O,Ra as F,S as Ze,Sa as f,Sb as y,T as k,Ta as l,Tc as vt,U as S,Ua as s,Uc as ue,Va as T,Vb as ye,Vc as yt,Wa as u,Wb as V,Xa as m,Xb as ut,Ya as Y,_ as et,ad as we,bc as Re,bd as ee,ca as v,cb as I,cc as mt,da as N,db as X,eb as C,fa as Ve,gb as a,hd as H,id as B,ja as tt,jb as st,ka as ge,kb as lt,lb as fe,mb as xe,na as r,nc as _t,ob as dt,oc as ht,pb as ct,rb as Le,sb as $,tb as ve,ub as pe,va as A,vb as d,wa as nt,wb as p,xb as x,ya as it,yb as R,za as ot}from"./chunk-ZR2E2QJ4.js";import"./chunk-3R7E3HPC.js";import{a as q,b as W}from"./chunk-Q7L6LLAK.js";function sn(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 Te=class t{dataSource=M(H);updateCheck=M(Dt);theme=M(jt);visible=V.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,ln(n.dbPath,n.cwd)):this.texts.aboutLoading});homeDir=y(()=>this.health()?.homeDir??this.texts.aboutLoading);constructor(){N(()=>{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 B||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,sn,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(),b(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 ln(t,n){if(!t||!n)return t;let e=n.replace(/[/\\]+$/,"");return t.startsWith(e)?t.slice(e.length).replace(/^[/\\]+/,""):t}var Nt={schemaVersion:1,entries:[{version:"0.24.0",date:"2026-05-13",kind:"user-facing",highlights:[{body:"**CLI flags fixed.** `sm refresh`, `sm watch`, `sm jobs prune` now honor `--db` / `-g`. `sm watch` and `sm scan --watch` honor `--no-color`. `sm scan --watch` names the conflicting flag on combo errors. `sm conformance run` progress moved to stderr; `--quiet` silences it.",packages:["@skill-map/cli"]}]},{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`), 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`, 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, typically `~/.claude`, `~/.gemini`, `~/.agents`, 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, 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 Vt=Nt;var cn=(t,n)=>n.version;function gn(t,n){if(t&1&&(u(0,"p",3),d(1),m()),t&2){let e=a();r(),x(" ",e.texts.changelogEmpty," ")}}function pn(t,n){if(t&1&&(u(0,"p",10),d(1),m()),t&2){let e=a(3);r(),x(" ",e.texts.changelogInternalRelease," ")}}function un(t,n){if(t&1&&(u(0,"li",15),d(1),m()),t&2){let e=n.$implicit;r(),p(e)}}function mn(t,n){if(t&1&&(u(0,"ul",14),O(1,un,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 _n(t,n){if(t&1&&(u(0,"li",12),Y(1,"div",13),h(2,mn,3,1,"ul",14),m()),t&2){let e=n.$implicit;r(),X("innerHTML",e.bodyHtml,tt),r(),b(e.packages.length?2:-1)}}function hn(t,n){if(t&1&&(u(0,"ul",11),O(1,_n,3,2,"li",12,rt),m()),t&2){let e=a().$implicit;r(),F(e.highlights)}}function bn(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,pn,2,1,"p",10)(7,hn,3,0,"ul",11),m()),t&2){let e=n.$implicit;$("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(),b(e.kind==="internal"?6:7)}}function fn(t,n){if(t&1&&(u(0,"ol",4),O(1,bn,8,6,"li",5,cn),m()),t&2){let e=a();r(),F(e.entries())}}var Ie=class t{markdown=M(Mt);texts=w;entries=v([]);hasEntries=y(()=>this.entries().length>0);ngOnInit(){this.renderAll()}async renderAll(){let n=[];for(let e of Vt.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,gn,2,1,"p",3)(6,fn,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(),b(i.hasEntries()?6:5))},styles:["[_nghost-%COMP%]{display:block;height:100%;overflow-y:auto;padding:1.25rem 1.5rem}.settings-changelog__title[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__intro[_ngcontent-%COMP%]{margin:0 0 1.25rem;font-size:.85rem;color:var(--sm-text-muted);line-height:1.5}.settings-changelog__empty[_ngcontent-%COMP%]{margin:1.5rem 0 0;font-size:.9rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.25rem}.settings-changelog__entry[_ngcontent-%COMP%]{border-left:2px solid var(--p-primary-color);padding:.25rem 0 .25rem .85rem}.settings-changelog__entry--internal[_ngcontent-%COMP%]{border-left-color:var(--sm-border)}.settings-changelog__entry-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.6rem;margin-bottom:.45rem}.settings-changelog__version[_ngcontent-%COMP%]{font-family:var(--sm-font-mono);font-size:.95rem;font-weight:600;color:var(--p-text-color)}.settings-changelog__date[_ngcontent-%COMP%]{font-size:.78rem;color:var(--sm-text-muted)}.settings-changelog__internal-body[_ngcontent-%COMP%]{margin:0;font-size:.85rem;color:var(--sm-text-muted);font-style:italic}.settings-changelog__highlights[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}.settings-changelog__highlight[_ngcontent-%COMP%]{font-size:.88rem;line-height:1.5;color:var(--p-text-color)}.settings-changelog__highlight-body[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p{margin:0}[_nghost-%COMP%] .settings-changelog__highlight-body p+p{margin-top:.45rem}[_nghost-%COMP%] .settings-changelog__highlight-body code{font-family:var(--sm-font-mono);font-size:.82rem;padding:.05rem .3rem;border-radius: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 Lt=`
|
|
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 xn=["handle"],vn=["input"],yn=t=>({checked:t});function Cn(t,n){t&1&&at(0)}function wn(t,n){if(t&1&&be(0,Cn,1,0,"ng-container",3),t&2){let e=a();f("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",gt(2,yn,e.checked()))}}var kn=`
|
|
116
|
-
${Lt}
|
|
117
|
-
|
|
118
|
-
p-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch-slider {
|
|
119
|
-
border-color: dt('toggleswitch.invalid.border.color');
|
|
120
|
-
}
|
|
121
|
-
`,Sn={root:{position:"relative"}},Pn={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"},Rt=(()=>{class t extends ft{name="toggleswitch";style=kn;classes=Pn;inlineStyles=Sn;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(t)))(o||t)}})();static \u0275prov=Xe({token:t,factory:t.\u0275fac})}return t})();var zt=new Je("TOGGLESWITCH_INSTANCE"),En={provide:kt,useExisting:Qe(()=>se),multi:!0},se=(()=>{class t extends St{componentName="ToggleSwitch";$pcToggleSwitch=M(zt,{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=V();ariaLabelledBy;autofocus;onChange=new et;input;handleTemplate;_handleTemplate;focused=!1;_componentStyle=M(Rt);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=Ve(t)))(o||t)}})();static \u0275cmp=A({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,o,c){if(i&1&&st(c,xn,4)(c,bt,4),i&2){let g;fe(g=xe())&&(o.handleTemplate=g.first),fe(g=xe())&&(o.templates=g)}},viewQuery:function(i,o){if(i&1&<(vn,5),i&2){let c;fe(c=xe())&&(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),ve(o.sx("root")),pe(o.cn(o.cx("root"),o.styleClass)))},inputs:{styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",mt],inputId:"inputId",readonly:[2,"readonly","readonly",Re],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",size:[1,"size"],ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",Re]},outputs:{onChange:"onChange"},features:[J([En,Rt,{provide:zt,useExisting:t},{provide:xt,useExisting:t}]),it([ue]),ot],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,wn,1,4,"ng-container"),s()()),i&2&&(pe(o.cx("input")),f("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")),f("pBind",o.ptm("slider")),_("data-p",o.dataP),r(),pe(o.cx("handle")),f("pBind",o.ptm("handle")),_("data-p",o.dataP),r(),b(o.handleTemplate||o._handleTemplate?4:-1))},dependencies:[ht,_t,vt,Ce,yt,ue],encapsulation:2,changeDetection:0})}return t})(),Oe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=nt({type:t});static \u0275inj=Ye({imports:[se,Ce,Ce]})}return t})();var Mn=(t,n)=>n.key;function Tn(t,n){if(t&1&&(l(0,"p-message",3),d(1),s()),t&2){let e=a();f("closable",!1),r(),R(" ",e.texts.general.loadErrorPrefix," ",n," ")}}function In(t,n){if(t&1&&(l(0,"p-message",4),d(1),s()),t&2){let e=a();f("closable",!1),r(),R(" ",e.texts.general.saveErrorPrefix," ",n," ")}}function On(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(),f("ngModel",i.valueOf(e))("disabled",i.loading()||i.isPending(e.key)||i.preferences()===null),_("data-testid","settings-general-toggle-"+e.key)}}var Fn=[{key:"updateCheck.enabled",read:t=>t.updateCheck.enabled,patch:t=>({updateCheck:{enabled:t}})}],Fe=class t{dataSource=M(H);visible=V.required();texts=w;toggles=Fn;loading=v(!1);loadError=v(null);saveError=v(null);preferences=v(null);pending=v(new Set);constructor(){N(()=>{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(Kt(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(Kt(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,Tn,2,3,"p-message",3),h(6,In,2,3,"p-message",4),l(7,"ul",5),O(8,On,7,6,"li",6,Mn),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(),b((o=i.loadError())?5:-1,o),r(),b((c=i.saveError())?6:-1,c),r(2),F(i.toggles)}},dependencies:[ie,te,ne,re,oe,Oe,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 Kt(t){return t instanceof B||t instanceof Error?t.message:String(t)}var ze={provider:"#7C3AED",extractor:"#A78BFA",analyzer:"#5FD17C",action:"#00C853",formatter:"#5BC0EB",hook:"#FFB627"};function Gt(t){let n=t.toLowerCase();return ze[n]??"currentColor"}var je=["all",...Object.keys(ze)],De=["claude","gemini","agent-skills","core"],Ae=["provider","extractor","analyzer","action","formatter","hook"];function le(t,n){return`${t}/${n}`}function Be(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 Ke(t){let n=t.target;return!n||typeof n.closest!="function"?!1:n.closest('label, button, input, [role="switch"], p-toggleswitch')!==null}function Ut(t,n){if(Dn(t,n))return[t];if(t.granularity!=="extension"||!t.extensions)return[];let e=t.extensions.filter(i=>An(i,n));return e.length===0?[]:[W(q({},t),{extensions:e})]}function qt(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 Wt(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 Qt(t){return t.slice().sort((e,i)=>{let o=De.indexOf(e.id),c=De.indexOf(i.id),g=o>=0?o:De.length,P=c>=0?c:De.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=Ae.indexOf(o.kind.toLowerCase()),P=Ae.indexOf(c.kind.toLowerCase()),K=g>=0?g:Ae.length,L=P>=0?P:Ae.length;return K!==L?K-L:o.id.localeCompare(c.id)});return W(q({},e),{extensions:i})})}function Dn(t,n){return!!(t.id.toLowerCase().includes(n)||t.description&&t.description.toLowerCase().includes(n))}function An(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 $e(t){return t instanceof B||t instanceof Error?t.message:String(t)}function Xt(t,n){return de(t.status)?n.statusFailure[t.status]??t.status:t.status==="enabled"?n.enabledLabel:n.disabledLabel}function Yt(t,n){switch(t){case"built-in":return n.sourceBuiltIn;case"project":return n.sourceProject;case"global":return n.sourceGlobal}}var He="sm.settings.plugins.collapsed",Ge="sm.settings.plugins.kind-filter";function Jt(){let t=null;try{t=localStorage.getItem(He)}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 Zt(t){try{if(t.size===0){localStorage.removeItem(He);return}localStorage.setItem(He,JSON.stringify([...t]))}catch{}}function en(){let t=null;try{t=localStorage.getItem(Ge)}catch{return"all"}return t&&je.includes(t)?t:"all"}function tn(t){try{if(t==="all"){localStorage.removeItem(Ge);return}localStorage.setItem(Ge,t)}catch{}}function Ue(){Ze(Ue);let t=v(Jt());N(()=>Zt(t()));let n=i=>{let o=new Set(t());o.has(i)?o.delete(i):o.add(i),t.set(o)},e=i=>!t().has(i);return{collapsed:t.asReadonly(),toggleExpanded:n,isExpanded:e}}function nn(t){let n=v(""),e=y(()=>n().trim().length>0),i=v(en()),o=y(()=>i()!=="all");N(()=>tn(i()));let c=y(()=>Qt(t.plugins().flatMap(Wt))),g=y(()=>{let L=n().trim().toLowerCase(),_e=i(),G=c();return _e!=="all"&&(G=G.flatMap(he=>qt(he,_e))),L.length>0&&(G=G.flatMap(he=>Ut(he,L))),G});return{searchText:n,searchActive:e,kindFilter:i,setKindFilter:L=>{i.set(L)},isKindFilterActive:L=>i()===L,kindFilterActive:o,kindFilterOptions:je,visiblePlugins:c,filteredPlugins:g}}function on(t){let n=v(!1),e=v(null),i=v(null),o=v([]),c=v(new Map),g=v(new Map),P=v(!1),K=y(()=>{let E=c(),D=g(),z=new Set;for(let[U,j]of D)E.get(U)!==j&&z.add(U);return z}),L=y(()=>K().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:K,hasPendingChanges:L,restartRecommended:G,pendingEnabled:E=>g().get(E)??!1,isDirty:E=>K().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=Be(E.items);c.set(D),g.set(new Map(D))}catch(E){e.set($e(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=K();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 We=Be(j.items);c.set(We),g.set(new Map(We)),t.scanTrigger.run(),U=!0}catch(j){i.set($e(j))}finally{P.set(!1)}return{ok:U}},discardChanges:()=>{g.set(new Map(c())),i.set(null)}}}var rn=(t,n)=>n.id;function Vn(t,n){if(t&1&&d(0),t&2){let e=a().$implicit,i=a();x(" ",e==="all"?i.texts.pluginsKindFilterAll:e," ")}}function Ln(t,n){if(t&1){let e=I();l(0,"p-togglebutton",16),C("ngModelChange",function(){let o=k(e).$implicit,c=a();return S(c.setKindFilter(o))}),be(1,Vn,1,1,"ng-template",null,0,pt),s()}if(t&2){let e=n.$implicit,i=a();Le("--kind-color",e==="all"?null:i.kindTint(e)),f("ngModel",i.isKindFilterActive(e))("styleClass","settings-plugins__kind-chip"+(e==="all"?" is-all":""))("ariaLabel",i.texts.pluginsKindFilterOptionA11y(e,!i.isKindFilterActive(e))),_("data-testid","settings-plugins-kind-chip-"+e)}}function Rn(t,n){if(t&1&&(l(0,"p-message",11),d(1),s()),t&2){let e=a();f("closable",!1),r(),x(" ",e.texts.unsavedChangesMessage(e.dirtyIds().size)," ")}}function zn(t,n){if(t&1&&(l(0,"p",12),T(1,"i",17),d(2),s()),t&2){let e=a();r(2),x(" ",e.texts.loading," ")}}function Bn(t,n){if(t&1&&(l(0,"p-message",13),d(1),s()),t&2){let e=a();f("closable",!1),r(),R(" ",e.texts.errorPrefix," ",e.loadError()," ")}}function Kn(t,n){if(t&1&&(l(0,"p",14),d(1),s()),t&2){let e=a();r(),x(" ",e.texts.empty," ")}}function $n(t,n){if(t&1){let e=I();l(0,"p-message",22),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);f("closable",!0),r(),R(" ",e.texts.toggleErrorPrefix," ",e.toggleError()," ")}}function Hn(t,n){if(t&1&&(l(0,"p",19),T(1,"i",23),d(2),s()),t&2){let e=a(2);r(2),x(" ",e.texts.pluginsSearchEmpty(e.searchText())," ")}}function Gn(t,n){if(t&1){let e=I();l(0,"button",41),C("click",function(o){k(e);let c=a().$implicit;return a(2).toggleExpanded(c.id),S(o.stopPropagation())}),T(1,"i",42),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(),$("fa-chevron-down",i.isExpanded(e.id))("fa-chevron-right",!i.isExpanded(e.id))}}function Un(t,n){t&1&&T(0,"span",27)}function qn(t,n){if(t&1&&T(0,"span",30),t&2){let e=a().$implicit;_("data-testid","settings-row-dirty-"+e.id)}}function Wn(t,n){if(t&1&&(l(0,"span",33),d(1),s()),t&2){let e=a().$implicit;r(),x("v",e.version)}}function Qn(t,n){if(t&1&&(l(0,"span",34),T(1,"i",43),d(2),s()),t&2){let e=a().$implicit,i=a(2);f("title",i.texts.lockedTooltip),_("data-testid","settings-row-locked-"+e.id),r(2),x(" ",i.texts.lockedLabel," ")}}function Xn(t,n){if(t&1&&(l(0,"span",35),d(1),s()),t&2){let e=a().$implicit,i=a(2);r(),p(i.statusLabel(e))}}function Yn(t,n){if(t&1&&(l(0,"p",36),d(1),s()),t&2){let e=a().$implicit;r(),p(e.description)}}function Jn(t,n){if(t&1&&(l(0,"span",37),d(1),s()),t&2){let e=a().$implicit;r(),p(e.reason)}}function Zn(t,n){if(t&1&&(l(0,"p",38),T(1,"i",44),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 ei(t,n){if(t&1){let e=I();l(0,"p-toggleswitch",45),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);f("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 ti(t,n){if(t&1&&T(0,"span",30),t&2){let e=a().$implicit,i=a(2).$implicit;_("data-testid","settings-extrow-dirty-"+i.id+"-"+e.id)}}function ni(t,n){if(t&1&&(l(0,"span",34),T(1,"i",43),d(2),s()),t&2){let e=a().$implicit,i=a(2).$implicit,o=a(2);f("title",o.texts.lockedTooltip),_("data-testid","settings-extrow-locked-"+i.id+"-"+e.id),r(2),x(" ",o.texts.lockedLabel," ")}}function ii(t,n){if(t&1&&(l(0,"p",53),d(1),s()),t&2){let e=a().$implicit;r(),p(e.description)}}function oi(t,n){if(t&1){let e=I();l(0,"li",47),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",48)(2,"div",49),h(3,ti,1,1,"span",30),l(4,"span",50),d(5),s(),l(6,"span",51),d(7),s(),l(8,"span",52),d(9),s(),h(10,ni,3,3,"span",34),s(),h(11,ii,2,1,"p",53),s(),l(12,"p-toggleswitch",45),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);$("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),b(o.isDirty(o.qualifiedExt(i.id,e.id))?3:-1),r(2),p(e.id),r(),Le("--kind-color",o.kindTint(e.kind)),r(),p(e.kind),r(2),x("v",e.version),r(),b(e.locked?10:-1),r(),b(e.description?11:-1),r(),f("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 ri(t,n){if(t&1&&(l(0,"ul",40),O(1,oi,13,18,"li",46,rn),s()),t&2){let e=a().$implicit;_("data-testid","settings-extensions-"+e.id),r(),F(e.extensions)}}function ai(t,n){if(t&1){let e=I();l(0,"li",24)(1,"div",25),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,Gn,2,7,"button",26)(3,Un,1,0,"span",27),l(4,"div",28)(5,"div",29),h(6,qn,1,1,"span",30),l(7,"span",31),d(8),s(),l(9,"span",32),d(10),s(),h(11,Wn,2,1,"span",33),h(12,Qn,3,3,"span",34),h(13,Xn,2,1,"span",35),s(),h(14,Yn,2,1,"p",36),h(15,Jn,2,1,"span",37),h(16,Zn,3,2,"p",38),s(),h(17,ei,1,4,"p-toggleswitch",39),s(),h(18,ri,3,1,"ul",40),s()}if(t&2){let e=n.$implicit,i=a(2);$("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(),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)?2:3),r(4),b(e.granularity==="bundle"&&i.isDirty(e.id)?6:-1),r(2),p(e.id),r(2),p(i.sourceLabel(e.source)),r(),b(e.version?11:-1),r(),b(e.locked?12:-1),r(),b(!i.canToggleBundle(e)&&e.granularity==="bundle"?13:-1),r(),b(e.description?14:-1),r(),b(e.reason?15:-1),r(),b(i.showStartsAsDisabledHint(e)?16:-1),r(),b(i.canToggleBundle(e)?17:-1),r(),b(e.granularity==="extension"&&(e.extensions!=null&&e.extensions.length)&&i.isExpanded(e.id)?18:-1)}}function si(t,n){if(t&1&&(h(0,$n,2,3,"p-message",18),h(1,Hn,3,1,"p",19),l(2,"ul",20),O(3,ai,19,22,"li",21,rn),s()),t&2){let e=a();b(e.toggleError()?0:-1),r(),b(e.searchActive()&&e.filteredPlugins().length===0?1:-1),r(2),F(e.filteredPlugins())}}function li(t,n){if(t&1&&(l(0,"em",54),d(1),s()),t&2){let e=a(2);r(),x(" ",e.texts.startsAsDisabledFooterHint," ")}}function di(t,n){if(t&1){let e=I();l(0,"footer",15),h(1,li,2,1,"em",54),l(2,"p-button",55),C("onClick",function(){k(e);let o=a();return S(o.discardChanges())}),s(),l(3,"p-button",56),C("onClick",function(){k(e);let o=a();return S(o.applyChanges())}),s()()}if(t&2){let e=a();r(),b(e.restartRecommended()?1:-1),r(),f("text",!0)("label",e.texts.discardChanges)("ariaLabel",e.texts.discardA11y)("disabled",e.applying()),r(),f("label",e.texts.applyAndClose)("ariaLabel",e.texts.applyA11y)("disabled",e.applying())("loading",e.applying())}}var ce=class t{dataSource=M(H);scanTrigger=M(At);visible=V.required();applied=ye();texts=w;pluginState=on({dataSource:this.dataSource,scanTrigger:this.scanTrigger});plugins=this.pluginState.plugins;loading=this.pluginState.loading;loadError=this.pluginState.loadError;toggleError=this.pluginState.toggleError;applying=this.pluginState.applying;hasFailureRows=this.pluginState.hasFailureRows;originalState=this.pluginState.originalState;pendingState=this.pluginState.pendingState;dirtyIds=this.pluginState.dirtyIds;hasPendingChanges=this.pluginState.hasPendingChanges;restartRecommended=this.pluginState.restartRecommended;pluginCollapse=Ue();collapsed=this.pluginCollapse.collapsed;pluginFilter=nn({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(){N(()=>{this.visible()&&this.pluginState.refresh()})}setKindFilter(n){this.pluginFilter.setKindFilter(n)}isKindFilterActive(n){return this.pluginFilter.isKindFilterActive(n)}toggleExpanded(n){this.pluginCollapse.toggleExpanded(n)}isExpanded(n){return this.pluginCollapse.isExpanded(n)}pendingEnabled(n){return this.pluginState.pendingEnabled(n)}isDirty(n){return this.pluginState.isDirty(n)}showStartsAsDisabledHint(n){return n.startsAsDisabled?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(!Ke(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(Ke(i)||!this.extensionToggleInteractive(e))return;let o=le(n,e.id);this.onExtensionToggle(n,e,!this.pendingEnabled(o))}statusLabel(n){return Xt(n,this.texts)}sourceLabel(n){return Yt(n,this.texts)}qualifiedExt(n,e){return le(n,e)}kindTint(n){return Gt(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:[["content",""],["aria-labelledby","settings-plugins-heading",1,"settings-plugins"],[1,"settings-plugins__scroll"],[1,"settings-plugins__header"],["id","settings-plugins-heading",1,"settings-plugins__title"],[1,"settings-plugins__intro"],["iconPosition","left",1,"settings-plugins__search"],["styleClass","fa-solid fa-magnifying-glass"],["pInputText","","type","text","data-testid","settings-plugins-search",3,"ngModelChange","placeholder","ngModel"],["role","group","data-testid","settings-plugins-kind-filter",1,"settings-plugins__kind-filter"],[3,"ngModel","styleClass","--kind-color","ariaLabel"],["severity","warn","styleClass","settings-plugins__banner","data-testid","settings-banner-unsaved",3,"closable"],["data-testid","settings-loading",1,"settings-plugins__hint"],["severity","error","data-testid","settings-error",3,"closable"],["data-testid","settings-empty",1,"settings-plugins__hint"],["data-testid","settings-plugins-footer",1,"settings-plugins__footer"],[3,"ngModelChange","ngModel","styleClass","ariaLabel"],["aria-hidden","true",1,"fa-solid","fa-spinner","fa-spin"],["severity","error","data-testid","settings-toggle-error",3,"closable"],["data-testid","settings-search-empty",1,"settings-plugins__hint"],["role","list",1,"settings-plugins__list"],[1,"settings-plugins__row",3,"is-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",1)(1,"div",2)(2,"header",3)(3,"h2",4),d(4),s(),l(5,"p",5),d(6),s()(),l(7,"p-iconfield",6),T(8,"p-inputicon",7),l(9,"input",8),C("ngModelChange",function(c){return i.searchText.set(c)}),s()(),l(10,"div",9),O(11,Ln,3,6,"p-togglebutton",10,Q),s(),h(13,Rn,2,2,"p-message",11),h(14,zn,3,1,"p",12)(15,Bn,2,3,"p-message",13)(16,Kn,2,1,"p",14)(17,si,5,2),s(),h(18,di,4,9,"footer",15),s()),e&2&&(r(4),x(" ",i.texts.pluginsHeading," "),r(2),p(i.texts.pluginsIntro),r(3),f("placeholder",i.texts.pluginsSearchPlaceholder)("ngModel",i.searchText()),_("aria-label",i.texts.pluginsSearchA11y),r(),_("aria-label",i.texts.pluginsKindFilterA11y),r(),F(i.kindFilterOptions),r(2),b(i.hasPendingChanges()?13:-1),r(),b(i.loading()?14:i.loadError()?15:i.plugins().length===0?16:17),r(4),b(i.hasPendingChanges()?18:-1))},dependencies:[ie,Pe,te,ne,ee,we,It,Tt,Ft,Ot,Me,Ee,re,oe,Et,Pt,Oe,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));--p-togglebutton-padding: .25rem .625rem;--p-togglebutton-content-padding: 0;--p-togglebutton-content-checked-background: transparent;--p-togglebutton-content-checked-shadow: none;--p-togglebutton-border-radius: var(--sm-radius-pill);--p-togglebutton-background: color-mix(in oklab, var(--chip-accent) 8%, transparent);--p-togglebutton-hover-background: color-mix(in oklab, var(--chip-accent) 18%, transparent);--p-togglebutton-checked-background: color-mix(in oklab, var(--chip-accent) 80%, transparent);--p-togglebutton-border-color: color-mix(in oklab, var(--chip-accent) 35%, transparent);--p-togglebutton-hover-border-color: color-mix(in oklab, var(--chip-accent) 55%, transparent);--p-togglebutton-checked-border-color: var(--chip-accent);--p-togglebutton-color: color-mix(in oklab, var(--chip-accent) 70%, var(--p-text-color));--p-togglebutton-hover-color: color-mix(in oklab, var(--chip-accent) 70%, var(--p-text-color));--p-togglebutton-checked-color: var(--p-surface-50);font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:lowercase}.app-dark[_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .settings-plugins__kind-chip[_ngcontent-%COMP%]{--p-togglebutton-background: color-mix(in oklab, var(--chip-accent) 14%, transparent);--p-togglebutton-hover-background: color-mix(in oklab, var(--chip-accent) 26%, transparent);--p-togglebutton-checked-background: color-mix(in oklab, var(--chip-accent) 70%, transparent);--p-togglebutton-border-color: color-mix(in oklab, var(--chip-accent) 50%, transparent);--p-togglebutton-hover-border-color: color-mix(in oklab, var(--chip-accent) 70%, transparent);--p-togglebutton-color: color-mix(in oklab, var(--chip-accent) 80%, var(--p-text-color));--p-togglebutton-hover-color: color-mix(in oklab, var(--chip-accent) 80%, var(--p-text-color));--p-togglebutton-checked-color: var(--p-surface-900)}.settings-plugins__banner[_ngcontent-%COMP%]{display:block}.settings-plugins__banner-body[_ngcontent-%COMP%]{font-weight:400}.settings-plugins__hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0;padding:1rem 0;color:var(--p-text-muted-color);font-size:.875rem}.settings-plugins__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.settings-plugins__row[_ngcontent-%COMP%]{border:1px solid var(--p-content-border-color);border-radius:var(--p-border-radius);background:var(--p-content-background);padding:.75rem .875rem;display:flex;flex-direction:column;gap:.5rem}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]{cursor:pointer;transition:background .12s ease}.settings-plugins__row.is-clickable[_ngcontent-%COMP%]:hover{background:var(--p-content-hover-background)}.settings-plugins__row.is-failed[_ngcontent-%COMP%]{border-color:var(--p-message-error-border-color);background:var(--p-message-error-background)}.settings-plugins__row.is-extension-bundle[_ngcontent-%COMP%]{background:var(--p-content-background)}.settings-plugins__row-main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.settings-plugins__expand[_ngcontent-%COMP%], .settings-plugins__expand-spacer[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.settings-plugins__expand[_ngcontent-%COMP%]{border:none;background:transparent;cursor:pointer;color:var(--p-text-muted-color);border-radius:var(--p-border-radius)}.settings-plugins__expand[_ngcontent-%COMP%]:hover{color:var(--p-text-color);background:var(--p-content-hover-background)}.settings-plugins__row-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.125rem;flex:1;min-width:0}.settings-plugins__row-headline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .75rem}.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 gi(t,n){if(t&1&&(l(0,"p-message",3),d(1),s()),t&2){let e=a();f("closable",!1),r(),R(" ",e.texts.project.loadErrorPrefix," ",n," ")}}function pi(t,n){if(t&1&&(l(0,"p-message",4),d(1),s()),t&2){let e=a();f("closable",!1),r(),R(" ",e.texts.project.saveErrorPrefix," ",n," ")}}function ui(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(),f("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.extraFolders")),_("data-testid","settings-project-extra-folders-remove")}}function mi(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(),f("label",i.texts.project.removePathLabel)("outlined",!0)("disabled",i.isPending("scan.referencePaths")),_("data-testid","settings-project-reference-paths-remove")}}var Ne=class t{dataSource=M(H);confirmation=M(Z);visible=V.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(){N(()=>{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(qe(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 B&&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(qe(g))}})}else this.saveError.set(qe(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,gi,2,3,"p-message",3),h(6,pi,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,ui,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,mi,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(),b((o=i.loadError())?5:-1,o),r(),b((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),f("ngModel",i.newExtraFolder())("placeholder",i.texts.project.extraFoldersPlaceholder)("disabled",i.isPending("scan.extraFolders")),r(),f("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),f("ngModel",i.newReferencePath())("placeholder",i.texts.project.referencePathsPlaceholder)("disabled",i.isPending("scan.referencePaths")),r(),f("label",i.texts.project.addPathLabel)("disabled",i.isPending("scan.referencePaths")||i.newReferencePath().trim().length===0)}},dependencies:[ie,Pe,te,ne,ee,we,Se,ke,Me,Ee,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 qe(t){return t instanceof B||t instanceof Error?t.message:String(t)}var _i=(t,n)=>n.id;function hi(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(),$("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 bi(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();f("visible",e.pluginsVisible())}}function fi(t,n){if(t&1&&T(0,"sm-settings-general",5),t&2){let e=a();f("visible",e.generalVisible())}}function xi(t,n){if(t&1&&T(0,"sm-settings-project",5),t&2){let e=a();f("visible",e.projectVisible())}}function vi(t,n){if(t&1&&T(0,"sm-settings-about",5),t&2){let e=a();f("visible",e.aboutVisible())}}function yi(t,n){t&1&&T(0,"sm-settings-changelog")}var Ci=[{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}],an=class t{visible=V.required();visibleChange=ye();confirmation=M(Z);pluginsPanel=ut(ce);texts=w;sections=Ci;activeSection=v("plugins");dialogStyle={width:"1024px",height:"720px",maxWidth:"92vw",maxHeight:"90vh"};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&&dt(i.pluginsPanel,ce,5),e&2&&ct()},inputs:{visible:[1,"visible"]},outputs:{visibleChange:"visibleChange"},features:[J([Z])],decls:13,vars:12,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,hi,4,5,"li",null,_i),s()(),l(6,"div",4),h(7,bi,1,1,"sm-settings-plugins",5)(8,fi,1,1,"sm-settings-general",5)(9,xi,1,1,"sm-settings-project",5)(10,vi,1,1,"sm-settings-about",5)(11,yi,1,0,"sm-settings-changelog"),s()(),T(12,"p-confirmdialog"),s()),e&2){let o;ve(i.dialogStyle),f("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),b((o=i.activeSection())==="plugins"?7:o==="general"?8:o==="project"?9:o==="about"?10:o==="changelog"?11:-1)}},dependencies:[ee,Se,ke,wt,Ct,Te,Ie,Fe,ce,Ne],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{an as SettingsModal};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import{a as st,c as lt,d as rt}from"./chunk-YEWLFFFB.js";import{$ as me,$a as S,Aa as c,Ac as it,Ec as nt,Gb as Ce,Gc as ot,Hc as Ie,Ib as be,Ic as V,J as N,Ja as L,Jc as U,K as ne,Kb as qe,Kc as De,M as de,Ma as x,Na as T,Nc as ze,O as f,Oc as ee,Pb as D,Pc as at,Qc as Oe,Rc as Ve,Sa as s,Sb as q,T as g,Ta as u,U as h,Ua as C,Uc as k,V as F,Va as E,Wa as Z,Wb as W,X as je,Xa as $,Ya as Q,Za as X,Zc as we,_ as y,_a as Y,ad as Me,bc as d,ca as _e,cb as w,cc as G,db as fe,eb as I,ed as te,fa as v,gb as l,hb as ge,ia as Re,ib as ae,ic as ye,ja as Pe,jb as he,kb as Ze,lb as m,lc as xe,mb as _,mc as We,na as p,nc as Te,oc as ve,pc as le,qb as $e,ra as ke,rb as Qe,tb as se,ub as b,va as O,vb as Xe,wa as oe,wb as Ye,xa as Ne,xc as Ge,ya as ue,yc as M,za as z,zc as K}from"./chunk-ZR2E2QJ4.js";import{B as tt,D as Ee,O as J,a as Je,d as Le,h as Se,l as Be,m as Ae,p as Ke,r as Ue,u as re,v as Fe,y as et}from"./chunk-3R7E3HPC.js";import{a as P}from"./chunk-Q7L6LLAK.js";var xt=["data-p-icon","window-maximize"],ct=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[z],attrs:xt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var Tt=["data-p-icon","window-minimize"],pt=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[z],attrs:Tt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var dt=(()=>{class t extends ee{pFocusTrapDisabled=!1;platformId=f(Re);document=f(je);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){le(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&le(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let n=i=>Ue("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?et(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Fe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?tt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Fe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",d]},features:[z]})}return t})();var mt=`
|
|
2
|
-
.p-dialog {
|
|
3
|
-
max-height: 90%;
|
|
4
|
-
transform: scale(1);
|
|
5
|
-
border-radius: dt('dialog.border.radius');
|
|
6
|
-
box-shadow: dt('dialog.shadow');
|
|
7
|
-
background: dt('dialog.background');
|
|
8
|
-
border: 1px solid dt('dialog.border.color');
|
|
9
|
-
color: dt('dialog.color');
|
|
10
|
-
will-change: transform;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.p-dialog-content {
|
|
14
|
-
overflow-y: auto;
|
|
15
|
-
padding: dt('dialog.content.padding');
|
|
16
|
-
flex-grow: 1;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.p-dialog-header {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
padding: dt('dialog.header.padding');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.p-dialog-title {
|
|
28
|
-
font-weight: dt('dialog.title.font.weight');
|
|
29
|
-
font-size: dt('dialog.title.font.size');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.p-dialog-footer {
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
padding: dt('dialog.footer.padding');
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: flex-end;
|
|
37
|
-
gap: dt('dialog.footer.gap');
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.p-dialog-header-actions {
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
gap: dt('dialog.header.gap');
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.p-dialog-top .p-dialog,
|
|
47
|
-
.p-dialog-bottom .p-dialog,
|
|
48
|
-
.p-dialog-left .p-dialog,
|
|
49
|
-
.p-dialog-right .p-dialog,
|
|
50
|
-
.p-dialog-topleft .p-dialog,
|
|
51
|
-
.p-dialog-topright .p-dialog,
|
|
52
|
-
.p-dialog-bottomleft .p-dialog,
|
|
53
|
-
.p-dialog-bottomright .p-dialog {
|
|
54
|
-
margin: 1rem;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.p-dialog-maximized {
|
|
58
|
-
width: 100vw !important;
|
|
59
|
-
height: 100vh !important;
|
|
60
|
-
top: 0px !important;
|
|
61
|
-
left: 0px !important;
|
|
62
|
-
max-height: 100%;
|
|
63
|
-
height: 100%;
|
|
64
|
-
border-radius: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.p-dialog .p-resizable-handle {
|
|
68
|
-
position: absolute;
|
|
69
|
-
font-size: 0.1px;
|
|
70
|
-
display: block;
|
|
71
|
-
cursor: se-resize;
|
|
72
|
-
width: 12px;
|
|
73
|
-
height: 12px;
|
|
74
|
-
right: 1px;
|
|
75
|
-
bottom: 1px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.p-dialog-enter-active {
|
|
79
|
-
animation: p-animate-dialog-enter 300ms cubic-bezier(.19,1,.22,1);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.p-dialog-leave-active {
|
|
83
|
-
animation: p-animate-dialog-leave 300ms cubic-bezier(.19,1,.22,1);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@keyframes p-animate-dialog-enter {
|
|
87
|
-
from {
|
|
88
|
-
opacity: 0;
|
|
89
|
-
transform: scale(0.93);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@keyframes p-animate-dialog-leave {
|
|
94
|
-
to {
|
|
95
|
-
opacity: 0;
|
|
96
|
-
transform: scale(0.93);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
`;var It=["header"],_t=["content"],ut=["footer"],Dt=["closeicon"],zt=["maximizeicon"],wt=["minimizeicon"],Mt=["headless"],kt=["titlebar"],Lt=["*",[["p-footer"]]],St=["*","p-footer"],Bt=t=>({ariaLabelledBy:t});function At(t,o){t&1&&S(0)}function Ft(t,o){if(t&1&&(X(0),c(1,At,1,0,"ng-container",11),Y()),t&2){let e=l(3);p(),s("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Ot(t,o){if(t&1){let e=w();u(0,"div",16),I("mousedown",function(i){g(e);let a=l(4);return h(a.initResize(i))}),C()}if(t&2){let e=l(4);b(e.cx("resizeHandle")),Qe("z-index",90),s("pBind",e.ptm("resizeHandle"))}}function Vt(t,o){if(t&1&&(u(0,"span",21),Xe(1),C()),t&2){let e=l(5);b(e.cx("title")),s("id",e.ariaLabelledBy)("pBind",e.ptm("title")),p(),Ye(e.header)}}function Ht(t,o){t&1&&S(0)}function jt(t,o){if(t&1&&E(0,"span",25),t&2){let e=l(7);s("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function Rt(t,o){t&1&&(F(),E(0,"svg",28))}function Pt(t,o){t&1&&(F(),E(0,"svg",29))}function Nt(t,o){if(t&1&&(X(0),c(1,Rt,1,0,"svg",26)(2,Pt,1,0,"svg",27),Y()),t&2){let e=l(7);p(),s("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),p(),s("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function Zt(t,o){}function $t(t,o){t&1&&c(0,Zt,0,0,"ng-template")}function Qt(t,o){if(t&1&&(X(0),c(1,$t,1,0,null,11),Y()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function Xt(t,o){}function Yt(t,o){t&1&&c(0,Xt,0,0,"ng-template")}function qt(t,o){if(t&1&&(X(0),c(1,Yt,1,0,null,11),Y()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function Wt(t,o){if(t&1&&c(0,jt,1,1,"span",23)(1,Nt,3,2,"ng-container",24)(2,Qt,2,1,"ng-container",24)(3,qt,2,1,"ng-container",24),t&2){let e=l(6);s("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),p(),s("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),p(),s("ngIf",!e.maximized),p(),s("ngIf",e.maximized)}}function Gt(t,o){if(t&1){let e=w();u(0,"p-button",22),I("onClick",function(){g(e);let i=l(5);return h(i.maximize())})("keydown.enter",function(){g(e);let i=l(5);return h(i.maximize())}),c(1,Wt,4,4,"ng-template",null,4,D),C()}if(t&2){let e=l(5);s("pt",e.ptm("pcMaximizeButton"))("styleClass",e.cx("pcMaximizeButton"))("ariaLabel",e.maximized?e.minimizeLabel:e.maximizeLabel)("tabindex",e.maximizable?"0":"-1")("buttonProps",e.maximizeButtonProps)("unstyled",e.unstyled()),L("data-pc-group-section","headericon")}}function Jt(t,o){if(t&1&&E(0,"span"),t&2){let e=l(8);b(e.closeIcon)}}function Kt(t,o){t&1&&(F(),E(0,"svg",32))}function Ut(t,o){if(t&1&&(X(0),c(1,Jt,1,2,"span",30)(2,Kt,1,0,"svg",31),Y()),t&2){let e=l(7);p(),s("ngIf",e.closeIcon),p(),s("ngIf",!e.closeIcon)}}function ei(t,o){}function ti(t,o){t&1&&c(0,ei,0,0,"ng-template")}function ii(t,o){if(t&1&&(u(0,"span"),c(1,ti,1,0,null,11),C()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function ni(t,o){if(t&1&&c(0,Ut,3,2,"ng-container",24)(1,ii,2,1,"span",24),t&2){let e=l(6);s("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),p(),s("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function oi(t,o){if(t&1){let e=w();u(0,"p-button",22),I("onClick",function(i){g(e);let a=l(5);return h(a.close(i))})("keydown.enter",function(i){g(e);let a=l(5);return h(a.close(i))}),c(1,ni,2,2,"ng-template",null,4,D),C()}if(t&2){let e=l(5);s("pt",e.ptm("pcCloseButton"))("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)("unstyled",e.unstyled()),L("data-pc-group-section","headericon")}}function ai(t,o){if(t&1){let e=w();u(0,"div",16,3),I("mousedown",function(i){g(e);let a=l(4);return h(a.initDrag(i))}),c(2,Vt,2,5,"span",17)(3,Ht,1,0,"ng-container",18),u(4,"div",19),c(5,Gt,3,7,"p-button",20)(6,oi,3,7,"p-button",20),C()()}if(t&2){let e=l(4);b(e.cx("header")),s("pBind",e.ptm("header")),p(2),s("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),p(),s("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT)("ngTemplateOutletContext",be(11,Bt,e.ariaLabelledBy)),p(),b(e.cx("headerActions")),s("pBind",e.ptm("headerActions")),p(),s("ngIf",e.maximizable),p(),s("ngIf",e.closable)}}function si(t,o){t&1&&S(0)}function li(t,o){t&1&&S(0)}function ri(t,o){if(t&1&&(u(0,"div",19,5),ae(2,1),c(3,li,1,0,"ng-container",11),C()),t&2){let e=l(4);b(e.cx("footer")),s("pBind",e.ptm("footer")),p(3),s("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function ci(t,o){if(t&1&&(c(0,Ot,1,5,"div",12)(1,ai,7,13,"div",13),u(2,"div",14,2),ae(4),c(5,si,1,0,"ng-container",11),C(),c(6,ri,4,4,"div",15)),t&2){let e=l(3);s("ngIf",e.resizable),p(),s("ngIf",e.showHeader),p(),b(e.cn(e.cx("content"),e.contentStyleClass)),s("ngStyle",e.contentStyle)("pBind",e.ptm("content")),p(3),s("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),p(),s("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function pi(t,o){if(t&1){let e=w();u(0,"div",9,0),I("pMotionOnBeforeEnter",function(i){g(e);let a=l(2);return h(a.onBeforeEnter(i))})("pMotionOnAfterEnter",function(i){g(e);let a=l(2);return h(a.onAfterEnter(i))})("pMotionOnBeforeLeave",function(i){g(e);let a=l(2);return h(a.onBeforeLeave(i))})("pMotionOnAfterLeave",function(i){g(e);let a=l(2);return h(a.onAfterLeave(i))}),c(2,Ft,2,1,"ng-container",10)(3,ci,7,8,"ng-template",null,1,D),C()}if(t&2){let e=$e(4),n=l(2);se(n.sx("root")),b(n.cn(n.cx("root"),n.styleClass)),s("ngStyle",n.style)("pBind",n.ptm("root"))("pFocusTrapDisabled",n.focusTrap===!1)("pMotion",n.visible)("pMotionAppear",!0)("pMotionName","p-dialog")("pMotionOptions",n.computedMotionOptions()),L("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0)("data-p",n.dataP),p(2),s("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function di(t,o){if(t&1){let e=w();u(0,"div",7),I("pMotionOnAfterLeave",function(){g(e);let i=l();return h(i.onMaskAfterLeave())}),x(1,pi,5,17,"div",8),C()}if(t&2){let e=l();se(e.sx("mask")),b(e.cn(e.cx("mask"),e.maskStyleClass)),s("ngStyle",e.maskStyle)("pBind",e.ptm("mask"))("pMotion",e.maskVisible)("pMotionAppear",!0)("pMotionEnterActiveClass",e.modal?"p-overlay-mask-enter-active":"")("pMotionLeaveActiveClass",e.modal?"p-overlay-mask-leave-active":"")("pMotionOptions",e.computedMaskMotionOptions()),L("data-p-scrollblocker-active",e.modal||e.blockScroll)("data-p",e.dataP),p(),T(e.renderDialog()?1:-1)}}var mi={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},_i={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===t.position);return["p-dialog-mask",{"p-overlay-mask":t.modal},e?`p-dialog-${e}`:""]},root:({instance:t})=>["p-dialog p-component",{"p-dialog-maximized":t.maximizable&&t.maximized}],header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:()=>["p-dialog-content"],footer:"p-dialog-footer"},ft=(()=>{class t extends De{name="dialog";style=mt;classes=_i;inlineStyles=mi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var gt=new de("DIALOG_INSTANCE"),He=(()=>{class t extends ee{componentName="Dialog";hostName="";$pcDialog=f(gt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=f(k,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;draggable=!0;resizable=!0;contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";maskMotionOptions=W(void 0);computedMaskMotionOptions=q(()=>P(P({},this.ptm("maskMotion")),this.maskMotionOptions()));motionOptions=W(void 0);computedMotionOptions=q(()=>P(P({},this.ptm("motion")),this.motionOptions()));closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",variant:"text",rounded:!0};maximizeButtonProps={severity:"secondary",variant:"text",rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0,this.renderMask.set(!0),this.renderDialog.set(!0))}get style(){return this._style}set style(e){e&&(this._style=P({},e),this.originalStyle=e)}position;role="dialog";appendTo=W(void 0);onShow=new y;onHide=new y;visibleChange=new y;onResizeInit=new y;onResizeEnd=new y;onDragEnd=new y;onMaximize=new y;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;$appendTo=q(()=>this.appendTo()||this.config.overlayAppendTo());renderMask=_e(!1);renderDialog=_e(!1);_visible=!1;maskVisible;container=_e(null);wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=M("pn_id_");_style={};originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=f(ft);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;zIndexForLayering;get maximizeLabel(){return this.config.getTranslation(U.ARIA).maximizeLabel}get minimizeLabel(){return this.config.getTranslation(U.ARIA).minimizeLabel}zone=f(me);overlayService=f(nt);get maskClass(){let n=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===this.position);return{"p-dialog-mask":!0,"p-overlay-mask":this.modal||this.dismissableMask,[`p-dialog-${n}`]:n}}onInit(){this.breakpoints&&this.createStyle()}templates;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let n=/([\d\.]+)(ms|s)\b/g,i=0,a;for(;(a=n.exec(e))!==null;){let r=parseFloat(a[1]),H=a[2];H==="ms"?i+=r:H==="s"&&(i+=r*1e3)}if(i!==0)return i}_focus(e){if(e){let n=this.parseDurationToMilliseconds(this.transitionOptions),i=at.getFocusableElements(e);if(i&&i.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>i[0].focus(),n||5)}),!0}return!1}focus(e=this.contentViewChild?.nativeElement){let n=this._focus(e);n||(n=this._focus(this.footerViewChild?.nativeElement),n||(n=this._focus(this.headerViewChild?.nativeElement),n||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visible=!1,this.visibleChange.emit(this.visible),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Oe()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll('[data-p-scrollblocker-active="true"]');this.modal&&e&&e.length==1&&Ve(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Oe():Ve()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex?(te.set("modal",this.container(),this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container().style.zIndex,10)-1)):this.zIndexForLayering=te.generateZIndex("modal",(this.baseZIndex??0)+this.config.zIndex.modal)}createStyle(){if(le(this.platformId)&&!this.styleElement&&!this.$unstyled()){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",J(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
|
|
100
|
-
@media screen and (max-width: ${n}) {
|
|
101
|
-
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
|
|
102
|
-
width: ${this.breakpoints[n]} !important;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
`;this.renderer.setProperty(this.styleElement,"innerHTML",e),J(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){e.target.closest("div")?.getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container().style.margin="0",this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Be(this.document.body,{"user-select":"none"}))}onDrag(e){if(this.dragging&&this.container()){let n=Ae(this.container()),i=Ee(this.container()),a=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,H=this.container().getBoundingClientRect(),j=getComputedStyle(this.container()),R=parseFloat(j.marginLeft),pe=parseFloat(j.marginTop),B=H.left+a-R,A=H.top+r-pe,ie=Se();this.container().style.position="fixed",this.keepInViewport?(B>=this.minX&&B+n<ie.width&&(this._style.left=`${B}px`,this.lastPageX=e.pageX,this.container().style.left=`${B}px`),A>=this.minY&&A+i<ie.height&&(this._style.top=`${A}px`,this.lastPageY=e.pageY,this.container().style.top=`${A}px`)):(this.lastPageX=e.pageX,this.container().style.left=`${B}px`,this.lastPageY=e.pageY,this.container().style.top=`${A}px`),this.overlayService.emitParentDrag(this.container())}}endDrag(e){this.dragging&&(this.dragging=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container().style.position="",this.container().style.left="",this.container().style.top="",this.container().style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Be(this.document.body,{"user-select":"none"}),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,a=Ae(this.container()),r=Ee(this.container()),H=Ee(this.contentViewChild?.nativeElement),j=a+n,R=r+i,pe=this.container().style.minWidth,B=this.container().style.minHeight,A=this.container().getBoundingClientRect(),ie=Se();(!parseInt(this.container().style.top)||!parseInt(this.container().style.left))&&(j+=n,R+=i),(!pe||j>parseInt(pe))&&A.left+j<ie.width&&(this._style.width=j+"px",this.container().style.width=this._style.width),(!B||R>parseInt(B))&&A.top+R<ie.height&&(this.contentViewChild.nativeElement.style.height=H+R-r+"px",this._style.height&&(this._style.height=R+"px",this.container().style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{if(n.key=="Escape"){let i=this.container();if(!i)return;let a=te.getCurrent();(parseInt(i.style.zIndex)==a||this.zIndexForLayering==a)&&this.close(n)}})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.$appendTo()!=="self"&&Ke(this.document.body,this.wrapper)}restoreAppend(){this.container()&&this.$appendTo()!=="self"&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onBeforeEnter(e){this.container.set(e.element),this.wrapper=this.container()?.parentElement,this.$attrSelector&&this.container()?.setAttribute(this.$attrSelector,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container()?.setAttribute(this.id,""),this.modal&&this.enableModality()}onAfterEnter(){this.focusOnShow&&this.focus(),this.onShow.emit({})}onBeforeLeave(){this.modal&&(this.maskVisible=!1)}onAfterLeave(){this.onContainerDestroy(),this.renderDialog.set(!1),this.modal?this.renderMask.set(!1):this.maskVisible=!1,this.onHide.emit({}),this.cd.markForCheck()}onMaskAfterLeave(){this.renderDialog()||this.renderMask.set(!1)}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maximized&&(Le(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),Je(this.document.body,"p-overflow-hidden")&&Le(this.document.body,"p-overflow-hidden"),this.container()&&this.autoZIndex&&te.clear(this.container()),this.zIndexForLayering&&te.revertZIndex(this.zIndexForLayering),this.container.set(null),this.wrapper=null,this._style=this.originalStyle?P({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}onDestroy(){this.container()&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}get dataP(){return this.cn({maximized:this.maximized,modal:this.modal})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["p-dialog"]],contentQueries:function(n,i,a){if(n&1&&he(a,It,4)(a,_t,4)(a,ut,4)(a,Dt,4)(a,zt,4)(a,wt,4)(a,Mt,4)(a,Ie,4),n&2){let r;m(r=_())&&(i._headerTemplate=r.first),m(r=_())&&(i._contentTemplate=r.first),m(r=_())&&(i._footerTemplate=r.first),m(r=_())&&(i._closeiconTemplate=r.first),m(r=_())&&(i._maximizeiconTemplate=r.first),m(r=_())&&(i._minimizeiconTemplate=r.first),m(r=_())&&(i._headlessTemplate=r.first),m(r=_())&&(i.templates=r)}},viewQuery:function(n,i){if(n&1&&Ze(kt,5)(_t,5)(ut,5),n&2){let a;m(a=_())&&(i.headerViewChild=a.first),m(a=_())&&(i.contentViewChild=a.first),m(a=_())&&(i.footerViewChild=a.first)}},inputs:{hostName:"hostName",header:"header",draggable:[2,"draggable","draggable",d],resizable:[2,"resizable","resizable",d],contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",d],closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",d],blockScroll:[2,"blockScroll","blockScroll",d],autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",G],minX:[2,"minX","minX",G],minY:[2,"minY","minY",G],focusOnShow:[2,"focusOnShow","focusOnShow",d],maximizable:[2,"maximizable","maximizable",d],keepInViewport:[2,"keepInViewport","keepInViewport",d],focusTrap:[2,"focusTrap","focusTrap",d],transitionOptions:"transitionOptions",maskMotionOptions:[1,"maskMotionOptions"],motionOptions:[1,"motionOptions"],closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",appendTo:[1,"appendTo"],headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[Ce([ft,{provide:gt,useExisting:t},{provide:ze,useExisting:t}]),ue([k]),z],ngContentSelectors:St,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"class","style","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],[3,"pMotionOnAfterLeave","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],["pFocusTrap","",3,"class","style","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],["pFocusTrap","",3,"pMotionOnBeforeEnter","pMotionOnAfterEnter","pMotionOnBeforeLeave","pMotionOnAfterLeave","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"class","pBind","z-index","mousedown",4,"ngIf"],[3,"class","pBind","mousedown",4,"ngIf"],[3,"ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"mousedown","pBind"],[3,"id","class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[3,"pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled","onClick","keydown.enter",4,"ngIf"],[3,"id","pBind"],[3,"onClick","keydown.enter","pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["data-p-icon","window-maximize",4,"ngIf"],["data-p-icon","window-minimize",4,"ngIf"],["data-p-icon","window-maximize"],["data-p-icon","window-minimize"],[3,"class",4,"ngIf"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(n,i){n&1&&(ge(Lt),x(0,di,2,14,"div",6)),n&2&&T(i.renderMask()?0:-1)},dependencies:[ve,ye,xe,Te,We,Me,dt,st,ct,pt,V,k,rt,lt],encapsulation:2,changeDetection:0})}return t})(),Wn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=oe({type:t});static \u0275inj=ne({imports:[He,V,V]})}return t})();var ht=`
|
|
106
|
-
.p-confirmdialog .p-dialog-content {
|
|
107
|
-
display: flex;
|
|
108
|
-
align-items: center;
|
|
109
|
-
gap: dt('confirmdialog.content.gap');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.p-confirmdialog-icon {
|
|
113
|
-
color: dt('confirmdialog.icon.color');
|
|
114
|
-
font-size: dt('confirmdialog.icon.size');
|
|
115
|
-
width: dt('confirmdialog.icon.size');
|
|
116
|
-
height: dt('confirmdialog.icon.size');
|
|
117
|
-
}
|
|
118
|
-
`;var ui=["header"],fi=["footer"],gi=["rejecticon"],hi=["accepticon"],Ci=["message"],bi=["icon"],yi=["headless"],xi=[[["p-footer"]]],Ti=["p-footer"],vi=(t,o,e)=>({$implicit:t,onAccept:o,onReject:e}),Ei=t=>({$implicit:t});function Ii(t,o){t&1&&S(0)}function Di(t,o){if(t&1&&c(0,Ii,1,0,"ng-container",7),t&2){let e=l(2);s("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)("ngTemplateOutletContext",qe(2,vi,e.confirmation,e.onAccept.bind(e),e.onReject.bind(e)))}}function zi(t,o){t&1&&c(0,Di,1,6,"ng-template",null,2,D)}function wi(t,o){t&1&&S(0)}function Mi(t,o){if(t&1&&c(0,wi,1,0,"ng-container",8),t&2){let e=l(3);s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function ki(t,o){t&1&&c(0,Mi,1,1,"ng-template",null,4,D)}function Li(t,o){}function Si(t,o){t&1&&c(0,Li,0,0,"ng-template")}function Bi(t,o){if(t&1&&c(0,Si,1,0,null,8),t&2){let e=l(3);s("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function Ai(t,o){if(t&1&&E(0,"i",12),t&2){let e=l(4);b(e.option("icon")),s("ngClass",e.cx("icon"))("pBind",e.ptm("icon"))}}function Fi(t,o){if(t&1&&c(0,Ai,1,4,"i",11),t&2){let e=l(3);s("ngIf",e.option("icon"))}}function Oi(t,o){}function Vi(t,o){t&1&&c(0,Oi,0,0,"ng-template")}function Hi(t,o){if(t&1&&c(0,Vi,1,0,null,7),t&2){let e=l(3);s("ngTemplateOutlet",e.messageTemplate||e._messageTemplate)("ngTemplateOutletContext",be(2,Ei,e.confirmation))}}function ji(t,o){if(t&1&&E(0,"span",13),t&2){let e=l(3);b(e.cx("message")),s("pBind",e.ptm("message"))("innerHTML",e.option("message"),Pe)}}function Ri(t,o){if(t&1&&(x(0,Bi,1,1)(1,Fi,1,1,"i",9),x(2,Hi,1,4)(3,ji,1,4,"span",10)),t&2){let e=l(2);T(e.iconTemplate||e._iconTemplate?0:!e.iconTemplate&&!e._iconTemplate&&!e._messageTemplate&&!e.messageTemplate?1:-1),p(2),T(e.messageTemplate||e._messageTemplate?2:3)}}function Pi(t,o){if(t&1&&(x(0,ki,2,0),c(1,Ri,4,2,"ng-template",null,3,D)),t&2){let e=l();T(e.headerTemplate||e._headerTemplate?0:-1)}}function Ni(t,o){t&1&&S(0)}function Zi(t,o){if(t&1&&(ae(0),c(1,Ni,1,0,"ng-container",8)),t&2){let e=l(2);p(),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function $i(t,o){if(t&1&&E(0,"i",18),t&2){let e=l(6);b(e.option("rejectIcon")),s("pBind",e.ptm("pcRejectButton").icon)}}function Qi(t,o){if(t&1&&c(0,$i,1,3,"i",17),t&2){let e=l(5);s("ngIf",e.option("rejectIcon"))}}function Xi(t,o){}function Yi(t,o){t&1&&c(0,Xi,0,0,"ng-template")}function qi(t,o){if(t&1&&(x(0,Qi,1,1,"i",16),c(1,Yi,1,0,null,8)),t&2){let e=l(4);T(e.rejectIcon&&!e.rejectIconTemplate&&!e._rejectIconTemplate?0:-1),p(),s("ngTemplateOutlet",e.rejectIconTemplate||e._rejectIconTemplate)}}function Wi(t,o){if(t&1){let e=w();u(0,"p-button",15),I("onClick",function(){g(e);let i=l(3);return h(i.onReject())}),c(1,qi,2,2,"ng-template",null,5,D),C()}if(t&2){let e=l(3);s("pt",e.ptm("pcRejectButton"))("label",e.rejectButtonLabel)("styleClass",e.getButtonStyleClass("pcRejectButton","rejectButtonStyleClass"))("ariaLabel",e.option("rejectButtonProps","ariaLabel"))("buttonProps",e.getRejectButtonProps())("unstyled",e.unstyled())}}function Gi(t,o){if(t&1&&E(0,"i",18),t&2){let e=l(6);b(e.option("acceptIcon")),s("pBind",e.ptm("pcAcceptButton").icon)}}function Ji(t,o){if(t&1&&c(0,Gi,1,3,"i",17),t&2){let e=l(5);s("ngIf",e.option("acceptIcon"))}}function Ki(t,o){}function Ui(t,o){t&1&&c(0,Ki,0,0,"ng-template")}function en(t,o){if(t&1&&(x(0,Ji,1,1,"i",16),c(1,Ui,1,0,null,8)),t&2){let e=l(4);T(e.acceptIcon&&!e._acceptIconTemplate&&!e.acceptIconTemplate?0:-1),p(),s("ngTemplateOutlet",e.acceptIconTemplate||e._acceptIconTemplate)}}function tn(t,o){if(t&1){let e=w();u(0,"p-button",15),I("onClick",function(){g(e);let i=l(3);return h(i.onAccept())}),c(1,en,2,2,"ng-template",null,5,D),C()}if(t&2){let e=l(3);s("pt",e.ptm("pcAcceptButton"))("label",e.acceptButtonLabel)("styleClass",e.getButtonStyleClass("pcAcceptButton","acceptButtonStyleClass"))("ariaLabel",e.option("acceptButtonProps","ariaLabel"))("buttonProps",e.getAcceptButtonProps())("unstyled",e.unstyled())}}function nn(t,o){if(t&1&&c(0,Wi,3,6,"p-button",14)(1,tn,3,6,"p-button",14),t&2){let e=l(2);s("ngIf",e.option("rejectVisible")),p(),s("ngIf",e.option("acceptVisible"))}}function on(t,o){if(t&1&&(x(0,Zi,2,1),x(1,nn,2,2)),t&2){let e=l();T(e.footerTemplate||e._footerTemplate?0:-1),p(),T(!e.footerTemplate&&!e._footerTemplate?1:-1)}}var an={root:"p-confirmdialog",icon:"p-confirmdialog-icon",message:"p-confirmdialog-message",pcRejectButton:"p-confirmdialog-reject-button",pcAcceptButton:"p-confirmdialog-accept-button"},Ct=(()=>{class t extends De{name="confirmdialog";style=ht;classes=an;static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var bt=new de("CONFIRMDIALOG_INSTANCE"),sn=(()=>{class t extends ee{confirmationService;zone;componentName="ConfirmDialog";$pcConfirmDialog=f(bt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=f(k,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;icon;message;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo=W("body");key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;modal=!0;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}position="center";draggable=!0;onHide=new y;footer;_componentStyle=f(Ct);headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;templates;$appendTo=q(()=>this.appendTo()||this.config.overlayAppendTo());_headerTemplate;_footerTemplate;_rejectIconTemplate;_acceptIconTemplate;_messageTemplate;_iconTemplate;_headlessTemplate;confirmation;_visible;_style;maskVisible;dialog;wrapper;contentContainer;subscription;preWidth;styleElement;id=M("pn_id_");ariaLabelledBy=this.getAriaLabelledBy();translationSubscription;constructor(e,n){super(),this.confirmationService=e,this.zone=n,this.subscription=this.confirmationService.requireConfirmation$.subscribe(i=>{if(!i){this.hide();return}i.key===this.key&&(this.confirmation=i,Object.keys(i).forEach(r=>{this[r]=i[r]}),this.confirmation.accept&&(this.confirmation.acceptEvent=new y,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new y,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0)})}onInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"message":this._messageTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"rejecticon":this._rejectIconTemplate=e.template;break;case"accepticon":this._acceptIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}option(e,n){let i=this;if(i.hasOwnProperty(e)){let a=n?i[n]:i[e];return typeof a=="function"?a():a}}getButtonStyleClass(e,n){let i=this.cx(e),a=this.option(n);return[i,a].filter(Boolean).join(" ")}getElementToFocus(){if(this.dialog?.el?.nativeElement)switch(this.option("defaultFocus")){case"accept":return re(this.dialog.el.nativeElement,".p-confirm-dialog-accept");case"reject":return re(this.dialog.el.nativeElement,".p-confirm-dialog-reject");case"close":return re(this.dialog.el.nativeElement,".p-dialog-header-close");case"none":return null;default:return re(this.dialog.el.nativeElement,".p-confirm-dialog-accept")}}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",J(this.styleElement,"nonce",this.config?.csp()?.nonce),this.document.head.appendChild(this.styleElement);let e="";for(let n in this.breakpoints)e+=`
|
|
119
|
-
@media screen and (max-width: ${n}) {
|
|
120
|
-
.p-dialog[${this.id}] {
|
|
121
|
-
width: ${this.breakpoints[n]} !important;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
`;this.styleElement.innerHTML=e,J(this.styleElement,"nonce",this.config?.csp()?.nonce)}}close(){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(K.CANCEL),this.hide(K.CANCEL)}hide(e){this.onHide.emit(e),this.visible=!1,this.unsubscribeConfirmationEvents()}onDialogHide(){this.confirmation=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}onDestroy(){this.subscription.unsubscribe(),this.unsubscribeConfirmationEvents(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}onVisibleChange(e){e?this.visible=e:this.close()}onAccept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(K.ACCEPT)}onReject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(K.REJECT),this.hide(K.REJECT)}unsubscribeConfirmationEvents(){this.confirmation&&(this.confirmation.acceptEvent?.unsubscribe(),this.confirmation.rejectEvent?.unsubscribe())}get acceptButtonLabel(){return this.option("acceptLabel")||this.getAcceptButtonProps()?.label||this.config.getTranslation(U.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.getRejectButtonProps()?.label||this.config.getTranslation(U.REJECT)}getAcceptButtonProps(){return this.option("acceptButtonProps")}getRejectButtonProps(){return this.option("rejectButtonProps")}static \u0275fac=function(n){return new(n||t)(ke(it),ke(me))};static \u0275cmp=O({type:t,selectors:[["p-confirmDialog"],["p-confirmdialog"],["p-confirm-dialog"]],contentQueries:function(n,i,a){if(n&1&&he(a,ot,5)(a,ui,4)(a,fi,4)(a,gi,4)(a,hi,4)(a,Ci,4)(a,bi,4)(a,yi,4)(a,Ie,4),n&2){let r;m(r=_())&&(i.footer=r.first),m(r=_())&&(i.headerTemplate=r.first),m(r=_())&&(i.footerTemplate=r.first),m(r=_())&&(i.rejectIconTemplate=r.first),m(r=_())&&(i.acceptIconTemplate=r.first),m(r=_())&&(i.messageTemplate=r.first),m(r=_())&&(i.iconTemplate=r.first),m(r=_())&&(i.headlessTemplate=r.first),m(r=_())&&(i.templates=r)}},inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[2,"acceptVisible","acceptVisible",d],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[2,"rejectVisible","rejectVisible",d],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],blockScroll:[2,"blockScroll","blockScroll",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],appendTo:[1,"appendTo"],key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",G],transitionOptions:"transitionOptions",focusTrap:[2,"focusTrap","focusTrap",d],defaultFocus:"defaultFocus",breakpoints:"breakpoints",modal:[2,"modal","modal",d],visible:"visible",position:"position",draggable:[2,"draggable","draggable",d]},outputs:{onHide:"onHide"},features:[Ce([Ct,{provide:bt,useExisting:t},{provide:ze,useExisting:t}]),ue([k]),z],ngContentSelectors:Ti,decls:6,vars:19,consts:[["dialog",""],["footer",""],["headless",""],["content",""],["header",""],["icon",""],["role","alertdialog",3,"visibleChange","onHide","pt","visible","closable","styleClass","modal","header","closeOnEscape","blockScroll","appendTo","position","dismissableMask","draggable","baseZIndex","autoZIndex","maskStyleClass","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[3,"ngClass","class","pBind"],[3,"class","pBind","innerHTML"],[3,"ngClass","class","pBind",4,"ngIf"],[3,"ngClass","pBind"],[3,"pBind","innerHTML"],[3,"pt","label","styleClass","ariaLabel","buttonProps","unstyled","onClick",4,"ngIf"],[3,"onClick","pt","label","styleClass","ariaLabel","buttonProps","unstyled"],[3,"class","pBind"],[3,"class","pBind",4,"ngIf"],[3,"pBind"]],template:function(n,i){n&1&&(ge(xi),u(0,"p-dialog",6,0),I("visibleChange",function(r){return i.onVisibleChange(r)})("onHide",function(){return i.onDialogHide()}),x(2,zi,2,0)(3,Pi,3,1),c(4,on,2,2,"ng-template",null,1,D),C()),n&2&&(se(i.style),s("pt",i.pt)("visible",i.visible)("closable",i.option("closable"))("styleClass",i.cn(i.cx("root"),i.styleClass))("modal",i.option("modal"))("header",i.option("header"))("closeOnEscape",i.option("closeOnEscape"))("blockScroll",i.option("blockScroll"))("appendTo",i.$appendTo())("position",i.position)("dismissableMask",i.dismissableMask)("draggable",i.draggable)("baseZIndex",i.baseZIndex)("autoZIndex",i.autoZIndex)("maskStyleClass",i.cn(i.cx("mask"),i.maskStyleClass))("unstyled",i.unstyled()),p(2),T(i.headlessTemplate||i._headlessTemplate?2:3))},dependencies:[ve,ye,xe,Te,Me,He,V,k],encapsulation:2,changeDetection:0})}return t})(),xo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=oe({type:t});static \u0275inj=ne({imports:[sn,V,V]})}return t})();var yt=class t{sanitizer=f(Ge);libsPromise=null;async render(o){let e=await this.loadLibs(),n=e.md.render(o),i=e.purify.sanitize(n);return this.sanitizer.bypassSecurityTrustHtml(i)}async renderToHtml(o){let e=await this.loadLibs(),n=e.md.render(o);return e.purify.sanitize(n)}loadLibs(){return this.libsPromise||(this.libsPromise=ln()),this.libsPromise}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};async function ln(){let[t,o]=await Promise.all([import("./chunk-RIDAAD4I.js"),import("./chunk-N2C45VIA.js")]),e=t.default,n=new e({html:!1,linkify:!0}),i=o.default;return{md:n,purify:i}}export{He as a,Wn as b,sn as c,xo as d,yt as e};
|