dealposbooks 5.43.0 → 5.43.2
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.
- package/{chunk-Q6NOUY4Z.js → chunk-5QKCUI7M.js} +1 -1
- package/{chunk-O5EVYQVN.js → chunk-5TF7YHMI.js} +1 -1
- package/{chunk-DG63C6O3.js → chunk-5VXLWX4K.js} +1 -1
- package/{chunk-7PDMDNJK.js → chunk-62K4JEOY.js} +1 -1
- package/{chunk-X4KTMWVO.js → chunk-6O5EWYT7.js} +1 -1
- package/{chunk-4FPYSVLT.js → chunk-6XT4TD5A.js} +1 -1
- package/{chunk-MDMGBODU.js → chunk-6YJVOMOB.js} +1 -1
- package/{chunk-WLKS6LBU.js → chunk-7COI2POD.js} +1 -1
- package/{chunk-VTMQTY2F.js → chunk-7EIBD6QJ.js} +1 -1
- package/{chunk-MJJXITD5.js → chunk-7GIBHGH4.js} +1 -1
- package/chunk-AF357XP4.js +1 -0
- package/{chunk-CX3TZ3F3.js → chunk-BUYRVZ5Z.js} +1 -1
- package/{chunk-2DSX3KAL.js → chunk-BWJHODYX.js} +2 -2
- package/chunk-CIVJWHAU.js +202 -0
- package/{chunk-UYGD5VP2.js → chunk-DQQKEX6Z.js} +1 -1
- package/{chunk-AUWCRG4B.js → chunk-DXRSED76.js} +1 -1
- package/{chunk-3MDAGJGX.js → chunk-EQ7DUTAS.js} +1 -1
- package/{chunk-KBXNDYNF.js → chunk-ESHOCSRS.js} +1 -1
- package/chunk-FDBRUAV5.js +1 -0
- package/chunk-FEV4P4DL.js +7 -0
- package/{chunk-ROJ6NA2I.js → chunk-GQI7GXAK.js} +1 -1
- package/{chunk-Q2RQ5PCS.js → chunk-GZRKRXV7.js} +1 -1
- package/chunk-HW2B6ZTB.js +129 -0
- package/{chunk-3XWJYJ4W.js → chunk-I7G575WF.js} +1 -1
- package/{chunk-HEX727RH.js → chunk-IYO6P6XI.js} +1 -1
- package/{chunk-EOT2WEXN.js → chunk-JUCJGYST.js} +1 -1
- package/{chunk-PNDE7M5T.js → chunk-LCZ3RU6J.js} +1 -1
- package/{chunk-MWKQV6FL.js → chunk-MERIFED5.js} +1 -1
- package/{chunk-FFBH7KYD.js → chunk-N3CCHUQK.js} +1 -1
- package/{chunk-4TSB6554.js → chunk-N72GOCDS.js} +2 -2
- package/{chunk-JRH7ZWIT.js → chunk-OB7IGUCM.js} +1 -1
- package/{chunk-O6C3N77O.js → chunk-ONN4TIOR.js} +1 -1
- package/{chunk-MGTSVSFN.js → chunk-OZ4T5P3A.js} +1 -1
- package/{chunk-4JVYK7DR.js → chunk-P2BR2DYT.js} +1 -1
- package/{chunk-6MOKBNZ6.js → chunk-PBMTWCM7.js} +1 -1
- package/{chunk-BJ4RON42.js → chunk-PPKCZMH4.js} +1 -1
- package/{chunk-6EDSP2AA.js → chunk-PZAVQQFP.js} +12 -12
- package/{chunk-J2LCCQ6P.js → chunk-RIAHEVKE.js} +1 -1
- package/{chunk-B4JW5G5L.js → chunk-RJSTA3LD.js} +1 -1
- package/{chunk-J7XLDEPN.js → chunk-RZVVQ2WV.js} +1 -1
- package/{chunk-VNUZJSHB.js → chunk-SJCXXNYW.js} +1 -1
- package/{chunk-WPQGYVNT.js → chunk-SVHOGUGR.js} +1 -1
- package/{chunk-X6D7ZE6G.js → chunk-TLGBF4OA.js} +1 -1
- package/chunk-TNMWSTYV.js +1 -0
- package/chunk-TRUGVHVM.js +1 -0
- package/chunk-TUX7WEBX.js +2 -0
- package/{chunk-6WBZACEK.js → chunk-VF3ARYUC.js} +1 -1
- package/{chunk-7R6GFW7F.js → chunk-VHKLRJNY.js} +1 -1
- package/{chunk-KLKIEREL.js → chunk-VPQDUC77.js} +1 -1
- package/{chunk-HVXMIONQ.js → chunk-WAIG32DS.js} +1 -1
- package/{chunk-5CI4POVW.js → chunk-XA75ROED.js} +1 -1
- package/{chunk-SUKZ6XS4.js → chunk-XFMPZEYT.js} +1 -1
- package/{chunk-XYU7C523.js → chunk-XIKOS3R2.js} +1 -1
- package/chunk-XIUI7VXN.js +160 -0
- package/{chunk-M3WCSF6D.js → chunk-XMHQMMFC.js} +1 -1
- package/{chunk-NDWYDOFG.js → chunk-YQGBYYHV.js} +1 -1
- package/{chunk-EM4HKTKQ.js → chunk-ZE2UEAPO.js} +1 -1
- package/{chunk-LT3ZB5UZ.js → chunk-ZJ2QSE55.js} +1 -1
- package/index.html +2 -2
- package/{main-2JJLKGIJ.js → main-3LQSSUNF.js} +1 -1
- package/package.json +1 -1
- package/chunk-23R63A5E.js +0 -1
- package/chunk-3TIJYNSV.js +0 -2
- package/chunk-6JKCYLO5.js +0 -202
- package/chunk-GKFRKDT6.js +0 -7
- package/chunk-IY4CV424.js +0 -1
- package/chunk-ORLKNWW4.js +0 -1
- package/chunk-SVFKNAYN.js +0 -160
- package/chunk-UCCAYD3A.js +0 -129
- package/chunk-ZIEHNLX3.js +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{a as st}from"./chunk-SMZ363LC.js";import{a as we,b as De}from"./chunk-BUYRVZ5Z.js";import{a as Se}from"./chunk-ZE2UEAPO.js";import{a as qt,b as ae}from"./chunk-OB7IGUCM.js";import{b as Ut,c as pt,d as mt}from"./chunk-IYO6P6XI.js";import{a as se,b as ce}from"./chunk-PPKCZMH4.js";import"./chunk-CNXEJBY5.js";import{b as at}from"./chunk-MPHY6FVN.js";import"./chunk-NMSYINDE.js";import{a as ie}from"./chunk-AF357XP4.js";import"./chunk-7COI2POD.js";import{a as Ee,b as Ie}from"./chunk-NHZLS6JU.js";import{a as ot,b as rt,d as pe,k as me}from"./chunk-VPQDUC77.js";import{a as re,b as le}from"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as lt}from"./chunk-5QKCUI7M.js";import{a as ke}from"./chunk-KXE3J4PK.js";import{b as ye}from"./chunk-E3QNEH3B.js";import"./chunk-JUCJGYST.js";import{a as Ht,b as Te}from"./chunk-6O5EWYT7.js";import"./chunk-I7ILLTFH.js";import"./chunk-2LQVI4EI.js";import"./chunk-SPKOXGSS.js";import{d as $e}from"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{b as oe}from"./chunk-WXT6EZ2V.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import{e as it,f as nt,h as ne}from"./chunk-5TF7YHMI.js";import{b as jt,c as zt}from"./chunk-L3PZS6EL.js";import{a as Xe,b as te}from"./chunk-5JV52UYK.js";import{a as O,b as Je,c as Qe,d as Ze,e as et,f as tt}from"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{n as Ke,o as Ye,w as Z,x as ee}from"./chunk-7FFMPB6T.js";import{b as ve}from"./chunk-UKBDY33R.js";import{b as We,c as Pt,e as K,f as Y,g as Ot,i as dt,k as $,l as X,o as J,u as Ce,x as Q}from"./chunk-72LNXEXV.js";import{b as He,e as U,l as W}from"./chunk-EFDD6Q3K.js";import{a as Gt,b as be}from"./chunk-XMHQMMFC.js";import{a as Ue}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{h as ze,k as z,p as qe,q,s as H,y as Bt,z as At}from"./chunk-SB5MSLCX.js";import{$b as D,Ac as ct,Bc as de,Cc as Oe,D as Be,Db as x,Dc as F,Ec as V,Fc as Nt,Gc as je,Ha as E,Lb as s,Nc as C,Ob as Ae,Oc as y,Pc as Me,Qb as M,Rb as Re,Rc as _,Tb as Fe,Ub as Ve,Vb as o,W as Ft,Wb as r,X as Vt,Xb as T,Y as xe,Yb as Ge,Zb as Pe,_ as L,bd as R,c as ge,ca as Lt,cb as j,cd as ue,db as he,ec as I,fc as c,hb as p,ia as S,ic as Mt,qa as h,ra as b,rc as l,s as Ne,sc as f,tc as w,uc as Le,wc as A,xb as N,xc as B,yc as P,zc as kt}from"./chunk-6K5LNQ4J.js";import{a as g,b as v,c as fe,e as Rt}from"./chunk-YQFG5XE2.js";var G=(()=>{class t{constructor(){this.httpService=S(Gt),this.authService=S(Se)}fetchGeneralLedgerLoader(e="single",n={}){return this.httpService.get(void 0,`api/GeneralLedgerLoader/${e==="single"?"GetFilterSingle":"GetFilter"}`,{params:n})}getGLCount(e){return this.httpService.post(void 0,"api/GeneralLedger/GetSingleCount",e)}fetchGeneralLedgerReport(e,n="single"){return this.httpService.post(void 0,`api/GeneralLedger/${n==="single"?"GetSingle":"Get"}`,e)}exportGeneralLedger(e,n={}){let i=g({responseType:"blob"},n);return this.httpService.post(void 0,"/api/GeneralLedgerExport/GetGeneralLedgerExport",e,i)}getCustomerSuggestions(e){let n={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:n})}getSupplierSuggestions(e){let n={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:n})}getCashierSuggestions(e){let n={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/api/ac/GetUserSuggestion",{params:n})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(e,n={}){let i=new At({fromObject:Object.fromEntries(Object.entries(e).map(([d,k])=>[d,String(k)]))}),a=new Bt({"X-Timeout":"50000","X-Retry":"3","X-Retry-Delay":"2000","X-Exponential-Backoff":"true","X-Retry-On-500":"true","X-Retry-On-500-Message":"timeout expired"}),u=g({params:i,headers:a},n);return this.httpService.get(void 0,"/api/BalanceSheet",u)}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(e,n={}){return this.httpService.post(void 0,"api/IncomeStatement/List",g({},e),n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=Lt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ri=()=>({width:"30vw"}),li=()=>({"1199px":"75vw","575px":"90vw"}),ai=t=>({"ng-dirty ng-invalid":t}),pi=t=>["/pages/journal/journal-entry/",t],mi=t=>({"text-success":t}),si=t=>({"text-danger":t});function ci(t,m){if(t&1&&(o(0,"div",33)(1,"div",34)(2,"span",35),l(3),r()(),o(4,"div")(5,"span"),l(6,"-"),r()(),o(7,"div",34)(8,"span",36),l(9),r()()()),t&2){let e=m.$implicit;p(3),w("(",e.code,")"),p(6),f(e.name)}}function di(t,m){if(t&1&&(o(0,"div",33)(1,"div",34)(2,"span",35),l(3),r()(),o(4,"div")(5,"span"),l(6,"-"),r()(),o(7,"div",34)(8,"span",36),l(9),r()()()),t&2){let e=m.$implicit;p(3),w("(",e.code,")"),p(6),f(e.name)}}function ui(t,m){t&1&&(o(0,"div",37),l(1," Account is required. "),r())}function _i(t,m){if(t&1&&(o(0,"div",38)(1,"div"),l(2),r()()),t&2){let e=m.$implicit;p(2),f(e.value)}}function fi(t,m){if(t&1&&(o(0,"div",26)(1,"div",27),T(2,"p-radiobutton",39),o(3,"label",40),l(4),r()()()),t&2){let e=m.$implicit;p(2),s("value",e.key)("inputId",e.key),p(),s("for",e.key),p(),f(e.value)}}function gi(t,m){if(t&1){let e=D();o(0,"div",16)(1,"label",17),l(2,"Customer"),r(),o(3,"p-autocomplete",41),I("completeMethod",function(i){h(e);let a=c(3);return b(a.searchCustomer(i))}),r()()}if(t&2){let e=c(3);p(3),s("suggestions",e.customerSuggestions())}}function xi(t,m){if(t&1){let e=D();o(0,"div",16)(1,"label",17),l(2,"Supplier"),r(),o(3,"p-autocomplete",42),I("completeMethod",function(i){h(e);let a=c(3);return b(a.searchSupplier(i))}),r()()}if(t&2){let e=c(3);p(3),s("suggestions",e.supplierSuggestions())}}function hi(t,m){if(t&1){let e=D();o(0,"div",16)(1,"label",17),l(2,"Customer"),r(),o(3,"p-autocomplete",41),I("completeMethod",function(i){h(e);let a=c(3);return b(a.searchCustomer(i))}),r()()}if(t&2){let e=c(3);p(3),s("suggestions",e.customerSuggestions())}}function bi(t,m){if(t&1&&(o(0,"form",15)(1,"div",16)(2,"label",17),l(3,"Accounts"),r(),o(4,"p-select",18),x(5,ci,10,2,"ng-template",null,5,_)(7,di,10,2,"ng-template",null,6,_),r(),x(9,ui,2,0,"div",19),r(),o(10,"div",16)(11,"label",17),l(12,"From"),r(),o(13,"div",20),T(14,"p-datepicker",21)(15,"p-datepicker",22),r()(),o(16,"div",16)(17,"label",17),l(18,"Outlets"),r(),o(19,"p-multiselect",23),x(20,_i,3,1,"ng-template",null,6,_),r()(),o(22,"div",16)(23,"label",24),l(24,"Contact Type"),r(),o(25,"div",25),Fe(26,fi,5,4,"div",26,Re),r()(),x(28,gi,4,1,"div",16)(29,xi,4,1,"div",16)(30,hi,4,1,"div",16),o(31,"div",16)(32,"label",24),l(33,"Sort order"),r(),o(34,"div",25)(35,"div",26)(36,"div",27),T(37,"p-radiobutton",28),o(38,"label",29),l(39,"Asc"),r()()(),o(40,"div",30)(41,"div",27),T(42,"p-radiobutton",31),o(43,"label",32),l(44,"Desc"),r()()()()()()),t&2){let e,n,i,a=c(2);s("formGroup",a.form),p(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",a.loaderMetadata().options.accounts)("ngClass",V(14,ai,((e=a.form.get("accountID"))==null?null:e.invalid)&&(((e=a.form.get("accountID"))==null?null:e.touched)||((e=a.form.get("accountID"))==null?null:e.dirty)))),p(5),s("ngIf",((n=a.form.get("accountID"))==null?null:n.invalid)&&(((n=a.form.get("accountID"))==null?null:n.touched)||((n=a.form.get("accountID"))==null?null:n.dirty))),p(5),s("showIcon",!0),p(),s("showIcon",!0),p(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",a.loaderMetadata().options.outlets),p(7),Ve(a.loaderMetadata().options.contactTypeOptions),p(2),M((i=a.form.controls.contactType.value)===1?28:i===2?29:30),p(9),s("value",!0),p(5),s("value",!1)}}function Si(t,m){if(t&1&&x(0,bi,45,16,"form",14),t&2){let e=c();s("ngIf",e.loaderMetadata())}}function Ci(t,m){if(t&1){let e=D();o(0,"p-button",45),I("onClick",function(){h(e);let i=c(2);return b(i.onToggleExportDialog())}),r()}}function vi(t,m){if(t&1&&(o(0,"div",33)(1,"a",43),l(2,"Return to Accounts"),r(),x(3,Ci,1,0,"p-button",44),r()),t&2){let e=c();p(3),s("ngIf",e.roleService.global().export)}}function yi(t,m){t&1&&T(0,"div",52)}function Ei(t,m){t&1&&(o(0,"tr")(1,"th",53),l(2,"Outlet"),r(),o(3,"th",53),l(4,"No."),r(),o(5,"th",53),l(6,"Date"),r(),o(7,"th"),l(8,"Contact / Note"),r(),o(9,"th",54),l(10,"Debit"),r(),o(11,"th",54),l(12,"Credit"),r(),o(13,"th",55),l(14,"Balance"),r()())}function Ii(t,m){if(t&1&&(o(0,"div",16)(1,"a",59),l(2),r(),T(3,"div",63),o(4,"span",64),l(5),r()()),t&2){let e=c().$implicit,n=c(3);p(),s("href",n.authService.getTenantExternalURL()+n.buildReferenceUrl(e),he),p(),f(e.referenceText),p(),s("innerHTML",e.journalNote,j),p(2),w("",e.note," ")}}function Ti(t,m){if(t&1&&(o(0,"div",16),T(1,"span",63)(2,"div",63),o(3,"span",65),l(4),r()()),t&2){let e=c().$implicit;p(),s("innerHTML",e.referenceText,j),p(),s("innerHTML",e.journalNote,j),p(2),w("",e.note," ")}}function wi(t,m){if(t&1&&(Ge(0),l(1),C(2,"number"),Pe()),t&2){let e=c().$implicit;p(),w(" ",y(2,1,e.debitAmount)," ")}}function Di(t,m){if(t&1&&(Ge(0),l(1),C(2,"number"),Pe()),t&2){let e=c().$implicit;p(),w(" ",y(2,1,e.creditAmount)," ")}}function Ri(t,m){if(t&1&&(Ge(0),l(1),C(2,"number"),Pe()),t&2){let e=c().$implicit;p(),w(" ",y(2,1,e.balance)," ")}}function Fi(t,m){if(t&1&&(o(0,"tr")(1,"td",56),l(2),r(),o(3,"td",56)(4,"a",57),l(5),r()(),o(6,"td",56)(7,"span",58),C(8,"date"),l(9),C(10,"date"),r()(),o(11,"td",56)(12,"div",16)(13,"a",59),l(14),r(),x(15,Ii,6,4,"div",16)(16,Ti,5,3,"div",16),r()(),o(17,"td",60),x(18,wi,3,3,"ng-container",61),r(),o(19,"td",60),x(20,Di,3,3,"ng-container",61),r(),o(21,"td",62),x(22,Ri,3,3,"ng-container",61),r()()),t&2){let e=m.$implicit,n=c(3);p(2),f(e.outletName),p(2),s("routerLink",V(19,pi,e.id)),p(),f(e.number),p(2),s("pTooltip",Me(8,13,e.date,"dd MMM y")),p(2),w(" ",Me(10,16,e.date,"dd MMM y")," "),p(4),s("href",n.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,he),p(),f(e.contactName),p(),M(n.buildReferenceUrl(e)?15:16),p(2),s("ngClass",V(21,mi,e.debitAmount!==0)),p(),s("ngIf",e.debitAmount!==0),p(),s("ngClass",V(23,si,e.creditAmount!==0)),p(),s("ngIf",e.creditAmount!==0),p(2),s("ngIf",e.balance!==0)}}function Vi(t,m){if(t&1&&(o(0,"tr"),T(1,"td",66),o(2,"td",67),l(3,"Total"),r(),o(4,"td",68),l(5),C(6,"number"),r(),o(7,"td",69),l(8),C(9,"number"),r(),T(10,"td"),r()),t&2){let e=c(3);p(5),w(" ",y(6,2,e.debitSubTotal())," "),p(3),w(" ",y(9,4,e.creditSubTotal())," ")}}function Li(t,m){t&1&&(o(0,"tr")(1,"td",70)(2,"span"),l(3,"No records found."),r()()())}function Mi(t,m){if(t&1){let e=D();o(0,"button",71),I("click",function(){h(e);let i=c(3);return b(i.getGLCount())})("keyup.enter",function(){h(e);let i=c(3);return b(i.getGLCount())}),r()}}function ki(t,m){if(t&1&&l(0),t&2){let e=c(3);w(" ",e.count()," ")}}function Ni(t,m){if(t&1){let e=D();o(0,"p-button",72),I("onClick",function(){h(e);let i=c(3);return b(i.onNextPage())}),r()}}function Bi(t,m){if(t&1&&(o(0,"div",47)(1,"p-table",48),x(2,yi,1,0,"ng-template",null,7,_)(4,Ei,15,0,"ng-template",null,8,_)(6,Fi,23,25,"ng-template",null,9,_)(8,Vi,11,6,"ng-template",null,4,_)(10,Li,4,0,"ng-template",null,10,_),r(),o(12,"div",49)(13,"div"),l(14),x(15,Mi,1,0,"button",50)(16,ki,1,1),l(17," entries "),r(),o(18,"div",33),x(19,Ni,1,0,"p-button",51),r()()()),t&2){let e=c(2);p(),s("value",e.items().data.data),p(13),Le(" Showing ",e.pagination().first," to ",e.pagination().end," of "),p(),M(e.totalRecords()===-1?15:16),p(4),M(e.pagination().hasNext?19:-1)}}function Ai(t,m){if(t&1&&x(0,Bi,20,5,"div",46),t&2){let e=c();s("ngIf",e.items()&&e.items().data)}}function Gi(t,m){if(t&1&&(o(0,"div",73)(1,"div",74)(2,"div",75)(3,"div",25)(4,"div",76)(5,"label",24),l(6,"Page"),r()(),o(7,"div",76),T(8,"input",77),r()()()(),o(9,"div",78)(10,"div",27),T(11,"i",79),o(12,"span",80),l(13),C(14,"number"),C(15,"number"),r()()()()),t&2){let e=c();p(),s("formGroup",e.form),p(12),Le("Exporting data from ",y(14,3,e.filter().exportPageNumber)," - ",y(15,5,e.filter().exportPageSize),"")}}function Pi(t,m){if(t&1){let e=D();o(0,"p-button",81),I("onClick",function(){h(e);let i=c();return b(i.onToggleExportDialog())}),r()}t&2&&s("rounded",!0)("text",!0)}function Oi(t,m){if(t&1){let e=D();o(0,"p-button",82),I("click",function(){h(e);let i=c();return b(i.onToggleExportDialog())}),r(),o(1,"p-button",83),I("click",function(){h(e);let i=c();return b(i.onExport())}),r()}}var Kt=(()=>{class t{getGLCount(){this.reportService.getGLCount(this.filter()).pipe(L(({count:e})=>{this.totalRecords.set(e)})).subscribe()}onToggleExportDialog(){this.isDialogExportVisible.update(e=>!e)}get pageTitle(){return this.items()&&this.items().pageTitle?this.items().pageTitle:"General Ledger"}constructor(){this.reportService=S(G),this.route=S(He),this.roleService=S(ie),this.authService=S(Se),this.fb=S(Ce),this.coaService=S(lt),this.toastr=S(Ue),this.dayjsService=S(ae),this.metadata=E(null),this.items=E(null),this.totalRecords=E(-1),this.dialogFilterVisible=E(!0),this.initDialogVisible=E(!1),this.isDialogExportVisible=E(!1),this.customerSuggestions=E([]),this.supplierSuggestions=E([]),this.categoriesOptions=E([]),this.localFilter=E({}),this.count=R(()=>this.totalRecords()<0?1/0:this.totalRecords()),this.lastGetDataLength=E(0),this.pagination=R(()=>{let e=this.filter(),n=this.totalRecords()!=null&&this.totalRecords()>=0?this.totalRecords():1/0,i=this.items()?.data?.data?.length||0,a=i==n||this.lastGetDataLength()<e.pageSize;return{first:1,end:e.pageSize>0?i:0,total:n,page:e.pageNumber,pageSize:e.pageSize,hasPrev:e.pageNumber>1,hasNext:!a}}),this.queryFilter=ve(this.route.queryParamMap.pipe(Ne(e=>{let n=e.get("from")?this.dayjsService.format(new Date(e.get("from"))):null,i=e.get("to")?this.dayjsService.format(new Date(e.get("to"))):null,a={},u=e.get("id");return be.IsNotEmpty(u)&&(a=v(g({},a),{accountID:u})),be.IsNotEmpty(n)&&be.IsNotEmpty(i)&&(a=v(g({},a),{from:n,to:i})),a})),{initialValue:null}),this.loaderMetadata=ve(this.reportService.fetchGeneralLedgerLoader("single",this.queryFilter()),{initialValue:null}),this.baseFilter=R(()=>{let e=this.loaderMetadata();return e?e.filter:null}),this.exportFileTypes=E([{key:0,value:"CSV"},{key:1,value:"Excel"}]),this.filter=R(()=>{let e=this.baseFilter(),n=this.localFilter();return e?g(g({},e),n):null}),this.creditSubTotal=R(()=>(this.items()?.data?.data??[]).reduce((n,i)=>n+(Number(i.creditAmount)||0),0)),this.debitSubTotal=R(()=>(this.items()?.data?.data??[]).reduce((n,i)=>n+(Number(i.debitAmount)||0),0)),this.initializeForm(),ue(()=>{let e=this.filter();e&&(be.IsEmpty(this.form.value.accountID)||this.form.value.accountID!==e.accountID)&&this.form.patchValue(this.transformFilterToFormValue(e),{emitEvent:!1})}),ue(()=>{let e=this.filter(),n=this.form.value.accountID;!e||be.IsEmpty(n)||this.reportService.fetchGeneralLedgerReport(e).subscribe(i=>{this.lastGetDataLength.set(i.data?.data?.length),this.items.update(a=>e.pageNumber===1?i:v(g({},i),{data:v(g({},i.data),{data:[...a?.data.data??[],...i.data.data]})}))})})}buildReferenceUrl(e){return st(e)}ngOnInit(){this.route.queryParamMap.pipe(Be(e=>e.keys.length>0)).subscribe({next:()=>this.initDialogVisible.set(!0)})}initializeForm(){this.form=this.fb.group({accountID:this.fb.control(null,[Pt.required]),from:this.fb.control(null),to:this.fb.control(new Date),contactType:this.fb.control(null),contactID:this.fb.control(""),listOutletID:this.fb.control([]),pageNumber:this.fb.control(1),pageSize:this.fb.control(50),sortAscending:this.fb.control(!0),listAccountID:this.fb.control([]),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportPageSize:this.fb.control(0)})}findNodeByKey(e,n){for(let i of e){if(i.key===n)return i;if(i.children){let a=this.findNodeByKey(i.children,n);if(a)return a}}return null}transformFilterToFormValue(e){return Object.entries(e).reduce((n,[i,a])=>{switch(i){case"from":n[i]=a&&(typeof a=="string"||typeof a=="number"||a instanceof Date)?this.dayjsService.from(a)?.toDate():null;break;case"to":n[i]=a&&(typeof a=="string"||typeof a=="number"||a instanceof Date)?this.dayjsService.from(a)?.toDate():this.dayjsService.now.toDate();break;case"listCategoryID":Array.isArray(a)?n[i]=a.map(u=>this.findNodeByKey(this.categoriesOptions(),u)).filter(u=>!!u):n[i]=[];break;case"listOutletID":case"listAccountID":n[i]=Array.isArray(a)?a:[];break;case"pageNumber":case"pageSize":case"exportPageNumber":case"exportPageSize":n[i]=a!=null?Number(a):0;break;case"sortAscending":case"export":n[i]=!!a;break;case"contactType":n[i]=a!=null?Number(a):null;break;default:n[i]=a}return n},{})}clearContactValueOnContactTypeChange(){this.form.get("contactType")?.valueChanges.subscribe(()=>this.form.get("contactID")?.setValue(""))}isEmpty(e){return e==null||typeof e=="string"&&e.trim().length===0}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(L(e=>this.categoriesOptions.set(e))).subscribe()}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(L(n=>this.customerSuggestions.set(n))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(L(n=>this.supplierSuggestions.set(n))).subscribe()}onAccountChange(e){Array.isArray(e.value)&&e.value.length>=1&&this.toastr.warning("Please select at least 1 accounts for the general ledger report.","Warning")}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let e=this.buildFilterBody();this.dialogFilterVisible.set(!1),this.localFilter.set(e),this.totalRecords()!==-1&&this.getGLCount()}buildFilterBody(){let a=this.form.getRawValue(),{from:e,to:n}=a,i=fe(a,["from","to"]);return v(g({},this.filter()),{pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType})}onExport(){let e=this.buildExportBody();this.performExport(e)}performExport(e){this.reportService.exportGeneralLedger(e,{responseType:"blob",observe:"response"}).pipe(L(n=>this.handleExportResponse(n))).subscribe()}handleExportResponse(e){let n=e.headers,i=n.get("Content-Disposition")??n.get("content-disposition"),a="download.csv";if(i){let d=i.match(/filename\*?=(?:UTF-8'')?"?([^;\r\n"]+)/i);d?.[1]&&(a=decodeURIComponent(d[1].replace(/"/g,"")))}let u=e.body;mt(u,a,u.type)}buildExportBody(){let a=this.form.value,{from:e,to:n}=a,i=fe(a,["from","to"]);return v(g({},this.filter()),{exportPageNumber:+i.exportPageNumber,pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType,export:!0})}onNextPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return v(g({},e),{pageNumber:n+1,balance:this.items().data.data[this.items().data.data.length-1]?.balance??0})})}onPrevPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return v(g({},e),{pageNumber:Math.max(1,n-1)})})}goToPage(e){this.localFilter.update(n=>v(g({},n),{pageNumber:e}))}goToLastPage(){let e=this.filter();if(!e)return;let n=this.totalRecords();if(n===-1||!isFinite(n)){this.toastr.info("Please load total records before going to the last page","Info");return}let i=Math.ceil(n/e.pageSize);if(e.pageNumber>=i){this.toastr.warning("You are already on the last page","Warning");return}this.localFilter.update(a=>v(g({},a),{pageNumber:i}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-general-ledger"]],decls:13,vars:13,consts:[["filters",""],["actionButton",""],["content",""],["closeIconTemplate",""],["footer",""],["selectedItem",""],["item",""],["caption",""],["header",""],["body",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible","scrollable"],["header","Export Journal Entry",3,"visibleChange","modal","visible","breakpoints"],["class","d-flex flex-column gap-3",4,"ngIf"],["class","d-flex flex-column row-gap-3",3,"formGroup",4,"ngIf"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","accountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"virtualScroll","virtualScrollItemSize","options","ngClass"],["class","text-danger",4,"ngIf"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"showIcon"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"showIcon"],["showClear","","display","chip","formControlName","listOutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["for",""],[1,"row"],[1,"col-4"],[1,"d-flex","align-items-center","gap-2"],["name","sortAscending","formControlName","sortAscending","inputId","asc",3,"value"],["for","asc",1,"m-0"],[1,"col-3"],["name","sortAscending","formControlName","sortAscending","inputId","desc",3,"value"],["for","desc",1,"m-0"],[1,"d-flex","gap-2"],[1,""],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"text-danger"],[1,"flex","items-center","gap-2"],["name","contactType","formControlName","contactType",3,"value","inputId"],[1,"m-0",3,"for"],["formControlName","contactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["routerLink","/pages/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined","fs-3"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],["class","px-3 h-100 bg-white border-top",4,"ngIf"],[1,"px-3","h-100","bg-white","border-top"],[3,"value"],[1,"d-flex","justify-content-between","align-items-center","my-2"],["type","button","aria-label","Get journal entry count","tabindex","0",1,"fa-solid","fa-circle-question","cursor-pointer","p-0","border-0","bg-transparent"],["variant","outlined","severity","secondary","icon","fa-solid fa-angle-right","size","small","label","next"],[1,"d-flex","gap-1"],[2,"width","120px"],[1,"text-end",2,"width","120px"],[1,"text-end",2,"width","140px"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],["tooltipPosition","top",3,"pTooltip"],["target","_blank",1,"link","link-primary",3,"href"],[1,"text-end","text-break",3,"ngClass"],[4,"ngIf"],[1,"text-end","text-break"],[3,"innerHTML"],[2,"width","300px","white-space","normal","word-break","break-word"],[2,"white-space","normal","word-break","break-word"],["colspan","3"],[1,"text-end","fw-semibold"],[1,"text-end","fw-semibold","text-success"],[1,"text-end","fw-semibold","text-danger"],["colspan","8"],["type","button","aria-label","Get journal entry count","tabindex","0",1,"fa-solid","fa-circle-question","cursor-pointer","p-0","border-0","bg-transparent",3,"click","keyup.enter"],["variant","outlined","severity","secondary","icon","fa-solid fa-angle-right","size","small","label","next",3,"onClick"],[1,"d-flex","flex-column","gap-3"],[1,"row",3,"formGroup"],[1,"col-8"],[1,"col"],["type","text","formControlName","exportPageNumber","fluid","","pInputText","","pSize","small"],["role","alert",1,"alert","alert-primary","m-0","p-2"],[1,"fa-solid","fa-circle-info"],[1,"fs-2","text-dark","fw-semibold"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(n,i){if(n&1){let a=D();o(0,"app-main-panel",11),P("isDialogFilterVisibleChange",function(d){return h(a),B(i.dialogFilterVisible,d)||(i.dialogFilterVisible=d),b(d)})("isInitDialogFilterVisibleChange",function(d){return h(a),B(i.initDialogVisible,d)||(i.initDialogVisible=d),b(d)}),I("filterConfirmed",function(){return h(a),b(i.onFilterOKEvent())}),x(1,Si,1,1,"ng-template",null,0,_)(3,vi,4,1,"ng-template",null,1,_)(5,Ai,1,1,"ng-template",null,2,_),r(),o(7,"p-dialog",12),P("visibleChange",function(d){return h(a),B(i.isDialogExportVisible,d)||(i.isDialogExportVisible=d),b(d)}),x(8,Gi,16,7,"div",13)(9,Pi,1,2,"ng-template",null,3,_)(11,Oi,2,0,"ng-template",null,4,_),r()}n&2&&(s("pageTitle",i.pageTitle),A("isDialogFilterVisible",i.dialogFilterVisible),s("isFilterable",!0),A("isInitDialogFilterVisible",i.initDialogVisible),s("scrollable",!0),p(7),Ae(F(11,ri)),s("modal",!0),A("visible",i.isDialogExportVisible),s("breakpoints",F(12,li)),p(),s("ngIf",i.form&&i.filter()))},dependencies:[ne,H,ze,z,q,qe,oe,me,pe,nt,it,ee,Z,Te,Ht,le,re,De,we,Q,$,We,K,Y,X,J,ce,se,ye,$e,pt,at,te,W,U,rt,ot,zt,jt,Ye,Ke],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{padding:.75rem 1rem .75rem 0}"],changeDetection:0})}}return t})();var ji={data:{},filter:{EntityID:[],CashierID:null,Text:null,from:null,to:null},isLoading:!0,loader:{options:{outlets:[]},filter:{from:"",to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},St=Je(tt(ji),Qe(t=>{let m={totalCOGS:R(()=>{let e=t.data()?.data?.cogs;return Array.isArray(e)?e.reduce((n,i)=>n+(i?.amount??0),0):0}),totalRevenue:R(()=>{let e=t.data()?.data?.revenue;return Array.isArray(e)?e.reduce((n,i)=>n+(i?.amount??0),0):0}),totalExpense:R(()=>{let e=t.data()?.data?.expense;return Array.isArray(e)?e.reduce((n,i)=>n+(i?.amount??0),0):0}),grossProfit:R(()=>Array.isArray(t.data()?.data?.cogs)&&Array.isArray(t.data()?.data?.revenue)?m.totalRevenue()-m.totalCOGS():0),profitOrLoss:R(()=>m.totalRevenue()-m.totalCOGS()-m.totalExpense()),isDataEmpty:R(()=>Object.keys(t.data()?.data??{}).length===0)};return m}),et(t=>{let m=S(G),e=S(ae),n={updateFilter(i){O(t,a=>v(g({},a),{filter:g(g({},a.filter),i)}))},getLoader:Ee(ge(xe(()=>m.getIncomeStatementLoader().pipe(Ie({next:i=>{O(t,a=>v(g({},a),{loader:i,filter:v(g({},a.filter),{from:e.from(i.filter.from).format(),to:e.from(i.filter.to).format()})})),n.getIncomeStatement(t.filter)},error:i=>{console.error(i)}}))))),getIncomeStatement:Ee(ge(xe(i=>m.getIncomeStatement(i).pipe(Vt(()=>O(t,a=>v(g({},a),{isLoading:!0}))),Ie({next:a=>{O(t,u=>v(g({},u),{data:a,isLoading:!1}))},error:a=>{console.error(a)}})))))};return n}),Ze({onInit:t=>{t.getLoader()}}));var Ct=()=>({}),vt=t=>["/pages/chart-of-account/account/",t],yt=()=>["/pages/report/general-ledger"],Et=(t,m,e)=>({id:t,from:m,to:e});function qi(t,m){if(t&1){let e=D();o(0,"p-button",10),I("onClick",function(){h(e);let i=c(2);return b(i.onExport())}),r()}}function Hi(t,m){if(t&1&&(o(0,"div",8),x(1,qi,1,0,"p-button",9),r()),t&2){let e=c();p(),s("ngIf",e.roleService.global().export)}}function Ui(t,m){t&1&&(o(0,"tr")(1,"th",14),l(2,"Code"),r(),o(3,"th",15),l(4,"Name"),r(),o(5,"th",16),l(6,"Total"),r()())}function Wi(t,m){if(t&1&&(o(0,"tr")(1,"td"),l(2),r(),o(3,"td")(4,"a",17),l(5),r()(),o(6,"td",16)(7,"a",18),l(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;c(2);let n=de(0),i=de(1);p(2),f(e.code),p(2),s("routerLink",V(8,vt,e.accountID)),p(),f(e.name),p(2),s("routerLink",F(10,yt))("queryParams",je(11,Et,e.accountID,n,i)),p(),f(y(9,6,e.amount))}}function Ki(t,m){if(t&1&&(o(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),l(4,"Total Revenue :"),r(),o(5,"span",22),l(6),C(7,"number"),r()()()()),t&2){let e=c(3);p(6),f(y(7,1,e.store.totalRevenue()))}}function Yi(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),l(3,"No revenue records available"),r()()())}function $i(t,m){if(t&1&&(o(0,"h6",12),l(1,"Revenue"),r(),o(2,"p-table",13),x(3,Ui,7,0,"ng-template",null,3,_)(5,Wi,10,15,"ng-template",null,4,_)(7,Ki,8,3,"ng-template",null,5,_)(9,Yi,4,0,"ng-template",null,6,_),r()),t&2){let e,n=c(2);p(2),s("value",(e=n.store.data())==null||e.data==null?null:e.data.revenue)}}function Xi(t,m){t&1&&(o(0,"tr")(1,"th",14),l(2,"Code"),r(),o(3,"th",15),l(4,"Name"),r(),o(5,"th",24),l(6,"Total"),r()())}function Ji(t,m){if(t&1&&(o(0,"tr")(1,"td"),l(2),r(),o(3,"td")(4,"a",17),l(5),r()(),o(6,"td",16)(7,"a",18),l(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;c(2);let n=de(0),i=de(1);p(2),f(e.code),p(2),s("routerLink",V(8,vt,e.accountID)),p(),f(e.name),p(2),s("routerLink",F(10,yt))("queryParams",je(11,Et,e.accountID,n,i)),p(),f(y(9,6,e.amount))}}function Qi(t,m){if(t&1&&(o(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),l(4,"Total COGS :"),r(),o(5,"span",22),l(6),C(7,"number"),r()()()(),o(8,"tr")(9,"td",19)(10,"div",20)(11,"span",21),l(12,"Gross Profit :"),r(),o(13,"span",22),l(14),C(15,"number"),r()()()()),t&2){let e=c(3);p(6),f(y(7,2,e.store.totalCOGS())),p(8),f(y(15,4,e.store.grossProfit()))}}function Zi(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),l(3,"No COGS records available"),r()()())}function en(t,m){if(t&1&&(o(0,"h4",12),l(1,"COGS"),r(),o(2,"p-table",13),x(3,Xi,7,0,"ng-template",null,3,_)(5,Ji,10,15,"ng-template",null,4,_)(7,Qi,16,6,"ng-template",null,5,_)(9,Zi,4,0,"ng-template",null,6,_),r()),t&2){let e,n=c(2);p(2),s("value",(e=n.store.data())==null||e.data==null?null:e.data.cogs)}}function tn(t,m){t&1&&(o(0,"tr")(1,"th",14),l(2,"Code"),r(),o(3,"th",15),l(4,"Name"),r(),o(5,"th",16),l(6,"Total"),r()())}function nn(t,m){if(t&1&&(o(0,"tr")(1,"td"),l(2),r(),o(3,"td")(4,"a",17),l(5),r()(),o(6,"td",16)(7,"a",18),l(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;c(2);let n=de(0),i=de(1);p(2),f(e.code),p(2),s("routerLink",V(8,vt,e.accountID)),p(),f(e.name),p(2),s("routerLink",F(10,yt))("queryParams",je(11,Et,e.accountID,n,i)),p(),f(y(9,6,e.amount))}}function on(t,m){if(t&1&&(o(0,"tr")(1,"td",19)(2,"div",20)(3,"span",21),l(4,"Total Expense :"),r(),o(5,"span",22),l(6),C(7,"number"),r()()()(),o(8,"tr")(9,"td",19)(10,"div",20)(11,"span",21),l(12,"Profit / Loss :"),r(),o(13,"span",22),l(14),C(15,"number"),r()()()()),t&2){let e=c(3);p(6),f(y(7,2,e.store.totalExpense())),p(8),f(y(15,4,e.store.profitOrLoss()))}}function rn(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),l(3,"No expense records available"),r()()())}function ln(t,m){if(t&1&&(o(0,"h4",12),l(1,"Expense"),r(),o(2,"p-table",13),x(3,tn,7,0,"ng-template",null,3,_)(5,nn,10,15,"ng-template",null,4,_)(7,on,16,6,"ng-template",null,5,_)(9,rn,4,0,"ng-template",null,6,_),r()),t&2){let e,n=c(2);p(2),s("value",(e=n.store.data())==null||e.data==null?null:e.data.expense)}}function an(t,m){if(t&1&&(kt(0)(1),o(2,"p-panel")(3,"div",11),x(4,$i,11,1)(5,en,11,1)(6,ln,11,1),r()()),t&2){let e,n,i,a,u,d=c();ct((e=d.store.filter())!=null&&e.from?d.store.filter().from:null),p(),ct((n=d.store.filter())!=null&&n.to?d.store.filter().to:null),p(3),M(d.Object.keys((i=d.store.data().data)!==null&&i!==void 0?i:F(5,Ct)).length>0?4:-1),p(),M(d.Object.keys((a=(a=d.store.data().data)==null?null:a.cogs)!==null&&a!==void 0?a:F(6,Ct)).length>0?5:-1),p(),M(d.Object.keys((u=(u=d.store.data().data)==null?null:u.expense)!==null&&u!==void 0?u:F(7,Ct)).length>0?6:-1)}}function pn(t,m){if(t&1){let e=D();o(0,"form",25)(1,"div",26)(2,"label",27),l(3,"Outlet"),r(),T(4,"p-multiselect",28),r(),o(5,"div",26)(6,"label",27),l(7,"Cashier"),r(),o(8,"p-autocomplete",29),I("completeMethod",function(i){h(e);let a=c();return b(a.onCashierSearch(i))})("onSelect",function(i){h(e);let a=c();return b(a.onCashierSelect(i))}),r()(),o(9,"div",26)(10,"label",30),l(11,"From - To"),r(),o(12,"div",31),T(13,"p-datepicker",32)(14,"p-datepicker",33),r()()()}if(t&2){let e=c();s("formGroup",e.formFilter),p(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.loader().options.outlets)("showClear",!0),p(4),s("showClear",!0)("suggestions",e.cashierSuggestions())("showClear",!0),p(5),s("iconDisplay","input")("showIcon",!0),p(),s("iconDisplay","input")("showIcon",!0)}}var Yt=(()=>{class t{constructor(){this.dayjsService=S(ae),this.store=S(St),this.fb=S(Ce),this.reportService=S(G),this.roleService=S(ie),this.isInitDialogFilterVisible=E(!1),this.dialogFilterVisible=E(!1),this.cashierSuggestions=E([]),this.cashierHashMap=new Map,this.Object=Object,ue(()=>{this.store.filter()&&this.initForm()})}ngOnInit(){this.initForm(),console.log(this.cashierHashMap.entries())}onSearch(e){this.store.updateFilter(v(g({},this.store.filter()),{Text:e}))}onCashierSearch(e){this.reportService.getCashierSuggestions(e.query).pipe(ke("Cashier Suggestions"),L(n=>this.cashierSuggestions.set(n))).subscribe()}initForm(){let e=this.store.filter();console.log("initForm",this.cashierHashMap.get(e.CashierID)),this.formFilter=this.fb.group({EntityID:this.fb.control(e.EntityID??[]),CashierID:this.fb.control(this.cashierHashMap.get(e.CashierID)??""),Text:this.fb.control(e.Text??""),from:this.fb.control(e.from?this.dayjsService.from(e.from).toDate():null),to:this.fb.control(e.to?this.dayjsService.from(e.to).toDate():null)})}onFilterOK(){let e=this.formFilter.getRawValue(),n=Object.entries(e).reduce((i,[a,u])=>(a==="from"||a==="to"?u instanceof Date&&(i[a]=this.dayjsService.from(u).format()):i[a]=u||null,i),{});this.store.updateFilter(g(g({},this.store.filter()),n)),this.dialogFilterVisible.update(i=>!i),console.log("body",e)}onCashierSelect(e){console.log("Cashier selected:",e),!this.cashierHashMap.has(e.value.Key)&&(this.cashierHashMap.set(e.value.Key,e.value.Value),console.log("Cashier HashMap:",this.cashierHashMap))}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportPageSize:1e4});this.reportService.getIncomeStatement(e,{responseType:"blob"}).pipe(ke("Export Profit & Loss"),L(n=>{let i=n.type,a=[n],u=document.createElement("a");u.href=window.URL.createObjectURL(new Blob(a,{type:i}));let d=`profit-and-loss.${i.split("/")[1]}`;u.setAttribute("download",d),document.body.appendChild(u),u.click(),document.body.removeChild(u)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-income-statement"]],features:[Oe([St])],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","isFilterable","pageTitle","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold"],[3,"value"],[2,"width","20%"],[2,"width","30%"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","3",1,"text-end","fw-semibold"],[1,"row"],[1,"col"],[1,"col-1","col-lg-2"],["colspan","3",1,""],[1,"text-end",2,"min-width","10%"],[1,"d-flex","flex-column","gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["formControlName","EntityID","filterBy","value","appendTo","body","display","chip","optionLabel","value","optionValue","key","placeholder","Select an Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["appendTo","body","formControlName","CashierID","optionLabel","Value","optionValue","Key","styleClass","w-100","inputStyleClass","w-100","field","Value","placeholder","Search a cashier",3,"completeMethod","onSelect","showClear","suggestions"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(n,i){if(n&1){let a=D();o(0,"app-main-panel",7),P("isDialogFilterVisibleChange",function(d){return h(a),B(i.dialogFilterVisible,d)||(i.dialogFilterVisible=d),b(d)})("isInitDialogFilterVisibleChange",function(d){return h(a),B(i.isInitDialogFilterVisible,d)||(i.isInitDialogFilterVisible=d),b(d)}),I("filterConfirmed",function(){return h(a),b(i.onFilterOK())}),x(1,Hi,2,1,"ng-template",null,0,_)(3,an,7,8,"ng-template",null,1,_)(5,pn,15,12,"ng-template",null,2,_),r()}n&2&&(s("isFilterable",!0)("pageTitle",i.store.data().pageTitle),A("isDialogFilterVisible",i.dialogFilterVisible)("isInitDialogFilterVisible",i.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[ne,H,z,q,Te,le,re,Q,$,K,Y,X,J,ce,se,oe,me,pe,te,Xe,W,U,De,we,ee,Z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var It=Rt(qt());var mn={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,It.default)().format("YYYY-MM-DD"),listOutletParam:[]}},Tt=Je(tt(mn),Qe(t=>({totalAsset:R(()=>t.data().asset.reduce((m,e)=>m+ +e.amount,0)),totalLiability:R(()=>t.data().liability.reduce((m,e)=>m+ +e.counterAmount,0)),totalEquity:R(()=>t.data().equity.reduce((m,e)=>m+ +e.counterAmount,0))})),et(t=>{let m=S(G),e={updateFilter:n=>{O(t,i=>v(g({},i),{filter:n}))},fetchBalanceSheet:Ee(ge(Be(()=>{let n=t.filter();return Object.entries(n).every(([i,a])=>a!=null&&a!=="")}),xe(n=>m.getBalanceSheet(n).pipe(Ie({next:i=>{O(t,a=>v(g({},a),{data:i}))},error:i=>{console.error(i)}}))),Ft(1))),fetchLoader:Ee(ge(xe(()=>m.getBalanceSheetLoader().pipe(Ie({next:n=>{O(t,i=>v(g({},i),{metadata:n,filter:{date:(0,It.default)(n.filter.to).format("YYYY-MM-DD")}})),e.fetchBalanceSheet(t.filter)},error:n=>{console.error(n)}})))))};return e}),Ze(t=>({onInit:()=>{t.fetchLoader()}})));var $t=Rt(qt());var wt=t=>["/pages/chart-of-account/account/",t],Dt=()=>["/pages/report/general-ledger"],sn=(t,m)=>({id:t,to:m}),Xt=t=>({id:t});function cn(t,m){if(t&1){let e=D();o(0,"p-button",11),I("onClick",function(){h(e);let i=c(2);return b(i.onExport())}),r()}}function dn(t,m){if(t&1&&(o(0,"div",9),x(1,cn,1,0,"p-button",10),r()),t&2){let e=c();p(),s("ngIf",e.roleService.global().export)}}function un(t,m){t&1&&(o(0,"tr")(1,"th",16),l(2,"Code"),r(),o(3,"th"),l(4,"Asset"),r(),o(5,"th",17),l(6,"Total"),r()())}function _n(t,m){if(t&1&&(o(0,"tr")(1,"td"),l(2),r(),o(3,"td")(4,"a",18),l(5),r()(),o(6,"td",19)(7,"a",20),l(8),C(9,"number"),r()()()),t&2){let e=m.$implicit,n=c(3);p(2),f(e.code),p(2),s("routerLink",V(8,wt,e.accountID)),p(),f(e.name),p(2),s("routerLink",F(10,Dt))("queryParams",Nt(11,sn,e.accountID,n.store.filter().date)),p(),f(y(9,6,e.amount))}}function fn(t,m){if(t&1&&(o(0,"tr")(1,"td",21),l(2,"Total Asset"),r(),o(3,"td",22),l(4),C(5,"number"),r()()),t&2){let e=c(3);p(4),w(" ",y(5,1,e.store.totalAsset())," ")}}function gn(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),l(3,"No asset records found."),r()()())}function xn(t,m){if(t&1&&(o(0,"h4",14),l(1,"Asset"),r(),o(2,"p-table",15),x(3,un,7,0,"ng-template",null,3,_)(5,_n,10,14,"ng-template",null,4,_)(7,fn,6,3,"ng-template",null,5,_)(9,gn,4,0,"ng-template",null,6,_),r()),t&2){let e=c(2);p(2),s("value",e.store.data().asset)}}function hn(t,m){t&1&&(o(0,"tr")(1,"th",16),l(2,"Code"),r(),o(3,"th"),l(4,"Liability"),r(),o(5,"th",17),l(6,"Total"),r()())}function bn(t,m){if(t&1&&(o(0,"tr")(1,"td"),l(2),r(),o(3,"td")(4,"a",25),l(5),r()(),o(6,"td",19)(7,"a",20),l(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;p(2),f(e.code),p(2),s("routerLink",V(8,wt,e.accountID)),p(),f(e.name),p(2),s("routerLink",F(10,Dt))("queryParams",V(11,Xt,e.accountID)),p(),f(y(9,6,e.counterAmount))}}function Sn(t,m){if(t&1&&(o(0,"tr")(1,"td",21),l(2," Total Liability "),r(),o(3,"td",22),l(4),C(5,"number"),r()()),t&2){let e=c(3);p(4),w(" ",y(5,1,e.store.totalLiability())," ")}}function Cn(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),l(3,"No liability records found."),r()()())}function vn(t,m){if(t&1&&(o(0,"h4",24),l(1,"Liability"),r(),o(2,"p-table",15),x(3,hn,7,0,"ng-template",null,3,_)(5,bn,10,13,"ng-template",null,4,_)(7,Sn,6,3,"ng-template",null,5,_)(9,Cn,4,0,"ng-template",null,6,_),r()),t&2){let e=c(2);p(2),s("value",e.store.data().liability)}}function yn(t,m){t&1&&(o(0,"tr")(1,"th",16),l(2,"Code"),r(),o(3,"th"),l(4,"Equity"),r(),o(5,"th",17),l(6,"Total"),r()())}function En(t,m){if(t&1&&(o(0,"tr")(1,"td"),l(2),r(),o(3,"td")(4,"a",18),l(5),r()(),o(6,"td",19)(7,"a",20),l(8),C(9,"number"),r()()()),t&2){let e=m.$implicit;p(2),f(e.code),p(2),s("routerLink",V(8,wt,e.accountID)),p(),f(e.name),p(2),s("routerLink",F(10,Dt))("queryParams",V(11,Xt,e.accountID)),p(),f(y(9,6,e.counterAmount))}}function In(t,m){if(t&1&&(o(0,"tr")(1,"td",21),l(2,"Total Equity"),r(),o(3,"td",22),l(4),C(5,"number"),r()(),o(6,"tr")(7,"td",21),l(8," Total Liability + Equity "),r(),o(9,"td",22),l(10),C(11,"number"),r()()),t&2){let e=c(3);p(4),w(" ",y(5,2,e.store.totalEquity())," "),p(6),w(" ",y(11,4,e.store.totalLiability()+e.store.totalEquity())," ")}}function Tn(t,m){t&1&&(o(0,"tr")(1,"td",23)(2,"span"),l(3,"No equity records found."),r()()())}function wn(t,m){if(t&1&&(o(0,"h4",24),l(1,"Equity"),r(),o(2,"p-table",15),x(3,yn,7,0,"ng-template",null,3,_)(5,En,10,13,"ng-template",null,4,_),l(7," <"),x(8,In,12,6,"ng-template",null,5,_)(10,Tn,4,0,"ng-template",null,6,_),r()),t&2){let e=c(2);p(2),s("value",e.store.data().equity)}}function Dn(t,m){if(t&1&&(o(0,"p-panel",12)(1,"div",13),x(2,xn,11,1)(3,vn,11,1)(4,wn,12,1),r()()),t&2){let e=c();s("showHeader",!1),p(2),M(e.Object.keys(e.store.data().asset).length>0?2:-1),p(),M(e.Object.keys(e.store.data().liability).length>0?3:-1),p(),M(e.Object.keys(e.store.data().equity).length>0?4:-1)}}function Rn(t,m){if(t&1&&(o(0,"div",31)(1,"div"),l(2),r()()),t&2){let e=m.$implicit;p(2),f(e.value)}}function Fn(t,m){if(t&1&&(o(0,"form",26)(1,"div",27)(2,"label",28),l(3,"Outlet"),r(),o(4,"p-multiselect",29),x(5,Rn,3,1,"ng-template",null,7,_),r()(),o(7,"div",27)(8,"label",28),l(9,"From"),r(),T(10,"p-datepicker",30),r()()),t&2){let e=c();s("formGroup",e.filterForm),p(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",e.store.metadata().options.outlets)("showClear",!0),p(6),s("iconDisplay","input")("showIcon",!0)}}var Jt=(()=>{class t{constructor(){this.store=S(Tt),this.ReportServiceStore=S(G),this.dialogFilterVisible=E(!1),this.isInitDialogFilterVisible=E(!1),this.roleService=S(ie),this.Object=Object}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new Ot({date:new dt(new Date),outletID:new dt([])})}onFilterOKEvent(){let{date:e,outletID:n}=this.filterForm.value;this.store.updateFilter({date:(0,$t.default)(e).format("YYYY-MM-DD"),listOutletParam:n}),this.dialogFilterVisible.update(i=>!i)}onExport(){let e=v(g({},this.store.filter()),{export:!0,ExportPageNumber:1,ExportPageSize:1e4});this.ReportServiceStore.getBalanceSheet(e,{responseType:"blob"}).pipe(ke("Export Balance Sheet"),L(n=>{let i=n.type,a=[n],u=document.createElement("a");u.href=window.URL.createObjectURL(new Blob(a,{type:i}));let d=`balance-sheet.${i.split("/")[1]}`;u.setAttribute("download",d),document.body.appendChild(u),u.click(),document.body.removeChild(u)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-balance-sheet"]],features:[Oe([Tt])],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],[3,"showHeader"],[1,"d-flex","flex-column","gap-3"],[1,"fs-5","fw-semibold","mt-3"],[3,"value"],[2,"width","20%"],[1,"text-end",2,"width","5%"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"text-end"],["target","_blank",1,"link","link-primary",3,"routerLink","queryParams"],["colspan","2",1,"fw-semibold","text-end"],[1,"text-end","fw-semibold"],["colspan","3",1,""],[1,"fs-5","fw-semibold"],["target","_blank",1,"link","link-primary","d-flex","align-items-center",3,"routerLink"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","display","chip","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options","showClear"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(n,i){if(n&1){let a=D();o(0,"app-main-panel",8),P("isDialogFilterVisibleChange",function(d){return h(a),B(i.dialogFilterVisible,d)||(i.dialogFilterVisible=d),b(d)})("isInitDialogFilterVisibleChange",function(d){return h(a),B(i.isInitDialogFilterVisible,d)||(i.isInitDialogFilterVisible=d),b(d)}),I("filterConfirmed",function(){return h(a),b(i.onFilterOKEvent())}),x(1,dn,2,1,"ng-template",null,0,_)(3,Dn,5,4,"ng-template",null,1,_)(5,Fn,11,7,"ng-template",null,2,_),r()}n&2&&(s("pageTitle",i.store.data().pageTitle)("isFilterable",!0),A("isDialogFilterVisible",i.dialogFilterVisible)("isInitDialogFilterVisible",i.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[ne,H,z,q,me,pe,oe,ee,Z,Q,$,K,Y,X,J,ce,se,le,re,ye,te,Xe,W,U],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Qt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(n,i){n&1&&(o(0,"p"),l(1,"report-comparative-balance works!"),r(),l(2,`
|
|
2
|
+
,
|
|
3
|
+
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Zt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(n,i){n&1&&(o(0,"p"),l(1,"report-cash-flow works!"),r(),l(2,`
|
|
4
|
+
,
|
|
5
|
+
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ei=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(n,i){n&1&&(o(0,"p"),l(1,"report-trial-balance works!"),r(),l(2,`
|
|
6
|
+
,
|
|
7
|
+
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Vn=()=>({width:"30vw"}),Ln=()=>({"1199px":"75vw","575px":"90vw"}),Mn=t=>["/pages/journal/journal-entry/",t],kn=t=>({"ng-dirty ng-invalid":t}),Nn=()=>({scrollHeight:"250px"});function Bn(t,m){if(t&1){let e=D();o(0,"p-button",27),I("onClick",function(){h(e);let i=c(2);return b(i.onToggleExportDialog())}),r()}}function An(t,m){if(t&1&&(o(0,"div",24)(1,"a",25),l(2,"Return to Accounts"),r(),x(3,Bn,1,0,"p-button",26),r()),t&2){let e=c();p(3),s("ngIf",e.roleService.global().export)}}function Gn(t,m){if(t&1&&(o(0,"div",24)(1,"span",31)(2,"h2",32),l(3),r()(),o(4,"span",31)(5,"h2",32),l(6),r()()()),t&2){let e=c().$implicit;p(3),f(e.name),p(3),w(" (",e.chartOfAccountCode,") ")}}function Pn(t,m){t&1&&(o(0,"tr")(1,"th",33),l(2,"Outlet"),r(),o(3,"th",33),l(4,"No."),r(),o(5,"th",33),l(6,"Date"),r(),o(7,"th"),l(8,"Contact / Note"),r(),o(9,"th",34),l(10,"Debit"),r(),o(11,"th",35),l(12,"Credit"),r(),o(13,"th",35),l(14,"Balance"),r()())}function On(t,m){if(t&1&&(o(0,"div",38)(1,"a",39),l(2),r(),T(3,"div",41),o(4,"span",42),l(5),r()()),t&2){let e=c().$implicit,n=c(4);p(),s("href",n.authService.getTenantExternalURL()+n.buildReferenceUrl(e),he),p(),f(e.referenceText),p(),s("innerHTML",e.journalNote,j),p(2),w("",e.note," ")}}function jn(t,m){if(t&1&&(o(0,"div",38),T(1,"span",41)(2,"div",41),o(3,"span",42),l(4),r()()),t&2){let e=c().$implicit;p(),s("innerHTML",e.referenceText,j),p(),s("innerHTML",e.journalNote,j),p(2),w("",e.note," ")}}function zn(t,m){if(t&1&&(o(0,"tr")(1,"td",36),l(2),r(),o(3,"td",36)(4,"a",37),l(5),r()(),o(6,"td",36),l(7),C(8,"date"),r(),o(9,"td",36)(10,"div",38)(11,"a",39),l(12),r(),x(13,On,6,4,"div",38)(14,jn,5,3,"div",38),r()(),o(15,"td",40),l(16),C(17,"number"),r(),o(18,"td",40),l(19),C(20,"number"),r(),o(21,"td",40),l(22),C(23,"number"),r()()),t&2){let e=m.$implicit,n=c(4);p(2),f(e.outletName),p(2),s("routerLink",V(19,Mn,e.id)),p(),f(e.number),p(2),f(Me(8,10,e.date,"dd MMM yyyy")),p(4),s("href",n.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,he),p(),f(e.contactName),p(),M(n.buildReferenceUrl(e)?13:14),p(3),w(" ",y(17,13,e.debitAmount)," "),p(3),w(" ",y(20,15,e.creditAmount)," "),p(3),f(y(23,17,e.balance))}}function qn(t,m){if(t&1&&(o(0,"tr"),T(1,"td",43),o(2,"td",44),l(3,"Total"),r(),o(4,"td",44),l(5),C(6,"number"),r(),o(7,"td",44),l(8),C(9,"number"),r(),T(10,"td"),r()),t&2){let e=c().$index,n=c(3);p(5),w(" ",y(6,2,n.items().data[e].debitTotal)," "),p(3),w(" ",y(9,4,n.items().data[e].creditTotal)," ")}}function Hn(t,m){t&1&&(o(0,"tr")(1,"td",45)(2,"span"),l(3,"No records found."),r()()())}function Un(t,m){if(t&1&&(o(0,"p-table",30),x(1,Gn,7,2,"ng-template",null,5,_)(3,Pn,15,0,"ng-template",null,6,_)(5,zn,24,21,"ng-template",null,7,_)(7,qn,11,6,"ng-template",null,4,_)(9,Hn,4,0,"ng-template",null,8,_),r()),t&2){let e=m.$implicit;s("value",e.data)}}function Wn(t,m){if(t&1&&(o(0,"div",29),Fe(1,Un,11,1,"p-table",30,Re),r()),t&2){let e=c(2);p(),Ve(e.items().data)}}function Kn(t,m){if(t&1&&x(0,Wn,3,0,"div",28),t&2){let e=c();s("ngIf",e.items()&&e.items().data)}}function Yn(t,m){if(t&1&&(o(0,"div",24)(1,"div",31)(2,"span",61),l(3),r()(),o(4,"div")(5,"span"),l(6,"-"),r()(),o(7,"div",31)(8,"span",62),l(9),r()()()),t&2){let e=m.$implicit;p(3),w("(",e.code,")"),p(6),f(e.name)}}function $n(t,m){if(t&1&&(o(0,"div",24)(1,"div",31)(2,"span",61),l(3),r()(),o(4,"div")(5,"span"),l(6,"-"),r()(),o(7,"div",31)(8,"span",62),l(9),r()()()),t&2){let e=m.$implicit;p(3),w("(",e.code,")"),p(6),f(e.name)}}function Xn(t,m){t&1&&(o(0,"div",63),l(1," Account is required. "),r())}function Jn(t,m){if(t&1&&(o(0,"div",64)(1,"div"),l(2),r()()),t&2){let e=m.$implicit;p(2),f(e.value)}}function Qn(t,m){if(t&1&&(o(0,"div",55)(1,"div",21),T(2,"p-radiobutton",65),o(3,"label",66),l(4),r()()()),t&2){let e=m.$implicit;p(2),s("value",e.key)("inputId",e.key),p(),Mt("for",e.key),p(),f(e.value)}}function Zn(t,m){if(t&1){let e=D();o(0,"div",38)(1,"label",47),l(2,"Customer"),r(),o(3,"p-autocomplete",67),I("completeMethod",function(i){h(e);let a=c(2);return b(a.searchCustomer(i))}),r()()}if(t&2){let e=c(2);p(3),s("suggestions",e.customerSuggestions())}}function eo(t,m){if(t&1){let e=D();o(0,"div",38)(1,"label",47),l(2,"Supplier"),r(),o(3,"p-autocomplete",68),I("completeMethod",function(i){h(e);let a=c(2);return b(a.searchSupplier(i))}),r()()}if(t&2){let e=c(2);p(3),s("suggestions",e.supplierSuggestions())}}function to(t,m){if(t&1){let e=D();o(0,"div",38)(1,"label",47),l(2,"Customer"),r(),o(3,"p-autocomplete",67),I("completeMethod",function(i){h(e);let a=c(2);return b(a.searchCustomer(i))}),r()()}if(t&2){let e=c(2);p(3),s("suggestions",e.customerSuggestions())}}function io(t,m){if(t&1){let e=D();o(0,"form",46)(1,"div",38)(2,"label",47),l(3,"Accounts"),r(),o(4,"p-multiselect",48),I("onChange",function(i){h(e);let a=c();return b(a.onAccountChange(i))}),x(5,Yn,10,2,"ng-template",null,9,_)(7,$n,10,2,"ng-template",null,10,_),r(),x(9,Xn,2,0,"div",49),r(),o(10,"div",38)(11,"label",47),l(12,"From"),r(),o(13,"div",50),T(14,"p-datepicker",51)(15,"p-datepicker",52),r()(),o(16,"div",38)(17,"label",47),l(18,"Outlets"),r(),o(19,"p-multiselect",53),x(20,Jn,3,1,"ng-template",null,10,_),r()(),o(22,"div",38)(23,"label",47),l(24,"Category"),r(),o(25,"p-treeselect",54),I("onFocus",function(){h(e);let i=c();return b(i.onCategoryFocus())}),r()(),o(26,"div",38)(27,"label",18),l(28,"Contact Type"),r(),o(29,"div",16),Fe(30,Qn,5,4,"div",55,Re),r()(),o(32,"div",38)(33,"label",18),l(34,"Sort order"),r(),o(35,"div",16)(36,"div",55)(37,"div",21),T(38,"p-radiobutton",56),o(39,"label",57),l(40,"Asc"),r()()(),o(41,"div",58)(42,"div",21),T(43,"p-radiobutton",59),o(44,"label",60),l(45,"Desc"),r()()()()(),x(46,Zn,4,1,"div",38)(47,eo,4,1,"div",38)(48,to,4,1,"div",38),r()}if(t&2){let e,n,i,a,u,d,k=c();s("formGroup",k.form),p(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",(e=k.loaderMetadata())==null||e.options==null?null:e.options.accounts)("selectionLimit",5)("ngClass",V(22,kn,((n=k.form.get("listAccountID"))==null?null:n.invalid)&&(((n=k.form.get("listAccountID"))==null?null:n.touched)||((n=k.form.get("listAccountID"))==null?null:n.dirty)))),p(5),s("ngIf",((i=k.form.get("listAccountID"))==null?null:i.invalid)&&(((i=k.form.get("listAccountID"))==null?null:i.touched)||((i=k.form.get("listAccountID"))==null?null:i.dirty))),p(5),s("iconDisplay","input")("showIcon",!0),p(),s("iconDisplay","input")("showIcon",!0),p(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",(a=k.loaderMetadata())==null||a.options==null?null:a.options.outlets),p(6),s("metaKeySelection",!1)("virtualScroll",!0)("virtualScrollItemSize",50)("virtualScrollOptions",F(24,Nn))("options",k.categoriesOptions()),p(5),Ve((u=k.loaderMetadata())==null||u.options==null?null:u.options.contactTypeOptions),p(8),s("value",!0),p(5),s("value",!1),p(3),M((d=k.form.controls.contactType.value)===1?46:d===2?47:48)}}function no(t,m){if(t&1){let e=D();o(0,"p-button",69),I("onClick",function(){h(e);let i=c();return b(i.onToggleExportDialog())}),r()}t&2&&s("rounded",!0)("text",!0)}function oo(t,m){if(t&1){let e=D();o(0,"p-button",70),I("click",function(){h(e);let i=c();return b(i.onToggleExportDialog())}),r(),o(1,"p-button",71),I("click",function(){h(e);let i=c();return b(i.onExport())}),r()}}var ti=(()=>{class t{buildReferenceUrl(e){return st(e)}getGLCount(){this.reportService.getGLCount(this.filter()).pipe(L(({count:e})=>{this.totalRecords.set(e)})).subscribe()}onToggleExportDialog(){this.isDialogExportVisible.update(e=>!e)}get pageTitle(){return this.items()&&this.items().pageTitle?this.items().pageTitle:"General Ledger"}constructor(){this.reportService=S(G),this.route=S(He),this.roleService=S(ie),this.authService=S(Se),this.fb=S(Ce),this.coaService=S(lt),this.toastr=S(Ue),this.dayjsService=S(ae),this.infinity=1/0,this.metadata=E(null),this.items=E(null),this.totalRecords=E(-1),this.dialogFilterVisible=E(!0),this.initDialogVisible=E(!1),this.isDialogExportVisible=E(!1),this.customerSuggestions=E([]),this.supplierSuggestions=E([]),this.categoriesOptions=E([]),this.localFilter=E({}),this.count=R(()=>this.totalRecords()<0?1/0:this.totalRecords()),this.pagination=R(()=>{let e=this.filter(),n=this.totalRecords()!=null&&this.totalRecords()>=0?this.totalRecords():1/0,i=Math.min(e.pageNumber*e.pageSize,isFinite(n)?n:e.pageNumber*e.pageSize);return{first:1,end:e.pageSize>0?i:0,total:n,page:e.pageNumber,pageSize:e.pageSize,hasPrev:e.pageNumber>1,hasNext:isFinite(n)?e.pageNumber*e.pageSize<n:!0}}),this.loaderMetadata=ve(this.reportService.fetchGeneralLedgerLoader("multiple"),{initialValue:null}),this.baseFilter=R(()=>{let e=this.loaderMetadata();return e?e.filter:null}),this.exportFileTypes=E([{key:0,value:"CSV"},{key:1,value:"Excel"}]),this.queryFilter=ve(this.route.queryParamMap.pipe(Ne(e=>({accountID:e.get("id"),to:e.get("to")}))),{initialValue:null}),this.filter=R(()=>{let e=this.baseFilter(),n=this.queryFilter(),i=this.localFilter();return e?g(g(g({},e),n??{}),i):null}),this.creditSubTotal=R(()=>0),this.debitSubTotal=R(()=>0),this.initializeForm(),ue(()=>{let e=this.filter();e&&(e.listAccountID.length>0||e.listCategoryID.length>0)&&(this.form.patchValue(this.transformFilterToFormValue(e),{emitEvent:!1}),this.reportService.fetchGeneralLedgerReport(e,"multiple").pipe().subscribe(n=>{this.items.set(n)}))})}initializeForm(){this.form=this.fb.group({accountID:this.fb.control(null),from:this.fb.control(null),to:this.fb.control(null),contactType:this.fb.control(null),contactID:this.fb.control(""),listOutletID:this.fb.control([]),pageNumber:this.fb.control(1),pageSize:this.fb.control(50),sortAscending:this.fb.control(!0),listCategoryID:this.fb.control([]),listAccountID:this.fb.control([]),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportPageSize:this.fb.control(0)})}findNodeByKey(e,n){for(let i of e){if(i.key===n)return i;if(i.children){let a=this.findNodeByKey(i.children,n);if(a)return a}}return null}transformFilterToFormValue(e){return Object.entries(e).reduce((n,[i,a])=>{switch(i){case"from":break;case"to":n[i]=a&&(typeof a=="string"||typeof a=="number"||a instanceof Date)?this.dayjsService.from(a)?.toDate():this.dayjsService.now.toDate();break;case"listCategoryID":Array.isArray(a)?n[i]=a.map(u=>this.findNodeByKey(this.categoriesOptions(),u)).filter(u=>!!u):n[i]=[];break;case"listOutletID":case"listAccountID":n[i]=Array.isArray(a)?a:[];break;case"pageNumber":case"pageSize":case"exportPageNumber":case"exportPageSize":n[i]=a!=null?Number(a):0;break;case"sortAscending":case"export":n[i]=!!a;break;case"contactType":n[i]=a!=null?Number(a):null;break;default:n[i]=a}return n},{})}clearContactValueOnContactTypeChange(){this.form.get("contactType")?.valueChanges.subscribe(()=>this.form.get("contactID")?.setValue(""))}onFormValueChange(){let e=this.form.controls.listAccountID.value,n=this.form.controls.listCategoryID.value;e.length<=0&&n.length<=0?(this.form.controls.listAccountID.enable({emitEvent:!1}),this.form.controls.listCategoryID.enable({emitEvent:!1})):e.length>0?(this.form.controls.listAccountID.enable({emitEvent:!1}),this.form.controls.listCategoryID.disable({emitEvent:!1})):n.length>0&&(this.form.controls.listAccountID.disable({emitEvent:!1}),this.form.controls.listCategoryID.enable({emitEvent:!1}))}isEmpty(e){return e==null||typeof e=="string"&&e.trim().length===0}onCategoryFocus(){this.coaService.getCachedCategoriesOptions().pipe(L(e=>this.categoriesOptions.set(e))).subscribe()}searchCustomer(e){this.reportService.getCustomerSuggestions(e.query).pipe(L(n=>this.customerSuggestions.set(n))).subscribe()}searchSupplier(e){this.reportService.getSupplierSuggestions(e.query).pipe(L(n=>this.supplierSuggestions.set(n))).subscribe()}onAccountChange(e){Array.isArray(e.value)&&e.value.length>5&&this.toastr.warning("Please select at most 5 accounts for the general ledger report.","Warning")}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched(),this.dialogFilterVisible.set(!0);return}let e=this.buildFilterBody();this.dialogFilterVisible.set(!1),this.localFilter.set(e)}buildFilterBody(){let a=this.form.value,{from:e,to:n}=a,i=fe(a,["from","to"]);return v(g({},this.filter()),{pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,listCategoryID:i.listCategoryID?.map(u=>u.key)??[],contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType})}onExport(){let e=this.buildExportBody();this.performExport(e)}performExport(e){this.reportService.exportGeneralLedger(e,{responseType:"blob",observe:"response"}).pipe(L(n=>this.handleExportResponse(n))).subscribe()}handleExportResponse(e){let n=e.headers,i=n.get("Content-Disposition")??n.get("content-disposition"),a="download.csv";if(i){let d=i.match(/filename\*?=(?:UTF-8'')?"?([^;\r\n"]+)/i);d?.[1]&&(a=decodeURIComponent(d[1].replace(/"/g,"")))}let u=e.body;mt(u,a,u.type)}buildExportBody(){let a=this.form.value,{from:e,to:n}=a,i=fe(a,["from","to"]);return v(g({},this.filter()),{exportPageNumber:+i.exportPageNumber,pageNumber:i.pageNumber,pageSize:i.pageSize,sortAscending:i.sortAscending,accountID:i.accountID,listCategoryID:i.listCategoryID?.map(u=>u.key)??[],contactID:i.contactID?.length===0?null:i.contactID,listOutletID:i.listOutletID??[],listAccountID:i.listAccountID??[],from:this.dayjsService.from(e)?this.dayjsService.format(e):null,to:this.dayjsService.from(n)?this.dayjsService.format(n):null,contactType:i.contactType,export:!0})}onNextPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return v(g({},e),{pageNumber:n+1})})}onPrevPage(){this.localFilter.update(e=>{let n=e.pageNumber??this.baseFilter()?.pageNumber??1;return v(g({},e),{pageNumber:Math.max(1,n-1)})})}goToPage(e){this.localFilter.update(n=>v(g({},n),{pageNumber:e}))}goToLastPage(){let e=this.filter();if(!e)return;let n=this.totalRecords();if(n===-1||!isFinite(n)){this.toastr.info("Please load total records before going to the last page","Info");return}let i=Math.ceil(n/e.pageSize);if(e.pageNumber>=i){this.toastr.warning("You are already on the last page","Warning");return}this.localFilter.update(a=>v(g({},a),{pageNumber:i}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["app-report-multiple-ledger"]],decls:28,vars:19,consts:[["actionButton",""],["content",""],["filters",""],["closeIconTemplate",""],["footer",""],["caption",""],["header",""],["body",""],["emptymessage",""],["selectedItem",""],["item",""],[3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","pageTitle","isDialogFilterVisible","isFilterable","isInitDialogFilterVisible","scrollable"],["header","Export Journal Entry",3,"visibleChange","modal","visible","breakpoints"],[1,"d-flex","flex-column","gap-3"],[1,"row",3,"formGroup"],[1,"col-8"],[1,"row"],[1,"col"],["for",""],["type","text","formControlName","exportPageNumber","fluid","","pInputText","","pSize","small"],["role","alert",1,"alert","alert-primary","m-0","p-2"],[1,"d-flex","align-items-center","gap-2"],[1,"fa-solid","fa-circle-info"],[1,"fs-2","text-dark","fw-semibold"],[1,"d-flex","gap-2"],["routerLink","/pages/chart-of-account/account",1,"p-button","p-button-secondary","p-button-outlined","fs-3"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick",4,"ngIf"],["severity","secondary","variant","outlined","icon","fa-solid fa-upload","label","Export",3,"onClick"],["class","px-3 h-100 bg-white border-top",4,"ngIf"],[1,"px-3","h-100","bg-white","border-top"],[3,"value"],[1,""],[1,"fs-5","fw-semibold"],[2,"width","10%"],[1,"text-end",2,"width","10%"],[1,"text-end",2,"width","20%"],[1,"text-break"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"d-flex","flex-column"],["target","_blank",1,"link","link-primary",3,"href"],[1,"text-end","text-break"],[3,"innerHTML"],[2,"width","300px","white-space","normal","word-break","break-word"],["colspan","3"],[1,"text-end","fw-semibold"],["colspan","8"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],["for","outlet"],["showClear","","filter","","filterBy","code,name","display","chip","formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"onChange","virtualScroll","virtualScrollItemSize","options","selectionLimit","ngClass"],["class","text-danger",4,"ngIf"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["showClear","","display","chip","formControlName","listOutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["showClear","","display","chip","selectionMode","multiple","filter","","filterBy","label","formControlName","listCategoryID","appendTo","body","containerStyleClass","w-100","optionLabel","label","optionValue","key","placeholder","Select Category",3,"onFocus","metaKeySelection","virtualScroll","virtualScrollItemSize","virtualScrollOptions","options"],[1,"col-4"],["name","sortAscending","formControlName","sortAscending","inputId","asc",3,"value"],["for","asc",1,"m-0"],[1,"col-3"],["name","sortAscending","formControlName","sortAscending","inputId","desc",3,"value"],["for","desc",1,"m-0"],[1,"h-full","align-middle"],[1,"text-truncate","d-inline-block","h-full","align-middle"],[1,"text-danger"],[1,"flex","items-center","gap-2"],["name","contactType","formControlName","contactType",3,"value","inputId"],[1,"m-0",3,"for"],["formControlName","contactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["severity","secondary","variant","outlined","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(n,i){if(n&1){let a=D();o(0,"app-main-panel",11),P("isDialogFilterVisibleChange",function(d){return h(a),B(i.dialogFilterVisible,d)||(i.dialogFilterVisible=d),b(d)})("isInitDialogFilterVisibleChange",function(d){return h(a),B(i.initDialogVisible,d)||(i.initDialogVisible=d),b(d)}),I("filterConfirmed",function(){return h(a),b(i.onFilterOKEvent())}),x(1,An,4,1,"ng-template",null,0,_)(3,Kn,1,1,"ng-template",null,1,_)(5,io,49,25,"ng-template",null,2,_),r(),o(7,"p-dialog",12),P("visibleChange",function(d){return h(a),B(i.isDialogExportVisible,d)||(i.isDialogExportVisible=d),b(d)}),o(8,"div",13)(9,"div",14)(10,"div",15)(11,"div",16)(12,"div",17)(13,"label",18),l(14,"Page"),r()(),o(15,"div",17),T(16,"input",19),r()()()(),o(17,"div",20)(18,"div",21),T(19,"i",22),o(20,"span",23),l(21),C(22,"number"),C(23,"number"),r()()()(),x(24,no,1,2,"ng-template",null,3,_)(26,oo,2,0,"ng-template",null,4,_),r()}if(n&2){let a;s("pageTitle",i.pageTitle),A("isDialogFilterVisible",i.dialogFilterVisible),s("isFilterable",!0),A("isInitDialogFilterVisible",i.initDialogVisible),s("scrollable",!0),p(7),Ae(F(17,Vn)),s("modal",!0),A("visible",i.isDialogExportVisible),s("breakpoints",F(18,Ln)),p(2),s("formGroup",i.form),p(12),Le("Exporting data from ",y(22,13,(a=i.filter())==null?null:a.exportPageNumber)," - ",y(23,15,(a=i.filter())==null?null:a.exportPageSize),"")}},dependencies:[ne,H,ze,z,q,qe,oe,me,pe,nt,it,ee,Z,Te,le,re,De,we,Q,$,We,K,Y,X,J,ce,se,ye,$e,pt,Ut,at,te,W,U,rt,ot,Ye,Ke],styles:["[_nghost-%COMP%]{display:block} .p-datatable .p-datatable-header{padding-left:0!important}"],changeDetection:0})}}return t})();var $l=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:Kt},{path:"multiple-general-ledger",component:ti},{path:"profit-loss",component:Yt},{path:"balance-sheet",component:Jt},{path:"comparative-balance",component:Qt},{path:"trial-balance",component:ei},{path:"cash-flow",component:Zt}]}];export{$l as REPORTS_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-ZE2UEAPO.js";import{d as r}from"./chunk-EFDD6Q3K.js";import{ia as e}from"./chunk-6K5LNQ4J.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,4 +1,4 @@
|
|
|
1
|
-
import{b as Qe,c as Ye,d as Wi}from"./chunk-MAID3JDN.js";import{a as Ct,b as Fe,c as qe,d as Pe,e as It,f as vi}from"./chunk-AL647DUL.js";import{a as ci}from"./chunk-EM4HKTKQ.js";import{a as Ri,b as Li}from"./chunk-XLPFLHKU.js";import{a as Ki}from"./chunk-ORLKNWW4.js";import"./chunk-WLKS6LBU.js";import{a as Hi,b as tt}from"./chunk-E3QNEH3B.js";import{a as Mi}from"./chunk-SPKOXGSS.js";import{a as Fi,b as Ai,c as ji}from"./chunk-3KYU6FI2.js";import{a as Pi}from"./chunk-IJTQE2H4.js";import{b as $i}from"./chunk-5JV52UYK.js";import{h as Ui}from"./chunk-ACTRMWEI.js";import{b as mi,c as fi,e as gi,g as yt,h as bi}from"./chunk-ARXP327B.js";import{a as Oi,j as Ni,l as Vi,n as Bi,p as zi}from"./chunk-7FFMPB6T.js";import{a as _i}from"./chunk-UKBDY33R.js";import{Aa as Ii,Da as wi,Ga as Si,Ja as ki,Ka as Ti,La as Di,Ma as et,Q as xi,R as we,U as wt,Ua as Ei,a as di,e as hi,j as ui,na as yi,pa as Ci,qa as Xe,ra as Se,sa as Je,va as Ae,w as Ze,x as pi}from"./chunk-72LNXEXV.js";import{b as ai,c as li,d as Ce,e as Ue,f as Ge,l as Ie}from"./chunk-EFDD6Q3K.js";import"./chunk-M3WCSF6D.js";import"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{a as ue,h as re,j as ni,k as si,l as oi,m as ri,s as ae}from"./chunk-SB5MSLCX.js";import{$b as L,$c as Le,Aa as O,B as $t,Ba as he,Bb as bt,C as Be,Cc as oe,D as Kt,Db as m,Dc as xe,Ec as v,Fa as te,Fc as Re,Gc as ei,H as _t,Ha as N,Hc as ti,Jb as Jt,Kb as R,Lb as h,Mb as vt,N as Wt,Nb as j,Nc as G,Ob as Ee,Oc as Z,Pb as Oe,Qb as S,Rc as ee,Sa as qt,Sb as ie,Tb as ne,Ub as se,Vb as u,Vc as ye,Wb as p,X as ze,Xb as I,Y as mt,Yb as X,Z as me,Zb as J,_ as je,_b as H,_c as E,a as de,ba as Ut,bd as We,ca as q,d as De,da as fe,db as Qt,dd as ii,ec as y,fa as ge,fb as Yt,fc as l,g as w,gc as xt,h as Ve,ha as M,hb as c,hc as Ke,ia as F,j as pt,kc as P,lc as W,m as zt,ma as Gt,mb as Xt,mc as k,nb as x,nc as T,pa as ft,pb as gt,qa as f,qc as ve,ra as g,rc as C,s as jt,sc as V,tc as U,ua as Zt,wa as He,xb as K,yb as be,z as Ht,zb as $e}from"./chunk-6K5LNQ4J.js";import"./chunk-YQFG5XE2.js";function it(i,s=0){return Hn(i)?Number(i):arguments.length===2?s:0}function Hn(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Gi(i){return Array.isArray(i)?i:[i]}function Q(i){return i instanceof te?i.nativeElement:i}var Zi={theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",boxed:"boxed",colorTheme:"Blue_Theme",cardType:"shadow"};var Kn=20,qi=(()=>{class i{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new w,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}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=Kn){return this._platform.isBrowser?new De(t=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(_t(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):zt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Kt(o=>!o||n.indexOf(o)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,o)=>{this._scrollableContainsElement(o,e)&&t.push(o)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=Q(t),o=e.getElementRef().nativeElement;do if(n==o)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Ht(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(t){return new(t||i)(M(he),M(Ct),M(ue,8))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Wn=20,Qi=(()=>{class i{constructor(e,t,n){this._platform=e,this._change=new w,this._changeListener=o=>{this._change.next(o)},this._document=n,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:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,o=n.getBoundingClientRect(),r=-o.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,a=-o.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:r,left:a}}change(e=Wn){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||i)(M(Ct),M(he),M(ue,8))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Yi=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=be({type:i})}static{this.\u0275inj=fe({})}}return i})();function Xi(i){return i.buttons===0||i.detail===0}function Ji(i){let s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!s&&s.identifier===-1&&(s.radiusX==null||s.radiusX===1)&&(s.radiusY==null||s.radiusY===1)}function bn(i){let s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();s.removeAttribute("id");for(let n=0;n<e.length;n++)e[n].removeAttribute("id");return t==="canvas"?nn(i,s):(t==="input"||t==="select"||t==="textarea")&&tn(i,s),en("canvas",i,s,nn),en("input, textarea, select",i,s,tn),s}function en(i,s,e,t){let n=s.querySelectorAll(i);if(n.length){let o=e.querySelectorAll(i);for(let r=0;r<n.length;r++)t(n[r],o[r])}}var Gn=0;function tn(i,s){s.type!=="file"&&(s.value=i.value),s.type==="radio"&&s.name&&(s.name=`mat-clone-${s.name}-${Gn++}`)}function nn(i,s){let e=s.getContext("2d");if(e)try{e.drawImage(i,0,0)}catch{}}function Rt(i){let s=i.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 kt(i,s,e){let{top:t,bottom:n,left:o,right:r}=i;return e>=t&&e<=n&&s>=o&&s<=r}function Ne(i,s,e){i.top+=s,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function sn(i,s,e,t){let{top:n,right:o,bottom:r,left:a,width:d,height:_}=i,b=d*s,D=_*s;return t>n-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:Rt(e)})})}handleScroll(s){let e=Pe(s),t=this.positions.get(e);if(!t)return null;let n=t.scrollPosition,o,r;if(e===this._document){let _=this.getViewportScrollPosition();o=_.top,r=_.left}else o=e.scrollTop,r=e.scrollLeft;let a=n.top-o,d=n.left-r;return this.positions.forEach((_,b)=>{_.clientRect&&e!==b&&e.contains(b)&&Ne(_.clientRect,a,d)}),n.top=o,n.left=r,{top:a,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function vn(i,s){let e=i.rootNodes;if(e.length===1&&e[0].nodeType===s.ELEMENT_NODE)return e[0];let t=s.createElement("div");return e.forEach(n=>t.appendChild(n)),t}function Lt(i,s,e){for(let t in s)if(s.hasOwnProperty(t)){let n=s[t];n?i.setProperty(t,n,e?.has(t)?"important":""):i.removeProperty(t)}return i}function Te(i,s){let e=s?"":"none";Lt(i.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 on(i,s,e){Lt(i.style,{position:s?"":"fixed",top:s?"":"0",opacity:s?"":"0",left:s?"":"-999em"},e)}function at(i,s){return s&&s!="none"?i+" "+s:i}function rn(i,s){i.style.width=`${s.width}px`,i.style.height=`${s.height}px`,i.style.transform=lt(s.left,s.top)}function lt(i,s){return`translate3d(${Math.round(i)}px, ${Math.round(s)}px, 0)`}function an(i){let s=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*s}function Zn(i){let s=getComputedStyle(i),e=St(s,"transition-property"),t=e.find(a=>a==="transform"||a==="all");if(!t)return 0;let n=e.indexOf(t),o=St(s,"transition-duration"),r=St(s,"transition-delay");return an(o[n])+an(r[n])}function St(i,s){return i.getPropertyValue(s).split(",").map(t=>t.trim())}var qn=new Set(["position"]),Tt=class{get element(){return this._preview}constructor(s,e,t,n,o,r,a,d,_){this._document=s,this._rootElement=e,this._direction=t,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=r,this._pickupPositionOnPage=a,this._initialTransform=d,this._zIndex=_}attach(s){this._preview=this._createPreview(),s.appendChild(this._preview),ln(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 Zn(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,n;if(t&&s){let o=s.matchSize?this._initialDomRect:null,r=s.viewContainer.createEmbeddedView(t,s.context);r.detectChanges(),n=vn(r,this._document),this._previewEmbeddedView=r,s.matchSize?rn(n,o):n.style.transform=lt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=bn(this._rootElement),rn(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return Lt(n.style,{"pointer-events":"none",margin:ln(n)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},qn),Te(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>n.classList.add(o)):n.classList.add(e)),n}};function ln(i){return"showPopover"in i}var cn=Fe({passive:!0}),nt=Fe({passive:!1}),dn=Fe({passive:!1,capture:!0}),Qn=800,hn=new Set(["position"]),Dt=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,n,o,r){this._config=e,this._document=t,this._ngZone=n,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,cn),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",pn,dn)}_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",pn,dn)}),t){let n=this._rootElement,o=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new Tt(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)),on(n,!1,hn),this._document.body.appendChild(o.replaceChild(r,n)),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(),n=Me(e),o=!n&&e.button!==0,r=this._rootElement,a=Pe(e),d=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+Qn>Date.now(),_=n?Ji(e):Xi(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),t||o||d||_)return;if(this._handles.length){let B=r.style;this._rootElementTapHighlight=B.webkitTapHighlightColor||"",B.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(B=>this._updateOnScroll(B)),this._boundaryElement&&(this._boundaryRect=Rt(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){on(this._rootElement,!0,hn),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),n=this._getPointerPositionOnPage(s),o=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:o,dropPoint:n,event:s}),e.drop(this,t,this._initialIndex,this._initialContainer,r,o,n,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:s,y:e},{x:t,y:n}){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,n),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 n=r=>{(!r||this._preview&&Pe(r)===this._preview.element&&r.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",n),t(),clearTimeout(o))},o=setTimeout(n,e*1.5);this._preview.addEventListener("transitionend",n)}))}_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=vn(this._placeholderRef,this._document)):t=bn(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(s,e,t){let n=e===this._rootElement?null:e,o=n?n.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,n=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=n,a.y=o,a.matrixTransform(r.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(s){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:n}=this.constrainPosition?this.constrainPosition(s,this,this._initialDomRect,this._pickupPositionInElement):s;if(this.lockAxis==="x"||e==="x"?n=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),B=a.left+o,le=a.right-(d-o);t=un(t,B,le),n=un(n,b,D)}return{x:t,y:n}}_updatePointerDirectionDelta(s){let{x:e,y:t}=s,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-o.x),a=Math.abs(t-o.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=t>o.y?1:-1,o.y=t),n}_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,cn),s.removeEventListener("dragstart",this._nativeDragStart,nt)}_applyRootElementTransform(s,e){let t=1/this.scale,n=lt(s*t,e*t),o=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=o.transform&&o.transform!="none"?o.transform:""),o.transform=at(n,this._initialTransform)}_applyPreviewTransform(s,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,n=lt(s,e);this._preview.setTransform(at(n,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(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||t.width===0&&t.height===0)return;let o=n.left-t.left,r=t.right-n.right,a=n.top-t.top,d=t.bottom-n.bottom;n.width>t.width?(o>0&&(s+=o),r>0&&(s-=r)):s=0,n.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 n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.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 un(i,s,e){return Math.max(s,Math.min(e,i))}function Me(i){return i.type[0]==="t"}function pn(i){i.preventDefault()}function xn(i,s,e){let t=_n(s,i.length-1),n=_n(e,i.length-1);if(t===n)return;let o=i[t],r=n<t?-1:1;for(let a=t;a!==n;a+=r)i[a]=i[a+r];i[n]=o}function _n(i,s){return Math.max(0,Math.min(s,i))}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,n){let o=this._itemPositions,r=this._getItemIndexFromPointerPosition(s,e,t,n);if(r===-1&&o.length>0)return null;let a=this.orientation==="horizontal",d=o.findIndex(z=>z.drag===s),_=o[r],b=o[d].clientRect,D=_.clientRect,B=d>r?1:-1,le=this._getItemOffsetPx(b,D,B),ce=this._getSiblingOffsetPx(d,o,B),_e=o.slice();return xn(o,d,r),o.forEach((z,jn)=>{if(_e[jn]===z)return;let Nt=z.drag===s,ut=Nt?le:ce,Vt=Nt?s.getPlaceholderElement():z.drag.getRootElement();z.offset+=ut;let Bt=Math.round(z.offset*(1/z.drag.scale));a?(Vt.style.transform=at(`translate3d(${Bt}px, 0, 0)`,z.initialTransform),Ne(z.clientRect,0,ut)):(Vt.style.transform=at(`translate3d(0, ${Bt}px, 0)`,z.initialTransform),Ne(z.clientRect,ut,0))}),this._previousSwap.overlaps=kt(D,e,t),this._previousSwap.drag=_.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:d,currentIndex:r}}enter(s,e,t,n){let o=n==null||n<0?this._getItemIndexFromPointerPosition(s,e,t):n,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(n=>n.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:Rt(t)}}).sort((e,t)=>s?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(s,e,t){let n=this.orientation==="horizontal",o=n?e.left-s.left:e.top-s.top;return t===-1&&(o+=n?e.width-s.width:e.height-s.height),o}_getSiblingOffsetPx(s,e,t){let n=this.orientation==="horizontal",o=e[s].clientRect,r=e[s+t*-1],a=o[n?"width":"height"]*t;if(r){let d=n?"left":"top",_=n?"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,n=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let r=t[t.length-1].clientRect;return n?s>=r.right:e>=r.bottom}else{let r=t[0].clientRect;return n?s<=r.left:e<=r.top}}_getItemIndexFromPointerPosition(s,e,t,n){let o=this.orientation==="horizontal",r=this._itemPositions.findIndex(({drag:a,clientRect:d})=>{if(a===s)return!1;if(n){let _=o?n.x:n.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}},Et=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 n=e[t];this._relatedNodes.push([n,n.nextSibling])}this.withItems(s)}sort(s,e,t,n){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===n.x&&r.deltaY===n.y)return null;let d=this.getItemIndex(s),_=s.getPlaceholderElement(),b=a.getRootElement();o>d?b.after(_):b.before(_),xn(this._activeItems,d,o);let D=this._getRootNode().elementFromPoint(e,t);return r.deltaX=n.x,r.deltaY=n.y,r.drag=a,r.overlaps=b===D||b.contains(D),{previousIndex:d,currentIndex:o}}enter(s,e,t,n){let o=n==null||n<0?this._getItemIndexFromPointerPosition(s,e,t):n;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[n,o]=this._relatedNodes[t];n.parentNode===s&&n.nextSibling!==o&&(o===null?s.appendChild(n):o.parentNode===s&&s.insertBefore(n,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 n=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),o=n?this._activeItems.findIndex(r=>{let a=r.getRootElement();return n===a||a.contains(n)}):-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 n=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<n&&(n=b,o=r)}}return o}},mn=.05,yn=.05,$=function(i){return i[i.NONE=0]="NONE",i[i.UP=1]="UP",i[i.DOWN=2]="DOWN",i}($||{}),A=function(i){return i[i.NONE=0]="NONE",i[i.LEFT=1]="LEFT",i[i.RIGHT=2]="RIGHT",i}(A||{}),Ot=class{constructor(s,e,t,n,o){this._dragDropRegistry=e,this._ngZone=n,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=$.NONE,this._horizontalScrollDirection=A.NONE,this._stopScrollTimers=new w,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),$t(0,pt).pipe(me(this._stopScrollTimers)).subscribe(()=>{let a=this._scrollNode,d=this.autoScrollStep;this._verticalScrollDirection===$.UP?a.scrollBy(0,-d):this._verticalScrollDirection===$.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,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(s)),this._sortStrategy.enter(s,e,t,n),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,n,o,r,a,d={}){this._reset(),this.dropped.next({item:s,currentIndex:e,previousIndex:t,container:this,previousContainer:n,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(n=>n.isDragging()).every(n=>s.indexOf(n)===-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 Et(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),n=this._scrollableElements.indexOf(s);return t>-1&&this._scrollableElements.splice(t,1),n>-1&&this._scrollableElements.splice(n,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,n){if(this.sortingDisabled||!this._domRect||!sn(this._domRect,mn,e,t))return;let o=this._sortStrategy.sort(s,e,t,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:s})}_startScrollingIfNecessary(s,e){if(this.autoScrollDisabled)return;let t,n=$.NONE,o=A.NONE;if(this._parentPositions.positions.forEach((r,a)=>{a===this._document||!r.clientRect||t||sn(r.clientRect,mn,s,e)&&([n,o]=Yn(a,r.clientRect,this._direction,s,e),(n||o)&&(t=a))}),!n&&!o){let{width:r,height:a}=this._viewportRuler.getViewportSize(),d={width:r,height:a,top:0,right:r,bottom:a,left:0};n=Cn(d,e),o=In(d,s),t=window}t&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=t,(n||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&&kt(this._domRect,s,e)}_getSiblingContainerFromPosition(s,e,t){return this._siblings.find(n=>n._canReceive(s,e,t))}_canReceive(s,e,t){if(!this._domRect||!kt(this._domRect,e,t)||!this.enterPredicate(s,this))return!1;let n=this._getShadowRoot().elementFromPoint(e,t);return n?n===this._container||this._container.contains(n):!1}_startReceiving(s,e){let t=this._activeSiblings;!t.has(s)&&e.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-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 Cn(i,s){let{top:e,bottom:t,height:n}=i,o=n*yn;return s>=e-o&&s<=e+o?$.UP:s>=t-o&&s<=t+o?$.DOWN:$.NONE}function In(i,s){let{left:e,right:t,width:n}=i,o=n*yn;return s>=e-o&&s<=e+o?A.LEFT:s>=t-o&&s<=t+o?A.RIGHT:A.NONE}function Yn(i,s,e,t,n){let o=Cn(s,n),r=In(s,t),a=$.NONE,d=A.NONE;if(o){let _=i.scrollTop;o===$.UP?_>0&&(a=$.UP):i.scrollHeight-_>i.clientHeight&&(a=$.DOWN)}if(r){let _=i.scrollLeft;e==="rtl"?r===A.RIGHT?_<0&&(d=A.RIGHT):i.scrollWidth+_>i.clientWidth&&(d=A.LEFT):r===A.LEFT?_>0&&(d=A.LEFT):i.scrollWidth-_>i.clientWidth&&(d=A.RIGHT)}return[a,d]}var st=Fe({passive:!1,capture:!0}),ot=new Set,Xn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=K({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,n){},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 i})(),Jn=(()=>{class i{constructor(e,t){this._ngZone=e,this._appRef=F(Jt),this._environmentInjector=F(Gt),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=N([]),this._globalListeners=new Map,this._draggingPredicate=n=>n.isDragging(),this.pointerMove=new w,this.pointerUp=new w,this.scroll=new w,this._preventDefaultWhileDragging=n=>{this._activeDragInstances().length>0&&n.preventDefault()},this._persistentTouchmoveListener=n=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))},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(n=>[...n,e]),this._activeDragInstances().length===1)){let n=t.type.startsWith("touch");this._globalListeners.set(n?"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}),n||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 n=t.indexOf(e);return n>-1?(t.splice(n,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(n=>this._ngZone.runOutsideAngular(()=>{let r=a=>{this._activeDragInstances().length&&n.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=ii(Xn,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{ot.delete(this._appRef),ot.size===0&&e.destroy()})}}static{this.\u0275fac=function(t){return new(t||i)(M(he),M(ue))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),es={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Ft=(()=>{class i{constructor(e,t,n,o){this._document=e,this._ngZone=t,this._viewportRuler=n,this._dragDropRegistry=o}createDrag(e,t=es){return new Dt(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Ot(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static{this.\u0275fac=function(t){return new(t||i)(M(ue),M(he),M(Qi),M(Jn))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),fn=new ge("CDK_DRAG_PARENT");var ts=new ge("CdkDragHandle");var dt=new ge("CDK_DRAG_CONFIG"),is="cdk-drag",wn=new ge("CdkDropList"),Sn=(()=>{class i{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,n,o,r,a,d,_,b,D,B){this.element=e,this.dropContainer=t,this._ngZone=o,this._viewContainerRef=r,this._dir=d,this._changeDetectorRef=b,this._selfHandle=D,this._parentDrag=B,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(jt(_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,i._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,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);let e=i._dragInstances.indexOf(this);e>-1&&i._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(),n=t.indexOf(e);n>-1&&(t.splice(n,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,n=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 n=="object"&&n?n:it(n),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(Wt(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains(is)){e.withParent(i._dragInstances.find(n=>n.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:n,constrainPosition:o,previewClass:r,boundaryElement:a,draggingDisabled:d,rootElementSelector:_,previewContainer:b}=e;this.disabled=d??!1,this.dragStartDelay=n||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(n=>n.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,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)})}static{this.\u0275fac=function(t){return new(t||i)(x(te),x(wn,12),x(ue),x(he),x(gt),x(dt,8),x(It,8),x(Ft),x(ye),x(ts,10),x(fn,12))}}static{this.\u0275dir=$e({type:i,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,n){t&2&&j("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._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:fn,useExisting:i}]),ft]})}}return i})(),gn=new ge("CdkDropListGroup");var ns=0,kn=(()=>{class i{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,n,o,r,a,d){this.element=e,this._changeDetectorRef=n,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new w,this.connectedTo=[],this.id=`cdk-drop-list-${ns++}`,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),i._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=i._dropLists.indexOf(this);e>-1&&i._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=Gi(this.connectedTo).map(n=>{if(typeof n=="string"){let o=i._dropLists.find(r=>r.id===n);return o}return n});if(this._group&&this._group._items.forEach(n=>{t.indexOf(n)===-1&&t.push(n)}),!this._scrollableParentsResolved){let n=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(n),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let n=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(n)}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(n=>n&&n!==this).map(n=>n._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:n,sortingDisabled:o,listAutoScrollDisabled:r,listOrientation:a}=e;this.disabled=n??!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||i)(x(te),x(Ft),x(ye),x(qi),x(It,8),x(gn,12),x(dt,8))}}static{this.\u0275dir=$e({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,n){t&2&&(R("id",n.id),j("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._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:gn,useValue:void 0},{provide:wn,useExisting:i}])]})}}return i})();var Tn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=be({type:i})}static{this.\u0275inj=fe({providers:[Ft],imports:[Yi]})}}return i})();var os=["item"],rs=["group"],as=["header"],Dn=["filter"],ls=["footer"],cs=["emptyfilter"],ds=["empty"],hs=["filtericon"],us=["checkicon"],ps=["checkmark"],_s=["loader"],ms=["headerchkbox"],fs=["lastHiddenFocusableElement"],gs=["firstHiddenFocusableElement"],bs=["scroller"],vs=["list"],xs=["container"],ys=[[["p-header"]],[["p-footer"]]],Cs=["p-header","p-footer"],ht=(i,s)=>({$implicit:i,options:s}),Is=i=>({"p-checkbox-disabled":i}),At=i=>({$implicit:i}),On=i=>({options:i}),Rn=()=>[],Mt=i=>({height:i}),ws=()=>({}),Ss=(i,s,e)=>({"p-listbox-option-selected":i,"p-focus":s,"p-disabled":e}),ks=(i,s,e,t)=>({$implicit:i,index:s,selected:e,disabled:t}),Ts=i=>({implicit:i});function Ds(i,s){i&1&&H(0)}function Es(i,s){if(i&1&&(u(0,"div",22),Ke(1),m(2,Ds,1,0,"ng-container",23),p()),i&2){let e=l();c(2),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",Re(2,ht,e.modelValue(),e.visibleOptions()))}}function Os(i,s){}function Rs(i,s){i&1&&m(0,Os,0,0,"ng-template")}function Ls(i,s){if(i&1&&m(0,Rs,1,0,null,23),i&2){let e=l(5);h("ngTemplateOutlet",e.checkIconTemplate||e._checkIconTemplate)("ngTemplateOutletContext",v(2,At,e.allSelected()))}}function Fs(i,s){i&1&&(X(0),m(1,Ls,1,4,"ng-template",null,5,ee),J())}function Ps(i,s){if(i&1&&(u(0,"p-checkbox",30),m(1,Fs,3,0,"ng-container",31),p()),i&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 As(i,s){if(i&1){let e=L();u(0,"div",26),y("click",function(n){f(e);let o=l(2);return g(o.onToggleAll(n))})("keydown",function(n){f(e);let o=l(2);return g(o.onHeaderCheckboxKeyDown(n))}),u(1,"div",27)(2,"input",28,4),y("focus",function(n){f(e);let o=l(2);return g(o.onHeaderCheckboxFocus(n))})("blur",function(){f(e);let n=l(2);return g(n.onHeaderCheckboxBlur())}),p()(),m(4,Ps,2,6,"p-checkbox",29),p()}if(i&2){let e=l(2);h("ngClass",v(6,Is,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 Ms(i,s){i&1&&H(0)}function Ns(i,s){if(i&1&&(X(0),m(1,Ms,1,0,"ng-container",23),J()),i&2){let e=l(2);c(),h("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",v(2,On,e.filterOptions))}}function Vs(i,s){i&1&&I(0,"SearchIcon",38),i&2&&(h("styleClass","p-listbox-filter-icon"),R("aria-hidden",!0))}function Bs(i,s){}function zs(i,s){i&1&&m(0,Bs,0,0,"ng-template")}function js(i,s){if(i&1&&(u(0,"span",39),m(1,zs,1,0,null,40),p()),i&2){let e=l(4);R("aria-hidden",!0),c(),h("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Hs(i,s){if(i&1){let e=L();u(0,"div",34)(1,"p-iconfield")(2,"input",35,6),y("input",function(n){f(e);let o=l(3);return g(o.onFilterChange(n))})("keydown",function(n){f(e);let o=l(3);return g(o.onFilterKeyDown(n))})("focus",function(n){f(e);let o=l(3);return g(o.onFilterFocus(n))})("blur",function(n){f(e);let o=l(3);return g(o.onFilterBlur(n))}),p(),u(4,"p-inputicon"),m(5,Vs,1,2,"SearchIcon",36)(6,js,2,2,"span",37),p()()()}if(i&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 $s(i,s){if(i&1&&(m(0,Hs,7,9,"div",32),u(1,"span",33),C(2),p()),i&2){let e=l(2);h("ngIf",e.filter),c(),R("data-p-hidden-accessible",!0),c(),U(" ",e.filterResultMessageText," ")}}function Ks(i,s){if(i&1&&(u(0,"div",22),m(1,As,5,8,"div",24)(2,Ns,2,4,"ng-container",25)(3,$s,3,3,"ng-template",null,3,ee),p()),i&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 Ws(i,s){if(i&1&&C(0),i&2){let e=l(2);U(" ",e.emptyFilterMessageText," ")}}function Us(i,s){i&1&&H(0,null,7)}function Gs(i,s){if(i&1&&m(0,Us,2,0,"ng-container",40),i&2){let e=l(2);h("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e._emptyTemplate||e.emptyTemplate)}}function Zs(i,s){if(i&1){let e=L();u(0,"div",41),y("cdkDropListDropped",function(n){f(e);let o=l();return g(o.drop(n))}),m(1,Ws,1,1)(2,Gs,1,1,"ng-container"),p()}if(i&2){let e=l();h("cdkDropListData",xe(2,Rn)),c(),S(!e.emptyFilterTemplate&&!e._emptyFilterTemplate&&!e._emptyTemplate&&!e.emptyTemplate?1:2)}}function qs(i,s){if(i&1&&C(0),i&2){let e=l(2);U(" ",e.emptyMessage," ")}}function Qs(i,s){i&1&&H(0,null,8)}function Ys(i,s){if(i&1&&m(0,Qs,2,0,"ng-container",40),i&2){let e=l(2);h("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Xs(i,s){if(i&1){let e=L();u(0,"div",41),y("cdkDropListDropped",function(n){f(e);let o=l();return g(o.drop(n))}),m(1,qs,1,1)(2,Ys,1,1,"ng-container"),p()}if(i&2){let e=l();h("cdkDropListData",xe(2,Rn)),c(),S(!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function Js(i,s){i&1&&H(0)}function eo(i,s){if(i&1&&m(0,Js,1,0,"ng-container",23),i&2){let e=s.$implicit,t=s.options;l(2);let n=ve(3);h("ngTemplateOutlet",n)("ngTemplateOutletContext",Re(2,ht,e,t))}}function to(i,s){i&1&&H(0)}function io(i,s){if(i&1&&m(0,to,1,0,"ng-container",23),i&2){let e=s.options,t=l(4);h("ngTemplateOutlet",t.loaderTemplate||t._loaderTemplate)("ngTemplateOutletContext",v(2,On,e))}}function no(i,s){i&1&&m(0,io,1,4,"ng-template",null,12,ee)}function so(i,s){if(i&1){let e=L();u(0,"p-scroller",43,10),y("onLazyLoad",function(n){f(e);let o=l(2);return g(o.onLazyLoad.emit(n))}),m(2,eo,1,5,"ng-template",null,11,ee)(4,no,2,0),p()}if(i&2){let e=l(2);Ee(v(9,Mt,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 oo(i,s){i&1&&H(0)}function ro(i,s){if(i&1&&(X(0),m(1,oo,1,0,"ng-container",23),J()),i&2){l();let e=ve(3),t=l();c(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",Re(3,ht,t.visibleOptions(),xe(2,ws)))}}function ao(i,s){if(i&1&&(u(0,"span"),C(1),p()),i&2){let e=l(2).$implicit,t=l(3);c(),V(t.getOptionGroupLabel(e.optionGroup))}}function lo(i,s){i&1&&H(0)}function co(i,s){if(i&1&&(X(0),u(1,"li",46),m(2,ao,2,1,"span",31)(3,lo,1,0,"ng-container",23),p(),J()),i&2){let e=l(),t=e.$implicit,n=e.index,o=l().options,r=l(2);c(),h("ngStyle",v(7,Mt,o.itemSize+"px"))("cdkDragData",t)("cdkDragDisabled",!r.dragdrop),R("id",r.id+"_"+r.getOptionIndex(n,o)),c(),h("ngIf",!r.groupTemplate&&!r._groupTemplate),c(),h("ngTemplateOutlet",r.groupTemplate||r._groupTemplate)("ngTemplateOutletContext",v(9,At,t.optionGroup))}}function ho(i,s){}function uo(i,s){i&1&&m(0,ho,0,0,"ng-template")}function po(i,s){if(i&1&&m(0,uo,1,0,null,23),i&2){let e=l(4).$implicit,t=l(3);h("ngTemplateOutlet",t.checkIconTemplate||t._checkIconTemplate)("ngTemplateOutletContext",v(2,At,t.isSelected(e)))}}function _o(i,s){i&1&&(X(0),m(1,po,1,4,"ng-template",null,5,ee),J())}function mo(i,s){if(i&1&&(u(0,"p-checkbox",49),m(1,_o,3,0,"ng-container",31),p()),i&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 fo(i,s){i&1&&I(0,"BlankIcon",51)}function go(i,s){i&1&&I(0,"CheckIcon",51)}function bo(i,s){if(i&1&&(X(0),m(1,fo,1,0,"BlankIcon",50)(2,go,1,0,"CheckIcon",50),J()),i&2){let e=l(3).$implicit,t=l(3);c(),h("ngIf",!t.isSelected(e)),c(),h("ngIf",t.isSelected(e))}}function vo(i,s){i&1&&H(0)}function xo(i,s){if(i&1&&(X(0),m(1,bo,3,2,"ng-container",31)(2,vo,1,0,"ng-container",23),J()),i&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,Ts,t.isSelected(e)))}}function yo(i,s){if(i&1&&(u(0,"span"),C(1),p()),i&2){let e=l(2).$implicit,t=l(3);c(),V(t.getOptionLabel(e))}}function Co(i,s){i&1&&H(0)}function Io(i,s){if(i&1){let e=L();X(0),u(1,"li",47),y("click",function(n){f(e);let o=l(),r=o.$implicit,a=o.index,d=l().options,_=l(2);return g(_.onOptionSelect(n,r,_.getOptionIndex(a,d)))})("dblclick",function(n){f(e);let o=l().$implicit,r=l(3);return g(r.onOptionDoubleClick(n,o))})("mousedown",function(n){f(e);let o=l().index,r=l().options,a=l(2);return g(a.onOptionMouseDown(n,a.getOptionIndex(o,r)))})("mouseenter",function(n){f(e);let o=l().index,r=l().options,a=l(2);return g(a.onOptionMouseEnter(n,a.getOptionIndex(o,r)))})("touchend",function(){f(e);let n=l(4);return g(n.onOptionTouchEnd())}),m(2,mo,2,7,"p-checkbox",48)(3,xo,3,5,"ng-container",31)(4,yo,2,1,"span",31)(5,Co,1,0,"ng-container",23),p(),J()}if(i&2){let e=l(),t=e.$implicit,n=e.index,o=l().options,r=l(2);c(),h("ngStyle",v(15,Mt,o.itemSize+"px"))("ngClass",ei(17,Ss,r.isSelected(t)&&r.highlightOnSelect,r.focusedOptionIndex()===r.getOptionIndex(n,o),r.isOptionDisabled(t)))("cdkDragData",t)("cdkDragDisabled",!r.dragdrop),R("id",r.id+"_"+r.getOptionIndex(n,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(n,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",ti(21,ks,t,r.getOptionIndex(n,o),r.isSelected(t),r.isOptionDisabled(t)))}}function wo(i,s){if(i&1&&m(0,co,4,11,"ng-container",31)(1,Io,6,26,"ng-container",31),i&2){let e=s.$implicit,t=l(3);h("ngIf",t.isOptionGroup(e)),c(),h("ngIf",!t.isOptionGroup(e))}}function So(i,s){if(i&1){let e=L();u(0,"ul",44,13),y("focus",function(n){f(e);let o=l(2);return g(o.onListFocus(n))})("blur",function(n){f(e);let o=l(2);return g(o.onListBlur(n))})("keydown",function(n){f(e);let o=l(2);return g(o.onListKeyDown(n))})("cdkDropListDropped",function(n){f(e);let o=l(2);return g(o.drop(n))}),m(2,wo,2,2,"ng-template",45),p()}if(i&2){let e=s.$implicit,t=s.options,n=l(2);Ee(t.contentStyle),h("tabindex",-1)("ngClass",t.contentStyleClass)("cdkDropListData",e),R("aria-multiselectable",!0)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("aria-label",n.ariaLabel)("aria-disabled",n.disabled),c(2),h("ngForOf",e)}}function ko(i,s){if(i&1&&m(0,so,5,11,"p-scroller",42)(1,ro,2,6,"ng-container",31)(2,So,3,10,"ng-template",null,9,ee),i&2){let e=l();h("ngIf",e.virtualScroll),c(),h("ngIf",!e.virtualScroll)}}function To(i,s){i&1&&H(0)}function Do(i,s){if(i&1&&(u(0,"div",52),Ke(1,1),m(2,To,1,0,"ng-container",23),p()),i&2){let e=l();c(2),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",Re(2,ht,e.modelValue(),e.visibleOptions()))}}function Eo(i,s){if(i&1&&(u(0,"span",21),C(1),p()),i&2){let e=l();c(),U(" ",e.emptyMessage," ")}}var Oo=({dt:i})=>`
|
|
1
|
+
import{b as Qe,c as Ye,d as Wi}from"./chunk-MAID3JDN.js";import{a as Ct,b as Fe,c as qe,d as Pe,e as It,f as vi}from"./chunk-AL647DUL.js";import{a as ci}from"./chunk-ZE2UEAPO.js";import{a as Ri,b as Li}from"./chunk-XLPFLHKU.js";import{a as Ki}from"./chunk-AF357XP4.js";import"./chunk-7COI2POD.js";import{a as Hi,b as tt}from"./chunk-E3QNEH3B.js";import{a as Mi}from"./chunk-SPKOXGSS.js";import{a as Fi,b as Ai,c as ji}from"./chunk-3KYU6FI2.js";import{a as Pi}from"./chunk-IJTQE2H4.js";import{b as $i}from"./chunk-5JV52UYK.js";import{h as Ui}from"./chunk-ACTRMWEI.js";import{b as mi,c as fi,e as gi,g as yt,h as bi}from"./chunk-ARXP327B.js";import{a as Oi,j as Ni,l as Vi,n as Bi,p as zi}from"./chunk-7FFMPB6T.js";import{a as _i}from"./chunk-UKBDY33R.js";import{Aa as Ii,Da as wi,Ga as Si,Ja as ki,Ka as Ti,La as Di,Ma as et,Q as xi,R as we,U as wt,Ua as Ei,a as di,e as hi,j as ui,na as yi,pa as Ci,qa as Xe,ra as Se,sa as Je,va as Ae,w as Ze,x as pi}from"./chunk-72LNXEXV.js";import{b as ai,c as li,d as Ce,e as Ue,f as Ge,l as Ie}from"./chunk-EFDD6Q3K.js";import"./chunk-XMHQMMFC.js";import"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{a as ue,h as re,j as ni,k as si,l as oi,m as ri,s as ae}from"./chunk-SB5MSLCX.js";import{$b as L,$c as Le,Aa as O,B as $t,Ba as he,Bb as bt,C as Be,Cc as oe,D as Kt,Db as m,Dc as xe,Ec as v,Fa as te,Fc as Re,Gc as ei,H as _t,Ha as N,Hc as ti,Jb as Jt,Kb as R,Lb as h,Mb as vt,N as Wt,Nb as j,Nc as G,Ob as Ee,Oc as Z,Pb as Oe,Qb as S,Rc as ee,Sa as qt,Sb as ie,Tb as ne,Ub as se,Vb as u,Vc as ye,Wb as p,X as ze,Xb as I,Y as mt,Yb as X,Z as me,Zb as J,_ as je,_b as H,_c as E,a as de,ba as Ut,bd as We,ca as q,d as De,da as fe,db as Qt,dd as ii,ec as y,fa as ge,fb as Yt,fc as l,g as w,gc as xt,h as Ve,ha as M,hb as c,hc as Ke,ia as F,j as pt,kc as P,lc as W,m as zt,ma as Gt,mb as Xt,mc as k,nb as x,nc as T,pa as ft,pb as gt,qa as f,qc as ve,ra as g,rc as C,s as jt,sc as V,tc as U,ua as Zt,wa as He,xb as K,yb as be,z as Ht,zb as $e}from"./chunk-6K5LNQ4J.js";import"./chunk-YQFG5XE2.js";function it(i,s=0){return Hn(i)?Number(i):arguments.length===2?s:0}function Hn(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Gi(i){return Array.isArray(i)?i:[i]}function Q(i){return i instanceof te?i.nativeElement:i}var Zi={theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",boxed:"boxed",colorTheme:"Blue_Theme",cardType:"shadow"};var Kn=20,qi=(()=>{class i{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new w,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}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=Kn){return this._platform.isBrowser?new De(t=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(_t(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):zt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Kt(o=>!o||n.indexOf(o)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,o)=>{this._scrollableContainsElement(o,e)&&t.push(o)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=Q(t),o=e.getElementRef().nativeElement;do if(n==o)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Ht(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(t){return new(t||i)(M(he),M(Ct),M(ue,8))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Wn=20,Qi=(()=>{class i{constructor(e,t,n){this._platform=e,this._change=new w,this._changeListener=o=>{this._change.next(o)},this._document=n,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:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,o=n.getBoundingClientRect(),r=-o.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,a=-o.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:r,left:a}}change(e=Wn){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||i)(M(Ct),M(he),M(ue,8))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Yi=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=be({type:i})}static{this.\u0275inj=fe({})}}return i})();function Xi(i){return i.buttons===0||i.detail===0}function Ji(i){let s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!s&&s.identifier===-1&&(s.radiusX==null||s.radiusX===1)&&(s.radiusY==null||s.radiusY===1)}function bn(i){let s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();s.removeAttribute("id");for(let n=0;n<e.length;n++)e[n].removeAttribute("id");return t==="canvas"?nn(i,s):(t==="input"||t==="select"||t==="textarea")&&tn(i,s),en("canvas",i,s,nn),en("input, textarea, select",i,s,tn),s}function en(i,s,e,t){let n=s.querySelectorAll(i);if(n.length){let o=e.querySelectorAll(i);for(let r=0;r<n.length;r++)t(n[r],o[r])}}var Gn=0;function tn(i,s){s.type!=="file"&&(s.value=i.value),s.type==="radio"&&s.name&&(s.name=`mat-clone-${s.name}-${Gn++}`)}function nn(i,s){let e=s.getContext("2d");if(e)try{e.drawImage(i,0,0)}catch{}}function Rt(i){let s=i.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 kt(i,s,e){let{top:t,bottom:n,left:o,right:r}=i;return e>=t&&e<=n&&s>=o&&s<=r}function Ne(i,s,e){i.top+=s,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function sn(i,s,e,t){let{top:n,right:o,bottom:r,left:a,width:d,height:_}=i,b=d*s,D=_*s;return t>n-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:Rt(e)})})}handleScroll(s){let e=Pe(s),t=this.positions.get(e);if(!t)return null;let n=t.scrollPosition,o,r;if(e===this._document){let _=this.getViewportScrollPosition();o=_.top,r=_.left}else o=e.scrollTop,r=e.scrollLeft;let a=n.top-o,d=n.left-r;return this.positions.forEach((_,b)=>{_.clientRect&&e!==b&&e.contains(b)&&Ne(_.clientRect,a,d)}),n.top=o,n.left=r,{top:a,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function vn(i,s){let e=i.rootNodes;if(e.length===1&&e[0].nodeType===s.ELEMENT_NODE)return e[0];let t=s.createElement("div");return e.forEach(n=>t.appendChild(n)),t}function Lt(i,s,e){for(let t in s)if(s.hasOwnProperty(t)){let n=s[t];n?i.setProperty(t,n,e?.has(t)?"important":""):i.removeProperty(t)}return i}function Te(i,s){let e=s?"":"none";Lt(i.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 on(i,s,e){Lt(i.style,{position:s?"":"fixed",top:s?"":"0",opacity:s?"":"0",left:s?"":"-999em"},e)}function at(i,s){return s&&s!="none"?i+" "+s:i}function rn(i,s){i.style.width=`${s.width}px`,i.style.height=`${s.height}px`,i.style.transform=lt(s.left,s.top)}function lt(i,s){return`translate3d(${Math.round(i)}px, ${Math.round(s)}px, 0)`}function an(i){let s=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*s}function Zn(i){let s=getComputedStyle(i),e=St(s,"transition-property"),t=e.find(a=>a==="transform"||a==="all");if(!t)return 0;let n=e.indexOf(t),o=St(s,"transition-duration"),r=St(s,"transition-delay");return an(o[n])+an(r[n])}function St(i,s){return i.getPropertyValue(s).split(",").map(t=>t.trim())}var qn=new Set(["position"]),Tt=class{get element(){return this._preview}constructor(s,e,t,n,o,r,a,d,_){this._document=s,this._rootElement=e,this._direction=t,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=r,this._pickupPositionOnPage=a,this._initialTransform=d,this._zIndex=_}attach(s){this._preview=this._createPreview(),s.appendChild(this._preview),ln(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 Zn(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,n;if(t&&s){let o=s.matchSize?this._initialDomRect:null,r=s.viewContainer.createEmbeddedView(t,s.context);r.detectChanges(),n=vn(r,this._document),this._previewEmbeddedView=r,s.matchSize?rn(n,o):n.style.transform=lt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=bn(this._rootElement),rn(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return Lt(n.style,{"pointer-events":"none",margin:ln(n)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},qn),Te(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>n.classList.add(o)):n.classList.add(e)),n}};function ln(i){return"showPopover"in i}var cn=Fe({passive:!0}),nt=Fe({passive:!1}),dn=Fe({passive:!1,capture:!0}),Qn=800,hn=new Set(["position"]),Dt=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,n,o,r){this._config=e,this._document=t,this._ngZone=n,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,cn),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",pn,dn)}_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",pn,dn)}),t){let n=this._rootElement,o=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new Tt(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)),on(n,!1,hn),this._document.body.appendChild(o.replaceChild(r,n)),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(),n=Me(e),o=!n&&e.button!==0,r=this._rootElement,a=Pe(e),d=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+Qn>Date.now(),_=n?Ji(e):Xi(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),t||o||d||_)return;if(this._handles.length){let B=r.style;this._rootElementTapHighlight=B.webkitTapHighlightColor||"",B.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(B=>this._updateOnScroll(B)),this._boundaryElement&&(this._boundaryRect=Rt(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){on(this._rootElement,!0,hn),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),n=this._getPointerPositionOnPage(s),o=this._getDragDistance(n),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:o,dropPoint:n,event:s}),e.drop(this,t,this._initialIndex,this._initialContainer,r,o,n,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:s,y:e},{x:t,y:n}){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,n),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 n=r=>{(!r||this._preview&&Pe(r)===this._preview.element&&r.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",n),t(),clearTimeout(o))},o=setTimeout(n,e*1.5);this._preview.addEventListener("transitionend",n)}))}_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=vn(this._placeholderRef,this._document)):t=bn(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(s,e,t){let n=e===this._rootElement?null:e,o=n?n.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,n=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=n,a.y=o,a.matrixTransform(r.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(s){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:n}=this.constrainPosition?this.constrainPosition(s,this,this._initialDomRect,this._pickupPositionInElement):s;if(this.lockAxis==="x"||e==="x"?n=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),B=a.left+o,le=a.right-(d-o);t=un(t,B,le),n=un(n,b,D)}return{x:t,y:n}}_updatePointerDirectionDelta(s){let{x:e,y:t}=s,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-o.x),a=Math.abs(t-o.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=t>o.y?1:-1,o.y=t),n}_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,cn),s.removeEventListener("dragstart",this._nativeDragStart,nt)}_applyRootElementTransform(s,e){let t=1/this.scale,n=lt(s*t,e*t),o=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=o.transform&&o.transform!="none"?o.transform:""),o.transform=at(n,this._initialTransform)}_applyPreviewTransform(s,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,n=lt(s,e);this._preview.setTransform(at(n,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(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||t.width===0&&t.height===0)return;let o=n.left-t.left,r=t.right-n.right,a=n.top-t.top,d=t.bottom-n.bottom;n.width>t.width?(o>0&&(s+=o),r>0&&(s-=r)):s=0,n.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 n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.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 un(i,s,e){return Math.max(s,Math.min(e,i))}function Me(i){return i.type[0]==="t"}function pn(i){i.preventDefault()}function xn(i,s,e){let t=_n(s,i.length-1),n=_n(e,i.length-1);if(t===n)return;let o=i[t],r=n<t?-1:1;for(let a=t;a!==n;a+=r)i[a]=i[a+r];i[n]=o}function _n(i,s){return Math.max(0,Math.min(s,i))}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,n){let o=this._itemPositions,r=this._getItemIndexFromPointerPosition(s,e,t,n);if(r===-1&&o.length>0)return null;let a=this.orientation==="horizontal",d=o.findIndex(z=>z.drag===s),_=o[r],b=o[d].clientRect,D=_.clientRect,B=d>r?1:-1,le=this._getItemOffsetPx(b,D,B),ce=this._getSiblingOffsetPx(d,o,B),_e=o.slice();return xn(o,d,r),o.forEach((z,jn)=>{if(_e[jn]===z)return;let Nt=z.drag===s,ut=Nt?le:ce,Vt=Nt?s.getPlaceholderElement():z.drag.getRootElement();z.offset+=ut;let Bt=Math.round(z.offset*(1/z.drag.scale));a?(Vt.style.transform=at(`translate3d(${Bt}px, 0, 0)`,z.initialTransform),Ne(z.clientRect,0,ut)):(Vt.style.transform=at(`translate3d(0, ${Bt}px, 0)`,z.initialTransform),Ne(z.clientRect,ut,0))}),this._previousSwap.overlaps=kt(D,e,t),this._previousSwap.drag=_.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:d,currentIndex:r}}enter(s,e,t,n){let o=n==null||n<0?this._getItemIndexFromPointerPosition(s,e,t):n,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(n=>n.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:Rt(t)}}).sort((e,t)=>s?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(s,e,t){let n=this.orientation==="horizontal",o=n?e.left-s.left:e.top-s.top;return t===-1&&(o+=n?e.width-s.width:e.height-s.height),o}_getSiblingOffsetPx(s,e,t){let n=this.orientation==="horizontal",o=e[s].clientRect,r=e[s+t*-1],a=o[n?"width":"height"]*t;if(r){let d=n?"left":"top",_=n?"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,n=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let r=t[t.length-1].clientRect;return n?s>=r.right:e>=r.bottom}else{let r=t[0].clientRect;return n?s<=r.left:e<=r.top}}_getItemIndexFromPointerPosition(s,e,t,n){let o=this.orientation==="horizontal",r=this._itemPositions.findIndex(({drag:a,clientRect:d})=>{if(a===s)return!1;if(n){let _=o?n.x:n.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}},Et=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 n=e[t];this._relatedNodes.push([n,n.nextSibling])}this.withItems(s)}sort(s,e,t,n){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===n.x&&r.deltaY===n.y)return null;let d=this.getItemIndex(s),_=s.getPlaceholderElement(),b=a.getRootElement();o>d?b.after(_):b.before(_),xn(this._activeItems,d,o);let D=this._getRootNode().elementFromPoint(e,t);return r.deltaX=n.x,r.deltaY=n.y,r.drag=a,r.overlaps=b===D||b.contains(D),{previousIndex:d,currentIndex:o}}enter(s,e,t,n){let o=n==null||n<0?this._getItemIndexFromPointerPosition(s,e,t):n;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[n,o]=this._relatedNodes[t];n.parentNode===s&&n.nextSibling!==o&&(o===null?s.appendChild(n):o.parentNode===s&&s.insertBefore(n,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 n=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),o=n?this._activeItems.findIndex(r=>{let a=r.getRootElement();return n===a||a.contains(n)}):-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 n=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<n&&(n=b,o=r)}}return o}},mn=.05,yn=.05,$=function(i){return i[i.NONE=0]="NONE",i[i.UP=1]="UP",i[i.DOWN=2]="DOWN",i}($||{}),A=function(i){return i[i.NONE=0]="NONE",i[i.LEFT=1]="LEFT",i[i.RIGHT=2]="RIGHT",i}(A||{}),Ot=class{constructor(s,e,t,n,o){this._dragDropRegistry=e,this._ngZone=n,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=$.NONE,this._horizontalScrollDirection=A.NONE,this._stopScrollTimers=new w,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),$t(0,pt).pipe(me(this._stopScrollTimers)).subscribe(()=>{let a=this._scrollNode,d=this.autoScrollStep;this._verticalScrollDirection===$.UP?a.scrollBy(0,-d):this._verticalScrollDirection===$.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,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(s)),this._sortStrategy.enter(s,e,t,n),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,n,o,r,a,d={}){this._reset(),this.dropped.next({item:s,currentIndex:e,previousIndex:t,container:this,previousContainer:n,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(n=>n.isDragging()).every(n=>s.indexOf(n)===-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 Et(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),n=this._scrollableElements.indexOf(s);return t>-1&&this._scrollableElements.splice(t,1),n>-1&&this._scrollableElements.splice(n,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,n){if(this.sortingDisabled||!this._domRect||!sn(this._domRect,mn,e,t))return;let o=this._sortStrategy.sort(s,e,t,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:s})}_startScrollingIfNecessary(s,e){if(this.autoScrollDisabled)return;let t,n=$.NONE,o=A.NONE;if(this._parentPositions.positions.forEach((r,a)=>{a===this._document||!r.clientRect||t||sn(r.clientRect,mn,s,e)&&([n,o]=Yn(a,r.clientRect,this._direction,s,e),(n||o)&&(t=a))}),!n&&!o){let{width:r,height:a}=this._viewportRuler.getViewportSize(),d={width:r,height:a,top:0,right:r,bottom:a,left:0};n=Cn(d,e),o=In(d,s),t=window}t&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=t,(n||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&&kt(this._domRect,s,e)}_getSiblingContainerFromPosition(s,e,t){return this._siblings.find(n=>n._canReceive(s,e,t))}_canReceive(s,e,t){if(!this._domRect||!kt(this._domRect,e,t)||!this.enterPredicate(s,this))return!1;let n=this._getShadowRoot().elementFromPoint(e,t);return n?n===this._container||this._container.contains(n):!1}_startReceiving(s,e){let t=this._activeSiblings;!t.has(s)&&e.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-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 Cn(i,s){let{top:e,bottom:t,height:n}=i,o=n*yn;return s>=e-o&&s<=e+o?$.UP:s>=t-o&&s<=t+o?$.DOWN:$.NONE}function In(i,s){let{left:e,right:t,width:n}=i,o=n*yn;return s>=e-o&&s<=e+o?A.LEFT:s>=t-o&&s<=t+o?A.RIGHT:A.NONE}function Yn(i,s,e,t,n){let o=Cn(s,n),r=In(s,t),a=$.NONE,d=A.NONE;if(o){let _=i.scrollTop;o===$.UP?_>0&&(a=$.UP):i.scrollHeight-_>i.clientHeight&&(a=$.DOWN)}if(r){let _=i.scrollLeft;e==="rtl"?r===A.RIGHT?_<0&&(d=A.RIGHT):i.scrollWidth+_>i.clientWidth&&(d=A.LEFT):r===A.LEFT?_>0&&(d=A.LEFT):i.scrollWidth-_>i.clientWidth&&(d=A.RIGHT)}return[a,d]}var st=Fe({passive:!1,capture:!0}),ot=new Set,Xn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=K({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,n){},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 i})(),Jn=(()=>{class i{constructor(e,t){this._ngZone=e,this._appRef=F(Jt),this._environmentInjector=F(Gt),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=N([]),this._globalListeners=new Map,this._draggingPredicate=n=>n.isDragging(),this.pointerMove=new w,this.pointerUp=new w,this.scroll=new w,this._preventDefaultWhileDragging=n=>{this._activeDragInstances().length>0&&n.preventDefault()},this._persistentTouchmoveListener=n=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))},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(n=>[...n,e]),this._activeDragInstances().length===1)){let n=t.type.startsWith("touch");this._globalListeners.set(n?"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}),n||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 n=t.indexOf(e);return n>-1?(t.splice(n,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(n=>this._ngZone.runOutsideAngular(()=>{let r=a=>{this._activeDragInstances().length&&n.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=ii(Xn,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{ot.delete(this._appRef),ot.size===0&&e.destroy()})}}static{this.\u0275fac=function(t){return new(t||i)(M(he),M(ue))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),es={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Ft=(()=>{class i{constructor(e,t,n,o){this._document=e,this._ngZone=t,this._viewportRuler=n,this._dragDropRegistry=o}createDrag(e,t=es){return new Dt(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Ot(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static{this.\u0275fac=function(t){return new(t||i)(M(ue),M(he),M(Qi),M(Jn))}}static{this.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),fn=new ge("CDK_DRAG_PARENT");var ts=new ge("CdkDragHandle");var dt=new ge("CDK_DRAG_CONFIG"),is="cdk-drag",wn=new ge("CdkDropList"),Sn=(()=>{class i{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,n,o,r,a,d,_,b,D,B){this.element=e,this.dropContainer=t,this._ngZone=o,this._viewContainerRef=r,this._dir=d,this._changeDetectorRef=b,this._selfHandle=D,this._parentDrag=B,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(jt(_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,i._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,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);let e=i._dragInstances.indexOf(this);e>-1&&i._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(),n=t.indexOf(e);n>-1&&(t.splice(n,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,n=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 n=="object"&&n?n:it(n),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(Wt(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains(is)){e.withParent(i._dragInstances.find(n=>n.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:n,constrainPosition:o,previewClass:r,boundaryElement:a,draggingDisabled:d,rootElementSelector:_,previewContainer:b}=e;this.disabled=d??!1,this.dragStartDelay=n||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(n=>n.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,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)})}static{this.\u0275fac=function(t){return new(t||i)(x(te),x(wn,12),x(ue),x(he),x(gt),x(dt,8),x(It,8),x(Ft),x(ye),x(ts,10),x(fn,12))}}static{this.\u0275dir=$e({type:i,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,n){t&2&&j("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._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:fn,useExisting:i}]),ft]})}}return i})(),gn=new ge("CdkDropListGroup");var ns=0,kn=(()=>{class i{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,n,o,r,a,d){this.element=e,this._changeDetectorRef=n,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new w,this.connectedTo=[],this.id=`cdk-drop-list-${ns++}`,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),i._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=i._dropLists.indexOf(this);e>-1&&i._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=Gi(this.connectedTo).map(n=>{if(typeof n=="string"){let o=i._dropLists.find(r=>r.id===n);return o}return n});if(this._group&&this._group._items.forEach(n=>{t.indexOf(n)===-1&&t.push(n)}),!this._scrollableParentsResolved){let n=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(n),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let n=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(n)}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(n=>n&&n!==this).map(n=>n._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:n,sortingDisabled:o,listAutoScrollDisabled:r,listOrientation:a}=e;this.disabled=n??!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||i)(x(te),x(Ft),x(ye),x(qi),x(It,8),x(gn,12),x(dt,8))}}static{this.\u0275dir=$e({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,n){t&2&&(R("id",n.id),j("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._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:gn,useValue:void 0},{provide:wn,useExisting:i}])]})}}return i})();var Tn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=be({type:i})}static{this.\u0275inj=fe({providers:[Ft],imports:[Yi]})}}return i})();var os=["item"],rs=["group"],as=["header"],Dn=["filter"],ls=["footer"],cs=["emptyfilter"],ds=["empty"],hs=["filtericon"],us=["checkicon"],ps=["checkmark"],_s=["loader"],ms=["headerchkbox"],fs=["lastHiddenFocusableElement"],gs=["firstHiddenFocusableElement"],bs=["scroller"],vs=["list"],xs=["container"],ys=[[["p-header"]],[["p-footer"]]],Cs=["p-header","p-footer"],ht=(i,s)=>({$implicit:i,options:s}),Is=i=>({"p-checkbox-disabled":i}),At=i=>({$implicit:i}),On=i=>({options:i}),Rn=()=>[],Mt=i=>({height:i}),ws=()=>({}),Ss=(i,s,e)=>({"p-listbox-option-selected":i,"p-focus":s,"p-disabled":e}),ks=(i,s,e,t)=>({$implicit:i,index:s,selected:e,disabled:t}),Ts=i=>({implicit:i});function Ds(i,s){i&1&&H(0)}function Es(i,s){if(i&1&&(u(0,"div",22),Ke(1),m(2,Ds,1,0,"ng-container",23),p()),i&2){let e=l();c(2),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",Re(2,ht,e.modelValue(),e.visibleOptions()))}}function Os(i,s){}function Rs(i,s){i&1&&m(0,Os,0,0,"ng-template")}function Ls(i,s){if(i&1&&m(0,Rs,1,0,null,23),i&2){let e=l(5);h("ngTemplateOutlet",e.checkIconTemplate||e._checkIconTemplate)("ngTemplateOutletContext",v(2,At,e.allSelected()))}}function Fs(i,s){i&1&&(X(0),m(1,Ls,1,4,"ng-template",null,5,ee),J())}function Ps(i,s){if(i&1&&(u(0,"p-checkbox",30),m(1,Fs,3,0,"ng-container",31),p()),i&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 As(i,s){if(i&1){let e=L();u(0,"div",26),y("click",function(n){f(e);let o=l(2);return g(o.onToggleAll(n))})("keydown",function(n){f(e);let o=l(2);return g(o.onHeaderCheckboxKeyDown(n))}),u(1,"div",27)(2,"input",28,4),y("focus",function(n){f(e);let o=l(2);return g(o.onHeaderCheckboxFocus(n))})("blur",function(){f(e);let n=l(2);return g(n.onHeaderCheckboxBlur())}),p()(),m(4,Ps,2,6,"p-checkbox",29),p()}if(i&2){let e=l(2);h("ngClass",v(6,Is,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 Ms(i,s){i&1&&H(0)}function Ns(i,s){if(i&1&&(X(0),m(1,Ms,1,0,"ng-container",23),J()),i&2){let e=l(2);c(),h("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",v(2,On,e.filterOptions))}}function Vs(i,s){i&1&&I(0,"SearchIcon",38),i&2&&(h("styleClass","p-listbox-filter-icon"),R("aria-hidden",!0))}function Bs(i,s){}function zs(i,s){i&1&&m(0,Bs,0,0,"ng-template")}function js(i,s){if(i&1&&(u(0,"span",39),m(1,zs,1,0,null,40),p()),i&2){let e=l(4);R("aria-hidden",!0),c(),h("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Hs(i,s){if(i&1){let e=L();u(0,"div",34)(1,"p-iconfield")(2,"input",35,6),y("input",function(n){f(e);let o=l(3);return g(o.onFilterChange(n))})("keydown",function(n){f(e);let o=l(3);return g(o.onFilterKeyDown(n))})("focus",function(n){f(e);let o=l(3);return g(o.onFilterFocus(n))})("blur",function(n){f(e);let o=l(3);return g(o.onFilterBlur(n))}),p(),u(4,"p-inputicon"),m(5,Vs,1,2,"SearchIcon",36)(6,js,2,2,"span",37),p()()()}if(i&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 $s(i,s){if(i&1&&(m(0,Hs,7,9,"div",32),u(1,"span",33),C(2),p()),i&2){let e=l(2);h("ngIf",e.filter),c(),R("data-p-hidden-accessible",!0),c(),U(" ",e.filterResultMessageText," ")}}function Ks(i,s){if(i&1&&(u(0,"div",22),m(1,As,5,8,"div",24)(2,Ns,2,4,"ng-container",25)(3,$s,3,3,"ng-template",null,3,ee),p()),i&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 Ws(i,s){if(i&1&&C(0),i&2){let e=l(2);U(" ",e.emptyFilterMessageText," ")}}function Us(i,s){i&1&&H(0,null,7)}function Gs(i,s){if(i&1&&m(0,Us,2,0,"ng-container",40),i&2){let e=l(2);h("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e._emptyTemplate||e.emptyTemplate)}}function Zs(i,s){if(i&1){let e=L();u(0,"div",41),y("cdkDropListDropped",function(n){f(e);let o=l();return g(o.drop(n))}),m(1,Ws,1,1)(2,Gs,1,1,"ng-container"),p()}if(i&2){let e=l();h("cdkDropListData",xe(2,Rn)),c(),S(!e.emptyFilterTemplate&&!e._emptyFilterTemplate&&!e._emptyTemplate&&!e.emptyTemplate?1:2)}}function qs(i,s){if(i&1&&C(0),i&2){let e=l(2);U(" ",e.emptyMessage," ")}}function Qs(i,s){i&1&&H(0,null,8)}function Ys(i,s){if(i&1&&m(0,Qs,2,0,"ng-container",40),i&2){let e=l(2);h("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Xs(i,s){if(i&1){let e=L();u(0,"div",41),y("cdkDropListDropped",function(n){f(e);let o=l();return g(o.drop(n))}),m(1,qs,1,1)(2,Ys,1,1,"ng-container"),p()}if(i&2){let e=l();h("cdkDropListData",xe(2,Rn)),c(),S(!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function Js(i,s){i&1&&H(0)}function eo(i,s){if(i&1&&m(0,Js,1,0,"ng-container",23),i&2){let e=s.$implicit,t=s.options;l(2);let n=ve(3);h("ngTemplateOutlet",n)("ngTemplateOutletContext",Re(2,ht,e,t))}}function to(i,s){i&1&&H(0)}function io(i,s){if(i&1&&m(0,to,1,0,"ng-container",23),i&2){let e=s.options,t=l(4);h("ngTemplateOutlet",t.loaderTemplate||t._loaderTemplate)("ngTemplateOutletContext",v(2,On,e))}}function no(i,s){i&1&&m(0,io,1,4,"ng-template",null,12,ee)}function so(i,s){if(i&1){let e=L();u(0,"p-scroller",43,10),y("onLazyLoad",function(n){f(e);let o=l(2);return g(o.onLazyLoad.emit(n))}),m(2,eo,1,5,"ng-template",null,11,ee)(4,no,2,0),p()}if(i&2){let e=l(2);Ee(v(9,Mt,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 oo(i,s){i&1&&H(0)}function ro(i,s){if(i&1&&(X(0),m(1,oo,1,0,"ng-container",23),J()),i&2){l();let e=ve(3),t=l();c(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",Re(3,ht,t.visibleOptions(),xe(2,ws)))}}function ao(i,s){if(i&1&&(u(0,"span"),C(1),p()),i&2){let e=l(2).$implicit,t=l(3);c(),V(t.getOptionGroupLabel(e.optionGroup))}}function lo(i,s){i&1&&H(0)}function co(i,s){if(i&1&&(X(0),u(1,"li",46),m(2,ao,2,1,"span",31)(3,lo,1,0,"ng-container",23),p(),J()),i&2){let e=l(),t=e.$implicit,n=e.index,o=l().options,r=l(2);c(),h("ngStyle",v(7,Mt,o.itemSize+"px"))("cdkDragData",t)("cdkDragDisabled",!r.dragdrop),R("id",r.id+"_"+r.getOptionIndex(n,o)),c(),h("ngIf",!r.groupTemplate&&!r._groupTemplate),c(),h("ngTemplateOutlet",r.groupTemplate||r._groupTemplate)("ngTemplateOutletContext",v(9,At,t.optionGroup))}}function ho(i,s){}function uo(i,s){i&1&&m(0,ho,0,0,"ng-template")}function po(i,s){if(i&1&&m(0,uo,1,0,null,23),i&2){let e=l(4).$implicit,t=l(3);h("ngTemplateOutlet",t.checkIconTemplate||t._checkIconTemplate)("ngTemplateOutletContext",v(2,At,t.isSelected(e)))}}function _o(i,s){i&1&&(X(0),m(1,po,1,4,"ng-template",null,5,ee),J())}function mo(i,s){if(i&1&&(u(0,"p-checkbox",49),m(1,_o,3,0,"ng-container",31),p()),i&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 fo(i,s){i&1&&I(0,"BlankIcon",51)}function go(i,s){i&1&&I(0,"CheckIcon",51)}function bo(i,s){if(i&1&&(X(0),m(1,fo,1,0,"BlankIcon",50)(2,go,1,0,"CheckIcon",50),J()),i&2){let e=l(3).$implicit,t=l(3);c(),h("ngIf",!t.isSelected(e)),c(),h("ngIf",t.isSelected(e))}}function vo(i,s){i&1&&H(0)}function xo(i,s){if(i&1&&(X(0),m(1,bo,3,2,"ng-container",31)(2,vo,1,0,"ng-container",23),J()),i&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,Ts,t.isSelected(e)))}}function yo(i,s){if(i&1&&(u(0,"span"),C(1),p()),i&2){let e=l(2).$implicit,t=l(3);c(),V(t.getOptionLabel(e))}}function Co(i,s){i&1&&H(0)}function Io(i,s){if(i&1){let e=L();X(0),u(1,"li",47),y("click",function(n){f(e);let o=l(),r=o.$implicit,a=o.index,d=l().options,_=l(2);return g(_.onOptionSelect(n,r,_.getOptionIndex(a,d)))})("dblclick",function(n){f(e);let o=l().$implicit,r=l(3);return g(r.onOptionDoubleClick(n,o))})("mousedown",function(n){f(e);let o=l().index,r=l().options,a=l(2);return g(a.onOptionMouseDown(n,a.getOptionIndex(o,r)))})("mouseenter",function(n){f(e);let o=l().index,r=l().options,a=l(2);return g(a.onOptionMouseEnter(n,a.getOptionIndex(o,r)))})("touchend",function(){f(e);let n=l(4);return g(n.onOptionTouchEnd())}),m(2,mo,2,7,"p-checkbox",48)(3,xo,3,5,"ng-container",31)(4,yo,2,1,"span",31)(5,Co,1,0,"ng-container",23),p(),J()}if(i&2){let e=l(),t=e.$implicit,n=e.index,o=l().options,r=l(2);c(),h("ngStyle",v(15,Mt,o.itemSize+"px"))("ngClass",ei(17,Ss,r.isSelected(t)&&r.highlightOnSelect,r.focusedOptionIndex()===r.getOptionIndex(n,o),r.isOptionDisabled(t)))("cdkDragData",t)("cdkDragDisabled",!r.dragdrop),R("id",r.id+"_"+r.getOptionIndex(n,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(n,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",ti(21,ks,t,r.getOptionIndex(n,o),r.isSelected(t),r.isOptionDisabled(t)))}}function wo(i,s){if(i&1&&m(0,co,4,11,"ng-container",31)(1,Io,6,26,"ng-container",31),i&2){let e=s.$implicit,t=l(3);h("ngIf",t.isOptionGroup(e)),c(),h("ngIf",!t.isOptionGroup(e))}}function So(i,s){if(i&1){let e=L();u(0,"ul",44,13),y("focus",function(n){f(e);let o=l(2);return g(o.onListFocus(n))})("blur",function(n){f(e);let o=l(2);return g(o.onListBlur(n))})("keydown",function(n){f(e);let o=l(2);return g(o.onListKeyDown(n))})("cdkDropListDropped",function(n){f(e);let o=l(2);return g(o.drop(n))}),m(2,wo,2,2,"ng-template",45),p()}if(i&2){let e=s.$implicit,t=s.options,n=l(2);Ee(t.contentStyle),h("tabindex",-1)("ngClass",t.contentStyleClass)("cdkDropListData",e),R("aria-multiselectable",!0)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("aria-label",n.ariaLabel)("aria-disabled",n.disabled),c(2),h("ngForOf",e)}}function ko(i,s){if(i&1&&m(0,so,5,11,"p-scroller",42)(1,ro,2,6,"ng-container",31)(2,So,3,10,"ng-template",null,9,ee),i&2){let e=l();h("ngIf",e.virtualScroll),c(),h("ngIf",!e.virtualScroll)}}function To(i,s){i&1&&H(0)}function Do(i,s){if(i&1&&(u(0,"div",52),Ke(1,1),m(2,To,1,0,"ng-container",23),p()),i&2){let e=l();c(2),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",Re(2,ht,e.modelValue(),e.visibleOptions()))}}function Eo(i,s){if(i&1&&(u(0,"span",21),C(1),p()),i&2){let e=l();c(),U(" ",e.emptyMessage," ")}}var Oo=({dt:i})=>`
|
|
2
2
|
.p-listbox {
|
|
3
3
|
background: ${i("listbox.background")};
|
|
4
4
|
color: ${i("listbox.color")};
|