dealposbooks 5.49.4 → 5.50.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 (163) hide show
  1. package/3rdpartylicenses.txt +26 -26
  2. package/chunk-27SC6O47.js +1 -0
  3. package/{chunk-ELMSU4U7.js → chunk-2ABEICLB.js} +1 -1
  4. package/{chunk-672TXWSC.js → chunk-2JFOEOZ2.js} +1 -1
  5. package/{chunk-7B7LNBD5.js → chunk-3ALAWCRA.js} +1 -1
  6. package/chunk-3GYSEQ25.js +1 -0
  7. package/{chunk-2XW2ZOT4.js → chunk-43JH7CKX.js} +1 -1
  8. package/chunk-47G2N7SA.js +1 -0
  9. package/{chunk-FWAGEKIF.js → chunk-4AGTFPOU.js} +1 -1
  10. package/{chunk-FOPCQ346.js → chunk-4IMFKRR6.js} +1 -1
  11. package/chunk-4RBG4SFN.js +1 -0
  12. package/chunk-56CZGYL5.js +1 -0
  13. package/chunk-5N5QHECN.js +1 -0
  14. package/{chunk-DJXQKSLT.js → chunk-5U7KZJ3H.js} +1 -1
  15. package/{chunk-B4C3ZPN6.js → chunk-5VKDAA74.js} +1 -1
  16. package/chunk-65V5R4TS.js +1 -0
  17. package/{chunk-HCJK6VTO.js → chunk-6GILMLXA.js} +1 -1
  18. package/chunk-6GO647AV.js +1 -0
  19. package/chunk-7DBOORB2.js +1 -0
  20. package/{chunk-UPSNJEHO.js → chunk-7L5IAWG2.js} +1 -1
  21. package/chunk-A6T2KR7U.js +1 -0
  22. package/chunk-AF6G72MJ.js +1 -0
  23. package/chunk-ALLR2NXQ.js +1 -0
  24. package/chunk-BB2CNXSH.js +1 -0
  25. package/chunk-BFEM6LX7.js +2 -0
  26. package/{chunk-EBEY2MBR.js → chunk-BME4Z6DH.js} +1 -1
  27. package/chunk-BOQI2TMP.js +8 -0
  28. package/{chunk-DGACZ747.js → chunk-BTFX33U6.js} +1 -1
  29. package/{chunk-E7QWESN4.js → chunk-CN6AT4LE.js} +1 -1
  30. package/chunk-COSMZ2AH.js +1 -0
  31. package/chunk-DAFEIZYQ.js +1 -0
  32. package/{chunk-NMU2YBAB.js → chunk-DAM2WKDY.js} +1 -1
  33. package/chunk-DM2JLWKE.js +1 -0
  34. package/chunk-DM45YT57.js +1 -0
  35. package/chunk-DZCJWJUG.js +1 -0
  36. package/{chunk-WXIG4CXY.js → chunk-FHJOSHI3.js} +1 -1
  37. package/chunk-FHXTQXB7.js +160 -0
  38. package/{chunk-WMZF4DQK.js → chunk-FMAG3RQL.js} +1 -1
  39. package/{chunk-BKTBVFNX.js → chunk-FNGX2XFA.js} +1 -1
  40. package/{chunk-3DBSHDAQ.js → chunk-FTBQKOYS.js} +1 -1
  41. package/chunk-GAXDMEOS.js +1 -0
  42. package/chunk-GGQ7LRWG.js +0 -0
  43. package/{chunk-E6SW7I4D.js → chunk-GIRWHO6Q.js} +1 -1
  44. package/{chunk-2RRP7JK7.js → chunk-GU4FXUJC.js} +1 -1
  45. package/{chunk-2VZ7JZIO.js → chunk-HMZX6SME.js} +1 -1
  46. package/chunk-HQHEWKLC.js +1 -0
  47. package/chunk-I2OULINE.js +1 -0
  48. package/{chunk-PPXXWO4E.js → chunk-II7KELI4.js} +1 -1
  49. package/{chunk-WSQPSWDS.js → chunk-IMPGOCFC.js} +1 -1
  50. package/{chunk-AD247LWQ.js → chunk-ISIYG4D5.js} +1 -1
  51. package/chunk-J3HFAWXU.js +229 -0
  52. package/chunk-JERRSTLA.js +1 -0
  53. package/chunk-JRBGNG24.js +1 -0
  54. package/{chunk-URH77XNK.js → chunk-JWNGZMSE.js} +1 -1
  55. package/{chunk-PGOSR3RI.js → chunk-KARG227P.js} +1 -1
  56. package/chunk-KL3TPLRB.js +2 -0
  57. package/{chunk-QPPFPDWZ.js → chunk-KONCSTVQ.js} +1 -1
  58. package/{chunk-2LNMV22E.js → chunk-KORGIX2B.js} +1 -1
  59. package/{chunk-VDXZGF3M.js → chunk-KQZMRRMA.js} +1 -1
  60. package/chunk-KXW5NWRO.js +1 -0
  61. package/{chunk-JD3HX7VY.js → chunk-KZU3VXLG.js} +1 -1
  62. package/{chunk-M4SSELXT.js → chunk-L4ENW4RK.js} +1 -1
  63. package/{chunk-WPJG57AR.js → chunk-LBXNL7E4.js} +1 -1
  64. package/{chunk-UVSR4LPB.js → chunk-LO4HJ77Y.js} +1 -1
  65. package/chunk-MGIEURA2.js +193 -0
  66. package/{chunk-VKNINE5Q.js → chunk-MJGBBYIO.js} +1 -1
  67. package/chunk-NHW7GVHK.js +1 -0
  68. package/{chunk-ME4ALIS7.js → chunk-O44DI62I.js} +1 -1
  69. package/{chunk-PKO36DGM.js → chunk-ON7PMYMV.js} +1 -1
  70. package/chunk-OOCCZG53.js +129 -0
  71. package/{chunk-AN4SAUSA.js → chunk-OW2ND5HU.js} +1 -1
  72. package/chunk-PB2MFYIM.js +1 -0
  73. package/chunk-Q4XWXOWE.js +1 -0
  74. package/chunk-RBNXJUFM.js +252 -0
  75. package/{chunk-F7XGJYCZ.js → chunk-RMHKEGL5.js} +1 -1
  76. package/{chunk-VFKJMUGN.js → chunk-RVUOVLL5.js} +1 -1
  77. package/chunk-SASRJPT7.js +1 -0
  78. package/chunk-SJOOTBQ5.js +1 -0
  79. package/{chunk-3UAQHNUY.js → chunk-SLD7RSX6.js} +1 -1
  80. package/{chunk-CAS5GLLU.js → chunk-SOYJAYJK.js} +1 -1
  81. package/{chunk-KZHI6PGZ.js → chunk-SVGPDGYN.js} +1 -1
  82. package/chunk-SX4XIR77.js +1 -0
  83. package/{chunk-L3GNPRRN.js → chunk-SXNOZOOP.js} +5 -5
  84. package/{chunk-RM5HLXNW.js → chunk-TAN6GLIH.js} +1 -1
  85. package/{chunk-5DRALZZF.js → chunk-TOR7QRRB.js} +1 -1
  86. package/{chunk-D6IS6PE6.js → chunk-U4AN6IWJ.js} +1 -1
  87. package/chunk-URGN4QVD.js +1 -0
  88. package/chunk-UTOLWW4T.js +1 -0
  89. package/chunk-VJROOSEO.js +7 -0
  90. package/chunk-VKUW7E75.js +1 -0
  91. package/{chunk-S27Z7D3D.js → chunk-VM56C6ZV.js} +1 -1
  92. package/chunk-VNZUZ5UI.js +1 -0
  93. package/{chunk-AMGBUOC4.js → chunk-VSDW2RJ5.js} +1 -1
  94. package/{chunk-U2VDC52W.js → chunk-WL6ZZCYW.js} +1 -1
  95. package/chunk-WYLIU52Q.js +1 -0
  96. package/{chunk-5B5AMMR3.js → chunk-X6KL7VKV.js} +1 -1
  97. package/chunk-XGU6GBEK.js +1 -0
  98. package/chunk-XN4CDKDI.js +1 -0
  99. package/chunk-XULSWUMO.js +1 -0
  100. package/chunk-YHLRDTIS.js +1 -0
  101. package/chunk-YQYRAH7V.js +1 -0
  102. package/{chunk-ENH6HA3V.js → chunk-YR5KRTHR.js} +1 -1
  103. package/{chunk-KBR5PEJ3.js → chunk-YU4Q7ASX.js} +1 -1
  104. package/chunk-Z3ZKNQZS.js +1 -0
  105. package/chunk-Z4XRTHAH.js +1 -0
  106. package/{chunk-ETNPJTRI.js → chunk-ZAMQ4RCL.js} +1 -1
  107. package/chunk-ZC2ADHDH.js +130 -0
  108. package/{chunk-MHRSQRHT.js → chunk-ZC7ZENN7.js} +1 -1
  109. package/chunk-ZWNKUBMG.js +202 -0
  110. package/index.html +2 -2
  111. package/main-UCTZ3G6L.js +1 -0
  112. package/package.json +1 -1
  113. package/chunk-23PWXRYN.js +0 -1
  114. package/chunk-2BI7WNJP.js +0 -1
  115. package/chunk-5JNGJ6UW.js +0 -1
  116. package/chunk-6EIUS53G.js +0 -1
  117. package/chunk-6WWXJJID.js +0 -1
  118. package/chunk-AVSCJ22B.js +0 -1
  119. package/chunk-BEZIBXGN.js +0 -1
  120. package/chunk-BF6PW4QM.js +0 -1
  121. package/chunk-BMM5YFHU.js +0 -130
  122. package/chunk-BP4OMNR2.js +0 -8
  123. package/chunk-CFUVIXAX.js +0 -1
  124. package/chunk-CNMK2GSA.js +0 -1
  125. package/chunk-DIG4FYVW.js +0 -1
  126. package/chunk-F7PVAVLQ.js +0 -1
  127. package/chunk-FSJNWH2Y.js +0 -1
  128. package/chunk-FZS2ZX6Y.js +0 -1
  129. package/chunk-G4XX7EU2.js +0 -1
  130. package/chunk-GEFAWOOV.js +0 -129
  131. package/chunk-GTMCB3SL.js +0 -1
  132. package/chunk-H6FEO7T3.js +0 -1
  133. package/chunk-HOAF22JI.js +0 -1
  134. package/chunk-I33QA736.js +0 -1
  135. package/chunk-IPOA3SOW.js +0 -1
  136. package/chunk-IWAIAUMO.js +0 -1
  137. package/chunk-JDRK7YG6.js +0 -1
  138. package/chunk-JIFUQXVH.js +0 -1
  139. package/chunk-KNBVJM2U.js +0 -160
  140. package/chunk-LNFCBMAA.js +0 -1
  141. package/chunk-OJTHBHGK.js +0 -1
  142. package/chunk-OMLO5E65.js +0 -1
  143. package/chunk-PK7RYZ5A.js +0 -1
  144. package/chunk-PSSATQO3.js +0 -1
  145. package/chunk-QC7NAJZG.js +0 -1
  146. package/chunk-RAF7SWW4.js +0 -229
  147. package/chunk-RDQ7RWJC.js +0 -1
  148. package/chunk-RRL6OTRO.js +0 -1
  149. package/chunk-SLD2HX2B.js +0 -1
  150. package/chunk-U5YVZKME.js +0 -1
  151. package/chunk-URSKOWIQ.js +0 -1
  152. package/chunk-V7EXGBKT.js +0 -1
  153. package/chunk-VMI3QWC6.js +0 -193
  154. package/chunk-VQKIYDID.js +0 -1
  155. package/chunk-W6US3XIE.js +0 -1
  156. package/chunk-X3FAXRYR.js +0 -252
  157. package/chunk-YIG2I6WR.js +0 -1
  158. package/chunk-YRW7AH7I.js +0 -1
  159. package/chunk-ZFNIPERQ.js +0 -2
  160. package/chunk-ZIQBCB5X.js +0 -7
  161. package/chunk-ZK43JB4A.js +0 -2
  162. package/chunk-ZY4AYAWJ.js +0 -202
  163. package/main-VIRQJVUE.js +0 -1
