marketplacepos 5.41.3 → 5.43.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 (219) hide show
  1. package/Marketplace/3rdpartylicenses.txt +123 -123
  2. package/Marketplace/chunk-24DT5FN2.js +1 -0
  3. package/Marketplace/{chunk-5MRT2EFE.js → chunk-25OT4I3W.js} +1 -1
  4. package/Marketplace/chunk-2BUABOHG.js +1 -0
  5. package/Marketplace/{chunk-7GQIIDFF.js → chunk-2DJWDXTZ.js} +1 -1
  6. package/Marketplace/chunk-2EL3WEWS.js +1 -0
  7. package/Marketplace/chunk-2SXRC4IG.js +1 -0
  8. package/Marketplace/{chunk-KXZCGKQW.js → chunk-2TZBEYNY.js} +1 -1
  9. package/Marketplace/chunk-2ZTDLZVZ.js +1 -0
  10. package/Marketplace/chunk-33IXC6UG.js +1 -0
  11. package/Marketplace/chunk-3Y6LJS2H.js +1 -0
  12. package/Marketplace/{chunk-7477X7LJ.js → chunk-4CTORK4F.js} +1 -1
  13. package/Marketplace/{chunk-BUFEIJAI.js → chunk-4M63ID5T.js} +1 -1
  14. package/Marketplace/chunk-4PZ5Q3HI.js +1 -0
  15. package/Marketplace/{chunk-RVYGL22E.js → chunk-55OI2SUF.js} +1 -1
  16. package/Marketplace/chunk-5DIRXS7I.js +1 -0
  17. package/Marketplace/chunk-5EQNOCXP.js +1 -0
  18. package/Marketplace/chunk-5QAURMZF.js +222 -0
  19. package/Marketplace/{chunk-V2OJQHE3.js → chunk-5XI7HWS5.js} +2 -2
  20. package/Marketplace/chunk-66YHNWRR.js +1 -0
  21. package/Marketplace/chunk-6BFXOKCB.js +1 -0
  22. package/Marketplace/chunk-6DZKFXDF.js +1 -0
  23. package/Marketplace/chunk-6IFZ2TO6.js +1 -0
  24. package/Marketplace/{chunk-Q72ZXPDP.js → chunk-6LH7FSOW.js} +1 -1
  25. package/Marketplace/chunk-6LULIB2P.js +2 -0
  26. package/Marketplace/{chunk-OLSC6KHB.js → chunk-6MPSYC77.js} +1 -1
  27. package/Marketplace/chunk-6QGSDBR7.js +1 -0
  28. package/Marketplace/{chunk-BIQHA7UA.js → chunk-6X2OBNJQ.js} +4 -4
  29. package/Marketplace/chunk-736E275F.js +1 -0
  30. package/Marketplace/{chunk-IYYVZ6B6.js → chunk-A2YNWIX6.js} +1 -1
  31. package/Marketplace/chunk-A4F37V57.js +1 -0
  32. package/Marketplace/{chunk-NMJGLMWI.js → chunk-ABQG3LB5.js} +1 -1
  33. package/Marketplace/{chunk-77IUCPIQ.js → chunk-ACIMXBIC.js} +1 -1
  34. package/Marketplace/chunk-AGRVVEIR.js +397 -0
  35. package/Marketplace/chunk-ALKC77XL.js +78 -0
  36. package/Marketplace/chunk-ARZ2S6YD.js +1 -0
  37. package/Marketplace/chunk-AVEGIEYT.js +193 -0
  38. package/Marketplace/chunk-AVVPZ3NI.js +1 -0
  39. package/Marketplace/chunk-AZ2FLWCK.js +266 -0
  40. package/Marketplace/chunk-BAYW2AHI.js +1 -0
  41. package/Marketplace/chunk-BCM6WRZR.js +5 -0
  42. package/Marketplace/chunk-BQTUAYGY.js +1 -0
  43. package/Marketplace/chunk-CFC5CQ3V.js +1 -0
  44. package/Marketplace/chunk-CLDURV35.js +2 -0
  45. package/Marketplace/chunk-CRZOIZUQ.js +1 -0
  46. package/Marketplace/chunk-CSSG7NAJ.js +1 -0
  47. package/Marketplace/chunk-D66XCOBY.js +1 -0
  48. package/Marketplace/chunk-DIUEZVRG.js +1 -0
  49. package/Marketplace/chunk-DJILLV4M.js +1 -0
  50. package/Marketplace/chunk-DLSU35PZ.js +5 -0
  51. package/Marketplace/chunk-DMW4DWIM.js +1 -0
  52. package/Marketplace/{chunk-ZD5LURJS.js → chunk-E2CS7ZMC.js} +1 -1
  53. package/Marketplace/chunk-ECN3QRMT.js +1 -0
  54. package/Marketplace/chunk-EU2KAMEK.js +1 -0
  55. package/Marketplace/chunk-F4GMWHYJ.js +33 -0
  56. package/Marketplace/chunk-F4HFUSVI.js +1 -0
  57. package/Marketplace/{chunk-RGR34QZ3.js → chunk-FBZW4Y3J.js} +1 -1
  58. package/Marketplace/{chunk-6NNAICJE.js → chunk-FWG4H3QG.js} +1 -1
  59. package/Marketplace/chunk-G4OF4YLE.js +2 -0
  60. package/Marketplace/chunk-GCECFUOP.js +1 -0
  61. package/Marketplace/{chunk-UBMI3NQH.js → chunk-GHBGGQNM.js} +1 -1
  62. package/Marketplace/chunk-GMGCY3OL.js +1 -0
  63. package/Marketplace/chunk-GOS4RIF2.js +1 -0
  64. package/Marketplace/{chunk-IEYFOHME.js → chunk-GPC4DECX.js} +1 -1
  65. package/Marketplace/chunk-GZXQUJKX.js +1 -0
  66. package/Marketplace/{chunk-TMFFA26Y.js → chunk-HFKKITEW.js} +1 -1
  67. package/Marketplace/{chunk-KHWTOD6H.js → chunk-HPYTL6TX.js} +1 -1
  68. package/Marketplace/chunk-HTQJCQ32.js +1 -0
  69. package/Marketplace/chunk-I5IZPTXZ.js +1 -0
  70. package/Marketplace/{chunk-GBABJLPQ.js → chunk-IKPRRD5D.js} +1 -1
  71. package/Marketplace/chunk-IR5OMZTZ.js +1 -0
  72. package/Marketplace/chunk-ITTTKW6F.js +1 -0
  73. package/Marketplace/chunk-IUWXRFDI.js +1 -0
  74. package/Marketplace/{chunk-EGTYAIU5.js → chunk-JOBWFOGC.js} +1 -1
  75. package/Marketplace/{chunk-PPDHTO44.js → chunk-JRWFZQ5K.js} +1 -1
  76. package/Marketplace/chunk-JRXB6762.js +252 -0
  77. package/Marketplace/chunk-JS55A2RS.js +7 -0
  78. package/Marketplace/chunk-JV4MMNGD.js +79 -0
  79. package/Marketplace/chunk-K654EZ3I.js +1 -0
  80. package/Marketplace/chunk-KC3C62UO.js +4 -0
  81. package/Marketplace/{chunk-GBXNTL4E.js → chunk-KQQCKHF3.js} +1 -1
  82. package/Marketplace/chunk-KR2UT3GA.js +1 -0
  83. package/Marketplace/chunk-KWQS4KX7.js +1 -0
  84. package/Marketplace/{chunk-COBHWPGI.js → chunk-KX5AWR75.js} +1 -1
  85. package/Marketplace/chunk-KXS76PRS.js +70 -0
  86. package/Marketplace/chunk-KYIY3VQ6.js +141 -0
  87. package/Marketplace/{chunk-J7AGLBPL.js → chunk-LHD7CYML.js} +1 -1
  88. package/Marketplace/chunk-LR4UZ2OS.js +30 -0
  89. package/Marketplace/{chunk-M3SJUKTG.js → chunk-LSXUXG54.js} +1 -1
  90. package/Marketplace/chunk-LWSRD5LF.js +1 -0
  91. package/Marketplace/{chunk-Q2OEJFVT.js → chunk-M5IQRAHV.js} +1 -1
  92. package/Marketplace/chunk-MKOJVMRR.js +1 -0
  93. package/Marketplace/chunk-MMT3VFZZ.js +1 -0
  94. package/Marketplace/{chunk-RIHLYYZU.js → chunk-MQXPOHBV.js} +1 -1
  95. package/Marketplace/chunk-MTUIRWOB.js +2 -0
  96. package/Marketplace/chunk-MZI5AYCE.js +1 -0
  97. package/Marketplace/chunk-NB5XHM62.js +1 -0
  98. package/Marketplace/{chunk-JBKHY4HH.js → chunk-NRCXYGO3.js} +5 -5
  99. package/Marketplace/chunk-NTW6FBP5.js +1 -0
  100. package/Marketplace/chunk-NZA4BEER.js +102 -0
  101. package/Marketplace/chunk-O55KM5KY.js +1 -0
  102. package/Marketplace/chunk-O6U5QCHJ.js +1 -0
  103. package/Marketplace/chunk-OJWFYXZX.js +1 -0
  104. package/Marketplace/{chunk-G6EG5QJS.js → chunk-OKAPL3YZ.js} +1 -1
  105. package/Marketplace/chunk-OTFACGUB.js +1 -0
  106. package/Marketplace/{chunk-WAW37FIG.js → chunk-OZ77CAJD.js} +1 -1
  107. package/Marketplace/chunk-OZ7LWNOK.js +15 -0
  108. package/Marketplace/chunk-PB2SJSML.js +1 -0
  109. package/Marketplace/chunk-PE5AFID4.js +1 -0
  110. package/Marketplace/{chunk-7TWBIV3T.js → chunk-PO7JVKK3.js} +1 -1
  111. package/Marketplace/chunk-PW42BQIY.js +1 -0
  112. package/Marketplace/chunk-PZ4PSWYM.js +3 -0
  113. package/Marketplace/chunk-QACWANJT.js +1 -0
  114. package/Marketplace/chunk-QUXUEWEF.js +1 -0
  115. package/Marketplace/chunk-R22TUWCL.js +15 -0
  116. package/Marketplace/{chunk-75BDXSG3.js → chunk-R76V3PTN.js} +10 -10
  117. package/Marketplace/chunk-RCRPQNNW.js +1 -0
  118. package/Marketplace/chunk-SACERVTF.js +1 -0
  119. package/Marketplace/chunk-SDKAJBVB.js +1 -0
  120. package/Marketplace/{chunk-VGXQU74M.js → chunk-SH7KN2AS.js} +1 -1
  121. package/Marketplace/{chunk-CH2MLZU7.js → chunk-SIYMMMKQ.js} +1 -1
  122. package/Marketplace/chunk-SLQA5QBT.js +1 -0
  123. package/Marketplace/chunk-SMCI6XBO.js +1 -0
  124. package/Marketplace/chunk-SNDG7727.js +1 -0
  125. package/Marketplace/{chunk-QCZIDOKW.js → chunk-SXLKJLAE.js} +1 -1
  126. package/Marketplace/{chunk-6IAGGRZN.js → chunk-SYENQYR7.js} +1 -1
  127. package/Marketplace/chunk-T2IGESWD.js +1 -0
  128. package/Marketplace/chunk-T3Z5OMIZ.js +1 -0
  129. package/Marketplace/{chunk-V5WYSCVT.js → chunk-TGMCGROM.js} +1 -1
  130. package/Marketplace/chunk-TGN4NMQY.js +1 -0
  131. package/Marketplace/{chunk-OE2JYQHN.js → chunk-TNKPTRB3.js} +1 -1
  132. package/Marketplace/{chunk-DRSUXHAY.js → chunk-UBB6E4VL.js} +1 -1
  133. package/Marketplace/chunk-UDIAPGRB.js +1 -0
  134. package/Marketplace/chunk-UEWZXE4O.js +1 -0
  135. package/Marketplace/chunk-UF4FKEE7.js +93 -0
  136. package/Marketplace/chunk-UJYSVGLV.js +1 -0
  137. package/Marketplace/{chunk-5GX2GLRY.js → chunk-UMY6NG57.js} +1 -1
  138. package/Marketplace/{chunk-YXFTLQ5M.js → chunk-UPYS4A4M.js} +1 -1
  139. package/Marketplace/chunk-VRI3CYGG.js +1 -0
  140. package/Marketplace/{chunk-6XFYITUD.js → chunk-WGXUKTYP.js} +1 -1
  141. package/Marketplace/{chunk-ZZVNB72Q.js → chunk-WHZ44BAL.js} +1 -1
  142. package/Marketplace/chunk-WXQDF2MX.js +1 -0
  143. package/Marketplace/chunk-X5DJBQUZ.js +1 -0
  144. package/Marketplace/{chunk-MNFHFW3E.js → chunk-XEMNZHW6.js} +1 -1
  145. package/Marketplace/chunk-XENOOCI4.js +1 -0
  146. package/Marketplace/{chunk-J3P46Z53.js → chunk-XQGRC7V2.js} +1 -1
  147. package/Marketplace/{chunk-YR2WEZDG.js → chunk-YPVYJUXS.js} +1 -1
  148. package/Marketplace/{chunk-VWFLNITX.js → chunk-YR3PNRLA.js} +1 -1
  149. package/Marketplace/chunk-Z3ITXK3D.js +1 -0
  150. package/Marketplace/chunk-ZAVDOMSW.js +1 -0
  151. package/Marketplace/{chunk-GSPHYK6J.js → chunk-ZDYYX736.js} +11 -11
  152. package/Marketplace/chunk-ZFDUVL4I.js +1 -0
  153. package/Marketplace/{chunk-GHQH62TZ.js → chunk-ZIOAOUAM.js} +1 -1
  154. package/Marketplace/chunk-ZNDU44GH.js +51 -0
  155. package/Marketplace/{chunk-7FUVW73P.js → chunk-ZR5IXNXB.js} +1 -1
  156. package/Marketplace/index.html +3 -3
  157. package/Marketplace/main-OO7ZEZW4.js +1 -0
  158. package/Marketplace/{styles-NJFTKO3E.css → styles-X3FXEB7T.css} +1 -1
  159. package/package.json +1 -1
  160. package/Marketplace/chunk-26DZ5AMC.js +0 -1
  161. package/Marketplace/chunk-2BBMPSAE.js +0 -93
  162. package/Marketplace/chunk-2G6NLWKN.js +0 -1
  163. package/Marketplace/chunk-3E5FYRN4.js +0 -1
  164. package/Marketplace/chunk-3PNMJUYQ.js +0 -15
  165. package/Marketplace/chunk-4AMQ66FW.js +0 -1
  166. package/Marketplace/chunk-4ASUM4N5.js +0 -1
  167. package/Marketplace/chunk-4G3QN54S.js +0 -193
  168. package/Marketplace/chunk-4NRAXW65.js +0 -1
  169. package/Marketplace/chunk-4RTZASVJ.js +0 -1
  170. package/Marketplace/chunk-4XMCJ7I5.js +0 -1
  171. package/Marketplace/chunk-5KMCSNS6.js +0 -2
  172. package/Marketplace/chunk-5S6SIKR7.js +0 -1
  173. package/Marketplace/chunk-62PFQNHJ.js +0 -1
  174. package/Marketplace/chunk-6AKFGBPY.js +0 -4
  175. package/Marketplace/chunk-6ALHX2I4.js +0 -1
  176. package/Marketplace/chunk-7XREAR3H.js +0 -1
  177. package/Marketplace/chunk-AMXLXRQK.js +0 -1
  178. package/Marketplace/chunk-AWDLMHBL.js +0 -1
  179. package/Marketplace/chunk-CHZLFJFI.js +0 -3
  180. package/Marketplace/chunk-CMCNEAGC.js +0 -1
  181. package/Marketplace/chunk-CPAHXWMO.js +0 -1
  182. package/Marketplace/chunk-CTN7GW4H.js +0 -1
  183. package/Marketplace/chunk-CYZQNZDB.js +0 -1
  184. package/Marketplace/chunk-D54NUPYF.js +0 -153
  185. package/Marketplace/chunk-DI4V7KMK.js +0 -1
  186. package/Marketplace/chunk-DPLEMBB4.js +0 -1
  187. package/Marketplace/chunk-DZ2EE5MV.js +0 -1
  188. package/Marketplace/chunk-E3HMIPER.js +0 -2
  189. package/Marketplace/chunk-GJOCO2OS.js +0 -2
  190. package/Marketplace/chunk-GPEVUTDI.js +0 -2
  191. package/Marketplace/chunk-GSH5BYZ6.js +0 -1
  192. package/Marketplace/chunk-HKYVBAMV.js +0 -1
  193. package/Marketplace/chunk-IIJMZKPL.js +0 -1
  194. package/Marketplace/chunk-JDEKWXPV.js +0 -1
  195. package/Marketplace/chunk-JFJCXZD3.js +0 -1
  196. package/Marketplace/chunk-K2H6WANG.js +0 -1
  197. package/Marketplace/chunk-KQOYVGBL.js +0 -1
  198. package/Marketplace/chunk-KVP6OL4J.js +0 -2
  199. package/Marketplace/chunk-LPXBSHUI.js +0 -180
  200. package/Marketplace/chunk-MATSRG2L.js +0 -447
  201. package/Marketplace/chunk-PJ72KMDS.js +0 -1
  202. package/Marketplace/chunk-PVUSCHKJ.js +0 -1
  203. package/Marketplace/chunk-PXB4YEY3.js +0 -1
  204. package/Marketplace/chunk-Q2R4GEW5.js +0 -1
  205. package/Marketplace/chunk-RBC7ADJF.js +0 -1
  206. package/Marketplace/chunk-REFJUWLL.js +0 -5
  207. package/Marketplace/chunk-RIYAYANU.js +0 -1
  208. package/Marketplace/chunk-T5ONJF63.js +0 -7
  209. package/Marketplace/chunk-T6QOFDEE.js +0 -1
  210. package/Marketplace/chunk-U5VX6JLT.js +0 -1
  211. package/Marketplace/chunk-VAU6MFH7.js +0 -1
  212. package/Marketplace/chunk-VETHPEVU.js +0 -1
  213. package/Marketplace/chunk-VJKFHBPN.js +0 -5
  214. package/Marketplace/chunk-VSEWXNVC.js +0 -291
  215. package/Marketplace/chunk-X3LH2IJE.js +0 -1
  216. package/Marketplace/chunk-XM6GN4VF.js +0 -1
  217. package/Marketplace/chunk-YIUQQGOQ.js +0 -1
  218. package/Marketplace/chunk-ZHUHOS5T.js +0 -1
  219. package/Marketplace/main-CCWBPZQH.js +0 -1
