@skill-map/cli 0.19.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/tutorial/sm-tutorial.md +3 -3
- package/dist/cli.js +7476 -6447
- package/dist/cli.js.map +1 -1
- package/dist/conformance/index.js +1 -1
- package/dist/conformance/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +182 -141
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +268 -109
- package/dist/kernel/index.js +182 -141
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +17 -17
- package/dist/ui/chunk-4NLC7QD2.js +124 -0
- package/dist/ui/{chunk-VWAUXWQX.js → chunk-6BZZQV42.js} +1 -1
- package/dist/ui/chunk-6GUHSAP5.js +5 -0
- package/dist/ui/chunk-E4ALROJS.js +450 -0
- package/dist/ui/{chunk-7CAK6MVK.js → chunk-EZZF5RL5.js} +10 -10
- package/dist/ui/chunk-FWX4RRDF.js +125 -0
- package/dist/ui/chunk-GGMXMGRJ.js +1 -0
- package/dist/ui/chunk-K5PULFK7.js +1 -0
- package/dist/ui/chunk-OJ6W6OIB.js +61 -0
- package/dist/ui/{chunk-BORRASJB.js → chunk-PTCD42GB.js} +6 -6
- package/dist/ui/{chunk-LFIE4SCX.js → chunk-ZSRIBCAW.js} +13 -13
- package/dist/ui/index.html +2 -2
- package/dist/ui/main-5FJWWH5I.js +1 -0
- package/dist/ui/{styles-UAABA7VK.css → styles-VJ5Q6D2X.css} +1 -1
- package/migrations/001_initial.sql +17 -17
- package/package.json +2 -2
- package/dist/ui/chunk-CZSS4D6J.js +0 -454
- package/dist/ui/chunk-EQD7AYYJ.js +0 -227
- package/dist/ui/chunk-ETTRVTFV.js +0 -1
- package/dist/ui/chunk-OKO3QOH6.js +0 -1
- package/dist/ui/chunk-PMIMYHBM.js +0 -61
- package/dist/ui/chunk-UHFGCO24.js +0 -1
- package/dist/ui/chunk-VHIPW3TH.js +0 -1
- package/dist/ui/main-BSYMJKTL.js +0 -1
|
@@ -83,7 +83,7 @@ CREATE INDEX ix_scan_links_normalized_trigger ON scan_links(normalized_trigger);
|
|
|
83
83
|
|
|
84
84
|
CREATE TABLE scan_issues (
|
|
85
85
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
86
|
-
|
|
86
|
+
analyzer_id TEXT NOT NULL,
|
|
87
87
|
severity TEXT NOT NULL,
|
|
88
88
|
node_ids_json TEXT NOT NULL,
|
|
89
89
|
link_indices_json TEXT,
|
|
@@ -93,7 +93,7 @@ CREATE TABLE scan_issues (
|
|
|
93
93
|
data_json TEXT,
|
|
94
94
|
CONSTRAINT ck_scan_issues_severity CHECK (severity IN ('error','warn','info'))
|
|
95
95
|
);
|
|
96
|
-
CREATE INDEX
|
|
96
|
+
CREATE INDEX ix_scan_issues_analyzer_id ON scan_issues(analyzer_id);
|
|
97
97
|
CREATE INDEX ix_scan_issues_severity ON scan_issues(severity);
|
|
98
98
|
|
|
99
99
|
-- --- State zone ------------------------------------------------------------
|
|
@@ -290,7 +290,7 @@ CREATE INDEX ix_scan_extractor_runs_extractor ON scan_extractor_runs(extractor_i
|
|
|
290
290
|
--
|
|
291
291
|
-- Read-side `node.merged` view (helper `mergeNodeWithEnrichments`):
|
|
292
292
|
-- author frontmatter + non-stale enrichments ordered by enriched_at ASC,
|
|
293
|
-
-- last-write-wins per field.
|
|
293
|
+
-- last-write-wins per field. Analyzers / `sm check` / `sm export` consume the
|
|
294
294
|
-- author frontmatter by default (CI-safe deterministic baseline);
|
|
295
295
|
-- enrichment consumption is opt-in.
|
|
296
296
|
|
|
@@ -311,8 +311,8 @@ CREATE INDEX ix_node_enrichments_stale ON node_enrichments(stale);
|
|
|
311
311
|
|
|
312
312
|
-- --- View contribution layer ----------------------------------------------
|
|
313
313
|
-- Phase 3 / View contribution system. Per-node typed data emitted by
|
|
314
|
-
-- extractors via `ctx.emitContribution(id, payload)` (and
|
|
315
|
-
-- `ctx.emitScopeContribution(id, payload)` for scope-level
|
|
314
|
+
-- extractors via `ctx.emitContribution(id, payload)` (and analyzers via
|
|
315
|
+
-- `ctx.emitScopeContribution(id, payload)` for scope-level slots).
|
|
316
316
|
-- Belongs to the `scan_*` family — cleared on every scan and repopulated
|
|
317
317
|
-- by emissions; NOT analogous to the plugin-private `state_plugin_kvs`
|
|
318
318
|
-- (which the plugin manages).
|
|
@@ -320,9 +320,9 @@ CREATE INDEX ix_node_enrichments_stale ON node_enrichments(stale);
|
|
|
320
320
|
-- See `spec/architecture.md` § View contribution system → Persistence
|
|
321
321
|
-- and `ROADMAP.md` § UI contribution system → Persistence for the
|
|
322
322
|
-- normative contract. The kernel publishes the closed catalog of
|
|
323
|
-
--
|
|
324
|
-
-- payloads are AJV-validated at emit time against the per-
|
|
325
|
-
-- schemas in `$defs/payloads/<
|
|
323
|
+
-- slots at `spec/schemas/view-slots.schema.json#/$defs/SlotName`;
|
|
324
|
+
-- payloads are AJV-validated at emit time against the per-slot
|
|
325
|
+
-- schemas in `$defs/payloads/<slot>` before reaching this table.
|
|
326
326
|
--
|
|
327
327
|
-- PK on `(plugin_id, extension_id, node_path, contribution_id)` so
|
|
328
328
|
-- re-emission of the same contribution for the same node REPLACES the
|
|
@@ -341,15 +341,15 @@ CREATE TABLE scan_contributions (
|
|
|
341
341
|
node_path TEXT NOT NULL,
|
|
342
342
|
contribution_id TEXT NOT NULL,
|
|
343
343
|
-- Closed enum surfaced for fast filtering / debugging — the value
|
|
344
|
-
-- mirrors `view-
|
|
345
|
-
--
|
|
346
|
-
-- a kernel + spec change with `sm plugins upgrade` migration; a
|
|
347
|
-
-- CHECK here would force a DDL migration on every catalog
|
|
348
|
-
-- and conflict with the upgrade verb's autonomy.
|
|
349
|
-
|
|
350
|
-
-- JSON-serialized payload, already validated against the
|
|
351
|
-
-- payload schema at emit time. Kept opaque at the SQL layer;
|
|
352
|
-
-- (BFF,
|
|
344
|
+
-- mirrors `view-slots.schema.json#/$defs/SlotName`. Kept open at
|
|
345
|
+
-- the SQL layer (no CHECK) by design: catalog evolution ships as
|
|
346
|
+
-- a kernel + spec change with `sm plugins upgrade` migration; a
|
|
347
|
+
-- hard CHECK here would force a DDL migration on every catalog
|
|
348
|
+
-- rename and conflict with the upgrade verb's autonomy.
|
|
349
|
+
slot TEXT NOT NULL,
|
|
350
|
+
-- JSON-serialized payload, already validated against the slot's
|
|
351
|
+
-- payload schema at emit time. Kept opaque at the SQL layer;
|
|
352
|
+
-- readers (BFF, analyzers) parse on demand.
|
|
353
353
|
payload_json TEXT NOT NULL,
|
|
354
354
|
emitted_at INTEGER NOT NULL,
|
|
355
355
|
PRIMARY KEY (plugin_id, extension_id, node_path, contribution_id)
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import{a as st,c as lt,d as rt}from"./chunk-6GUHSAP5.js";import{$a as S,$c as Me,Aa as c,Dc as nt,Fc as ot,Gb as Ce,Gc as Ie,Hc as V,Ib as be,Ic as U,J as N,Ja as L,Jc as De,K as ne,Kb as qe,M as de,Ma as x,Mc as ze,Na as T,Nc as ee,O as f,Oc as at,Pb as D,Pc as Oe,Qc as Ve,S as g,Sa as s,Sb as q,T as h,Ta as u,Tc as k,U as F,Ua as C,Va as E,W as je,Wa as Z,Wb as W,Xa as $,Ya as Q,Yc as we,Z as y,Za as X,_ as me,_a as Y,ba as _e,bc as d,cb as w,cc as G,db as fe,dd as te,ea as v,eb as I,gb as l,ha as Re,hb as ge,ia as Pe,ib as ae,ic as ye,jb as he,kb as Ze,lb as m,lc as xe,mb as _,mc as We,na as p,nc as Te,oc as ve,pc as le,qb as $e,ra as ke,rb as Qe,tb as se,ub as b,va as O,vb as Xe,wa as oe,wb as Ye,wc as Ge,xa as Ne,xc as M,ya as ue,yc as K,za as z,zc as it}from"./chunk-ZSRIBCAW.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-STE4Z72W.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as ye,l as ve}from"./chunk-6GUHSAP5.js";import{$a as oe,Aa as p,Gb as P,Gc as z,Hc as h,I as re,Ib as ie,Ic as fe,J as B,Ja as m,Jc as j,K as E,M,Ma as K,Mc as R,Na as U,Nc as X,O as u,Pb as pe,S as C,Sa as i,T,Ta as f,Tc as g,U as q,Ua as b,Uc as be,Va as L,Wa as ee,Wb as ge,Xa as te,Ya as ne,Yc as he,Z as Q,Za as H,_a as G,_c as _e,bc as k,cb as $,cc as ue,db as le,ea as _,eb as w,gb as r,hb as Z,ib as Y,ic as J,ja as ce,jb as N,lb as y,lc as W,mb as v,na as c,nc as V,oc as O,qb as se,tb as de,ub as d,va as I,vb as A,wa as S,wb as F,xc as me,ya as D,za as x}from"./chunk-ZSRIBCAW.js";var Ce=`
|
|
2
2
|
.p-tag {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{Da as Le,Gb as N,I as se,J as ae,Jc as Ye,K as T,M as E,Ma as Be,Mc as me,Na as ke,Nc as L,O as I,Rb as b,Sb as C,Tc as X,U as xe,Uc as Ke,Vb as u,Wb as o,Ya as Re,Yc as Je,Z as U,ac as We,ba as D,bc as S,ca as W,d as Ie,da as Te,dc as ue,ea as M,eb as je,fc as ce,ga as le,h as Ne,hb as Ge,ib as He,n as Se,oc as qe,qa as de,ra as v,sb as $e,t as Oe,ub as Ue,va as q,wa as P,xa as _,ya as Pe,za as m}from"./chunk-ZSRIBCAW.js";import{I as Ze,K as Z,P as fe,T as Xe,b as z,d as he,fa as pe,g as ze}from"./chunk-3R7E3HPC.js";import{a as p,b as A}from"./chunk-Q7L6LLAK.js";var Et=["data-p-icon","times"],Mn=(()=>{class t extends Je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275cmp=q({type:t,selectors:[["","data-p-icon","times"]],features:[m],attrs:Et,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){i&1&&(xe(),Re(0,"path",0))},encapsulation:2})}return t})();var Ft=Object.defineProperty,Qe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,et=(t,n,e)=>n in t?Ft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,tt=(t,n)=>{for(var e in n||(n={}))wt.call(n,e)&&et(t,e,n[e]);if(Qe)for(var e of Qe(n))It.call(n,e)&&et(t,e,n[e]);return t},Nt=(t,n,e)=>new Promise((i,r)=>{var s=l=>{try{f(e.next(l))}catch(c){r(c)}},a=l=>{try{f(e.throw(l))}catch(c){r(c)}},f=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);f((e=e.apply(t,n)).next())}),K="animation",B="transition";function St(t){return t?t.disabled||!!(t.safe&&Ze()):!1}function Ot(t,n){return t?tt(tt({},t),Object.entries(n).reduce((e,[i,r])=>{var s;return e[i]=(s=t[i])!=null?s:r,e},{})):n}function xt(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function Tt(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function Pt(t,n){let e=window.getComputedStyle(t),i=g=>{let F=e[`${g}Delay`],V=e[`${g}Duration`];return[F.split(", ").map(pe),V.split(", ").map(pe)]},[r,s]=i(B),[a,f]=i(K),l=Math.max(...s.map((g,F)=>g+r[F])),c=Math.max(...f.map((g,F)=>g+a[F])),d,h=0,y=0;return n===B?l>0&&(d=B,h=l,y=s.length):n===K?c>0&&(d=K,h=c,y=f.length):(h=Math.max(l,c),d=h>0?l>c?B:K:void 0,y=d?d===B?s.length:f.length:0),{type:d,timeout:h,count:y}}function J(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function Lt(t,n=!0,e=!1){if(!n&&!e)return;let i=ze(t);n&&fe(t,"--pui-motion-height",i.height+"px"),e&&fe(t,"--pui-motion-width",i.width+"px")}var Bt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function ge(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,r={},s=null,a={},f=d=>{if(Object.assign(e,Ot(d,Bt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=Tt(e),i=St(e),r=xt(e),s=null},l=d=>Nt(null,null,function*(){s?.();let{onBefore:h,onStart:y,onAfter:g,onCancelled:F}=a[d]||{},V={element:t};if(i){h?.(V),y?.(V),g?.(V);return}let{from:Ve,active:Ae,to:Ee}=r[d]||{};return Lt(t,e.autoHeight,e.autoWidth),h?.(V),z(t,Ve),z(t,Ae),t.offsetHeight,he(t,Ve),z(t,Ee),y?.(V),new Promise(Fe=>{let Vt=J(e.duration,d),we=()=>{he(t,[Ee,Ae]),s=null},At=()=>{we(),g?.(V),Fe()};s=()=>{we(),F?.(V),Fe()},Rt(t,e.type,Vt,At)})});f(n);let c={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{s?.(),s=null},update:(d,h)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(h)}};return e.appear&&c.enter(),c}var kt=0;function Rt(t,n,e,i){let r=t._motionEndId=++kt,s=()=>{r===t._motionEndId&&i()};if(e!=null)return setTimeout(s,e);let{type:a,timeout:f,count:l}=Pt(t,n);if(!a){i();return}let c=a+"end",d=0,h=()=>{t.removeEventListener(c,y,!0),s()},y=g=>{g.target===t&&++d>=l&&h()};t.addEventListener(c,y,{capture:!0,once:!0}),setTimeout(()=>{d<l&&h()},f+1)}var jt=["*"];function Gt(t,n){t&1&&He(0)}var Q=new WeakMap;function k(t,n){if(t)switch(Q.has(t)||Q.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ee(t,n){if(!t)return;let e=Q.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Q.delete(t)}var Ht=`
|
|
2
|
+
.p-motion {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
`,$t={root:"p-motion"},ve=(()=>{class t extends Ye{name="motion";style=Ht;classes=$t;static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var nt=new E("MOTION_INSTANCE"),Ut=(()=>{class t extends L{$pcMotion=I(nt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=I(X,{self:!0});onAfterViewChecked(){let i=this.options()?.root||{};this.bindDirectiveInstance.setAttrs(p(p({},this.ptms(["host","root"])),i))}_componentStyle=I(ve);visible=o(!1);mountOnEnter=o(!0);unmountOnLeave=o(!0);name=o(void 0);type=o(void 0);safe=o(void 0);disabled=o(!1);appear=o(!1);enter=o(!0);leave=o(!0);duration=o(void 0);hideStrategy=o("display");enterFromClass=o(void 0);enterToClass=o(void 0);enterActiveClass=o(void 0);leaveFromClass=o(void 0);leaveToClass=o(void 0);leaveActiveClass=o(void 0);options=o({});onBeforeEnter=u();onEnter=u();onAfterEnter=u();onEnterCancelled=u();onBeforeLeave=u();onLeave=u();onAfterLeave=u();onLeaveCancelled=u();motionOptions=C(()=>{let e=this.options();return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;rendered=D(!1);handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),W(()=>{let e=this.hideStrategy();this.isInitialMount?(k(this.$el,e),this.rendered.set(this.visible()&&this.mountOnEnter()||!this.mountOnEnter())):this.visible()&&!this.rendered()&&(k(this.$el,e),this.rendered.set(!0))}),W(()=>{this.motion||(this.motion=ge(this.$el,this.motionOptions()))}),ue(async()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),i=this.hideStrategy();this.visible()?(await Z(),ee(this.$el,i),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount||(await Z(),this.applyMotionDuration("leave"),this.motion?.leave()?.then(async()=>{this.$el&&!this.cancelled&&!this.visible()&&(k(this.$el,i),this.unmountOnLeave()&&(await Z(),this.cancelled||this.rendered.set(!1)))})),this.isInitialMount=!1})}applyMotionDuration(e){let i=b(this.motionOptions),r=J(i.duration,e);if(r==null||!this.$el)return;let s=this.$el,a=`${r}ms`;i.type==="transition"?s.style.transitionDuration=a:s.style.animationDuration=a}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,ee(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=q({type:t,selectors:[["p-motion"]],hostVars:2,hostBindings:function(i,r){i&2&&Ue(r.cx("root"))},inputs:{visible:[1,"visible"],mountOnEnter:[1,"mountOnEnter"],unmountOnLeave:[1,"unmountOnLeave"],name:[1,"name"],type:[1,"type"],safe:[1,"safe"],disabled:[1,"disabled"],appear:[1,"appear"],enter:[1,"enter"],leave:[1,"leave"],duration:[1,"duration"],hideStrategy:[1,"hideStrategy"],enterFromClass:[1,"enterFromClass"],enterToClass:[1,"enterToClass"],enterActiveClass:[1,"enterActiveClass"],leaveFromClass:[1,"leaveFromClass"],leaveToClass:[1,"leaveToClass"],leaveActiveClass:[1,"leaveActiveClass"],options:[1,"options"]},outputs:{onBeforeEnter:"onBeforeEnter",onEnter:"onEnter",onAfterEnter:"onAfterEnter",onEnterCancelled:"onEnterCancelled",onBeforeLeave:"onBeforeLeave",onLeave:"onLeave",onAfterLeave:"onAfterLeave",onLeaveCancelled:"onLeaveCancelled"},features:[N([ve,{provide:nt,useExisting:t},{provide:me,useExisting:t}]),Pe([X]),m],ngContentSelectors:jt,decls:1,vars:1,template:function(i,r){i&1&&(Ge(),Be(0,Gt,1,0)),i&2&&ke(r.rendered()?0:-1)},dependencies:[qe,Ke],encapsulation:2})}return t})(),it=new E("MOTION_DIRECTIVE_INSTANCE"),Rn=(()=>{class t extends L{$pcMotionDirective=I(it,{optional:!0,skipSelf:!0})??void 0;visible=o(!1,{alias:"pMotion"});name=o(void 0,{alias:"pMotionName"});type=o(void 0,{alias:"pMotionType"});safe=o(void 0,{alias:"pMotionSafe"});disabled=o(!1,{alias:"pMotionDisabled"});appear=o(!1,{alias:"pMotionAppear"});enter=o(!0,{alias:"pMotionEnter"});leave=o(!0,{alias:"pMotionLeave"});duration=o(void 0,{alias:"pMotionDuration"});hideStrategy=o("display",{alias:"pMotionHideStrategy"});enterFromClass=o(void 0,{alias:"pMotionEnterFromClass"});enterToClass=o(void 0,{alias:"pMotionEnterToClass"});enterActiveClass=o(void 0,{alias:"pMotionEnterActiveClass"});leaveFromClass=o(void 0,{alias:"pMotionLeaveFromClass"});leaveToClass=o(void 0,{alias:"pMotionLeaveToClass"});leaveActiveClass=o(void 0,{alias:"pMotionLeaveActiveClass"});options=o({},{alias:"pMotionOptions"});onBeforeEnter=u({alias:"pMotionOnBeforeEnter"});onEnter=u({alias:"pMotionOnEnter"});onAfterEnter=u({alias:"pMotionOnAfterEnter"});onEnterCancelled=u({alias:"pMotionOnEnterCancelled"});onBeforeLeave=u({alias:"pMotionOnBeforeLeave"});onLeave=u({alias:"pMotionOnLeave"});onAfterLeave=u({alias:"pMotionOnAfterLeave"});onLeaveCancelled=u({alias:"pMotionOnLeaveCancelled"});motionOptions=C(()=>{let e=this.options()??{};return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),W(()=>{this.motion||(this.motion=ge(this.$el,this.motionOptions()))}),ue(()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),i=this.hideStrategy();this.visible()?(ee(this.$el,i),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount?k(this.$el,i):(this.applyMotionDuration("leave"),this.motion?.leave()?.then(()=>{this.$el&&!this.cancelled&&!this.visible()&&k(this.$el,i)})),this.isInitialMount=!1})}applyMotionDuration(e){let i=b(this.motionOptions),r=J(i.duration,e);if(r==null||!this.$el)return;let s=this.$el,a=`${r}ms`;i.type==="transition"?s.style.transitionDuration=a:s.style.animationDuration=a}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,ee(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(i){return new(i||t)};static \u0275dir=_({type:t,selectors:[["","pMotion",""]],inputs:{visible:[1,"pMotion","visible"],name:[1,"pMotionName","name"],type:[1,"pMotionType","type"],safe:[1,"pMotionSafe","safe"],disabled:[1,"pMotionDisabled","disabled"],appear:[1,"pMotionAppear","appear"],enter:[1,"pMotionEnter","enter"],leave:[1,"pMotionLeave","leave"],duration:[1,"pMotionDuration","duration"],hideStrategy:[1,"pMotionHideStrategy","hideStrategy"],enterFromClass:[1,"pMotionEnterFromClass","enterFromClass"],enterToClass:[1,"pMotionEnterToClass","enterToClass"],enterActiveClass:[1,"pMotionEnterActiveClass","enterActiveClass"],leaveFromClass:[1,"pMotionLeaveFromClass","leaveFromClass"],leaveToClass:[1,"pMotionLeaveToClass","leaveToClass"],leaveActiveClass:[1,"pMotionLeaveActiveClass","leaveActiveClass"],options:[1,"pMotionOptions","options"]},outputs:{onBeforeEnter:"pMotionOnBeforeEnter",onEnter:"pMotionOnEnter",onAfterEnter:"pMotionOnAfterEnter",onEnterCancelled:"pMotionOnEnterCancelled",onBeforeLeave:"pMotionOnBeforeLeave",onLeave:"pMotionOnLeave",onAfterLeave:"pMotionOnAfterLeave",onLeaveCancelled:"pMotionOnLeaveCancelled"},features:[N([ve,{provide:it,useExisting:t},{provide:me,useExisting:t}]),m]})}return t})(),jn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=P({type:t});static \u0275inj=T({imports:[Ut]})}return t})();var ct=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(v(de),v(le))};static \u0275dir=_({type:t})}return t})(),Wt=(()=>{class t extends ct{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275dir=_({type:t,features:[m]})}return t})(),ht=new E("");var qt={provide:ht,useExisting:se(()=>ft),multi:!0};function zt(){let t=ce()?ce().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Zt=new E(""),ft=(()=>{class t extends ct{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!zt())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(v(de),v(le),v(Zt,8))};static \u0275dir=_({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&je("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[N([qt]),m]})}return t})();var Xt=new E(""),Yt=new E("");function pt(t){return t!=null}function mt(t){return Le(t)?Ne(t):t}function gt(t){let n={};return t.forEach(e=>{n=e!=null?p(p({},n),e):n}),Object.keys(n).length===0?null:n}function vt(t,n){return n.map(e=>e(t))}function Kt(t){return!t.validate}function yt(t){return t.map(n=>Kt(n)?n:e=>n.validate(e))}function Jt(t){if(!t)return null;let n=t.filter(pt);return n.length==0?null:function(e){return gt(vt(e,n))}}function _t(t){return t!=null?Jt(yt(t)):null}function Qt(t){if(!t)return null;let n=t.filter(pt);return n.length==0?null:function(e){let i=vt(e,n).map(mt);return Oe(i).pipe(Se(gt))}}function Ct(t){return t!=null?Qt(yt(t)):null}function rt(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function en(t){return t._rawValidators}function tn(t){return t._rawAsyncValidators}function ye(t){return t?Array.isArray(t)?t:[t]:[]}function ne(t,n){return Array.isArray(t)?t.includes(n):t===n}function ot(t,n){let e=ye(n);return ye(t).forEach(r=>{ne(e,r)||e.push(r)}),e}function st(t,n){return ye(n).filter(e=>!ne(t,e))}var ie=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Ct(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},_e=class extends ie{name;get formDirective(){return null}get path(){return null}},$=class extends ie{_parent=null;name=null;valueAccessor=null},Ce=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var ci=(()=>{class t extends Ce{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(v($,2))};static \u0275dir=_({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&$e("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[m]})}return t})();var R="VALID",te="INVALID",O="PENDING",j="DISABLED",w=class{},re=class extends w{value;source;constructor(n,e){super(),this.value=n,this.source=e}},G=class extends w{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},H=class extends w{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},x=class extends w{status;source;constructor(n,e){super(),this.status=n,this.source=e}};var De=class extends w{source;constructor(n){super(),this.source=n}};function nn(t){return(oe(t)?t.validators:t)||null}function rn(t){return Array.isArray(t)?_t(t):t||null}function on(t,n){return(oe(n)?n.asyncValidators:t)||null}function sn(t){return Array.isArray(t)?Ct(t):t||null}function oe(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Me=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return b(this.statusReactive)}set status(n){b(()=>this.statusReactive.set(n))}_status=C(()=>this.statusReactive());statusReactive=D(void 0);get valid(){return this.status===R}get invalid(){return this.status===te}get pending(){return this.status===O}get disabled(){return this.status===j}get enabled(){return this.status!==j}errors;get pristine(){return b(this.pristineReactive)}set pristine(n){b(()=>this.pristineReactive.set(n))}_pristine=C(()=>this.pristineReactive());pristineReactive=D(!0);get dirty(){return!this.pristine}get touched(){return b(this.touchedReactive)}set touched(n){b(()=>this.touchedReactive.set(n))}_touched=C(()=>this.touchedReactive());touchedReactive=D(!1);get untouched(){return!this.touched}_events=new Ie;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(ot(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(ot(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(st(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(st(n,this._rawAsyncValidators))}hasValidator(n){return ne(this._rawValidators,n)}hasAsyncValidator(n){return ne(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(A(p({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new H(!0,i))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),n.onlySelf||this._parent?._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new H(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(A(p({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new G(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new G(!0,i))}markAsPending(n={}){this.status=O;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new x(this.status,e)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(A(p({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=j,this.errors=null,this._forEachChild(r=>{r.disable(A(p({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new re(this.value,i)),this._events.next(new x(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(p({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=R,this._forEachChild(i=>{i.enable(A(p({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(A(p({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){n.onlySelf||(this._parent?.updateValueAndValidity(n),n.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===R||this.status===O)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new re(this.value,e)),this._events.next(new x(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(A(p({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?j:R}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=O,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=mt(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i?.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new x(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?j:this.errors?te:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(O)?O:this._anyControlsHaveStatus(te)?te:R}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,n.onlySelf||this._parent?._updatePristine(n,e),r&&this._events.next(new G(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new H(this.touched,e)),n.onlySelf||this._parent?._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){oe(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=rn(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=sn(this._rawAsyncValidators)}};var Dt=new E("",{factory:()=>be}),be="always";function an(t,n){return[...n.path,t]}function ln(t,n,e=be){un(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),cn(t,n),fn(t,n),hn(t,n),dn(t,n)}function at(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function dn(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function un(t,n){let e=en(t);n.validator!==null?t.setValidators(rt(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=tn(t);n.asyncValidator!==null?t.setAsyncValidators(rt(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();at(n._rawValidators,r),at(n._rawAsyncValidators,r)}function cn(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Mt(t,n)})}function hn(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Mt(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function Mt(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function fn(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function pn(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function mn(t){return Object.getPrototypeOf(t.constructor)===Wt}function gn(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(s=>{s.constructor===ft?e=s:mn(s)?i=s:r=s}),r||i||e||null}function lt(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function dt(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var vn=class extends Me{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(nn(e),on(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),oe(e)&&(e.nonNullable||e.initialValueIsDefault)&&(dt(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new De(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lt(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lt(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){dt(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var yn={provide:$,useExisting:se(()=>_n)},ut=Promise.resolve(),_n=(()=>{class t extends ${_changeDetectorRef;callSetDisabledState;control=new vn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,i,r,s,a,f){super(),this._changeDetectorRef=a,this.callSetDisabledState=f,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=gn(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pn(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ln(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){ut.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&S(i);ut.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?an(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(v(_e,9),v(Xt,10),v(Yt,10),v(ht,10),v(We,8),v(Dt,8))};static \u0275dir=_({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[N([yn]),m,Te]})}return t})();var Cn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=P({type:t});static \u0275inj=T({})}return t})();var fi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dt,useValue:e.callSetDisabledState??be}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=P({type:t});static \u0275inj=T({imports:[Cn]})}return t})();var bt=(()=>{class t extends L{modelValue=D(void 0);$filled=C(()=>Xe(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275dir=_({type:t,features:[m]})}return t})();var Vi=(()=>{class t extends bt{required=o(void 0,{transform:S});invalid=o(void 0,{transform:S});disabled=o(void 0,{transform:S});name=o();_disabled=D(!1);$disabled=C(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,i){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(t)))(r||t)}})();static \u0275dir=_({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[m]})}return t})();export{Mn as a,Ut as b,Rn as c,jn as d,ht as e,ft as f,$ as g,ci as h,_n as i,fi as j,bt as k,Vi as l};
|