@@ -0,0 +1 @@
1
+ var m="00000000-0000-0000-0000-000000000000";var e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function p(t,r=0){return(e[t[r+0]]+e[t[r+1]]+e[t[r+2]]+e[t[r+3]]+"-"+e[t[r+4]]+e[t[r+5]]+"-"+e[t[r+6]]+e[t[r+7]]+"-"+e[t[r+8]]+e[t[r+9]]+"-"+e[t[r+10]]+e[t[r+11]]+e[t[r+12]]+e[t[r+13]]+e[t[r+14]]+e[t[r+15]]).toLowerCase()}var a,l=new Uint8Array(16);function u(){if(!a){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");a=crypto.getRandomValues.bind(crypto)}return a(l)}var x=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),i={randomUUID:x};function c(t,r,o){if(i.randomUUID&&!r&&!t)return i.randomUUID();t=t||{};let n=t.random??t.rng?.()??u();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){if(o=o||0,o<0||o+16>r.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let d=0;d<16;++d)r[o+d]=n[d];return r}return p(n)}var f=c;export{m as a,f as b};
@@ -0,0 +1 @@
1
+ import{m as ut}from"./chunk-KL3TPLRB.js";import{c as ht,d as J,f as j,g as B,h as K}from"./chunk-F2X3VGZZ.js";import{a as q,m as U}from"./chunk-DM2JLWKE.js";import{Ba as Z,Eb as x,Ha as w,Kb as N,Lb as D,Mb as r,Nb as O,Qb as d,Wb as u,Xb as p,Yb as A,Zb as z,_b as G,ac as $,ca as M,cb as at,cc as lt,da as st,db as k,fa as nt,fc as R,g as f,gc as c,ha as C,ia as b,ib as a,ja as ot,lb as rt,ob as g,qa as V,ra as P,sc as m,uc as _,wa as E,yb as L,zb as ct}from"./chunk-6QJHEOXN.js";import{a as l,b as T}from"./chunk-YQFG5XE2.js";var dt=["toast-component",""];function Tt(s,n){if(s&1){let t=$();u(0,"button",5),R("click",function(){V(t);let i=c();return P(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function Ct(s,n){if(s&1&&(z(0),m(1),G()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function bt(s,n){if(s&1&&(u(0,"div"),m(1),x(2,Ct,2,1,"ng-container",4),p()),s&2){let t=c();d(t.options.titleClass),D("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function yt(s,n){if(s&1&&A(0,"div",7),s&2){let t=c();d(t.options.messageClass),r("innerHTML",t.message,k)}}function It(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();d(t.options.messageClass),D("aria-label",t.message),a(),_(" ",t.message," ")}}function wt(s,n){if(s&1&&(u(0,"div"),A(1,"div",9),p()),s&2){let t=c();a(),O("width",t.width()+"%")}}function xt(s,n){if(s&1){let t=$();u(0,"button",5),R("click",function(){V(t);let i=c();return P(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function Dt(s,n){if(s&1&&(z(0),m(1),G()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function Ot(s,n){if(s&1&&(u(0,"div"),m(1),x(2,Dt,2,1,"ng-container",4),p()),s&2){let t=c();d(t.options.titleClass),D("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function At(s,n){if(s&1&&A(0,"div",7),s&2){let t=c();d(t.options.messageClass),r("innerHTML",t.message,k)}}function Rt(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();d(t.options.messageClass),D("aria-label",t.message),a(),_(" ",t.message," ")}}function Ht(s,n){if(s&1&&(u(0,"div"),A(1,"div",9),p()),s&2){let t=c();a(),O("width",t.width()+"%")}}var Q=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},W=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},X=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new f;_activate=new f;_manualClose=new f;_resetTimeout=new f;_countDuplicate=new f;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},y=class{toastId;config;message;title;toastType;toastRef;_onTap=new f;_onAction=new f;constructor(n,t,e,i,o,h){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=h,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},pt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},mt=new nt("ToastConfig"),Y=class extends W{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,e){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(n,t){let e=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=e.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},Mt=(()=>{class s{_document=b(q);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),tt=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},Et=(()=>{class s{_overlayContainer=b(Mt);_componentFactoryResolver=b(rt);_appRef=b(N);_document=b(q);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),e?e.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new Y(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new tt(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ft=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,h){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=h,this.toastrConfig=l(l({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=l(l({},t.default.iconClasses),t.config.iconClasses))}show(t,e,i={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(i))}success(t,e,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}error(t,e,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}info(t,e,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}warning(t,e,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",e="",i,o){let{includeTitleDuplicates:h}=this.toastrConfig;for(let v of this.toasts){let H=h&&v.title===t;if((!h||H)&&v.message===e)return v.toastRef.onDuplicate(i,o),v}return null}applyConfig(t={}){return l(l({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,i,o)):this._buildNotification(t,e,i,o)}_buildNotification(t,e,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let h=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&h!==null)return h;this.previousToastMessage=e;let v=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(v=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let H=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let et=e;e&&o.enableHtml&&(et=this.sanitizer.sanitize(at.HTML,e));let I=new X(H),S=new y(this.index,o,et,i,t,I),vt=[{provide:y,useValue:S}],gt=E.create({providers:vt,parent:this._injector}),_t=new Q(o.toastComponent,gt),it=H.attach(_t,o.newestOnTop);I.componentInstance=it.instance;let F={toastId:this.index,title:i||"",message:e||"",toastRef:I,onShown:I.afterActivate(),onHidden:I.afterClosed(),onTap:S.onTap(),onAction:S.onAction(),portal:it};return v||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{F.toastRef.activate()})),this.toasts.push(F),F}static \u0275fac=function(e){return new(e||s)(C(mt),C(Et),C(E),C(ut),C(Z))};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Nt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.ngZone=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=w({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(l({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(l({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(l({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||s)(g(ft),g(y),g(Z))};static \u0275cmp=L({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&R("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(lt("@flyInOut",i._state),d(i.toastClasses),O("display",i.displayStyle))},attrs:dt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&x(0,Tt,3,0,"button",0)(1,bt,3,5,"div",1)(2,yt,1,3,"div",2)(3,It,2,4,"div",3)(4,wt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[U],encapsulation:2,data:{animation:[ht("flyInOut",[B("inactive",j({opacity:0})),B("active",j({opacity:1})),B("removed",j({opacity:0})),K("inactive => active",J("{{ easeTime }}ms {{ easing }}")),K("active => removed",J("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),jt=T(l({},pt),{toastComponent:Nt}),Bt=(s={})=>ot([{provide:mt,useValue:{default:jt,config:s}}]),Yt=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[Bt(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=ct({type:s});static \u0275inj=st({})}return s})();var St=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=w("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.appRef=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||s)(g(ft),g(y),g(N))};static \u0275cmp=L({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&R("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(d(i.toastClasses),O("display",i.displayStyle))},attrs:dt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&x(0,xt,3,0,"button",0)(1,Ot,3,5,"div",1)(2,At,1,3,"div",2)(3,Rt,2,4,"div",3)(4,Ht,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[U],encapsulation:2,changeDetection:0})}return s})(),te=T(l({},pt),{toastComponent:St});export{ft as a,Bt as b,Yt as c};
@@ -1 +1 @@
1
- import{a as u,t as b}from"./chunk-ZK43JB4A.js";import{Aa as p,La as d,ca as n,da as s,fa as o,ha as a,ia as h,zb as c}from"./chunk-6QJHEOXN.js";var v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}var T=(()=>{class t{constructor(r){this._platformId=r,this.isBrowser=this._platformId?b(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(e){return new(e||t)(a(d))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var l;function _(){if(l==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>l=!0}))}finally{l=l||!1}return l}function F(t){return _()?t:!!t.capture}var g;function w(){if(g==null){let t=typeof document<"u"?document.head:null;g=!!(t&&(t.createShadowRoot||t.attachShadow))}return g}function B(t){if(w()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function A(t){return t.composedPath?t.composedPath()[0]:t.target}var P=new o("cdk-dir-doc",{providedIn:"root",factory:O});function O(){return h(u)}var x=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function k(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?x.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var $=(()=>{class t{constructor(r){if(this.value="ltr",this.change=new p,r){let e=r.body?r.body.dir:null,m=r.documentElement?r.documentElement.dir:null;this.value=k(e||m||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(e){return new(e||t)(a(P,8))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nt=new o("NG_SCROLLBAR_OPTIONS"),Vt=new o("NG_SCROLLBAR_POLYFILL");var jt=new o("NG_SCROLLBAR");var Wt=new o("SCROLLBAR_CONTROL");var Yt=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=c({type:t})}static{this.\u0275inj=s({})}}return t})();export{T as a,F as b,B as c,A as d,$ as e,Yt as f};
1
+ import{a as u,x as b}from"./chunk-DM2JLWKE.js";import{Aa as p,La as d,ca as n,da as s,fa as o,ha as a,ia as h,zb as c}from"./chunk-6QJHEOXN.js";var v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch{v=!1}var T=(()=>{class t{constructor(r){this._platformId=r,this.isBrowser=this._platformId?b(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(e){return new(e||t)(a(d))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var l;function _(){if(l==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>l=!0}))}finally{l=l||!1}return l}function F(t){return _()?t:!!t.capture}var g;function w(){if(g==null){let t=typeof document<"u"?document.head:null;g=!!(t&&(t.createShadowRoot||t.attachShadow))}return g}function B(t){if(w()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function A(t){return t.composedPath?t.composedPath()[0]:t.target}var P=new o("cdk-dir-doc",{providedIn:"root",factory:O});function O(){return h(u)}var x=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function k(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?x.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var $=(()=>{class t{constructor(r){if(this.value="ltr",this.change=new p,r){let e=r.body?r.body.dir:null,m=r.documentElement?r.documentElement.dir:null;this.value=k(e||m||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(e){return new(e||t)(a(P,8))}}static{this.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nt=new o("NG_SCROLLBAR_OPTIONS"),Vt=new o("NG_SCROLLBAR_POLYFILL");var jt=new o("NG_SCROLLBAR");var Wt=new o("SCROLLBAR_CONTROL");var Yt=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=c({type:t})}static{this.\u0275inj=s({})}}return t})();export{T as a,F as b,B as c,A as d,$ as e,Yt as f};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-672TXWSC.js";import{d as r}from"./chunk-F7PVAVLQ.js";import{ia as e}from"./chunk-6QJHEOXN.js";var f=(a,o)=>{let t=e(i),s=e(r),n=t.isAuthenticated(),u=!t.isTokenExpired(),c=t.checkAuthKeysExists();return!n||!u||!c?(s.navigate(["/"],{queryParams:{returnUrl:o.url}}),!1):!0};export{f as a};
1
+ import{a as i}from"./chunk-2JFOEOZ2.js";import{d as r}from"./chunk-DZCJWJUG.js";import{ia as e}from"./chunk-6QJHEOXN.js";var f=(a,o)=>{let t=e(i),s=e(r),n=t.isAuthenticated(),u=!t.isTokenExpired(),c=t.checkAuthKeysExists();return!n||!u||!c?(s.navigate(["/"],{queryParams:{returnUrl:o.url}}),!1):!0};export{f as a};
@@ -0,0 +1 @@
1
+ import{a as Y}from"./chunk-ZAMQ4RCL.js";import{m as O}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{d as K,i as G,j as Q,k as X}from"./chunk-BTFX33U6.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as q}from"./chunk-BT7Y4ADP.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as W}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import"./chunk-ALLR2NXQ.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as U}from"./chunk-O44DI62I.js";import{a as B,b as A}from"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import{e as N}from"./chunk-DZCJWJUG.js";import"./chunk-TOR7QRRB.js";import"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{m as L}from"./chunk-DM2JLWKE.js";import{Eb as g,Fc as P,Ha as w,L as v,Mb as C,Rb as T,Sc as f,Wb as a,Xb as o,Y as D,Yb as S,_ as j,ac as h,bd as k,cd as H,fc as b,gc as l,ia as J,ib as m,qa as _,ra as u,s as R,sc as p,tc as y,wc as F,xc as M,yb as E,yc as z,zc as I}from"./chunk-6QJHEOXN.js";import{a as c,b as d}from"./chunk-YQFG5XE2.js";var Z=["class","component"],$=t=>({id:t});function ee(t,r){if(t&1){let e=h();a(0,"p-button",10),b("onClick",function(){_(e);let n=l(2);return u(n.onMigrate())}),o()}}function te(t,r){if(t&1){let e=h();a(0,"p-button",14),b("onClick",function(){_(e);let n=l(3);return u(n.onJournalTagDelete())}),o()}}function ne(t,r){if(t&1&&(g(0,te,1,0,"p-button",11),a(1,"a",12),S(2,"i",13),p(3," Add"),o()),t&2){let e=l(2);C("ngIf",e.journalTagsChecked().length>0)}}function ie(t,r){if(t&1&&(a(0,"div",8),g(1,ee,1,0,"p-button",9)(2,ne,4,1),o()),t&2){let e=l();m(),T(e.roleService.permissions().accountingSetup.delete?1:-1),m(),T(e.roleService.permissions().accountingSetup.create?2:-1)}}function ae(t,r){t&1&&(a(0,"div",15)(1,"h3",16),p(2," We will copy POS Outlet that are not yet registered as Tag in books.dealpos.app "),o()())}function oe(t,r){t&1&&(a(0,"th",19),S(1,"p-tableHeaderCheckbox"),o())}function le(t,r){if(t&1&&(a(0,"tr"),g(1,oe,2,0,"th",19),a(2,"th"),p(3,"Tag"),o(),a(4,"th"),p(5,"Type ID"),o(),a(6,"th"),p(7,"Description"),o()()),t&2){let e=l(3);m(),T(e.roleService.permissions().accountingSetup.delete?1:-1)}}function re(t,r){if(t&1&&(a(0,"td"),S(1,"p-tableCheckbox",21),o()),t&2){let e=l().$implicit;m(),C("value",e)}}function se(t,r){if(t&1&&(a(0,"tr"),g(1,re,2,1,"td"),a(2,"td")(3,"a",20),p(4),o()(),a(5,"td"),p(6),o(),a(7,"td"),p(8),o()()),t&2){let e=r.$implicit,i=l(3);m(),T(i.roleService.permissions().accountingSetup.delete?1:-1),m(2),C("queryParams",P(5,$,e.id)),m(),y(e.name),m(2),y(e.typeID===0?"Generic":"Outlet"),m(2),y(e.description)}}function pe(t,r){if(t&1&&p(0),t&2){let e=l(3);F(" Showing ",e.first()," to ",e.end()," of ",e.journalTags().count," entries ")}}function ce(t,r){t&1&&(a(0,"tr")(1,"td",22)(2,"span"),p(3," No journal entries found. "),o()()())}function me(t,r){if(t&1){let e=h();a(0,"p-table",18),b("onHeaderCheckboxToggle",function(n){_(e);let s=l(2);return u(s.onHeaderCheckboxToggle(n))})("onPage",function(n){_(e);let s=l(2);return u(s.onPageChange(n))})("onRowSelect",function(n){_(e);let s=l(2);return u(s.onRowSelect(n))})("onRowUnselect",function(n){_(e);let s=l(2);return u(s.onRowUnselect(n))}),g(1,le,8,1,"ng-template",null,3,f)(3,se,9,7,"ng-template",null,4,f)(5,pe,1,3,"ng-template",null,5,f)(7,ce,4,0,"ng-template",null,6,f),o()}if(t&2){let e=l(2);C("lazy",!0)("paginator",!0)("rows",e.params().pageSize)("scrollable",!0)("totalRecords",e.journalTags().count)("value",e.journalTags().data)}}function _e(t,r){if(t&1&&g(0,me,9,6,"p-table",17),t&2){let e=l();T(e.journalTags()?0:-1)}}var Je=(()=>{class t{constructor(){this.journalTagService=J(Y),this.isDialogFilterVisible=w(!1),this.params=w({pageNumber:1,pageSize:100}),this.roleService=J(O),this.first=k(()=>(this.params().pageNumber-1)*this.params().pageSize+1),this.end=k(()=>Math.min(this.params().pageNumber*this.params().pageSize,this.journalTags().count||100)),this.journalTagsSource=A(B(this.params).pipe(v(300),D(e=>this.journalTagService.journalTagList(e).pipe(R(i=>d(c({},i),{data:i.data.map(n=>d(c({},n),{checked:!1}))}))))),{initialValue:null}),this.journalTags=w(null),this.journalTagsChecked=k(()=>this.journalTags()?this.journalTags().data.filter(e=>e.checked):[]),H(()=>{let e=this.journalTagsSource();e&&this.journalTags.set(e)})}ngOnInit(){this.journalTagService.journalTagList({pageNumber:1,pageSize:100}).pipe(q("response")).subscribe()}onPageChange(e){this.params.update(i=>d(c({},i),{pageNumber:e.first/e.rows+1,pageSize:e.rows}))}onRowSelect(e){if(Array.isArray(e.data)){let i=e.data.map(n=>n.id);this.updateCheckedRows(i,!0)}else e.data&&this.updateCheckedRows([e.data.id],!0)}onRowUnselect(e){if(Array.isArray(e.data)){let i=e.data.map(n=>n.id);this.updateCheckedRows(i,!1)}else e.data&&this.updateCheckedRows([e.data.id],!1)}updateCheckedRows(e,i){this.journalTags.update(n=>{if(!n)return n;let s=n.data.map(x=>e.includes(x.id)?d(c({},x),{checked:i}):x);return d(c({},n),{data:s})})}onHeaderCheckboxToggle(e){this.journalTags.update(i=>d(c({},i),{data:i.data.map(n=>d(c({},n),{checked:e.checked}))}))}onJournalTagDelete(){this.journalTagService.journalTagBulkDelete(this.journalTagsChecked().map(e=>e.id)).pipe(j(()=>this.params.update(e=>c({},e)))).subscribe()}onMigrate(){this.isDialogFilterVisible.update(e=>!e)}onFilterConfirmed(){this.journalTagService.journalTagMigrate().pipe(j(()=>{this.isDialogFilterVisible.update(e=>!e),this.params.update(e=>c({},e))})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-journal-tag",8,"component"]],attrs:Z,decls:7,vars:3,consts:[["actionButton",""],["filters",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["dialogTitle","Migrate Outlet as Tag","pageTitle","Journal Tag List",3,"filterConfirmed","isDialogFilterVisibleChange","isDialogFilterVisible","overflowScroll","showCancelButton"],[1,"d-flex","gap-2"],["label","Migrate","variant","outlined"],["label","Migrate","variant","outlined",3,"onClick"],["icon","fa-solid fa-trash","label","Delete","severity","danger",3,"onClick",4,"ngIf"],["routerLink","form",1,"p-button"],[1,"fa-solid","fa-plus"],["icon","fa-solid fa-trash","label","Delete","severity","danger",3,"onClick"],[1,"h-full","d-flex","align-items-center"],[1,"fs-3"],["dataKey","id","selectionMode","single","styleClass","d-flex flex-column justify-content-between h-100",3,"lazy","paginator","rows","scrollable","totalRecords","value"],["dataKey","id","selectionMode","single","styleClass","d-flex flex-column justify-content-between h-100",3,"onHeaderCheckboxToggle","onPage","onRowSelect","onRowUnselect","lazy","paginator","rows","scrollable","totalRecords","value"],[2,"width","1rem"],["routerLink","form",1,"link","link-primary",3,"queryParams"],[3,"value"],["colspan","5"]],template:function(i,n){if(i&1){let s=h();a(0,"app-main-panel",7),b("filterConfirmed",function(){return _(s),u(n.onFilterConfirmed())}),I("isDialogFilterVisibleChange",function(V){return _(s),z(n.isDialogFilterVisible,V)||(n.isDialogFilterVisible=V),u(V)}),g(1,ie,3,2,"ng-template",null,0,f)(3,ae,3,0,"ng-template",null,1,f)(5,_e,1,1,"ng-template",null,2,f),o()}i&2&&(M("isDialogFilterVisible",n.isDialogFilterVisible),C("overflowScroll",!0)("showCancelButton",!1))},dependencies:[W,X,K,G,Q,U,L,N],styles:[".container-wrapper .p-datatable .p-datatable-thead>tr>th{position:sticky;top:0;z-index:1050;background:#f6f6f6!important}"],changeDetection:0})}}return t})();export{Je as JournalTagComponent};
@@ -0,0 +1 @@
1
+ import{a as J}from"./chunk-DAM2WKDY.js";import{m as A}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as G,b as H}from"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-FMAG3RQL.js";import{i as q}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import{a as Z,b as I}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as D,x as F}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as N,j as W,x as j}from"./chunk-MGIEURA2.js";import"./chunk-TOR7QRRB.js";import{a as R}from"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{p as B,u as P}from"./chunk-DM2JLWKE.js";import{Ac as E,Bc as L,Cc as g,Eb as p,Ha as x,Mb as z,Oc as V,Pc as k,Rb as v,Sc as s,W as C,Wb as n,Xb as l,_ as T,ac as f,fc as w,gc as r,ia as a,ib as S,qa as d,ra as u,sc as _,xc as y,yb as h,yc as M,zc as b}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function K(e,c){if(e&1){let t=f();n(0,"p-button",5),w("onClick",function(){d(t);let i=r(2),m=g(0);return u(i.onSaveTimezone(m))}),l()}}function O(e,c){if(e&1&&p(0,K,1,0,"p-button",4),e&2){let t=r();v(t.roleService.permissions().accountingSetup.create||t.roleService.permissions().accountingSetup.edit?0:-1)}}function Q(e,c){e&1&&(n(0,"div",9)(1,"div",10),_(2,"Timezone Configuration"),l(),n(3,"small",11),_(4,"Set the timezone to ensure that all journals and date filtering follow this timezone"),l()())}function U(e,c){if(e&1){let t=f();n(0,"p-panel"),p(1,Q,5,0,"ng-template",null,2,s),n(3,"div",6)(4,"div",7)(5,"p-select",8),b("ngModelChange",function(i){d(t);let m=r();return M(m.selectedTimezone,i)||(m.selectedTimezone=i),u(i)}),l()()()()}if(e&2){let t=r(),o=g(0);S(5),y("ngModel",t.selectedTimezone),z("filter",!0)("fluid",!0)("options",o==null||o.options==null?null:o.options.timezones)("showClear",!0)}}var _e=(()=>{class e{constructor(){this.selectedTimezone=x(null),this.roleService=a(A),this.setupService=a(J),this.loader$=this.setupService.fetchLoaderConfiguration().pipe(T(t=>{this.selectedTimezone.set(t?.form?.timeZone||null)}),C(1)),this.toastr=a(R)}onSaveTimezone(t){let o=t.form;o.timeZone=this.selectedTimezone(),this.setupService.updateAccountingIntegrationConfiguration({form:o}).subscribe()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=h({type:e,selectors:[["app-timezone"]],decls:7,vars:3,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Timezone"],["icon","fa-solid fa-floppy-disk","label","Save"],["icon","fa-solid fa-floppy-disk","label","Save",3,"onClick"],[1,"row"],[1,"col-6"],["appendTo","body","optionLabel","displayName","optionValue","id","placeholder","Select Timezone",3,"ngModelChange","ngModel","filter","fluid","options","showClear"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-normal","fs-4"],[1,"fst-italic","text-muted"]],template:function(o,i){o&1&&(E(0),V(1,"async"),n(2,"app-main-panel",3),p(3,O,1,1,"ng-template",null,0,s)(5,U,6,5,"ng-template",null,1,s),l()),o&2&&L(k(1,0,i.loader$))},dependencies:[P,B,j,N,W,q,I,Z,F,D,H,G],encapsulation:2})}}return e})();export{_e as TimezoneComponent};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-5DRALZZF.js";import{A as i}from"./chunk-ZK43JB4A.js";import{ca as a,ia as n}from"./chunk-6QJHEOXN.js";var d=(()=>{class t{constructor(){this.httpService=n(u)}journalTagList({pageNumber:e,pageSize:r}={}){let o={params:new i().set("pageNumber",e).set("pageSize",r)};return this.httpService.get(void 0,"/api/journalTag/list",o)}journalTagCreate(e){return this.httpService.post(void 0,"/api/journalTag",e)}journalTagGet(e){return this.httpService.get(void 0,`/api/journalTag?ID=${e}`)}journalTagUpdate(e,r){return this.httpService.put(void 0,`/api/journalTag?ID=${r}`,e)}journalTagDelete(e){return this.httpService.delete(void 0,`/api/journalTag/DeleteMultiJournalTag?ID=${e}`)}journalTagBulkDelete(e){return this.httpService.post(void 0,"/api/journalTag/DeleteMultiJournalTag",e)}journalTagInfo(e){return this.httpService.get(void 0,`/api/journaltag?ID=${e}`)}journalTagMigrate(){return this.httpService.post(void 0,"/api/JournalTag/migrate",{})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{d as a};
1
+ import{a as u}from"./chunk-TOR7QRRB.js";import{d as i}from"./chunk-KL3TPLRB.js";import{ca as a,ia as n}from"./chunk-6QJHEOXN.js";var d=(()=>{class t{constructor(){this.httpService=n(u)}journalTagList({pageNumber:e,pageSize:r}={}){let o={params:new i().set("pageNumber",e).set("pageSize",r)};return this.httpService.get(void 0,"/api/journalTag/list",o)}journalTagCreate(e){return this.httpService.post(void 0,"/api/journalTag",e)}journalTagGet(e){return this.httpService.get(void 0,`/api/journalTag?ID=${e}`)}journalTagUpdate(e,r){return this.httpService.put(void 0,`/api/journalTag?ID=${r}`,e)}journalTagDelete(e){return this.httpService.delete(void 0,`/api/journalTag/DeleteMultiJournalTag?ID=${e}`)}journalTagBulkDelete(e){return this.httpService.post(void 0,"/api/journalTag/DeleteMultiJournalTag",e)}journalTagInfo(e){return this.httpService.get(void 0,`/api/journaltag?ID=${e}`)}journalTagMigrate(){return this.httpService.post(void 0,"/api/JournalTag/migrate",{})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{d as a};
@@ -0,0 +1,130 @@
1
+ import{b as Qe,c as Ye,d as Qi}from"./chunk-56CZGYL5.js";import{a as It,b as Fe,c as qe,d as Pe,e as wt,f as Ci}from"./chunk-YR5KRTHR.js";import{a as hi}from"./chunk-2JFOEOZ2.js";import{a as Pi,b as Ai}from"./chunk-43JH7CKX.js";import{m as ui}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Wi,b as tt}from"./chunk-5U7KZJ3H.js";import{a as Bi}from"./chunk-II7KELI4.js";import{a as Mi,b as Vi,c as Ki}from"./chunk-FTBQKOYS.js";import{a as Ni}from"./chunk-L4ENW4RK.js";import{b as Ui}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import{a as qi,i as Yi}from"./chunk-FNGX2XFA.js";import{b as bi,c as vi,e as xi,g as Ct,h as yi}from"./chunk-BFEM6LX7.js";import{a as Fi,j as zi,l as ji,n as Hi,p as $i,y as Gi,z as Zi}from"./chunk-O44DI62I.js";import{a as pi}from"./chunk-DTYVTTET.js";import{Ba as ki,Ea as Ti,Ha as Di,Ka as Ei,La as Oi,Ma as Ri,Na as et,R as Ii,S as we,V as St,Va as Li,a as _i,e as mi,j as fi,oa as wi,qa as Si,ra as Xe,sa as Se,ta as Je,wa as Ae,x as Ze,y as gi}from"./chunk-MGIEURA2.js";import{b as ci,c as di,d as Ce,e as Ue,f as Ge,l as Ie}from"./chunk-DZCJWJUG.js";import"./chunk-TOR7QRRB.js";import"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{B as li,a as ue,j as re,l as si,m as oi,n as ri,o as ai,u as ae}from"./chunk-DM2JLWKE.js";import{$b as $,$c as Le,Aa as O,Ab as $e,B as Kt,Ba as he,C as Be,Cb as bt,D as Wt,Dc as oe,Eb as m,Ec as xe,Fa as te,Fc as v,Gc as Re,H as _t,Ha as N,Hc as ti,Ic as ii,Kb as ei,Lb as R,Mb as h,N as Ut,Nb as vt,Ob as H,Oc as B,Pb as Ee,Pc as Z,Qb as Oe,Qc as yt,Rb as S,Sc as ee,Ta as Qt,Tb as ie,Ub as ne,Vb as se,Wb as u,Wc as ye,X as ze,Xb as p,Y as mt,Yb as I,Z as me,Zb as X,_ as je,_b as J,_c as E,a as de,ac as L,ba as Gt,bd as We,ca as q,d as De,da as fe,eb as Yt,ed as ni,fa as ge,fc as y,g as w,gb as Xt,gc as l,h as Ve,ha as M,hc as xt,ia as F,ib as c,ic as Ke,j as pt,lc as P,m as jt,ma as Zt,mc as U,nb as Jt,nc as k,ob as x,oc as T,pa as ft,qa as f,qb as gt,ra as g,rc as ve,s as Ht,sc as C,tc as V,ua as qt,uc as G,wa as He,yb as W,z as $t,zb as be}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function it(n,s=0){return Gn(n)?Number(n):arguments.length===2?s:0}function Gn(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Xi(n){return Array.isArray(n)?n:[n]}function Q(n){return n instanceof te?n.nativeElement:n}var Ji={theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",boxed:"boxed",colorTheme:"Blue_Theme",cardType:"shadow"};var qn=20,en=(()=>{class n{constructor(e,t,i){this._ngZone=e,this._platform=t,this._scrolled=new w,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=qn){return this._platform.isBrowser?new De(t=>{this._globalSubscription||this._addGlobalListener();let i=e>0?this._scrolled.pipe(_t(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):jt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Wt(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,e)&&t.push(o)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let i=Q(t),o=e.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return $t(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(t){return new(t||n)(M(he),M(It),M(ue,8))}}static{this.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Qn=20,tn=(()=>{class n{constructor(e,t,i){this._platform=e,this._change=new w,this._changeListener=o=>{this._change.next(o)},this._document=i,t.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:i}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+t,height:i,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),i=e.documentElement,o=i.getBoundingClientRect(),r=-o.top||e.body.scrollTop||t.scrollY||i.scrollTop||0,a=-o.left||e.body.scrollLeft||t.scrollX||i.scrollLeft||0;return{top:r,left:a}}change(e=Qn){return e>0?this._change.pipe(_t(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(t){return new(t||n)(M(It),M(he),M(ue,8))}}static{this.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var nn=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=be({type:n})}static{this.\u0275inj=fe({})}}return n})();function sn(n){return n.buttons===0||n.detail===0}function on(n){let s=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!s&&s.identifier===-1&&(s.radiusX==null||s.radiusX===1)&&(s.radiusY==null||s.radiusY===1)}function In(n){let s=n.cloneNode(!0),e=s.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();s.removeAttribute("id");for(let i=0;i<e.length;i++)e[i].removeAttribute("id");return t==="canvas"?ln(n,s):(t==="input"||t==="select"||t==="textarea")&&an(n,s),rn("canvas",n,s,ln),rn("input, textarea, select",n,s,an),s}function rn(n,s,e,t){let i=s.querySelectorAll(n);if(i.length){let o=e.querySelectorAll(n);for(let r=0;r<i.length;r++)t(i[r],o[r])}}var Xn=0;function an(n,s){s.type!=="file"&&(s.value=n.value),s.type==="radio"&&s.name&&(s.name=`mat-clone-${s.name}-${Xn++}`)}function ln(n,s){let e=s.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch{}}function Lt(n){let s=n.getBoundingClientRect();return{top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height,x:s.x,y:s.y}}function Tt(n,s,e){let{top:t,bottom:i,left:o,right:r}=n;return e>=t&&e<=i&&s>=o&&s<=r}function Ne(n,s,e){n.top+=s,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function cn(n,s,e,t){let{top:i,right:o,bottom:r,left:a,width:d,height:_}=n,b=d*s,D=_*s;return t>i-D&&t<r+D&&e>a-b&&e<o+b}var rt=class{constructor(s){this._document=s,this.positions=new Map}clear(){this.positions.clear()}cache(s){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),s.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Lt(e)})})}handleScroll(s){let e=Pe(s),t=this.positions.get(e);if(!t)return null;let i=t.scrollPosition,o,r;if(e===this._document){let _=this.getViewportScrollPosition();o=_.top,r=_.left}else o=e.scrollTop,r=e.scrollLeft;let a=i.top-o,d=i.left-r;return this.positions.forEach((_,b)=>{_.clientRect&&e!==b&&e.contains(b)&&Ne(_.clientRect,a,d)}),i.top=o,i.left=r,{top:a,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function wn(n,s){let e=n.rootNodes;if(e.length===1&&e[0].nodeType===s.ELEMENT_NODE)return e[0];let t=s.createElement("div");return e.forEach(i=>t.appendChild(i)),t}function Ft(n,s,e){for(let t in s)if(s.hasOwnProperty(t)){let i=s[t];i?n.setProperty(t,i,e?.has(t)?"important":""):n.removeProperty(t)}return n}function Te(n,s){let e=s?"":"none";Ft(n.style,{"touch-action":s?"":"none","-webkit-user-drag":s?"":"none","-webkit-tap-highlight-color":s?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function dn(n,s,e){Ft(n.style,{position:s?"":"fixed",top:s?"":"0",opacity:s?"":"0",left:s?"":"-999em"},e)}function at(n,s){return s&&s!="none"?n+" "+s:n}function hn(n,s){n.style.width=`${s.width}px`,n.style.height=`${s.height}px`,n.style.transform=lt(s.left,s.top)}function lt(n,s){return`translate3d(${Math.round(n)}px, ${Math.round(s)}px, 0)`}function un(n){let s=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*s}function Jn(n){let s=getComputedStyle(n),e=kt(s,"transition-property"),t=e.find(a=>a==="transform"||a==="all");if(!t)return 0;let i=e.indexOf(t),o=kt(s,"transition-duration"),r=kt(s,"transition-delay");return un(o[i])+un(r[i])}function kt(n,s){return n.getPropertyValue(s).split(",").map(t=>t.trim())}var es=new Set(["position"]),Dt=class{get element(){return this._preview}constructor(s,e,t,i,o,r,a,d,_){this._document=s,this._rootElement=e,this._direction=t,this._initialDomRect=i,this._previewTemplate=o,this._previewClass=r,this._pickupPositionOnPage=a,this._initialTransform=d,this._zIndex=_}attach(s){this._preview=this._createPreview(),s.appendChild(this._preview),pn(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(s){this._preview.style.transform=s}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(s){this._preview.classList.add(s)}getTransitionDuration(){return Jn(this._preview)}addEventListener(s,e){this._preview.addEventListener(s,e)}removeEventListener(s,e){this._preview.removeEventListener(s,e)}_createPreview(){let s=this._previewTemplate,e=this._previewClass,t=s?s.template:null,i;if(t&&s){let o=s.matchSize?this._initialDomRect:null,r=s.viewContainer.createEmbeddedView(t,s.context);r.detectChanges(),i=wn(r,this._document),this._previewEmbeddedView=r,s.matchSize?hn(i,o):i.style.transform=lt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else i=In(this._rootElement),hn(i,this._initialDomRect),this._initialTransform&&(i.style.transform=this._initialTransform);return Ft(i.style,{"pointer-events":"none",margin:pn(i)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},es),Te(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("popover","manual"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>i.classList.add(o)):i.classList.add(e)),i}};function pn(n){return"showPopover"in n}var _n=Fe({passive:!0}),nt=Fe({passive:!1}),mn=Fe({passive:!1,capture:!0}),ts=800,fn=new Set(["position"]),Et=class{get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(s){s!==this._disabled&&(this._disabled=s,this._toggleNativeDragInteractions(),this._handles.forEach(e=>Te(e,s)))}constructor(s,e,t,i,o,r){this._config=e,this._document=t,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=r,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=N(!1),this._moveEvents=new w,this._pointerMoveSubscription=de.EMPTY,this._pointerUpSubscription=de.EMPTY,this._scrollSubscription=de.EMPTY,this._resizeSubscription=de.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this.scale=1,this._disabled=!1,this.beforeStarted=new w,this.started=new w,this.released=new w,this.ended=new w,this.entered=new w,this.exited=new w,this.dropped=new w,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){let d=this._getTargetHandle(a);d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{let d=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging()){let b=Math.abs(d.x-this._pickupPositionOnPage.x),D=Math.abs(d.y-this._pickupPositionOnPage.y);if(b+D>=this._config.dragStartThreshold){let le=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),ce=this._dropContainer;if(!le){this._endDragSequence(a);return}(!ce||!ce.isDragging()&&!ce.isReceiving())&&(a.cancelable&&a.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(a)))}return}a.cancelable&&a.preventDefault();let _=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(_),this._dropContainer)this._updateActiveDropContainer(_,d);else{let b=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,D=this._activeTransform;D.x=_.x-b.x+this._passiveTransform.x,D.y=_.y-b.y+this._passiveTransform.y,this._applyRootElementTransform(D.x,D.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:_,event:a,distance:this._getDragDistance(_),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){let d=this._getTargetHandle(a);d&&!this._disabledHandles.has(d)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(s).withParent(e.parentDragRef||null),this._parentPositions=new rt(t),r.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(s){this._handles=s.map(t=>Q(t)),this._handles.forEach(t=>Te(t,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(s){return this._previewTemplate=s,this}withPlaceholderTemplate(s){return this._placeholderTemplate=s,this}withRootElement(s){let e=Q(s);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,nt),e.addEventListener("touchstart",this._pointerDown,_n),e.addEventListener("dragstart",this._nativeDragStart,nt)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(s){return this._boundaryElement=s?Q(s):null,this._resizeSubscription.unsubscribe(),s&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(s){return this._parentDragRef=s,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(s){!this._disabledHandles.has(s)&&this._handles.indexOf(s)>-1&&(this._disabledHandles.add(s),Te(s,!0))}enableHandle(s){this._disabledHandles.has(s)&&(this._disabledHandles.delete(s),Te(s,this.disabled))}withDirection(s){return this._direction=s,this}_withDropContainer(s){this._dropContainer=s}getFreeDragPosition(){let s=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:s.x,y:s.y}}setFreeDragPosition(s){return this._activeTransform={x:0,y:0},this._passiveTransform.x=s.x,this._passiveTransform.y=s.y,this._dropContainer||this._applyRootElementTransform(s.x,s.y),this}withPreviewContainer(s){return this._previewContainer=s,this}_sortFromLastPointerPosition(){let s=this._lastKnownPointerPosition;s&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(s),s)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",bn,mn)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(s){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:s}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(s),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(s);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:s})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(s){Me(s)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),t=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{e.addEventListener("selectstart",bn,mn)}),t){let i=this._rootElement,o=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=new Dt(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(o,e)),dn(i,!1,fn),this._document.body.appendChild(o.replaceChild(r,i)),this.started.next({source:this,event:s}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:s}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(s,e){this._parentDragRef&&e.stopPropagation();let t=this.isDragging(),i=Me(e),o=!i&&e.button!==0,r=this._rootElement,a=Pe(e),d=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+ts>Date.now(),_=i?on(e):sn(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),t||o||d||_)return;if(this._handles.length){let z=r.style;this._rootElementTapHighlight=z.webkitTapHighlightColor||"",z.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(z=>this._updateOnScroll(z)),this._boundaryElement&&(this._boundaryRect=Lt(this._boundaryElement));let b=this._previewTemplate;this._pickupPositionInElement=b&&b.template&&!b.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,s,e);let D=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:D.x,y:D.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(s){dn(this._rootElement,!0,fn),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,t=e.getItemIndex(this),i=this._getPointerPositionOnPage(s),o=this._getDragDistance(i),r=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:o,dropPoint:i,event:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:o,dropPoint:i,event:s}),e.drop(this,t,this._initialIndex,this._initialContainer,r,o,i,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:s,y:e},{x:t,y:i}){let o=this._initialContainer._getSiblingContainerFromPosition(this,s,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(s,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,s,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,i),this._dropContainer._sortItem(this,s,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(s,e):this._applyPreviewTransform(s-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let s=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(s.left,s.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let i=r=>{(!r||this._preview&&Pe(r)===this._preview.element&&r.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",i),t(),clearTimeout(o))},o=setTimeout(i,e*1.5);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){let s=this._placeholderTemplate,e=s?s.template:null,t;return e?(this._placeholderRef=s.viewContainer.createEmbeddedView(e,s.context),this._placeholderRef.detectChanges(),t=wn(this._placeholderRef,this._document)):t=In(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(s,e,t){let i=e===this._rootElement?null:e,o=i?i.getBoundingClientRect():s,r=Me(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition(),d=r.pageX-o.left-a.left,_=r.pageY-o.top-a.top;return{x:o.left-s.left+d,y:o.top-s.top+_}}_getPointerPositionOnPage(s){let e=this._getViewportScrollPosition(),t=Me(s)?s.touches[0]||s.changedTouches[0]||{pageX:0,pageY:0}:s,i=t.pageX-e.left,o=t.pageY-e.top;if(this._ownerSVGElement){let r=this._ownerSVGElement.getScreenCTM();if(r){let a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=o,a.matrixTransform(r.inverse())}}return{x:i,y:o}}_getConstrainedPointerPosition(s){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:i}=this.constrainPosition?this.constrainPosition(s,this,this._initialDomRect,this._pickupPositionInElement):s;if(this.lockAxis==="x"||e==="x"?i=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:r}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:d,height:_}=this._getPreviewRect(),b=a.top+r,D=a.bottom-(_-r),z=a.left+o,le=a.right-(d-o);t=gn(t,z,le),i=gn(i,b,D)}return{x:t,y:i}}_updatePointerDirectionDelta(s){let{x:e,y:t}=s,i=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-o.x),a=Math.abs(t-o.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(i.y=t>o.y?1:-1,o.y=t),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let s=this._handles.length>0||!this.isDragging();s!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=s,Te(this._rootElement,s))}_removeRootElementListeners(s){s.removeEventListener("mousedown",this._pointerDown,nt),s.removeEventListener("touchstart",this._pointerDown,_n),s.removeEventListener("dragstart",this._nativeDragStart,nt)}_applyRootElementTransform(s,e){let t=1/this.scale,i=lt(s*t,e*t),o=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=o.transform&&o.transform!="none"?o.transform:""),o.transform=at(i,this._initialTransform)}_applyPreviewTransform(s,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,i=lt(s,e);this._preview.setTransform(at(i,t))}_getDragDistance(s){let e=this._pickupPositionOnPage;return e?{x:s.x-e.x,y:s.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:s,y:e}=this._passiveTransform;if(s===0&&e===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),i=this._boundaryElement.getBoundingClientRect();if(i.width===0&&i.height===0||t.width===0&&t.height===0)return;let o=i.left-t.left,r=t.right-i.right,a=i.top-t.top,d=t.bottom-i.bottom;i.width>t.width?(o>0&&(s+=o),r>0&&(s-=r)):s=0,i.height>t.height?(a>0&&(e+=a),d>0&&(e-=d)):e=0,(s!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:s})}_getDragStartDelay(s){let e=this.dragStartDelay;return typeof e=="number"?e:Me(s)?e.touch:e?e.mouse:0}_updateOnScroll(s){let e=this._parentPositions.handleScroll(s);if(e){let t=Pe(s);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Ne(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=qe(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(s,e){let t=this._previewContainer||"global";if(t==="parent")return s;if(t==="global"){let i=this._document;return e||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return Q(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(s){return this._handles.find(e=>s.target&&(s.target===e||e.contains(s.target)))}};function gn(n,s,e){return Math.max(s,Math.min(e,n))}function Me(n){return n.type[0]==="t"}function bn(n){n.preventDefault()}function Sn(n,s,e){let t=vn(s,n.length-1),i=vn(e,n.length-1);if(t===i)return;let o=n[t],r=i<t?-1:1;for(let a=t;a!==i;a+=r)n[a]=n[a+r];n[i]=o}function vn(n,s){return Math.max(0,Math.min(s,n))}var ct=class{constructor(s){this._dragDropRegistry=s,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(s){this.withItems(s)}sort(s,e,t,i){let o=this._itemPositions,r=this._getItemIndexFromPointerPosition(s,e,t,i);if(r===-1&&o.length>0)return null;let a=this.orientation==="horizontal",d=o.findIndex(j=>j.drag===s),_=o[r],b=o[d].clientRect,D=_.clientRect,z=d>r?1:-1,le=this._getItemOffsetPx(b,D,z),ce=this._getSiblingOffsetPx(d,o,z),_e=o.slice();return Sn(o,d,r),o.forEach((j,Un)=>{if(_e[Un]===j)return;let Vt=j.drag===s,ut=Vt?le:ce,Bt=Vt?s.getPlaceholderElement():j.drag.getRootElement();j.offset+=ut;let zt=Math.round(j.offset*(1/j.drag.scale));a?(Bt.style.transform=at(`translate3d(${zt}px, 0, 0)`,j.initialTransform),Ne(j.clientRect,0,ut)):(Bt.style.transform=at(`translate3d(0, ${zt}px, 0)`,j.initialTransform),Ne(j.clientRect,ut,0))}),this._previousSwap.overlaps=Tt(D,e,t),this._previousSwap.drag=_.drag,this._previousSwap.delta=a?i.x:i.y,{previousIndex:d,currentIndex:r}}enter(s,e,t,i){let o=i==null||i<0?this._getItemIndexFromPointerPosition(s,e,t):i,r=this._activeDraggables,a=r.indexOf(s),d=s.getPlaceholderElement(),_=r[o];if(_===s&&(_=r[o+1]),!_&&(o==null||o===-1||o<r.length-1)&&this._shouldEnterAsFirstChild(e,t)&&(_=r[0]),a>-1&&r.splice(a,1),_&&!this._dragDropRegistry.isDragging(_)){let b=_.getRootElement();b.parentElement.insertBefore(d,b),r.splice(o,0,s)}else this._element.appendChild(d),r.push(s);d.style.transform="",this._cacheItemPositions()}withItems(s){this._activeDraggables=s.slice(),this._cacheItemPositions()}withSortPredicate(s){this._sortPredicate=s}reset(){this._activeDraggables?.forEach(s=>{let e=s.getRootElement();if(e){let t=this._itemPositions.find(i=>i.drag===s)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(s){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===s)}updateOnScroll(s,e){this._itemPositions.forEach(({clientRect:t})=>{Ne(t,s,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(s){this._element=s}_cacheItemPositions(){let s=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Lt(t)}}).sort((e,t)=>s?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(s,e,t){let i=this.orientation==="horizontal",o=i?e.left-s.left:e.top-s.top;return t===-1&&(o+=i?e.width-s.width:e.height-s.height),o}_getSiblingOffsetPx(s,e,t){let i=this.orientation==="horizontal",o=e[s].clientRect,r=e[s+t*-1],a=o[i?"width":"height"]*t;if(r){let d=i?"left":"top",_=i?"right":"bottom";t===-1?a-=r.clientRect[d]-o[_]:a+=o[d]-r.clientRect[_]}return a}_shouldEnterAsFirstChild(s,e){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,i=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let r=t[t.length-1].clientRect;return i?s>=r.right:e>=r.bottom}else{let r=t[0].clientRect;return i?s<=r.left:e<=r.top}}_getItemIndexFromPointerPosition(s,e,t,i){let o=this.orientation==="horizontal",r=this._itemPositions.findIndex(({drag:a,clientRect:d})=>{if(a===s)return!1;if(i){let _=o?i.x:i.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&_===this._previousSwap.delta)return!1}return o?e>=Math.floor(d.left)&&e<Math.floor(d.right):t>=Math.floor(d.top)&&t<Math.floor(d.bottom)});return r===-1||!this._sortPredicate(r,s)?-1:r}},Ot=class{constructor(s,e){this._document=s,this._dragDropRegistry=e,this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1},this._relatedNodes=[]}start(s){let e=this._element.childNodes;this._relatedNodes=[];for(let t=0;t<e.length;t++){let i=e[t];this._relatedNodes.push([i,i.nextSibling])}this.withItems(s)}sort(s,e,t,i){let o=this._getItemIndexFromPointerPosition(s,e,t),r=this._previousSwap;if(o===-1||this._activeItems[o]===s)return null;let a=this._activeItems[o];if(r.drag===a&&r.overlaps&&r.deltaX===i.x&&r.deltaY===i.y)return null;let d=this.getItemIndex(s),_=s.getPlaceholderElement(),b=a.getRootElement();o>d?b.after(_):b.before(_),Sn(this._activeItems,d,o);let D=this._getRootNode().elementFromPoint(e,t);return r.deltaX=i.x,r.deltaY=i.y,r.drag=a,r.overlaps=b===D||b.contains(D),{previousIndex:d,currentIndex:o}}enter(s,e,t,i){let o=i==null||i<0?this._getItemIndexFromPointerPosition(s,e,t):i;o===-1&&(o=this._getClosestItemIndexToPointer(s,e,t));let r=this._activeItems[o],a=this._activeItems.indexOf(s);a>-1&&this._activeItems.splice(a,1),r&&!this._dragDropRegistry.isDragging(r)?(this._activeItems.splice(o,0,s),r.getRootElement().before(s.getPlaceholderElement())):(this._activeItems.push(s),this._element.appendChild(s.getPlaceholderElement()))}withItems(s){this._activeItems=s.slice()}withSortPredicate(s){this._sortPredicate=s}reset(){let s=this._element,e=this._previousSwap;for(let t=this._relatedNodes.length-1;t>-1;t--){let[i,o]=this._relatedNodes[t];i.parentNode===s&&i.nextSibling!==o&&(o===null?s.appendChild(i):o.parentNode===s&&s.insertBefore(i,o))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(s){return this._activeItems.indexOf(s)}updateOnScroll(){this._activeItems.forEach(s=>{this._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()})}withElementContainer(s){s!==this._element&&(this._element=s,this._rootNode=void 0)}_getItemIndexFromPointerPosition(s,e,t){let i=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),o=i?this._activeItems.findIndex(r=>{let a=r.getRootElement();return i===a||a.contains(i)}):-1;return o===-1||!this._sortPredicate(o,s)?-1:o}_getRootNode(){return this._rootNode||(this._rootNode=qe(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(s,e,t){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let i=1/0,o=-1;for(let r=0;r<this._activeItems.length;r++){let a=this._activeItems[r];if(a!==s){let{x:d,y:_}=a.getRootElement().getBoundingClientRect(),b=Math.hypot(e-d,t-_);b<i&&(i=b,o=r)}}return o}},xn=.05,kn=.05,K=function(n){return n[n.NONE=0]="NONE",n[n.UP=1]="UP",n[n.DOWN=2]="DOWN",n}(K||{}),A=function(n){return n[n.NONE=0]="NONE",n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n}(A||{}),Rt=class{constructor(s,e,t,i,o){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new w,this.entered=new w,this.exited=new w,this.dropped=new w,this.sorted=new w,this.receivingStarted=new w,this.receivingStopped=new w,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=de.EMPTY,this._verticalScrollDirection=K.NONE,this._horizontalScrollDirection=A.NONE,this._stopScrollTimers=new w,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),Kt(0,pt).pipe(me(this._stopScrollTimers)).subscribe(()=>{let a=this._scrollNode,d=this.autoScrollStep;this._verticalScrollDirection===K.UP?a.scrollBy(0,-d):this._verticalScrollDirection===K.DOWN&&a.scrollBy(0,d),this._horizontalScrollDirection===A.LEFT?a.scrollBy(-d,0):this._horizontalScrollDirection===A.RIGHT&&a.scrollBy(d,0)})};let r=this.element=Q(s);this._document=t,this.withOrientation("vertical").withElementContainer(r),e.registerDropContainer(this),this._parentPositions=new rt(t)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(s,e,t,i){this._draggingStarted(),i==null&&this.sortingDisabled&&(i=this._draggables.indexOf(s)),this._sortStrategy.enter(s,e,t,i),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:s,container:this,currentIndex:this.getItemIndex(s)})}exit(s){this._reset(),this.exited.next({item:s,container:this})}drop(s,e,t,i,o,r,a,d={}){this._reset(),this.dropped.next({item:s,currentIndex:e,previousIndex:t,container:this,previousContainer:i,isPointerOverContainer:o,distance:r,dropPoint:a,event:d})}withItems(s){let e=this._draggables;return this._draggables=s,s.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(i=>i.isDragging()).every(i=>s.indexOf(i)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(s){return this._direction=s,this._sortStrategy instanceof ct&&(this._sortStrategy.direction=s),this}connectedTo(s){return this._siblings=s.slice(),this}withOrientation(s){if(s==="mixed")this._sortStrategy=new Ot(this._document,this._dragDropRegistry);else{let e=new ct(this._dragDropRegistry);e.direction=this._direction,e.orientation=s,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,t)=>this.sortPredicate(e,t,this)),this}withScrollableParents(s){let e=this._container;return this._scrollableElements=s.indexOf(e)===-1?[e,...s]:s.slice(),this}withElementContainer(s){if(s===this._container)return this;let e=Q(this.element),t=this._scrollableElements.indexOf(this._container),i=this._scrollableElements.indexOf(s);return t>-1&&this._scrollableElements.splice(t,1),i>-1&&this._scrollableElements.splice(i,1),this._sortStrategy&&this._sortStrategy.withElementContainer(s),this._cachedShadowRoot=null,this._scrollableElements.unshift(s),this._container=s,this}getScrollableParents(){return this._scrollableElements}getItemIndex(s){return this._isDragging?this._sortStrategy.getItemIndex(s):this._draggables.indexOf(s)}isReceiving(){return this._activeSiblings.size>0}_sortItem(s,e,t,i){if(this.sortingDisabled||!this._domRect||!cn(this._domRect,xn,e,t))return;let o=this._sortStrategy.sort(s,e,t,i);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:s})}_startScrollingIfNecessary(s,e){if(this.autoScrollDisabled)return;let t,i=K.NONE,o=A.NONE;if(this._parentPositions.positions.forEach((r,a)=>{a===this._document||!r.clientRect||t||cn(r.clientRect,xn,s,e)&&([i,o]=is(a,r.clientRect,this._direction,s,e),(i||o)&&(t=a))}),!i&&!o){let{width:r,height:a}=this._viewportRuler.getViewportSize(),d={width:r,height:a,top:0,right:r,bottom:a,left:0};i=Tn(d,e),o=Dn(d,s),t=window}t&&(i!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=i,this._horizontalScrollDirection=o,this._scrollNode=t,(i||o)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let s=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=s.msScrollSnapType||s.scrollSnapType||"",s.scrollSnapType=s.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let s=this._container.style;s.scrollSnapType=s.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(s,e){return this._domRect!=null&&Tt(this._domRect,s,e)}_getSiblingContainerFromPosition(s,e,t){return this._siblings.find(i=>i._canReceive(s,e,t))}_canReceive(s,e,t){if(!this._domRect||!Tt(this._domRect,e,t)||!this.enterPredicate(s,this))return!1;let i=this._getShadowRoot().elementFromPoint(e,t);return i?i===this._container||this._container.contains(i):!1}_startReceiving(s,e){let t=this._activeSiblings;!t.has(s)&&e.every(i=>this.enterPredicate(i,this)||this._draggables.indexOf(i)>-1)&&(t.add(s),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:s,receiver:this,items:e}))}_stopReceiving(s){this._activeSiblings.delete(s),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:s,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(s=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(s);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let s=qe(this._container);this._cachedShadowRoot=s||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let s=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,s))}};function Tn(n,s){let{top:e,bottom:t,height:i}=n,o=i*kn;return s>=e-o&&s<=e+o?K.UP:s>=t-o&&s<=t+o?K.DOWN:K.NONE}function Dn(n,s){let{left:e,right:t,width:i}=n,o=i*kn;return s>=e-o&&s<=e+o?A.LEFT:s>=t-o&&s<=t+o?A.RIGHT:A.NONE}function is(n,s,e,t,i){let o=Tn(s,i),r=Dn(s,t),a=K.NONE,d=A.NONE;if(o){let _=n.scrollTop;o===K.UP?_>0&&(a=K.UP):n.scrollHeight-_>n.clientHeight&&(a=K.DOWN)}if(r){let _=n.scrollLeft;e==="rtl"?r===A.RIGHT?_<0&&(d=A.RIGHT):n.scrollWidth+_>n.clientWidth&&(d=A.LEFT):r===A.LEFT?_>0&&(d=A.LEFT):n.scrollWidth-_>n.clientWidth&&(d=A.RIGHT)}return[a,d]}var st=Fe({passive:!1,capture:!0}),ot=new Set,ns=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=W({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,i){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}}return n})(),ss=(()=>{class n{constructor(e,t){this._ngZone=e,this._appRef=F(ei),this._environmentInjector=F(Zt),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=N([]),this._globalListeners=new Map,this._draggingPredicate=i=>i.isDragging(),this.pointerMove=new w,this.pointerUp=new w,this.scroll=new w,this._preventDefaultWhileDragging=i=>{this._activeDragInstances().length>0&&i.preventDefault()},this._persistentTouchmoveListener=i=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&i.preventDefault(),this.pointerMove.next(i))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,st)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,st)}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._loadResets(),this._activeDragInstances.update(i=>[...i,e]),this._activeDragInstances().length===1)){let i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:st}),i||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:st}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,r)=>{this._document.addEventListener(r,o.handler,o.options)})})}}stopDragging(e){this._activeDragInstances.update(t=>{let i=t.indexOf(e);return i>-1?(t.splice(i,1),[...t]):t}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let t=[this.scroll];return e&&e!==this._document&&t.push(new De(i=>this._ngZone.runOutsideAngular(()=>{let r=a=>{this._activeDragInstances().length&&i.next(a)};return e.addEventListener("scroll",r,!0),()=>{e.removeEventListener("scroll",r,!0)}}))),Be(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}_loadResets(){if(!ot.has(this._appRef)){ot.add(this._appRef);let e=ni(ns,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{ot.delete(this._appRef),ot.size===0&&e.destroy()})}}static{this.\u0275fac=function(t){return new(t||n)(M(he),M(ue))}}static{this.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),os={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Pt=(()=>{class n{constructor(e,t,i,o){this._document=e,this._ngZone=t,this._viewportRuler=i,this._dragDropRegistry=o}createDrag(e,t=os){return new Et(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Rt(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static{this.\u0275fac=function(t){return new(t||n)(M(ue),M(he),M(tn),M(ss))}}static{this.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),yn=new ge("CDK_DRAG_PARENT");var rs=new ge("CdkDragHandle");var dt=new ge("CDK_DRAG_CONFIG"),as="cdk-drag",En=new ge("CdkDropList"),On=(()=>{class n{static{this._dragInstances=[]}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}constructor(e,t,i,o,r,a,d,_,b,D,z){this.element=e,this.dropContainer=t,this._ngZone=o,this._viewContainerRef=r,this._dir=d,this._changeDetectorRef=b,this._selfHandle=D,this._parentDrag=z,this._destroyed=new w,this._handles=new Ve([]),this.scale=1,this.started=new O,this.released=new O,this.ended=new O,this.entered=new O,this.exited=new O,this.dropped=new O,this.moved=new De(le=>{let ce=this._dragRef.moved.pipe(Ht(_e=>({source:this,pointerPosition:_e.pointerPosition,event:_e.event,delta:_e.delta,distance:_e.distance}))).subscribe(le);return()=>{ce.unsubscribe()}}),this._injector=F(He),this._dragRef=_.createDrag(e,{dragStartThreshold:a&&a.dragStartThreshold!=null?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&a.pointerDirectionChangeThreshold!=null?a.pointerDirectionChangeThreshold:5,zIndex:a?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),a&&this._assignDefaults(a),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this),t._dropListRef.beforeStarted.pipe(me(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Qt(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);let e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let t=this._handles.getValue();t.push(e),this._handles.next(t)}_removeHandle(e){let t=this._handles.getValue(),i=t.indexOf(e);i>-1&&(t.splice(i,1),this._handles.next(t))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):Q(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,i=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,r=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof i=="object"&&i?i:it(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(r).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(Ut(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains(as)){e.withParent(n._dragInstances.find(i=>i.element.nativeElement===t)?._dragRef||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){let{lockAxis:t,dragStartDelay:i,constrainPosition:o,previewClass:r,boundaryElement:a,draggingDisabled:d,rootElementSelector:_,previewContainer:b}=e;this.disabled=d??!1,this.dragStartDelay=i||0,t&&(this.lockAxis=t),o&&(this.constrainPosition=o),r&&(this.previewClass=r),a&&(this.boundaryElement=a),_&&(this.rootElementSelector=_),b&&(this.previewContainer=b)}_setupHandlesListener(){this._handles.pipe(je(e=>{let t=e.map(i=>i.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),mt(e=>Be(...e.map(t=>t._stateChanges.pipe(ze(t))))),me(this._destroyed)).subscribe(e=>{let t=this._dragRef,i=e.element.nativeElement;e.disabled?t.disableHandle(i):t.enableHandle(i)})}static{this.\u0275fac=function(t){return new(t||n)(x(te),x(En,12),x(ue),x(he),x(gt),x(dt,8),x(wt,8),x(Pt),x(ye),x(rs,10),x(yn,12))}}static{this.\u0275dir=$e({type:n,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,i){t&2&&H("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",E],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Le]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[oe([{provide:yn,useExisting:n}]),ft]})}}return n})(),Cn=new ge("CdkDropListGroup");var ls=0,Rn=(()=>{class n{static{this._dropLists=[]}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}constructor(e,t,i,o,r,a,d){this.element=e,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new w,this.connectedTo=[],this.id=`cdk-drop-list-${ls++}`,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new O,this.entered=new O,this.exited=new O,this.sorted=new O,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,d&&this._assignDefaults(d),this._dropListRef.enterPredicate=(_,b)=>this.enterPredicate(_.data,b.data),this._dropListRef.sortPredicate=(_,b,D)=>this.sortPredicate(_,b.data,D.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),a&&a._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(ze(this._dir.value),me(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{let t=Xi(this.connectedTo).map(i=>{if(typeof i=="string"){let o=n._dropLists.find(r=>r.id===i);return o}return i});if(this._group&&this._group._items.forEach(i=>{t.indexOf(i)===-1&&t.push(i)}),!this._scrollableParentsResolved){let i=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(i),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let i=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(i)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=it(this.autoScrollStep,2),e.connectedTo(t.filter(i=>i&&i!==this).map(i=>i._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),Be(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:t,draggingDisabled:i,sortingDisabled:o,listAutoScrollDisabled:r,listOrientation:a}=e;this.disabled=i??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=r??!1,this.orientation=a||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}static{this.\u0275fac=function(t){return new(t||n)(x(te),x(Pt),x(ye),x(en),x(wt,8),x(Cn,12),x(dt,8))}}static{this.\u0275dir=$e({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,i){t&2&&(R("id",i.id),H("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",E],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",E],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",E],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[oe([{provide:Cn,useValue:void 0},{provide:En,useExisting:n}])]})}}return n})();var Ln=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=be({type:n})}static{this.\u0275inj=fe({providers:[Pt],imports:[nn]})}}return n})();var ds=["item"],hs=["group"],us=["header"],Fn=["filter"],ps=["footer"],_s=["emptyfilter"],ms=["empty"],fs=["filtericon"],gs=["checkicon"],bs=["checkmark"],vs=["loader"],xs=["headerchkbox"],ys=["lastHiddenFocusableElement"],Cs=["firstHiddenFocusableElement"],Is=["scroller"],ws=["list"],Ss=["container"],ks=[[["p-header"]],[["p-footer"]]],Ts=["p-header","p-footer"],ht=(n,s)=>({$implicit:n,options:s}),Ds=n=>({"p-checkbox-disabled":n}),Mt=n=>({$implicit:n}),An=n=>({options:n}),Mn=()=>[],Nt=n=>({height:n}),Es=()=>({}),Os=(n,s,e)=>({"p-listbox-option-selected":n,"p-focus":s,"p-disabled":e}),Rs=(n,s,e,t)=>({$implicit:n,index:s,selected:e,disabled:t}),Ls=n=>({implicit:n});function Fs(n,s){n&1&&$(0)}function Ps(n,s){if(n&1&&(u(0,"div",22),Ke(1),m(2,Fs,1,0,"ng-container",23),p()),n&2){let e=l();c(2),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",Re(2,ht,e.modelValue(),e.visibleOptions()))}}function As(n,s){}function Ms(n,s){n&1&&m(0,As,0,0,"ng-template")}function Ns(n,s){if(n&1&&m(0,Ms,1,0,null,23),n&2){let e=l(5);h("ngTemplateOutlet",e.checkIconTemplate||e._checkIconTemplate)("ngTemplateOutletContext",v(2,Mt,e.allSelected()))}}function Vs(n,s){n&1&&(X(0),m(1,Ns,1,4,"ng-template",null,5,ee),J())}function Bs(n,s){if(n&1&&(u(0,"p-checkbox",30),m(1,Vs,3,0,"ng-container",31),p()),n&2){let e=l(3);h("ngModel",e.allSelected())("disabled",e.disabled)("tabindex",-1)("variant",e.config.inputStyle()==="filled"||e.config.inputVariant()==="filled"?"filled":"outlined")("binary",!0),c(),h("ngIf",e.checkIconTemplate||e._checkIconTemplate)}}function zs(n,s){if(n&1){let e=L();u(0,"div",26),y("click",function(i){f(e);let o=l(2);return g(o.onToggleAll(i))})("keydown",function(i){f(e);let o=l(2);return g(o.onHeaderCheckboxKeyDown(i))}),u(1,"div",27)(2,"input",28,4),y("focus",function(i){f(e);let o=l(2);return g(o.onHeaderCheckboxFocus(i))})("blur",function(){f(e);let i=l(2);return g(i.onHeaderCheckboxBlur())}),p()(),m(4,Bs,2,6,"p-checkbox",29),p()}if(n&2){let e=l(2);h("ngClass",v(6,Ds,e.disabled)),c(),R("data-p-hidden-accessible",!0),c(),h("disabled",e.disabled),R("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),c(2),h("ngIf",e.checkbox&&e.multiple)}}function js(n,s){n&1&&$(0)}function Hs(n,s){if(n&1&&(X(0),m(1,js,1,0,"ng-container",23),J()),n&2){let e=l(2);c(),h("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",v(2,An,e.filterOptions))}}function $s(n,s){n&1&&I(0,"SearchIcon",38),n&2&&(h("styleClass","p-listbox-filter-icon"),R("aria-hidden",!0))}function Ks(n,s){}function Ws(n,s){n&1&&m(0,Ks,0,0,"ng-template")}function Us(n,s){if(n&1&&(u(0,"span",39),m(1,Ws,1,0,null,40),p()),n&2){let e=l(4);R("aria-hidden",!0),c(),h("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Gs(n,s){if(n&1){let e=L();u(0,"div",34)(1,"p-iconfield")(2,"input",35,6),y("input",function(i){f(e);let o=l(3);return g(o.onFilterChange(i))})("keydown",function(i){f(e);let o=l(3);return g(o.onFilterKeyDown(i))})("focus",function(i){f(e);let o=l(3);return g(o.onFilterFocus(i))})("blur",function(i){f(e);let o=l(3);return g(o.onFilterBlur(i))}),p(),u(4,"p-inputicon"),m(5,$s,1,2,"SearchIcon",36)(6,Us,2,2,"span",37),p()()()}if(n&2){let e=l(3);c(2),h("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",!e.disabled&&!e.focused?e.tabindex:-1),R("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),c(3),h("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),h("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function Zs(n,s){if(n&1&&(m(0,Gs,7,9,"div",32),u(1,"span",33),C(2),p()),n&2){let e=l(2);h("ngIf",e.filter),c(),R("data-p-hidden-accessible",!0),c(),G(" ",e.filterResultMessageText," ")}}function qs(n,s){if(n&1&&(u(0,"div",22),m(1,zs,5,8,"div",24)(2,Hs,2,4,"ng-container",25)(3,Zs,3,3,"ng-template",null,3,ee),p()),n&2){let e=ve(4),t=l();c(),h("ngIf",t.checkbox&&t.multiple&&t.showToggleAll),c(),h("ngIf",t.filterTemplate||t._filterTemplate)("ngIfElse",e)}}function Qs(n,s){if(n&1&&C(0),n&2){let e=l(2);G(" ",e.emptyFilterMessageText," ")}}function Ys(n,s){n&1&&$(0,null,7)}function Xs(n,s){if(n&1&&m(0,Ys,2,0,"ng-container",40),n&2){let e=l(2);h("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e._emptyTemplate||e.emptyTemplate)}}function Js(n,s){if(n&1){let e=L();u(0,"div",41),y("cdkDropListDropped",function(i){f(e);let o=l();return g(o.drop(i))}),m(1,Qs,1,1)(2,Xs,1,1,"ng-container"),p()}if(n&2){let e=l();h("cdkDropListData",xe(2,Mn)),c(),S(!e.emptyFilterTemplate&&!e._emptyFilterTemplate&&!e._emptyTemplate&&!e.emptyTemplate?1:2)}}function eo(n,s){if(n&1&&C(0),n&2){let e=l(2);G(" ",e.emptyMessage," ")}}function to(n,s){n&1&&$(0,null,8)}function io(n,s){if(n&1&&m(0,to,2,0,"ng-container",40),n&2){let e=l(2);h("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function no(n,s){if(n&1){let e=L();u(0,"div",41),y("cdkDropListDropped",function(i){f(e);let o=l();return g(o.drop(i))}),m(1,eo,1,1)(2,io,1,1,"ng-container"),p()}if(n&2){let e=l();h("cdkDropListData",xe(2,Mn)),c(),S(!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function so(n,s){n&1&&$(0)}function oo(n,s){if(n&1&&m(0,so,1,0,"ng-container",23),n&2){let e=s.$implicit,t=s.options;l(2);let i=ve(3);h("ngTemplateOutlet",i)("ngTemplateOutletContext",Re(2,ht,e,t))}}function ro(n,s){n&1&&$(0)}function ao(n,s){if(n&1&&m(0,ro,1,0,"ng-container",23),n&2){let e=s.options,t=l(4);h("ngTemplateOutlet",t.loaderTemplate||t._loaderTemplate)("ngTemplateOutletContext",v(2,An,e))}}function lo(n,s){n&1&&m(0,ao,1,4,"ng-template",null,12,ee)}function co(n,s){if(n&1){let e=L();u(0,"p-scroller",43,10),y("onLazyLoad",function(i){f(e);let o=l(2);return g(o.onLazyLoad.emit(i))}),m(2,oo,1,5,"ng-template",null,11,ee)(4,lo,2,0),p()}if(n&2){let e=l(2);Ee(v(9,Nt,e.scrollHeight)),h("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("tabindex",e.scrollerTabIndex),c(4),S(e.loaderTemplate||e._loaderTemplate?4:-1)}}function ho(n,s){n&1&&$(0)}function uo(n,s){if(n&1&&(X(0),m(1,ho,1,0,"ng-container",23),J()),n&2){l();let e=ve(3),t=l();c(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",Re(3,ht,t.visibleOptions(),xe(2,Es)))}}function po(n,s){if(n&1&&(u(0,"span"),C(1),p()),n&2){let e=l(2).$implicit,t=l(3);c(),V(t.getOptionGroupLabel(e.optionGroup))}}function _o(n,s){n&1&&$(0)}function mo(n,s){if(n&1&&(X(0),u(1,"li",46),m(2,po,2,1,"span",31)(3,_o,1,0,"ng-container",23),p(),J()),n&2){let e=l(),t=e.$implicit,i=e.index,o=l().options,r=l(2);c(),h("ngStyle",v(7,Nt,o.itemSize+"px"))("cdkDragData",t)("cdkDragDisabled",!r.dragdrop),R("id",r.id+"_"+r.getOptionIndex(i,o)),c(),h("ngIf",!r.groupTemplate&&!r._groupTemplate),c(),h("ngTemplateOutlet",r.groupTemplate||r._groupTemplate)("ngTemplateOutletContext",v(9,Mt,t.optionGroup))}}function fo(n,s){}function go(n,s){n&1&&m(0,fo,0,0,"ng-template")}function bo(n,s){if(n&1&&m(0,go,1,0,null,23),n&2){let e=l(4).$implicit,t=l(3);h("ngTemplateOutlet",t.checkIconTemplate||t._checkIconTemplate)("ngTemplateOutletContext",v(2,Mt,t.isSelected(e)))}}function vo(n,s){n&1&&(X(0),m(1,bo,1,4,"ng-template",null,5,ee),J())}function xo(n,s){if(n&1&&(u(0,"p-checkbox",49),m(1,vo,3,0,"ng-container",31),p()),n&2){let e=l(2).$implicit,t=l(3);h("ngModel",t.isSelected(e))("readonly",!0)("disabled",t.disabled||t.isOptionDisabled(e))("tabindex",-1)("variant",t.config.inputStyle()==="filled"||t.config.inputVariant()==="filled"?"filled":"outlined")("binary",!0),c(),h("ngIf",t.checkIconTemplate||t._checkIconTemplate)}}function yo(n,s){n&1&&I(0,"BlankIcon",51)}function Co(n,s){n&1&&I(0,"CheckIcon",51)}function Io(n,s){if(n&1&&(X(0),m(1,yo,1,0,"BlankIcon",50)(2,Co,1,0,"CheckIcon",50),J()),n&2){let e=l(3).$implicit,t=l(3);c(),h("ngIf",!t.isSelected(e)),c(),h("ngIf",t.isSelected(e))}}function wo(n,s){n&1&&$(0)}function So(n,s){if(n&1&&(X(0),m(1,Io,3,2,"ng-container",31)(2,wo,1,0,"ng-container",23),J()),n&2){let e=l(2).$implicit,t=l(3);c(),h("ngIf",!t.checkmarkTemplate&&!t._checkmarkTemplate),c(),h("ngTemplateOutlet",t.checkmarkTemplate||t._checkmarkTemplate)("ngTemplateOutletContext",v(3,Ls,t.isSelected(e)))}}function ko(n,s){if(n&1&&(u(0,"span"),C(1),p()),n&2){let e=l(2).$implicit,t=l(3);c(),V(t.getOptionLabel(e))}}function To(n,s){n&1&&$(0)}function Do(n,s){if(n&1){let e=L();X(0),u(1,"li",47),y("click",function(i){f(e);let o=l(),r=o.$implicit,a=o.index,d=l().options,_=l(2);return g(_.onOptionSelect(i,r,_.getOptionIndex(a,d)))})("dblclick",function(i){f(e);let o=l().$implicit,r=l(3);return g(r.onOptionDoubleClick(i,o))})("mousedown",function(i){f(e);let o=l().index,r=l().options,a=l(2);return g(a.onOptionMouseDown(i,a.getOptionIndex(o,r)))})("mouseenter",function(i){f(e);let o=l().index,r=l().options,a=l(2);return g(a.onOptionMouseEnter(i,a.getOptionIndex(o,r)))})("touchend",function(){f(e);let i=l(4);return g(i.onOptionTouchEnd())}),m(2,xo,2,7,"p-checkbox",48)(3,So,3,5,"ng-container",31)(4,ko,2,1,"span",31)(5,To,1,0,"ng-container",23),p(),J()}if(n&2){let e=l(),t=e.$implicit,i=e.index,o=l().options,r=l(2);c(),h("ngStyle",v(15,Nt,o.itemSize+"px"))("ngClass",ti(17,Os,r.isSelected(t)&&r.highlightOnSelect,r.focusedOptionIndex()===r.getOptionIndex(i,o),r.isOptionDisabled(t)))("cdkDragData",t)("cdkDragDisabled",!r.dragdrop),R("id",r.id+"_"+r.getOptionIndex(i,o))("aria-label",r.getOptionLabel(t))("aria-selected",r.isSelected(t))("aria-disabled",r.isOptionDisabled(t))("aria-setsize",r.ariaSetSize)("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(i,o))),c(),h("ngIf",r.checkbox&&r.multiple),c(),h("ngIf",r.checkmark),c(),h("ngIf",!r.itemTemplate&&!r._itemTemplate),c(),h("ngTemplateOutlet",r.itemTemplate||r._itemTemplate)("ngTemplateOutletContext",ii(21,Rs,t,r.getOptionIndex(i,o),r.isSelected(t),r.isOptionDisabled(t)))}}function Eo(n,s){if(n&1&&m(0,mo,4,11,"ng-container",31)(1,Do,6,26,"ng-container",31),n&2){let e=s.$implicit,t=l(3);h("ngIf",t.isOptionGroup(e)),c(),h("ngIf",!t.isOptionGroup(e))}}function Oo(n,s){if(n&1){let e=L();u(0,"ul",44,13),y("focus",function(i){f(e);let o=l(2);return g(o.onListFocus(i))})("blur",function(i){f(e);let o=l(2);return g(o.onListBlur(i))})("keydown",function(i){f(e);let o=l(2);return g(o.onListKeyDown(i))})("cdkDropListDropped",function(i){f(e);let o=l(2);return g(o.drop(i))}),m(2,Eo,2,2,"ng-template",45),p()}if(n&2){let e=s.$implicit,t=s.options,i=l(2);Ee(t.contentStyle),h("tabindex",-1)("ngClass",t.contentStyleClass)("cdkDropListData",e),R("aria-multiselectable",!0)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-label",i.ariaLabel)("aria-disabled",i.disabled),c(2),h("ngForOf",e)}}function Ro(n,s){if(n&1&&m(0,co,5,11,"p-scroller",42)(1,uo,2,6,"ng-container",31)(2,Oo,3,10,"ng-template",null,9,ee),n&2){let e=l();h("ngIf",e.virtualScroll),c(),h("ngIf",!e.virtualScroll)}}function Lo(n,s){n&1&&$(0)}function Fo(n,s){if(n&1&&(u(0,"div",52),Ke(1,1),m(2,Lo,1,0,"ng-container",23),p()),n&2){let e=l();c(2),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",Re(2,ht,e.modelValue(),e.visibleOptions()))}}function Po(n,s){if(n&1&&(u(0,"span",21),C(1),p()),n&2){let e=l();c(),G(" ",e.emptyMessage," ")}}var Ao=({dt:n})=>`
2
+ .p-listbox {
3
+ background: ${n("listbox.background")};
4
+ color: ${n("listbox.color")};
5
+ border: 1px solid ${n("listbox.border.color")};
6
+ border-radius: ${n("listbox.border.radius")};
7
+ transition: background ${n("listbox.transition.duration")}, color ${n("listbox.transition.duration")}, border-color ${n("listbox.transition.duration")},
8
+ box-shadow ${n("listbox.transition.duration")}, outline-color ${n("listbox.transition.duration")};
9
+ outline-color: transparent;
10
+ box-shadow: ${n("listbox.shadow")};
11
+ }
12
+
13
+ .p-listbox.p-focus {
14
+ border-color: ${n("listbox.focus.border.color")};
15
+ box-shadow: ${n("listbox.focus.ring.shadow")};
16
+ outline: ${n("listbox.focus.ring.width")} ${n("listbox.focus.ring.style")} ${n("listbox.focus.ring.color")};
17
+ outline-offset: ${n("listbox.focus.ring.offset")};
18
+ }
19
+
20
+ .p-listbox.p-disabled {
21
+ opacity: 1;
22
+ background: ${n("listbox.disabled.background")};
23
+ color: ${n("listbox.disabled.color")};
24
+ }
25
+
26
+ .p-listbox.p-disabled .p-listbox-option {
27
+ color: ${n("listbox.disabled.color")};
28
+ }
29
+
30
+ .p-listbox-header {
31
+ padding: ${n("listbox.list.header.padding")};
32
+ display: flex;
33
+ align-items: center;
34
+ }
35
+
36
+ .p-listbox-header > * {
37
+ flex: 1 1 auto;
38
+ }
39
+
40
+ .p-listbox-header > .p-checkbox {
41
+ flex: 0 0 auto;
42
+ }
43
+
44
+ .p-listbox-filter {
45
+ width: 100%;
46
+ }
47
+
48
+ .p-listbox-list-container {
49
+ overflow: auto;
50
+ }
51
+
52
+ .p-listbox-list {
53
+ list-style-type: none;
54
+ margin: 0;
55
+ padding: ${n("listbox.list.padding")};
56
+ outline: 0 none;
57
+ display: flex;
58
+ flex-direction: column;
59
+ gap: ${n("listbox.list.gap")};
60
+ }
61
+
62
+ .p-listbox-option {
63
+ display: flex;
64
+ align-items: center;
65
+ cursor: pointer;
66
+ position: relative;
67
+ overflow: hidden;
68
+ padding: ${n("listbox.option.padding")};
69
+ border: 0 none;
70
+ border-radius: ${n("listbox.option.border.radius")};
71
+ color: ${n("listbox.option.color")};
72
+ transition: background ${n("listbox.transition.duration")}, color ${n("listbox.transition.duration")}, border-color ${n("listbox.transition.duration")},
73
+ box-shadow ${n("listbox.transition.duration")}, outline-color ${n("listbox.transition.duration")};
74
+ }
75
+
76
+ .p-listbox-option:not(.cdk-drag-disabled) {
77
+ cursor: move;
78
+ }
79
+
80
+ .p-listbox-striped li:nth-child(even of .p-listbox-option) {
81
+ background: ${n("listbox.option.striped.background")};
82
+ }
83
+
84
+ .p-listbox .p-listbox-list .p-listbox-option.p-listbox-option-selected {
85
+ background: ${n("listbox.option.selected.background")};
86
+ color: ${n("listbox.option.selected.color")};
87
+ }
88
+
89
+ .p-listbox:not(.p-disabled) .p-listbox-option.p-listbox-option-selected.p-focus {
90
+ background: ${n("listbox.option.selected.focus.background")};
91
+ color: ${n("listbox.option.selected.focus.color")};
92
+ }
93
+
94
+ .p-listbox:not(.p-disabled) .p-listbox-option:not(.p-listbox-option-selected):not(.p-disabled).p-focus {
95
+ background: ${n("listbox.option.focus.background")};
96
+ color: ${n("listbox.option.focus.color")};
97
+ }
98
+
99
+ .p-listbox:not(.p-disabled) .p-listbox-option:not(.p-listbox-option-selected):not(.p-disabled):hover {
100
+ background: ${n("listbox.option.focus.background")};
101
+ color: ${n("listbox.option.focus.color")};
102
+ }
103
+
104
+ .p-listbox-option-check-icon {
105
+ position: relative;
106
+ margin-inline-start: ${n("listbox.checkmark.gutter.start")};
107
+ margin-inline-end: ${n("listbox.checkmark.gutter.end")};
108
+ color: ${n("listbox.checkmark.color")};
109
+ }
110
+
111
+ .p-listbox-option-group {
112
+ margin: 0;
113
+ padding: ${n("listbox.option.group.padding")};
114
+ color: ${n("listbox.option.group.color")};
115
+ background: ${n("listbox.option.group.background")};
116
+ font-weight: ${n("listbox.option.group.font.weight")};
117
+ }
118
+
119
+ .p-listbox-empty-message {
120
+ padding: ${n("listbox.empty.message.padding")};
121
+ }
122
+
123
+ /* For PrimeNG */
124
+
125
+ p-listBox.ng-invalid.ng-dirty > .p-listbox.p-component,
126
+ p-list-box.ng-invalid.ng-dirty > .p-listbox.p-component,
127
+ p-listbox.ng-invalid.ng-dirty > .p-listbox.p-component {
128
+ border-color: ${n("listbox.invalid.border.color")};
129
+ }
130
+ `,Mo={root:({props:n})=>["p-listbox p-component",{"p-listbox-striped":n.striped,"p-disabled":n.disabled,"p-invalid":n.invalid}],header:"p-listbox-header",pcFilter:"p-listbox-filter",listContainer:"p-listbox-list-container",list:"p-listbox-list",optionGroup:"p-listbox-option-group",option:({instance:n,props:s,option:e,index:t,getItemOptions:i})=>["p-listbox-option",{"p-listbox-option-selected":n.isSelected(e)&&s.highlightOnSelect,"p-focus":n.focusedOptionIndex===n.getOptionIndex(t,i),"p-disabled":n.isOptionDisabled(e)}],optionCheckIcon:"p-listbox-option-check-icon",optionBlankIcon:"p-listbox-option-blank-icon",emptyMessage:"p-listbox-empty-message"},Pn=(()=>{class n extends Li{name="listbox";theme=Ao;classes=Mo;static \u0275fac=(()=>{let e;return function(i){return(e||(e=qt(n)))(i||n)}})();static \u0275prov=q({token:n,factory:n.\u0275fac})}return n})();var No={provide:_i,useExisting:Gt(()=>Nn),multi:!0},Nn=(()=>{class n extends Fi{filterService;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;ariaLabel;selectOnFocus;searchLocale;focusOnHover=!0;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="14rem";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}striped=!1;highlightOnSelect=!0;checkmark=!1;dragdrop=!1;onChange=new O;onClick=new O;onDblClick=new O;onFilter=new O;onFocus=new O;onBlur=new O;onSelectAllChange=new O;onLazyLoad=new O;onDrop=new O;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;containerViewChild;headerFacet;footerFacet;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;checkmarkTemplate;loaderTemplate;templates;_itemTemplate;_groupTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_filterIconTemplate;_checkIconTemplate;_checkmarkTemplate;_loaderTemplate;_filterValue=N(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;scrollerTabIndex="0";_componentStyle=F(Pn);get containerClass(){return{"p-listbox p-component":!0,"p-listbox-striped":this.striped,"p-disabled":this.disabled}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return Xe(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=N(null);startRangeIndex=N(-1);focusedOptionIndex=N(-1);modelValue=N(null);visibleOptions=We(()=>{let e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e){super(),this.filterService=e}ngOnInit(){super.ngOnInit(),this.id=this.id||Ti("pn_id_"),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"checkicon":this._checkIconTemplate=e.template;break;case"checkmark":this._checkmarkTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((t,i,o)=>{t.push({optionGroup:i,group:!0,index:o});let r=this.getOptionGroupChildren(i);return r&&r.forEach(a=>t.push(a)),t},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){let e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,t){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:t,value:this.value})}removeOption(e){return this.modelValue().filter(t=>!Je(t,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,t,i=-1){this.disabled||this.isOptionDisabled(t)||this.readonly||(e&&this.onClick.emit({originalEvent:e,option:t,value:this.value}),this.multiple?this.onOptionSelectMultiple(e,t):this.onOptionSelectSingle(e,t),this.optionTouched=!1,i!==-1&&this.focusedOptionIndex.set(i))}onOptionSelectMultiple(e,t){let i=this.isSelected(t),o=null;if(this.optionTouched?!1:this.metaKeySelection){let a=e.metaKey||e.ctrlKey;i?o=a?this.removeOption(t):[this.getOptionValue(t)]:(o=a?this.modelValue()||[]:[],o=[...o,this.getOptionValue(t)])}else o=i?this.removeOption(t):[...this.modelValue()||[],this.getOptionValue(t)];this.updateModel(o,e)}onOptionSelectSingle(e,t){let i=this.isSelected(t),o=!1,r=null;if(this.optionTouched?!1:this.metaKeySelection){let d=e.metaKey||e.ctrlKey;i?d&&(r=null,o=!0):(r=this.getOptionValue(t),o=!0)}else r=i?null:this.getOptionValue(t),o=!0;o&&this.updateModel(r,e)}onOptionSelectRange(e,t=-1,i=-1){if(t===-1&&(t=this.findNearestSelectedOptionIndex(i,!0)),i===-1&&(i=this.findNearestSelectedOptionIndex(t)),t!==-1&&i!==-1){let o=Math.min(t,i),r=Math.max(t,i),a=this.visibleOptions().slice(o,r+1).filter(d=>this.isValidOption(d)).map(d=>this.getOptionValue(d));this.updateModel(a,e)}}onToggleAll(e){if(!(this.disabled||this.readonly)){if(we(this.headerCheckboxViewChild.nativeElement),this.selectAll!==null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let t=this.allSelected()?[]:this.visibleOptions().filter(i=>this.isValidOption(i)).map(i=>this.getOptionValue(i));this.updateModel(t,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return this.selectAll!==null?this.selectAll:Xe(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,t){this.changeFocusedOptionIndex(e,t)}onOptionMouseEnter(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)}onOptionDoubleClick(e,t){this.disabled||this.isOptionDisabled(t)||this.readonly||this.onDblClick.emit({originalEvent:e,option:t,value:this.value})}onFirstHiddenFocus(e){we(this.listViewChild.nativeElement);let t=St(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=wi(t)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){if(e.relatedTarget===this.listViewChild.nativeElement){let i=St(this.el.nativeElement,":not(.p-hidden-focusable)");we(i),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0}else we(this.firstHiddenFocusableElement.nativeElement);this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0,this.containerViewChild.nativeElement.tabIndex="0",this.scrollerTabIndex="0")}onListFocus(e){this.focused=!0;let t=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(t),this.onFocus.emit(e),this.containerViewChild.nativeElement.tabIndex="-1",this.scrollerTabIndex="-1"}onFilterFocus(e){this.containerViewChild.nativeElement.tabIndex="-1"}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"Space":this.onToggleAll(e);break;case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e);break;default:break}}onHeaderCheckboxTabKeyDown(e){we(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let t=e.target.value?.trim();this._filterValue.set(t),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){let t=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":case"NumpadEnter":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&e.code==="KeyA"&&t){let i=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(i,e),e.preventDefault();break}!t&&ki(e.key)&&(this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:break}}onArrowDownKey(e){let t=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),t),this.changeFocusedOptionIndex(e,t),e.preventDefault()}onArrowUpKey(e){let t=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex()),this.changeFocusedOptionIndex(e,t),e.preventDefault()}onArrowLeftKey(e,t=!1){t&&this.focusedOptionIndex.set(-1)}onHomeKey(e,t=!1){if(t)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let i=e.metaKey||e.ctrlKey,o=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&i&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o)}e.preventDefault()}onEndKey(e,t=!1){if(t){let i=e.currentTarget,o=i.value.length;i.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}else{let i=e.metaKey||e.ctrlKey,o=this.findLastOptionIndex();this.multiple&&e.shiftKey&&i&&this.onOptionSelectRange(e,this.startRangeIndex(),o),this.changeFocusedOptionIndex(e,o)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){this.focusedOptionIndex()!==-1&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){let e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?Se(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?Se(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionLabel(e){return this.optionLabel?Se(e,this.optionLabel):e.label!=null?e.label:e}getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t.getItemOptions(e).index}getOptionValue(e){return this.optionValue?Se(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(t=>this.isOptionGroup(t)).length:e)+1}hasSelectedOption(){return Xe(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,t){this.focusedOptionIndex()!==t&&(this.focusedOptionIndex.set(t),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[t]))}searchOptions(e,t){this.searchValue=(this.searchValue||"")+t;let i=-1,o=!1;return this.focusedOptionIndex()!==-1?(i=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),i=i===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):i+this.focusedOptionIndex()):i=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),i!==-1&&(o=!0),i===-1&&this.focusedOptionIndex()===-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}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){let t=e!==-1?`${this.id}_${e}`:this.focusedOptionId,i=Ii(this.listViewChild.nativeElement,`li[id="${t}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(e!==-1?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return Ae(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?Ae(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let t=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return t>-1?t+e+1:e}findNextSelectedOptionIndex(e){let t=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidSelectedOption(i)):-1;return t>-1?t+e+1:-1}findPrevSelectedOptionIndex(e){let t=this.hasSelectedOption()&&e>0?Ae(this.visibleOptions().slice(0,e),i=>this.isValidSelectedOption(i)):-1;return t>-1?t:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){let t=e>0?Ae(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return t>-1?t:e}findNearestSelectedOptionIndex(e,t=!1){let i=-1;return this.hasSelectedOption()&&(t?(i=this.findPrevSelectedOptionIndex(e),i=i===-1?this.findNextSelectedOptionIndex(e):i):(i=this.findNextSelectedOptionIndex(e),i=i===-1?this.findPrevSelectedOptionIndex(e):i)),i>-1?i:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return Si(this.optionDisabled)?this.optionDisabled(e):this.optionDisabled?Se(e,this.optionDisabled):!1}isSelected(e){let t=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(i=>Je(i,t,this.equalityKey())):Je(this.modelValue(),t,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()?.length||!this.visibleOptions()?.length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}drop(e){e&&this.onDrop.emit(e)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(t){return new(t||n)(x(Di))};static \u0275cmp=W({type:n,selectors:[["p-listbox"],["p-listBox"],["p-list-box"]],contentQueries:function(t,i,o){if(t&1&&(P(o,Ei,5),P(o,Oi,5),P(o,ds,4),P(o,hs,4),P(o,us,4),P(o,Fn,4),P(o,ps,4),P(o,_s,4),P(o,ms,4),P(o,fs,4),P(o,gs,4),P(o,bs,4),P(o,vs,4),P(o,Ri,4)),t&2){let r;k(r=T())&&(i.headerFacet=r.first),k(r=T())&&(i.footerFacet=r.first),k(r=T())&&(i.itemTemplate=r.first),k(r=T())&&(i.groupTemplate=r.first),k(r=T())&&(i.headerTemplate=r.first),k(r=T())&&(i.filterTemplate=r.first),k(r=T())&&(i.footerTemplate=r.first),k(r=T())&&(i.emptyFilterTemplate=r.first),k(r=T())&&(i.emptyTemplate=r.first),k(r=T())&&(i.filterIconTemplate=r.first),k(r=T())&&(i.checkIconTemplate=r.first),k(r=T())&&(i.checkmarkTemplate=r.first),k(r=T())&&(i.loaderTemplate=r.first),k(r=T())&&(i.templates=r)}},viewQuery:function(t,i){if(t&1&&(U(xs,5),U(Fn,5),U(ys,5),U(Cs,5),U(Is,5),U(ws,5),U(Ss,5)),t&2){let o;k(o=T())&&(i.headerCheckboxViewChild=o.first),k(o=T())&&(i.filterViewChild=o.first),k(o=T())&&(i.lastHiddenFocusableElement=o.first),k(o=T())&&(i.firstHiddenFocusableElement=o.first),k(o=T())&&(i.scroller=o.first),k(o=T())&&(i.listViewChild=o.first),k(o=T())&&(i.containerViewChild=o.first)}},inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",E],ariaLabel:"ariaLabel",selectOnFocus:[2,"selectOnFocus","selectOnFocus",E],searchLocale:[2,"searchLocale","searchLocale",E],focusOnHover:[2,"focusOnHover","focusOnHover",E],filterMessage:"filterMessage",filterFields:"filterFields",lazy:[2,"lazy","lazy",E],virtualScroll:[2,"virtualScroll","virtualScroll",E],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Le],virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:[2,"tabindex","tabindex",Le],multiple:[2,"multiple","multiple",E],style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:[2,"readonly","readonly",E],disabled:[2,"disabled","disabled",E],checkbox:[2,"checkbox","checkbox",E],filter:[2,"filter","filter",E],filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:[2,"metaKeySelection","metaKeySelection",E],dataKey:"dataKey",showToggleAll:[2,"showToggleAll","showToggleAll",E],optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:[2,"group","group",E],options:"options",filterValue:"filterValue",selectAll:"selectAll",striped:[2,"striped","striped",E],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",E],checkmark:[2,"checkmark","checkmark",E],dragdrop:[2,"dragdrop","dragdrop",E]},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange",onLazyLoad:"onLazyLoad",onDrop:"onDrop"},features:[oe([No,Pn,{provide:dt,useValue:{zIndex:1200}}]),bt],ngContentSelectors:Ts,decls:16,vars:22,consts:[["firstHiddenFocusableElement",""],["container",""],["lastHiddenFocusableElement",""],["builtInFilterElement",""],["headerchkbox",""],["icon",""],["filterInput",""],["emptyFilter",""],["empty",""],["buildInItems",""],["scroller",""],["content",""],["loader",""],["list",""],[3,"focusout","ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","tabindex"],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],["cdkDropList","",1,"p-listbox-empty-message",3,"cdkDropListData"],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"p-checkbox","p-component",3,"click","keydown","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"focus","blur","disabled"],["styleClass","p-listbox-option-check-icon",3,"ngModel","disabled","tabindex","variant","binary",4,"ngIf"],["styleClass","p-listbox-option-check-icon",3,"ngModel","disabled","tabindex","variant","binary"],[4,"ngIf"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["pInputText","","type","text","role","searchbox",1,"p-listbox-filter",3,"input","keydown","focus","blur","value","disabled","tabindex"],[3,"styleClass",4,"ngIf"],["class","p-listbox-filter-icon",4,"ngIf"],[3,"styleClass"],[1,"p-listbox-filter-icon"],[4,"ngTemplateOutlet"],["cdkDropList","",1,"p-listbox-empty-message",3,"cdkDropListDropped","cdkDropListData"],[3,"items","style","itemSize","autoSize","lazy","options","tabindex","onLazyLoad",4,"ngIf"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options","tabindex"],["role","listbox","cdkDropList","",1,"p-listbox-list",3,"focus","blur","keydown","cdkDropListDropped","tabindex","ngClass","cdkDropListData"],["ngFor","",3,"ngForOf"],["role","option","cdkDrag","",1,"p-listbox-option-group",3,"ngStyle","cdkDragData","cdkDragDisabled"],["pRipple","","role","option","cdkDrag","",1,"p-listbox-option",3,"click","dblclick","mousedown","mouseenter","touchend","ngStyle","ngClass","cdkDragData","cdkDragDisabled"],["styleClass","p-listbox-option-check-icon",3,"ngModel","readonly","disabled","tabindex","variant","binary",4,"ngIf"],["styleClass","p-listbox-option-check-icon",3,"ngModel","readonly","disabled","tabindex","variant","binary"],["styleClass","p-listbox-option-check-icon",4,"ngIf"],["styleClass","p-listbox-option-check-icon"],[1,"p-listbox-footer"]],template:function(t,i){if(t&1){let o=L();xt(ks),u(0,"div",14),y("focusout",function(a){return f(o),g(i.onFocusout(a))}),u(1,"span",15,0),y("focus",function(a){return f(o),g(i.onFirstHiddenFocus(a))}),p(),m(3,Ps,3,5,"div",16)(4,qs,5,3,"div",16),u(5,"div",17,1),m(7,Js,3,3,"div",18)(8,no,3,3,"div",18)(9,Ro,4,2),p(),m(10,Fo,3,5,"div",19)(11,Po,2,1,"span",20),u(12,"span",21),C(13),p(),u(14,"span",15,2),y("focus",function(a){return f(o),g(i.onLastHiddenFocus(a))}),p()()}t&2&&(Oe(i.styleClass),h("ngClass",i.containerClass)("ngStyle",i.style),R("id",i.id),c(),h("tabindex",i.disabled?-1:i.tabindex),R("data-p-hidden-focusable",!0),c(2),h("ngIf",i.headerFacet||i.headerTemplate||i._headerTemplate),c(),h("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),c(),Oe(i.listStyleClass),vt("max-height",i.virtualScroll?"auto":i.scrollHeight||"auto"),h("ngClass","p-listbox-list-container")("ngStyle",i.listStyle),R("tabindex",!i.disabled&&"0"),c(2),S(i.hasFilter()&&i.isEmpty()?7:!i.hasFilter()&&i.isEmpty()?8:9),c(3),h("ngIf",i.footerFacet||i.footerTemplate||i._footerTemplate),c(),h("ngIf",i.isEmpty()),c(2),G(" ",i.selectedMessageText," "),c(),h("tabindex",i.disabled?-1:i.tabindex),R("data-p-hidden-focusable",!0))},dependencies:[ae,re,si,oi,ai,ri,$i,Ki,ji,Vi,Bi,Ni,zi,Hi,Mi,Ze,mi,fi,et,Ln,Rn,On],encapsulation:2,changeDetection:0})}return n})(),Vn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=be({type:n});static \u0275inj=fe({imports:[Nn,et,et]})}return n})();var Bo=()=>({height:"calc(100vh - 100px)",position:"relative"}),Y=n=>[n],zn=n=>({in:n});function zo(n,s){if(n&1&&(u(0,"div",27),I(1,"i",30),u(2,"span",6),C(3),B(4,"translate"),p()()),n&2){let e=l(2).$implicit;c(),R("data-icon",v(4,Y,e.iconName)),c(2),V(Z(4,2,e.title))}}function jo(n,s){if(n&1&&(u(0,"span",33),C(1),B(2,"translate"),p()),n&2){let e=l(3).$implicit;h("ngClass",v(4,Y,e.labelClass)),c(),V(Z(2,2,e.label))}}function Ho(n,s){if(n&1){let e=L();u(0,"a",31),y("click",function(){f(e);let i=l(2).$implicit,o=l();return g(o.addExpandClass(i.title))}),I(1,"i",32),u(2,"span",6),C(3),B(4,"translate"),m(5,jo,3,6,"span",33),p()()}if(n&2){let e=l(2).$implicit;h("routerLink",e.class===""?v(9,Y,e.path):null)("ngClass",v(11,Y,e.class))("routerLinkActive",e.submenu.length!==0?"":"active"),c(),Oe(e.iconName),c(2),G("",Z(4,7,e.title)," "),c(2),S(e.label!==""?5:-1)}}function $o(n,s){if(n&1){let e=L();u(0,"a",36),y("click",function(){f(e);let i=l(2).$implicit,o=l(4);return g(o.addActiveClass(i.title))}),I(1,"i",37),u(2,"span",6),C(3),B(4,"translate"),p()()}if(n&2){let e=l(2).$implicit;h("routerLink",e.submenu.length>0?null:v(7,Y,e.path))("routerLinkActive",e.submenu.length>0?"":"router-link-active")("ngClass",v(9,Y,e.class)),c(),h("ngClass",v(11,Y,e.iconName)),c(2),V(Z(4,5,e.title))}}function Ko(n,s){if(n&1&&(u(0,"a",39),I(1,"i",30),u(2,"span",6),C(3),B(4,"translate"),p()()),n&2){let e=l().$implicit,t=l(3).$implicit;h("routerLink",v(6,Y,e.path))("routerLinkActive",e.submenu.length>0?"":"router-link-active"),c(),R("data-icon",v(8,Y,t.iconName)),c(2),V(Z(4,4,e.title))}}function Wo(n,s){if(n&1&&(u(0,"li",38),m(1,Ko,5,10,"a",39),p()),n&2){let e=s.$implicit;h("routerLinkActive",e.submenu.length>0?"":"active")("ngClass",v(3,Y,e.class)),c(),S(e.extralink?-1:1)}}function Uo(n,s){if(n&1&&(u(0,"ul",35),ne(1,Wo,2,5,"li",38,ie),p()),n&2){let e=l(2).$implicit,t=l(4);h("ngClass",v(1,zn,t.showSubMenu===e.title)),c(),se(e.submenu)}}function Go(n,s){if(n&1){let e=L();u(0,"li",26),y("click",function(){f(e);let i=l().$implicit,o=l(4);return g(i.submenu.length!==0?"":o.handleNotify())})("keyup.enter",function(){f(e);let i=l().$implicit,o=l(4);return g(i.submenu.length!==0?"":o.handleNotify())}),m(1,$o,5,13,"a",34)(2,Uo,3,3,"ul",35),p()}if(n&2){let e=l().$implicit,t=l(4);H("active",t.showSubMenu===e.title),h("routerLinkActive",e.submenu.length>0?"":"active"),c(),S(e.extralink?-1:1),c(),S(e.submenu.length>0?2:-1)}}function Zo(n,s){if(n&1&&m(0,Go,3,5,"li",25),n&2){let e=s.$implicit;S(e.isHidden()?-1:0)}}function qo(n,s){if(n&1&&(u(0,"ul",29),ne(1,Zo,1,1,null,null,ie),p()),n&2){let e=l(2).$implicit,t=l();h("ngClass",v(1,zn,t.showMenu===e.title)),c(),se(e.submenu)}}function Qo(n,s){if(n&1){let e=L();u(0,"li",26),y("click",function(){f(e);let i=l().$implicit,o=l();return g(i.submenu.length!==0?"":o.handleNotify())})("keyup.enter",function(){f(e);let i=l().$implicit,o=l();return g(i.submenu.length!==0?"":o.handleNotify())}),m(1,zo,5,6,"div",27)(2,Ho,6,13,"a",28)(3,qo,3,3,"ul",29),p()}if(n&2){let e=l().$implicit,t=l();H("active",t.showMenu===e.title),h("routerLinkActive",e.submenu.length?"":"active"),c(),S(e.extralink===!0?1:-1),c(),S(e.extralink?-1:2),c(),S(e.submenu.length>0?3:-1)}}function Yo(n,s){if(n&1&&m(0,Qo,4,6,"li",25),n&2){let e=s.$implicit;S(e.isHidden()?-1:0)}}var jn=(()=>{class n{handleNotify(){this.notify.emit(!this.showClass)}constructor(e,t){this.menuServise=e,this.router=t,this.showMenu="",this.showSubMenu="",this.sidebarnavItems=[],this.path="",this.userImageSrcset="assets/images/users/user1_40.jpg 40w, assets/images/users/user1_80.jpg 80w, assets/images/users/user1_160.jpg 160w",this.authService=F(hi),this.showClass=!1,this.notify=new O,this.roleService=F(ui),this.tenantBrand=N(""),this.tenantLID=N(""),this.menuServise.items.subscribe(i=>{this.sidebarnavItems=i.map(o=>this.checkRolesAndSetHidden(o,this.roleService)),this.sidebarnavItems.filter(o=>o.submenu.filter(r=>{this.router.url.startsWith(r.path)&&(this.path=o.title)})),this.addExpandClass(this.path)})}checkRolesAndSetHidden(e,t){return e.submenu=(e.submenu??[]).map(i=>this.checkRolesAndSetHidden(i,t)),e.isHidden=We(()=>e.requiredRoles?.length?!e.requiredRoles.some(i=>t.hasRole(i)):e.submenu&&e.submenu.length>0?e.submenu.every(i=>i.isHidden?.()):!1),e}addExpandClass(e){e===this.showMenu?this.showMenu="0":this.showMenu=e}addActiveClass(e){e===this.showSubMenu?this.showSubMenu="0":this.showSubMenu=e,window.scroll({top:0,left:0,behavior:"smooth"})}ngAfterViewInit(){this.tenantBrand.set(localStorage.getItem("AC_TENANT_BRAND").split("_")[0]??""),this.tenantLID.set(localStorage.getItem("AC_TENANT_LID")??"")}static{this.\u0275fac=function(t){return new(t||n)(x(Qi),x(Ce))}}static{this.\u0275cmp=W({type:n,selectors:[["app-vertical-sidebar"]],inputs:{showClass:"showClass"},outputs:{notify:"notify"},decls:39,vars:17,consts:[["op",""],[1,"sidebar-nav"],["id","sidebarnav"],["tooltipPosition","bottom",1,"sidebar-item","user-profile","py-2","m-0","mb-2",3,"pTooltip"],["href","javascript:void(0)","aria-expanded","false",1,"sidebar-link","opacity-100","gap-6","has-arrow","waves-effect","waves-dark",3,"click"],["ngSrc","assets/images/users/user1_40.jpg","loading","lazy","width","30","height","30","alt","user"],[1,"hide-menu"],["appendTo","body"],[1,"list-group",2,"min-width","200px"],["routerLink","/","aria-current","true",1,"list-group-item","list-group-item-action","border-0","rounded-0","text-dark","d-flex","align-items-center","gap-3"],[1,"fs-4","fw-semibold"],[1,"my-2"],["routerLink","/pages/profile","aria-current","true",1,"list-group-item","list-group-item-action","border-0","rounded-0","text-dark","d-flex","align-items-center","gap-3"],[1,"fa-solid","fa-user"],[1,"fs-3"],["aria-current","true",1,"list-group-item","list-group-item-action","border-0","rounded-0","text-dark","d-flex","align-items-center","gap-3",3,"href"],[1,"fa-solid","fa-angle-left","fs-3"],["type","button",1,"list-group-item","list-group-item-action","border-0","rounded-0","text-dark","d-flex","align-items-center","gap-3",3,"click"],[1,"fa-solid","fa-right-from-bracket","fs-3"],["aria-expanded","false",1,"collapse","first-level"],[1,"sidebar-item"],["href","javascript:void()",1,"sidebar-link",3,"click"],[1,"round-16","d-flex","align-items-center","justify-content-center"],["data-icon","solar:stop-circle-line-duotone",1,"iconify"],[1,"hover-scroll-panel"],["tabindex","0",1,"sidebar-item",3,"active","routerLinkActive"],["tabindex","0",1,"sidebar-item",3,"click","keyup.enter","routerLinkActive"],[1,"nav-small-cap"],[1,"sidebar-link","waves-effect","waves-dark",3,"routerLink","ngClass","routerLinkActive"],["aria-expanded","false",1,"collapse","first-level",3,"ngClass"],[1,"iconify"],[1,"sidebar-link","waves-effect","waves-dark",3,"click","routerLink","ngClass","routerLinkActive"],[1,"icon"],[3,"ngClass"],[1,"sidebar-link",3,"routerLink","routerLinkActive","ngClass"],["aria-expanded","false",1,"collapse","Second-level",3,"ngClass"],[1,"sidebar-link",3,"click","routerLink","routerLinkActive","ngClass"],[1,"",3,"ngClass"],[1,"sidebar-item",3,"routerLinkActive","ngClass"],[1,"sidebar-link",3,"routerLink","routerLinkActive"]],template:function(t,i){if(t&1){let o=L();u(0,"nav",1)(1,"ul",2)(2,"li",3),B(3,"truncate"),u(4,"a",4),y("click",function(a){f(o);let d=ve(11);return g(d.toggle(a))}),u(5,"span"),I(6,"img",5),p(),u(7,"span",6),C(8),B(9,"truncate"),p()(),u(10,"p-popover",7,0)(12,"div",8)(13,"a",9)(14,"span",10),C(15),p()(),I(16,"hr",11),u(17,"a",12),I(18,"i",13),u(19,"span",14),C(20,"My Profile"),p()(),u(21,"a",15),I(22,"i",16),u(23,"span",14),C(24,"Back To POS"),p()(),u(25,"button",17),y("click",function(){return f(o),g(i.authService.logout())}),I(26,"i",18),u(27,"span",14),C(28,"Logout"),p()()()(),u(29,"ul",19)(30,"li",20)(31,"a",21),y("click",function(){return f(o),g(i.authService.logout())}),u(32,"div",22),I(33,"i",23),p(),u(34,"span",6),C(35,"Logout"),p()()()()(),u(36,"p-scroll-panel",24),ne(37,Yo,1,1,null,null,ie),p()()()}t&2&&(c(2),H("active",i.showMenu==="user"),h("pTooltip",yt(3,10,i.tenantBrand(),15)!==i.tenantBrand()?i.tenantBrand():null),c(6),G("",yt(9,13,i.tenantBrand(),15)," "),c(7),V(i.tenantLID()),c(6),h("href",i.authService.getTenantExternalURL(),Yt),c(8),H("in",i.showMenu==="user"),c(7),Ee(xe(16,Bo)),c(),se(i.sidebarnavItems))},dependencies:[Ye,Qe,ae,re,Ie,Ue,Ge,Ai,Pi,Vn,tt,Wi,Ui,li,Zi,Gi,qi],encapsulation:2})}}return n})();var Hn=[{path:"",title:"Home",iconName:"solar:widget-4-line-duotone",class:"has-arrow",ddclass:"",extralink:!1,submenu:[{path:"/dashboard/dashboard1",title:"Minimal",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/dashboard/dashboard2",title:"Analytical",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/dashboard/dashboard3",title:"Demographical",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"",title:"Apps",iconName:"solar:palette-line-duotone",class:"has-arrow",ddclass:"two-column",extralink:!1,submenu:[{path:"/apps/mail/inbox",title:"Mail",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/chat",title:"Chat",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/todo",title:"Todo",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/notes",title:"Notes",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/users",title:"Users",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/usersrxjs",title:"Users-Rxjs",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/fullcalendar",title:"Calendar",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/taskboard",title:"Taskboard",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/contact",title:"Contact",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/contactrxjs",title:"Contact-Rxjs",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/contact-list",title:"Contact Lists",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/contact-list-rxjs",title:"Contact Lists-Rxjs",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/contact-grid",title:"Contact Grid",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/invoice",title:"Invoice",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/ticket/ticketlist",title:"Ticket List",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/ticket/ticketdetails",title:"Ticket Details",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/apps/tasks",title:"Tasks",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"",title:"UI",iconName:"solar:widget-2-line-duotone",class:"has-arrow",ddclass:"mega-dropdown",extralink:!1,submenu:[{path:"/component/accordion",title:"Accordion",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/alert",title:"Alert",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/carousel",title:"Carousel",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/dropdown",title:"Dropdown",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/modal",title:"Modal",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/pagination",title:"Pagination",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/poptool",title:"Popover & Tooltip",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/progressbar",title:"Progressbar",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/rating",title:"Ratings",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/nav",title:"Nav",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/timepicker",title:"Timepicker",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/buttons",title:"Button",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/component/notifier",title:"Notifier",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/cards/basiccards",title:"Basic Cards",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/cards/customcards",title:"Custom Cards",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/cards/weathercards",title:"Weather Cards",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/extra-component/toastr",title:"Toastr",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/extra-component/editor",title:"Editor",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/extra-component/dragndrop",title:"Drag n Drop",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/widgets/apps",title:"Widget Apps",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/widgets/data",title:"Widget Data",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"",title:"Forms",iconName:"solar:file-text-line-duotone",class:"has-arrow",ddclass:"two-column",extralink:!1,submenu:[{path:"/forms/forminputs",title:"Form Inputs",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/inputgroups",title:"Input Groups",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/inputgrid",title:"Input Grid",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/checkboxandradio",title:"Checkbox & Radio",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/multiselect",title:"Multiselect",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsl/formbasic",title:"Basic Forms",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsl/formhorizontal",title:"Horizontal Forms",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsl/formactions",title:"Form Actions",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsl/formrowseparator",title:"Row Separator",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsl/formstripedrows",title:"Striped Rows",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsl/formdetail",title:"Detail Forms",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsa/formvalidation",title:"Form Validation",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/formsa/typehead",title:"Form Typehead",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"component/datepicker",title:"Datepicker",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/forms/ngx",title:"Form Wizard / Steps",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"",title:"Tables",iconName:"solar:layers-minimalistic-line-duotone",class:"has-arrow",ddclass:"",extralink:!1,submenu:[{path:"",title:"Bootstrap Tables",iconName:"solar:stop-circle-line-duotone",class:"has-arrow",ddclass:"",extralink:!1,submenu:[{path:"/tables/basictables",title:"Basic Tables",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/tables/darktables",title:"Dark Basic Tables",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/tables/colortables",title:"Colored Tables",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/tables/tablesizing",title:"Table Sizing",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"/tables/datatable",title:"Data Tables",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/tables/ngtable",title:"Ng Tables",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"",title:"Charts",iconName:"solar:pie-chart-2-line-duotone",class:"has-arrow",ddclass:"",extralink:!1,submenu:[{path:"/charts/chartjs",title:"Chart Js",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/charts/chartistjs",title:"Chartist Js",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/charts/ngxchart",title:"Ngx Charts",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/charts/apexchart",title:"Apex Charts",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"",title:"Pages",iconName:"solar:notes-line-duotone",class:"has-arrow",ddclass:"mega-dropdown",extralink:!1,submenu:[{path:"/ecom/products",title:"Products",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/ecom/cart",title:"Cart",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/ecom/edit",title:"Edit Products",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/ecom/details",title:"Product Details",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/ecom/orders",title:"Orders",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/ecom/checkout",title:"Checkout",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/authentication/login",title:"Login",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/authentication/login2",title:"Login 2",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/authentication/signup",title:"Register",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/authentication/signup2",title:"Register 2",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/authentication/404",title:"404",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/authentication/lock",title:"Lockscreen",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/sample-pages/profile",title:"Profile",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/sample-pages/pricing",title:"Pricing",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/sample-pages/invoice",title:"Invoice",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/sample-pages/helperclasses",title:"Helper Classes",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/starter",title:"Starter Page",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/timeline/left",title:"Left Timeline",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/timeline/right",title:"Right Timeline",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/timeline/center",title:"Center Timeline",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/landingpage",title:"Landingpage",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/icons/fontawesome",title:"Fontawesome",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/icons/simpleline",title:"Simple Line Icons",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"/icons/material",title:"Material Icons",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]},{path:"",title:"DD",iconName:"solar:align-left-line-duotone",class:"has-arrow",ddclass:"",extralink:!1,submenu:[{path:"",title:"Second Level",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!0,submenu:[]},{path:"",title:"Second Child",iconName:"solar:stop-circle-line-duotone",class:"has-arrow",ddclass:"",extralink:!1,submenu:[{path:"",title:"Third 1.1",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]},{path:"",title:"Third 1.2",iconName:"solar:stop-circle-line-duotone",class:"",ddclass:"",extralink:!1,submenu:[]}]}]}];var $n=(()=>{class n{constructor(){this.collapseSidebar=!1,this.fullScreen=!1,this.MENUITEMS=Hn,this.items=new Ve(this.MENUITEMS)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var pe=n=>[n],Kn=n=>({in:n});function Jo(n,s){if(n&1&&(u(0,"div",4),C(1),B(2,"translate"),p()),n&2){let e=l().$implicit;c(),G(" ",Z(2,1,e.title)," ")}}function er(n,s){if(n&1){let e=L();u(0,"a",7),y("focus",function(){f(e);let i=l().$implicit,o=l();return g(o.addExpandClass(i.title))}),I(1,"i",8),u(2,"span",9),C(3),B(4,"translate"),p()()}if(n&2){let e=l().$implicit;h("routerLink",e.class===""?v(7,pe,e.path):null)("ngClass",v(9,pe,e.class))("routerLinkActive",e.submenu.length!==0?"":"active"),c(),R("data-icon",e.iconName),c(2),V(Z(4,5,e.title))}}function tr(n,s){if(n&1){let e=L();u(0,"a",14),y("focus",function(){f(e);let i=l().$implicit,o=l(3);return g(o.addActiveClass(i.title))}),I(1,"i",8),u(2,"span",9),C(3),B(4,"translate"),p()()}if(n&2){let e=l().$implicit;h("routerLink",e.submenu.length>0?null:v(7,pe,e.path))("routerLinkActive",e.submenu.length!==0?"":"router-link-active")("ngClass",v(9,pe,e.class)),c(),R("data-icon",e.iconName),c(2),V(Z(4,5,e.title))}}function ir(n,s){if(n&1&&(u(0,"a",16),I(1,"i",8),u(2,"span",9),C(3),B(4,"translate"),p()()),n&2){let e=l().$implicit;h("routerLinkActive",(e.submenu.length!==0,""))("routerLink",e.submenu.length>0?null:v(6,pe,e.path)),c(),R("data-icon",e.iconName),c(2),V(Z(4,4,e.title))}}function nr(n,s){if(n&1&&(u(0,"li",15),m(1,ir,5,8,"a",16),p()),n&2){let e=s.$implicit;h("ngClass",v(2,pe,e.class)),c(),S(e.extralink?-1:1)}}function sr(n,s){if(n&1&&(u(0,"ul",13),ne(1,nr,2,4,"li",15,ie),p()),n&2){let e=l().$implicit,t=l(3);h("ngClass",v(1,Kn,t.showSubMenu===e.title)),c(),se(e.submenu)}}function or(n,s){if(n&1&&(u(0,"li",11),m(1,tr,5,11,"a",12)(2,sr,3,3,"ul",13),p()),n&2){let e=s.$implicit,t=l(3);H("active",t.showSubMenu===e.title),h("routerLinkActive",e.submenu.length>0?"":"active"),c(),S(e.extralink?-1:1),c(),S(e.submenu.length>0?2:-1)}}function rr(n,s){if(n&1&&(u(0,"ul",6),ne(1,or,3,5,"li",10,ie),p()),n&2){let e=l().$implicit,t=l();h("ngClass",v(1,Kn,t.showMenu===e.title)),c(),se(e.submenu)}}function ar(n,s){if(n&1&&(u(0,"li",3),m(1,Jo,3,3,"div",4)(2,er,5,11,"a",5)(3,rr,3,3,"ul",6),p()),n&2){let e=s.$implicit,t=l();H("active",t.showMenu===e.title),h("ngClass",v(7,pe,e.ddclass))("routerLinkActive",e.submenu.length!==0?"":"active"),c(),S(e.extralink===!0?1:-1),c(),S(e.extralink?-1:2),c(),S(e.submenu.length>0?3:-1)}}var Wn=(()=>{class n{constructor(e,t){this.menuServise=e,this.router=t,this.showMenu="",this.showSubMenu="",this.sidebarnavItems=[],this.path="",this.menuServise.items.subscribe(i=>{this.sidebarnavItems=i,this.sidebarnavItems.filter(o=>o.submenu.filter(r=>{r.path===this.router.url&&(this.path=o.title)})),this.addExpandClass(this.path)})}addExpandClass(e){e===this.showMenu?this.showMenu=e:this.showMenu=e}addActiveClass(e){e===this.showSubMenu?this.showSubMenu=e:this.showSubMenu=e,window.scroll({top:0,left:0,behavior:"smooth"})}static{this.\u0275fac=function(t){return new(t||n)(x($n),x(Ce))}}static{this.\u0275cmp=W({type:n,selectors:[["app-horizontal-sidebar"]],decls:4,vars:0,consts:[[1,"sidebar-nav"],["id","sidebarnav"],[1,"sidebar-item",3,"ngClass","active","routerLinkActive"],[1,"sidebar-item",3,"ngClass","routerLinkActive"],[1,"nav-small-cap"],[1,"sidebar-link","waves-effect","waves-dark",3,"routerLink","ngClass","routerLinkActive"],["aria-expanded","false",1,"collapse","first-level",3,"ngClass"],[1,"sidebar-link","waves-effect","waves-dark",3,"focus","routerLink","ngClass","routerLinkActive"],[1,"iconify"],[1,"hide-menu"],[1,"sidebar-item",3,"active","routerLinkActive"],[1,"sidebar-item",3,"routerLinkActive"],[1,"sidebar-link",3,"routerLink","routerLinkActive","ngClass"],["aria-expanded","false",1,"collapse","second-level",3,"ngClass"],[1,"sidebar-link",3,"focus","routerLink","routerLinkActive","ngClass"],[1,"sidebar-item",3,"ngClass"],[1,"sidebar-link",3,"routerLinkActive","routerLink"]],template:function(t,i){t&1&&(u(0,"nav",0)(1,"ul",1),ne(2,ar,4,9,"li",2,ie),p()()),t&2&&(c(2),se(i.sidebarnavItems))},dependencies:[Ye,Qe,ae,re,Ie,Ue,Ge],encapsulation:2})}}return n})();var lr=["mainWrapper"],cr=n=>({"show-sidebar":n});function dr(n,s){n&1&&(u(0,"div"),I(1,"app-horizontal-sidebar"),p())}function hr(n,s){if(n&1){let e=L();u(0,"app-vertical-sidebar",10),y("notify",function(i){f(e);let o=l();return g(o.handleClick(i))}),p()}if(n&2){let e=l();h("showClass",e.showMobileMenu)}}function ur(n,s){n&1&&I(0,"i",6)}function pr(n,s){n&1&&I(0,"i",7)}function _r(n,s){if(n&1){let e=L();u(0,"div",11)(1,"h4",12),C(2,"Settings"),p(),u(3,"button",13),y("click",function(){let i=f(e).$implicit;return g(i.dismiss("Cross click"))}),p()(),I(4,"div",14)}}var fl=(()=>{class n{constructor(e,t){this.router=e,this.activatedRoute=t,this.cdr=F(ye),this.store=F(Yi),this.renderer=F(Jt),this.brandName=N(""),this.injector=F(He),this.offcanvasService=F(yi),this.closeResult="",this.themeOptions=Ji,this.isCollapsed=!1,this.showSettings=!1,this.showMobileMenu=!1,this.expandLogo=!1}openEnd(e){this.offcanvasService.open(e,{position:"end"})}open(e){this.offcanvasService.open(e,{ariaLabelledBy:"offcanvas-basic-title"}).result.then(t=>{this.closeResult=`Closed with: ${t}`},t=>{this.closeResult=`Dismissed ${this.getDismissReason(t)}`})}getDismissReason(e){switch(e){case Ct.ESC:return"by pressing ESC";case Ct.BACKDROP_CLICK:return"by clicking on the backdrop";default:return`with: ${e}`}}Logo(){this.expandLogo=!this.expandLogo}ngOnInit(){this.router.url==="/"&&this.router.navigate(["/dashboard/dashboard1"]),this.defaultSidebar=this.store.themeOptions().sidebartype,this.handleSidebar(),document.body.setAttribute("data-bs-theme",this.store.themeOptions().theme)}onResize(){this.handleSidebar()}handleSidebar(){switch(this.innerWidth=window.innerWidth,this.store.updateSidebarType(),this.defaultSidebar){case"full":this.innerWidth<1024?this.store.updateSidebarType():this.store.updateSidebarType();break;default:}}toggleSidebarType(){this.store.updateSidebarType()}handleClick(e){this.showMobileMenu=e}ngAfterViewInit(){this.updateAttributes(),pi(this.store.themeOptions,{injector:this.injector}).pipe(je(()=>this.updateAttributes())).subscribe(),this.brandName.set(localStorage.getItem("AUTH_USERNAME")||"")}updateAttributes(){let e=this.store.themeOptions();this.renderer.setAttribute(this.mainWrapper.nativeElement,"dir",e.dir),this.renderer.setAttribute(this.mainWrapper.nativeElement,"data-bs-theme",e.theme),this.renderer.setAttribute(this.mainWrapper.nativeElement,"data-layout",e.layout),this.renderer.setAttribute(this.mainWrapper.nativeElement,"data-sidebartype",e.sidebartype),this.renderer.setAttribute(this.mainWrapper.nativeElement,"data-boxed-layout",e.boxed),this.renderer.setAttribute(this.mainWrapper.nativeElement,"data-colorTheme",e.colorTheme),this.renderer.setAttribute(this.mainWrapper.nativeElement,"data-cardType",e.cardType)}static{this.\u0275fac=function(t){return new(t||n)(x(Ce),x(ci))}}static{this.\u0275cmp=W({type:n,selectors:[["app-full-layout"]],viewQuery:function(t,i){if(t&1&&U(lr,5,te),t&2){let o;k(o=T())&&(i.mainWrapper=o.first)}},hostBindings:function(t,i){t&1&&y("resize",function(r){return i.onResize(r)},!1,Xt)},features:[oe([])],decls:13,vars:5,consts:[["mainWrapper",""],["content",""],["id","main-wrapper",3,"ngClass"],[1,"left-sidebar",3,"focus","blur"],[3,"showClass"],["id","burger-menu","tabindex","0",3,"click","keydown"],[1,"fa-solid","fa-angle-left"],[1,"fa-solid","fa-angle-right"],[1,"page-wrapper"],[1,"h-100"],[3,"notify","showClass"],[1,"offcanvas-header","border-bottom"],["id","offcanvas-basic-title",1,"offcanvas-title"],["type","button","aria-label","Close",1,"btn-close","shadow-none",3,"click"],[1,"offcanvas-body","customizer","p-0"]],template:function(t,i){if(t&1){let o=L();u(0,"div",2,0)(2,"aside",3),y("focus",function(){return f(o),g(i.Logo())})("blur",function(){return f(o),g(i.Logo())}),m(3,dr,2,0,"div")(4,hr,1,1,"app-vertical-sidebar",4),u(5,"div",5),y("click",function(){return f(o),g(i.store.updateSidebarType())})("keydown",function(){return f(o),g(i.store.updateSidebarType())}),m(6,ur,1,0,"i",6)(7,pr,1,0,"i",7),p()(),u(8,"div",8)(9,"div",9),I(10,"router-outlet"),p()(),m(11,_r,5,0,"ng-template",null,1,ee),p()}t&2&&(h("ngClass",v(3,cr,i.showMobileMenu)),c(3),S(i.store.themeOptions().layout==="horizontal"?3:4),c(3),S(i.store.themeOptions().sidebartype==="full"?6:7))},dependencies:[Ie,di,jn,Wn,Ci,xi,Ze,gi,ae,re,bi,vi,tt],styles:["input[type=checkbox][_ngcontent-%COMP%]:checked ~ a[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .3s ease}label[for=check][_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;border:1px solid #000;display:flex;justify-content:center;align-items:center;position:absolute;top:0;right:-5%;transform:translateY(80%)}label[for=check][_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transition:.4s cubic-bezier(.68,-.6,.32,1.6);font-size:.6rem}label[for=check][_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}label[for=check][_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transform:rotate(180deg)}"]})}}return n})();export{fl as FullComponent};