@skill-map/cli 0.51.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cli/tutorial/sm-tutorial/SKILL.md +239 -1659
  2. package/dist/cli/tutorial/sm-tutorial/references/_core.md +332 -0
  3. package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +175 -0
  4. package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +251 -0
  5. package/dist/cli/tutorial/{sm-master/references/tour-authoring.md → sm-tutorial/references/part-authoring.md} +14 -15
  6. package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +267 -0
  7. package/dist/cli/tutorial/sm-tutorial/references/part-connect-harness.md +180 -0
  8. package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +424 -0
  9. package/dist/cli/tutorial/sm-tutorial/references/part-live-site.md +156 -0
  10. package/dist/cli/tutorial/sm-tutorial/references/part-maintain.md +286 -0
  11. package/dist/cli/tutorial/sm-tutorial/references/part-mcp.md +78 -0
  12. package/dist/cli/tutorial/{sm-master/references/tour-plugins.md → sm-tutorial/references/part-plugins.md} +11 -11
  13. package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +186 -0
  14. package/dist/cli/tutorial/{sm-master/references/tour-settings.md → sm-tutorial/references/part-settings.md} +22 -24
  15. package/dist/cli.js +1253 -564
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +335 -208
  18. package/dist/kernel/index.d.ts +320 -15
  19. package/dist/kernel/index.js +335 -208
  20. package/dist/migrations/001_initial.sql +36 -0
  21. package/dist/ui/chunk-EQ72PEHT.js +1 -0
  22. package/dist/ui/chunk-GBKHMJ4B.js +1110 -0
  23. package/dist/ui/chunk-GEI6INVH.js +515 -0
  24. package/dist/ui/chunk-JXRIGHET.js +552 -0
  25. package/dist/ui/{chunk-WQMZOINB.js → chunk-K2MAVAHG.js} +1 -1
  26. package/dist/ui/{chunk-BV323KTK.js → chunk-KHARMPTZ.js} +1 -1
  27. package/dist/ui/chunk-L4NIF75A.js +2 -0
  28. package/dist/ui/chunk-LCOYSPKE.js +1 -0
  29. package/dist/ui/chunk-OFDQMBSJ.js +1 -0
  30. package/dist/ui/chunk-P2DAPRK7.js +2 -0
  31. package/dist/ui/chunk-Q2A6FWC7.js +4 -0
  32. package/dist/ui/chunk-TXTY24G4.js +2204 -0
  33. package/dist/ui/chunk-UBQUCSQ4.js +1 -0
  34. package/dist/ui/chunk-WFLPMCK4.js +392 -0
  35. package/dist/ui/chunk-WHZVGOS3.js +5 -0
  36. package/dist/ui/chunk-YQFIXHKM.js +123 -0
  37. package/dist/ui/index.html +2 -2
  38. package/dist/ui/main-OYITFJ7B.js +4 -0
  39. package/dist/ui/{styles-RG7Y33BT.css → styles-Q4NCOJQY.css} +1 -1
  40. package/migrations/001_initial.sql +36 -0
  41. package/package.json +10 -8
  42. package/dist/cli/tutorial/sm-master/SKILL.md +0 -688
  43. package/dist/cli/tutorial/sm-master/references/fixture-templates.md +0 -212
  44. package/dist/ui/chunk-2GXE52AJ.js +0 -123
  45. package/dist/ui/chunk-AEA5GIA7.js +0 -1
  46. package/dist/ui/chunk-KHRNVLJW.js +0 -1
  47. package/dist/ui/chunk-OZTRR4M7.js +0 -2312
  48. package/dist/ui/chunk-Q5YJKCTP.js +0 -1066
  49. package/dist/ui/chunk-RCT3JSFL.js +0 -1
  50. package/dist/ui/chunk-VBTLX7GH.js +0 -1110
  51. package/dist/ui/chunk-VJ57LHDR.js +0 -4
  52. package/dist/ui/chunk-WMGW2UAL.js +0 -2
  53. package/dist/ui/main-N7D2YBEX.js +0 -4
