dealposbooks 5.49.4 → 5.51.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 (167) hide show
  1. package/3rdpartylicenses.txt +31 -31
  2. package/{chunk-ELMSU4U7.js → chunk-2ABEICLB.js} +1 -1
  3. package/chunk-2RXAK5B6.js +8 -0
  4. package/chunk-2U3PIWWJ.js +1 -0
  5. package/chunk-32QC4JFI.js +202 -0
  6. package/{chunk-JD3HX7VY.js → chunk-3O7NQ6AZ.js} +1 -1
  7. package/chunk-3RODMLL2.js +1 -0
  8. package/{chunk-2XW2ZOT4.js → chunk-43JH7CKX.js} +1 -1
  9. package/chunk-4GZGUASQ.js +1 -0
  10. package/chunk-52EMI2TW.js +803 -0
  11. package/{chunk-NMU2YBAB.js → chunk-52PEVPZN.js} +1 -1
  12. package/{chunk-DJXQKSLT.js → chunk-5U7KZJ3H.js} +1 -1
  13. package/{chunk-B4C3ZPN6.js → chunk-5VKDAA74.js} +1 -1
  14. package/chunk-5XVZW6BJ.js +1 -0
  15. package/{chunk-HCJK6VTO.js → chunk-6GILMLXA.js} +1 -1
  16. package/chunk-7ET5ZE2L.js +1 -0
  17. package/chunk-7F5JJ627.js +129 -0
  18. package/chunk-7GORVGAV.js +1 -0
  19. package/{chunk-UPSNJEHO.js → chunk-7L5IAWG2.js} +1 -1
  20. package/chunk-AAKZYXG3.js +145 -0
  21. package/chunk-ALLR2NXQ.js +1 -0
  22. package/{chunk-7B7LNBD5.js → chunk-B7TGZ7J3.js} +1 -1
  23. package/chunk-BFEM6LX7.js +2 -0
  24. package/{chunk-EBEY2MBR.js → chunk-BME4Z6DH.js} +1 -1
  25. package/chunk-BT4SLG45.js +1 -0
  26. package/{chunk-WSQPSWDS.js → chunk-BVHTVDYP.js} +1 -1
  27. package/{chunk-E7QWESN4.js → chunk-CN6AT4LE.js} +1 -1
  28. package/chunk-CPAPQNFC.js +1 -0
  29. package/chunk-D5WBKKO2.js +252 -0
  30. package/chunk-DAN3PD7R.js +1 -0
  31. package/chunk-DM2JLWKE.js +1 -0
  32. package/chunk-DM42MH3E.js +1 -0
  33. package/chunk-DZCJWJUG.js +1 -0
  34. package/chunk-E57RWXDG.js +1 -0
  35. package/{chunk-2RRP7JK7.js → chunk-EDYUAYO2.js} +1 -1
  36. package/chunk-ELZ5FFFM.js +1 -0
  37. package/chunk-F4PHXCVU.js +1 -0
  38. package/{chunk-WXIG4CXY.js → chunk-FHJOSHI3.js} +1 -1
  39. package/{chunk-WMZF4DQK.js → chunk-FMAG3RQL.js} +1 -1
  40. package/{chunk-BKTBVFNX.js → chunk-FNGX2XFA.js} +1 -1
  41. package/{chunk-3DBSHDAQ.js → chunk-FTBQKOYS.js} +1 -1
  42. package/{chunk-5DRALZZF.js → chunk-G3BJCT7T.js} +1 -1
  43. package/chunk-GEYRJ2MR.js +1 -0
  44. package/chunk-GGQ7LRWG.js +0 -0
  45. package/{chunk-E6SW7I4D.js → chunk-GIRWHO6Q.js} +1 -1
  46. package/chunk-GN7VAGHH.js +1 -0
  47. package/{chunk-672TXWSC.js → chunk-GQ7SPEZH.js} +1 -1
  48. package/{chunk-PKO36DGM.js → chunk-H7YYGW7V.js} +1 -1
  49. package/{chunk-2VZ7JZIO.js → chunk-HMZX6SME.js} +1 -1
  50. package/chunk-HYOAHRKW.js +1 -0
  51. package/{chunk-PPXXWO4E.js → chunk-II7KELI4.js} +1 -1
  52. package/chunk-ILQI2X5T.js +1 -0
  53. package/{chunk-AD247LWQ.js → chunk-ISIYG4D5.js} +1 -1
  54. package/chunk-J346SEEU.js +1 -0
  55. package/chunk-JBYPGHPN.js +1 -0
  56. package/chunk-JPKZVL57.js +229 -0
  57. package/{chunk-WPJG57AR.js → chunk-JPNJTPYJ.js} +1 -1
  58. package/chunk-JRBGNG24.js +1 -0
  59. package/{chunk-URH77XNK.js → chunk-JWNGZMSE.js} +1 -1
  60. package/{chunk-PGOSR3RI.js → chunk-KARG227P.js} +1 -1
  61. package/chunk-KBJ25I3J.js +1 -0
  62. package/chunk-KJM3M7Y3.js +1 -0
  63. package/chunk-KL3TPLRB.js +2 -0
  64. package/{chunk-QPPFPDWZ.js → chunk-KONCSTVQ.js} +1 -1
  65. package/{chunk-VDXZGF3M.js → chunk-KQZMRRMA.js} +1 -1
  66. package/chunk-KU4BYYJE.js +1 -0
  67. package/{chunk-L3GNPRRN.js → chunk-KXWAD3X4.js} +5 -5
  68. package/chunk-L27GCER2.js +160 -0
  69. package/{chunk-M4SSELXT.js → chunk-L4ENW4RK.js} +1 -1
  70. package/chunk-LF4HTMCE.js +1 -0
  71. package/{chunk-UVSR4LPB.js → chunk-LO4HJ77Y.js} +1 -1
  72. package/chunk-MCR6MBS2.js +1 -0
  73. package/chunk-MGIEURA2.js +193 -0
  74. package/chunk-MHM3ED4J.js +130 -0
  75. package/{chunk-VKNINE5Q.js → chunk-MJGBBYIO.js} +1 -1
  76. package/chunk-MWRTPPEI.js +1 -0
  77. package/chunk-NSMNMKCV.js +1 -0
  78. package/chunk-NTVIX4GB.js +1 -0
  79. package/{chunk-ME4ALIS7.js → chunk-O44DI62I.js} +1 -1
  80. package/chunk-OILVKUFA.js +1 -0
  81. package/chunk-OKT36WED.js +1 -0
  82. package/{chunk-2LNMV22E.js → chunk-OOCLTY27.js} +1 -1
  83. package/{chunk-AN4SAUSA.js → chunk-OW2ND5HU.js} +1 -1
  84. package/chunk-Q4XWXOWE.js +1 -0
  85. package/{chunk-ETNPJTRI.js → chunk-QCGJB7O7.js} +1 -1
  86. package/chunk-QSIXT7W7.js +7 -0
  87. package/chunk-QXE4YYQV.js +1 -0
  88. package/chunk-R45WWOYD.js +1 -0
  89. package/chunk-RFHL2MJ4.js +1 -0
  90. package/chunk-RGVP7KT4.js +1 -0
  91. package/{chunk-F7XGJYCZ.js → chunk-RMHKEGL5.js} +1 -1
  92. package/{chunk-3UAQHNUY.js → chunk-SLD7RSX6.js} +1 -1
  93. package/{chunk-FWAGEKIF.js → chunk-SOD2BIQR.js} +1 -1
  94. package/{chunk-KZHI6PGZ.js → chunk-SVGPDGYN.js} +1 -1
  95. package/{chunk-RM5HLXNW.js → chunk-TAN6GLIH.js} +1 -1
  96. package/chunk-TOAH3PY3.js +1 -0
  97. package/{chunk-D6IS6PE6.js → chunk-U4AN6IWJ.js} +1 -1
  98. package/chunk-V6BSLJMN.js +1 -0
  99. package/chunk-VABCBO2E.js +1 -0
  100. package/{chunk-S27Z7D3D.js → chunk-VM56C6ZV.js} +1 -1
  101. package/{chunk-VFKJMUGN.js → chunk-VQ62YSFR.js} +1 -1
  102. package/{chunk-AMGBUOC4.js → chunk-VSDW2RJ5.js} +1 -1
  103. package/{chunk-U2VDC52W.js → chunk-WL6ZZCYW.js} +1 -1
  104. package/{chunk-FOPCQ346.js → chunk-WPHZJHC6.js} +1 -1
  105. package/{chunk-5B5AMMR3.js → chunk-X6KL7VKV.js} +1 -1
  106. package/chunk-YHLRDTIS.js +1 -0
  107. package/{chunk-CAS5GLLU.js → chunk-YKZN6T5N.js} +1 -1
  108. package/chunk-YMV3SC73.js +1 -0
  109. package/{chunk-ENH6HA3V.js → chunk-YR5KRTHR.js} +1 -1
  110. package/{chunk-MHRSQRHT.js → chunk-ZC7ZENN7.js} +1 -1
  111. package/chunk-ZLBNHUZF.js +1 -0
  112. package/{chunk-KBR5PEJ3.js → chunk-ZOMQLK4A.js} +1 -1
  113. package/index.html +2 -2
  114. package/main-ET3JU27S.js +1 -0
  115. package/package.json +1 -1
  116. package/chunk-23PWXRYN.js +0 -1
  117. package/chunk-2BI7WNJP.js +0 -1
  118. package/chunk-5JNGJ6UW.js +0 -1
  119. package/chunk-6EIUS53G.js +0 -1
  120. package/chunk-6WWXJJID.js +0 -1
  121. package/chunk-AVSCJ22B.js +0 -1
  122. package/chunk-BEZIBXGN.js +0 -1
  123. package/chunk-BF6PW4QM.js +0 -1
  124. package/chunk-BMM5YFHU.js +0 -130
  125. package/chunk-BP4OMNR2.js +0 -8
  126. package/chunk-CFUVIXAX.js +0 -1
  127. package/chunk-CNMK2GSA.js +0 -1
  128. package/chunk-DGACZ747.js +0 -947
  129. package/chunk-DIG4FYVW.js +0 -1
  130. package/chunk-F7PVAVLQ.js +0 -1
  131. package/chunk-FSJNWH2Y.js +0 -1
  132. package/chunk-FZS2ZX6Y.js +0 -1
  133. package/chunk-G4XX7EU2.js +0 -1
  134. package/chunk-GEFAWOOV.js +0 -129
  135. package/chunk-GTMCB3SL.js +0 -1
  136. package/chunk-H6FEO7T3.js +0 -1
  137. package/chunk-HOAF22JI.js +0 -1
  138. package/chunk-I33QA736.js +0 -1
  139. package/chunk-IPOA3SOW.js +0 -1
  140. package/chunk-IWAIAUMO.js +0 -1
  141. package/chunk-JDRK7YG6.js +0 -1
  142. package/chunk-JIFUQXVH.js +0 -1
  143. package/chunk-KNBVJM2U.js +0 -160
  144. package/chunk-LNFCBMAA.js +0 -1
  145. package/chunk-OJTHBHGK.js +0 -1
  146. package/chunk-OMLO5E65.js +0 -1
  147. package/chunk-PK7RYZ5A.js +0 -1
  148. package/chunk-PSSATQO3.js +0 -1
  149. package/chunk-QC7NAJZG.js +0 -1
  150. package/chunk-RAF7SWW4.js +0 -229
  151. package/chunk-RDQ7RWJC.js +0 -1
  152. package/chunk-RRL6OTRO.js +0 -1
  153. package/chunk-SLD2HX2B.js +0 -1
  154. package/chunk-U5YVZKME.js +0 -1
  155. package/chunk-URSKOWIQ.js +0 -1
  156. package/chunk-V7EXGBKT.js +0 -1
  157. package/chunk-VMI3QWC6.js +0 -193
  158. package/chunk-VQKIYDID.js +0 -1
  159. package/chunk-W6US3XIE.js +0 -1
  160. package/chunk-X3FAXRYR.js +0 -252
  161. package/chunk-YIG2I6WR.js +0 -1
  162. package/chunk-YRW7AH7I.js +0 -1
  163. package/chunk-ZFNIPERQ.js +0 -2
  164. package/chunk-ZIQBCB5X.js +0 -7
  165. package/chunk-ZK43JB4A.js +0 -2
  166. package/chunk-ZY4AYAWJ.js +0 -202
  167. package/main-VIRQJVUE.js +0 -1
