dealposbooks 5.41.0 → 5.42.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 (119) hide show
  1. package/{chunk-EGS6BIKL.js → chunk-2KSIXNPV.js} +1 -1
  2. package/{chunk-4TW5N3R5.js → chunk-2LQVI4EI.js} +1 -1
  3. package/{chunk-UVIJU7TM.js → chunk-3KYU6FI2.js} +1 -1
  4. package/{chunk-H4KAOKJR.js → chunk-4FPYSVLT.js} +1 -1
  5. package/chunk-4T4ZMO2W.js +1 -0
  6. package/{chunk-A25JUSCO.js → chunk-4XWITFH7.js} +1 -1
  7. package/{chunk-ZXXBWTY6.js → chunk-5BOW66AG.js} +1 -1
  8. package/{chunk-MUFRLGLG.js → chunk-5JV52UYK.js} +1 -1
  9. package/{chunk-K5CHFPJQ.js → chunk-5VGOFOX2.js} +1 -1
  10. package/chunk-6K5LNQ4J.js +7 -0
  11. package/{chunk-5YZ63KSK.js → chunk-6V36DOK2.js} +1 -1
  12. package/{chunk-ZEVIDUTH.js → chunk-6WKYLSYP.js} +1 -1
  13. package/chunk-72LNXEXV.js +193 -0
  14. package/{chunk-N5W3C4LG.js → chunk-76LPTGLX.js} +1 -1
  15. package/chunk-7C7EETGW.js +1 -0
  16. package/{chunk-MDNCQKUT.js → chunk-7FFMPB6T.js} +1 -1
  17. package/{chunk-B5RBLDGE.js → chunk-ACTRMWEI.js} +1 -1
  18. package/{chunk-NTCCFR6P.js → chunk-AJZ7YLT4.js} +1 -1
  19. package/{chunk-PTEBSIFB.js → chunk-AL647DUL.js} +1 -1
  20. package/{chunk-4R64ZVCC.js → chunk-AOEUGUUG.js} +1 -1
  21. package/{chunk-76QGHXHT.js → chunk-ARXP327B.js} +1 -1
  22. package/{chunk-W6IKDXXT.js → chunk-ATJ55H5D.js} +1 -1
  23. package/{chunk-CCBBIKGU.js → chunk-ATX4BY67.js} +1 -1
  24. package/chunk-BITCZENK.js +1 -0
  25. package/{chunk-TKBMWC2X.js → chunk-BJ4RON42.js} +1 -1
  26. package/{chunk-64ODJHGP.js → chunk-CNXEJBY5.js} +1 -1
  27. package/{chunk-4XLWJIA4.js → chunk-COFCPN7C.js} +1 -1
  28. package/{chunk-XZIY7XVI.js → chunk-CW54IWUU.js} +1 -1
  29. package/{chunk-BSFKUGYO.js → chunk-CWHL7PNC.js} +1 -1
  30. package/{chunk-5PDLMIPF.js → chunk-CX2BHYNS.js} +2 -2
  31. package/{chunk-S2Q6V4IV.js → chunk-CX3TZ3F3.js} +1 -1
  32. package/{chunk-YTNI3IAH.js → chunk-DNSB75EY.js} +1 -1
  33. package/{chunk-C4LGY75Z.js → chunk-DNSLJ56D.js} +12 -12
  34. package/{chunk-IIS3WYGB.js → chunk-DZPSFXS3.js} +1 -1
  35. package/{chunk-AOOR6RAK.js → chunk-E3IHKOAY.js} +1 -1
  36. package/{chunk-CDXFHUDN.js → chunk-E3QNEH3B.js} +1 -1
  37. package/{chunk-DUEYD2IO.js → chunk-E3ZGQRZ3.js} +1 -1
  38. package/chunk-EFDD6Q3K.js +1 -0
  39. package/{chunk-NI4XE6XQ.js → chunk-EOT2WEXN.js} +1 -1
  40. package/{chunk-VHKZXNG3.js → chunk-G2XTYWUH.js} +1 -1
  41. package/{chunk-6XPCPRHF.js → chunk-G6QDPEX3.js} +1 -1
  42. package/{chunk-YIAUCENA.js → chunk-GQKBEHOT.js} +1 -1
  43. package/chunk-GUMGPPIY.js +7 -0
  44. package/chunk-H4VWZKYM.js +129 -0
  45. package/chunk-H6IBFIUL.js +1 -0
  46. package/{chunk-7UB4B7A7.js → chunk-HEX727RH.js} +1 -1
  47. package/{chunk-WDQXDERR.js → chunk-HOLCPFZZ.js} +1 -1
  48. package/{chunk-A7LRQMLA.js → chunk-I7ILLTFH.js} +1 -1
  49. package/{chunk-EALZUKSJ.js → chunk-IJTQE2H4.js} +1 -1
  50. package/{chunk-O2725QPF.js → chunk-IS5D5Y5O.js} +2 -2
  51. package/{chunk-RB3MCWL5.js → chunk-JXWMAOBZ.js} +1 -1
  52. package/{chunk-T4TFJFL4.js → chunk-K4P3JOA6.js} +1 -1
  53. package/{chunk-BRCJWPEZ.js → chunk-KLKIEREL.js} +1 -1
  54. package/{chunk-HBNGOJIS.js → chunk-KTBXIMLW.js} +1 -1
  55. package/chunk-KXE3J4PK.js +1 -0
  56. package/{chunk-MO4YK4HT.js → chunk-L2HPS4DV.js} +1 -1
  57. package/{chunk-WNA57NZF.js → chunk-L3PZS6EL.js} +1 -1
  58. package/{chunk-3267XKO5.js → chunk-LHWNMLZB.js} +1 -1
  59. package/{chunk-FOCWONCO.js → chunk-LMPWYMLR.js} +1 -1
  60. package/{chunk-QFOKESND.js → chunk-LQQDFSAQ.js} +1 -1
  61. package/{chunk-V6VS3FMZ.js → chunk-M5PA3FZY.js} +1 -1
  62. package/{chunk-I4WD74I3.js → chunk-MAID3JDN.js} +1 -1
  63. package/chunk-MJ6ZJF3H.js +1 -0
  64. package/{chunk-UTG7WNU7.js → chunk-MPHY6FVN.js} +1 -1
  65. package/{chunk-Y52DQWVS.js → chunk-MS6WBVQX.js} +1 -1
  66. package/{chunk-X3JXYOSR.js → chunk-MWFWXJG3.js} +1 -1
  67. package/{chunk-2JNTUTNL.js → chunk-MWQ5U4W3.js} +1 -1
  68. package/{chunk-VDXMHX3J.js → chunk-MZAFOBGT.js} +1 -1
  69. package/{chunk-RNPNKSFR.js → chunk-NHZLS6JU.js} +1 -1
  70. package/{chunk-GLOECGB7.js → chunk-NMSYINDE.js} +1 -1
  71. package/{chunk-5AD3KAHO.js → chunk-OB46Z7ZH.js} +1 -1
  72. package/{chunk-P6CXZZTO.js → chunk-ODRV6XWO.js} +1 -1
  73. package/{chunk-YS5U5SXP.js → chunk-ORLKNWW4.js} +1 -1
  74. package/{chunk-4IEK5V2S.js → chunk-OUG6F43J.js} +1 -1
  75. package/{chunk-IIW75XWJ.js → chunk-OXOMDF6M.js} +1 -1
  76. package/{chunk-WZWAFKRU.js → chunk-OZKBRBOY.js} +1 -1
  77. package/{chunk-IFNPFJH5.js → chunk-PEUKFSUJ.js} +1 -1
  78. package/{chunk-BWBNGOLL.js → chunk-RR6S2HFO.js} +1 -1
  79. package/{chunk-4WAIBWB3.js → chunk-RUTF6FR5.js} +1 -1
  80. package/chunk-SB5MSLCX.js +2 -0
  81. package/{chunk-5B3BG43K.js → chunk-SPKOXGSS.js} +1 -1
  82. package/{chunk-IANH6F5O.js → chunk-TKMZHTAO.js} +1 -1
  83. package/{chunk-Y7NHB6MD.js → chunk-U3FE33DK.js} +1 -1
  84. package/{chunk-E2R6VN7Z.js → chunk-U3IDLIOU.js} +1 -1
  85. package/{chunk-KIFK2NRF.js → chunk-UDIFKJ7M.js} +1 -1
  86. package/chunk-UKBDY33R.js +1 -0
  87. package/{chunk-T5LNS6MU.js → chunk-UTWZ4VAT.js} +1 -1
  88. package/{chunk-OCFTAJHS.js → chunk-VG63BCDR.js} +1 -1
  89. package/{chunk-MASZROSE.js → chunk-VRKBMD72.js} +1 -1
  90. package/{chunk-4ZDV2QVO.js → chunk-VU6ADTDK.js} +1 -1
  91. package/{chunk-QC7LTJLT.js → chunk-WICYUZB3.js} +1 -1
  92. package/{chunk-KKZF4RQM.js → chunk-WLKS6LBU.js} +1 -1
  93. package/{chunk-AE7ZMPUT.js → chunk-WPQGYVNT.js} +1 -1
  94. package/{chunk-PS4MFIBX.js → chunk-WXT6EZ2V.js} +1 -1
  95. package/{chunk-OUIY2TC7.js → chunk-X47UFONT.js} +2 -2
  96. package/{chunk-RZI2OI6V.js → chunk-X4KTMWVO.js} +1 -1
  97. package/{chunk-UA264VBG.js → chunk-XLPFLHKU.js} +1 -1
  98. package/chunk-XXZCO6UK.js +1 -0
  99. package/{chunk-R3JWL2J6.js → chunk-ZDTMCWOO.js} +1 -1
  100. package/{chunk-LNN3TWH2.js → chunk-ZEWON3MW.js} +1 -1
  101. package/{chunk-XOEBC23H.js → chunk-ZZUXQ3K2.js} +1 -1
  102. package/index.html +2 -2
  103. package/main-K7GRU625.js +1 -0
  104. package/package.json +1 -1
  105. package/chunk-4V6IW37R.js +0 -1
  106. package/chunk-7CUSFSFC.js +0 -1
  107. package/chunk-7IC4BZ6J.js +0 -7
  108. package/chunk-DOKG43W6.js +0 -1
  109. package/chunk-HWZKSQ5E.js +0 -1
  110. package/chunk-JGPCJCYI.js +0 -1
  111. package/chunk-JO34HDB4.js +0 -129
  112. package/chunk-KUHLDSNT.js +0 -1
  113. package/chunk-NHXCR55X.js +0 -193
  114. package/chunk-NM7Z2FA7.js +0 -1
  115. package/chunk-TEEBLB6T.js +0 -7
  116. package/chunk-VU532YE3.js +0 -2
  117. package/chunk-ZVRETQOI.js +0 -1
  118. package/chunk-ZW6ONWWO.js +0 -1
  119. package/main-ILDJZYPX.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as ee,b as yt}from"./chunk-4R64ZVCC.js";import{a as xt}from"./chunk-G4XX7EU2.js";import{f as Ct}from"./chunk-5AD3KAHO.js";import"./chunk-DUEYD2IO.js";import{a as bt}from"./chunk-XKI7WLHE.js";import{a as ot}from"./chunk-YS5U5SXP.js";import"./chunk-KKZF4RQM.js";import{a as X,b as Y}from"./chunk-RNPNKSFR.js";import{d as ft,i as ht,j as gt,k as wt}from"./chunk-BRCJWPEZ.js";import"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import{a as ue}from"./chunk-7CUSFSFC.js";import"./chunk-NI4XE6XQ.js";import{a as ut,b as _t}from"./chunk-RZI2OI6V.js";import"./chunk-A7LRQMLA.js";import"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import"./chunk-W6IKDXXT.js";import"./chunk-5B3BG43K.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{h as dt}from"./chunk-4IEK5V2S.js";import{a as Je}from"./chunk-WNA57NZF.js";import{a as nt,b as rt}from"./chunk-MUFRLGLG.js";import{a as D,b as at,c as st,d as lt,e as pt,f as ct,g as mt}from"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{a as Ke,f as L,k as Xe,m as Ye,o as et,s as tt,w as J,x as it}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{A as qe,C as Ge,K as je,La as Ze,Ma as K,Ua as We,c as W,e as Ae,f as Be,l as He,ma as $e,o as Ne,u as Qe,x as ze,z as de}from"./chunk-NHXCR55X.js";import{b as Re,d as Le,e as Me}from"./chunk-DOKG43W6.js";import"./chunk-A25JUSCO.js";import"./chunk-R3JWL2J6.js";import{c as Oe,d as se,f as le,h as pe,i as ce,k as me}from"./chunk-F2X3VGZZ.js";import{h as j,k as $,m as Pe,s as Z}from"./chunk-VU532YE3.js";import{Ab as H,Bc as G,Cb as _,Dc as V,Ec as Ee,Ga as R,Ic as Ue,Jb as E,Kb as s,Nb as xe,Ob as ne,Pb as Ce,Qb as N,Qc as x,Sb as Q,Tb as z,Ub as l,Vb as p,Wb as y,X as O,Xb as ye,Yb as ve,Z as te,Zb as U,Zc as I,_b as T,_c as Fe,ad as P,ba as ge,bd as Ve,c as M,ca as we,dc as b,ec as c,fc as ke,gb as a,gc as Te,ha as C,jc as F,kc as q,lc as v,mc as k,pa as d,pc as Se,qa as u,qc as g,rc as S,sc as Ie,ta as ie,uc as De,vc as re,wb as B,wc as oe,xb as be,xc as ae,za as A}from"./chunk-7IC4BZ6J.js";import{a as f,b as h}from"./chunk-YQFG5XE2.js";var Tt={data:[],count:0,filter:{pagination:1,pageSize:10,groupID:null,text:""},meta:{filter:{pagination:1,pageSize:10,groupID:null,text:""},options:{groups:[]}},metaForm:{form:{id:"",groupID:"",accessTypeID:1},options:{users:[],groups:[],accessTypes:[]}}},_e=at(mt("UserStore"),ct(Tt),st(t=>({first:P(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:P(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:P(()=>t.data().some(o=>o.checked)),checkedData:P(()=>t.data().filter(o=>o.checked).map(o=>o.userID)),selectedID:P(()=>t.data().find(o=>o.checked)?.userID||null)})),pt(t=>{let o=C(ee);return{setFilter(n){D(t,i=>h(f({},i),{filter:n}))},onRowSelect(n){D(t,i=>{let r=i.data.map(m=>m.userID===n.userID?h(f({},m),{checked:!0}):m);return h(f({},i),{data:r})})},onRowUnselect(n){D(t,i=>{let r=i.data.map(m=>m.userID===n.userID?h(f({},m),{checked:!1}):m);return h(f({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");D(t,r=>{let m=r.data.map(w=>w.userName!==i?h(f({},w),{checked:n}):h(f({},w),{checked:!1}));return h(f({},r),{data:m})})},getUserLoader:X(M(O(()=>o.getUserLoaderList().pipe(Y({next:n=>{D(t,i=>h(f({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:X(M(O(n=>o.getUserFormMeta(n).pipe(Y({next:i=>{D(t,r=>h(f({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:X(M(O(n=>o.getUsers(n).pipe(Y({next:i=>{D(t,r=>h(f({},r),{data:i.data.map(m=>h(f({},m),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),lt({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Dt=["header"],Et=["footer"],Ut=["content"],Ft=["closeicon"],Vt=["headless"],Pt=["maskRef"],Rt=["container"],Lt=["closeButton"],Mt=["*"],Ot=(t,o,e,n,i,r)=>({"p-drawer":!0,"p-drawer-active":t,"p-drawer-left":o,"p-drawer-right":e,"p-drawer-top":n,"p-drawer-bottom":i,"p-drawer-full":r}),At=(t,o)=>({transform:t,transition:o}),Bt=t=>({value:"visible",params:t});function Ht(t,o){t&1&&U(0)}function Nt(t,o){if(t&1&&_(0,Ht,1,0,"ng-container",4),t&2){let e=c(2);s("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function Qt(t,o){t&1&&U(0)}function zt(t,o){if(t&1&&(l(0,"div"),g(1),p()),t&2){let e=c(3);ne(e.cx("title")),a(),S(e.header)}}function qt(t,o){t&1&&y(0,"TimesIcon"),t&2&&E("data-pc-section","closeicon")}function Gt(t,o){}function jt(t,o){t&1&&_(0,Gt,0,0,"ng-template")}function $t(t,o){if(t&1&&_(0,qt,1,1,"TimesIcon",8)(1,jt,1,0,null,4),t&2){let e=c(4);s("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),a(),s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Zt(t,o){if(t&1){let e=T();l(0,"p-button",9),b("onClick",function(i){d(e);let r=c(3);return u(r.close(i))})("keydown.enter",function(i){d(e);let r=c(3);return u(r.close(i))}),_(1,$t,2,2,"ng-template",null,1,x),p()}if(t&2){let e=c(3);s("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),E("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Wt(t,o){t&1&&U(0)}function Kt(t,o){t&1&&U(0)}function Jt(t,o){if(t&1&&(ye(0),l(1,"div",5),_(2,Kt,1,0,"ng-container",4),p(),ve()),t&2){let e=c(3);a(),s("ngClass",e.cx("footer")),E("data-pc-section","footer"),a(),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Xt(t,o){if(t&1&&(l(0,"div",5),_(1,Qt,1,0,"ng-container",4)(2,zt,2,3,"div",6)(3,Zt,3,5,"p-button",7),p(),l(4,"div",5),Te(5),_(6,Wt,1,0,"ng-container",4),p(),_(7,Jt,3,3,"ng-container",8)),t&2){let e=c(2);s("ngClass",e.cx("header")),E("data-pc-section","header"),a(),s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),a(),s("ngIf",e.header),a(),s("ngIf",e.showCloseIcon&&e.closable),a(),s("ngClass",e.cx("content")),E("data-pc-section","content"),a(2),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),a(),s("ngIf",e.footerTemplate||e._footerTemplate)}}function Yt(t,o){if(t&1){let e=T();l(0,"div",3,0),b("@panelState.start",function(i){d(e);let r=c();return u(r.onAnimationStart(i))})("@panelState.done",function(i){d(e);let r=c();return u(r.onAnimationEnd(i))})("keydown",function(i){d(e);let r=c();return u(r.onKeyDown(i))}),_(2,Nt,1,1,"ng-container")(3,Xt,8,9),p()}if(t&2){let e=c();xe(e.style),ne(e.styleClass),s("ngClass",Ue(9,Ot,e.visible,e.position==="left"&&!e.fullScreen,e.position==="right"&&!e.fullScreen,e.position==="top"&&!e.fullScreen,e.position==="bottom"&&!e.fullScreen,e.fullScreen||e.position==="full"))("@panelState",V(19,Bt,Ee(16,At,e.transformOptions,e.transitionOptions))),E("data-pc-name","sidebar")("data-pc-section","root"),a(2),Ce(e.headlessTemplate||e._headlessTemplate?2:3)}}var ei=({dt:t})=>`
1
+ import{a as ee,b as yt}from"./chunk-AOEUGUUG.js";import{a as xt}from"./chunk-G4XX7EU2.js";import{f as Ct}from"./chunk-OB46Z7ZH.js";import"./chunk-E3ZGQRZ3.js";import{a as bt}from"./chunk-XKI7WLHE.js";import{a as ot}from"./chunk-ORLKNWW4.js";import"./chunk-WLKS6LBU.js";import{a as X,b as Y}from"./chunk-NHZLS6JU.js";import{d as ft,i as ht,j as gt,k as wt}from"./chunk-KLKIEREL.js";import"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as ue}from"./chunk-KXE3J4PK.js";import"./chunk-EOT2WEXN.js";import{a as ut,b as _t}from"./chunk-X4KTMWVO.js";import"./chunk-I7ILLTFH.js";import"./chunk-2LQVI4EI.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{h as dt}from"./chunk-OUG6F43J.js";import{a as Je}from"./chunk-L3PZS6EL.js";import{a as nt,b as rt}from"./chunk-5JV52UYK.js";import{a as D,b as at,c as st,d as lt,e as pt,f as ct,g as mt}from"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{a as Ke,f as L,k as Xe,m as Ye,o as et,s as tt,w as J,x as it}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{A as qe,C as Ge,K as je,La as Ze,Ma as K,Ua as We,c as W,e as Ae,f as Be,l as He,ma as $e,o as Ne,u as Qe,x as ze,z as de}from"./chunk-72LNXEXV.js";import{b as Re,d as Le,e as Me}from"./chunk-EFDD6Q3K.js";import"./chunk-4XWITFH7.js";import"./chunk-ZDTMCWOO.js";import{c as Oe,d as se,f as le,h as pe,i as ce,k as me}from"./chunk-F2X3VGZZ.js";import{h as j,k as $,m as Pe,s as Z}from"./chunk-SB5MSLCX.js";import{$b as T,$c as Fe,Aa as A,Bb as H,Cc as G,Db as _,Ec as V,Fc as Ee,Ha as R,Jc as Ue,Kb as E,Lb as s,Ob as xe,Pb as ne,Qb as Ce,Rb as N,Rc as x,Tb as Q,Ub as z,Vb as l,Wb as p,Xb as y,Y as O,Yb as ye,Zb as ve,_ as te,_b as U,_c as I,bd as P,c as M,ca as ge,cd as Ve,da as we,ec as b,fc as c,gc as ke,hb as a,hc as Te,ia as C,kc as F,lc as q,mc as v,nc as k,qa as d,qc as Se,ra as u,rc as g,sc as S,tc as Ie,ua as ie,vc as De,wc as re,xb as B,xc as oe,yb as be,yc as ae}from"./chunk-6K5LNQ4J.js";import{a as f,b as h}from"./chunk-YQFG5XE2.js";var Tt={data:[],count:0,filter:{pagination:1,pageSize:10,groupID:null,text:""},meta:{filter:{pagination:1,pageSize:10,groupID:null,text:""},options:{groups:[]}},metaForm:{form:{id:"",groupID:"",accessTypeID:1},options:{users:[],groups:[],accessTypes:[]}}},_e=at(mt("UserStore"),ct(Tt),st(t=>({first:P(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:P(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:P(()=>t.data().some(o=>o.checked)),checkedData:P(()=>t.data().filter(o=>o.checked).map(o=>o.userID)),selectedID:P(()=>t.data().find(o=>o.checked)?.userID||null)})),pt(t=>{let o=C(ee);return{setFilter(n){D(t,i=>h(f({},i),{filter:n}))},onRowSelect(n){D(t,i=>{let r=i.data.map(m=>m.userID===n.userID?h(f({},m),{checked:!0}):m);return h(f({},i),{data:r})})},onRowUnselect(n){D(t,i=>{let r=i.data.map(m=>m.userID===n.userID?h(f({},m),{checked:!1}):m);return h(f({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");D(t,r=>{let m=r.data.map(w=>w.userName!==i?h(f({},w),{checked:n}):h(f({},w),{checked:!1}));return h(f({},r),{data:m})})},getUserLoader:X(M(O(()=>o.getUserLoaderList().pipe(Y({next:n=>{D(t,i=>h(f({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:X(M(O(n=>o.getUserFormMeta(n).pipe(Y({next:i=>{D(t,r=>h(f({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:X(M(O(n=>o.getUsers(n).pipe(Y({next:i=>{D(t,r=>h(f({},r),{data:i.data.map(m=>h(f({},m),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),lt({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Dt=["header"],Et=["footer"],Ut=["content"],Ft=["closeicon"],Vt=["headless"],Pt=["maskRef"],Rt=["container"],Lt=["closeButton"],Mt=["*"],Ot=(t,o,e,n,i,r)=>({"p-drawer":!0,"p-drawer-active":t,"p-drawer-left":o,"p-drawer-right":e,"p-drawer-top":n,"p-drawer-bottom":i,"p-drawer-full":r}),At=(t,o)=>({transform:t,transition:o}),Bt=t=>({value:"visible",params:t});function Ht(t,o){t&1&&U(0)}function Nt(t,o){if(t&1&&_(0,Ht,1,0,"ng-container",4),t&2){let e=c(2);s("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function Qt(t,o){t&1&&U(0)}function zt(t,o){if(t&1&&(l(0,"div"),g(1),p()),t&2){let e=c(3);ne(e.cx("title")),a(),S(e.header)}}function qt(t,o){t&1&&y(0,"TimesIcon"),t&2&&E("data-pc-section","closeicon")}function Gt(t,o){}function jt(t,o){t&1&&_(0,Gt,0,0,"ng-template")}function $t(t,o){if(t&1&&_(0,qt,1,1,"TimesIcon",8)(1,jt,1,0,null,4),t&2){let e=c(4);s("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),a(),s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Zt(t,o){if(t&1){let e=T();l(0,"p-button",9),b("onClick",function(i){d(e);let r=c(3);return u(r.close(i))})("keydown.enter",function(i){d(e);let r=c(3);return u(r.close(i))}),_(1,$t,2,2,"ng-template",null,1,x),p()}if(t&2){let e=c(3);s("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),E("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Wt(t,o){t&1&&U(0)}function Kt(t,o){t&1&&U(0)}function Jt(t,o){if(t&1&&(ye(0),l(1,"div",5),_(2,Kt,1,0,"ng-container",4),p(),ve()),t&2){let e=c(3);a(),s("ngClass",e.cx("footer")),E("data-pc-section","footer"),a(),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Xt(t,o){if(t&1&&(l(0,"div",5),_(1,Qt,1,0,"ng-container",4)(2,zt,2,3,"div",6)(3,Zt,3,5,"p-button",7),p(),l(4,"div",5),Te(5),_(6,Wt,1,0,"ng-container",4),p(),_(7,Jt,3,3,"ng-container",8)),t&2){let e=c(2);s("ngClass",e.cx("header")),E("data-pc-section","header"),a(),s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),a(),s("ngIf",e.header),a(),s("ngIf",e.showCloseIcon&&e.closable),a(),s("ngClass",e.cx("content")),E("data-pc-section","content"),a(2),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),a(),s("ngIf",e.footerTemplate||e._footerTemplate)}}function Yt(t,o){if(t&1){let e=T();l(0,"div",3,0),b("@panelState.start",function(i){d(e);let r=c();return u(r.onAnimationStart(i))})("@panelState.done",function(i){d(e);let r=c();return u(r.onAnimationEnd(i))})("keydown",function(i){d(e);let r=c();return u(r.onKeyDown(i))}),_(2,Nt,1,1,"ng-container")(3,Xt,8,9),p()}if(t&2){let e=c();xe(e.style),ne(e.styleClass),s("ngClass",Ue(9,Ot,e.visible,e.position==="left"&&!e.fullScreen,e.position==="right"&&!e.fullScreen,e.position==="top"&&!e.fullScreen,e.position==="bottom"&&!e.fullScreen,e.fullScreen||e.position==="full"))("@panelState",V(19,Bt,Ee(16,At,e.transformOptions,e.transitionOptions))),E("data-pc-name","sidebar")("data-pc-section","root"),a(2),Ce(e.headlessTemplate||e._headlessTemplate?2:3)}}var ei=({dt:t})=>`
2
2
  .p-drawer {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1 +1 @@
1
- import{h as d}from"./chunk-MDNCQKUT.js";import{Ab as s,Jb as l,Ob as p,Ub as c,Vb as C,Wb as m,ra as o,ta as a,wb as r}from"./chunk-7IC4BZ6J.js";var u=(()=>{class t extends d{static \u0275fac=(()=>{let n;return function(e){return(n||(n=a(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["ChevronUpIcon"]],features:[s],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,e){i&1&&(o(),c(0,"svg",0),m(1,"path",1),C()),i&2&&(p(e.getClassNames()),l("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{u as a};
1
+ import{h as d}from"./chunk-7FFMPB6T.js";import{Bb as s,Kb as l,Pb as p,Vb as c,Wb as C,Xb as m,sa as o,ua as a,xb as r}from"./chunk-6K5LNQ4J.js";var u=(()=>{class t extends d{static \u0275fac=(()=>{let n;return function(e){return(n||(n=a(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["ChevronUpIcon"]],features:[s],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,e){i&1&&(o(),c(0,"svg",0),m(1,"path",1),C()),i&2&&(p(e.getClassNames()),l("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{u as a};
@@ -1,4 +1,4 @@
1
- import{a as re,b as Tt}from"./chunk-4R64ZVCC.js";import{f as It}from"./chunk-5AD3KAHO.js";import"./chunk-DUEYD2IO.js";import{a as ut}from"./chunk-YS5U5SXP.js";import"./chunk-KKZF4RQM.js";import{a as Oe,b as ve}from"./chunk-RNPNKSFR.js";import{d as vt,i as Ct,j as wt,k as xt}from"./chunk-BRCJWPEZ.js";import"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import{a as nt}from"./chunk-NI4XE6XQ.js";import"./chunk-RZI2OI6V.js";import{a as Ot}from"./chunk-A7LRQMLA.js";import"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import{a as ot}from"./chunk-W6IKDXXT.js";import"./chunk-5B3BG43K.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{h as yt}from"./chunk-4IEK5V2S.js";import{a as at}from"./chunk-WNA57NZF.js";import{a as pt,b as dt}from"./chunk-MUFRLGLG.js";import{a as K,b as ht,c as ft,d as mt,e as gt,f as _t,g as bt}from"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{a as ye,p as st,r as lt,w as ct,x as rt}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{Aa as Je,D as Qe,Da as Ye,I as Ne,Ia as Ze,La as et,M as Ue,Ma as U,Na as tt,Q as We,R as le,Ua as it,X as je,_ as Xe,a as Re,e as Ke,f as Ae,l as Be,na as ce,o as He,qa as x,ra as M,sa as _e,u as ze,va as be,x as qe}from"./chunk-NHXCR55X.js";import{d as $e,e as De}from"./chunk-DOKG43W6.js";import"./chunk-A25JUSCO.js";import"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{h as me,j as Pe,k as Q,l as Ge,m as ge,s as N}from"./chunk-VU532YE3.js";import{Ab as he,Bc as ae,Cb as m,Cc as se,Dc as q,Ec as Me,Ga as P,Jb as y,Kb as r,Nb as Fe,Ob as Y,Qc as T,Ub as d,Vb as u,Wb as F,X as de,Xb as D,Yb as R,Z as we,Zb as Z,Zc as V,_b as S,_c as fe,aa as xe,ad as G,ba as Ie,bd as Le,c as pe,ca as Te,dc as v,ec as p,gb as c,ha as k,jc as E,kc as z,lc as C,mb as ue,mc as w,oa as Se,pa as h,pc as ee,qa as f,qc as b,rc as B,sc as te,ta as Ve,uc as Ee,vc as ie,wb as H,wc as ne,xb as ke,xc as oe,za as I}from"./chunk-7IC4BZ6J.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var kt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ht(_t(kt),bt("GroupStore"),ft(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))})),gt(t=>{let s=k(re),e={setFilter(n){K(t,i=>_(g({},i),{filter:n}))},onRowSelect(n){K(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!0}):a);return _(g({},i),{data:o})})},onRowUnselect(n){K(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!1}):a);return _(g({},i),{data:o})})},onHeaderCheckboxToggle(n){K(t,i=>{let o=i.data.map(a=>_(g({},a),{checked:n}));return _(g({},i),{data:o})})},getGroupList:Oe(pe(de(n=>s.getGroupList(n).pipe(ve(i=>{K(t,o=>_(g({},o),{data:i.data,count:i.count}))},i=>{console.error("Error fetching group list:",i)}))))),getGroupLoader:Oe(pe(de(()=>s.getGroupLoader().pipe(ve({next:n=>{K(t,i=>_(g({},i),{meta:n,filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),mt(t=>({onInit:()=>{t.getGroupLoader()}})));var Mt=t=>({$implicit:t});function Lt(t,s){t&1&&Z(0)}function Pt(t,s){if(t&1&&(D(0),m(1,Lt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,Mt,e==null?null:e.option))}}function Gt(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(),B(n.getOptionLabelToRender(e))}}function $t(t,s){t&1&&F(0,"AngleRightIcon")}function Dt(t,s){}function Rt(t,s){t&1&&m(0,Dt,0,0,"ng-template")}function Kt(t,s){if(t&1&&(d(0,"span",10),m(1,$t,1,0,"AngleRightIcon",11)(2,Rt,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 At(t,s){if(t&1){let e=S();d(0,"p-cascadeselect-sub",13),v("onChange",function(i){h(e);let o=p(2);return f(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return f(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return f(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Bt(t,s){if(t&1){let e=S();d(0,"li",3)(1,"div",4),v("click",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseMove(i,o))}),m(2,Pt,2,4,"ng-container",5)(3,Gt,2,2,"ng-template",null,0,T)(5,Kt,3,3,"span",6),u(),m(6,At,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 Ht=["value"],zt=["option"],qt=["header"],Qt=["footer"],Nt=["triggericon"],Ut=["loadingicon"],Wt=["optiongroupicon"],jt=["clearicon"],Xt=["focusInput"],Jt=["container"],Yt=["panel"],Zt=["overlay"],ei=(t,s)=>({$implicit:t,placeholder:s}),ti=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function ii(t,s){t&1&&Z(0)}function ni(t,s){if(t&1&&(D(0),m(1,ii,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Me(2,ei,e.value,e.placeholder))}}function oi(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ai(t,s){if(t&1){let e=S();d(0,"TimesIcon",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function si(t,s){}function li(t,s){t&1&&m(0,si,0,0,"ng-template")}function ci(t,s){if(t&1){let e=S();d(0,"span",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),m(1,li,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 ri(t,s){if(t&1&&(D(0),m(1,ai,1,2,"TimesIcon",17)(2,ci,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 pi(t,s){t&1&&Z(0)}function di(t,s){if(t&1&&(D(0),m(1,pi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ui(t,s){if(t&1&&F(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function hi(t,s){t&1&&F(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function fi(t,s){if(t&1&&(D(0),m(1,ui,1,1,"span",20)(2,hi,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function mi(t,s){if(t&1&&(D(0),m(1,di,2,1,"ng-container",12)(2,fi,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 gi(t,s){t&1&&F(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function _i(t,s){}function bi(t,s){t&1&&m(0,_i,0,0,"ng-template")}function yi(t,s){if(t&1&&(d(0,"span",27),m(1,bi,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function Oi(t,s){if(t&1&&m(0,gi,1,1,"ChevronDownIcon",24)(1,yi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function vi(t,s){}function Ci(t,s){t&1&&m(0,vi,0,0,"ng-template")}function wi(t,s){}function xi(t,s){t&1&&m(0,wi,0,0,"ng-template")}function Ii(t,s){if(t&1){let e=S();d(0,"div",28,6),m(2,Ci,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),v("onChange",function(i){h(e);let o=p();return f(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return f(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return f(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),m(7,xi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ti,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 Ti=({dt:t})=>`
1
+ import{a as re,b as Tt}from"./chunk-AOEUGUUG.js";import{f as It}from"./chunk-OB46Z7ZH.js";import"./chunk-E3ZGQRZ3.js";import{a as ut}from"./chunk-ORLKNWW4.js";import"./chunk-WLKS6LBU.js";import{a as Oe,b as ve}from"./chunk-NHZLS6JU.js";import{d as vt,i as Ct,j as wt,k as xt}from"./chunk-KLKIEREL.js";import"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as nt}from"./chunk-EOT2WEXN.js";import"./chunk-X4KTMWVO.js";import{a as Ot}from"./chunk-I7ILLTFH.js";import"./chunk-2LQVI4EI.js";import"./chunk-AJZ7YLT4.js";import{a as ot}from"./chunk-ATJ55H5D.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{h as yt}from"./chunk-OUG6F43J.js";import{a as at}from"./chunk-L3PZS6EL.js";import{a as pt,b as dt}from"./chunk-5JV52UYK.js";import{a as A,b as ht,c as ft,d as mt,e as gt,f as _t,g as bt}from"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{a as ye,p as st,r as lt,w as ct,x as rt}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{Aa as Je,D as Qe,Da as Ye,I as Ne,Ia as Ze,La as et,M as Ue,Ma as U,Na as tt,Q as We,R as le,Ua as it,X as je,_ as Xe,a as Re,e as Ke,f as Ae,l as Be,na as ce,o as He,qa as x,ra as M,sa as _e,u as ze,va as be,x as qe}from"./chunk-72LNXEXV.js";import{d as $e,e as De}from"./chunk-EFDD6Q3K.js";import"./chunk-4XWITFH7.js";import"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{h as me,j as Pe,k as Q,l as Ge,m as ge,s as N}from"./chunk-SB5MSLCX.js";import{$b as S,$c as fe,Aa as I,Bb as he,Cc as ae,Db as m,Dc as se,Ec as q,Fc as Me,Ha as P,Kb as y,Lb as r,Ob as Fe,Pb as Y,Rc as T,Vb as d,Wb as u,Xb as F,Y as de,Yb as D,Zb as R,_ as we,_b as Z,_c as V,ba as xe,bd as G,c as pe,ca as Ie,cd as Le,da as Te,ec as v,fc as p,hb as c,ia as k,kc as E,lc as z,mc as C,nb as ue,nc as w,pa as Se,qa as h,qc as ee,ra as f,rc as b,sc as K,tc as te,ua as Ve,vc as Ee,wc as ie,xb as H,xc as ne,yb as ke,yc as oe}from"./chunk-6K5LNQ4J.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var kt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ht(_t(kt),bt("GroupStore"),ft(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))})),gt(t=>{let s=k(re),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(pe(de(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(pe(de(()=>s.getGroupLoader().pipe(ve({next:n=>{A(t,i=>_(g({},i),{meta:n,filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),mt(t=>({onInit:()=>{t.getGroupLoader()}})));var Mt=t=>({$implicit:t});function Lt(t,s){t&1&&Z(0)}function Pt(t,s){if(t&1&&(D(0),m(1,Lt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,Mt,e==null?null:e.option))}}function Gt(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 $t(t,s){t&1&&F(0,"AngleRightIcon")}function Dt(t,s){}function Rt(t,s){t&1&&m(0,Dt,0,0,"ng-template")}function Kt(t,s){if(t&1&&(d(0,"span",10),m(1,$t,1,0,"AngleRightIcon",11)(2,Rt,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 At(t,s){if(t&1){let e=S();d(0,"p-cascadeselect-sub",13),v("onChange",function(i){h(e);let o=p(2);return f(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return f(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return f(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Bt(t,s){if(t&1){let e=S();d(0,"li",3)(1,"div",4),v("click",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseMove(i,o))}),m(2,Pt,2,4,"ng-container",5)(3,Gt,2,2,"ng-template",null,0,T)(5,Kt,3,3,"span",6),u(),m(6,At,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 Ht=["value"],zt=["option"],qt=["header"],Qt=["footer"],Nt=["triggericon"],Ut=["loadingicon"],Wt=["optiongroupicon"],jt=["clearicon"],Xt=["focusInput"],Jt=["container"],Yt=["panel"],Zt=["overlay"],ei=(t,s)=>({$implicit:t,placeholder:s}),ti=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function ii(t,s){t&1&&Z(0)}function ni(t,s){if(t&1&&(D(0),m(1,ii,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Me(2,ei,e.value,e.placeholder))}}function oi(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ai(t,s){if(t&1){let e=S();d(0,"TimesIcon",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function si(t,s){}function li(t,s){t&1&&m(0,si,0,0,"ng-template")}function ci(t,s){if(t&1){let e=S();d(0,"span",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),m(1,li,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 ri(t,s){if(t&1&&(D(0),m(1,ai,1,2,"TimesIcon",17)(2,ci,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 pi(t,s){t&1&&Z(0)}function di(t,s){if(t&1&&(D(0),m(1,pi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ui(t,s){if(t&1&&F(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function hi(t,s){t&1&&F(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function fi(t,s){if(t&1&&(D(0),m(1,ui,1,1,"span",20)(2,hi,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function mi(t,s){if(t&1&&(D(0),m(1,di,2,1,"ng-container",12)(2,fi,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 gi(t,s){t&1&&F(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function _i(t,s){}function bi(t,s){t&1&&m(0,_i,0,0,"ng-template")}function yi(t,s){if(t&1&&(d(0,"span",27),m(1,bi,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function Oi(t,s){if(t&1&&m(0,gi,1,1,"ChevronDownIcon",24)(1,yi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function vi(t,s){}function Ci(t,s){t&1&&m(0,vi,0,0,"ng-template")}function wi(t,s){}function xi(t,s){t&1&&m(0,wi,0,0,"ng-template")}function Ii(t,s){if(t&1){let e=S();d(0,"div",28,6),m(2,Ci,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),v("onChange",function(i){h(e);let o=p();return f(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return f(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return f(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),m(7,xi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ti,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 Ti=({dt:t})=>`
2
2
  .p-cascadeselect {
3
3
  display: inline-flex;
4
4
  cursor: pointer;
@@ -249,4 +249,4 @@ p-cascadeselect.ng-invalid.ng-dirty .p-cascadeselect-label.p-placeholder {
249
249
  flex-shrink: 0;
250
250
  background: transparent;
251
251
  color: ${t("cascadeselect.clear.icon.color")};
252
- }`,Si={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},Vi={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"},St=(()=>{class t extends it{name="cascadeselect";theme=Ti;classes=Vi;inlineStyles=Si;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ve(t)))(i||t)}})();static \u0275prov=Ie({token:t,factory:t.\u0275fac})}return t})();var ki={provide:Re,useExisting:xe(()=>W),multi:!0},Fi=(()=>{class t extends ye{cascadeselect;role;selectId;activeOptionPath;optionDisabled;focusedOptionId;options;optionGroupChildren;optionTemplate;groupicon;level=0;optionLabel;optionValue;optionGroupLabel;dirty;root;onChange=new I;onFocusChange=new I;onFocusEnterChange=new I;get listLabel(){return this.config.getTranslation(tt.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 x(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=Xe(e),i=Qe(),o=this.el.nativeElement.children[0].offsetParent?this.el.nativeElement.children[0].offsetWidth:je(this.el.nativeElement.children[0]),a=Ne(e.children[0]);parseInt(n.left,10)+a+o>i.width-Ue()&&(this.el.nativeElement.children[0].style.left="-200%")}static \u0275fac=function(n){return new(n||t)(ue(W))};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",fe],optionLabel:"optionLabel",optionValue:"optionValue",optionGroupLabel:"optionGroupLabel",dirty:[2,"dirty","dirty",V],root:[2,"root","root",V]},outputs:{onChange:"onChange",onFocusChange:"onFocusChange",onFocusEnterChange:"onFocusEnterChange"},features:[he],decls:2,vars:4,consts:[["defaultOptionTemplate",""],["aria-orientation","horizontal",1,"p-cascadeselect-list"],["ngFor","",3,"ngForOf"],["role","treeitem",3,"ngClass","id"],["pRipple","",1,"p-cascadeselect-option-content",3,"click","mouseenter","mousemove"],[4,"ngIf","ngIfElse"],["class","p-cascadeselect-group-icon",4,"ngIf"],["class","p-cascadeselect-list p-cascadeselect-overlay p-cascadeselect-option-list",3,"role","selectId","focusedOptionId","activeOptionPath","options","optionLabel","optionValue","level","optionGroupLabel","optionGroupChildren","dirty","optionTemplate","onChange","onFocusChange","onFocusEnterChange",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-cascadeselect-option-text"],[1,"p-cascadeselect-group-icon"],[4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-cascadeselect-list","p-cascadeselect-overlay","p-cascadeselect-option-list",3,"onChange","onFocusChange","onFocusEnterChange","role","selectId","focusedOptionId","activeOptionPath","options","optionLabel","optionValue","level","optionGroupLabel","optionGroupChildren","dirty","optionTemplate"]],template:function(n,i){n&1&&(d(0,"ul",1),m(1,Bt,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,Pe,Q,ge,st,nt,U],encapsulation:2,changeDetection:0})}return t})(),W=(()=>{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 I;onGroupChange=new I;onShow=new I;onHide=new I;onClear=new I;onBeforeShow=new I;onBeforeHide=new I;onFocus=new I;onBlur=new I;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=P({index:-1,level:0,parentKey:""});activeOptionPath=P([]);modelValue=P(null);processedOptions=[];_componentStyle=k(St);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}${x(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 x(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=x(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=x(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 x(this.modelValue())}createProcessedOptions(e,n=0,i={},o=""){let a=[];return e&&e.forEach((l,O)=>{let $=(o!==""?o+"_":"")+O,L={option:l,index:O,level:n,key:$,parent:i,parentKey:o};L.children=this.createProcessedOptions(this.getOptionGroupChildren(l,n),n+1,L,$),a.push(L)}),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&&Je(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key));break}this.clicked=!1}onArrowDownKey(e){if(!this.overlayVisible)this.show();else{let n=this.focusedOptionInfo().index!==-1?this.findNextOptionIndex(this.focusedOptionInfo().index):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n,!0)}e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(this.focusedOptionInfo().index!==-1){let n=this.visibleOptions[this.focusedOptionInfo().index];!this.isProccessedOptionGroup(n)&&this.onOptionChange({originalEvent:e,processedOption:n})}this.overlayVisible&&this.hide(),e.preventDefault()}else{let n=this.focusedOptionInfo().index!==-1?this.findPrevOptionIndex(this.focusedOptionInfo().index):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n,!0),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e){if(this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionInfo().index],i=this.activeOptionPath().find(l=>l.key===n.parentKey),o=this.focusedOptionInfo().parentKey===""||i&&i.key===this.focusedOptionInfo().parentKey,a=ce(n.parent);if(o){let l=this.activeOptionPath().filter(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){x(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=We(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(ce(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&&le(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()&&x(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&&le(this.focusInputViewChild.nativeElement)}clear(e){x(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 x(e?.children)}getProccessedOptionLabel(e){return this.isProccessedOptionGroup(e)?this.getOptionGroupLabel(e.option):this.getOptionLabel(e.option)}constructor(e){super(),this.overlayService=e,Le(()=>{let n=this.activeOptionPath();x(n)&&this.overlayViewChild.alignOverlay()})}query;queryMatches=P(!1);mobileActive=P(!1);onOptionChange(e){let{processedOption:n,type:i}=e;if(ce(n))return;let{index:o,key:a,level:l,parentKey:O,children:$}=n,L=x($),A=this.activeOptionPath().filter(j=>j.parentKey!==O&&j.parentKey!==a);this.focusedOptionInfo.set({index:o,level:l,parentKey:O}),!(i=="hover"&&this.queryMatches())&&(L&&A.push(n),this.activeOptionPath.set([...A]))}onOptionClick(e){let{originalEvent:n,processedOption:i,isFocus:o,isHide:a,preventSelection:l}=e,{index:O,key:$,level:L,parentKey:A}=i,j=this.isProccessedOptionGroup(i);if(this.isSelected(i)){let X=this.activeOptionPath().filter(J=>$!==J.key&&$.startsWith(J.key));this.activeOptionPath.set([...X]),this.focusedOptionInfo.set({index:O,level:L,parentKey:A})}else if(j)this.onOptionChange(e),this.onOptionGroupSelect({originalEvent:n,value:i.option,isFocus:!1});else{let X=this.activeOptionPath().filter(J=>J.parentKey!==A);X.push(i),this.focusedOptionInfo.set({index:O,level:L,parentKey:A}),(!l||i?.children.length!==0)&&(this.activeOptionPath.set([...X]),this.onOptionSelect({originalEvent:n,value:i.option,isHide:o}))}o&&le(this.focusInputViewChild.nativeElement)}onOptionMouseEnter(e){this.focusOnHover&&(this.dirty||!this.dirty&&x(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||Ye("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)(ue(Ze))};static \u0275cmp=H({type:t,selectors:[["p-cascadeSelect"],["p-cascadeselect"],["p-cascade-select"]],contentQueries:function(n,i,o){if(n&1&&(E(o,Ht,4),E(o,zt,4),E(o,qt,4),E(o,Qt,4),E(o,Nt,4),E(o,Ut,4),E(o,Wt,4),E(o,jt,4),E(o,et,4)),n&2){let a;C(a=w())&&(i.valueTemplate=a.first),C(a=w())&&(i.optionTemplate=a.first),C(a=w())&&(i.headerTemplate=a.first),C(a=w())&&(i.footerTemplate=a.first),C(a=w())&&(i.triggerIconTemplate=a.first),C(a=w())&&(i.loadingIconTemplate=a.first),C(a=w())&&(i.groupIconTemplate=a.first),C(a=w())&&(i.clearIconTemplate=a.first),C(a=w())&&(i.templates=a)}},viewQuery:function(n,i){if(n&1&&(z(Xt,5),z(Jt,5),z(Yt,5),z(Zt,5)),n&2){let o;C(o=w())&&(i.focusInputViewChild=o.first),C(o=w())&&(i.containerViewChild=o.first),C(o=w())&&(i.panelViewChild=o.first),C(o=w())&&(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",V],selectOnFocus:[2,"selectOnFocus","selectOnFocus",V],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",V],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",fe],ariaLabelledBy:"ariaLabelledBy",inputLabel:"inputLabel",ariaLabel:"ariaLabel",appendTo:"appendTo",disabled:[2,"disabled","disabled",V],showClear:[2,"showClear","showClear",V],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",overlayOptions:"overlayOptions",autofocus:[2,"autofocus","autofocus",V],showTransitionOptions:"showTransitionOptions",variant:"variant",loading:[2,"loading","loading",V],loadingIcon:"loadingIcon",hideTransitionOptions:"hideTransitionOptions",fluid:[2,"fluid","fluid",V],breakpoint:"breakpoint"},outputs:{onChange:"onChange",onGroupChange:"onGroupChange",onShow:"onShow",onHide:"onHide",onClear:"onClear",onBeforeShow:"onBeforeShow",onBeforeHide:"onBeforeHide",onFocus:"onFocus",onBlur:"onBlur"},features:[ae([ki,St]),he,Se],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=S();d(0,"div",7,0),v("click",function(l){return h(o),f(i.onContainerClick(l))}),d(2,"div",8)(3,"input",9,1),v("focus",function(l){return h(o),f(i.onInputFocus(l))})("blur",function(l){return h(o),f(i.onInputBlur(l))})("keydown",function(l){return h(o),f(i.onInputKeyDown(l))}),u()(),d(5,"span",10),m(6,ni,2,5,"ng-container",11)(7,oi,1,1,"ng-template",null,2,T),u(),m(9,ri,3,2,"ng-container",12),d(10,"div",13),m(11,mi,3,2,"ng-container",11)(12,Oi,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),f(l)}),v("onAnimationDone",function(l){return h(o),f(i.onOverlayAnimationDone(l))})("onBeforeShow",function(l){return h(o),f(i.onBeforeShow.emit(l))})("onShow",function(l){return h(o),f(i.show(l))})("onBeforeHide",function(l){return h(o),f(i.onBeforeHide.emit(l))})("onHide",function(l){return h(o),f(i.hide(l))}),m(18,Ii,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,ge,Ge,Ot,lt,Fi,ot,at,U],encapsulation:2,changeDetection:0})}return t})(),Vt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ke({type:t});static \u0275inj=Te({imports:[W,U,U]})}return t})();var Mi=["class","page"],Li=()=>["/pages/users/groups/forms"],Pi=t=>({groupID:t}),Gi=()=>({minWidth:"14rem"}),$i=()=>["roles"];function Di(t,s){if(t&1){let e=S();d(0,"p-button",11),v("onClick",function(){h(e);let i=p(2);return f(i.onDeleteGroup())}),u()}}function Ri(t,s){t&1&&(d(0,"a",12),b(1,"Add"),u())}function Ki(t,s){if(t&1&&(d(0,"div",8),m(1,Di,1,0,"p-button",9)(2,Ri,2,0,"a",10),u()),t&2){let e=p();c(),r("ngIf",e.store.hasCheckedRows()&&!e.roleService.user.delete),c(),r("ngIf",e.roleService.user.create)}}function Ai(t,s){t&1&&(d(0,"th",16),F(1,"p-tableHeaderCheckbox"),u())}function Bi(t,s){if(t&1&&(d(0,"tr"),m(1,Ai,2,0,"th",15),d(2,"th"),b(3,"Name"),u(),d(4,"th"),b(5,"Description"),u(),d(6,"th"),b(7,"Roles Count"),u()()),t&2){let e=p(2);c(),r("ngIf",e.roleService.user.delete)}}function Hi(t,s){if(t&1&&(d(0,"td"),F(1,"p-tableCheckbox",19),u()),t&2){let e=p().$implicit;c(),r("value",e)}}function zi(t,s){if(t&1&&(d(0,"tr"),m(1,Hi,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()()),t&2){let e=s.$implicit,n=p(2);c(),r("ngIf",n.roleService.user.delete),c(2),r("routerLink",se(6,Li))("queryParams",q(7,Pi,e.id)),c(),B(e.name),c(2),B(e.description),c(2),B(e.rolesCount)}}function qi(t,s){if(t&1&&b(0),t&2){let e=p(2);Ee(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function Qi(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 Ni(t,s){if(t&1){let e=S();d(0,"p-panel")(1,"div",13),F(2,"app-user-tabs"),d(3,"p-table",14),v("onPage",function(i){h(e);let o=p();return f(o.onPageChange(i))})("onRowSelect",function(i){h(e);let o=p();return f(o.onRowSelect(i))})("onRowUnselect",function(i){h(e);let o=p();return f(o.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){h(e);let o=p();return f(o.onHeaderCheckboxToggle(i))}),m(4,Bi,8,1,"ng-template",null,3,T)(6,zi,9,9,"ng-template",null,4,T)(8,qi,1,3,"ng-template",null,5,T)(10,Qi,5,0,"ng-template",null,6,T),u()()()}if(t&2){let e=p();c(3),r("value",e.store.data())("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function Ui(t,s){if(t&1&&(d(0,"div",21)(1,"div",22)(2,"div",23)(3,"label",24),b(4,"Roles"),u(),F(5,"p-cascadeselect",25),u()()()),t&2){let e=p();r("formGroup",e.filterForm),c(5),Fe(se(5,Gi)),r("options",e.store.meta().options.roles)("optionGroupChildren",se(6,$i))}}var jn=(()=>{class t{constructor(){this.router=k($e),this.store=k(Ce),this.fb=k(ze),this.userService=k(re),this.isDialogFilterVisible=P(!1),this.roleService=k(ut),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}ngOnInit(){this.generateFilterForm()}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(we(()=>{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:Mi,decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Group List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible","scrollable"],[1,"d-flex","flex-wrap"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["class","p-button","routerLink","forms",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["routerLink","forms",1,"p-button"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],["style","width: 4rem",4,"ngIf"],[2,"width","4rem"],[4,"ngIf"],[1,"link","link-primary",3,"routerLink","queryParams"],[3,"value"],["colspan","4"],[1,"row",3,"formGroup"],[1,"col"],[1,"d-flex","flex-column"],["for",""],["formControlName","rolesID","appendTo","body","optionLabel","name","optionGroupLabel","name","optionValue","id","placeholder","Select a Role",3,"options","optionGroupChildren"]],template:function(n,i){if(n&1){let o=S();d(0,"app-main-panel",7),v("search",function(l){return h(o),f(i.onSearch(l))}),oe("isDialogFilterVisibleChange",function(l){return h(o),ne(i.isDialogFilterVisible,l)||(i.isDialogFilterVisible=l),f(l)}),v("filterConfirmed",function(){return h(o),f(i.onOKFilter())}),m(1,Ki,3,2,"ng-template",null,0,T)(3,Ni,12,5,"ng-template",null,1,T)(5,Ui,6,7,"ng-template",null,2,T),u()}n&2&&(r("isSearchableInput",!0)("isFilterable",!0),ie("isDialogFilterVisible",i.isDialogFilterVisible),r("scrollable",!0))},dependencies:[yt,It,De,xt,vt,Ct,wt,Vt,W,qe,Ke,Ae,Be,He,rt,ct,Tt,N,Q,dt,pt],styles:["[_nghost-%COMP%]{display:block} .p-panel .p-panel-header{display:none!important}"],changeDetection:0})}}return t})();export{jn as GroupPageComponent};
252
+ }`,Si={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},Vi={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"},St=(()=>{class t extends it{name="cascadeselect";theme=Ti;classes=Vi;inlineStyles=Si;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ve(t)))(i||t)}})();static \u0275prov=Ie({token:t,factory:t.\u0275fac})}return t})();var ki={provide:Re,useExisting:xe(()=>W),multi:!0},Fi=(()=>{class t extends ye{cascadeselect;role;selectId;activeOptionPath;optionDisabled;focusedOptionId;options;optionGroupChildren;optionTemplate;groupicon;level=0;optionLabel;optionValue;optionGroupLabel;dirty;root;onChange=new I;onFocusChange=new I;onFocusEnterChange=new I;get listLabel(){return this.config.getTranslation(tt.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 x(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=Xe(e),i=Qe(),o=this.el.nativeElement.children[0].offsetParent?this.el.nativeElement.children[0].offsetWidth:je(this.el.nativeElement.children[0]),a=Ne(e.children[0]);parseInt(n.left,10)+a+o>i.width-Ue()&&(this.el.nativeElement.children[0].style.left="-200%")}static \u0275fac=function(n){return new(n||t)(ue(W))};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",fe],optionLabel:"optionLabel",optionValue:"optionValue",optionGroupLabel:"optionGroupLabel",dirty:[2,"dirty","dirty",V],root:[2,"root","root",V]},outputs:{onChange:"onChange",onFocusChange:"onFocusChange",onFocusEnterChange:"onFocusEnterChange"},features:[he],decls:2,vars:4,consts:[["defaultOptionTemplate",""],["aria-orientation","horizontal",1,"p-cascadeselect-list"],["ngFor","",3,"ngForOf"],["role","treeitem",3,"ngClass","id"],["pRipple","",1,"p-cascadeselect-option-content",3,"click","mouseenter","mousemove"],[4,"ngIf","ngIfElse"],["class","p-cascadeselect-group-icon",4,"ngIf"],["class","p-cascadeselect-list p-cascadeselect-overlay p-cascadeselect-option-list",3,"role","selectId","focusedOptionId","activeOptionPath","options","optionLabel","optionValue","level","optionGroupLabel","optionGroupChildren","dirty","optionTemplate","onChange","onFocusChange","onFocusEnterChange",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-cascadeselect-option-text"],[1,"p-cascadeselect-group-icon"],[4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-cascadeselect-list","p-cascadeselect-overlay","p-cascadeselect-option-list",3,"onChange","onFocusChange","onFocusEnterChange","role","selectId","focusedOptionId","activeOptionPath","options","optionLabel","optionValue","level","optionGroupLabel","optionGroupChildren","dirty","optionTemplate"]],template:function(n,i){n&1&&(d(0,"ul",1),m(1,Bt,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,Pe,Q,ge,st,nt,U],encapsulation:2,changeDetection:0})}return t})(),W=(()=>{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 I;onGroupChange=new I;onShow=new I;onHide=new I;onClear=new I;onBeforeShow=new I;onBeforeHide=new I;onFocus=new I;onBlur=new I;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=P({index:-1,level:0,parentKey:""});activeOptionPath=P([]);modelValue=P(null);processedOptions=[];_componentStyle=k(St);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}${x(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 x(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=x(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=x(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 x(this.modelValue())}createProcessedOptions(e,n=0,i={},o=""){let a=[];return e&&e.forEach((l,O)=>{let $=(o!==""?o+"_":"")+O,L={option:l,index:O,level:n,key:$,parent:i,parentKey:o};L.children=this.createProcessedOptions(this.getOptionGroupChildren(l,n),n+1,L,$),a.push(L)}),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&&Je(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key));break}this.clicked=!1}onArrowDownKey(e){if(!this.overlayVisible)this.show();else{let n=this.focusedOptionInfo().index!==-1?this.findNextOptionIndex(this.focusedOptionInfo().index):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n,!0)}e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(this.focusedOptionInfo().index!==-1){let n=this.visibleOptions[this.focusedOptionInfo().index];!this.isProccessedOptionGroup(n)&&this.onOptionChange({originalEvent:e,processedOption:n})}this.overlayVisible&&this.hide(),e.preventDefault()}else{let n=this.focusedOptionInfo().index!==-1?this.findPrevOptionIndex(this.focusedOptionInfo().index):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n,!0),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e){if(this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionInfo().index],i=this.activeOptionPath().find(l=>l.key===n.parentKey),o=this.focusedOptionInfo().parentKey===""||i&&i.key===this.focusedOptionInfo().parentKey,a=ce(n.parent);if(o){let l=this.activeOptionPath().filter(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){x(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=We(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(ce(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&&le(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()&&x(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&&le(this.focusInputViewChild.nativeElement)}clear(e){x(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 x(e?.children)}getProccessedOptionLabel(e){return this.isProccessedOptionGroup(e)?this.getOptionGroupLabel(e.option):this.getOptionLabel(e.option)}constructor(e){super(),this.overlayService=e,Le(()=>{let n=this.activeOptionPath();x(n)&&this.overlayViewChild.alignOverlay()})}query;queryMatches=P(!1);mobileActive=P(!1);onOptionChange(e){let{processedOption:n,type:i}=e;if(ce(n))return;let{index:o,key:a,level:l,parentKey:O,children:$}=n,L=x($),B=this.activeOptionPath().filter(j=>j.parentKey!==O&&j.parentKey!==a);this.focusedOptionInfo.set({index:o,level:l,parentKey:O}),!(i=="hover"&&this.queryMatches())&&(L&&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:L,parentKey:B}=i,j=this.isProccessedOptionGroup(i);if(this.isSelected(i)){let X=this.activeOptionPath().filter(J=>$!==J.key&&$.startsWith(J.key));this.activeOptionPath.set([...X]),this.focusedOptionInfo.set({index:O,level:L,parentKey:B})}else if(j)this.onOptionChange(e),this.onOptionGroupSelect({originalEvent:n,value:i.option,isFocus:!1});else{let X=this.activeOptionPath().filter(J=>J.parentKey!==B);X.push(i),this.focusedOptionInfo.set({index:O,level:L,parentKey:B}),(!l||i?.children.length!==0)&&(this.activeOptionPath.set([...X]),this.onOptionSelect({originalEvent:n,value:i.option,isHide:o}))}o&&le(this.focusInputViewChild.nativeElement)}onOptionMouseEnter(e){this.focusOnHover&&(this.dirty||!this.dirty&&x(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||Ye("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)(ue(Ze))};static \u0275cmp=H({type:t,selectors:[["p-cascadeSelect"],["p-cascadeselect"],["p-cascade-select"]],contentQueries:function(n,i,o){if(n&1&&(E(o,Ht,4),E(o,zt,4),E(o,qt,4),E(o,Qt,4),E(o,Nt,4),E(o,Ut,4),E(o,Wt,4),E(o,jt,4),E(o,et,4)),n&2){let a;C(a=w())&&(i.valueTemplate=a.first),C(a=w())&&(i.optionTemplate=a.first),C(a=w())&&(i.headerTemplate=a.first),C(a=w())&&(i.footerTemplate=a.first),C(a=w())&&(i.triggerIconTemplate=a.first),C(a=w())&&(i.loadingIconTemplate=a.first),C(a=w())&&(i.groupIconTemplate=a.first),C(a=w())&&(i.clearIconTemplate=a.first),C(a=w())&&(i.templates=a)}},viewQuery:function(n,i){if(n&1&&(z(Xt,5),z(Jt,5),z(Yt,5),z(Zt,5)),n&2){let o;C(o=w())&&(i.focusInputViewChild=o.first),C(o=w())&&(i.containerViewChild=o.first),C(o=w())&&(i.panelViewChild=o.first),C(o=w())&&(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",V],selectOnFocus:[2,"selectOnFocus","selectOnFocus",V],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",V],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",fe],ariaLabelledBy:"ariaLabelledBy",inputLabel:"inputLabel",ariaLabel:"ariaLabel",appendTo:"appendTo",disabled:[2,"disabled","disabled",V],showClear:[2,"showClear","showClear",V],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",overlayOptions:"overlayOptions",autofocus:[2,"autofocus","autofocus",V],showTransitionOptions:"showTransitionOptions",variant:"variant",loading:[2,"loading","loading",V],loadingIcon:"loadingIcon",hideTransitionOptions:"hideTransitionOptions",fluid:[2,"fluid","fluid",V],breakpoint:"breakpoint"},outputs:{onChange:"onChange",onGroupChange:"onGroupChange",onShow:"onShow",onHide:"onHide",onClear:"onClear",onBeforeShow:"onBeforeShow",onBeforeHide:"onBeforeHide",onFocus:"onFocus",onBlur:"onBlur"},features:[ae([ki,St]),he,Se],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=S();d(0,"div",7,0),v("click",function(l){return h(o),f(i.onContainerClick(l))}),d(2,"div",8)(3,"input",9,1),v("focus",function(l){return h(o),f(i.onInputFocus(l))})("blur",function(l){return h(o),f(i.onInputBlur(l))})("keydown",function(l){return h(o),f(i.onInputKeyDown(l))}),u()(),d(5,"span",10),m(6,ni,2,5,"ng-container",11)(7,oi,1,1,"ng-template",null,2,T),u(),m(9,ri,3,2,"ng-container",12),d(10,"div",13),m(11,mi,3,2,"ng-container",11)(12,Oi,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),f(l)}),v("onAnimationDone",function(l){return h(o),f(i.onOverlayAnimationDone(l))})("onBeforeShow",function(l){return h(o),f(i.onBeforeShow.emit(l))})("onShow",function(l){return h(o),f(i.show(l))})("onBeforeHide",function(l){return h(o),f(i.onBeforeHide.emit(l))})("onHide",function(l){return h(o),f(i.hide(l))}),m(18,Ii,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,ge,Ge,Ot,lt,Fi,ot,at,U],encapsulation:2,changeDetection:0})}return t})(),Vt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ke({type:t});static \u0275inj=Te({imports:[W,U,U]})}return t})();var Mi=["class","page"],Li=()=>["/pages/users/groups/forms"],Pi=t=>({groupID:t}),Gi=()=>({minWidth:"14rem"}),$i=()=>["roles"];function Di(t,s){if(t&1){let e=S();d(0,"p-button",11),v("onClick",function(){h(e);let i=p(2);return f(i.onDeleteGroup())}),u()}}function Ri(t,s){t&1&&(d(0,"a",12),b(1,"Add"),u())}function Ki(t,s){if(t&1&&(d(0,"div",8),m(1,Di,1,0,"p-button",9)(2,Ri,2,0,"a",10),u()),t&2){let e=p();c(),r("ngIf",e.store.hasCheckedRows()&&!e.roleService.user.delete),c(),r("ngIf",e.roleService.user.create)}}function Ai(t,s){t&1&&(d(0,"th",16),F(1,"p-tableHeaderCheckbox"),u())}function Bi(t,s){if(t&1&&(d(0,"tr"),m(1,Ai,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.user.delete)}}function Hi(t,s){if(t&1&&(d(0,"td"),F(1,"p-tableCheckbox",19),u()),t&2){let e=p().$implicit;c(),r("value",e)}}function zi(t,s){if(t&1&&(d(0,"tr"),m(1,Hi,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.user.delete),c(2),r("routerLink",se(7,Li))("queryParams",q(8,Pi,e.id)),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);Ee(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function Qi(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 Ni(t,s){if(t&1){let e=S();d(0,"p-panel")(1,"div",13),F(2,"app-user-tabs"),d(3,"p-table",14),v("onPage",function(i){h(e);let o=p();return f(o.onPageChange(i))})("onRowSelect",function(i){h(e);let o=p();return f(o.onRowSelect(i))})("onRowUnselect",function(i){h(e);let o=p();return f(o.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){h(e);let o=p();return f(o.onHeaderCheckboxToggle(i))}),m(4,Bi,10,1,"ng-template",null,3,T)(6,zi,11,10,"ng-template",null,4,T)(8,qi,1,3,"ng-template",null,5,T)(10,Qi,5,0,"ng-template",null,6,T),u()()()}if(t&2){let e=p();c(3),r("value",e.store.data())("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function Ui(t,s){if(t&1&&(d(0,"div",21)(1,"div",22)(2,"div",23)(3,"label",24),b(4,"Roles"),u(),F(5,"p-cascadeselect",25),u()()()),t&2){let e=p();r("formGroup",e.filterForm),c(5),Fe(se(5,Gi)),r("options",e.store.meta().options.roles)("optionGroupChildren",se(6,$i))}}var jn=(()=>{class t{constructor(){this.router=k($e),this.store=k(Ce),this.fb=k(ze),this.userService=k(re),this.isDialogFilterVisible=P(!1),this.roleService=k(ut),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}ngOnInit(){this.generateFilterForm()}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(we(()=>{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:Mi,decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Group List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible","scrollable"],[1,"d-flex","flex-wrap"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["class","p-button","routerLink","forms",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["routerLink","forms",1,"p-button"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],["style","width: 4rem",4,"ngIf"],[2,"width","4rem"],[4,"ngIf"],[1,"link","link-primary",3,"routerLink","queryParams"],[3,"value"],["colspan","4"],[1,"row",3,"formGroup"],[1,"col"],[1,"d-flex","flex-column"],["for",""],["formControlName","rolesID","appendTo","body","optionLabel","name","optionGroupLabel","name","optionValue","id","placeholder","Select a Role",3,"options","optionGroupChildren"]],template:function(n,i){if(n&1){let o=S();d(0,"app-main-panel",7),v("search",function(l){return h(o),f(i.onSearch(l))}),oe("isDialogFilterVisibleChange",function(l){return h(o),ne(i.isDialogFilterVisible,l)||(i.isDialogFilterVisible=l),f(l)}),v("filterConfirmed",function(){return h(o),f(i.onOKFilter())}),m(1,Ki,3,2,"ng-template",null,0,T)(3,Ni,12,5,"ng-template",null,1,T)(5,Ui,6,7,"ng-template",null,2,T),u()}n&2&&(r("isSearchableInput",!0)("isFilterable",!0),ie("isDialogFilterVisible",i.isDialogFilterVisible),r("scrollable",!0))},dependencies:[yt,It,De,xt,vt,Ct,wt,Vt,W,qe,Ke,Ae,Be,He,rt,ct,Tt,N,Q,dt,pt],styles:["[_nghost-%COMP%]{display:block} .p-panel .p-panel-header{display:none!important}"],changeDetection:0})}}return t})();export{jn as GroupPageComponent};
@@ -1,4 +1,4 @@
1
- import{a as ze}from"./chunk-64ODJHGP.js";import{a as Ee}from"./chunk-GLOECGB7.js";import{a as Fe}from"./chunk-A7LRQMLA.js";import{a as Se}from"./chunk-W6IKDXXT.js";import{c as $e}from"./chunk-UVIJU7TM.js";import{a as ke}from"./chunk-WNA57NZF.js";import{a as Te,i as Ve,n as Me,p as Ae,r as Le}from"./chunk-MDNCQKUT.js";import{Da as be,Ia as Ce,La as we,Ma as W,Na as ve,Q as R,R as k,Ua as Ie,Va as Oe,a as ye,na as xe,qa as $,ra as M,sa as j,va as Z}from"./chunk-NHXCR55X.js";import{h as de,j as me,k as _e,l as he,m as ge,s as fe}from"./chunk-VU532YE3.js";import{Aa as te,Ab as ne,Bc as se,Cb as c,Cc as ce,Dc as V,Ec as K,Ga as L,Jb as y,Kb as r,Lb as le,Nb as H,Ob as F,Qc as A,Ub as m,Vb as h,Wb as z,Xb as I,Yb as O,Zb as T,Zc as _,_b as v,_c as E,aa as J,ad as N,ba as X,bd as ue,ca as Y,dc as b,ec as a,gb as s,ha as q,jc as C,kc as S,lc as g,mb as B,mc as f,pa as u,pc as G,qa as d,qc as D,rc as U,sc as P,ta as ee,vc as ae,wb as oe,wc as pe,xb as ie,xc as re,za as w}from"./chunk-7IC4BZ6J.js";var qe=["item"],Be=["empty"],He=["header"],Ge=["footer"],Ue=["selecteditem"],Pe=["group"],Ne=["loader"],je=["removeicon"],Ze=["loadingicon"],We=["clearicon"],Je=["dropdownicon"],Xe=["container"],Ye=["focusInput"],et=["multiIn"],tt=["multiContainer"],ot=["ddBtn"],it=["items"],nt=["scroller"],lt=["overlay"],at=t=>({"p-autocomplete-chip-item":!0,"p-focus":t}),Ke=t=>({$implicit:t}),pt=(t,l)=>({class:"p-autocomplete-chip-icon",removeCallback:t,index:l}),Q=t=>({height:t}),Re=(t,l)=>({$implicit:t,options:l}),rt=t=>({options:t}),st=()=>({}),ct=(t,l)=>({$implicit:t,index:l});function ut(t,l){if(t&1){let e=v();m(0,"input",19,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()}if(t&2){let e,o=a();F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass","p-autocomplete-input")("ngStyle",o.inputStyle)("type",o.type)("variant",o.variant)("autocomplete",o.autocomplete)("required",o.required)("name",o.name)("pSize",o.size)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled)("fluid",o.hasFluid),y("value",o.inputValue())("id",o.inputId)("placeholder",o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function dt(t,l){if(t&1){let e=v();m(0,"TimesIcon",22),b("click",function(){u(e);let i=a(2);return d(i.clear())}),h()}t&2&&(r("styleClass","p-autocomplete-clear-icon"),y("aria-hidden",!0))}function mt(t,l){}function _t(t,l){t&1&&c(0,mt,0,0,"ng-template")}function ht(t,l){if(t&1){let e=v();m(0,"span",23),b("click",function(){u(e);let i=a(2);return d(i.clear())}),c(1,_t,1,0,null,24),h()}if(t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function gt(t,l){if(t&1&&(I(0),c(1,dt,1,2,"TimesIcon",20)(2,ht,2,2,"span",21),O()),t&2){let e=a();s(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),s(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function ft(t,l){t&1&&T(0)}function yt(t,l){if(t&1){let e=v();m(0,"span",33),b("click",function(i){u(e);let n=a(3).index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),z(1,"TimesCircleIcon",34),h()}t&2&&(s(),r("styleClass","p-autocomplete-chip-icon"),y("aria-hidden",!0))}function xt(t,l){t&1&&(I(0),c(1,yt,2,2,"ng-template",null,6,A),O())}function bt(t,l){if(t&1){let e=v();m(0,"p-chip",32),b("onRemove",function(i){u(e);let n=a().index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),c(1,xt,3,0,"ng-container",15),h()}if(t&2){let e=a().$implicit,o=a(2);r("label",o.getOptionLabel(e))("removable",!0),s(),r("ngIf",!o.removeIconTemplate&&!o._removeIconTemplate)}}function Ct(t,l){}function wt(t,l){t&1&&c(0,Ct,0,0,"ng-template")}function vt(t,l){if(t&1&&(m(0,"span"),c(1,wt,1,0,null,30),h()),t&2){let e=a().index,o=a(2);s(),r("ngTemplateOutlet",o.removeIconTemplate||o._removeIconTemplate)("ngTemplateOutletContext",K(2,pt,o.removeOption.bind(o),e))}}function It(t,l){if(t&1&&(m(0,"li",29,5),c(2,ft,1,0,"ng-container",30)(3,bt,2,3,"p-chip",31)(4,vt,2,5,"span",15),h()),t&2){let e=l.$implicit,o=l.index,i=a(2);r("ngClass",V(10,at,i.focusedMultipleOptionIndex()===o)),y("id",i.id+"_multiple_option_"+o)("aria-label",i.getOptionLabel(e))("aria-setsize",i.modelValue().length)("aria-posinset",o+1)("aria-selected",!0),s(2),r("ngTemplateOutlet",i.selectedItemTemplate||i._selectedItemTemplate)("ngTemplateOutletContext",V(12,Ke,e)),s(),r("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate),s(),r("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}function Ot(t,l){if(t&1){let e=v();m(0,"ul",25,4),b("focus",function(i){u(e);let n=a();return d(n.onMultipleContainerFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onMultipleContainerBlur(i))})("keydown",function(i){u(e);let n=a();return d(n.onMultipleContainerKeyDown(i))}),c(2,It,5,14,"li",26),m(3,"li",27)(4,"input",28,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()()()}if(t&2){let e,o=a();r("ngClass",o.inputMultipleClass)("tabindex",-1),y("aria-orientation","horizontal")("aria-activedescendant",o.focused?o.focusedMultipleOptionId:void 0),s(2),r("ngForOf",o.modelValue()),s(2),F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass",o.inputClass)("ngStyle",o.inputStyle)("autocomplete",o.autocomplete)("required",o.required)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled),y("type",o.type)("id",o.inputId)("name",o.name)("placeholder",o.filled?null:o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function Tt(t,l){t&1&&z(0,"SpinnerIcon",37),t&2&&(r("styleClass","p-autocomplete-loader")("spin",!0),y("aria-hidden",!0))}function St(t,l){}function Vt(t,l){t&1&&c(0,St,0,0,"ng-template")}function kt(t,l){if(t&1&&(m(0,"span",38),c(1,Vt,1,0,null,24),h()),t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Et(t,l){if(t&1&&(I(0),c(1,Tt,1,3,"SpinnerIcon",35)(2,kt,2,2,"span",36),O()),t&2){let e=a();s(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Mt(t,l){if(t&1&&z(0,"span",41),t&2){let e=a(2);r("ngClass",e.dropdownIcon),y("aria-hidden",!0)}}function At(t,l){t&1&&z(0,"ChevronDownIcon")}function $t(t,l){}function Lt(t,l){t&1&&c(0,$t,0,0,"ng-template")}function Ft(t,l){if(t&1&&(I(0),c(1,At,1,0,"ChevronDownIcon",15)(2,Lt,1,0,null,24),O()),t&2){let e=a(2);s(),r("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),s(),r("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zt(t,l){if(t&1){let e=v();m(0,"button",39,7),b("click",function(i){u(e);let n=a();return d(n.handleDropdownClick(i))}),c(2,Mt,1,2,"span",40)(3,Ft,3,2,"ng-container",15),h()}if(t&2){let e=a();r("disabled",e.disabled),y("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),s(2),r("ngIf",e.dropdownIcon),s(),r("ngIf",!e.dropdownIcon)}}function Dt(t,l){t&1&&T(0)}function Kt(t,l){t&1&&T(0)}function Rt(t,l){if(t&1&&c(0,Kt,1,0,"ng-container",30),t&2){let e=l.$implicit,o=l.options;a(2);let i=G(6);r("ngTemplateOutlet",i)("ngTemplateOutletContext",K(2,Re,e,o))}}function Qt(t,l){t&1&&T(0)}function qt(t,l){if(t&1&&c(0,Qt,1,0,"ng-container",30),t&2){let e=l.options,o=a(4);r("ngTemplateOutlet",o.loaderTemplate||o._loaderTemplate)("ngTemplateOutletContext",V(2,rt,e))}}function Bt(t,l){t&1&&(I(0),c(1,qt,1,4,"ng-template",null,10,A),O())}function Ht(t,l){if(t&1){let e=v();m(0,"p-scroller",46,9),b("onLazyLoad",function(i){u(e);let n=a(2);return d(n.onLazyLoad.emit(i))}),c(2,Rt,1,5,"ng-template",null,2,A)(4,Bt,3,0,"ng-container",15),h()}if(t&2){let e=a(2);H(V(8,Q,e.scrollHeight)),r("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),s(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Gt(t,l){t&1&&T(0)}function Ut(t,l){if(t&1&&(I(0),c(1,Gt,1,0,"ng-container",30),O()),t&2){a();let e=G(6),o=a();s(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",K(3,Re,o.visibleOptions(),ce(2,st)))}}function Pt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionGroupLabel(e.optionGroup))}}function Nt(t,l){t&1&&T(0)}function jt(t,l){if(t&1&&(I(0),m(1,"li",50),c(2,Pt,2,1,"span",15)(3,Nt,1,0,"ng-container",30),h(),O()),t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(5,Q,n.itemSize+"px")),y("id",p.id+"_"+p.getOptionIndex(i,n)),s(),r("ngIf",!p.groupTemplate),s(),r("ngTemplateOutlet",p.groupTemplate)("ngTemplateOutletContext",V(7,Ke,o.optionGroup))}}function Zt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionLabel(e))}}function Wt(t,l){t&1&&T(0)}function Jt(t,l){if(t&1){let e=v();I(0),m(1,"li",51),b("click",function(i){u(e);let n=a().$implicit,p=a(3);return d(p.onOptionSelect(i,n))})("mouseenter",function(i){u(e);let n=a().index,p=a().options,x=a(2);return d(x.onOptionMouseEnter(i,x.getOptionIndex(n,p)))}),c(2,Zt,2,1,"span",15)(3,Wt,1,0,"ng-container",30),h(),O()}if(t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(12,Q,n.itemSize+"px"))("ngClass",p.optionClass(o,i,n)),y("id",p.id+"_"+p.getOptionIndex(i,n))("aria-label",p.getOptionLabel(o))("aria-selected",p.isSelected(o))("aria-disabled",p.isOptionDisabled(o))("data-p-focused",p.focusedOptionIndex()===p.getOptionIndex(i,n))("aria-setsize",p.ariaSetSize)("aria-posinset",p.getAriaPosInset(p.getOptionIndex(i,n))),s(),r("ngIf",!p.itemTemplate&&!p._itemTemplate),s(),r("ngTemplateOutlet",p.itemTemplate||p._itemTemplate)("ngTemplateOutletContext",K(14,ct,o,n.getOptions?n.getOptions(i):i))}}function Xt(t,l){if(t&1&&c(0,jt,4,9,"ng-container",15)(1,Jt,4,17,"ng-container",15),t&2){let e=l.$implicit,o=a(3);r("ngIf",o.isOptionGroup(e)),s(),r("ngIf",!o.isOptionGroup(e))}}function Yt(t,l){if(t&1&&(I(0),D(1),O()),t&2){let e=a(4);s(),P(" ",e.searchResultMessageText," ")}}function eo(t,l){t&1&&T(0,null,12)}function to(t,l){if(t&1&&(m(0,"li",52),c(1,Yt,2,1,"ng-container",53)(2,eo,2,0,"ng-container",24),h()),t&2){let e=a().options,o=a(2);r("ngStyle",V(4,Q,e.itemSize+"px")),s(),r("ngIf",!o.emptyTemplate&&!o._emptyTemplate)("ngIfElse",o.empty),s(),r("ngTemplateOutlet",o.emptyTemplate||o._emptyTemplate)}}function oo(t,l){if(t&1&&(m(0,"ul",47,11),c(2,Xt,2,2,"ng-template",48)(3,to,3,6,"li",49),h()),t&2){let e=l.$implicit,o=l.options,i=a(2);H(o.contentStyle),r("ngClass",o.contentStyleClass),y("id",i.id+"_list")("aria-label",i.listLabel),s(2),r("ngForOf",e),s(),r("ngIf",!e||e&&e.length===0&&i.showEmptyMessage)}}function io(t,l){t&1&&T(0)}function no(t,l){if(t&1&&(m(0,"div",42),c(1,Dt,1,0,"ng-container",24),m(2,"div",43),c(3,Ht,5,10,"p-scroller",44)(4,Ut,2,6,"ng-container",15),h(),c(5,oo,4,7,"ng-template",null,8,A)(7,io,1,0,"ng-container",24),h(),m(8,"span",45),D(9),h()),t&2){let e=a();F(e.panelStyleClass),r("ngClass",e.panelClass)("ngStyle",e.panelStyle),s(),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),le("max-height",e.virtualScroll?"auto":e.scrollHeight),s(),r("ngIf",e.virtualScroll),s(),r("ngIf",!e.virtualScroll),s(3),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),s(2),P(" ",e.selectedMessageText," ")}}var lo=({dt:t})=>`
1
+ import{a as ze}from"./chunk-CNXEJBY5.js";import{a as Ee}from"./chunk-NMSYINDE.js";import{a as Fe}from"./chunk-I7ILLTFH.js";import{a as Se}from"./chunk-ATJ55H5D.js";import{c as $e}from"./chunk-3KYU6FI2.js";import{a as ke}from"./chunk-L3PZS6EL.js";import{a as Te,i as Ve,n as Me,p as Ae,r as Le}from"./chunk-7FFMPB6T.js";import{Da as be,Ia as Ce,La as we,Ma as W,Na as ve,Q as R,R as k,Ua as Ie,Va as Oe,a as ye,na as xe,qa as $,ra as M,sa as j,va as Z}from"./chunk-72LNXEXV.js";import{h as de,j as me,k as _e,l as he,m as ge,s as fe}from"./chunk-SB5MSLCX.js";import{$b as v,$c as E,Aa as w,Ba as te,Bb as ne,Cc as se,Db as c,Dc as ce,Ec as V,Fc as K,Ha as L,Kb as y,Lb as r,Mb as le,Ob as H,Pb as F,Rc as A,Vb as m,Wb as h,Xb as z,Yb as I,Zb as O,_b as T,_c as _,ba as J,bd as N,ca as X,cd as ue,da as Y,ec as b,fc as a,hb as s,ia as q,kc as C,lc as S,mc as g,nb as B,nc as f,qa as u,qc as G,ra as d,rc as D,sc as U,tc as P,ua as ee,wc as ae,xb as oe,xc as pe,yb as ie,yc as re}from"./chunk-6K5LNQ4J.js";var qe=["item"],Be=["empty"],He=["header"],Ge=["footer"],Ue=["selecteditem"],Pe=["group"],Ne=["loader"],je=["removeicon"],Ze=["loadingicon"],We=["clearicon"],Je=["dropdownicon"],Xe=["container"],Ye=["focusInput"],et=["multiIn"],tt=["multiContainer"],ot=["ddBtn"],it=["items"],nt=["scroller"],lt=["overlay"],at=t=>({"p-autocomplete-chip-item":!0,"p-focus":t}),Ke=t=>({$implicit:t}),pt=(t,l)=>({class:"p-autocomplete-chip-icon",removeCallback:t,index:l}),Q=t=>({height:t}),Re=(t,l)=>({$implicit:t,options:l}),rt=t=>({options:t}),st=()=>({}),ct=(t,l)=>({$implicit:t,index:l});function ut(t,l){if(t&1){let e=v();m(0,"input",19,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()}if(t&2){let e,o=a();F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass","p-autocomplete-input")("ngStyle",o.inputStyle)("type",o.type)("variant",o.variant)("autocomplete",o.autocomplete)("required",o.required)("name",o.name)("pSize",o.size)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled)("fluid",o.hasFluid),y("value",o.inputValue())("id",o.inputId)("placeholder",o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function dt(t,l){if(t&1){let e=v();m(0,"TimesIcon",22),b("click",function(){u(e);let i=a(2);return d(i.clear())}),h()}t&2&&(r("styleClass","p-autocomplete-clear-icon"),y("aria-hidden",!0))}function mt(t,l){}function _t(t,l){t&1&&c(0,mt,0,0,"ng-template")}function ht(t,l){if(t&1){let e=v();m(0,"span",23),b("click",function(){u(e);let i=a(2);return d(i.clear())}),c(1,_t,1,0,null,24),h()}if(t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function gt(t,l){if(t&1&&(I(0),c(1,dt,1,2,"TimesIcon",20)(2,ht,2,2,"span",21),O()),t&2){let e=a();s(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),s(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function ft(t,l){t&1&&T(0)}function yt(t,l){if(t&1){let e=v();m(0,"span",33),b("click",function(i){u(e);let n=a(3).index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),z(1,"TimesCircleIcon",34),h()}t&2&&(s(),r("styleClass","p-autocomplete-chip-icon"),y("aria-hidden",!0))}function xt(t,l){t&1&&(I(0),c(1,yt,2,2,"ng-template",null,6,A),O())}function bt(t,l){if(t&1){let e=v();m(0,"p-chip",32),b("onRemove",function(i){u(e);let n=a().index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),c(1,xt,3,0,"ng-container",15),h()}if(t&2){let e=a().$implicit,o=a(2);r("label",o.getOptionLabel(e))("removable",!0),s(),r("ngIf",!o.removeIconTemplate&&!o._removeIconTemplate)}}function Ct(t,l){}function wt(t,l){t&1&&c(0,Ct,0,0,"ng-template")}function vt(t,l){if(t&1&&(m(0,"span"),c(1,wt,1,0,null,30),h()),t&2){let e=a().index,o=a(2);s(),r("ngTemplateOutlet",o.removeIconTemplate||o._removeIconTemplate)("ngTemplateOutletContext",K(2,pt,o.removeOption.bind(o),e))}}function It(t,l){if(t&1&&(m(0,"li",29,5),c(2,ft,1,0,"ng-container",30)(3,bt,2,3,"p-chip",31)(4,vt,2,5,"span",15),h()),t&2){let e=l.$implicit,o=l.index,i=a(2);r("ngClass",V(10,at,i.focusedMultipleOptionIndex()===o)),y("id",i.id+"_multiple_option_"+o)("aria-label",i.getOptionLabel(e))("aria-setsize",i.modelValue().length)("aria-posinset",o+1)("aria-selected",!0),s(2),r("ngTemplateOutlet",i.selectedItemTemplate||i._selectedItemTemplate)("ngTemplateOutletContext",V(12,Ke,e)),s(),r("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate),s(),r("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}function Ot(t,l){if(t&1){let e=v();m(0,"ul",25,4),b("focus",function(i){u(e);let n=a();return d(n.onMultipleContainerFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onMultipleContainerBlur(i))})("keydown",function(i){u(e);let n=a();return d(n.onMultipleContainerKeyDown(i))}),c(2,It,5,14,"li",26),m(3,"li",27)(4,"input",28,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()()()}if(t&2){let e,o=a();r("ngClass",o.inputMultipleClass)("tabindex",-1),y("aria-orientation","horizontal")("aria-activedescendant",o.focused?o.focusedMultipleOptionId:void 0),s(2),r("ngForOf",o.modelValue()),s(2),F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass",o.inputClass)("ngStyle",o.inputStyle)("autocomplete",o.autocomplete)("required",o.required)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled),y("type",o.type)("id",o.inputId)("name",o.name)("placeholder",o.filled?null:o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function Tt(t,l){t&1&&z(0,"SpinnerIcon",37),t&2&&(r("styleClass","p-autocomplete-loader")("spin",!0),y("aria-hidden",!0))}function St(t,l){}function Vt(t,l){t&1&&c(0,St,0,0,"ng-template")}function kt(t,l){if(t&1&&(m(0,"span",38),c(1,Vt,1,0,null,24),h()),t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Et(t,l){if(t&1&&(I(0),c(1,Tt,1,3,"SpinnerIcon",35)(2,kt,2,2,"span",36),O()),t&2){let e=a();s(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Mt(t,l){if(t&1&&z(0,"span",41),t&2){let e=a(2);r("ngClass",e.dropdownIcon),y("aria-hidden",!0)}}function At(t,l){t&1&&z(0,"ChevronDownIcon")}function $t(t,l){}function Lt(t,l){t&1&&c(0,$t,0,0,"ng-template")}function Ft(t,l){if(t&1&&(I(0),c(1,At,1,0,"ChevronDownIcon",15)(2,Lt,1,0,null,24),O()),t&2){let e=a(2);s(),r("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),s(),r("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zt(t,l){if(t&1){let e=v();m(0,"button",39,7),b("click",function(i){u(e);let n=a();return d(n.handleDropdownClick(i))}),c(2,Mt,1,2,"span",40)(3,Ft,3,2,"ng-container",15),h()}if(t&2){let e=a();r("disabled",e.disabled),y("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),s(2),r("ngIf",e.dropdownIcon),s(),r("ngIf",!e.dropdownIcon)}}function Dt(t,l){t&1&&T(0)}function Kt(t,l){t&1&&T(0)}function Rt(t,l){if(t&1&&c(0,Kt,1,0,"ng-container",30),t&2){let e=l.$implicit,o=l.options;a(2);let i=G(6);r("ngTemplateOutlet",i)("ngTemplateOutletContext",K(2,Re,e,o))}}function Qt(t,l){t&1&&T(0)}function qt(t,l){if(t&1&&c(0,Qt,1,0,"ng-container",30),t&2){let e=l.options,o=a(4);r("ngTemplateOutlet",o.loaderTemplate||o._loaderTemplate)("ngTemplateOutletContext",V(2,rt,e))}}function Bt(t,l){t&1&&(I(0),c(1,qt,1,4,"ng-template",null,10,A),O())}function Ht(t,l){if(t&1){let e=v();m(0,"p-scroller",46,9),b("onLazyLoad",function(i){u(e);let n=a(2);return d(n.onLazyLoad.emit(i))}),c(2,Rt,1,5,"ng-template",null,2,A)(4,Bt,3,0,"ng-container",15),h()}if(t&2){let e=a(2);H(V(8,Q,e.scrollHeight)),r("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),s(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Gt(t,l){t&1&&T(0)}function Ut(t,l){if(t&1&&(I(0),c(1,Gt,1,0,"ng-container",30),O()),t&2){a();let e=G(6),o=a();s(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",K(3,Re,o.visibleOptions(),ce(2,st)))}}function Pt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionGroupLabel(e.optionGroup))}}function Nt(t,l){t&1&&T(0)}function jt(t,l){if(t&1&&(I(0),m(1,"li",50),c(2,Pt,2,1,"span",15)(3,Nt,1,0,"ng-container",30),h(),O()),t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(5,Q,n.itemSize+"px")),y("id",p.id+"_"+p.getOptionIndex(i,n)),s(),r("ngIf",!p.groupTemplate),s(),r("ngTemplateOutlet",p.groupTemplate)("ngTemplateOutletContext",V(7,Ke,o.optionGroup))}}function Zt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionLabel(e))}}function Wt(t,l){t&1&&T(0)}function Jt(t,l){if(t&1){let e=v();I(0),m(1,"li",51),b("click",function(i){u(e);let n=a().$implicit,p=a(3);return d(p.onOptionSelect(i,n))})("mouseenter",function(i){u(e);let n=a().index,p=a().options,x=a(2);return d(x.onOptionMouseEnter(i,x.getOptionIndex(n,p)))}),c(2,Zt,2,1,"span",15)(3,Wt,1,0,"ng-container",30),h(),O()}if(t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(12,Q,n.itemSize+"px"))("ngClass",p.optionClass(o,i,n)),y("id",p.id+"_"+p.getOptionIndex(i,n))("aria-label",p.getOptionLabel(o))("aria-selected",p.isSelected(o))("aria-disabled",p.isOptionDisabled(o))("data-p-focused",p.focusedOptionIndex()===p.getOptionIndex(i,n))("aria-setsize",p.ariaSetSize)("aria-posinset",p.getAriaPosInset(p.getOptionIndex(i,n))),s(),r("ngIf",!p.itemTemplate&&!p._itemTemplate),s(),r("ngTemplateOutlet",p.itemTemplate||p._itemTemplate)("ngTemplateOutletContext",K(14,ct,o,n.getOptions?n.getOptions(i):i))}}function Xt(t,l){if(t&1&&c(0,jt,4,9,"ng-container",15)(1,Jt,4,17,"ng-container",15),t&2){let e=l.$implicit,o=a(3);r("ngIf",o.isOptionGroup(e)),s(),r("ngIf",!o.isOptionGroup(e))}}function Yt(t,l){if(t&1&&(I(0),D(1),O()),t&2){let e=a(4);s(),P(" ",e.searchResultMessageText," ")}}function eo(t,l){t&1&&T(0,null,12)}function to(t,l){if(t&1&&(m(0,"li",52),c(1,Yt,2,1,"ng-container",53)(2,eo,2,0,"ng-container",24),h()),t&2){let e=a().options,o=a(2);r("ngStyle",V(4,Q,e.itemSize+"px")),s(),r("ngIf",!o.emptyTemplate&&!o._emptyTemplate)("ngIfElse",o.empty),s(),r("ngTemplateOutlet",o.emptyTemplate||o._emptyTemplate)}}function oo(t,l){if(t&1&&(m(0,"ul",47,11),c(2,Xt,2,2,"ng-template",48)(3,to,3,6,"li",49),h()),t&2){let e=l.$implicit,o=l.options,i=a(2);H(o.contentStyle),r("ngClass",o.contentStyleClass),y("id",i.id+"_list")("aria-label",i.listLabel),s(2),r("ngForOf",e),s(),r("ngIf",!e||e&&e.length===0&&i.showEmptyMessage)}}function io(t,l){t&1&&T(0)}function no(t,l){if(t&1&&(m(0,"div",42),c(1,Dt,1,0,"ng-container",24),m(2,"div",43),c(3,Ht,5,10,"p-scroller",44)(4,Ut,2,6,"ng-container",15),h(),c(5,oo,4,7,"ng-template",null,8,A)(7,io,1,0,"ng-container",24),h(),m(8,"span",45),D(9),h()),t&2){let e=a();F(e.panelStyleClass),r("ngClass",e.panelClass)("ngStyle",e.panelStyle),s(),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),le("max-height",e.virtualScroll?"auto":e.scrollHeight),s(),r("ngIf",e.virtualScroll),s(),r("ngIf",!e.virtualScroll),s(3),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),s(2),P(" ",e.selectedMessageText," ")}}var lo=({dt:t})=>`
2
2
  .p-autocomplete {
3
3
  display: inline-flex;
4
4
  }
@@ -1 +1 @@
1
- import{a as v,b as H}from"./chunk-QC7LTJLT.js";import"./chunk-WZWAFKRU.js";import{a as F,b as I}from"./chunk-CDXFHUDN.js";import"./chunk-PS4MFIBX.js";import{h as G}from"./chunk-4IEK5V2S.js";import{b as D,c as N}from"./chunk-WNA57NZF.js";import{a as O,b as R}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as V,x as j}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import"./chunk-NHXCR55X.js";import"./chunk-A25JUSCO.js";import{a as $}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as A,s as P}from"./chunk-VU532YE3.js";import{Bc as B,Cb as E,Cc as _,Kb as p,Mc as c,Nb as x,Nc as m,Qc as C,Ub as n,V as y,Vb as o,Wb as l,X as b,_b as w,dc as h,ec as s,gb as a,h as T,ha as f,pa as g,qa as d,ra as M,s as u,sa as S,wb as k}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),c(4,"async"),M(),n(5,"svg",8),l(6,"path",9),o(),S(),l(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,L)),a(),x(_(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var le=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f($),this.refresh$=new T(void 0),this.pageTitle="Expense Account"}ngOnInit(){let e=this.refresh$.pipe(b(()=>this.migrateService.getExpenseAccountCount()),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateExpenseAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatExpenseAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-expense-account"]],features:[B([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),E(1,z,5,6,"ng-template",null,0,C)(3,J,9,14,"ng-template",null,1,C),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,P,A,I,F,R,O,N,D,H,j,V],encapsulation:2})}}return i})();export{le as ExpenseAccountComponent};
1
+ import{a as v,b as H}from"./chunk-WICYUZB3.js";import"./chunk-OZKBRBOY.js";import{a as F,b as I}from"./chunk-E3QNEH3B.js";import"./chunk-WXT6EZ2V.js";import{h as G}from"./chunk-OUG6F43J.js";import{b as D,c as N}from"./chunk-L3PZS6EL.js";import{a as O,b as R}from"./chunk-5JV52UYK.js";import"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{w as V,x as j}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import"./chunk-72LNXEXV.js";import"./chunk-4XWITFH7.js";import{a as $}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{n as A,s as P}from"./chunk-SB5MSLCX.js";import{$b as w,Cc as B,Db as E,Dc as _,Lb as p,Nc as c,Ob as x,Oc as m,Rc as C,Vb as n,W as y,Wb as o,Xb as l,Y as b,ec as h,fc as s,h as T,hb as a,ia as f,qa as g,ra as d,s as u,sa as M,ta as S,xb as k}from"./chunk-6K5LNQ4J.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),c(4,"async"),M(),n(5,"svg",8),l(6,"path",9),o(),S(),l(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,L)),a(),x(_(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var le=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f($),this.refresh$=new T(void 0),this.pageTitle="Expense Account"}ngOnInit(){let e=this.refresh$.pipe(b(()=>this.migrateService.getExpenseAccountCount()),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateExpenseAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatExpenseAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-expense-account"]],features:[B([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),E(1,z,5,6,"ng-template",null,0,C)(3,J,9,14,"ng-template",null,1,C),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,P,A,I,F,R,O,N,D,H,j,V],encapsulation:2})}}return i})();export{le as ExpenseAccountComponent};