@@ -0,0 +1,392 @@
1
+ import{f as it,g as lt,i as st,m as ct,n as dt,p as ut,q as mt,r as _t,s as ht}from"./chunk-JXRIGHET.js";import{A as he,B as et,M as tt,N as nt,O as ot,P as at,Q as pt,R as rt,a as ce,g as Qe,i as de,j as U,k as ue,l as me,o as Ue,p as je,r as We,s as Ze,t as Xe,u as _e,v as Ye,w as k,x as Je}from"./chunk-GBKHMJ4B.js";import{f as le,h as He,i as ae,j as Ge,k as pe,l as re}from"./chunk-LCOYSPKE.js";import{Q as Ee,T as H,U as G,V as Q,X as Me,u as se,v as D}from"./chunk-4SG4352Z.js";import{$a as _,Ab as O,Bb as V,Eb as v,Ec as y,Fa as De,Fb as Pe,Fc as R,Gb as f,Ha as s,Ib as l,J as ke,Jb as ze,K as W,Kb as Ke,L as xe,Lb as Y,Mb as Ne,N as Z,Nb as b,Ob as x,P as B,Qa as ve,Sb as j,Tb as Re,V as c,Vb as F,W as d,Wa as S,Wb as g,X as A,Xa as Ce,Xb as E,Yb as N,Za as X,Zb as Oe,_a as q,_b as $e,ac as J,ba as I,bc as ee,ca as Ae,cc as te,ga as $,gc as ne,hc as ie,ia as Le,ic as L,jb as h,jc as oe,ka as z,kc as Se,mb as Be,nb as Fe,pc as P,sb as p,sc as w,tb as u,tc as Ve,ub as m,uc as M,vb as K,wb as Ie,xb as we,yb as Te,yc as qe,zb as T}from"./chunk-Q2A6FWC7.js";import"./chunk-WCABR6TI.js";var Et=["data-p-icon","times-circle"],fe=(()=>{class n extends nt{pathId;onInit(){this.pathId="url(#"+ce()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(n)))(i||n)}})();static \u0275cmp=S({type:n,selectors:[["","data-p-icon","times-circle"]],features:[q],attrs:Et,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,i){t&1&&(A(),Ie(0,"g"),Te(1,"path",0),we(),Ie(2,"defs")(3,"clipPath",1),Te(4,"rect",2),we()()),t&2&&(h("clip-path",i.pathId),s(3),Pe("id",i.pathId))},encapsulation:2})}return n})();var gt=`
2
+ .p-chip {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ background: dt('chip.background');
6
+ color: dt('chip.color');
7
+ border-radius: dt('chip.border.radius');
8
+ padding-block: dt('chip.padding.y');
9
+ padding-inline: dt('chip.padding.x');
10
+ gap: dt('chip.gap');
11
+ }
12
+
13
+ .p-chip-icon {
14
+ color: dt('chip.icon.color');
15
+ font-size: dt('chip.icon.size');
16
+ width: dt('chip.icon.size');
17
+ height: dt('chip.icon.size');
18
+ }
19
+
20
+ .p-chip-image {
21
+ border-radius: 50%;
22
+ width: dt('chip.image.width');
23
+ height: dt('chip.image.height');
24
+ margin-inline-start: calc(-1 * dt('chip.padding.y'));
25
+ }
26
+
27
+ .p-chip:has(.p-chip-remove-icon) {
28
+ padding-inline-end: dt('chip.padding.y');
29
+ }
30
+
31
+ .p-chip:has(.p-chip-image) {
32
+ padding-block-start: calc(dt('chip.padding.y') / 2);
33
+ padding-block-end: calc(dt('chip.padding.y') / 2);
34
+ }
35
+
36
+ .p-chip-remove-icon {
37
+ cursor: pointer;
38
+ font-size: dt('chip.remove.icon.size');
39
+ width: dt('chip.remove.icon.size');
40
+ height: dt('chip.remove.icon.size');
41
+ color: dt('chip.remove.icon.color');
42
+ border-radius: 50%;
43
+ transition:
44
+ outline-color dt('chip.transition.duration'),
45
+ box-shadow dt('chip.transition.duration');
46
+ outline-color: transparent;
47
+ }
48
+
49
+ .p-chip-remove-icon:focus-visible {
50
+ box-shadow: dt('chip.remove.icon.focus.ring.shadow');
51
+ outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
52
+ outline-offset: dt('chip.remove.icon.focus.ring.offset');
53
+ }
54
+ `;var At=["removeicon"],Lt=["*"];function Dt(n,r){if(n&1){let e=v();u(0,"img",4),f("error",function(i){c(e);let o=l();return d(o.imageError(i))}),m()}if(n&2){let e=l();g(e.cx("image")),p("pBind",e.ptm("image"))("src",e.image,De)("alt",e.alt)}}function Bt(n,r){if(n&1&&K(0,"span",6),n&2){let e=l(2);g(e.icon),p("pBind",e.ptm("icon"))("ngClass",e.cx("icon"))}}function Ft(n,r){if(n&1&&_(0,Bt,1,4,"span",5),n&2){let e=l();p("ngIf",e.icon)}}function Pt(n,r){if(n&1&&(u(0,"div",7),E(1),m()),n&2){let e=l();g(e.cx("label")),p("pBind",e.ptm("label")),s(),N(e.label)}}function zt(n,r){if(n&1){let e=v();u(0,"span",11),f("click",function(i){c(e);let o=l(3);return d(o.close(i))})("keydown",function(i){c(e);let o=l(3);return d(o.onKeydown(i))}),m()}if(n&2){let e=l(3);g(e.removeIcon),p("pBind",e.ptm("removeIcon"))("ngClass",e.cx("removeIcon")),h("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function Kt(n,r){if(n&1){let e=v();A(),u(0,"svg",12),f("click",function(i){c(e);let o=l(3);return d(o.close(i))})("keydown",function(i){c(e);let o=l(3);return d(o.onKeydown(i))}),m()}if(n&2){let e=l(3);g(e.cx("removeIcon")),p("pBind",e.ptm("removeIcon")),h("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function Nt(n,r){if(n&1&&(T(0),_(1,zt,1,6,"span",9)(2,Kt,1,5,"svg",10),O()),n&2){let e=l(2);s(),p("ngIf",e.removeIcon),s(),p("ngIf",!e.removeIcon)}}function Rt(n,r){}function $t(n,r){n&1&&_(0,Rt,0,0,"ng-template")}function qt(n,r){if(n&1){let e=v();u(0,"span",13),f("click",function(i){c(e);let o=l(2);return d(o.close(i))})("keydown",function(i){c(e);let o=l(2);return d(o.onKeydown(i))}),_(1,$t,1,0,null,14),m()}if(n&2){let e=l(2);g(e.cx("removeIcon")),p("pBind",e.ptm("removeIcon")),h("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel),s(),p("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function Ht(n,r){if(n&1&&(T(0),_(1,Nt,3,2,"ng-container",3)(2,qt,2,6,"span",8),O()),n&2){let e=l();s(),p("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),s(),p("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var Gt={root:({instance:n})=>({display:!n.visible&&"none"})},Qt={root:({instance:n})=>["p-chip p-component",{"p-disabled":n.disabled}],image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},ft=(()=>{class n extends me{name="chip";style=gt;classes=Qt;inlineStyles=Gt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(n)))(i||n)}})();static \u0275prov=W({token:n,factory:n.\u0275fac})}return n})();var yt=new Z("CHIP_INSTANCE"),bt=(()=>{class n extends Ye{componentName="Chip";$pcChip=B(yt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=B(k,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new I;onImageError=new I;visible=!0;get removeAriaLabel(){return this.config.getTranslation(ue.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([t,i])=>this[`_${t}`]!==i&&(this[`_${t}`]=i))}_chipProps;_componentStyle=B(ft);removeIconTemplate;templates;_removeIconTemplate;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="removeicon"?this._removeIconTemplate=e.template:this._removeIconTemplate=e.template})}onChanges(e){if(e.chipProps&&e.chipProps.currentValue){let{currentValue:t}=e.chipProps;t.label!==void 0&&(this.label=t.label),t.icon!==void 0&&(this.icon=t.icon),t.image!==void 0&&(this.image=t.image),t.alt!==void 0&&(this.alt=t.alt),t.styleClass!==void 0&&(this.styleClass=t.styleClass),t.removable!==void 0&&(this.removable=t.removable),t.removeIcon!==void 0&&(this.removeIcon=t.removeIcon)}}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}get dataP(){return this.cn({removable:this.removable})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(n)))(i||n)}})();static \u0275cmp=S({type:n,selectors:[["p-chip"]],contentQueries:function(t,i,o){if(t&1&&Y(o,At,4)(o,de,4),t&2){let a;b(a=x())&&(i.removeIconTemplate=a.first),b(a=x())&&(i.templates=a)}},hostVars:6,hostBindings:function(t,i){t&2&&(h("aria-label",i.label)("data-p",i.dataP),F(i.sx("root")),g(i.cn(i.cx("root"),i.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",y],removable:[2,"removable","removable",y],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[ne([ft,{provide:yt,useExisting:n},{provide:_e,useExisting:n}]),X([k]),q],ngContentSelectors:Lt,decls:6,vars:4,consts:[["iconTemplate",""],[3,"pBind","class","src","alt","error",4,"ngIf","ngIfElse"],[3,"pBind","class",4,"ngIf"],[4,"ngIf"],[3,"error","pBind","src","alt"],[3,"pBind","class","ngClass",4,"ngIf"],[3,"pBind","ngClass"],[3,"pBind"],["role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"pBind","class","ngClass","click","keydown",4,"ngIf"],["data-p-icon","times-circle","role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"click","keydown","pBind","ngClass"],["data-p-icon","times-circle","role","button",3,"click","keydown","pBind"],["role","button",3,"click","keydown","pBind"],[4,"ngTemplateOutlet"]],template:function(t,i){if(t&1&&(ze(),Ke(0),_(1,Dt,1,5,"img",1)(2,Ft,1,1,"ng-template",null,0,P)(4,Pt,2,4,"div",2)(5,Ht,3,2,"ng-container",3)),t&2){let o=j(3);s(),p("ngIf",i.image)("ngIfElse",o),s(3),p("ngIf",i.label),s(),p("ngIf",i.removable)}},dependencies:[re,le,ae,pe,fe,U,k],encapsulation:2,changeDetection:0})}return n})();var xt=`
55
+ .p-autocomplete {
56
+ display: inline-flex;
57
+ }
58
+
59
+ .p-autocomplete-loader {
60
+ position: absolute;
61
+ top: 50%;
62
+ margin-top: -0.5rem;
63
+ inset-inline-end: dt('autocomplete.padding.x');
64
+ }
65
+
66
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-loader {
67
+ inset-inline-end: calc(dt('autocomplete.dropdown.width') + dt('autocomplete.padding.x'));
68
+ }
69
+
70
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input {
71
+ flex: 1 1 auto;
72
+ width: 1%;
73
+ }
74
+
75
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input,
76
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input-multiple {
77
+ border-start-end-radius: 0;
78
+ border-end-end-radius: 0;
79
+ }
80
+
81
+ .p-autocomplete-dropdown {
82
+ cursor: pointer;
83
+ display: inline-flex;
84
+ user-select: none;
85
+ align-items: center;
86
+ justify-content: center;
87
+ overflow: hidden;
88
+ position: relative;
89
+ width: dt('autocomplete.dropdown.width');
90
+ border-start-end-radius: dt('autocomplete.dropdown.border.radius');
91
+ border-end-end-radius: dt('autocomplete.dropdown.border.radius');
92
+ background: dt('autocomplete.dropdown.background');
93
+ border: 1px solid dt('autocomplete.dropdown.border.color');
94
+ border-inline-start: 0 none;
95
+ color: dt('autocomplete.dropdown.color');
96
+ transition:
97
+ background dt('autocomplete.transition.duration'),
98
+ color dt('autocomplete.transition.duration'),
99
+ border-color dt('autocomplete.transition.duration'),
100
+ outline-color dt('autocomplete.transition.duration'),
101
+ box-shadow dt('autocomplete.transition.duration');
102
+ outline-color: transparent;
103
+ }
104
+
105
+ .p-autocomplete-dropdown:not(:disabled):hover {
106
+ background: dt('autocomplete.dropdown.hover.background');
107
+ border-color: dt('autocomplete.dropdown.hover.border.color');
108
+ color: dt('autocomplete.dropdown.hover.color');
109
+ }
110
+
111
+ .p-autocomplete-dropdown:not(:disabled):active {
112
+ background: dt('autocomplete.dropdown.active.background');
113
+ border-color: dt('autocomplete.dropdown.active.border.color');
114
+ color: dt('autocomplete.dropdown.active.color');
115
+ }
116
+
117
+ .p-autocomplete-dropdown:focus-visible {
118
+ box-shadow: dt('autocomplete.dropdown.focus.ring.shadow');
119
+ outline: dt('autocomplete.dropdown.focus.ring.width') dt('autocomplete.dropdown.focus.ring.style') dt('autocomplete.dropdown.focus.ring.color');
120
+ outline-offset: dt('autocomplete.dropdown.focus.ring.offset');
121
+ }
122
+
123
+ .p-autocomplete-overlay {
124
+ position: absolute;
125
+ top: 0;
126
+ left: 0;
127
+ background: dt('autocomplete.overlay.background');
128
+ color: dt('autocomplete.overlay.color');
129
+ border: 1px solid dt('autocomplete.overlay.border.color');
130
+ border-radius: dt('autocomplete.overlay.border.radius');
131
+ box-shadow: dt('autocomplete.overlay.shadow');
132
+ min-width: 100%;
133
+ }
134
+
135
+ .p-autocomplete-list-container {
136
+ overflow: auto;
137
+ }
138
+
139
+ .p-autocomplete-list {
140
+ margin: 0;
141
+ list-style-type: none;
142
+ display: flex;
143
+ flex-direction: column;
144
+ gap: dt('autocomplete.list.gap');
145
+ padding: dt('autocomplete.list.padding');
146
+ }
147
+
148
+ .p-autocomplete-option {
149
+ cursor: pointer;
150
+ white-space: nowrap;
151
+ position: relative;
152
+ overflow: hidden;
153
+ display: flex;
154
+ align-items: center;
155
+ padding: dt('autocomplete.option.padding');
156
+ border: 0 none;
157
+ color: dt('autocomplete.option.color');
158
+ background: transparent;
159
+ transition:
160
+ background dt('autocomplete.transition.duration'),
161
+ color dt('autocomplete.transition.duration'),
162
+ border-color dt('autocomplete.transition.duration');
163
+ border-radius: dt('autocomplete.option.border.radius');
164
+ }
165
+
166
+ .p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled).p-focus {
167
+ background: dt('autocomplete.option.focus.background');
168
+ color: dt('autocomplete.option.focus.color');
169
+ }
170
+
171
+ .p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled):hover {
172
+ background: dt('autocomplete.option.focus.background');
173
+ color: dt('autocomplete.option.focus.color');
174
+ }
175
+
176
+ .p-autocomplete-option-selected {
177
+ background: dt('autocomplete.option.selected.background');
178
+ color: dt('autocomplete.option.selected.color');
179
+ }
180
+
181
+ .p-autocomplete-option-selected.p-focus {
182
+ background: dt('autocomplete.option.selected.focus.background');
183
+ color: dt('autocomplete.option.selected.focus.color');
184
+ }
185
+
186
+ .p-autocomplete-option-group {
187
+ margin: 0;
188
+ padding: dt('autocomplete.option.group.padding');
189
+ color: dt('autocomplete.option.group.color');
190
+ background: dt('autocomplete.option.group.background');
191
+ font-weight: dt('autocomplete.option.group.font.weight');
192
+ }
193
+
194
+ .p-autocomplete-input-multiple {
195
+ margin: 0;
196
+ list-style-type: none;
197
+ cursor: text;
198
+ overflow: hidden;
199
+ display: flex;
200
+ align-items: center;
201
+ flex-wrap: wrap;
202
+ padding: calc(dt('autocomplete.padding.y') / 2) dt('autocomplete.padding.x');
203
+ gap: calc(dt('autocomplete.padding.y') / 2);
204
+ color: dt('autocomplete.color');
205
+ background: dt('autocomplete.background');
206
+ border: 1px solid dt('autocomplete.border.color');
207
+ border-radius: dt('autocomplete.border.radius');
208
+ width: 100%;
209
+ transition:
210
+ background dt('autocomplete.transition.duration'),
211
+ color dt('autocomplete.transition.duration'),
212
+ border-color dt('autocomplete.transition.duration'),
213
+ outline-color dt('autocomplete.transition.duration'),
214
+ box-shadow dt('autocomplete.transition.duration');
215
+ outline-color: transparent;
216
+ box-shadow: dt('autocomplete.shadow');
217
+ }
218
+
219
+ .p-autocomplete-input-multiple.p-disabled {
220
+ opacity: 1;
221
+ background: dt('autocomplete.disabled.background');
222
+ color: dt('autocomplete.disabled.color');
223
+ }
224
+
225
+ .p-autocomplete-input-multiple:not(.p-disabled):hover {
226
+ border-color: dt('autocomplete.hover.border.color');
227
+ }
228
+
229
+ .p-autocomplete.p-focus .p-autocomplete-input-multiple:not(.p-disabled) {
230
+ border-color: dt('autocomplete.focus.border.color');
231
+ box-shadow: dt('autocomplete.focus.ring.shadow');
232
+ outline: dt('autocomplete.focus.ring.width') dt('autocomplete.focus.ring.style') dt('autocomplete.focus.ring.color');
233
+ outline-offset: dt('autocomplete.focus.ring.offset');
234
+ }
235
+
236
+ .p-autocomplete.p-invalid .p-autocomplete-input-multiple {
237
+ border-color: dt('autocomplete.invalid.border.color');
238
+ }
239
+
240
+ .p-variant-filled.p-autocomplete-input-multiple {
241
+ background: dt('autocomplete.filled.background');
242
+ }
243
+
244
+ .p-autocomplete-input-multiple.p-variant-filled:not(.p-disabled):hover {
245
+ background: dt('autocomplete.filled.hover.background');
246
+ }
247
+
248
+ .p-autocomplete.p-focus .p-autocomplete-input-multiple.p-variant-filled:not(.p-disabled) {
249
+ background: dt('autocomplete.filled.focus.background');
250
+ }
251
+
252
+ .p-autocomplete-chip.p-chip {
253
+ padding-block-start: calc(dt('autocomplete.padding.y') / 2);
254
+ padding-block-end: calc(dt('autocomplete.padding.y') / 2);
255
+ border-radius: dt('autocomplete.chip.border.radius');
256
+ }
257
+
258
+ .p-autocomplete-input-multiple:has(.p-autocomplete-chip) {
259
+ padding-inline-start: calc(dt('autocomplete.padding.y') / 2);
260
+ padding-inline-end: calc(dt('autocomplete.padding.y') / 2);
261
+ }
262
+
263
+ .p-autocomplete-chip-item.p-focus .p-autocomplete-chip {
264
+ background: dt('autocomplete.chip.focus.background');
265
+ color: dt('autocomplete.chip.focus.color');
266
+ }
267
+
268
+ .p-autocomplete-input-chip {
269
+ flex: 1 1 auto;
270
+ display: inline-flex;
271
+ padding-block-start: calc(dt('autocomplete.padding.y') / 2);
272
+ padding-block-end: calc(dt('autocomplete.padding.y') / 2);
273
+ }
274
+
275
+ .p-autocomplete-input-chip input {
276
+ border: 0 none;
277
+ outline: 0 none;
278
+ background: transparent;
279
+ margin: 0;
280
+ padding: 0;
281
+ box-shadow: none;
282
+ border-radius: 0;
283
+ width: 100%;
284
+ font-family: inherit;
285
+ font-feature-settings: inherit;
286
+ font-size: 1rem;
287
+ color: inherit;
288
+ }
289
+
290
+ .p-autocomplete-input-chip input::placeholder {
291
+ color: dt('autocomplete.placeholder.color');
292
+ }
293
+
294
+ .p-autocomplete.p-invalid .p-autocomplete-input-chip input::placeholder {
295
+ color: dt('autocomplete.invalid.placeholder.color');
296
+ }
297
+
298
+ .p-autocomplete-empty-message {
299
+ padding: dt('autocomplete.empty.message.padding');
300
+ }
301
+
302
+ .p-autocomplete-fluid {
303
+ display: flex;
304
+ }
305
+
306
+ .p-autocomplete-fluid:has(.p-autocomplete-dropdown) .p-autocomplete-input {
307
+ width: 1%;
308
+ }
309
+
310
+ .p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown {
311
+ width: dt('autocomplete.dropdown.sm.width');
312
+ }
313
+
314
+ .p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown .p-icon {
315
+ font-size: dt('form.field.sm.font.size');
316
+ width: dt('form.field.sm.font.size');
317
+ height: dt('form.field.sm.font.size');
318
+ }
319
+
320
+ .p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown {
321
+ width: dt('autocomplete.dropdown.lg.width');
322
+ }
323
+
324
+ .p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown .p-icon {
325
+ font-size: dt('form.field.lg.font.size');
326
+ width: dt('form.field.lg.font.size');
327
+ height: dt('form.field.lg.font.size');
328
+ }
329
+
330
+ .p-autocomplete-clear-icon {
331
+ position: absolute;
332
+ top: 50%;
333
+ margin-top: -0.5rem;
334
+ cursor: pointer;
335
+ color: dt('form.field.icon.color');
336
+ inset-inline-end: dt('autocomplete.padding.x');
337
+ }
338
+
339
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {
340
+ inset-inline-end: calc(dt('autocomplete.padding.x') + dt('autocomplete.dropdown.width'));
341
+ }
342
+
343
+ .p-autocomplete:has(.p-autocomplete-clear-icon) .p-autocomplete-input {
344
+ padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
345
+ }
346
+
347
+ .p-inputgroup .p-autocomplete-dropdown {
348
+ border-radius: 0;
349
+ }
350
+
351
+ .p-inputgroup > .p-autocomplete:last-child:has(.p-autocomplete-dropdown) > .p-autocomplete-input {
352
+ border-start-end-radius: 0;
353
+ border-end-end-radius: 0;
354
+ }
355
+
356
+ .p-inputgroup > .p-autocomplete:last-child .p-autocomplete-dropdown {
357
+ border-start-end-radius: dt('autocomplete.dropdown.border.radius');
358
+ border-end-end-radius: dt('autocomplete.dropdown.border.radius');
359
+ }
360
+ `;var Ut=["item"],jt=["empty"],Wt=["header"],Zt=["footer"],Xt=["selecteditem"],Yt=["group"],Jt=["loader"],en=["removeicon"],tn=["loadingicon"],nn=["clearicon"],on=["dropdownicon"],ln=["focusInput"],an=["multiIn"],pn=["multiContainer"],rn=["ddBtn"],sn=["items"],cn=["scroller"],dn=["overlay"],un=n=>({i:n}),It=n=>({$implicit:n}),mn=(n,r,e)=>({removeCallback:n,index:r,class:e}),ye=n=>({height:n}),wt=(n,r)=>({$implicit:n,options:r}),_n=n=>({options:n}),hn=()=>({}),gn=(n,r,e)=>({option:n,i:r,scrollerOptions:e}),fn=(n,r)=>({$implicit:n,index:r});function yn(n,r){if(n&1){let e=v();u(0,"input",18,2),f("input",function(i){c(e);let o=l();return d(o.onInput(i))})("keydown",function(i){c(e);let o=l();return d(o.onKeyDown(i))})("change",function(i){c(e);let o=l();return d(o.onInputChange(i))})("focus",function(i){c(e);let o=l();return d(o.onInputFocus(i))})("blur",function(i){c(e);let o=l();return d(o.onInputBlur(i))})("paste",function(i){c(e);let o=l();return d(o.onInputPaste(i))})("keyup",function(i){c(e);let o=l();return d(o.onInputKeyUp(i))}),m()}if(n&2){let e=l();g(e.cn(e.cx("pcInputText"),e.inputStyleClass)),p("pAutoFocus",e.autofocus)("pt",e.ptm("pcInputText"))("ngStyle",e.inputStyle)("variant",e.$variant())("invalid",e.invalid())("pSize",e.size())("fluid",e.hasFluid)("pInputTextUnstyled",e.unstyled()),h("type",e.type)("value",e.inputValue())("id",e.inputId)("autocomplete",e.autocomplete)("placeholder",e.placeholder)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("tabindex",e.$disabled()?-1:e.tabindex)("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required())("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.id+"_list":null)("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function bn(n,r){if(n&1){let e=v();A(),u(0,"svg",21),f("click",function(){c(e);let i=l(2);return d(i.clear())}),m()}if(n&2){let e=l(2);g(e.cx("clearIcon")),p("pBind",e.ptm("clearIcon")),h("aria-hidden",!0)}}function xn(n,r){}function vn(n,r){n&1&&_(0,xn,0,0,"ng-template")}function Cn(n,r){if(n&1){let e=v();u(0,"span",22),f("click",function(){c(e);let i=l(2);return d(i.clear())}),_(1,vn,1,0,null,23),m()}if(n&2){let e=l(2);g(e.cx("clearIcon")),p("pBind",e.ptm("clearIcon")),h("aria-hidden",!0),s(),p("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function In(n,r){if(n&1&&(T(0),_(1,bn,1,4,"svg",19)(2,Cn,2,5,"span",20),O()),n&2){let e=l();s(),p("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),s(),p("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function wn(n,r){n&1&&V(0)}function Tn(n,r){if(n&1){let e=v();u(0,"span",22),f("click",function(i){c(e);let o=l(2).index,a=l(2);return d(!a.readonly&&!a.$disabled()?a.removeOption(i,o):"")}),A(),K(1,"svg",31),m()}if(n&2){let e=l(4);g(e.cx("chipIcon")),p("pBind",e.ptm("chipIcon")),s(),g(e.cx("chipIcon")),h("aria-hidden",!0)}}function On(n,r){}function Sn(n,r){n&1&&_(0,On,0,0,"ng-template")}function Vn(n,r){if(n&1&&(u(0,"span",32),_(1,Sn,1,0,null,29),m()),n&2){let e=l(2).index,t=l(2);p("pBind",t.ptm("chipIcon")),h("aria-hidden",!0),s(),p("ngTemplateOutlet",t.removeIconTemplate||t._removeIconTemplate)("ngTemplateOutletContext",Se(4,mn,t.removeOption.bind(t),e,t.cx("chipIcon")))}}function En(n,r){if(n&1&&_(0,Tn,2,6,"span",20)(1,Vn,2,8,"span",30),n&2){let e=l(3);p("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),s(),p("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}function Mn(n,r){if(n&1){let e=v();u(0,"li",26,5)(2,"p-chip",28),f("onRemove",function(i){let o=c(e).index,a=l(2);return d(a.readonly?"":a.removeOption(i,o))}),_(3,wn,1,0,"ng-container",29)(4,En,2,2,"ng-template",null,6,P),m()()}if(n&2){let e=r.$implicit,t=r.index,i=l(2);g(i.cx("chipItem",L(17,un,t))),p("pBind",i.ptm("chipItem")),h("id",i.id+"_multiple_option_"+t)("aria-label",i.getOptionLabel(e))("aria-setsize",i.modelValue().length)("aria-posinset",t+1)("aria-selected",!0),s(2),g(i.cx("pcChip")),p("pt",i.ptm("pcChip"))("label",!i.selectedItemTemplate&&!i._selectedItemTemplate&&i.getOptionLabel(e))("disabled",i.$disabled())("removable",!0)("unstyled",i.unstyled()),s(),p("ngTemplateOutlet",i.selectedItemTemplate||i._selectedItemTemplate)("ngTemplateOutletContext",L(19,It,e))}}function kn(n,r){if(n&1){let e=v();u(0,"ul",24,3),f("focus",function(i){c(e);let o=l();return d(o.onMultipleContainerFocus(i))})("blur",function(i){c(e);let o=l();return d(o.onMultipleContainerBlur(i))})("keydown",function(i){c(e);let o=l();return d(o.onMultipleContainerKeyDown(i))}),_(2,Mn,6,21,"li",25),u(3,"li",26)(4,"input",27,4),f("input",function(i){c(e);let o=l();return d(o.onInput(i))})("keydown",function(i){c(e);let o=l();return d(o.onKeyDown(i))})("change",function(i){c(e);let o=l();return d(o.onInputChange(i))})("focus",function(i){c(e);let o=l();return d(o.onInputFocus(i))})("blur",function(i){c(e);let o=l();return d(o.onInputBlur(i))})("paste",function(i){c(e);let o=l();return d(o.onInputPaste(i))})("keyup",function(i){c(e);let o=l();return d(o.onInputKeyUp(i))}),m()()()}if(n&2){let e=l();g(e.cx("inputMultiple")),p("pBind",e.ptm("inputMultiple"))("tabindex",-1),h("data-p",e.inputMultipleDataP)("aria-orientation","horizontal")("aria-activedescendant",e.focused?e.focusedMultipleOptionId:void 0),s(2),p("ngForOf",e.modelValue()),s(),g(e.cx("inputChip")),p("pBind",e.ptm("inputChip")),s(),g(e.cx("pcInputText")),p("pAutoFocus",e.autofocus)("pBind",e.ptm("input"))("ngStyle",e.inputStyle),h("type",e.type)("id",e.inputId)("autocomplete",e.autocomplete)("name",e.name())("minlength",e.minlength())("maxlength",e.maxlength())("size",e.size())("min",e.min())("max",e.max())("pattern",e.pattern())("placeholder",e.$filled()?null:e.placeholder)("tabindex",e.$disabled()?-1:e.tabindex)("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required())("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.id+"_list":null)("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function An(n,r){if(n&1&&(A(),K(0,"svg",35)),n&2){let e=l(2);g(e.cx("loader")),p("pBind",e.ptm("loader"))("spin",!0),h("aria-hidden",!0)}}function Ln(n,r){}function Dn(n,r){n&1&&_(0,Ln,0,0,"ng-template")}function Bn(n,r){if(n&1&&(u(0,"span",32),_(1,Dn,1,0,null,23),m()),n&2){let e=l(2);g(e.cx("loader")),p("pBind",e.ptm("loader")),h("aria-hidden",!0),s(),p("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Fn(n,r){if(n&1&&(T(0),_(1,An,1,5,"svg",33)(2,Bn,2,5,"span",34),O()),n&2){let e=l();s(),p("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),p("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Pn(n,r){if(n&1&&K(0,"span",38),n&2){let e=l(2);p("ngClass",e.dropdownIcon),h("aria-hidden",!0)}}function zn(n,r){if(n&1&&(A(),K(0,"svg",40)),n&2){let e=l(3);p("pBind",e.ptm("dropdown"))}}function Kn(n,r){}function Nn(n,r){n&1&&_(0,Kn,0,0,"ng-template")}function Rn(n,r){if(n&1&&(T(0),_(1,zn,1,1,"svg",39)(2,Nn,1,0,null,23),O()),n&2){let e=l(2);s(),p("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),s(),p("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function $n(n,r){if(n&1){let e=v();u(0,"button",36,7),f("click",function(i){c(e);let o=l();return d(o.handleDropdownClick(i))}),_(2,Pn,1,2,"span",37)(3,Rn,3,2,"ng-container",14),m()}if(n&2){let e=l();g(e.cx("dropdown")),p("pBind",e.ptm("dropdown"))("disabled",e.$disabled()),h("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),s(2),p("ngIf",e.dropdownIcon),s(),p("ngIf",!e.dropdownIcon)}}function qn(n,r){n&1&&V(0)}function Hn(n,r){n&1&&V(0)}function Gn(n,r){if(n&1&&_(0,Hn,1,0,"ng-container",29),n&2){let e=r.$implicit,t=r.options;l(2);let i=j(6);p("ngTemplateOutlet",i)("ngTemplateOutletContext",oe(2,wt,e,t))}}function Qn(n,r){n&1&&V(0)}function Un(n,r){if(n&1&&_(0,Qn,1,0,"ng-container",29),n&2){let e=r.options,t=l(4);p("ngTemplateOutlet",t.loaderTemplate||t._loaderTemplate)("ngTemplateOutletContext",L(2,_n,e))}}function jn(n,r){n&1&&(T(0),_(1,Un,1,4,"ng-template",null,10,P),O())}function Wn(n,r){if(n&1){let e=v();u(0,"p-scroller",45,9),f("onLazyLoad",function(i){c(e);let o=l(2);return d(o.onLazyLoad.emit(i))}),_(2,Gn,1,5,"ng-template",null,1,P)(4,jn,3,0,"ng-container",14),m()}if(n&2){let e=l(2);F(L(10,ye,e.scrollHeight)),p("tabindex",-1)("pt",e.ptm("virtualScroller"))("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),s(4),p("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Zn(n,r){n&1&&V(0)}function Xn(n,r){if(n&1&&(T(0),_(1,Zn,1,0,"ng-container",29),O()),n&2){l();let e=j(6),t=l();s(),p("ngTemplateOutlet",e)("ngTemplateOutletContext",oe(3,wt,t.visibleOptions(),ie(2,hn)))}}function Yn(n,r){if(n&1&&(u(0,"span"),E(1),m()),n&2){let e=l(2).$implicit,t=l(3);s(),N(t.getOptionGroupLabel(e.optionGroup))}}function Jn(n,r){n&1&&V(0)}function ei(n,r){if(n&1&&(T(0),u(1,"li",49),_(2,Yn,2,1,"span",14)(3,Jn,1,0,"ng-container",29),m(),O()),n&2){let e=l(),t=e.$implicit,i=e.index,o=l().options,a=l(2);s(),g(a.cx("optionGroup")),p("pBind",a.ptm("optionGroup"))("ngStyle",L(8,ye,o.itemSize+"px")),h("id",a.id+"_"+a.getOptionIndex(i,o)),s(),p("ngIf",!a.groupTemplate),s(),p("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",L(10,It,t.optionGroup))}}function ti(n,r){if(n&1&&(u(0,"span"),E(1),m()),n&2){let e=l(2).$implicit,t=l(3);s(),N(t.getOptionLabel(e))}}function ni(n,r){n&1&&V(0)}function ii(n,r){if(n&1){let e=v();T(0),u(1,"li",50),f("click",function(i){c(e);let o=l().$implicit,a=l(3);return d(a.onOptionSelect(i,o))})("mouseenter",function(i){c(e);let o=l().index,a=l().options,C=l(2);return d(C.onOptionMouseEnter(i,C.getOptionIndex(o,a)))}),_(2,ti,2,1,"span",14)(3,ni,1,0,"ng-container",29),m(),O()}if(n&2){let e=l(),t=e.$implicit,i=e.index,o=l().options,a=l(2);s(),g(a.cx("option",Se(15,gn,t,i,o))),p("pBind",a.getPTOptions(t,o,i,"option"))("ngStyle",L(19,ye,o.itemSize+"px")),h("id",a.id+"_"+a.getOptionIndex(i,o))("aria-label",a.getOptionLabel(t))("aria-selected",a.isSelected(t))("data-p-selected",a.isSelected(t))("aria-disabled",a.isOptionDisabled(t))("data-p-focused",a.focusedOptionIndex()===a.getOptionIndex(i,o))("aria-setsize",a.ariaSetSize)("aria-posinset",a.getAriaPosInset(a.getOptionIndex(i,o))),s(),p("ngIf",!a.itemTemplate&&!a._itemTemplate),s(),p("ngTemplateOutlet",a.itemTemplate||a._itemTemplate)("ngTemplateOutletContext",oe(21,fn,t,o.getOptions?o.getOptions(i):i))}}function oi(n,r){if(n&1&&_(0,ei,4,12,"ng-container",14)(1,ii,4,24,"ng-container",14),n&2){let e=r.$implicit,t=l(3);p("ngIf",t.isOptionGroup(e)),s(),p("ngIf",!t.isOptionGroup(e))}}function li(n,r){if(n&1&&(T(0),E(1),O()),n&2){let e=l(4);s(),Oe(" ",e.searchResultMessageText," ")}}function ai(n,r){n&1&&V(0,null,12)}function pi(n,r){if(n&1&&(u(0,"li",49),_(1,li,2,1,"ng-container",51)(2,ai,2,0,"ng-container",23),m()),n&2){let e=l().options,t=l(2);g(t.cx("emptyMessage")),p("pBind",t.ptm("emptyMessage"))("ngStyle",L(7,ye,e.itemSize+"px")),s(),p("ngIf",!t.emptyTemplate&&!t._emptyTemplate)("ngIfElse",t.empty),s(),p("ngTemplateOutlet",t.emptyTemplate||t._emptyTemplate)}}function ri(n,r){if(n&1&&(u(0,"ul",46,11),_(2,oi,2,2,"ng-template",47)(3,pi,3,9,"li",48),m()),n&2){let e=r.$implicit,t=r.options,i=l(2);F(t.contentStyle),g(i.cn(i.cx("list"),t.contentStyleClass)),p("pBind",i.ptm("list")),h("id",i.id+"_list")("aria-label",i.listLabel),s(2),p("ngForOf",e),s(),p("ngIf",!e||e&&e.length===0&&i.showEmptyMessage)}}function si(n,r){n&1&&V(0)}function ci(n,r){if(n&1&&(u(0,"div",41),_(1,qn,1,0,"ng-container",23),u(2,"div",42),_(3,Wn,5,12,"p-scroller",43)(4,Xn,2,6,"ng-container",14),m(),_(5,ri,4,9,"ng-template",null,8,P)(7,si,1,0,"ng-container",23),m(),u(8,"span",44),E(9),m()),n&2){let e=l();g(e.cn(e.cx("overlay"),e.panelStyleClass)),p("pBind",e.ptm("overlay"))("ngStyle",e.panelStyle),s(),p("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),g(e.cx("listContainer")),Re("max-height",e.virtualScroll?"auto":e.scrollHeight),p("pBind",e.ptm("listContainer"))("tabindex",-1),s(),p("ngIf",e.virtualScroll),s(),p("ngIf",!e.virtualScroll),s(3),p("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),s(2),Oe(" ",e.selectedMessageText," ")}}var di=`
361
+ ${xt}
362
+
363
+ /* For PrimeNG */
364
+ p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input,
365
+ p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple,
366
+ p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input,
367
+ p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-multiple p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input,
368
+ p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple {
369
+ border-color: dt('autocomplete.invalid.border.color');
370
+ }
371
+
372
+ p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
373
+ p-autoComplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
374
+ p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
375
+ p-auto-complete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
376
+ p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
377
+ p-autocomplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple {
378
+ border-color: dt('autocomplete.focus.border.color');
379
+ }
380
+
381
+ p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
382
+ p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
383
+ p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder {
384
+ color: dt('autocomplete.invalid.placeholder.color');
385
+ }
386
+
387
+ p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
388
+ p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
389
+ p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder {
390
+ color: dt('autocomplete.invalid.placeholder.color');
391
+ }
392
+ `,ui={root:{position:"relative"}},mi={root:({instance:n})=>["p-autocomplete p-component p-inputwrapper",{"p-invalid":n.invalid(),"p-focus":n.focused,"p-inputwrapper-filled":n.$filled(),"p-inputwrapper-focus":n.focused&&!n.$disabled()||n.autofocus||n.overlayVisible,"p-autocomplete-open":n.overlayVisible,"p-autocomplete-clearable":n.showClear&&!n.$disabled(),"p-autocomplete-fluid":n.hasFluid}],pcInputText:"p-autocomplete-input",inputMultiple:({instance:n})=>["p-autocomplete-input-multiple",{"p-disabled":n.$disabled(),"p-variant-filled":n.$variant()==="filled"}],chipItem:({instance:n,i:r})=>["p-autocomplete-chip-item",{"p-focus":n.focusedMultipleOptionIndex()===r}],pcChip:"p-autocomplete-chip",chipIcon:"p-autocomplete-chip-icon",inputChip:"p-autocomplete-input-chip",loader:"p-autocomplete-loader",dropdown:"p-autocomplete-dropdown",overlay:({instance:n})=>["p-autocomplete-overlay p-component-overlay p-component",{"p-input-filled":n.$variant()==="filled","p-ripple-disabled":n.config.ripple()===!1}],listContainer:"p-autocomplete-list-container",list:"p-autocomplete-list",optionGroup:"p-autocomplete-option-group",option:({instance:n,option:r,i:e,scrollerOptions:t})=>({"p-autocomplete-option":!0,"p-autocomplete-option-selected":n.isSelected(r),"p-focus":n.focusedOptionIndex()===n.getOptionIndex(e,t),"p-disabled":n.isOptionDisabled(r)}),emptyMessage:"p-autocomplete-empty-message",clearIcon:"p-autocomplete-clear-icon"},vt=(()=>{class n extends me{name="autocomplete";style=di;classes=mi;inlineStyles=ui;static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(n)))(i||n)}})();static \u0275prov=W({token:n,factory:n.\u0275fac})}return n})();var Ct=new Z("AUTOCOMPLETE_INSTANCE"),_i={provide:Ue,useExisting:ke(()=>be),multi:!0},be=(()=>{class n extends st{overlayService;zone;componentName="AutoComplete";$pcAutoComplete=B(Ct,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=B(k,{self:!0});minLength=1;minQueryLength;delay=300;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;dropdown;showEmptyMessage=!0;dropdownMode="blank";multiple;addOnTab=!1;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}optionLabel;optionValue;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!1;selectOnFocus;searchLocale;optionDisabled;focusOnHover=!0;typeahead=!0;addOnBlur=!1;separator;appendTo=M(void 0);motionOptions=M(void 0);completeMethod=new I;onSelect=new I;onUnselect=new I;onAdd=new I;onFocus=new I;onBlur=new I;onDropdownClick=new I;onClear=new I;onInputKeydown=new I;onKeyUp=new I;onShow=new I;onHide=new I;onLazyLoad=new I;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;onHostClick(e){this.onContainerClick(e)}value;_suggestions=$(null);timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;loading;scrollHandler;listId;searchTimeout;dirty=!1;_itemTemplate;_groupTemplate;_selectedItemTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_loaderTemplate;_removeIconTemplate;_loadingIconTemplate;_clearIconTemplate;_dropdownIconTemplate;focusedMultipleOptionIndex=$(-1);focusedOptionIndex=$(-1);_componentStyle=B(vt);$appendTo=w(()=>this.appendTo()||this.config.overlayAppendTo());visibleOptions=w(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=w(()=>{let e=this.modelValue(),t=this.optionValueSelected?(this.suggestions||[]).find(i=>Q(i,e,this.equalityKey())):e;if(H(e))if(typeof e=="object"||this.optionValueSelected){let i=this.getOptionLabel(t);return i??e}else return e;else return""});get focusedMultipleOptionId(){return this.focusedMultipleOptionIndex()!==-1?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}get searchResultMessageText(){return H(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue()?.length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get listLabel(){return this.config.getTranslation(ue.ARIA).listLabel}get virtualScrollerDisabled(){return!this.virtualScroll}get optionValueSelected(){return typeof this.modelValue()=="string"&&this.optionValue}chipItemClass(e){return this._componentStyle.classes.chipItem({instance:this,i:e})}constructor(e,t){super(),this.overlayService=e,this.zone=t}onInit(){this.id=this.id||ce("pn_id_"),this.cd.detectChanges()}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selecteditem":this._selectedItemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"removetokenicon":this._removeIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}handleSuggestionsChange(){if(this.loading){this._suggestions()?.length>0||this.showEmptyMessage||this.emptyTemplate?this.show():this.hide();let e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((t,i,o)=>{t.push({optionGroup:i,group:!0,index:o});let a=this.getOptionGroupChildren(i);return a&&a.forEach(C=>t.push(C)),t},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return Me(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let t=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return t>-1?t+e+1:e}findPrevOptionIndex(e){let t=e>0?Me(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return t>-1?t:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.optionDisabled?G(e,this.optionDisabled):!1}isSelected(e){return this.multiple?this.unique?this.modelValue()?.some(t=>Q(t,e,this.equalityKey())):!1:Q(this.modelValue(),e,this.equalityKey())}isOptionMatched(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return e.target===this.inputEL?.nativeElement}isDropdownClicked(e){return this.dropdownButton?.nativeElement?e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target):!1}equalityKey(){return this.optionValue?void 0:this.dataKey}onContainerClick(e){this.$disabled()||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&D(this.inputEL?.nativeElement)}handleDropdownClick(e){let t;this.overlayVisible?this.hide(!0):(D(this.inputEL?.nativeElement),t=this.inputEL?.nativeElement?.value,this.dropdownMode==="blank"?this.search(e,"","dropdown"):this.dropdownMode==="current"&&this.search(e,t,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:t})}onInput(e){if(this.typeahead){let t=this.minQueryLength||this.minLength;this.searchTimeout&&clearTimeout(this.searchTimeout);let i=e.target.value;this.maxlength()!==null&&(i=i.split("").slice(0,this.maxlength()).join("")),!this.multiple&&!this.forceSelection&&this.updateModel(i),i.length===0&&!this.multiple?(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2)):i.length>=t?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,i,"input")},this.delay)):this.hide()}}onInputChange(e){this.updateInputWithForceSelection(e)}onInputFocus(e){if(this.$disabled())return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;let t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(t),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.$disabled()||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.$disabled()){e.preventDefault();return}switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e);break;default:break}}onInputBlur(e){if(this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.addOnBlur&&this.multiple&&!this.typeahead){let t=(this.multiInputEl?.nativeElement?.value||e.target.value||"").trim();t&&!this.isSelected(t)&&(this.updateModel([...this.modelValue()||[],t]),this.onAdd.emit({originalEvent:e,value:t}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":e.target.value="")}this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){if(this.separator&&this.multiple&&!this.typeahead){let t=(e.clipboardData||window.clipboardData)?.getData("Text");if(t){let i=t.split(this.separator),o=[...this.modelValue()||[]];if(i.forEach(a=>{let C=a.trim();C&&!this.isSelected(C)&&o.push(C)}),o.length>(this.modelValue()||[]).length){let a=o.slice((this.modelValue()||[]).length);this.updateModel(o),a.forEach(C=>{this.onAdd.emit({originalEvent:e,value:C})}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":e.target.value="",e.preventDefault()}}}else this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}switch(this.onInputKeydown.emit(e),e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e);break;case"ShiftLeft":case"ShiftRight":break;default:this.handleSeparatorKey(e);break}}handleSeparatorKey(e){if(this.separator&&this.multiple&&!this.typeahead&&(this.separator===e.key||typeof this.separator=="string"&&e.key===this.separator||this.separator instanceof RegExp&&e.key.match(this.separator))){let t=(this.multiInputEl?.nativeElement?.value||e.target.value||"").trim();t&&!this.isSelected(t)&&(this.updateModel([...this.modelValue()||[],t]),this.onAdd.emit({originalEvent:e,value:t}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":e.target.value="",e.preventDefault())}}onArrowDownKey(e){if(!this.overlayVisible)return;let t=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let t=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){let t=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(Ee(t.value)&&this.hasSelectedOption()?(D(this.multiContainerEL?.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){let{currentTarget:t}=e,i=t.value.length;t.setSelectionRange(0,e.shiftKey?i:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){let{currentTarget:t}=e,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){if(!this.typeahead&&!this.forceSelection&&this.multiple){let t=e.target.value?.trim();t&&!this.isSelected(t)&&(this.updateModel([...this.modelValue()||[],t]),this.onAdd.emit({originalEvent:e,value:t}),this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""))}if(this.overlayVisible)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide();else return;e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){if(this.focusedOptionIndex()!==-1){this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]);return}if(this.multiple&&!this.typeahead){let t=(this.multiInputEl?.nativeElement?.value||this.inputEL?.nativeElement?.value||"").trim();if(this.addOnTab&&t&&!this.isSelected(t)){this.updateModel([...this.modelValue()||[],t]),this.onAdd.emit({originalEvent:e,value:t}),this.multiInputEl?.nativeElement?this.multiInputEl.nativeElement.value="":this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""),this.updateInputValue(),e.preventDefault(),this.overlayVisible&&this.hide();return}}this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(H(this.modelValue())&&!this.inputEL?.nativeElement?.value){let t=this.modelValue()[this.modelValue().length-1],i=this.modelValue().slice(0,-1);this.updateModel(i),this.onUnselect.emit({originalEvent:e,value:t})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){let t=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(t)}onArrowRightKeyOnMultiple(e){let t=this.focusedMultipleOptionIndex();t++,this.focusedMultipleOptionIndex.set(t),t>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),D(this.inputEL?.nativeElement))}onBackspaceKeyOnMultiple(e){this.focusedMultipleOptionIndex()!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,t,i=!0){this.multiple?(this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""),this.isSelected(t)||this.updateModel([...this.modelValue()||[],t])):this.updateModel(t),this.onSelect.emit({originalEvent:e,value:t}),i&&this.hide(!0)}onOptionMouseEnter(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)}search(e,t,i){t!=null&&(i==="input"&&t.trim().length===0||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:t})))}removeOption(e,t){e.stopPropagation();let i=this.modelValue()[t],o=this.modelValue().filter((a,C)=>C!==t);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:i}),D(this.inputEL?.nativeElement)}updateModel(e){let t=null;e&&(t=this.multiple?e.map(i=>this.getOptionValue(i)):this.getOptionValue(e)),this.value=t,this.writeModelValue(e),this.onModelChange(t),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.inputEL&&this.inputEL.nativeElement&&(this.multiple?this.inputEL.nativeElement.value="":this.inputEL.nativeElement.value=this.inputValue())}updateInputWithForceSelection(e){let t=this.inputEL?.nativeElement,i=!t?.value&&H(this.modelValue());if(!this.forceSelection||this.overlayVisible||!t?.value&&!i)return;let o=this.minQueryLength??this.minLength;if(!i&&t.value.length<o)return;let a=this.visibleOptions()?.find(C=>this.isOptionMatched(C,t.value));if(!a){t.value="",this.multiple||this.clear();return}a&&!this.isSelected(a)&&this.onOptionSelect(e,a)}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){let e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){let t=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=se(this.itemsViewChild.nativeElement,`li[id="${t}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,t){this.focusedOptionIndex()!==t&&(this.focusedOptionIndex.set(t),this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions()[t],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;let t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(t),e&&D(this.inputEL?.nativeElement),e&&D(this.inputEL?.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){let t=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&D(this.inputEL?.nativeElement),this.onHide.emit(),this.updateInputWithForceSelection(null),this.cd.markForCheck()};setTimeout(()=>{t()},0)}clear(){this.updateModel(null),this.inputEL?.nativeElement&&(this.inputEL.nativeElement.value=""),this.onClear.emit()}hasSelectedOption(){return H(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(t=>this.isOptionGroup(t)).length:e)+1}getOptionLabel(e){return this.optionLabel?G(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?G(e,this.optionValue):e&&e.value!=null?e.value:e}getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?G(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?G(e,this.optionGroupChildren):e.items}getPTOptions(e,t,i,o){return this.ptm(o,{context:{option:e,index:this.getOptionIndex(i,t),selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})}onOverlayBeforeEnter(){if(this.itemsWrapper=se(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-name="pcoverlay"]'),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller?.viewInit()),this.visibleOptions()&&this.visibleOptions().length)if(this.virtualScroll){let e=this.modelValue()?this.focusedOptionIndex():-1;e!==-1&&this.scroller?.scrollToIndex(e)}else{let e=se(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="true"]');e&&e.scrollIntoView({block:"nearest",inline:"center"})}}get containerDataP(){return this.cn({fluid:this.hasFluid})}get overlayDataP(){return this.cn({[`overlay-${this.$appendTo()}`]:!0})}get inputMultipleDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",empty:!this.$filled(),[this.size()]:this.size()})}writeControlValue(e,t){let i=this.multiple?this.visibleOptions().filter(o=>e?.some(a=>Q(a,o,this.equalityKey()))):this.visibleOptions().find(o=>Q(e,o,this.equalityKey()));this.value=e,t(Ee(i)?e:i),this.updateInputValue(),this.cd.markForCheck()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(t){return new(t||n)(ve(Qe),ve(Ae))};static \u0275cmp=S({type:n,selectors:[["p-autoComplete"],["p-autocomplete"],["p-auto-complete"]],contentQueries:function(t,i,o){if(t&1&&Y(o,Ut,5)(o,jt,5)(o,Wt,5)(o,Zt,5)(o,Xt,5)(o,Yt,5)(o,Jt,5)(o,en,5)(o,tn,5)(o,nn,5)(o,on,5)(o,de,4),t&2){let a;b(a=x())&&(i.itemTemplate=a.first),b(a=x())&&(i.emptyTemplate=a.first),b(a=x())&&(i.headerTemplate=a.first),b(a=x())&&(i.footerTemplate=a.first),b(a=x())&&(i.selectedItemTemplate=a.first),b(a=x())&&(i.groupTemplate=a.first),b(a=x())&&(i.loaderTemplate=a.first),b(a=x())&&(i.removeIconTemplate=a.first),b(a=x())&&(i.loadingIconTemplate=a.first),b(a=x())&&(i.clearIconTemplate=a.first),b(a=x())&&(i.dropdownIconTemplate=a.first),b(a=x())&&(i.templates=a)}},viewQuery:function(t,i){if(t&1&&Ne(ln,5)(an,5)(pn,5)(rn,5)(sn,5)(cn,5)(dn,5),t&2){let o;b(o=x())&&(i.inputEL=o.first),b(o=x())&&(i.multiInputEl=o.first),b(o=x())&&(i.multiContainerEL=o.first),b(o=x())&&(i.dropdownButton=o.first),b(o=x())&&(i.itemsViewChild=o.first),b(o=x())&&(i.scroller=o.first),b(o=x())&&(i.overlayViewChild=o.first)}},hostVars:5,hostBindings:function(t,i){t&1&&f("click",function(a){return i.onHostClick(a)}),t&2&&(h("data-p",i.containerDataP),F(i.sx("root")),g(i.cn(i.cx("root"),i.styleClass)))},inputs:{minLength:[2,"minLength","minLength",R],minQueryLength:[2,"minQueryLength","minQueryLength",R],delay:[2,"delay","delay",R],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:[2,"readonly","readonly",y],scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",y],virtualScroll:[2,"virtualScroll","virtualScroll",y],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",R],virtualScrollOptions:"virtualScrollOptions",autoHighlight:[2,"autoHighlight","autoHighlight",y],forceSelection:[2,"forceSelection","forceSelection",y],type:"type",autoZIndex:[2,"autoZIndex","autoZIndex",y],baseZIndex:[2,"baseZIndex","baseZIndex",R],ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:[2,"unique","unique",y],group:[2,"group","group",y],completeOnFocus:[2,"completeOnFocus","completeOnFocus",y],showClear:[2,"showClear","showClear",y],dropdown:[2,"dropdown","dropdown",y],showEmptyMessage:[2,"showEmptyMessage","showEmptyMessage",y],dropdownMode:"dropdownMode",multiple:[2,"multiple","multiple",y],addOnTab:[2,"addOnTab","addOnTab",y],tabindex:[2,"tabindex","tabindex",R],dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[2,"autofocus","autofocus",y],autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",optionLabel:"optionLabel",optionValue:"optionValue",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",y],selectOnFocus:[2,"selectOnFocus","selectOnFocus",y],searchLocale:[2,"searchLocale","searchLocale",y],optionDisabled:"optionDisabled",focusOnHover:[2,"focusOnHover","focusOnHover",y],typeahead:[2,"typeahead","typeahead",y],addOnBlur:[2,"addOnBlur","addOnBlur",y],separator:"separator",appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onAdd:"onAdd",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onInputKeydown:"onInputKeydown",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[ne([_i,vt,{provide:Ct,useExisting:n},{provide:_e,useExisting:n}]),X([k]),q],decls:9,vars:14,consts:[["overlay",""],["content",""],["focusInput",""],["multiContainer",""],["focusInput","","multiIn",""],["token",""],["removeicon",""],["ddBtn",""],["buildInItems",""],["scroller",""],["loader",""],["items",""],["empty",""],["pInputText","","aria-autocomplete","list","role","combobox",3,"pAutoFocus","pt","class","ngStyle","variant","invalid","pSize","fluid","pInputTextUnstyled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"pBind","class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pRipple","",3,"pBind","class","disabled","click",4,"ngIf"],[3,"visibleChange","onBeforeEnter","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],["pInputText","","aria-autocomplete","list","role","combobox",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","pt","ngStyle","variant","invalid","pSize","fluid","pInputTextUnstyled"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["role","listbox",3,"focus","blur","keydown","pBind","tabindex"],["role","option",3,"pBind","class",4,"ngFor","ngForOf"],["role","option",3,"pBind"],["role","combobox","aria-autocomplete","list",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","pBind","ngStyle"],[3,"onRemove","pt","label","disabled","removable","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind",4,"ngIf"],["data-p-icon","times-circle"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","class","spin",4,"ngIf"],[3,"pBind","class",4,"ngIf"],["data-p-icon","spinner",3,"pBind","spin"],["type","button","pRipple","",3,"click","pBind","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],[3,"pBind","tabindex"],[3,"tabindex","pt","items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[3,"onLazyLoad","tabindex","pt","items","itemSize","autoSize","lazy","options"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],["pRipple","","role","option",3,"click","mouseenter","pBind","ngStyle"],[4,"ngIf","ngIfElse"]],template:function(t,i){if(t&1){let o=v();_(0,yn,2,32,"input",13)(1,In,3,2,"ng-container",14)(2,kn,7,37,"ul",15)(3,Fn,3,2,"ng-container",14)(4,$n,4,8,"button",16),u(5,"p-overlay",17,0),te("visibleChange",function(C){return c(o),ee(i.overlayVisible,C)||(i.overlayVisible=C),d(C)}),f("onBeforeEnter",function(){return i.onOverlayBeforeEnter()})("onHide",function(){return i.hide()}),_(7,ci,10,15,"ng-template",null,1,P),m()}t&2&&(p("ngIf",!i.multiple),s(),p("ngIf",i.$filled()&&!i.$disabled()&&i.showClear&&!i.loading),s(),p("ngIf",i.multiple),s(),p("ngIf",i.loading),s(),p("ngIf",i.dropdown),s(),p("hostAttrSelector",i.$attrSelector),J("visible",i.overlayVisible),p("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())("unstyled",i.unstyled())("pt",i.ptm("pcOverlay"))("motionOptions",i.motionOptions()),h("data-p",i.overlayDataP))},dependencies:[re,le,He,ae,pe,Ge,ct,he,at,dt,tt,fe,ot,it,bt,U,lt,Je,k],encapsulation:2,changeDetection:0})}return n})(),Tt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Ce({type:n});static \u0275inj=xe({imports:[be,U,U]})}return n})();var Ot={stringPlaceholder:"Enter a value",selectPlaceholder:"Select an option",listPlaceholder:"Type and press Enter",unsupportedPrefix:"Unsupported input type:"};function gi(n,r){if(n&1){let e=v();u(0,"input",6),f("ngModelChange",function(i){c(e);let o=l();return d(o.onStringChange(i))}),m()}if(n&2){let e=l();p("id",e.fieldId())("ngModel",e.stringValue())("placeholder",e.texts.stringPlaceholder),h("aria-label",e.label())}}function fi(n,r){if(n&1){let e=v();u(0,"p-select",7),f("ngModelChange",function(i){c(e);let o=l();return d(o.onStringChange(i))}),m()}if(n&2){let e=l();p("inputId",e.fieldId())("options",e.options())("ngModel",e.stringValue())("placeholder",e.texts.selectPlaceholder),h("aria-label",e.label())}}function yi(n,r){if(n&1){let e=v();u(0,"p-autocomplete",8),f("ngModelChange",function(i){c(e);let o=l();return d(o.onListChange(i))}),m()}if(n&2){let e=l();p("inputId",e.fieldId())("multiple",!0)("typeahead",!1)("addOnBlur",!0)("unique",!0)("ngModel",e.listValue())("placeholder",e.texts.listPlaceholder),h("aria-label",e.label())}}function bi(n,r){if(n&1&&(u(0,"span",5),E(1),m()),n&2){let e=l();s(),$e(" ",e.texts.unsupportedPrefix," ",e.inputType()," ")}}var St=(()=>{class n{texts=Ot;descriptor=M.required();value=qe("");inputType=w(()=>this.descriptor().inputType);label=w(()=>this.descriptor().label);options=w(()=>this.descriptor().options??[]);fieldId=w(()=>`itc-${this.inputType()}-${this.label().replace(/\s+/g,"-").toLowerCase()}`);stringValue=w(()=>{let e=this.value();return typeof e=="string"?e:""});listValue=w(()=>{let e=this.value();return Array.isArray(e)?e:[]});onStringChange(e){this.value.set(e??"")}onListChange(e){this.value.set(Array.isArray(e)?e:[])}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=S({type:n,selectors:[["sm-input-type-control"]],inputs:{descriptor:[1,"descriptor"],value:[1,"value"]},outputs:{value:"valueChange"},decls:7,vars:4,consts:[[1,"itc"],[1,"itc__label"],["type","text","pInputText","","data-testid","input-type-control-string-input",1,"itc__string",3,"id","ngModel","placeholder"],["optionLabel","label","optionValue","value","appendTo","body","data-testid","input-type-control-select",1,"itc__select",3,"inputId","options","ngModel","placeholder"],["data-testid","input-type-control-list",1,"itc__list",3,"inputId","multiple","typeahead","addOnBlur","unique","ngModel","placeholder"],["role","note","data-testid","input-type-control-unsupported",1,"itc__unsupported"],["type","text","pInputText","","data-testid","input-type-control-string-input",1,"itc__string",3,"ngModelChange","id","ngModel","placeholder"],["optionLabel","label","optionValue","value","appendTo","body","data-testid","input-type-control-select",1,"itc__select",3,"ngModelChange","inputId","options","ngModel","placeholder"],["data-testid","input-type-control-list",1,"itc__list",3,"ngModelChange","inputId","multiple","typeahead","addOnBlur","unique","ngModel","placeholder"]],template:function(t,i){if(t&1&&(u(0,"div",0)(1,"label",1),E(2),m(),Be(3,gi,1,4,"input",2)(4,fi,1,5,"p-select",3)(5,yi,1,8,"p-autocomplete",4)(6,bi,2,2,"span",5),m()),t&2){let o;h("data-testid","input-type-control-"+i.inputType()),s(),h("for",i.fieldId()),s(),N(i.label()),s(),Fe((o=i.inputType())==="single-string"?3:o==="enum-pick"?4:o==="string-list"?5:6)}},dependencies:[Xe,je,We,Ze,et,he,mt,ut,Tt,be],styles:[".itc[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem}.itc__label[_ngcontent-%COMP%]{font-weight:600;font-size:.9rem;color:var(--p-text-color)}.itc__string[_ngcontent-%COMP%], .itc__select[_ngcontent-%COMP%], .itc__list[_ngcontent-%COMP%]{width:100%}.itc__unsupported[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color)}"],changeDetection:0})}return n})();var Vt={fallbackHeader:"Provide a value",ariaLabel:"Action input",confirm:"Confirm",cancel:"Cancel"};var xi=()=>({width:"28rem"}),Go=(()=>{class n{texts=Vt;open=M(!1);descriptor=M.required();headerText=M(void 0);busy=M(!1);confirmed=Ve();closed=Ve();collected=$("");header=w(()=>this.headerText()??this.texts.fallbackHeader);seedOnOpen=Le(()=>{this.open()&&this.collected.set(this.seedValue())});seedValue(){let e=this.descriptor(),t=e.inputType==="string-list",i=e.defaultValue;return t?Array.isArray(i)?i.slice():[]:typeof i=="string"?i:""}confirm(){this.confirmed.emit(this.collected())}cancel(){this.closed.emit()}onVisibleChange(e){e||this.closed.emit()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=S({type:n,selectors:[["sm-action-prompt-dialog"]],inputs:{open:[1,"open"],descriptor:[1,"descriptor"],headerText:[1,"headerText"],busy:[1,"busy"]},outputs:{confirmed:"confirmed",closed:"closed"},decls:5,vars:17,consts:[["data-testid","action-prompt-dialog",3,"visibleChange","visible","modal","closable","draggable","resizable","dismissableMask","header"],["data-testid","action-prompt-control",3,"valueChange","descriptor","value"],[1,"apd__actions"],["severity","secondary","data-testid","action-prompt-cancel",3,"onClick","label","text"],["severity","primary","data-testid","action-prompt-confirm",3,"onClick","label","disabled"]],template:function(t,i){t&1&&(u(0,"p-dialog",0),f("visibleChange",function(a){return i.onVisibleChange(a)}),u(1,"sm-input-type-control",1),te("valueChange",function(a){return ee(i.collected,a)||(i.collected=a),a}),m(),u(2,"div",2)(3,"p-button",3),f("onClick",function(){return i.cancel()}),m(),u(4,"p-button",4),f("onClick",function(){return i.confirm()}),m()()()),t&2&&(F(ie(16,xi)),p("visible",i.open())("modal",!0)("closable",!0)("draggable",!1)("resizable",!1)("dismissableMask",!0)("header",i.header()),h("aria-label",i.texts.ariaLabel),s(),p("descriptor",i.descriptor()),J("value",i.collected),s(2),p("label",i.texts.cancel)("text",!0),s(),p("label",i.texts.confirm)("disabled",i.busy()))},dependencies:[rt,pt,ht,_t,St],styles:[".apd__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.25rem}"],changeDetection:0})}return n})();export{Go as ActionPromptDialog};