@@ -0,0 +1,252 @@
1
+ import{a as we}from"./chunk-T3Z5OMIZ.js";import{a as bt}from"./chunk-GHBGGQNM.js";import{a as ft}from"./chunk-LWSRD5LF.js";import{a as _t}from"./chunk-JV4MMNGD.js";import{a as ht,c as mt,d as gt}from"./chunk-NTW6FBP5.js";import{a as yt}from"./chunk-LR4UZ2OS.js";import"./chunk-F4GMWHYJ.js";import{a as ae}from"./chunk-5DIRXS7I.js";import"./chunk-OZ7LWNOK.js";import{a as Ce}from"./chunk-VRI3CYGG.js";import{M as ce,O as C,P as M,Q as Oe,S as ve,W as ct,Y as lt,ba as rt,f as tt,fa as pt,ia as dt,ja as U,k as it,ka as ut,n as nt,q as ot,r as se,w as at,z as st}from"./chunk-AVEGIEYT.js";import"./chunk-PB2SJSML.js";import{b as je}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import{m as Ze,n as et}from"./chunk-6X2OBNJQ.js";import{a as qe,b as ze,h as Qe,m as We,z as Ue}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import{a as Xe,b as Je,c as Ye}from"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{H as Ne,J as He,d as _e,f as Ke,g as ye,h as Re,i as be,j as Ae,m as Be,n as W}from"./chunk-MTUIRWOB.js";import{$b as Ee,$c as ne,Ac as B,Bc as O,Ca as ke,Cc as v,Fc as te,Gb as A,Gc as g,Hb as Me,Hc as R,Ic as $,Ka as w,Kb as pe,Kc as N,Lc as H,Mb as m,Mc as q,Nc as ue,Oc as Pe,Pc as he,Qc as ie,Ra as V,Rc as fe,Sc as z,Tc as $e,Xb as _,Yb as r,Z as le,ac as Z,ad as oe,cd as Q,dc as de,ec as Le,gc as Fe,hc as Ge,ia as Ie,ic as d,ja as Te,jc as u,ka as Se,kc as P,lc as x,mc as I,nc as ee,oc as T,od as S,pa as K,pd as me,q as xe,rb as c,rd as ge,sd as De,tc as y,uc as p,xa as Ve,xb as re,ya as h,za as f,zc as k}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import{a as L,b as F}from"./chunk-66YHNWRR.js";var xt=t=>({$implicit:t});function It(t,s){t&1&&ee(0)}function Tt(t,s){if(t&1&&(x(0),m(1,It,1,0,"ng-container",8),I()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",z(2,xt,e==null?null:e.option))}}function St(t,s){if(t&1&&(d(0,"span",9),g(1),u()),t&2){let e=p().$implicit,n=p();_("data-pc-section","text"),c(),R(n.getOptionLabelToRender(e))}}function Vt(t,s){t&1&&P(0,"AngleRightIcon")}function kt(t,s){}function Mt(t,s){t&1&&m(0,kt,0,0,"ng-template")}function Et(t,s){if(t&1&&(d(0,"span",10),m(1,Vt,1,0,"AngleRightIcon",11)(2,Mt,1,0,null,12),u()),t&2){let e=p(2);_("data-pc-section","groupIcon"),c(),r("ngIf",!e.groupicon),c(),r("ngTemplateOutlet",e.groupicon)}}function Lt(t,s){if(t&1){let e=T();d(0,"p-cascadeselect-sub",13),y("onChange",function(i){h(e);let o=p(2);return f(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return f(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return f(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Ft(t,s){if(t&1){let e=T();d(0,"li",3)(1,"div",4),y("click",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseMove(i,o))}),m(2,Tt,2,4,"ng-container",5)(3,St,2,2,"ng-template",null,0,Q)(5,Et,3,3,"span",6),u(),m(6,Lt,1,12,"p-cascadeselect-sub",7),u()}if(t&2){let e=s.$implicit,n=s.index,i=te(4),o=p();r("ngClass",o.getItemClass(e))("id",o.getOptionId(e)),_("aria-level",o.level+1)("aria-setsize",o.options.length)("data-pc-section","item")("aria-label",o.getOptionLabelToRender(e))("aria-selected",o.isOptionGroup(e)?void 0:o.isOptionSelected(e))("aria-posinset",n+1),c(),_("data-pc-section","content"),c(),r("ngIf",o.optionTemplate)("ngIfElse",i),c(3),r("ngIf",o.isOptionGroup(e)),c(),r("ngIf",o.isOptionGroup(e)&&o.isOptionActive(e))}}var Gt=["value"],Pt=["option"],$t=["header"],Dt=["footer"],Kt=["triggericon"],Rt=["loadingicon"],At=["optiongroupicon"],Bt=["clearicon"],Nt=["focusInput"],Ht=["container"],qt=["panel"],zt=["overlay"],Qt=(t,s)=>({$implicit:t,placeholder:s}),Wt=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function Ut(t,s){t&1&&ee(0)}function jt(t,s){if(t&1&&(x(0),m(1,Ut,1,0,"ng-container",16),I()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",$e(2,Qt,e.value,e.placeholder))}}function Xt(t,s){if(t&1&&g(0),t&2){let e=p();$(" ",e.label()," ")}}function Jt(t,s){if(t&1){let e=T();d(0,"TimesIcon",18),y("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),u()}t&2&&_("data-pc-section","clearicon")("aria-hidden",!0)}function Yt(t,s){}function Zt(t,s){t&1&&m(0,Yt,0,0,"ng-template")}function ei(t,s){if(t&1){let e=T();d(0,"span",18),y("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),m(1,Zt,1,0,null,19),u()}if(t&2){let e=p(2);_("data-pc-section","clearicon")("aria-hidden",!0),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function ti(t,s){if(t&1&&(x(0),m(1,Jt,1,2,"TimesIcon",17)(2,ei,2,3,"span",17),I()),t&2){let e=p();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function ii(t,s){t&1&&ee(0)}function ni(t,s){if(t&1&&(x(0),m(1,ii,1,0,"ng-container",19),I()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function oi(t,s){if(t&1&&P(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function ai(t,s){t&1&&P(0,"span",23),t&2&&Z("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function si(t,s){if(t&1&&(x(0),m(1,oi,1,1,"span",20)(2,ai,1,2,"span",21),I()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function ci(t,s){if(t&1&&(x(0),m(1,ni,2,1,"ng-container",12)(2,si,3,2,"ng-container",12),I()),t&2){let e=p();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function li(t,s){t&1&&P(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function ri(t,s){}function pi(t,s){t&1&&m(0,ri,0,0,"ng-template")}function di(t,s){if(t&1&&(d(0,"span",27),m(1,pi,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function ui(t,s){if(t&1&&m(0,li,1,1,"ChevronDownIcon",24)(1,di,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function hi(t,s){}function fi(t,s){t&1&&m(0,hi,0,0,"ng-template")}function mi(t,s){}function gi(t,s){t&1&&m(0,mi,0,0,"ng-template")}function _i(t,s){if(t&1){let e=T();d(0,"div",28,6),m(2,fi,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),y("onChange",function(i){h(e);let o=p();return f(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return f(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return f(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),g(6),u(),m(7,gi,1,0,null,19),u()}if(t&2){let e=p();Z(e.panelStyleClass),r("ngClass",z(24,Wt,e.queryMatches()))("ngStyle",e.panelStyle),_("data-pc-section","panel"),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),_("data-pc-section","wrapper"),c(),r("options",e.processedOptions)("selectId",e.id)("focusedOptionId",e.focused?e.focusedOptionId:void 0)("activeOptionPath",e.activeOptionPath())("optionLabel",e.optionLabel)("optionValue",e.optionValue)("level",0)("optionTemplate",e.optionTemplate||e._optionTemplate)("groupicon",e.groupIconTemplate||e.groupIconTemplate)("optionGroupLabel",e.optionGroupLabel)("optionGroupChildren",e.optionGroupChildren)("optionDisabled",e.optionDisabled)("root",!0)("dirty",e.dirty)("role","tree"),c(2),$(" ",e.selectedMessageText," "),c(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var yi=({dt:t})=>`
2
+ .p-cascadeselect {
3
+ display: inline-flex;
4
+ cursor: pointer;
5
+ position: relative;
6
+ user-select: none;
7
+ background: ${t("cascadeselect.background")};
8
+ border: 1px solid ${t("cascadeselect.border.color")};
9
+ transition: background ${t("cascadeselect.transition.duration")}, color ${t("cascadeselect.transition.duration")}, border-color ${t("cascadeselect.transition.duration")}, outline-color ${t("cascadeselect.transition.duration")}, box-shadow ${t("cascadeselect.transition.duration")};
10
+ border-radius: ${t("cascadeselect.border.radius")};
11
+ outline-color: transparent;
12
+ box-shadow: ${t("cascadeselect.shadow")};
13
+ }
14
+
15
+ p-cascadeSelect.ng-invalid.ng-dirty .p-cascadeselect,
16
+ p-cascade-select.ng-invalid.ng-dirty .p-cascadeselect,
17
+ p-cascadeselect.ng-invalid.ng-dirty .p-cascadeselect {
18
+ border-color: ${t("cascadeselect.invalid.border.color")};
19
+ }
20
+
21
+ p-cascadeSelect.ng-invalid.ng-dirty .p-cascadeselect.p-focus,
22
+ p-cascade-select.ng-invalid.ng-dirty .p-cascadeselect.p-focus,
23
+ p-cascadeselect.ng-invalid.ng-dirty .p-cascadeselect.p-focus {
24
+ border-color: ${t("cascadeselect.focus.border.color")};
25
+ }
26
+
27
+ .p-cascadeselect:not(.p-disabled):hover {
28
+ border-color: ${t("cascadeselect.hover.border.color")};
29
+ }
30
+
31
+ .p-cascadeselect:not(.p-disabled).p-focus {
32
+ border-color: ${t("cascadeselect.focus.border.color")};
33
+ box-shadow: ${t("cascadeselect.focus.ring.shadow")};
34
+ outline: ${t("cascadeselect.focus.ring.width")} ${t("cascadeselect.focus.ring.style")} ${t("cascadeselect.focus.ring.color")};
35
+ outline-offset: ${t("multiscascadeselectelect.focus.ring.offset")};
36
+ }
37
+
38
+ .p-cascadeselect.p-variant-filled {
39
+ background: ${t("cascadeselect.filled.background")};
40
+ }
41
+
42
+ .p-cascadeselect.p-variant-filled:not(.p-disabled):hover {
43
+ background: ${t("cascadeselect.filled.hover.background")};
44
+ }
45
+
46
+ .p-cascadeselect.p-variant-filled.p-focus {
47
+ background: ${t("cascadeselect.filled.focus.background")};
48
+ }
49
+
50
+ .p-cascadeselect.p-disabled {
51
+ opacity: 1;
52
+ background: ${t("cascadeselect.disabled.background")};
53
+ }
54
+
55
+ .p-cascadeselect-dropdown {
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ flex-shrink: 0;
60
+ background: transparent;
61
+ color: ${t("cascadeselect.dropdown.color")};
62
+ width: ${t("cascadeselect.dropdown.width")};
63
+ border-start-end-radius: ${t("border.radius.md")};
64
+ border-end-end-radius: ${t("border.radius.md")};
65
+ }
66
+
67
+ .p-cascadeselect-label {
68
+ display: block;
69
+ white-space: nowrap;
70
+ overflow: hidden;
71
+ flex: 1 1 auto;
72
+ width: 1%;
73
+ text-overflow: ellipsis;
74
+ cursor: pointer;
75
+ padding: ${t("cascadeselect.padding.y")} ${t("cascadeselect.padding.x")};
76
+ background: transparent;
77
+ border: 0 none;
78
+ outline: 0 none;
79
+ }
80
+
81
+ .p-cascadeselect-label.p-placeholder {
82
+ color: ${t("cascadeselect.placeholder.color")};
83
+ }
84
+
85
+ p-cascadeselect.ng-invalid.ng-dirty .p-cascadeselect-label.p-placeholder {
86
+ color: ${t("cascadeselect.invalid.placeholder.color")};
87
+ }
88
+
89
+ .p-cascadeselect.p-disabled .p-cascadeselect-label {
90
+ color: ${t("cascadeselect.disabled.color")};
91
+ }
92
+
93
+ .p-cascadeselect-label-empty {
94
+ overflow: hidden;
95
+ visibility: hidden;
96
+ }
97
+
98
+ .p-cascadeselect-fluid {
99
+ display: flex;
100
+ }
101
+
102
+ .p-cascadeselect-fluid .p-cascadeselect-label {
103
+ width: 1%;
104
+ }
105
+
106
+ .p-cascadeselect-overlay {
107
+ background: ${t("cascadeselect.overlay.background")};
108
+ color: ${t("cascadeselect.overlay.color")};
109
+ border: 1px solid ${t("cascadeselect.overlay.border.color")};
110
+ border-radius: ${t("cascadeselect.overlay.border.radius")};
111
+ box-shadow: ${t("cascadeselect.overlay.shadow")};
112
+ }
113
+
114
+ .p-cascadeselect .p-cascadeselect-overlay {
115
+ min-width: 100%;
116
+ }
117
+
118
+ .p-cascadeselect-option-list {
119
+ display: none;
120
+ min-width: 100%;
121
+ position: absolute;
122
+ z-index: 1;
123
+ }
124
+
125
+ .p-cascadeselect-list {
126
+ min-width: 100%;
127
+ margin: 0;
128
+ padding: 0;
129
+ list-style-type: none;
130
+ padding: ${t("cascadeselect.list.padding")};
131
+ display: flex;
132
+ flex-direction: column;
133
+ gap: ${t("cascadeselect.list.gap")}
134
+ }
135
+
136
+ .p-cascadeselect-option {
137
+ cursor: pointer;
138
+ font-weight: normal;
139
+ white-space: nowrap;
140
+ border: 0 none;
141
+ color: ${t("cascadeselect.option.color")};
142
+ background: transparent;
143
+ transition: background ${t("cascadeselect.transition.duration")}, color ${t("cascadeselect.transition.duration")}, border-color ${t("cascadeselect.transition.duration")}, box-shadow ${t("cascadeselect.transition.duration")}, outline-color ${t("cascadeselect.transition.duration")};
144
+ border-radius: ${t("cascadeselect.option.border.radius")};
145
+ }
146
+
147
+ .p-cascadeselect-option-active {
148
+ overflow: visible;
149
+ }
150
+
151
+ .p-cascadeselect-option-active > .p-cascadeselect-option-content {
152
+ background: ${t("cascadeselect.option.focus.background")};
153
+ color: ${t("cascadeselect.option.focus.color")};
154
+ }
155
+
156
+ .p-cascadeselect-option:not(.p-cascadeselect-option-selected):not(.p-disabled).p-focus > .p-cascadeselect-option-content {
157
+ background: ${t("cascadeselect.option.focus.background")};
158
+ color: ${t("cascadeselect.option.focus.color")};
159
+ }
160
+
161
+ .p-cascadeselect-option:not(.p-cascadeselect-option-selected):not(.p-disabled).p-focus > .p-cascadeselect-option-content > .p-cascadeselect-group-icon-container > .p-cascadeselect-group-icon {
162
+ color: ${t("cascadeselect.option.icon.focus.color")};
163
+ }
164
+
165
+ .p-cascadeselect-option-selected > .p-cascadeselect-option-content {
166
+ background: ${t("cascadeselect.option.selected.background")};
167
+ color: ${t("cascadeselect.option.selected.color")};
168
+ }
169
+
170
+ .p-cascadeselect-option-selected.p-focus > .p-cascadeselect-option-content {
171
+ background: ${t("cascadeselect.option.selected.focus.background")};
172
+ color: ${t("cascadeselect.option.selected.focus.color")};
173
+ }
174
+
175
+ .p-cascadeselect-option-active > .p-cascadeselect-option-list {
176
+ inset-inline-start: 100%;
177
+ top: 0;
178
+ }
179
+
180
+ .p-cascadeselect-option-content {
181
+ display: flex;
182
+ align-items: center;
183
+ justify-content: space-between;
184
+ overflow: hidden;
185
+ position: relative;
186
+ padding: ${t("cascadeselect.option.padding")};
187
+ border-radius: ${t("cascadeselect.option.border.radius")};
188
+ transition: background ${t("cascadeselect.transition.duration")}, color ${t("cascadeselect.transition.duration")}, border-color ${t("cascadeselect.transition.duration")}, box-shadow ${t("cascadeselect.transition.duration")}, outline-color ${t("cascadeselect.transition.duration")};
189
+ }
190
+
191
+ .p-cascadeselect-group-icon {
192
+ font-size: ${t("cascadeselect.option.icon.size")};
193
+ width: ${t("cascadeselect.option.icon.size")};
194
+ height: ${t("cascadeselect.option.icon.size")};
195
+ color: ${t("cascadeselect.option.icon.color")};
196
+ }
197
+
198
+ .p-cascadeselect-group-icon:dir(rtl) {
199
+ transform: rotate(180deg);
200
+ }
201
+
202
+ .p-cascadeselect-mobile-active .p-cascadeselect-option-list {
203
+ position: static;
204
+ box-shadow: none;
205
+ border: 0 none;
206
+ padding-inline-start: 1rem;
207
+ padding-inline-end: 0;
208
+ }
209
+
210
+ .p-cascadeselect-mobile-active .p-cascadeselect-group-icon {
211
+ transition: transform 0.2s;
212
+ transform: rotate(90deg);
213
+ }
214
+
215
+ .p-cascadeselect-mobile-active .p-cascadeselect-option-active > .p-cascadeselect-option-content .p-cascadeselect-group-icon {
216
+ transform: rotate(-90deg);
217
+ }
218
+
219
+ .p-cascadeselect-sm .p-cascadeselect-label {
220
+ font-size: ${t("cascadeselect.sm.font.size")};
221
+ padding-block: ${t("cascadeselect.sm.padding.y")};
222
+ padding-inline: ${t("cascadeselect.sm.padding.x")};
223
+ }
224
+
225
+ .p-cascadeselect-sm .p-cascadeselect-dropdown .p-icon {
226
+ font-size: ${t("cascadeselect.sm.font.size")};
227
+ width: ${t("cascadeselect.sm.font.size")};
228
+ height: ${t("cascadeselect.sm.font.size")};
229
+ }
230
+
231
+ .p-cascadeselect-lg .p-cascadeselect-label {
232
+ font-size: ${t("cascadeselect.lg.font.size")};
233
+ padding-block: ${t("cascadeselect.lg.padding.y")};
234
+ padding-inline: ${t("cascadeselect.lg.padding.x")};
235
+ }
236
+
237
+ .p-cascadeselect-lg .p-cascadeselect-dropdown .p-icon {
238
+ font-size: ${t("cascadeselect.lg.font.size")};
239
+ width: ${t("cascadeselect.lg.font.size")};
240
+ height: ${t("cascadeselect.lg.font.size")};
241
+ }
242
+
243
+ /* For PrimeNG */
244
+ .p-cascadeselect-clear-icon {
245
+ cursor: pointer;
246
+ display: flex;
247
+ align-items: center;
248
+ justify-content: center;
249
+ flex-shrink: 0;
250
+ background: transparent;
251
+ color: ${t("cascadeselect.clear.icon.color")};
252
+ }`,bi={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},Oi={root:({instance:t,props:s})=>["p-cascadeselect p-component p-inputwrapper",{"p-cascadeselect-mobile":t.queryMatches(),"p-disabled":s.disabled,"p-invalid":s.invalid,"p-variant-filled":s.variant?s.variant==="filled":t.config.inputStyle==="filled"||t.config.inputVariant==="filled","p-focus":t.focused,"p-inputwrapper-filled":s.modelValue,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-cascadeselect-open":t.overlayVisible,"p-cascadeselect-fluid":s.fluid,"p-cascadeselect-sm p-inputfield-sm":s.size==="small","p-cascadeselect-lg p-inputfield-lg":s.size==="large"}],label:({instance:t,props:s})=>["p-cascadeselect-label",{"p-placeholder":t.label===s.placeholder,"p-cascadeselect-label-empty":!t.$slots.value&&(t.label==="p-emptylabel"||t.label.length===0)}],dropdown:"p-cascadeselect-dropdown",loadingIcon:"p-cascadeselect-loading-icon",dropdownIcon:"p-cascadeselect-dropdown-icon",overlay:({instance:t})=>["p-cascadeselect-overlay p-component",{"p-cascadeselect-mobile-active":t.queryMatches()}],listContainer:"p-cascadeselect-list-container",list:"p-cascadeselect-list",option:({instance:t,processedOption:s})=>["p-cascadeselect-option",{"p-cascadeselect-option-active":t.isOptionActive(s),"p-cascadeselect-option-selected":t.isOptionSelected(s),"p-focus":t.isOptionFocused(s),"p-disabled":t.isOptionDisabled(s)}],optionContent:"p-cascadeselect-option-content",optionText:"p-cascadeselect-option-text",groupIcon:"p-cascadeselect-group-icon",optionList:"p-cascadeselect-overlay p-cascadeselect-option-list"},Ot=(()=>{class t extends rt{name="cascadeselect";theme=yi;classes=Oi;inlineStyles=bi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=ke(t)))(i||t)}})();static \u0275prov=Te({token:t,factory:t.\u0275fac})}return t})();var vi={provide:qe,useExisting:Ie(()=>j),multi:!0},Ci=(()=>{class t extends Ce{cascadeselect;role;selectId;activeOptionPath;optionDisabled;focusedOptionId;options;optionGroupChildren;optionTemplate;groupicon;level=0;optionLabel;optionValue;optionGroupLabel;dirty;root;onChange=new w;onFocusChange=new w;onFocusEnterChange=new w;get listLabel(){return this.config.getTranslation(ut.ARIA).listLabel}constructor(e){super(),this.cascadeselect=e}ngOnInit(){super.ngOnInit(),this.root||this.position()}onOptionClick(e,n){this.onChange.emit({originalEvent:e,processedOption:n,isFocus:!0})}onOptionMouseEnter(e,n){this.onFocusEnterChange.emit({originalEvent:e,processedOption:n})}onOptionMouseMove(e,n){this.onFocusChange.emit({originalEvent:e,processedOption:n})}getOptionId(e){return`${this.selectId}_${e.key}`}getOptionLabel(e){return this.optionLabel?M(e.option,this.optionLabel):e.option}getOptionValue(e){return this.optionValue?M(e.option,this.optionValue):e.option}getOptionLabelToRender(e){return this.isOptionGroup(e)?this.getOptionGroupLabel(e):this.getOptionLabel(e)}isOptionDisabled(e){return this.optionDisabled?M(e.option,this.optionDisabled):!1}getOptionGroupLabel(e){return this.optionGroupLabel?M(e.option,this.optionGroupLabel):null}getOptionGroupChildren(e){return e.children}isOptionGroup(e){return C(e.children)}isOptionSelected(e){return Oe(this.cascadeselect?.modelValue(),e?.option)}isOptionActive(e){return this.activeOptionPath.some(n=>n.key===e.key)}isOptionFocused(e){return this.focusedOptionId===this.getOptionId(e)}getItemClass(e){return{"p-cascadeselect-option":!0,"p-cascadeselect-option-group":this.isOptionGroup(e),"p-cascadeselect-option-active":this.isOptionActive(e),"p-cascadeselect-option-selected":this.isOptionSelected(e),"p-focus":this.isOptionFocused(e),"p-disabled":this.isOptionDisabled(e)}}position(){let e=this.el.nativeElement.parentElement,n=st(e),i=tt(),o=this.el.nativeElement.children[0].offsetParent?this.el.nativeElement.children[0].offsetWidth:at(this.el.nativeElement.children[0]),a=it(e.children[0]);parseInt(n.left,10)+a+o>i.width-nt()&&(this.el.nativeElement.children[0].style.left="-200%")}static \u0275fac=function(n){return new(n||t)(re(j))};static \u0275cmp=A({type:t,selectors:[["p-cascadeSelectSub"],["p-cascadeselect-sub"]],inputs:{role:"role",selectId:"selectId",activeOptionPath:"activeOptionPath",optionDisabled:"optionDisabled",focusedOptionId:"focusedOptionId",options:"options",optionGroupChildren:"optionGroupChildren",optionTemplate:"optionTemplate",groupicon:"groupicon",level:[2,"level","level",me],optionLabel:"optionLabel",optionValue:"optionValue",optionGroupLabel:"optionGroupLabel",dirty:[2,"dirty","dirty",S],root:[2,"root","root",S]},outputs:{onChange:"onChange",onFocusChange:"onFocusChange",onFocusEnterChange:"onFocusEnterChange"},features:[pe],decls:2,vars:4,consts:[["defaultOptionTemplate",""],["aria-orientation","horizontal",1,"p-cascadeselect-list"],["ngFor","",3,"ngForOf"],["role","treeitem",3,"ngClass","id"],["pRipple","",1,"p-cascadeselect-option-content",3,"click","mouseenter","mousemove"],[4,"ngIf","ngIfElse"],["class","p-cascadeselect-group-icon",4,"ngIf"],["class","p-cascadeselect-list p-cascadeselect-overlay p-cascadeselect-option-list",3,"role","selectId","focusedOptionId","activeOptionPath","options","optionLabel","optionValue","level","optionGroupLabel","optionGroupChildren","dirty","optionTemplate","onChange","onFocusChange","onFocusEnterChange",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-cascadeselect-option-text"],[1,"p-cascadeselect-group-icon"],[4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-cascadeselect-list","p-cascadeselect-overlay","p-cascadeselect-option-list",3,"onChange","onFocusChange","onFocusEnterChange","role","selectId","focusedOptionId","activeOptionPath","options","optionLabel","optionValue","level","optionGroupLabel","optionGroupChildren","dirty","optionTemplate"]],template:function(n,i){n&1&&(d(0,"ul",1),m(1,Ft,7,13,"ng-template",2),u()),n&2&&(_("role",i.role)("data-pc-section",i.level===0?"list":"sublist")("aria-label",i.listLabel),c(),r("ngForOf",i.options))},dependencies:[t,W,_e,Ke,ye,be,yt,ft,U],encapsulation:2,changeDetection:0})}return t})(),j=(()=>{class t extends Ce{overlayService;id;searchMessage;emptyMessage;selectionMessage;emptySearchMessage;emptySelectionMessage;searchLocale;optionDisabled;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;styleClass;style;options;optionLabel;optionValue;optionGroupLabel;optionGroupChildren;placeholder;value;dataKey;inputId;size;tabindex=0;ariaLabelledBy;inputLabel;ariaLabel;appendTo;disabled;showClear=!1;panelStyleClass;panelStyle;overlayOptions;autofocus;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}variant;loading=!1;loadingIcon;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}fluid=!1;breakpoint="960px";onChange=new w;onGroupChange=new w;onShow=new w;onHide=new w;onClear=new w;onBeforeShow=new w;onBeforeHide=new w;onFocus=new w;onBlur=new w;focusInputViewChild;containerViewChild;panelViewChild;overlayViewChild;valueTemplate;optionTemplate;headerTemplate;footerTemplate;triggerIconTemplate;loadingIconTemplate;groupIconTemplate;clearIconTemplate;_valueTemplate;_optionTemplate;_headerTemplate;_footerTemplate;_triggerIconTemplate;_loadingIconTemplate;_groupIconTemplate;_clearIconTemplate;_showTransitionOptions="";_hideTransitionOptions="";selectionPath=null;focused=!1;overlayVisible=!1;clicked=!1;dirty=!1;searchValue;searchTimeout;onModelChange=()=>{};onModelTouched=()=>{};focusedOptionInfo=V({index:-1,level:0,parentKey:""});activeOptionPath=V([]);modelValue=V(null);processedOptions=[];_componentStyle=K(Ot);initialized=!1;get containerClass(){return{"p-cascadeselect p-component p-inputwrapper":!0,"p-cascadeselect-clearable":this.showClear&&!this.disabled,"p-cascadeselect-mobile":this.queryMatches(),"p-disabled":this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-inputwrapper-focus":this.focused||this.overlayVisible,"p-cascadeselect-open":this.overlayVisible,"p-cascadeselect-fluid":this.hasFluid,"p-cascadeselect-sm p-inputfield-sm":this.size==="small","p-cascadeselect-lg p-inputfield-lg":this.size==="large"}}get labelClass(){return{"p-cascadeselect-label":!0,"p-placeholder":this.label()===this.placeholder,"p-cascadeselect-label-empty":!this.value&&(this.label()==="p-emptylabel"||this.label().length===0)}}get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}get focusedOptionId(){return this.focusedOptionInfo().index!==-1?`${this.id}${C(this.focusedOptionInfo().parentKey)?"_"+this.focusedOptionInfo().parentKey:""}_${this.focusedOptionInfo().index}`:null}get filled(){return typeof this.modelValue()=="string"?!!this.modelValue():this.modelValue()||this.modelValue()!=null||this.modelValue()!=null}get searchResultMessageText(){return C(this.visibleOptions())?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptySearchMessage||this.config.translation.emptySearchMessage||""}get emptyMessageText(){return this.emptyMessage||this.config.translation.emptyMessage||""}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}","1"):this.emptySelectionMessageText}visibleOptions=ge(()=>{let e=this.activeOptionPath().find(n=>n.key===this.focusedOptionInfo().parentKey);return e?e.children:this.processedOptions});label=ge(()=>{let e=this.placeholder||"p-emptylabel";if(this.hasSelectedOption()){let n=this.findOptionPathByValue(this.modelValue(),null),i=C(n)?n[n.length-1]:null;return i?this.getOptionLabel(i.option):e}return e});get _label(){let e=this.placeholder||"p-emptylabel";if(this.hasSelectedOption()){let n=this.findOptionPathByValue(this.modelValue(),null),i=C(n)?n[n.length-1]:null;return i?this.getOptionLabel(i.option):e}return e}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"value":this._valueTemplate=e.template;break;case"option":this._optionTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"optiongroupicon":this._groupIconTemplate=e.template;break}})}ngOnChanges(e){super.ngOnChanges(e),e.options&&(this.processedOptions=this.createProcessedOptions(e.options.currentValue||[]),this.updateModel(null))}hasSelectedOption(){return C(this.modelValue())}createProcessedOptions(e,n=0,i={},o=""){let a=[];return e&&e.forEach((l,b)=>{let G=(o!==""?o+"_":"")+b,E={option:l,index:b,level:n,key:G,parent:i,parentKey:o};E.children=this.createProcessedOptions(this.getOptionGroupChildren(l,n),n+1,E,G),a.push(E)}),a}onInputFocus(e){this.disabled||(this.focused=!0,this.onFocus.emit(e))}onInputBlur(e){this.focused=!1,this.focusedOptionInfo.set({indeX:-1,level:0,parentKey:""}),this.searchValue="",this.onModelTouched(),this.onBlur.emit(e)}onInputKeyDown(e){if(this.disabled||this.loading){e.preventDefault();return}let n=e.metaKey||e.ctrlKey;switch(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"Space":this.onSpaceKey(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"PageDown":case"PageUp":case"ShiftLeft":case"ShiftRight":break;default:!n&&ct(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key));break}this.clicked=!1}onArrowDownKey(e){if(!this.overlayVisible)this.show();else{let n=this.focusedOptionInfo().index!==-1?this.findNextOptionIndex(this.focusedOptionInfo().index):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n,!0)}e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(this.focusedOptionInfo().index!==-1){let n=this.visibleOptions[this.focusedOptionInfo().index];!this.isProccessedOptionGroup(n)&&this.onOptionChange({originalEvent:e,processedOption:n})}this.overlayVisible&&this.hide(),e.preventDefault()}else{let n=this.focusedOptionInfo().index!==-1?this.findPrevOptionIndex(this.focusedOptionInfo().index):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n,!0),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e){if(this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionInfo().index],i=this.activeOptionPath().find(l=>l.key===n.parentKey),o=this.focusedOptionInfo().parentKey===""||i&&i.key===this.focusedOptionInfo().parentKey,a=ce(n.parent);if(o){let l=this.activeOptionPath().filter(b=>b.parentKey!==this.focusedOptionInfo().parentKey);this.activeOptionPath.set(l)}a||(this.focusedOptionInfo.set({index:-1,parentKey:i?i.parentKey:""}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}}onArrowRightKey(e){if(this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionInfo().index];this.isProccessedOptionGroup(n)&&(this.activeOptionPath().some(a=>n.key===a.key)?(this.focusedOptionInfo.set({index:-1,parentKey:n.key}),this.searchValue="",this.onArrowDownKey(e)):this.onOptionChange({originalEvent:e,processedOption:n})),e.preventDefault()}}onHomeKey(e){this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show(),e.preventDefault()}onEndKey(e){this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show(),e.preventDefault()}onEnterKey(e){if(!this.overlayVisible)this.focusedOptionInfo.set(F(L({},this.focusedOptionInfo()),{index:-1})),this.onArrowDownKey(e);else if(this.focusedOptionInfo().index!==-1){let n=this.visibleOptions()[this.focusedOptionInfo().index],i=this.isProccessedOptionGroup(n);this.onOptionClick({originalEvent:e,processedOption:n}),!i&&this.hide()}e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.overlayVisible&&this.hide(e,!0),e.preventDefault()}onTabKey(e){if(this.focusedOptionInfo().index!==-1){let n=this.visibleOptions()[this.focusedOptionInfo().index];!this.isProccessedOptionGroup(n)&&this.onOptionChange({originalEvent:e,processedOption:n})}this.overlayVisible&&this.hide()}onBackspaceKey(e){C(this.modelValue())&&this.showClear&&this.clear(),e.stopPropagation()}equalityKey(){return this.optionValue?null:this.dataKey}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.initialized&&this.onChange.emit({originalEvent:n,value:e})}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionInfo().index=this.findFirstFocusedOptionIndex(),this.onOptionChange({originalEvent:null,processedOption:this.visibleOptions()[this.focusedOptionInfo().index],isHide:!1}),!this.overlayVisible&&this.focusedOptionInfo.set({index:-1,level:0,parentKey:""}))}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId,i=ot(this.panelViewChild?.nativeElement,`li[id="${n}"]`);i&&i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"start"})}changeFocusedOptionIndex(e,n,i){let o=this.focusedOptionInfo();o.index!==n&&(this.focusedOptionInfo.set(F(L({},o),{index:n})),this.scrollInView(),this.focusOnHover&&this.onOptionClick({originalEvent:e,processedOption:this.visibleOptions()[n],isHide:!1,preventSelection:i}),this.selectOnFocus&&this.onOptionChange({originalEvent:e,processedOption:this.visibleOptions()[n],isHide:!1}))}matchMediaListener;onOptionSelect(e){let{originalEvent:n,value:i,isHide:o}=e,a=this.getOptionValue(i),l=this.activeOptionPath();l.forEach(b=>b.selected=!0),this.activeOptionPath.set(l),this.updateModel(a,n),o&&this.hide(e,!0)}onOptionGroupSelect(e){this.dirty=!0,this.onGroupChange.emit(e)}onContainerClick(e){this.disabled||this.loading||(this.overlayViewChild?.el?.nativeElement?.contains(e.target)||(this.overlayVisible?this.hide():this.show(),this.focusInputViewChild?.nativeElement.focus()),this.clicked=!0)}isOptionMatched(e){return this.isValidOption(e)&&this.getProccessedOptionLabel(e).toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale))}isOptionDisabled(e){return this.optionDisabled?M(e,this.optionDisabled):!1}isValidOption(e){return!!e&&!this.isOptionDisabled(e.option)}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isSelected(e){return this.activeOptionPath().some(n=>n.key===e.key)}findOptionPathByValue(e,n,i=0){if(n=n||i===0&&this.processedOptions,!n)return null;if(ce(e))return[];for(let o=0;o<n.length;o++){let a=n[o];if(Oe(e,this.getOptionValue(a.option),this.equalityKey()))return[a];let l=this.findOptionPathByValue(e,a.children,i+1);if(l)return l.unshift(a),l}}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return ve(this.visibleOptions(),e=>this.isValidOption(e))}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?ve(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findSelectedOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e))}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,o=!1,a=this.focusedOptionInfo();return a.index!==-1?(i=this.visibleOptions().slice(a.index).findIndex(l=>this.isOptionMatched(l)),i=i===-1?this.visibleOptions().slice(0,a.index).findIndex(l=>this.isOptionMatched(l)):i+a.index):i=this.visibleOptions().findIndex(l=>this.isOptionMatched(l)),i!==-1&&(o=!0),i===-1&&a.index===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}hide(e,n=!1){let i=()=>{this.overlayVisible=!1,this.clicked=!1,this.activeOptionPath.set([]),this.focusedOptionInfo.set({index:-1,level:0,parentKey:""}),n&&se(this.focusInputViewChild.nativeElement),this.onHide.emit(e),this.cd.markForCheck()};setTimeout(()=>{i()},0)}show(e,n=!1){this.onShow.emit(e),this.overlayVisible=!0;let i=this.hasSelectedOption()?this.findOptionPathByValue(this.modelValue()):this.activeOptionPath();this.activeOptionPath.set(i);let o;if(this.hasSelectedOption()&&C(this.activeOptionPath())){let a=this.activeOptionPath()[this.activeOptionPath().length-1];o={index:a.index,level:a.level,parentKey:a.parentKey}}else o={index:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),level:0,parentKey:""};this.focusedOptionInfo.set(o),n&&se(this.focusInputViewChild.nativeElement)}clear(e){C(this.modelValue())&&this.showClear&&(this.updateModel(null),this.focusedOptionInfo.set({index:-1,level:0,parentKey:""}),this.activeOptionPath.set([]),this.onClear.emit()),e&&e.stopPropagation()}getOptionLabel(e){return this.optionLabel?M(e,this.optionLabel):e}getOptionValue(e){return this.optionValue?M(e,this.optionValue):e}getOptionGroupLabel(e){return this.optionGroupLabel?M(e,this.optionGroupLabel):null}getOptionGroupChildren(e,n){return M(e,this.optionGroupChildren[n])}isOptionGroup(e,n){return Object.prototype.hasOwnProperty.call(e,this.optionGroupChildren[n])}isProccessedOptionGroup(e){return C(e?.children)}getProccessedOptionLabel(e){return this.isProccessedOptionGroup(e)?this.getOptionGroupLabel(e.option):this.getOptionLabel(e.option)}constructor(e){super(),this.overlayService=e,De(()=>{let n=this.activeOptionPath();C(n)&&this.overlayViewChild.alignOverlay()})}query;queryMatches=V(!1);mobileActive=V(!1);onOptionChange(e){let{processedOption:n,type:i}=e;if(ce(n))return;let{index:o,key:a,level:l,parentKey:b,children:G}=n,E=C(G),D=this.activeOptionPath().filter(X=>X.parentKey!==b&&X.parentKey!==a);this.focusedOptionInfo.set({index:o,level:l,parentKey:b}),!(i=="hover"&&this.queryMatches())&&(E&&D.push(n),this.activeOptionPath.set([...D]))}onOptionClick(e){let{originalEvent:n,processedOption:i,isFocus:o,isHide:a,preventSelection:l}=e,{index:b,key:G,level:E,parentKey:D}=i,X=this.isProccessedOptionGroup(i);if(this.isSelected(i)){let J=this.activeOptionPath().filter(Y=>G!==Y.key&&G.startsWith(Y.key));this.activeOptionPath.set([...J]),this.focusedOptionInfo.set({index:b,level:E,parentKey:D})}else if(X)this.onOptionChange(e),this.onOptionGroupSelect({originalEvent:n,value:i.option,isFocus:!1});else{let J=this.activeOptionPath().filter(Y=>Y.parentKey!==D);J.push(i),this.focusedOptionInfo.set({index:b,level:E,parentKey:D}),(!l||i?.children.length!==0)&&(this.activeOptionPath.set([...J]),this.onOptionSelect({originalEvent:n,value:i.option,isHide:o}))}o&&se(this.focusInputViewChild.nativeElement)}onOptionMouseEnter(e){this.focusOnHover&&(this.dirty||!this.dirty&&C(this.modelValue())?this.onOptionChange(F(L({},e),{type:"hover"})):!this.dirty&&e.processedOption.level===0&&this.onOptionClick(F(L({},e),{type:"hover"})))}onOptionMouseMove(e){this.focused&&this.focusOnHover&&this.changeFocusedOptionIndex(e,e.processedOption.index)}ngOnInit(){super.ngOnInit(),this.id=this.id||lt("pn_id_"),this.autoUpdateModel(),this.bindMatchMediaListener()}ngAfterViewInit(){super.ngAfterViewInit(),this.initialized=!0}bindMatchMediaListener(){if(!this.matchMediaListener){let e=this.document.defaultView;if(e&&e.matchMedia){let n=e.matchMedia(`(max-width: ${this.breakpoint})`);this.query=n,this.queryMatches.set(n?.matches),this.matchMediaListener=()=>{this.queryMatches.set(n?.matches),this.mobileActive.set(!1)},this.query.addEventListener("change",this.matchMediaListener)}}}unbindMatchMediaListener(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)}onOverlayAnimationDone(e){switch(e.toState){case"void":this.dirty=!1;break}}writeValue(e){this.value=e,this.updateModel(e),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}ngOnDestroy(){this.matchMediaListener&&this.unbindMatchMediaListener()}static \u0275fac=function(n){return new(n||t)(re(pt))};static \u0275cmp=A({type:t,selectors:[["p-cascadeSelect"],["p-cascadeselect"],["p-cascade-select"]],contentQueries:function(n,i,o){if(n&1&&(k(o,Gt,4),k(o,Pt,4),k(o,$t,4),k(o,Dt,4),k(o,Kt,4),k(o,Rt,4),k(o,At,4),k(o,Bt,4),k(o,dt,4)),n&2){let a;O(a=v())&&(i.valueTemplate=a.first),O(a=v())&&(i.optionTemplate=a.first),O(a=v())&&(i.headerTemplate=a.first),O(a=v())&&(i.footerTemplate=a.first),O(a=v())&&(i.triggerIconTemplate=a.first),O(a=v())&&(i.loadingIconTemplate=a.first),O(a=v())&&(i.groupIconTemplate=a.first),O(a=v())&&(i.clearIconTemplate=a.first),O(a=v())&&(i.templates=a)}},viewQuery:function(n,i){if(n&1&&(B(Nt,5),B(Ht,5),B(qt,5),B(zt,5)),n&2){let o;O(o=v())&&(i.focusInputViewChild=o.first),O(o=v())&&(i.containerViewChild=o.first),O(o=v())&&(i.panelViewChild=o.first),O(o=v())&&(i.overlayViewChild=o.first)}},inputs:{id:"id",searchMessage:"searchMessage",emptyMessage:"emptyMessage",selectionMessage:"selectionMessage",emptySearchMessage:"emptySearchMessage",emptySelectionMessage:"emptySelectionMessage",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:[2,"focusOnHover","focusOnHover",S],selectOnFocus:[2,"selectOnFocus","selectOnFocus",S],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",S],styleClass:"styleClass",style:"style",options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",placeholder:"placeholder",value:"value",dataKey:"dataKey",inputId:"inputId",size:"size",tabindex:[2,"tabindex","tabindex",me],ariaLabelledBy:"ariaLabelledBy",inputLabel:"inputLabel",ariaLabel:"ariaLabel",appendTo:"appendTo",disabled:[2,"disabled","disabled",S],showClear:[2,"showClear","showClear",S],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",overlayOptions:"overlayOptions",autofocus:[2,"autofocus","autofocus",S],showTransitionOptions:"showTransitionOptions",variant:"variant",loading:[2,"loading","loading",S],loadingIcon:"loadingIcon",hideTransitionOptions:"hideTransitionOptions",fluid:[2,"fluid","fluid",S],breakpoint:"breakpoint"},outputs:{onChange:"onChange",onGroupChange:"onGroupChange",onShow:"onShow",onHide:"onHide",onClear:"onClear",onBeforeShow:"onBeforeShow",onBeforeHide:"onBeforeHide",onFocus:"onFocus",onBlur:"onBlur"},features:[ie([vi,Ot]),pe,Ve],decls:20,vars:34,consts:[["container",""],["focusInput",""],["defaultValueTemplate",""],["elseBlock",""],["overlay",""],["content",""],["panel",""],[3,"click","ngClass","ngStyle"],[1,"p-hidden-accessible"],["readonly","","type","text","role","combobox","aria-haspopup","tree",3,"focus","blur","keydown","disabled","placeholder","tabindex","pAutoFocus"],[3,"ngClass"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","listbox",1,"p-cascadeselect-dropdown"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[3,"visibleChange","onAnimationDone","onBeforeShow","onShow","onBeforeHide","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-cascadeselect-clear-icon",3,"click",4,"ngIf"],[1,"p-cascadeselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],[3,"styleClass",4,"ngIf"],["class","p-cascadeselect-dropdown-icon",4,"ngIf"],[3,"styleClass"],[1,"p-cascadeselect-dropdown-icon"],[3,"ngClass","ngStyle"],[1,"p-cascadeselect-list-container"],[3,"onChange","onFocusChange","onFocusEnterChange","options","selectId","focusedOptionId","activeOptionPath","optionLabel","optionValue","level","optionTemplate","groupicon","optionGroupLabel","optionGroupChildren","optionDisabled","root","dirty","role"]],template:function(n,i){if(n&1){let o=T();d(0,"div",7,0),y("click",function(l){return h(o),f(i.onContainerClick(l))}),d(2,"div",8)(3,"input",9,1),y("focus",function(l){return h(o),f(i.onInputFocus(l))})("blur",function(l){return h(o),f(i.onInputBlur(l))})("keydown",function(l){return h(o),f(i.onInputKeyDown(l))}),u()(),d(5,"span",10),m(6,jt,2,5,"ng-container",11)(7,Xt,1,1,"ng-template",null,2,Q),u(),m(9,ti,3,2,"ng-container",12),d(10,"div",13),m(11,ci,3,2,"ng-container",11)(12,ui,2,2,"ng-template",null,3,Q),u(),d(14,"span",14),g(15),u(),d(16,"p-overlay",15,4),q("visibleChange",function(l){return h(o),H(i.overlayVisible,l)||(i.overlayVisible=l),f(l)}),y("onAnimationDone",function(l){return h(o),f(i.onOverlayAnimationDone(l))})("onBeforeShow",function(l){return h(o),f(i.onBeforeShow.emit(l))})("onShow",function(l){return h(o),f(i.show(l))})("onBeforeHide",function(l){return h(o),f(i.onBeforeHide.emit(l))})("onHide",function(l){return h(o),f(i.hide(l))}),m(18,_i,8,26,"ng-template",null,5,Q),u()()}if(n&2){let o,a,l=te(8),b=te(13);Z(i.styleClass),r("ngClass",i.containerClass)("ngStyle",i.style),_("data-pc-name","cascadeselect")("data-pc-section","root"),c(2),_("data-pc-section","hiddenInputWrapper"),c(),r("disabled",i.disabled)("placeholder",i.placeholder)("tabindex",i.disabled?-1:i.tabindex)("pAutoFocus",i.autofocus),_("id",i.inputId)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-expanded",(o=i.overlayVisible)!==null&&o!==void 0?o:!1)("aria-controls",i.overlayVisible?i.id+"_tree":null)("aria-activedescendant",i.focused?i.focusedOptionId:void 0),c(2),r("ngClass",i.labelClass),_("data-pc-section","label"),c(),r("ngIf",i.valueTemplate||i._valueTemplate)("ngIfElse",l),c(3),r("ngIf",i.filled&&!i.disabled&&i.showClear),c(),_("aria-expanded",(a=i.overlayVisible)!==null&&a!==void 0?a:!1)("data-pc-section","dropdownIcon")("aria-hidden",!0),c(),r("ngIf",i.loading)("ngIfElse",b),c(4),$(" ",i.searchResultMessageText," "),c(),N("visible",i.overlayVisible),r("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[W,_e,ye,be,Re,_t,ht,Ci,mt,gt,U],encapsulation:2,changeDetection:0})}return t})(),vt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Me({type:t});static \u0275inj=Se({imports:[j,U,U]})}return t})();var xi=()=>({minWidth:"100%"}),Ii=()=>["Roles"],Ti=t=>({ID:t});function Si(t,s){if(t&1){let e=T();d(0,"button",13),y("click",function(){h(e);let i=p(2);return f(i.onDeleteGroup())}),P(1,"i",14),g(2),u()}if(t&2){let e,n=p(2);c(2),$(" Delete (",(e=n.selectedGroups())==null?null:e.length,") ")}}function Vi(t,s){if(t&1&&(x(0),m(1,Si,3,1,"button",12),I()),t&2){let e,n=p();c(),de(((e=n.selectedGroups())==null?null:e.length)>0?1:-1)}}function ki(t,s){t&1&&(x(0),d(1,"a",15),g(2," Add"),u(),I())}function Mi(t,s){if(t&1){let e=T();x(0),d(1,"th",16)(2,"div",17)(3,"input",18),y("change",function(i){h(e);let o=p(),a=he(0);return f(o.onCheckAllGroups(i==null||i.target==null?null:i.target.checked,a==null?null:a.Data))}),u()()(),I()}}function Ei(t,s){if(t&1){let e=T();x(0),d(1,"td")(2,"div",17)(3,"input",20),q("ngModelChange",function(i){h(e);let o=p().$implicit;return H(o.checked,i)||(o.checked=i),f(i)}),y("ngModelChange",function(){h(e);let i=p(2),o=he(0);return f(i.onSelectGroup(o==null?null:o.Data))}),u()()(),I()}if(t&2){let e=p().$implicit;c(3),N("ngModel",e.checked)}}function Li(t,s){if(t&1&&(d(0,"a",19),g(1),u()),t&2){let e=p().$implicit;r("queryParams",z(2,Ti,e.ID)),c(),$(" ",e.Name," ")}}function Fi(t,s){if(t&1&&(d(0,"span"),g(1),u()),t&2){let e=p().$implicit;c(),R(e.Name)}}function Gi(t,s){if(t&1&&(d(0,"tr"),m(1,Ei,4,1,"ng-container",1),d(2,"td"),m(3,Li,2,4,"a",19)(4,Fi,2,1,"span"),u(),d(5,"td"),g(6),u(),d(7,"td"),g(8),ne(9,"number"),u()()),t&2){let e=s.$implicit,n=p();c(),r("ngxPermissionsOnly",n.userDeleteRole),c(2),de(n.hasUserEditRole()?3:4),c(3),R(e.Description),c(2),R(oe(9,4,e.Count))}}var xn=(()=>{class t{constructor(){this.permissionService=K(Xe),this.groupsService=K(we),this.toastr=K(je),this.groupLoader$=this.groupsService.getGroupsLoader().pipe(le(1)),this.groups$=xe({Count:0,Data:[]}),this.filter=V({PageNumber:1,PageSize:100,Role:null}),this.selectedGroups=V([]),this.userCreateRole=ae.UserAdd,this.userDeleteRole=ae.UserDelete,this.hasUserEditRole=V(!1),this.initGroup(),this.permissionService.hasPermission(ae.UserEdit).then(e=>{this.hasUserEditRole.set(e)})}initGroup(){this.groups$=this.groupsService.getGroups(this.filter()).pipe(le(1))}onCheckAllGroups(e,n){n.forEach(o=>{o.checked=e});let i=n.filter(o=>o.checked);this.selectedGroups.set(i)}onSelectGroup(e){this.selectedGroups.set(e.filter(n=>n.checked))}onDeleteGroup(){if(confirm("Are you sure you want to delete the selected groups?")){let n=this.selectedGroups().map(i=>i.ID);this.groupsService.deleteGroups(n).subscribe({next:()=>{this.selectedGroups.set([]),this.toastr.success("Groups deleted successfully","Success"),this.initGroup()}})}}onNextPage(){this.filter.update(e=>F(L({},e),{PageNumber:e.PageNumber+1})),this.initGroup()}onPrevPage(){this.filter.update(e=>F(L({},e),{PageNumber:e.PageNumber-1})),this.initGroup()}onFilter(){this.initGroup()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-groups"]],features:[ie([we])],decls:31,vars:21,consts:[["headerTitle","Groups",3,"onSubmit","hideSearchBox","hideSearchDropdown"],[4,"ngxPermissionsOnly"],[1,"w-100"],[1,"d-block","fs-5","mb-2"],["appendTo","body","optionLabel","Name","optionGroupLabel","Name","optionValue","ID","placeholder","Select a Role",3,"ngModelChange","options","ngModel","optionGroupChildren"],[1,"container-fluid"],[1,"row","mt-6"],[1,"col-12"],[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","15%"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[1,"btn","btn-danger","me-3"],[1,"btn","btn-danger","me-3",3,"click"],[1,"fa","fa-trash","me-1"],["routerLink","/menu/users/groups/form",1,"btn","btn-success"],[2,"width","5px"],[1,"d-flex"],["type","checkbox",3,"change"],["routerLink","/menu/users/groups/info",3,"queryParams"],["type","checkbox",3,"ngModelChange","ngModel"]],template:function(n,i){if(n&1){let o=T();ue(0),ne(1,"async"),ue(2),ne(3,"async"),d(4,"mainpanel",0),y("onSubmit",function(){return h(o),f(i.onFilter())}),d(5,"actions"),m(6,Vi,2,1,"ng-container",1)(7,ki,3,0,"ng-container",1),u(),d(8,"filters")(9,"div",2)(10,"span",3),g(11,"Roles"),u(),d(12,"p-cascadeselect",4),q("ngModelChange",function(l){return h(o),H(i.filter().Role,l)||(i.filter().Role=l),f(l)}),u()()(),d(13,"content")(14,"div",5)(15,"div",6)(16,"div",7)(17,"table",8)(18,"thead",9)(19,"tr"),m(20,Mi,4,0,"ng-container",1),d(21,"th",10),g(22,"Name"),u(),d(23,"th"),g(24,"Description"),u(),d(25,"th"),g(26,"Role Count"),u()()(),d(27,"tbody"),Fe(28,Gi,10,6,"tr",null,Le),u()(),d(30,"app-mat-paginator-no-count",11),y("next",function(){return h(o),f(i.onNextPage())})("previous",function(){return h(o),f(i.onPrevPage())}),u()()()()()()}if(n&2){let o=Pe(oe(1,14,i.groups$)),a=oe(3,17,i.groupLoader$);c(4),r("hideSearchBox",!0)("hideSearchDropdown",!0),c(2),r("ngxPermissionsOnly",i.userDeleteRole),c(),r("ngxPermissionsOnly",i.userCreateRole),c(5),Ee(fe(19,xi)),r("options",a==null?null:a.Options),N("ngModel",i.filter().Role),r("optionGroupChildren",fe(20,Ii)),c(8),r("ngxPermissionsOnly",i.userDeleteRole),c(8),Ge(o==null?null:o.Data),c(2),r("filter",i.filter())("totaldata",o==null||o.Data==null?null:o.Data.length)("paginationTotal",o==null?null:o.Count)("hasClicked",!0)}},dependencies:[W,Ae,Be,et,Ze,He,Ne,bt,vt,j,Ye,Je,Ue,ze,Qe,We],styles:["p-cascadeselect>.p-cascadeselect{width:100%}"]})}}return t})();export{xn as GroupsComponent};