@@ -0,0 +1,252 @@
1
+ import{a as ce,b as Et}from"./chunk-SOD2BIQR.js";import{f as kt}from"./chunk-TAN6GLIH.js";import"./chunk-GIRWHO6Q.js";import{b as Vt}from"./chunk-YHLRDTIS.js";import{m as Ke}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Oe,b as ve}from"./chunk-3VQUNDVT.js";import{b as xt,g as It,h as Tt,i as St}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as st}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import{a as wt}from"./chunk-OW2ND5HU.js";import{a as Ct}from"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{a as lt}from"./chunk-FMAG3RQL.js";import{i as vt}from"./chunk-JPKZVL57.js";import{a as ct}from"./chunk-VM56C6ZV.js";import{a as ht,b as mt}from"./chunk-ISIYG4D5.js";import{b as A,c as ft,d as gt,e as _t,f as bt,g as yt,h as Ot}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{a as ye,p as rt,r as pt,w as dt,x as ut}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as Ze,Ba as et,E as We,Ea as tt,J as je,Ja as it,Ma as nt,N as Xe,Na as U,Oa as ot,R as Je,S as se,Va as at,Y as Ye,a as Ae,e as Be,f as He,i as ge,l as ze,m as qe,oa as le,ra as w,sa as M,ta as _e,v as Qe,wa as be,x as Ne,y as Ue}from"./chunk-MGIEURA2.js";import{d as De,e as Re}from"./chunk-DZCJWJUG.js";import"./chunk-VQ62YSFR.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as me,l as Ge,m as Q,n as $e,o as fe,u as N}from"./chunk-DM2JLWKE.js";import{$b as Z,$c as he,Aa as x,Cb as ue,Dc as ae,Eb as f,Ec as Me,Fc as q,Gc as Le,Ha as L,Lb as y,Mb as r,Qb as Y,Sc as T,Wb as d,Xb as u,Y as pe,Yb as S,Zb as D,_ as J,_b as R,_c as k,ac as V,ba as Ie,bd as G,c as re,ca as Te,cd as Pe,da as Se,fc as I,gc as p,ia as E,ib as c,lc as F,mc as z,nc as v,ob as de,oc as C,pa as Ve,qa as h,ra as m,rc as ee,s as xe,sc as b,tc as K,ua as ke,uc as te,wc as Fe,xc as ie,yb as H,yc as ne,zb as Ee,zc as oe}from"./chunk-6QJHEOXN.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var Lt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ft(yt(Lt),Ot("GroupStore"),gt(t=>({first:G(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:G(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:G(()=>t.data().some(s=>s.checked)),checkedData:G(()=>t.data().filter(s=>s.checked).map(s=>s.id))})),bt(t=>{let s=E(ce),e={setFilter(n){A(t,i=>_(g({},i),{filter:n}))},onRowSelect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!0}):a);return _(g({},i),{data:o})})},onRowUnselect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!1}):a);return _(g({},i),{data:o})})},onHeaderCheckboxToggle(n){A(t,i=>{let o=i.data.map(a=>_(g({},a),{checked:n}));return _(g({},i),{data:o})})},getGroupList:Oe(re(pe(n=>s.getGroupList(n).pipe(ve(i=>{A(t,o=>_(g({},o),{data:i.data,count:i.count}))},i=>{console.error("Error fetching group list:",i)}))))),getGroupLoader:Oe(re(pe(()=>s.getGroupLoader().pipe(ve({next:n=>{let i=n.options.roles.map(o=>_(g({},o),{id:Vt()}));A(t,o=>_(g({},o),{meta:_(g({},n),{options:_(g({},n.options),{roles:i})}),filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),_t(t=>({onInit:()=>{t.getGroupLoader()}})));var $t=t=>({$implicit:t});function Dt(t,s){t&1&&Z(0)}function Rt(t,s){if(t&1&&(D(0),f(1,Dt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,$t,e==null?null:e.option))}}function Kt(t,s){if(t&1&&(d(0,"span",9),b(1),u()),t&2){let e=p().$implicit,n=p();y("data-pc-section","text"),c(),K(n.getOptionLabelToRender(e))}}function At(t,s){t&1&&S(0,"AngleRightIcon")}function Bt(t,s){}function Ht(t,s){t&1&&f(0,Bt,0,0,"ng-template")}function zt(t,s){if(t&1&&(d(0,"span",10),f(1,At,1,0,"AngleRightIcon",11)(2,Ht,1,0,null,12),u()),t&2){let e=p(2);y("data-pc-section","groupIcon"),c(),r("ngIf",!e.groupicon),c(),r("ngTemplateOutlet",e.groupicon)}}function qt(t,s){if(t&1){let e=V();d(0,"p-cascadeselect-sub",13),I("onChange",function(i){h(e);let o=p(2);return m(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return m(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return m(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 Qt(t,s){if(t&1){let e=V();d(0,"li",3)(1,"div",4),I("click",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseMove(i,o))}),f(2,Rt,2,4,"ng-container",5)(3,Kt,2,2,"ng-template",null,0,T)(5,zt,3,3,"span",6),u(),f(6,qt,1,12,"p-cascadeselect-sub",7),u()}if(t&2){let e=s.$implicit,n=s.index,i=ee(4),o=p();r("ngClass",o.getItemClass(e))("id",o.getOptionId(e)),y("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(),y("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 Nt=["value"],Ut=["option"],Wt=["header"],jt=["footer"],Xt=["triggericon"],Jt=["loadingicon"],Yt=["optiongroupicon"],Zt=["clearicon"],ei=["focusInput"],ti=["container"],ii=["panel"],ni=["overlay"],oi=(t,s)=>({$implicit:t,placeholder:s}),ai=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function si(t,s){t&1&&Z(0)}function li(t,s){if(t&1&&(D(0),f(1,si,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Le(2,oi,e.value,e.placeholder))}}function ci(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ri(t,s){if(t&1){let e=V();d(0,"TimesIcon",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function pi(t,s){}function di(t,s){t&1&&f(0,pi,0,0,"ng-template")}function ui(t,s){if(t&1){let e=V();d(0,"span",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),f(1,di,1,0,null,19),u()}if(t&2){let e=p(2);y("data-pc-section","clearicon")("aria-hidden",!0),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function hi(t,s){if(t&1&&(D(0),f(1,ri,1,2,"TimesIcon",17)(2,ui,2,3,"span",17),R()),t&2){let e=p();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function mi(t,s){t&1&&Z(0)}function fi(t,s){if(t&1&&(D(0),f(1,mi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function gi(t,s){if(t&1&&S(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function _i(t,s){t&1&&S(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function bi(t,s){if(t&1&&(D(0),f(1,gi,1,1,"span",20)(2,_i,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function yi(t,s){if(t&1&&(D(0),f(1,fi,2,1,"ng-container",12)(2,bi,3,2,"ng-container",12),R()),t&2){let e=p();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Oi(t,s){t&1&&S(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function vi(t,s){}function Ci(t,s){t&1&&f(0,vi,0,0,"ng-template")}function wi(t,s){if(t&1&&(d(0,"span",27),f(1,Ci,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function xi(t,s){if(t&1&&f(0,Oi,1,1,"ChevronDownIcon",24)(1,wi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function Ii(t,s){}function Ti(t,s){t&1&&f(0,Ii,0,0,"ng-template")}function Si(t,s){}function Vi(t,s){t&1&&f(0,Si,0,0,"ng-template")}function ki(t,s){if(t&1){let e=V();d(0,"div",28,6),f(2,Ti,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),I("onChange",function(i){h(e);let o=p();return m(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return m(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return m(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),f(7,Vi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ai,e.queryMatches()))("ngStyle",e.panelStyle),y("data-pc-section","panel"),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),y("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),te(" ",e.selectedMessageText," "),c(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Ei=({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
+ }`,Fi={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},Mi={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"},Ft=(()=>{class t extends at{name="cascadeselect";theme=Ei;classes=Mi;inlineStyles=Fi;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 Li={provide:Ae,useExisting:Ie(()=>we),multi:!0},Pi=(()=>{class t extends ye{cascadeselect;role;selectId;activeOptionPath;optionDisabled;focusedOptionId;options;optionGroupChildren;optionTemplate;groupicon;level=0;optionLabel;optionValue;optionGroupLabel;dirty;root;onChange=new x;onFocusChange=new x;onFocusEnterChange=new x;get listLabel(){return this.config.getTranslation(ot.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 w(e.children)}isOptionSelected(e){return _e(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=Ze(e),i=We(),o=this.el.nativeElement.children[0].offsetParent?this.el.nativeElement.children[0].offsetWidth:Ye(this.el.nativeElement.children[0]),a=je(e.children[0]);parseInt(n.left,10)+a+o>i.width-Xe()&&(this.el.nativeElement.children[0].style.left="-200%")}static \u0275fac=function(n){return new(n||t)(de(we))};static \u0275cmp=H({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",he],optionLabel:"optionLabel",optionValue:"optionValue",optionGroupLabel:"optionGroupLabel",dirty:[2,"dirty","dirty",k],root:[2,"root","root",k]},outputs:{onChange:"onChange",onFocusChange:"onFocusChange",onFocusEnterChange:"onFocusEnterChange"},features:[ue],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),f(1,Qt,7,13,"ng-template",2),u()),n&2&&(y("role",i.role)("data-pc-section",i.level===0?"list":"sublist")("aria-label",i.listLabel),c(),r("ngForOf",i.options))},dependencies:[t,N,me,Ge,Q,fe,rt,st,U],encapsulation:2,changeDetection:0})}return t})(),we=(()=>{class t extends ye{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 x;onGroupChange=new x;onShow=new x;onHide=new x;onClear=new x;onBeforeShow=new x;onBeforeHide=new x;onFocus=new x;onBlur=new x;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=L({index:-1,level:0,parentKey:""});activeOptionPath=L([]);modelValue=L(null);processedOptions=[];_componentStyle=E(Ft);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}${w(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 w(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=G(()=>{let e=this.activeOptionPath().find(n=>n.key===this.focusedOptionInfo().parentKey);return e?e.children:this.processedOptions});label=G(()=>{let e=this.placeholder||"p-emptylabel";if(this.hasSelectedOption()){let n=this.findOptionPathByValue(this.modelValue(),null),i=w(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=w(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 w(this.modelValue())}createProcessedOptions(e,n=0,i={},o=""){let a=[];return e&&e.forEach((l,O)=>{let $=(o!==""?o+"_":"")+O,P={option:l,index:O,level:n,key:$,parent:i,parentKey:o};P.children=this.createProcessedOptions(this.getOptionGroupChildren(l,n),n+1,P,$),a.push(P)}),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&&et(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=le(n.parent);if(o){let l=this.activeOptionPath().filter(O=>O.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(_(g({},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){w(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=Je(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(_(g({},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(O=>O.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(le(e))return[];for(let o=0;o<n.length;o++){let a=n[o];if(_e(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 be(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?be(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()&&w(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){w(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 w(e?.children)}getProccessedOptionLabel(e){return this.isProccessedOptionGroup(e)?this.getOptionGroupLabel(e.option):this.getOptionLabel(e.option)}constructor(e){super(),this.overlayService=e,Pe(()=>{let n=this.activeOptionPath();w(n)&&this.overlayViewChild.alignOverlay()})}query;queryMatches=L(!1);mobileActive=L(!1);onOptionChange(e){let{processedOption:n,type:i}=e;if(le(n))return;let{index:o,key:a,level:l,parentKey:O,children:$}=n,P=w($),B=this.activeOptionPath().filter(W=>W.parentKey!==O&&W.parentKey!==a);this.focusedOptionInfo.set({index:o,level:l,parentKey:O}),!(i=="hover"&&this.queryMatches())&&(P&&B.push(n),this.activeOptionPath.set([...B]))}onOptionClick(e){let{originalEvent:n,processedOption:i,isFocus:o,isHide:a,preventSelection:l}=e,{index:O,key:$,level:P,parentKey:B}=i,W=this.isProccessedOptionGroup(i);if(this.isSelected(i)){let j=this.activeOptionPath().filter(X=>$!==X.key&&$.startsWith(X.key));this.activeOptionPath.set([...j]),this.focusedOptionInfo.set({index:O,level:P,parentKey:B})}else if(W)this.onOptionChange(e),this.onOptionGroupSelect({originalEvent:n,value:i.option,isFocus:!1});else{let j=this.activeOptionPath().filter(X=>X.parentKey!==B);j.push(i),this.focusedOptionInfo.set({index:O,level:P,parentKey:B}),(!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&&w(this.modelValue())?this.onOptionChange(_(g({},e),{type:"hover"})):!this.dirty&&e.processedOption.level===0&&this.onOptionClick(_(g({},e),{type:"hover"})))}onOptionMouseMove(e){this.focused&&this.focusOnHover&&this.changeFocusedOptionIndex(e,e.processedOption.index)}ngOnInit(){super.ngOnInit(),this.id=this.id||tt("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)(de(it))};static \u0275cmp=H({type:t,selectors:[["p-cascadeSelect"],["p-cascadeselect"],["p-cascade-select"]],contentQueries:function(n,i,o){if(n&1&&(F(o,Nt,4),F(o,Ut,4),F(o,Wt,4),F(o,jt,4),F(o,Xt,4),F(o,Jt,4),F(o,Yt,4),F(o,Zt,4),F(o,nt,4)),n&2){let a;v(a=C())&&(i.valueTemplate=a.first),v(a=C())&&(i.optionTemplate=a.first),v(a=C())&&(i.headerTemplate=a.first),v(a=C())&&(i.footerTemplate=a.first),v(a=C())&&(i.triggerIconTemplate=a.first),v(a=C())&&(i.loadingIconTemplate=a.first),v(a=C())&&(i.groupIconTemplate=a.first),v(a=C())&&(i.clearIconTemplate=a.first),v(a=C())&&(i.templates=a)}},viewQuery:function(n,i){if(n&1&&(z(ei,5),z(ti,5),z(ii,5),z(ni,5)),n&2){let o;v(o=C())&&(i.focusInputViewChild=o.first),v(o=C())&&(i.containerViewChild=o.first),v(o=C())&&(i.panelViewChild=o.first),v(o=C())&&(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",k],selectOnFocus:[2,"selectOnFocus","selectOnFocus",k],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",k],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",he],ariaLabelledBy:"ariaLabelledBy",inputLabel:"inputLabel",ariaLabel:"ariaLabel",appendTo:"appendTo",disabled:[2,"disabled","disabled",k],showClear:[2,"showClear","showClear",k],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",overlayOptions:"overlayOptions",autofocus:[2,"autofocus","autofocus",k],showTransitionOptions:"showTransitionOptions",variant:"variant",loading:[2,"loading","loading",k],loadingIcon:"loadingIcon",hideTransitionOptions:"hideTransitionOptions",fluid:[2,"fluid","fluid",k],breakpoint:"breakpoint"},outputs:{onChange:"onChange",onGroupChange:"onGroupChange",onShow:"onShow",onHide:"onHide",onClear:"onClear",onBeforeShow:"onBeforeShow",onBeforeHide:"onBeforeHide",onFocus:"onFocus",onBlur:"onBlur"},features:[ae([Li,Ft]),ue,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=V();d(0,"div",7,0),I("click",function(l){return h(o),m(i.onContainerClick(l))}),d(2,"div",8)(3,"input",9,1),I("focus",function(l){return h(o),m(i.onInputFocus(l))})("blur",function(l){return h(o),m(i.onInputBlur(l))})("keydown",function(l){return h(o),m(i.onInputKeyDown(l))}),u()(),d(5,"span",10),f(6,li,2,5,"ng-container",11)(7,ci,1,1,"ng-template",null,2,T),u(),f(9,hi,3,2,"ng-container",12),d(10,"div",13),f(11,yi,3,2,"ng-container",11)(12,xi,2,2,"ng-template",null,3,T),u(),d(14,"span",14),b(15),u(),d(16,"p-overlay",15,4),oe("visibleChange",function(l){return h(o),ne(i.overlayVisible,l)||(i.overlayVisible=l),m(l)}),I("onAnimationDone",function(l){return h(o),m(i.onOverlayAnimationDone(l))})("onBeforeShow",function(l){return h(o),m(i.onBeforeShow.emit(l))})("onShow",function(l){return h(o),m(i.show(l))})("onBeforeHide",function(l){return h(o),m(i.onBeforeHide.emit(l))})("onHide",function(l){return h(o),m(i.hide(l))}),f(18,ki,8,26,"ng-template",null,5,T),u()()}if(n&2){let o,a,l=ee(8),O=ee(13);Y(i.styleClass),r("ngClass",i.containerClass)("ngStyle",i.style),y("data-pc-name","cascadeselect")("data-pc-section","root"),c(2),y("data-pc-section","hiddenInputWrapper"),c(),r("disabled",i.disabled)("placeholder",i.placeholder)("tabindex",i.disabled?-1:i.tabindex)("pAutoFocus",i.autofocus),y("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),y("data-pc-section","label"),c(),r("ngIf",i.valueTemplate||i._valueTemplate)("ngIfElse",l),c(3),r("ngIf",i.filled&&!i.disabled&&i.showClear),c(),y("aria-expanded",(a=i.overlayVisible)!==null&&a!==void 0?a:!1)("data-pc-section","dropdownIcon")("aria-hidden",!0),c(),r("ngIf",i.loading)("ngIfElse",O),c(4),te(" ",i.searchResultMessageText," "),c(),ie("visible",i.overlayVisible),r("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[N,me,Q,fe,$e,Ct,pt,Pi,lt,ct,U],encapsulation:2,changeDetection:0})}return t})(),Mt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ee({type:t});static \u0275inj=Se({imports:[we,U,U]})}return t})();var Gi=["class","page"],$i=t=>({groupID:t}),Di=()=>["/pages/users/groups/forms"];function Ri(t,s){if(t&1){let e=V();d(0,"p-button",11),I("onClick",function(){h(e);let i=p(2);return m(i.onDeleteGroup())}),u()}}function Ki(t,s){t&1&&(d(0,"a",12),b(1,"Add"),u())}function Ai(t,s){if(t&1&&(d(0,"div",8),f(1,Ri,1,0,"p-button",9)(2,Ki,2,0,"a",10),u()),t&2){let e=p();c(),r("ngIf",e.store.hasCheckedRows()&&!e.roleService.permissions().user.delete),c(),r("ngIf",e.roleService.permissions().user.create)}}function Bi(t,s){t&1&&(d(0,"th",16),S(1,"p-tableHeaderCheckbox"),u())}function Hi(t,s){if(t&1&&(d(0,"tr"),f(1,Bi,2,0,"th",15),d(2,"th"),b(3,"Name"),u(),d(4,"th"),b(5,"Users"),u(),d(6,"th"),b(7,"Roles Count"),u(),d(8,"th"),b(9,"Description"),u()()),t&2){let e=p(2);c(),r("ngIf",e.roleService.permissions().user.delete)}}function zi(t,s){if(t&1&&(d(0,"td"),S(1,"p-tableCheckbox",19),u()),t&2){let e=p().$implicit;c(),r("value",e)}}function qi(t,s){if(t&1&&(d(0,"tr"),f(1,zi,2,1,"td",17),d(2,"td")(3,"a",18),b(4),u()(),d(5,"td"),b(6),u(),d(7,"td"),b(8),u(),d(9,"td"),b(10),u()()),t&2){let e=s.$implicit,n=p(2);c(),r("ngIf",n.roleService.permissions().user.delete),c(2),r("queryParams",q(7,$i,e.id))("routerLink",Me(9,Di)),c(),K(e.name),c(2),K(e.usersCount),c(2),K(e.rolesCount),c(2),K(e.description)}}function Qi(t,s){if(t&1&&b(0),t&2){let e=p(2);Fe(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function Ni(t,s){t&1&&(d(0,"tr")(1,"td",20)(2,"span"),b(3," No groups found. Try changing your filters or create a new group. "),u(),b(4," > "),u()())}function Ui(t,s){if(t&1){let e=V();d(0,"p-panel")(1,"div",13),S(2,"app-user-tabs"),d(3,"p-table",14),I("onHeaderCheckboxToggle",function(i){h(e);let o=p();return m(o.onHeaderCheckboxToggle(i))})("onPage",function(i){h(e);let o=p();return m(o.onPageChange(i))})("onRowSelect",function(i){h(e);let o=p();return m(o.onRowSelect(i))})("onRowUnselect",function(i){h(e);let o=p();return m(o.onRowUnselect(i))}),f(4,Hi,10,1,"ng-template",null,3,T)(6,qi,11,10,"ng-template",null,4,T)(8,Qi,1,3,"ng-template",null,5,T)(10,Ni,5,0,"ng-template",null,6,T),u()()()}if(t&2){let e=p();c(3),r("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())("value",e.store.data())}}function Wi(t,s){if(t&1&&(d(0,"div",21)(1,"div",22)(2,"div",23)(3,"div",24)(4,"label",25),b(5,"Roles"),u(),S(6,"p-select",26),u(),d(7,"div",24)(8,"label",25),b(9,"Permission"),u(),S(10,"p-select",27),u()()()()),t&2){let e=p();r("formGroup",e.filterForm),c(6),r("formControl",e.roleSelected)("options",e.store.meta().options.roles),c(4),r("formControl",e.permissionSelected)("options",e.permissionOptions())}}var Zn=(()=>{class t{constructor(){this.isDialogFilterVisible=L(!1),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}],this.roleSelected=new ge(""),this.permissionSelected=new ge(""),this.permissionOptions=L([]),this.router=E(De),this.store=E(Ce),this.roleService=E(Ke),this.fb=E(Qe),this.userService=E(ce)}ngOnInit(){this.generateFilterForm(),this.roleSelected.valueChanges.pipe(xe(e=>this.store.meta.options().roles.find(i=>i.id===e)?.roles??[]),J(e=>{this.permissionOptions.set(e)})).subscribe(),this.permissionSelected.valueChanges.pipe(J(e=>{this.filterForm.patchValue({rolesID:e})})).subscribe()}onSearch(e){this.store.setFilter(_(g({},this.store.filter()),{text:e}))}onPageChange(e){this.store.setFilter(_(g({},this.store.filter()),{pagination:e.first/e.rows+1}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}generateFilterForm(){this.filterForm=this.fb.group({pagination:this.fb.control(1),pageSize:this.fb.control(10),rolesID:this.fb.control(null)})}onOKFilter(){if(this.filterForm.invalid){this.filterForm.markAllAsTouched();return}let{rolesID:e}=this.filterForm.value;this.store.setFilter(_(g({},this.store.filter()),{rolesID:e})),this.isDialogFilterVisible.update(n=>!n)}onDeleteGroup(){let e=this.store.checkedData();this.userService.deleteGroup(e).pipe(J(()=>{this.store.setFilter(g({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-group",8,"page"]],features:[ae([Ce])],attrs:Gi,decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Group List",3,"filterConfirmed","search","isDialogFilterVisibleChange","isDialogFilterVisible","isFilterable","isSearchableInput","scrollable"],[1,"d-flex","flex-wrap"],["icon","fa-solid fa-trash","label","Delete","severity","danger",3,"onClick",4,"ngIf"],["class","p-button","routerLink","forms",4,"ngIf"],["icon","fa-solid fa-trash","label","Delete","severity","danger",3,"onClick"],["routerLink","forms",1,"p-button"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","id",3,"onHeaderCheckboxToggle","onPage","onRowSelect","onRowUnselect","lazy","paginator","rows","totalRecords","value"],["style","width: 4rem",4,"ngIf"],[2,"width","4rem"],[4,"ngIf"],[1,"link","link-primary",3,"queryParams","routerLink"],[3,"value"],["colspan","4"],[1,"row",3,"formGroup"],[1,"col"],[1,"d-flex","flex-column","gap-3"],[1,"d-flex","flex-column"],["for","",1,"m-0"],["appendTo","body","filter","","filterBy","name","optionLabel","name","optionValue","id","placeholder","Select a Role",3,"formControl","options"],["appendTo","body","filter","","filterBy","name","optionLabel","name","optionValue","id","placeholder","Select a Permission",3,"formControl","options"]],template:function(n,i){if(n&1){let o=V();d(0,"app-main-panel",7),I("filterConfirmed",function(){return h(o),m(i.onOKFilter())})("search",function(l){return h(o),m(i.onSearch(l))}),oe("isDialogFilterVisibleChange",function(l){return h(o),ne(i.isDialogFilterVisible,l)||(i.isDialogFilterVisible=l),m(l)}),f(1,Ai,3,2,"ng-template",null,0,T)(3,Ui,12,5,"ng-template",null,1,T)(5,Wi,11,5,"ng-template",null,2,T),u()}n&2&&(ie("isDialogFilterVisible",i.isDialogFilterVisible),r("isFilterable",!0)("isSearchableInput",!0)("scrollable",!0))},dependencies:[vt,kt,Re,St,xt,It,Tt,Mt,Ue,Be,He,ze,qe,ut,dt,Et,N,Q,mt,ht,wt,Ne],styles:["[_nghost-%COMP%]{display:block} .p-panel .p-panel-header{display:none!important}"],changeDetection:0})}}return t})();export{Zn as GroupPageComponent};
@@ -0,0 +1 @@
1
+ import{m as p}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{i as d}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-VQ62YSFR.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-DM2JLWKE.js";import{Eb as l,Sc as c,Wb as t,Xb as n,Yb as m,ia as r,sc as i,yb as a}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function f(e,u){e&1&&(t(0,"div",2),m(1,"img",3),t(2,"h1",4),i(3,"You are not authorized"),n(),t(4,"p",5),i(5," This page require "),t(6,"span",6),i(7,"Journal"),n(),i(8," role. Please contact your Administrator to gain access! "),n()())}var y=(()=>{class e{constructor(){this.roleService=r(p)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=a({type:e,selectors:[["app-forbidden"]],decls:3,vars:0,consts:[["content",""],["pageTitle","Unauthorized"],[1,"h-100","d-flex","flex-column","justify-content-center","align-items-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg","alt","Forbidden"],[1,"fs-6","fw-semibold"],[1,"fs-3"],[1,"fw-semibold"]],template:function(o,g){o&1&&(t(0,"app-main-panel",1),l(1,f,9,0,"ng-template",null,0,c),n())},dependencies:[d],encapsulation:2})}}return e})();export{y as ForbiddenComponent};
@@ -0,0 +1 @@
1
+ import{$c as De,Ab as O,Bb as N,Fa as U,Gb as je,Hb as Ve,Nb as Ge,Oa as Be,Pa as Pe,Ra as Ne,Va as ke,Vc as ge,Wc as Q,Xc as He,Yc as We,_c as V,aa as J,ad as pe,ca as b,da as Oe,dc as A,ec as g,fa as L,g as Te,ha as T,ia as S,jb as $e,kb as he,nb as z,ob as m,pa as x,qb as j,ub as xe,wa as Re,wb as Ue,zb as ze}from"./chunk-6QJHEOXN.js";var G=new L("");var Xe=null;function ee(){return Xe}function bt(e){Xe??=e}var me=class{},H=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>S(qe),providedIn:"platform"})}return e})(),vt=new L(""),qe=(()=>{class e extends H{_location;_history;_doc=S(G);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ee().getBaseHref(this._doc)}onPopState(t){let n=ee().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=ee().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function te(e,i){return e?i?e.endsWith("/")?i.startsWith("/")?e+i.slice(1):e+i:i.startsWith("/")?e+i:`${e}/${i}`:e:i}function Ze(e){let i=e.search(/#|\?|$/);return e[i-1]==="/"?e.slice(0,i-1)+e.slice(i):e}function v(e){return e&&e[0]!=="?"?`?${e}`:e}var k=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>S(Je),providedIn:"root"})}return e})(),ne=new L(""),Je=(()=>{class e extends k{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??S(G).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return te(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+v(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+v(s));this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+v(s));this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(T(H),T(ne,8))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qe=(()=>{class e{_subject=new Te;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=Mt(Ze(Ye(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+v(n))}normalize(t){return e.stripTrailingSlash(Lt(this._basePath,Ye(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=v;static joinWithSlash=te;static stripTrailingSlash=Ze;static \u0275fac=function(n){return new(n||e)(T(k))};static \u0275prov=b({token:e,factory:()=>It(),providedIn:"root"})}return e})();function It(){return new Qe(T(k))}function Lt(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function Ye(e){return e.replace(/\/index.html$/,"")}function Mt(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var Tt=(()=>{class e extends k{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=te(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+v(s))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+v(s))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(T(H),T(ne,8))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();var be=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(be||{});var F=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(F||{}),c=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(c||{}),E=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(E||{}),w={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function ot(e){return A(e)[g.LocaleId]}function ut(e,i,t){let n=A(e),r=[n[g.DayPeriodsFormat],n[g.DayPeriodsStandalone]],s=_(r,i);return _(s,t)}function at(e,i,t){let n=A(e),r=[n[g.DaysFormat],n[g.DaysStandalone]],s=_(r,i);return _(s,t)}function ct(e,i,t){let n=A(e),r=[n[g.MonthsFormat],n[g.MonthsStandalone]],s=_(r,i);return _(s,t)}function lt(e,i){let n=A(e)[g.Eras];return _(n,i)}function W(e,i){let t=A(e);return _(t[g.DateFormat],i)}function Z(e,i){let t=A(e);return _(t[g.TimeFormat],i)}function Y(e,i){let n=A(e)[g.DateTimeFormat];return _(n,i)}function M(e,i){let t=A(e),n=t[g.NumberSymbols][i];if(typeof n>"u"){if(i===w.CurrencyDecimal)return t[g.NumberSymbols][w.Decimal];if(i===w.CurrencyGroup)return t[g.NumberSymbols][w.Group]}return n}function dt(e,i){return A(e)[g.NumberFormats][i]}function ft(e){if(!e[g.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[g.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ht(e){let i=A(e);return ft(i),(i[g.ExtraData][2]||[]).map(n=>typeof n=="string"?Ce(n):[Ce(n[0]),Ce(n[1])])}function gt(e,i,t){let n=A(e);ft(n);let r=[n[g.ExtraData][0],n[g.ExtraData][1]],s=_(r,i)||[];return _(s,t)||[]}function _(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Ce(e){let[i,t]=e.split(":");return{hours:+i,minutes:+t}}var Ot=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ie={},Rt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Dt(e,i,t,n){let r=jt(e);i=R(t,i)||i;let o=[],u;for(;i;)if(u=Rt.exec(i),u){o=o.concat(u.slice(1));let f=o.pop();if(!f)break;i=f}else{o.push(i);break}let D=r.getTimezoneOffset();n&&(D=mt(n,D),r=zt(r,n));let d="";return o.forEach(f=>{let a=xt(f);d+=a?a(r,t,D):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function ae(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function R(e,i){let t=ot(e);if(ie[t]??={},ie[t][i])return ie[t][i];let n="";switch(i){case"shortDate":n=W(e,E.Short);break;case"mediumDate":n=W(e,E.Medium);break;case"longDate":n=W(e,E.Long);break;case"fullDate":n=W(e,E.Full);break;case"shortTime":n=Z(e,E.Short);break;case"mediumTime":n=Z(e,E.Medium);break;case"longTime":n=Z(e,E.Long);break;case"fullTime":n=Z(e,E.Full);break;case"short":let r=R(e,"shortTime"),s=R(e,"shortDate");n=re(Y(e,E.Short),[r,s]);break;case"medium":let o=R(e,"mediumTime"),u=R(e,"mediumDate");n=re(Y(e,E.Medium),[o,u]);break;case"long":let D=R(e,"longTime"),d=R(e,"longDate");n=re(Y(e,E.Long),[D,d]);break;case"full":let f=R(e,"fullTime"),a=R(e,"fullDate");n=re(Y(e,E.Full),[f,a]);break}return n&&(ie[t][i]=n),n}function re(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return i!=null&&n in i?i[n]:t})),e}function I(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function Bt(e,i){return I(e,3).substring(0,i)}function p(e,i,t=0,n=!1,r=!1){return function(s,o){let u=Pt(e,s);if((t>0||u>-t)&&(u+=t),e===3)u===0&&t===-12&&(u=12);else if(e===6)return Bt(u,i);let D=M(o,w.MinusSign);return I(u,i,D,n,r)}}function Pt(e,i){switch(e){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function l(e,i,t=F.Format,n=!1){return function(r,s){return Nt(r,s,e,i,t,n)}}function Nt(e,i,t,n,r,s){switch(t){case 2:return ct(i,r,n)[e.getMonth()];case 1:return at(i,r,n)[e.getDay()];case 0:let o=e.getHours(),u=e.getMinutes();if(s){let d=ht(i),f=gt(i,r,n),a=d.findIndex(C=>{if(Array.isArray(C)){let[h,y]=C,$=o>=h.hours&&u>=h.minutes,B=o<y.hours||o===y.hours&&u<y.minutes;if(h.hours<y.hours){if($&&B)return!0}else if($||B)return!0}else if(C.hours===o&&C.minutes===u)return!0;return!1});if(a!==-1)return f[a]}return ut(i,r,n)[o<12?0:1];case 3:return lt(i,n)[e.getFullYear()<=0?0:1];default:let D=t;throw new Error(`unexpected translation type ${D}`)}}function se(e){return function(i,t,n){let r=-1*n,s=M(t,w.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+I(o,2,s)+I(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+I(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+I(o,2,s)+":"+I(Math.abs(r%60),2,s);case 3:return n===0?"Z":(r>=0?"+":"")+I(o,2,s)+":"+I(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}var kt=0,ue=4;function $t(e){let i=ae(e,kt,1).getDay();return ae(e,0,1+(i<=ue?ue:ue+7)-i)}function pt(e){let i=e.getDay(),t=i===0?-3:ue-i;return ae(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Fe(e,i=!1){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7)}else{let s=pt(t),o=$t(s.getFullYear()),u=s.getTime()-o.getTime();r=1+Math.round(u/6048e5)}return I(r,e,M(n,w.MinusSign))}}function oe(e,i=!1){return function(t,n){let s=pt(t).getFullYear();return I(s,e,M(n,w.MinusSign),i)}}var ye={};function xt(e){if(ye[e])return ye[e];let i;switch(e){case"G":case"GG":case"GGG":i=l(3,c.Abbreviated);break;case"GGGG":i=l(3,c.Wide);break;case"GGGGG":i=l(3,c.Narrow);break;case"y":i=p(0,1,0,!1,!0);break;case"yy":i=p(0,2,0,!0,!0);break;case"yyy":i=p(0,3,0,!1,!0);break;case"yyyy":i=p(0,4,0,!1,!0);break;case"Y":i=oe(1);break;case"YY":i=oe(2,!0);break;case"YYY":i=oe(3);break;case"YYYY":i=oe(4);break;case"M":case"L":i=p(1,1,1);break;case"MM":case"LL":i=p(1,2,1);break;case"MMM":i=l(2,c.Abbreviated);break;case"MMMM":i=l(2,c.Wide);break;case"MMMMM":i=l(2,c.Narrow);break;case"LLL":i=l(2,c.Abbreviated,F.Standalone);break;case"LLLL":i=l(2,c.Wide,F.Standalone);break;case"LLLLL":i=l(2,c.Narrow,F.Standalone);break;case"w":i=Fe(1);break;case"ww":i=Fe(2);break;case"W":i=Fe(1,!0);break;case"d":i=p(2,1);break;case"dd":i=p(2,2);break;case"c":case"cc":i=p(7,1);break;case"ccc":i=l(1,c.Abbreviated,F.Standalone);break;case"cccc":i=l(1,c.Wide,F.Standalone);break;case"ccccc":i=l(1,c.Narrow,F.Standalone);break;case"cccccc":i=l(1,c.Short,F.Standalone);break;case"E":case"EE":case"EEE":i=l(1,c.Abbreviated);break;case"EEEE":i=l(1,c.Wide);break;case"EEEEE":i=l(1,c.Narrow);break;case"EEEEEE":i=l(1,c.Short);break;case"a":case"aa":case"aaa":i=l(0,c.Abbreviated);break;case"aaaa":i=l(0,c.Wide);break;case"aaaaa":i=l(0,c.Narrow);break;case"b":case"bb":case"bbb":i=l(0,c.Abbreviated,F.Standalone,!0);break;case"bbbb":i=l(0,c.Wide,F.Standalone,!0);break;case"bbbbb":i=l(0,c.Narrow,F.Standalone,!0);break;case"B":case"BB":case"BBB":i=l(0,c.Abbreviated,F.Format,!0);break;case"BBBB":i=l(0,c.Wide,F.Format,!0);break;case"BBBBB":i=l(0,c.Narrow,F.Format,!0);break;case"h":i=p(3,1,-12);break;case"hh":i=p(3,2,-12);break;case"H":i=p(3,1);break;case"HH":i=p(3,2);break;case"m":i=p(4,1);break;case"mm":i=p(4,2);break;case"s":i=p(5,1);break;case"ss":i=p(5,2);break;case"S":i=p(6,1);break;case"SS":i=p(6,2);break;case"SSS":i=p(6,3);break;case"Z":case"ZZ":case"ZZZ":i=se(0);break;case"ZZZZZ":i=se(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=se(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=se(2);break;default:return null}return ye[e]=i,i}function mt(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function Ut(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function zt(e,i,t){let r=e.getTimezoneOffset(),s=mt(i,r);return Ut(e,-1*(s-r))}function jt(e){if(et(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(u=>+u);return ae(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(Ot))return Vt(n)}let i=new Date(e);if(!et(i))throw new Error(`Unable to convert "${e}" into a date`);return i}function Vt(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,u=Number(e[5]||0)-n,D=Number(e[6]||0),d=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,u,D,d),i}function et(e){return e instanceof Date&&!isNaN(e.valueOf())}var Gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,tt=22,ce=".",K="0",Ht=";",Wt=",",Ee="#";function Zt(e,i,t,n,r,s,o=!1){let u="",D=!1;if(!isFinite(e))u=M(t,w.Infinity);else{let d=Xt(e);o&&(d=Kt(d));let f=i.minInt,a=i.minFrac,C=i.maxFrac;if(s){let P=s.match(Gt);if(P===null)throw new Error(`${s} is not a valid digit info`);let Le=P[1],fe=P[3],Me=P[5];Le!=null&&(f=we(Le)),fe!=null&&(a=we(fe)),Me!=null?C=we(Me):fe!=null&&a>C&&(C=a)}qt(d,a,C);let h=d.digits,y=d.integerLen,$=d.exponent,B=[];for(D=h.every(P=>!P);y<f;y++)h.unshift(0);for(;y<0;y++)h.unshift(0);y>0?B=h.splice(y,h.length):(B=h,h=[0]);let q=[];for(h.length>=i.lgSize&&q.unshift(h.splice(-i.lgSize,h.length).join(""));h.length>i.gSize;)q.unshift(h.splice(-i.gSize,h.length).join(""));h.length&&q.unshift(h.join("")),u=q.join(M(t,n)),B.length&&(u+=M(t,r)+B.join("")),$&&(u+=M(t,w.Exponential)+"+"+$)}return e<0&&!D?u=i.negPre+u+i.negSuf:u=i.posPre+u+i.posSuf,u}function Ct(e,i,t){let n=dt(i,be.Decimal),r=Yt(n,M(i,w.MinusSign));return Zt(e,r,i,w.Group,w.Decimal,t)}function Yt(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(Ht),r=n[0],s=n[1],o=r.indexOf(ce)!==-1?r.split(ce):[r.substring(0,r.lastIndexOf(K)+1),r.substring(r.lastIndexOf(K)+1)],u=o[0],D=o[1]||"";t.posPre=u.substring(0,u.indexOf(Ee));for(let f=0;f<D.length;f++){let a=D.charAt(f);a===K?t.minFrac=t.maxFrac=f+1:a===Ee?t.maxFrac=f+1:t.posSuf+=a}let d=u.split(Wt);if(t.gSize=d[1]?d[1].length:0,t.lgSize=d[2]||d[1]?(d[2]||d[1]).length:0,s){let f=r.length-t.posPre.length-t.posSuf.length,a=s.indexOf(Ee);t.negPre=s.substring(0,a).replace(/'/g,""),t.negSuf=s.slice(a+f).replace(/'/g,"")}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function Kt(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function Xt(e){let i=Math.abs(e)+"",t=0,n,r,s,o,u;for((r=i.indexOf(ce))>-1&&(i=i.replace(ce,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===K;s++);if(s===(u=i.length))n=[0],r=1;else{for(u--;i.charAt(u)===K;)u--;for(r-=s,n=[],o=0;s<=u;s++,o++)n[o]=Number(i.charAt(s))}return r>tt&&(n=n.splice(0,tt-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function qt(e,i,t){if(i>t)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${t}).`);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,u=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let a=o;a<n.length;a++)n[a]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let a=1;a<o;a++)n[a]=0}if(u>=5)if(o-1<0){for(let a=0;a>o;a--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let D=s!==0,d=i+e.integerLen,f=n.reduceRight(function(a,C,h,y){return C=C+a,y[h]=C<10?C:C-10,D&&(y[h]===0&&h>=d?y.pop():D=!1),C>=10?1:0},0);f&&(n.unshift(f),e.integerLen++)}function we(e){let i=parseInt(e);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+e);return i}var Ae=/\s+/,nt=[],Jt=(()=>{class e{_ngEl;_renderer;initialClasses=nt;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(Ae):nt}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Ae):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(Ae).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(m(U),m(z))};static \u0275dir=O({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),Qt=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Ue(this.ngComponentOutletNgModule,it(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(it(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[n,r]of this._inputsUsed)r?(t.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(t.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||e)(m(j))};static \u0275dir=O({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[x]})}return e})();function it(e){return e.get(xe).injector}var le=class{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ft=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((r,s,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new le(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let u=n.get(s);n.move(u,o),rt(u,r)}});for(let r=0,s=n.length;r<s;r++){let u=n.get(r).context;u.index=r,u.count=s,u.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);rt(s,r)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(m(j),m(he),m(He))};static \u0275dir=O({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function rt(e,i){e.context.$implicit=i.item}var en=(()=>{class e{_viewContainer;_context=new de;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){st(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){st(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(m(j),m(he))};static \u0275dir=O({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),de=class{$implicit=null;ngIf=null};function st(e,i){if(e&&!e.createEmbeddedView)throw new J(2020,!1)}var tn=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:$e.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(m(U),m(We),m(z))};static \u0275dir=O({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),nn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(m(j))};static \u0275dir=O({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[x]})}return e})();function X(e,i){return new J(2100,!1)}var Se=class{createSubscription(i,t){return pe(()=>i.subscribe({next:t,error:n=>{throw n}}))}dispose(i){pe(()=>i.unsubscribe())}},_e=class{createSubscription(i,t){return i.then(n=>t?.(n),n=>{throw n}),{unsubscribe:()=>{t=null}}}dispose(i){i.unsubscribe()}},rn=new _e,sn=new Se,on=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(je(t))return rn;if(Ve(t))return sn;throw X(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(m(Q,16))};static \u0275pipe=N({name:"async",type:e,pure:!1})}return e})();var un=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,an=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw X(e,t);return t.replace(un,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=N({name:"titlecase",type:e,pure:!0})}return e})();var cn="mediumDate",yt=new L(""),Et=new L(""),ln=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??cn,u=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Dt(t,o,s||this.locale,u)}catch(o){throw X(e,o.message)}}static \u0275fac=function(n){return new(n||e)(m(ge,16),m(yt,24),m(Et,24))};static \u0275pipe=N({name:"date",type:e,pure:!0})}return e})();var dn=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!fn(t))return null;r||=this._locale;try{let s=hn(t);return Ct(s,r,n)}catch(s){throw X(e,s.message)}}static \u0275fac=function(n){return new(n||e)(m(ge,16))};static \u0275pipe=N({name:"number",type:e,pure:!0})}return e})();function fn(e){return!(e==null||e===""||e!==e)}function hn(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var gn=(()=>{class e{transform(t,n,r){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw X(e,t);return t.slice(n,r)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=N({name:"slice",type:e,pure:!1})}return e})();var Dn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ze({type:e});static \u0275inj=Oe({})}return e})();function pn(e,i){i=encodeURIComponent(i);for(let t of e.split(";")){let n=t.indexOf("="),[r,s]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(r.trim()===i)return decodeURIComponent(s)}return null}var wt="browser",At="server";function mn(e){return e===wt}function Cn(e){return e===At}var ve=class{};var Wi=(()=>{class e{static \u0275prov=b({token:e,providedIn:"root",factory:()=>new Ie(S(G),window)})}return e})(),Ie=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let t=Fn(this.document,i);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let t=i.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function Fn(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var _t=e=>e.src,yn=new L("",{providedIn:"root",factory:()=>_t});var St=/^((\s*\d+w\s*(,|$)){1,})$/;var En=[1,2],wn=640;var An=1920,Sn=1080;var Zi=(()=>{class e{imageLoader=S(yn);config=_n(S(Pe));renderer=S(z);imgElement=S(U).nativeElement;injector=S(Re);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){Ne("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&St.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(t){let n=t;return this.loaderParams&&(n.loaderParams=this.loaderParams),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=St.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let s=t?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,n=t;return this.sizes?.trim()==="100vw"&&(n=t.filter(s=>s>=wn)),n.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return En.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>An||this.height>Sn),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==_t&&!t}generatePlaceholder(t){let{placeholderResolution:n}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0})})`:typeof t=="string"?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let n=()=>{let o=this.injector.get(Q);r(),s(),this.placeholder=!1,o.markForCheck()},r=this.renderer.listen(t,"load",n),s=this.renderer.listen(t,"error",n);bn(t,n)}setHostAttribute(t,n){this.renderer.setAttribute(this.imgElement,t,n)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=O({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,r){n&2&&Ge("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",vn],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",De],height:[2,"height","height",De],loading:"loading",priority:[2,"priority","priority",V],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",V],fill:[2,"fill","fill",V],placeholder:[2,"placeholder","placeholder",In],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[x]})}return e})();function _n(e){let i={};return e.breakpoints&&(i.breakpoints=e.breakpoints.sort((t,n)=>t-n)),Object.assign({},Be,e,i)}function bn(e,i){e.complete&&e.naturalWidth&&i()}function vn(e){return typeof e=="string"?e:ke(e)}function In(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:V(e)}export{G as a,ee as b,bt as c,me as d,vt as e,k as f,Je as g,Qe as h,Tt as i,Jt as j,Qt as k,Ft as l,en as m,tn as n,nn as o,on as p,an as q,ln as r,dn as s,gn as t,Dn as u,pn as v,wt as w,mn as x,Cn as y,ve as z,Wi as A,Zi as B};
@@ -0,0 +1 @@
1
+ import{a as Le,b as Ne}from"./chunk-GIRWHO6Q.js";import{b as Me}from"./chunk-JPNJTPYJ.js";import{a as Ae}from"./chunk-XKI7WLHE.js";import{a as je,b as Ve}from"./chunk-2ABEICLB.js";import"./chunk-KQZMRRMA.js";import"./chunk-ZC7ZENN7.js";import{m as pe}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as H,b as O}from"./chunk-3VQUNDVT.js";import{b as ke,g as Ie,h as Te,i as Fe}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as De,b as ye}from"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as y}from"./chunk-BT7Y4ADP.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as we}from"./chunk-JPKZVL57.js";import"./chunk-VM56C6ZV.js";import{a as he,b as Ee}from"./chunk-ISIYG4D5.js";import{b as h,c as Re,d as be,e as Se,f as Ce,g as ve,h as Pe}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as xe,x as _e}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{c as N,e as ce,f as me,m as de,p as ue,v as fe,y as ge}from"./chunk-MGIEURA2.js";import{e as ae,l as se}from"./chunk-DZCJWJUG.js";import"./chunk-VQ62YSFR.js";import{a as le}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as ee,l as te,m as ie,r as ne,s as re,u as oe}from"./chunk-DM2JLWKE.js";import{Cb as z,D as B,Dc as W,Eb as _,Ec as X,Fc as V,L as G,Mb as x,Oc as A,P as $,Pb as J,Pc as Y,Qc as Z,Rb as D,Sc as b,Wb as o,Xb as a,Y as T,Yb as E,_ as F,ac as M,bd as L,c as I,ca as q,fc as j,gc as f,ia as g,ib as m,qa as P,ra as w,s as v,sc as d,tc as R,uc as Q,yb as K}from"./chunk-6QJHEOXN.js";import{a as l,b as c}from"./chunk-YQFG5XE2.js";var k=(()=>{class e{constructor(){this.httpService=g(le)}getPostRecurringExpenseLoader(){return this.httpService.get(void 0,"api/RecurringExpenseLoader/RecurringExpensesGenerate")}previewPostRecurringExpense(t){return this.httpService.post(void 0,"api/RecurringExpense/RecurringExpensesGeneratePreview",t)}submitPostRecurringExpense(t){return this.httpService.post(void 0,"api/RecurringExpense/RecurringExpensesGenerate",t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Oe={data:{data:[]},meta:{options:{expenses:[]},form:{date:"",number:"",listIDs:[]}},filter:{date:"",number:"",listIDs:[]}},U=Re(ve(Oe),Pe("PostRecurringExpenseStore"),be(e=>({hasCheckedRows:L(()=>e.data().data.some(s=>s.checked)),checkedPRE:L(()=>e.data().data.filter(s=>s.checked))})),Ce(e=>{let s=g(k);return{updateFilter:i=>{h(e,n=>c(l({},n),{filter:l(l({},n.filter),i)}))},emptyData(){h(e,i=>c(l({},i),{data:{data:[],totalCount:0}}))},onRowSelect(i){h(e,n=>{let r=n.data.data.map(p=>p.lastExpenseDate===i.lastExpenseDate?c(l({},p),{checked:!0}):p);return c(l({},n),{data:c(l({},n.data),{data:r})})})},onRowUnselect(i){h(e,n=>{let r=n.data.data.map(p=>p.lastExpenseDate===i.lastExpenseDate?c(l({},p),{checked:!1}):p);return c(l({},n),{data:c(l({},n.data),{data:r})})})},onHeaderCheckboxToggle(i){h(e,n=>{let r=n.data.data.map(p=>c(l({},p),{checked:i}));return c(l({},n),{data:c(l({},n.data),{data:r})})})},getPRELoader:H(I(T(()=>s.getPostRecurringExpenseLoader().pipe(O({next:i=>{h(e,n=>c(l({},n),{meta:i}))},error:i=>{console.error("Error fetching PRE Loader:",i)}}))))),getPREPreview:H(I(B(i=>i.date&&i.listIDs.length>0),v(i=>({Date:i.date,Number:i.number,ListIDs:i.listIDs})),T(i=>s.previewPostRecurringExpense(i).pipe(v(n=>c(l({},n),{data:n.data.map(r=>c(l({},r),{checked:!1}))})),O({next:n=>{h(e,r=>c(l({},r),{data:n}))},error:n=>{console.error("Error fetching PRE Preview:",n)}})))))}}),Se(e=>({onInit:()=>{e.getPRELoader(),e.getPREPreview(e.filter)}})));var Ue=()=>({height:"calc(100vh - 70px)"}),Be=e=>({"ng-invalid ng-dirty":e}),Ge=e=>["/pages/recurring/recurring-expense/details/",e];function $e(e,s){if(e&1){let t=M();o(0,"p-button",8),j("onClick",function(){P(t);let n=f(3);return w(n.onSubmitPRE())}),a()}}function qe(e,s){if(e&1&&_(0,$e,1,0,"p-button",7),e&2){let t=f(2);x("ngIf",t.store.hasCheckedRows())}}function Ke(e,s){if(e&1&&_(0,qe,1,1,"p-button",6),e&2){let t=f();D(t.roleService.permissions().recurring.create?0:-1)}}function ze(e,s){if(e&1&&(o(0,"div")(1,"span",20),d(2),a()()),e&2){let t=s.$implicit;m(2),R(t)}}function Je(e,s){if(e&1&&(o(0,"div"),_(1,ze,3,1,"div",19),a()),e&2){let t=f(2);m(),x("ngForOf",t.getErrors("listIDs"))}}function Qe(e,s){e&1&&(o(0,"th",21),E(1,"p-tableHeaderCheckbox"),a())}function We(e,s){if(e&1&&(o(0,"tr"),_(1,Qe,2,0,"th",21),o(2,"th"),d(3,"Name"),a(),o(4,"th"),d(5,"Date"),a(),o(6,"th"),d(7,"Asset Account"),a(),o(8,"th"),d(9,"Expense Account"),a(),o(10,"th",22),d(11,"Amount"),a()()),e&2){let t=f(2);m(),D(t.roleService.permissions().recurring.create?1:-1)}}function Xe(e,s){if(e&1&&(o(0,"td"),E(1,"p-tableCheckbox",24),a()),e&2){let t=f().$implicit;m(),x("value",t)}}function Ye(e,s){if(e&1&&(o(0,"tr"),_(1,Xe,2,1,"td"),o(2,"td")(3,"a",23),d(4),a()(),o(5,"td"),d(6),A(7,"date"),a(),o(8,"td"),d(9),a(),o(10,"td"),d(11),a(),o(12,"td",22),d(13),A(14,"number"),a()()),e&2){let t=s.$implicit,i=f(2);m(),D(i.roleService.permissions().recurring.create?1:-1),m(2),x("routerLink",V(12,Ge,t.id)),m(),Q(" ",t.name," "),m(2),R(Z(7,7,t.nextExpenseDate,"d MMM y")),m(3),R(t.paymentName),m(2),R(t.expenseName),m(2),R(Y(14,10,t.amount))}}function Ze(e,s){e&1&&(o(0,"tr")(1,"td",25)(2,"span"),d(3,"No records found."),a()()())}function et(e,s){if(e&1){let t=M();o(0,"p-panel")(1,"div",9)(2,"div",10)(3,"div",11)(4,"div",12)(5,"div",13)(6,"label",14),d(7,"Date"),a(),E(8,"p-datepicker",15),a()(),o(9,"div",12)(10,"div",13)(11,"label",14),d(12,"Recurring Expense"),a(),E(13,"p-multiselect",16),_(14,Je,2,1,"div",17),a()()()()(),E(15,"p-divider"),o(16,"p-table",18),j("onHeaderCheckboxToggle",function(n){P(t);let r=f();return w(r.onHeaderCheckboxToggle(n))})("onRowSelect",function(n){P(t);let r=f();return w(r.onRowSelect(n))})("onRowUnselect",function(n){P(t);let r=f();return w(r.onRowUnselect(n))}),_(17,We,12,1,"ng-template",null,2,b)(19,Ye,15,14,"ng-template",null,3,b)(21,Ze,4,0,"ng-template",null,4,b),a()()}if(e&2){let t=f();J(X(7,Ue)),m(),x("formGroup",t.form),m(12),x("ngClass",V(8,Be,t.isInvalid("listIDs")))("options",t.store.meta().options.expenses),m(),x("ngIf",t.isInvalid("listIDs")),m(2),x("value",t.store.data().data)}}var Gt=(()=>{class e extends Ae{constructor(){super(),this.store=g(U),this.fb=g(fe),this.dayjsService=g(Me),this.PREService=g(k),this.roleService=g(pe)}ngOnInit(){this.initForm(),this.form.valueChanges.pipe(G(300),$(),y("Form Value Changes"),v(t=>Object.entries(t).reduce((i,[n,r])=>{switch(n){case"date":typeof r=="object"&&r!==null&&!Array.isArray(r)?i[n]=this.dayjsService.from(r)?this.dayjsService.format(r):null:(typeof r=="string"||typeof r=="number"||r instanceof Date)&&!Array.isArray(r)?i[n]=r!=null?String(r):null:i[n]=null;break;default:i[n]=r===null?"":r;break}return i},{})),y("Mapped Form Value"),F(t=>{(!t.listIDs||t.listIDs.length===0)&&this.store.emptyData(),this.store.updateFilter(t)})).subscribe()}initForm(){let{date:t,listIDs:i,number:n}=this.store.filter();this.form=this.fb.group({date:this.fb.control(this.dayjsService.from(t)?this.dayjsService.from(t).toDate():this.dayjsService.now.toDate(),[N.required]),number:this.fb.control(n||""),listIDs:this.fb.control(i,[N.required])})}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(i=>{this.store.onRowUnselect(i)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}onSubmitPRE(){console.log(this.store.checkedPRE());let i=this.store.checkedPRE().reduce((r,p)=>(r[p.id]||(r[p.id]={ID:p.id,ListDate:[]}),r[p.id].ListDate.push(p.lastExpenseDate),r),{}),n=Object.values(i);console.log("Submitting PRE with body:",n),this.PREService.submitPostRecurringExpense(n).pipe(y("Submit Post Recurring Expense"),F(()=>{let r=this.form.getRawValue(),p=Object.entries(r).reduce((S,[C,u])=>{switch(C){case"date":typeof u=="object"&&u!==null&&!Array.isArray(u)?S[C]=this.dayjsService.from(u)?this.dayjsService.format(u):null:(typeof u=="string"||typeof u=="number"||u instanceof Date)&&!Array.isArray(u)?S[C]=u!=null?String(u):null:S[C]=null;break;default:S[C]=u===null?"":u;break}return S},{});this.store.updateFilter(p)})).subscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=K({type:e,selectors:[["app-post-recurring-expense"]],features:[W([U]),z],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["emptymessage",""],["pageTitle","Post Recurring Expense",3,"scrollable"],["label","Submit"],["label","Submit",3,"onClick",4,"ngIf"],["label","Submit",3,"onClick"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"row"],[1,"col"],[1,"d-flex","flex-column"],["for",""],["fluid","","formControlName","date"],["display","chip","fluid","","formControlName","listIDs","optionLabel","name","optionValue","id","placeholder","Select Recurring Expenses",3,"ngClass","options"],[4,"ngIf"],["dataKey","lastExpenseDate",3,"onHeaderCheckboxToggle","onRowSelect","onRowUnselect","value"],[4,"ngFor","ngForOf"],[1,"text-danger"],[2,"width","1rem"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],[3,"value"],["colspan","6"]],template:function(i,n){i&1&&(o(0,"app-main-panel",5),_(1,Ke,1,1,"ng-template",null,0,b)(3,et,23,10,"ng-template",null,1,b),a()),i&2&&x("scrollable",!0)},dependencies:[we,oe,ee,te,ie,re,ne,Ee,he,Ne,Le,ye,De,Ve,je,ge,ce,me,de,ue,Fe,ke,Ie,Te,_e,xe,se,ae],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();export{Gt as PostRecurringExpenseComponent};