dealposbooks 1.1.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +142 -142
- package/assets/images/background/timeout.svg +2614 -0
- package/assets/scss/components/_forms.scss +5 -3
- package/assets/scss/style.scss +17 -20
- package/assets/scss/variables/_variables.scss +44 -10
- package/chunk-26X2X35R.js +1 -0
- package/chunk-2VF35PRV.js +7 -0
- package/chunk-34EMCCL5.js +210 -0
- package/chunk-35EULUGT.js +193 -0
- package/{chunk-B6N6C3RA.js → chunk-3TRGIHUH.js} +1 -1
- package/chunk-6TRUWOKK.js +1 -0
- package/chunk-7FE3ZTH3.js +7 -0
- package/chunk-7V4AFAU5.js +1 -0
- package/{chunk-R2KG54OT.js → chunk-AKZM2DMY.js} +2 -2
- package/{chunk-JR4EQTPJ.js → chunk-AVL6C3VX.js} +1 -1
- package/{chunk-ZU7I7MCL.js → chunk-BTZS5NIZ.js} +1 -1
- package/chunk-CAI423H5.js +1 -0
- package/{chunk-223MMYH7.js → chunk-CEMQLY34.js} +1 -1
- package/chunk-CMHZLZ4E.js +1 -0
- package/{chunk-EOLHIQHQ.js → chunk-DDBPJDR6.js} +1 -1
- package/{chunk-ZL4DDXH7.js → chunk-DWTUKOMR.js} +4 -4
- package/chunk-DXCBV3NP.js +1 -0
- package/{chunk-UGKSIDKE.js → chunk-DYZT7UKM.js} +1 -1
- package/chunk-E2RBYY7Q.js +1 -0
- package/chunk-E2VJWAI2.js +1 -0
- package/chunk-EBTC6B2W.js +2 -0
- package/chunk-EHULZLLD.js +300 -0
- package/chunk-ESKS6LNH.js +246 -0
- package/{chunk-S35HUXPS.js → chunk-F2X3VGZZ.js} +1 -1
- package/chunk-F6SXKAYF.js +67 -0
- package/chunk-G4MYTCDD.js +1 -0
- package/{chunk-V7Y6Z4AQ.js → chunk-G63G4UQZ.js} +2 -2
- package/{chunk-5GQEUX4M.js → chunk-G7MS6UI4.js} +1 -1
- package/chunk-GGZEY27B.js +1 -0
- package/{chunk-ZZPBK2XT.js → chunk-GHZLR44M.js} +1 -1
- package/{chunk-O65HPMSJ.js → chunk-HZ7WPLLK.js} +1 -1
- package/{chunk-CINZRZMB.js → chunk-HZLUYZB3.js} +1 -1
- package/chunk-I7T4W6G2.js +47 -0
- package/{chunk-EMVZ65TI.js → chunk-IF72X7RS.js} +1 -1
- package/chunk-JXI4NDYT.js +1 -0
- package/chunk-KFKLJQ2D.js +1 -0
- package/{chunk-XWVLTTMV.js → chunk-KLKIGY44.js} +1 -1
- package/{chunk-TUL6Y2HH.js → chunk-KO5IN2G2.js} +1 -1
- package/chunk-L2BS7BTV.js +1 -0
- package/chunk-LUH5EEUM.js +1 -0
- package/chunk-MEKP6D5H.js +1 -0
- package/chunk-MQ5Y727W.js +1 -0
- package/{chunk-H4HFCRFZ.js → chunk-MS3UTNX6.js} +14 -14
- package/chunk-NWVWD4IE.js +1 -0
- package/chunk-NXCLB2JQ.js +1 -0
- package/chunk-ON4N4CPO.js +51 -0
- package/chunk-OVJSBJBH.js +197 -0
- package/{chunk-REHXXPZY.js → chunk-PATWAZNE.js} +1 -1
- package/chunk-PBI352JR.js +1 -0
- package/chunk-PKK7JSPR.js +1 -0
- package/{chunk-FOUHOMEE.js → chunk-PKPPDJWT.js} +5 -5
- package/chunk-PMLVFBAT.js +1 -0
- package/{chunk-X2NM4CIV.js → chunk-Q4Y2IGA6.js} +2 -2
- package/chunk-QBJKUIXK.js +627 -0
- package/chunk-R3FUAON5.js +1 -0
- package/{chunk-DJ5UHXOJ.js → chunk-RNU2O7NF.js} +1 -1
- package/{chunk-AYVR3RIS.js → chunk-ROX6NFMK.js} +2 -2
- package/{chunk-ERX7ND7E.js → chunk-S64TQVWK.js} +1 -1
- package/chunk-SJTXIIX5.js +1 -0
- package/chunk-TDHD3ZTF.js +1 -0
- package/{chunk-YKYI4A3V.js → chunk-TL6UHPBU.js} +1 -1
- package/chunk-UFS2HLAY.js +1 -0
- package/chunk-UIM6GQ63.js +1 -0
- package/chunk-UM7MB5JU.js +1 -0
- package/chunk-UNNEEFI2.js +1 -0
- package/{chunk-UTL7D6E7.js → chunk-USO7UKRV.js} +4 -4
- package/chunk-VVC3QQUI.js +1 -0
- package/{chunk-SS3CMCAX.js → chunk-VYTUB2DV.js} +2 -2
- package/chunk-YF4S6CQO.js +524 -0
- package/chunk-YILEWAVV.js +1 -0
- package/chunk-YNI2HWIV.js +180 -0
- package/index.html +3 -3
- package/main-YPUVQR54.js +1 -0
- package/package.json +1 -1
- package/polyfills-OYTHSGNX.js +2 -0
- package/styles-JMIKZHNX.css +1 -0
- package/chunk-33KLXB2L.js +0 -180
- package/chunk-4Y3NYY52.js +0 -67
- package/chunk-5RRUIJ5U.js +0 -1
- package/chunk-6BFODHTZ.js +0 -2
- package/chunk-AXJA6OO7.js +0 -246
- package/chunk-DBRLQ7BX.js +0 -397
- package/chunk-DUOJKP2G.js +0 -300
- package/chunk-E4ZVZRLO.js +0 -210
- package/chunk-EBOJJWD5.js +0 -1
- package/chunk-ENPYMVZG.js +0 -1
- package/chunk-FKTEL4CU.js +0 -524
- package/chunk-J53TOHZH.js +0 -1
- package/chunk-JC7YOUAM.js +0 -1
- package/chunk-JSAAKZBO.js +0 -1
- package/chunk-KZ2KGWUY.js +0 -1
- package/chunk-LON3T466.js +0 -1
- package/chunk-LYEN4UBW.js +0 -1
- package/chunk-MG3SLH6O.js +0 -1
- package/chunk-NQ3CKBYP.js +0 -1
- package/chunk-NS7JH3QF.js +0 -47
- package/chunk-OCLABZZW.js +0 -1
- package/chunk-OH2CJBFF.js +0 -1
- package/chunk-OSV7AMB2.js +0 -1
- package/chunk-OWI3BWEZ.js +0 -197
- package/chunk-OYYYX3IP.js +0 -1
- package/chunk-PNQSQQIT.js +0 -1
- package/chunk-Q5PJ63MA.js +0 -1
- package/chunk-RIALPB2D.js +0 -1
- package/chunk-RJYO2KKV.js +0 -1
- package/chunk-ROKYJX6Q.js +0 -193
- package/chunk-RUGQ4OJG.js +0 -1
- package/chunk-RUP2SWYB.js +0 -231
- package/chunk-RUVT4SCE.js +0 -1
- package/chunk-TMY4NWZ6.js +0 -1
- package/chunk-TOJAZ32N.js +0 -1
- package/chunk-VY4Z33EE.js +0 -7
- package/chunk-VYKJK5YU.js +0 -7
- package/chunk-WG7APCJU.js +0 -51
- package/chunk-Y6MJGNH2.js +0 -1
- package/main-MCP7AVEU.js +0 -1
- package/polyfills-EQXJKH7W.js +0 -2
- package/styles-IAH7RNKW.css +0 -1
package/chunk-RUP2SWYB.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import{a as dt}from"./chunk-WG7APCJU.js";import{a as et,f as pt}from"./chunk-DUOJKP2G.js";import{a as Ie}from"./chunk-R2KG54OT.js";import{b as Xe,d as tt,e as st}from"./chunk-JR4EQTPJ.js";import{a as it,b as rt,h as ct}from"./chunk-UTL7D6E7.js";import{i as be,j as Ye,l as Je,q as nt,s as lt,u as ot,w as at}from"./chunk-OWI3BWEZ.js";import{A as De,Ba as qe,Da as Be,Ea as Ze,Fa as je,Ga as Ue,Ha as G,Ia as q,N as ee,O as A,Pa as We,Q as Re,R as Pe,W as Ke,a as ze,ca as ye,e as he,i as fe,la as Qe,na as E,oa as z,pa as H,ra as N,t as ge,ua as He,w as Q,wa as Ne,ya as Ge}from"./chunk-ROKYJX6Q.js";import{k as pe,m as Ae,n as de,o as ue,p as me,t as _e}from"./chunk-RUGQ4OJG.js";import{Aa as Ce,Ab as ae,Bb as p,Ha as L,Ic as k,Jb as v,Kb as s,Lb as we,Mb as Ve,Nb as U,Ob as W,Pb as Y,Rc as g,Sc as K,Tc as X,Ub as u,Vb as h,Vc as $e,Wb as $,Xb as x,Yb as S,Zb as O,_b as w,ba as xe,ca as Se,da as ve,dc as T,ec as r,fc as ke,gb as c,gc as se,hb as j,hc as I,ia as Te,ic as F,jc as m,kc as _,lc as R,mc as M,nc as D,oc as J,qa as y,ra as b,rc as Fe,sc as Me,ta as ne,tc as Ee,ub as le,uc as Le,vb as Oe,vc as re,wc as V,xc as P,yb as oe,yc as ce,za as C}from"./chunk-VYKJK5YU.js";import{a as te,b as ie}from"./chunk-EQDQRRRY.js";var B=t=>({height:t}),yt=(t,a,e)=>({"p-multiselect-option-selected":t,"p-disabled":a,"p-focus":e}),mt=t=>({$implicit:t}),bt=(t,a)=>({checked:t,class:a});function It(t,a){}function xt(t,a){t&1&&p(0,It,0,0,"ng-template")}function St(t,a){if(t&1&&p(0,xt,1,0,null,4),t&2){let e=a.class,n=r(2);s("ngTemplateOutlet",n.itemCheckboxIconTemplate)("ngTemplateOutletContext",P(2,bt,n.selected,e))}}function vt(t,a){t&1&&(x(0),p(1,St,1,5,"ng-template",null,0,k),S())}function Tt(t,a){if(t&1&&(u(0,"span"),M(1),h()),t&2){let e,n=r();c(),D((e=n.label)!==null&&e!==void 0?e:"empty")}}function Ct(t,a){t&1&&O(0)}var Ot=["item"],wt=["group"],Vt=["loader"],kt=["header"],Ft=["filter"],Mt=["footer"],Et=["emptyfilter"],Lt=["empty"],$t=["selecteditems"],At=["checkicon"],zt=["loadingicon"],Dt=["filtericon"],Rt=["removetokenicon"],Pt=["chipicon"],Kt=["clearicon"],Qt=["dropdownicon"],Ht=["itemcheckboxicon"],Nt=["headercheckboxicon"],Gt=["overlay"],qt=["filterInput"],Bt=["focusInput"],Zt=["items"],jt=["scroller"],Ut=["lastHiddenFocusableEl"],Wt=["firstHiddenFocusableEl"],Yt=["headerCheckbox"],Jt=[[["p-header"]],[["p-footer"]]],Xt=["p-header","p-footer"],ei=()=>({class:"p-multiselect-chip-icon"}),ti=(t,a)=>({$implicit:t,removeChip:a}),_t=t=>({options:t}),ii=(t,a,e)=>({checked:t,partialSelected:a,class:e}),ht=(t,a)=>({$implicit:t,options:a}),ni=()=>({});function li(t,a){if(t&1&&(x(0),M(1),S()),t&2){let e=r(2);c(),D(e.label()||"empty")}}function oi(t,a){if(t&1&&M(0),t&2){let e=r(3);J(" ",e.getSelectedItemsLabel()," ")}}function ai(t,a){t&1&&O(0)}function si(t,a){if(t&1){let e=w();u(0,"span",28),T("click",function(i){y(e);let l=r(4).$implicit,o=r(4);return b(o.removeOption(l,i))}),p(1,ai,1,0,"ng-container",29),h()}if(t&2){let e=r(8);v("data-pc-section","clearicon")("aria-hidden",!0),c(),s("ngTemplateOutlet",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)("ngTemplateOutletContext",re(4,ei))}}function ri(t,a){if(t&1&&(x(0),p(1,si,2,5,"span",27),S()),t&2){let e=r(7);c(),s("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function ci(t,a){if(t&1&&p(0,ri,2,1,"ng-container",20),t&2){let e=r(6);s("ngIf",!e.disabled&&!e.readonly)}}function pi(t,a){t&1&&(x(0),p(1,ci,1,1,"ng-template",null,5,k),S())}function di(t,a){if(t&1){let e=w();u(0,"div",24,4)(2,"p-chip",26),T("onRemove",function(i){let l=y(e).$implicit,o=r(4);return b(o.removeOption(l,i))}),p(3,pi,3,0,"ng-container",20),h()()}if(t&2){let e=a.$implicit,n=r(4);c(2),s("label",n.getLabelByValue(e))("removable",!n.disabled&&!n.readonly)("removeIcon",n.chipIcon),c(),s("ngIf",n.chipIconTemplate||n._chipIconTemplate||n.removeTokenIconTemplate||n._removeTokenIconTemplate)}}function ui(t,a){if(t&1&&p(0,di,4,4,"div",25),t&2){let e=r(3);s("ngForOf",e.chipSelectedItems())}}function mi(t,a){if(t&1&&(x(0),M(1),S()),t&2){let e=r(3);c(),D(e.placeholder()||e.defaultLabel||"empty")}}function _i(t,a){if(t&1&&(x(0),p(1,oi,1,1)(2,ui,1,1,"div",24)(3,mi,2,1,"ng-container",20),S()),t&2){let e=r(2);c(),Y(e.chipSelectedItems()&&e.chipSelectedItems().length===e.maxSelectedLabels?1:2),c(2),s("ngIf",!e.modelValue()||e.modelValue().length===0)}}function hi(t,a){if(t&1&&(x(0),p(1,li,2,1,"ng-container",20)(2,_i,4,2,"ng-container",20),S()),t&2){let e=r();c(),s("ngIf",e.display==="comma"),c(),s("ngIf",e.display==="chip")}}function fi(t,a){t&1&&O(0)}function gi(t,a){if(t&1&&(x(0),M(1),S()),t&2){let e=r(2);c(),D(e.placeholder()||e.defaultLabel||"empty")}}function yi(t,a){if(t&1&&(x(0),p(1,fi,1,0,"ng-container",29)(2,gi,2,1,"ng-container",20),S()),t&2){let e=r();c(),s("ngTemplateOutlet",e.selectedItemsTemplate||e._selectedItemsTemplate)("ngTemplateOutletContext",P(3,ti,e.selectedOptions,e.removeOption.bind(e))),c(),s("ngIf",!e.modelValue()||e.modelValue().length===0)}}function bi(t,a){if(t&1){let e=w();u(0,"TimesIcon",31),T("click",function(i){y(e);let l=r(2);return b(l.clear(i))}),h()}t&2&&v("data-pc-section","clearicon")("aria-hidden",!0)}function Ii(t,a){}function xi(t,a){t&1&&p(0,Ii,0,0,"ng-template")}function Si(t,a){if(t&1){let e=w();u(0,"span",31),T("click",function(i){y(e);let l=r(2);return b(l.clear(i))}),p(1,xi,1,0,null,32),h()}if(t&2){let e=r(2);v("data-pc-section","clearicon")("aria-hidden",!0),c(),s("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function vi(t,a){if(t&1&&(x(0),p(1,bi,1,2,"TimesIcon",30)(2,Si,2,3,"span",30),S()),t&2){let e=r();c(),s("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),s("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Ti(t,a){t&1&&O(0)}function Ci(t,a){if(t&1&&(x(0),p(1,Ti,1,0,"ng-container",32),S()),t&2){let e=r(2);c(),s("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Oi(t,a){if(t&1&&$(0,"span",35),t&2){let e=r(3);s("ngClass","p-multiselect-loading-icon pi-spin "+e.loadingIcon)}}function wi(t,a){t&1&&$(0,"span",36),t&2&&W("p-multiselect-loading-icon pi pi-spinner pi-spin")}function Vi(t,a){if(t&1&&(x(0),p(1,Oi,1,1,"span",33)(2,wi,1,2,"span",34),S()),t&2){let e=r(2);c(),s("ngIf",e.loadingIcon),c(),s("ngIf",!e.loadingIcon)}}function ki(t,a){if(t&1&&(x(0),p(1,Ci,2,1,"ng-container",20)(2,Vi,3,2,"ng-container",20),S()),t&2){let e=r();c(),s("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),s("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Fi(t,a){if(t&1&&$(0,"span",40),t&2){let e=r(3);s("ngClass",e.dropdownIcon),v("data-pc-section","triggericon")("aria-hidden",!0)}}function Mi(t,a){t&1&&$(0,"ChevronDownIcon",41),t&2&&(s("styleClass","p-multiselect-dropdown-icon"),v("data-pc-section","triggericon")("aria-hidden",!0))}function Ei(t,a){if(t&1&&(x(0),p(1,Fi,1,3,"span",38)(2,Mi,1,3,"ChevronDownIcon",39),S()),t&2){let e=r(2);c(),s("ngIf",e.dropdownIcon),c(),s("ngIf",!e.dropdownIcon)}}function Li(t,a){}function $i(t,a){t&1&&p(0,Li,0,0,"ng-template")}function Ai(t,a){if(t&1&&(u(0,"span",42),p(1,$i,1,0,null,32),h()),t&2){let e=r(2);v("data-pc-section","triggericon")("aria-hidden",!0),c(),s("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zi(t,a){if(t&1&&p(0,Ei,3,2,"ng-container",20)(1,Ai,2,3,"span",37),t&2){let e=r();s("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),c(),s("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Di(t,a){t&1&&O(0)}function Ri(t,a){t&1&&O(0)}function Pi(t,a){if(t&1&&(x(0),p(1,Ri,1,0,"ng-container",29),S()),t&2){let e=r(3);c(),s("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",V(2,_t,e.filterOptions))}}function Ki(t,a){if(t&1&&$(0,"CheckIcon",41),t&2){let e=r().class;s("styleClass",e),v("data-pc-section","icon")}}function Qi(t,a){}function Hi(t,a){t&1&&p(0,Qi,0,0,"ng-template")}function Ni(t,a){if(t&1&&p(0,Ki,1,2,"CheckIcon",39)(1,Hi,1,0,null,29),t&2){let e=a.class,n=r(5);s("ngIf",!n.headerCheckboxIconTemplate&&!n._headerCheckboxIconTemplate&&n.allSelected()),c(),s("ngTemplateOutlet",n.headerCheckboxIconTemplate||n._headerCheckboxIconTemplate)("ngTemplateOutletContext",ce(3,ii,n.allSelected(),n.partialSelected(),e))}}function Gi(t,a){if(t&1){let e=w();u(0,"p-checkbox",51,10),T("onChange",function(i){y(e);let l=r(4);return b(l.onToggleAll(i))}),p(2,Ni,2,7,"ng-template",null,11,k),h()}if(t&2){let e=r(4);s("ngModel",e.allSelected())("ariaLabel",e.toggleAllAriaLabel)("binary",!0)("variant",e.variant)("disabled",e.disabled)}}function qi(t,a){t&1&&$(0,"SearchIcon",41),t&2&&s("styleClass","p-multiselect-filter-icon")}function Bi(t,a){}function Zi(t,a){t&1&&p(0,Bi,0,0,"ng-template")}function ji(t,a){if(t&1&&(u(0,"span",55),p(1,Zi,1,0,null,32),h()),t&2){let e=r(5);c(),s("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Ui(t,a){if(t&1){let e=w();u(0,"div",52)(1,"p-iconfield")(2,"input",53,12),T("input",function(i){y(e);let l=r(4);return b(l.onFilterInputChange(i))})("keydown",function(i){y(e);let l=r(4);return b(l.onFilterKeyDown(i))})("click",function(i){y(e);let l=r(4);return b(l.onInputClick(i))})("blur",function(i){y(e);let l=r(4);return b(l.onFilterBlur(i))}),h(),u(4,"p-inputicon"),p(5,qi,1,1,"SearchIcon",39)(6,ji,2,1,"span",54),h()()()}if(t&2){let e=r(4);c(2),s("variant",e.variant)("value",e._filterValue()||"")("disabled",e.disabled),v("autocomplete",e.autocomplete)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),c(3),s("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),s("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function Wi(t,a){if(t&1&&p(0,Gi,4,5,"p-checkbox",49)(1,Ui,7,10,"div",50),t&2){let e=r(3);s("ngIf",e.showToggleAll&&!e.selectionLimit),c(),s("ngIf",e.filter)}}function Yi(t,a){if(t&1&&(u(0,"div",48),se(1),p(2,Pi,2,4,"ng-container",22)(3,Wi,2,2,"ng-template",null,9,k),h()),t&2){let e=R(4),n=r(2);c(2),s("ngIf",n.filterTemplate||n._filterTemplate)("ngIfElse",e)}}function Ji(t,a){t&1&&O(0)}function Xi(t,a){if(t&1&&p(0,Ji,1,0,"ng-container",29),t&2){let e=a.$implicit,n=a.options;r(2);let i=R(9);s("ngTemplateOutlet",i)("ngTemplateOutletContext",P(2,ht,e,n))}}function en(t,a){t&1&&O(0)}function tn(t,a){if(t&1&&p(0,en,1,0,"ng-container",29),t&2){let e=a.options,n=r(4);s("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",V(2,_t,e))}}function nn(t,a){t&1&&(x(0),p(1,tn,1,4,"ng-template",null,14,k),S())}function ln(t,a){if(t&1){let e=w();u(0,"p-scroller",56,13),T("onLazyLoad",function(i){y(e);let l=r(2);return b(l.onLazyLoad.emit(i))}),p(2,Xi,1,5,"ng-template",null,3,k)(4,nn,3,0,"ng-container",20),h()}if(t&2){let e=r(2);U(V(9,B,e.scrollHeight)),s("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),s("ngIf",e.loaderTemplate||e._loaderTemplate)}}function on(t,a){t&1&&O(0)}function an(t,a){if(t&1&&(x(0),p(1,on,1,0,"ng-container",29),S()),t&2){r();let e=R(9),n=r();c(),s("ngTemplateOutlet",e)("ngTemplateOutletContext",P(3,ht,n.visibleOptions(),re(2,ni)))}}function sn(t,a){if(t&1&&(u(0,"span"),M(1),h()),t&2){let e=r(2).$implicit,n=r(3);c(),D(n.getOptionGroupLabel(e.optionGroup))}}function rn(t,a){t&1&&O(0)}function cn(t,a){if(t&1&&(x(0),u(1,"li",60),p(2,sn,2,1,"span",20)(3,rn,1,0,"ng-container",29),h(),S()),t&2){let e=r(),n=e.$implicit,i=e.index,l=r().options,o=r(2);c(),s("ngStyle",V(5,B,l.itemSize+"px")),v("id",o.id+"_"+o.getOptionIndex(i,l)),c(),s("ngIf",!o.groupTemplate),c(),s("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",V(7,mt,n.optionGroup))}}function pn(t,a){if(t&1){let e=w();x(0),u(1,"p-multiselect-item",61),T("onClick",function(i){y(e);let l=r().index,o=r().options,d=r(2);return b(d.onOptionSelect(i,!1,d.getOptionIndex(l,o)))})("onMouseEnter",function(i){y(e);let l=r().index,o=r().options,d=r(2);return b(d.onOptionMouseEnter(i,d.getOptionIndex(l,o)))}),h(),S()}if(t&2){let e=r(),n=e.$implicit,i=e.index,l=r().options,o=r(2);c(),s("id",o.id+"_"+o.getOptionIndex(i,l))("option",n)("selected",o.isSelected(n))("label",o.getOptionLabel(n))("disabled",o.isOptionDisabled(n))("template",o.itemTemplate||o._itemTemplate)("checkIconTemplate",o.checkIconTemplate||o._checkIconTemplate)("itemCheckboxIconTemplate",o.itemCheckboxIconTemplate||o._itemCheckboxIconTemplate)("itemSize",l.itemSize)("focused",o.focusedOptionIndex()===o.getOptionIndex(i,l))("ariaPosInset",o.getAriaPosInset(o.getOptionIndex(i,l)))("ariaSetSize",o.ariaSetSize)("variant",o.variant)("highlightOnSelect",o.highlightOnSelect)}}function dn(t,a){if(t&1&&p(0,cn,4,9,"ng-container",20)(1,pn,2,14,"ng-container",20),t&2){let e=a.$implicit,n=r(3);s("ngIf",n.isOptionGroup(e)),c(),s("ngIf",!n.isOptionGroup(e))}}function un(t,a){if(t&1&&M(0),t&2){let e=r(4);J(" ",e.emptyFilterMessageLabel," ")}}function mn(t,a){t&1&&O(0)}function _n(t,a){if(t&1&&p(0,mn,1,0,"ng-container",32),t&2){let e=r(4);s("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyFilterTemplate)}}function hn(t,a){if(t&1&&(u(0,"li",62),p(1,un,1,1)(2,_n,1,1,"ng-container"),h()),t&2){let e=r().options,n=r(2);s("ngStyle",V(2,B,e.itemSize+"px")),c(),Y(!n.emptyFilterTemplate&&!n._emptyFilterTemplate&&!n.emptyTemplate&&!n._emptyTemplate?1:2)}}function fn(t,a){if(t&1&&M(0),t&2){let e=r(4);J(" ",e.emptyMessageLabel," ")}}function gn(t,a){t&1&&O(0)}function yn(t,a){if(t&1&&p(0,gn,1,0,"ng-container",32),t&2){let e=r(4);s("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function bn(t,a){if(t&1&&(u(0,"li",62),p(1,fn,1,1)(2,yn,1,1,"ng-container"),h()),t&2){let e=r().options,n=r(2);s("ngStyle",V(2,B,e.itemSize+"px")),c(),Y(!n.emptyTemplate&&!n._emptyTemplate?1:2)}}function In(t,a){if(t&1&&(u(0,"ul",57,15),p(2,dn,2,2,"ng-template",58)(3,hn,3,4,"li",59)(4,bn,3,4,"li",59),h()),t&2){let e=a.$implicit,n=a.options,i=r(2);U(n.contentStyle),s("ngClass",n.contentStyleClass),v("aria-label",i.listLabel),c(2),s("ngForOf",e),c(),s("ngIf",i.hasFilter()&&i.isEmpty()),c(),s("ngIf",!i.hasFilter()&&i.isEmpty())}}function xn(t,a){t&1&&O(0)}function Sn(t,a){if(t&1&&(u(0,"div"),se(1,1),p(2,xn,1,0,"ng-container",32),h()),t&2){let e=r(2);c(2),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function vn(t,a){if(t&1){let e=w();u(0,"div",43)(1,"span",44,6),T("focus",function(i){y(e);let l=r();return b(l.onFirstHiddenFocus(i))}),h(),p(3,Di,1,0,"ng-container",32)(4,Yi,5,2,"div",45),u(5,"div",46),p(6,ln,5,11,"p-scroller",47)(7,an,2,6,"ng-container",20)(8,In,5,7,"ng-template",null,7,k),h(),p(10,Sn,3,1,"div",20),u(11,"span",44,8),T("focus",function(i){y(e);let l=r();return b(l.onLastHiddenFocus(i))}),h()()}if(t&2){let e=r();W(e.panelStyleClass),s("ngClass","p-multiselect-overlay p-component")("ngStyle",e.panelStyle),v("id",e.id+"_list"),c(),v("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),s("ngIf",e.showHeader),c(),we("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),c(),s("ngIf",e.virtualScroll),c(),s("ngIf",!e.virtualScroll),c(3),s("ngIf",e.footerFacet||e.footerTemplate||e._footerTemplate),c(),v("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Tn=({dt:t})=>`
|
|
2
|
-
.p-multiselect {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
position: relative;
|
|
6
|
-
user-select: none;
|
|
7
|
-
background: ${t("multiselect.background")};
|
|
8
|
-
border: 1px solid ${t("multiselect.border.color")};
|
|
9
|
-
transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")};
|
|
10
|
-
border-radius: ${t("multiselect.border.radius")};
|
|
11
|
-
outline-color: transparent;
|
|
12
|
-
box-shadow: ${t("multiselect.shadow")};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.p-multiselect.ng-invalid.ng-dirty {
|
|
16
|
-
border-color: ${t("multiselect.invalid.border.color")};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.p-multiselect:not(.p-disabled):hover {
|
|
20
|
-
border-color: ${t("multiselect.hover.border.color")};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.p-multiselect:not(.p-disabled).p-focus {
|
|
24
|
-
border-color: ${t("multiselect.focus.border.color")};
|
|
25
|
-
box-shadow: ${t("multiselect.focus.ring.shadow")};
|
|
26
|
-
outline: ${t("multiselect.focus.ring.width")} ${t("multiselect.focus.ring.style")} ${t("multiselect.focus.ring.color")};
|
|
27
|
-
outline-offset: ${t("multiselect.focus.ring.offset")};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-multiselect.p-variant-filled {
|
|
31
|
-
background: ${t("multiselect.filled.background")};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.p-multiselect.p-variant-filled:not(.p-disabled):hover {
|
|
35
|
-
background: ${t("multiselect.filled.hover.background")};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.p-multiselect.p-variant-filled.p-focus {
|
|
39
|
-
background: ${t("multiselect.filled.focus.background")};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.p-multiselect.p-disabled {
|
|
43
|
-
opacity: 1;
|
|
44
|
-
background: ${t("multiselect.disabled.background")};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.p-multiselect-dropdown {
|
|
48
|
-
display: flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
flex-shrink: 0;
|
|
52
|
-
background: transparent;
|
|
53
|
-
color: ${t("multiselect.dropdown.color")};
|
|
54
|
-
width: ${t("multiselect.dropdown.width")};
|
|
55
|
-
border-start-end-radius: ${t("multiselect.border.radius")};
|
|
56
|
-
border-end-end-radius: ${t("multiselect.border.radius")};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-multiselect-label-container {
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
flex: 1 1 auto;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.p-multiselect-label {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items-center;
|
|
68
|
-
gap: calc(${t("multiselect.padding.y")} / 2);
|
|
69
|
-
white-space: nowrap;
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
text-overflow: ellipsis;
|
|
73
|
-
padding: ${t("multiselect.padding.y")} ${t("multiselect.padding.x")};
|
|
74
|
-
color: ${t("multiselect.color")};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.p-multiselect-label.p-placeholder {
|
|
78
|
-
color: ${t("multiselect.placeholder.color")};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
p-multiSelect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
|
82
|
-
p-multi-select.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
|
83
|
-
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
|
|
84
|
-
color: ${t("multiselect.invalid.placeholder.color")};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-multiselect.p-disabled .p-multiselect-label {
|
|
88
|
-
color: ${t("multiselect.disabled.color")};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-multiselect-label-empty {
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
visibility: hidden;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.p-multiselect .p-multiselect-overlay {
|
|
97
|
-
min-width: 100%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.p-multiselect-overlay {
|
|
101
|
-
background: ${t("multiselect.overlay.background")};
|
|
102
|
-
color: ${t("multiselect.overlay.color")};
|
|
103
|
-
border: 1px solid ${t("multiselect.overlay.border.color")};
|
|
104
|
-
border-radius: ${t("multiselect.overlay.border.radius")};
|
|
105
|
-
box-shadow: ${t("multiselect.overlay.shadow")};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.p-multiselect-header {
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
padding: ${t("multiselect.list.header.padding")};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.p-multiselect-header .p-checkbox {
|
|
115
|
-
margin-inline-end: ${t("multiselect.option.gap")};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.p-multiselect-filter-container {
|
|
119
|
-
flex: 1 1 auto;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.p-multiselect-filter {
|
|
123
|
-
width: 100%;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.p-multiselect-list-container {
|
|
127
|
-
overflow: auto;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.p-multiselect-list {
|
|
131
|
-
margin: 0;
|
|
132
|
-
padding: 0;
|
|
133
|
-
list-style-type: none;
|
|
134
|
-
padding: ${t("multiselect.list.padding")};
|
|
135
|
-
display: flex;
|
|
136
|
-
flex-direction: column;
|
|
137
|
-
gap: ${t("multiselect.list.gap")}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.p-multiselect-option {
|
|
141
|
-
cursor: pointer;
|
|
142
|
-
font-weight: normal;
|
|
143
|
-
white-space: nowrap;
|
|
144
|
-
position: relative;
|
|
145
|
-
overflow: hidden;
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
gap: ${t("multiselect.option.gap")};
|
|
149
|
-
padding: ${t("multiselect.option.padding")};
|
|
150
|
-
border: 0 none;
|
|
151
|
-
color: ${t("multiselect.option.color")};
|
|
152
|
-
background: transparent;
|
|
153
|
-
transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")};
|
|
154
|
-
border-radius: ${t("multiselect.option.border.radius")}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
|
|
158
|
-
background: ${t("multiselect.option.focus.background")};
|
|
159
|
-
color: ${t("multiselect.option.focus.color")};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.p-multiselect-option.p-multiselect-option-selected {
|
|
163
|
-
background: ${t("multiselect.option.selected.background")};
|
|
164
|
-
color: ${t("multiselect.option.selected.color")};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.p-multiselect-option.p-multiselect-option-selected.p-focus {
|
|
168
|
-
background: ${t("multiselect.option.selected.focus.background")};
|
|
169
|
-
color: ${t("multiselect.option.selected.focus.color")};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.p-multiselect-option-group {
|
|
173
|
-
cursor: auto;
|
|
174
|
-
margin: 0;
|
|
175
|
-
padding: ${t("multiselect.option.group.padding")};
|
|
176
|
-
background: ${t("multiselect.option.group.background")};
|
|
177
|
-
color: ${t("multiselect.option.group.color")};
|
|
178
|
-
font-weight: ${t("multiselect.option.group.font.weight")};
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.p-multiselect-empty-message {
|
|
182
|
-
padding: ${t("multiselect.empty.message.padding")};
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.p-multiselect-label .p-chip {
|
|
186
|
-
padding-top: calc(${t("multiselect.padding.y")} / 2);
|
|
187
|
-
padding-bottom: calc(${t("multiselect.padding.y")} / 2);
|
|
188
|
-
border-radius: ${t("multiselect.chip.border.radius")};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.p-multiselect-label:has(.p-chip) {
|
|
192
|
-
padding: calc(${t("multiselect.padding.y")} / 2) calc(${t("multiselect.padding.x")} / 2);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.p-multiselect-fluid {
|
|
196
|
-
display: flex;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.p-multiselect-sm .p-multiselect-label {
|
|
200
|
-
font-size: ${t("multiselect.sm.font.size")};
|
|
201
|
-
padding-block: ${t("multiselect.sm.padding.y")};
|
|
202
|
-
padding-inline: ${t("multiselect.sm.padding.x")};
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.p-multiselect-sm .p-multiselect-dropdown .p-icon {
|
|
206
|
-
font-size: ${t("multiselect.sm.font.size")};
|
|
207
|
-
width: ${t("multiselect.sm.font.size")};
|
|
208
|
-
height: ${t("multiselect.sm.font.size")};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.p-multiselect-lg .p-multiselect-label {
|
|
212
|
-
font-size: ${t("multiselect.lg.font.size")};
|
|
213
|
-
padding-block: ${t("multiselect.lg.padding.y")};
|
|
214
|
-
padding-inline: ${t("multiselect.lg.padding.x")};
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.p-multiselect-lg .p-multiselect-dropdown .p-icon {
|
|
218
|
-
font-size: ${t("multiselect.lg.font.size")};
|
|
219
|
-
width: ${t("multiselect.lg.font.size")};
|
|
220
|
-
height: ${t("multiselect.lg.font.size")};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.p-multiselect-clear-icon {
|
|
224
|
-
cursor: pointer;
|
|
225
|
-
display: flex;
|
|
226
|
-
align-items: center;
|
|
227
|
-
justify-content: center;
|
|
228
|
-
flex-shrink: 0;
|
|
229
|
-
background: transparent;
|
|
230
|
-
color: ${t("multiselect.clear.icon.color")};
|
|
231
|
-
}`,Cn={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},On={root:({instance:t})=>({"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?t.variant==="filled":t.config.inputStyle==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size==="small","p-multiselect-lg p-inputfield-lg":t.size==="large"}),labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t,option:a,index:e,getItemOptions:n})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.isSelected(a)&&t.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(e,n),"p-disabled":t.isOptionDisabled(a)}),emptyMessage:"p-multiselect-empty-message"},ut=(()=>{class t extends We{name="multiselect";theme=Tn;classes=On;inlineStyles=Cn;static \u0275fac=(()=>{let e;return function(i){return(e||(e=ne(t)))(i||t)}})();static \u0275prov=Se({token:t,factory:t.\u0275fac})}return t})();var wn={provide:ze,useExisting:xe(()=>ft),multi:!0},Vn=(()=>{class t extends be{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new C;onMouseEnter=new C;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ne(t)))(i||t)}})();static \u0275cmp=le({type:t,selectors:[["p-multiSelectItem"],["p-multiselect-item"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",g],label:"label",disabled:[2,"disabled","disabled",g],itemSize:[2,"itemSize","itemSize",K],focused:[2,"focused","focused",g],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",g]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[ae,oe],decls:5,vars:28,consts:[["checkboxicon",""],["pRipple","","role","option",1,"p-multiselect-option",3,"click","mouseenter","ngStyle","ngClass","id"],[3,"ngModel","binary","tabindex","variant","ariaLabel"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(u(0,"li",1),T("click",function(o){return i.onOptionClick(o)})("mouseenter",function(o){return i.onOptionMouseEnter(o)}),u(1,"p-checkbox",2),p(2,vt,3,0,"ng-container",3),h(),p(3,Tt,2,1,"span",3)(4,Ct,1,0,"ng-container",4),h()),n&2&&(s("ngStyle",V(20,B,i.itemSize+"px"))("ngClass",ce(22,yt,i.selected&&i.highlightOnSelect,i.disabled,i.focused))("id",i.id),v("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled)("aria-checked",i.selected),c(),s("ngModel",i.selected)("binary",!0)("tabindex",-1)("variant",i.variant)("ariaLabel",i.label),c(),s("ngIf",i.itemCheckboxIconTemplate),c(),s("ngIf",!i.template),c(),s("ngTemplateOutlet",i.template)("ngTemplateOutletContext",V(26,mt,i.option)))},dependencies:[_e,pe,de,me,ue,Ie,ge,he,fe,at,G],encapsulation:2})}return t})(),ft=(()=>{class t extends be{zone;filterService;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;fluid;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;variant;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";size;showClear=!1;autofocus;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.log("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){Qe(this._options(),e)||this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;onChange=new C;onFilter=new C;onFocus=new C;onBlur=new C;onClick=new C;onClear=new C;onPanelShow=new C;onPanelHide=new C;onLazyLoad=new C;onRemove=new C;onSelectAllChange=new C;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=Te(ut);searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder=L(void 0);_itemSize;_selectionLimit;_disableTooltip=!1;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_checkIconTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"checkicon":this._checkIconTemplate=e.template,console.warn("checkicon is deprecated and will removed in future. Use itemcheckboxicon or headercheckboxicon templates instead.");break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=L(null);_filterValue=L(null);_options=L(null);startRangeIndex=L(-1);focusedOptionIndex=L(-1);selectedOptions;clickInProgress=!1;get hostClasses(){let e=[];return typeof this.rootClass=="string"?e.push(this.rootClass):Array.isArray(this.rootClass)?e.push(...this.rootClass):typeof this.rootClass=="object"&&Object.keys(this.rootClass).filter(n=>this.rootClass[n]).forEach(n=>e.push(n)),this.styleClass&&e.push(this.styleClass),e.join(" ")}get rootClass(){return this._componentStyle.classes.root({instance:this})}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(q.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(q.EMPTY_FILTER_MESSAGE)}get filled(){return typeof this.modelValue()=="string"?!!this.modelValue():E(this.modelValue())}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&E(this.modelValue())&&this.showClear&&!this.disabled&&!this.readonly&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get listLabel(){return this.config.getTranslation(q.ARIA).listLabel}get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=X(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=He(e)&&Je.isObject(e[0]);if(this._filterValue()){let i;if(n?i=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):i=e.filter(l=>l.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let l=this.options||[],o=[];return l.forEach(d=>{let Z=this.getOptionGroupChildren(d).filter(gt=>i.includes(gt));Z.length>0&&o.push(ie(te({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...Z]}))}),this.flatOptions(o)}return i}return e});label=X(()=>{let e,n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(E(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let i=0;i<n.length;i++)i!==0&&(e+=", "),e+=this.getLabelByValue(n[i])}else e=this.placeholder()||this.defaultLabel||"";return e});chipSelectedItems=X(()=>E(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,i){super(),this.zone=e,this.filterService=n,this.overlayService=i,$e(()=>{let l=this.modelValue(),o=this.getAllVisibleAndNonVisibleOptions();o&&E(o)&&(this.optionValue&&this.optionLabel&&l?this.selectedOptions=o.filter(d=>l.includes(d[this.optionLabel])||l.includes(d[this.optionValue])):this.selectedOptions=l,this.cd.markForCheck())})}ngOnInit(){super.ngOnInit(),this.id=this.id||Ge("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}ngAfterViewInit(){super.ngAfterViewInit(),this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,i,l)=>{n.push({optionGroup:i,group:!0,index:l});let o=this.getOptionGroupChildren(i);return o&&o.forEach(d=>n.push(d)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,i=-1){let{originalEvent:l,option:o}=e;if(this.disabled||this.isOptionDisabled(o))return;let d=this.isSelected(o),f=null;d?f=this.modelValue().filter(Z=>!H(Z,this.getOptionValue(o),this.equalityKey())):f=[...this.modelValue()||[],this.getOptionValue(o)],this.updateModel(f,l),i!==-1&&this.focusedOptionIndex.set(i),n&&A(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:f,itemValue:o})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,n=-1,i=-1){if(n===-1&&(n=this.findNearestSelectedOptionIndex(i,!0)),i===-1&&(i=this.findNearestSelectedOptionIndex(n)),n!==-1&&i!==-1){let l=Math.min(n,i),o=Math.max(n,i),d=this.visibleOptions().slice(l,o+1).filter(f=>this.isValidOption(f)).map(f=>this.getOptionValue(f));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,n=!1){let i=-1;return this.hasSelectedOption()&&(n?(i=this.findPrevSelectedOptionIndex(e),i=i===-1?this.findNextSelectedOptionIndex(e):i):(i=this.findNextSelectedOptionIndex(e),i=i===-1?this.findPrevSelectedOptionIndex(e):i)),i>-1?i:e}findPrevSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e>0?N(this.visibleOptions().slice(0,e),i=>this.isValidSelectedOption(i)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidSelectedOption(i)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return E(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?z(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let n=this.getOptionValue(e);return(this.modelValue()||[]).some(i=>H(i,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let i=(this.group?this.flatOptions(this._options()):this._options()||[]).find(l=>!this.isOptionGroup(l)&&H(this.getOptionValue(l),e,this.equalityKey()));return i?this.getOptionLabel(i):null}getSelectedItemsLabel(){let e=/{(.*?)}/,n=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(q.SELECTION_MESSAGE);return e.test(n)?n.replace(n.match(e)[0],this.modelValue().length+""):n}getOptionLabel(e){return this.optionLabel?z(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?z(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?z(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?z(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled){e.preventDefault();return}let n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&n){let i=this.visibleOptions().filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(i,e),e.preventDefault();break}!n&&Ne(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,i,this.startRangeIndex()),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(0,e.shiftKey?l:0),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findFirstOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(e.shiftKey?0:l,l),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findLastFocusedOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,this.startRangeIndex(),o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.stopPropagation(),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(A(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(this.focusedOptionIndex()!==-1&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.loading||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Pe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;A(n)}onInputFocus(e){this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ke(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;A(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"Space":this.onToggleAll(e);break;case"Enter":this.onToggleAll(e);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!(this.disabled||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let n=this.getAllVisibleAndNonVisibleOptions().filter(f=>this.isSelected(f)&&(this.optionDisabled?z(f,this.optionDisabled):f&&f.disabled!==void 0?f.disabled:!1)),i=this.allSelected()?this.visibleOptions().filter(f=>!this.isValidOption(f)&&this.isSelected(f)):this.visibleOptions().filter(f=>this.isSelected(f)||this.isValidOption(f)),o=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(f=>this.isSelected(f)&&this.isValidOption(f)):[],...n,...i].map(f=>this.getOptionValue(f)),d=[...new Set(o)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=null,this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),Ye.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=ee(this.itemsViewChild.nativeElement,`li[id="${n}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return this.selectAll!==null?this.selectAll:E(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<this.options.length}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(n),e&&A(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&De(),e&&A(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=ee(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=ee(this.itemsWrapper,'[data-p-highlight="true"]');n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e))}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateModel(null,e),this.selectedOptions=null,this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,n){let i=this.modelValue().filter(l=>!H(l,e,this.equalityKey()));this.updateModel(i,n),this.onChange.emit({originalEvent:n,value:i,itemValue:e}),this.onRemove.emit({newValue:i,removed:e}),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?Q(n.children[0],"p-disabled")||ye(n.children[0])||Q(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?Q(n.children[0],"p-disabled")||ye(n.children[0])||Q(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?N(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?N(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return N(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,l=!1;return this.focusedOptionIndex()!==-1?(i=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)),i=i===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)):i+this.focusedOptionIndex()):i=this.visibleOptions().findIndex(o=>this.isOptionMatched(o)),i!==-1&&(l=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),l}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=[];for(let n of this.options){let i=this.filterService.filter(this.getOptionGroupChildren(n),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push(ie(te({},n),{[this.optionGroupChildren]:i}))}this._filteredOptions=e}else this._filteredOptions=this.filterService.filter(this.options,this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);else this._filteredOptions=null}hasFocusableElements(){return Re(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(j(Ce),j(qe),j(Be))};static \u0275cmp=le({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(n,i,l){if(n&1&&(I(l,je,5),I(l,Ze,5),I(l,Ot,4),I(l,wt,4),I(l,Vt,4),I(l,kt,4),I(l,Ft,4),I(l,Mt,4),I(l,Et,4),I(l,Lt,4),I(l,$t,4),I(l,At,4),I(l,zt,4),I(l,Dt,4),I(l,Rt,4),I(l,Pt,4),I(l,Kt,4),I(l,Qt,4),I(l,Ht,4),I(l,Nt,4),I(l,Ue,4)),n&2){let o;m(o=_())&&(i.footerFacet=o.first),m(o=_())&&(i.headerFacet=o.first),m(o=_())&&(i.itemTemplate=o.first),m(o=_())&&(i.groupTemplate=o.first),m(o=_())&&(i.loaderTemplate=o.first),m(o=_())&&(i.headerTemplate=o.first),m(o=_())&&(i.filterTemplate=o.first),m(o=_())&&(i.footerTemplate=o.first),m(o=_())&&(i.emptyFilterTemplate=o.first),m(o=_())&&(i.emptyTemplate=o.first),m(o=_())&&(i.selectedItemsTemplate=o.first),m(o=_())&&(i.checkIconTemplate=o.first),m(o=_())&&(i.loadingIconTemplate=o.first),m(o=_())&&(i.filterIconTemplate=o.first),m(o=_())&&(i.removeTokenIconTemplate=o.first),m(o=_())&&(i.chipIconTemplate=o.first),m(o=_())&&(i.clearIconTemplate=o.first),m(o=_())&&(i.dropdownIconTemplate=o.first),m(o=_())&&(i.itemCheckboxIconTemplate=o.first),m(o=_())&&(i.headerCheckboxIconTemplate=o.first),m(o=_())&&(i.templates=o)}},viewQuery:function(n,i){if(n&1&&(F(Gt,5),F(qt,5),F(Bt,5),F(Zt,5),F(jt,5),F(Ut,5),F(Wt,5),F(Yt,5)),n&2){let l;m(l=_())&&(i.overlayViewChild=l.first),m(l=_())&&(i.filterInputChild=l.first),m(l=_())&&(i.focusInputViewChild=l.first),m(l=_())&&(i.itemsViewChild=l.first),m(l=_())&&(i.scroller=l.first),m(l=_())&&(i.lastHiddenFocusableElementOnOverlay=l.first),m(l=_())&&(i.firstHiddenFocusableElementOnOverlay=l.first),m(l=_())&&(i.headerCheckboxViewChild=l.first)}},hostVars:7,hostBindings:function(n,i){n&1&&T("click",function(o){return i.onContainerClick(o)}),n&2&&(v("id",i.id),U(i.style),W(i.hostClasses),Ve("p-variant-filled",i.variant==="filled"||i.config.inputVariant()==="filled"||i.config.inputStyle()==="filled"))},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:[2,"disabled","disabled",g],fluid:[2,"fluid","fluid",g],readonly:[2,"readonly","readonly",g],group:[2,"group","group",g],filter:[2,"filter","filter",g],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",g],tabindex:[2,"tabindex","tabindex",K],variant:"variant",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",K],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",g],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",g],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",g],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",g],virtualScroll:[2,"virtualScroll","virtualScroll",g],loading:[2,"loading","loading",g],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",K],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",g],display:"display",autocomplete:"autocomplete",size:"size",showClear:[2,"showClear","showClear",g],autofocus:[2,"autofocus","autofocus",g],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",g],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",g],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",g],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",g]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[Le([wn,ut]),ae,oe],ngContentSelectors:Xt,decls:16,vars:35,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["checkboxicon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible"],["role","combobox",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[1,"p-multiselect-label-container",3,"mouseleave","pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[1,"p-multiselect-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],[1,"p-multiselect-chip-item"],["class","p-multiselect-chip-item",4,"ngFor","ngForOf"],["styleClass","p-multiselect-chip",3,"onRemove","label","removable","removeIcon"],["class","p-multiselect-chip-icon",3,"click",4,"ngIf"],[1,"p-multiselect-chip-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-multiselect-dropdown-icon",4,"ngIf"],["class","p-multiselect-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-list-container"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-multiselect-header"],[3,"ngModel","ariaLabel","binary","variant","disabled","onChange",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],[3,"onChange","ngModel","ariaLabel","binary","variant","disabled"],[1,"p-multiselect-filter-container"],["pInputText","","type","text","role","searchbox",1,"p-multiselect-filter",3,"input","keydown","click","blur","variant","value","disabled"],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","selected","label","disabled","template","checkIconTemplate","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect"],["role","option",1,"p-multiselect-empty-message",3,"ngStyle"]],template:function(n,i){if(n&1){let l=w();ke(Jt),u(0,"div",16)(1,"input",17,0),T("focus",function(d){return y(l),b(i.onInputFocus(d))})("blur",function(d){return y(l),b(i.onInputBlur(d))})("keydown",function(d){return y(l),b(i.onKeyDown(d))}),h()(),u(3,"div",18),T("mouseleave",function(){return y(l),b(i.labelContainerMouseLeave())}),u(4,"div",19),p(5,hi,3,2,"ng-container",20)(6,yi,3,6,"ng-container",20),h()(),p(7,vi,3,2,"ng-container",20),u(8,"div",21),p(9,ki,3,2,"ng-container",22)(10,zi,2,2,"ng-template",null,1,k),h(),u(12,"p-overlay",23,2),Ee("visibleChange",function(d){return y(l),Me(i.overlayVisible,d)||(i.overlayVisible=d),b(d)}),T("onAnimationStart",function(d){return y(l),b(i.onOverlayAnimationStart(d))})("onHide",function(){return y(l),b(i.hide())}),p(14,vn,13,18,"ng-template",null,3,k),h()}if(n&2){let l,o=R(11);v("data-p-hidden-accessible",!0),c(),s("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),v("aria-disabled",i.disabled)("id",i.inputId)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(l=i.overlayVisible)!==null&&l!==void 0?l:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.disabled?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("value",i.label()||"empty"),c(2),s("pTooltip",i.tooltip)("tooltipDisabled",i._disableTooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass),c(),s("ngClass",i.labelClass),c(),s("ngIf",!i.selectedItemsTemplate&&!i._selectedItemsTemplate),c(),s("ngIf",i.selectedItemsTemplate||i._selectedItemsTemplate),c(),s("ngIf",i.isVisibleClearIcon),c(2),s("ngIf",i.loading)("ngIfElse",o),c(3),Fe("visible",i.overlayVisible),s("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[_e,pe,Ae,de,me,ue,Vn,pt,G,ct,st,rt,Xe,tt,it,et,nt,lt,ot,dt,Ie,ge,he,fe],encapsulation:2,changeDetection:0})}return t})(),pl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Oe({type:t});static \u0275inj=ve({imports:[ft,G,G]})}return t})();export{ft as a,pl as b};
|
package/chunk-RUVT4SCE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ne,b as ae}from"./chunk-SS3CMCAX.js";import{a as Z}from"./chunk-LYEN4UBW.js";import{a as ee,b as te}from"./chunk-OCLABZZW.js";import{h as I,l as B}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{a as X,b as Y}from"./chunk-5GQEUX4M.js";import{g as D}from"./chunk-33KLXB2L.js";import{f as Q,g as W}from"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import{v as K}from"./chunk-OWI3BWEZ.js";import{r as G,u as L}from"./chunk-ROKYJX6Q.js";import{a as $,d as q}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{a as k,c as z}from"./chunk-6BFODHTZ.js";import{n as y,s as U,t as R}from"./chunk-RUGQ4OJG.js";import{Bb as u,Fc as f,Gc as h,Ha as _,Ic as s,J as V,Kb as g,Tc as J,Ub as n,Vb as a,Vc as H,Wb as A,Z as T,_b as v,c as N,ca as j,dc as w,ec as m,gb as r,ia as d,mc as o,nc as l,qa as b,qc as F,ra as S,ub as E,vc as P}from"./chunk-VYKJK5YU.js";import{a as C,b as x}from"./chunk-EQDQRRRY.js";var O=(()=>{class t{constructor(){this.httpService=d(q)}getGenerateCoa(e){let c={params:new k().set("PageNumber",e.PageNumber).set("RowCount",e.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",c)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){let i={params:e};return this.httpService.get(void 0,"api/Tools/GetListCOA",i)}updateUnbalanceJournal(){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",{})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ce=()=>({"min-width":"50rem"});function me(t,p){if(t&1){let e=v();n(0,"p-button",6),w("onClick",function(){b(e);let c=m();return S(c.updateCoaBalance())}),a()}}function se(t,p){t&1&&(n(0,"tr")(1,"th"),o(2,"Code"),a(),n(3,"th"),o(4,"Name"),a(),n(5,"th"),o(6,"Outlet"),a(),n(7,"th"),o(8,"COA Balance"),a(),n(9,"th"),o(10,"Correct Balance"),a()())}function de(t,p){if(t&1&&(n(0,"tr")(1,"td"),o(2),a(),n(3,"td"),o(4),a(),n(5,"td"),o(6),a(),n(7,"td"),o(8),f(9,"number"),a(),n(10,"td"),o(11),f(12,"number"),a()()),t&2){let e=p.$implicit;r(2),l(e.Code),r(2),l(e.Name),r(2),l(e.OutletName),r(2),l(h(9,5,e.Balance)),r(3),l(h(12,7,e.CorrectBalance))}}function ue(t,p){if(t&1&&(n(0,"div",9)(1,"p"),o(2),a()()),t&2){let e=m(3);r(2),F(" Showing ",e.startIndex()," to ",e.endIndex()," of ",e.coaData().count," entries ")}}function ge(t,p){if(t&1){let e=v();n(0,"p-card")(1,"p-table",8),w("onPage",function(c){b(e);let M=m(2);return S(M.onPageChange(c))}),u(2,se,11,0,"ng-template",null,2,s)(4,de,13,9,"ng-template",null,3,s)(6,ue,3,3,"ng-template",null,4,s),a()()}if(t&2){let e=m(2);r(),g("paginator",!0)("lazy",!0)("totalRecords",e.coaData().count)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("rows",e.pagination().RowCount)("value",e.coaData().data)("tableStyle",P(8,ce))}}function _e(t,p){if(t&1&&u(0,ge,8,9,"p-card",7),t&2){let e=m();g("ngIf",e.coaData())}}var ie=(()=>{class t{constructor(){this.pagination=_({PageNumber:1,RowCount:20}),this.coaService=d(O),this.toastrService=d($),this.coaData=_(null),this.fetchCoaData=ee(N(V(e=>this.coaService.getGenerateCoa(e).pipe(te({next:i=>this.coaData.set(i),error:i=>console.error(i)}))))),this.startIndex=J(()=>this.pagination()?(this.pagination().PageNumber-1)*this.pagination().RowCount+1:0),this.endIndex=J(()=>this.pagination()?Math.min(this.pagination().PageNumber*this.pagination().RowCount,this.coaData()?.count||0):0)}ngOnInit(){this.fetchCoaData(this.pagination)}onPageChange(e){this.pagination.update(i=>x(C({},i),{PageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(T(e=>{e instanceof z&&this.toastrService.success(e.body?.message,"Success")})).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-tools-update-coa"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Generate COA"],["label","Update",3,"onClick"],[4,"ngIf"],[3,"onPage","paginator","lazy","totalRecords","scrollable","scrollHeight","rows","value","tableStyle"],[1,"d-flex"]],template:function(i,c){i&1&&(n(0,"app-main-panel",5),u(1,me,1,0,"ng-template",null,0,s)(3,_e,1,1,"ng-template",null,1,s),a())},dependencies:[D,B,I,Y,X,R,y,U,W,Q],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit}"],changeDetection:0})}}return t})();var fe=()=>[20,50,100];function he(t,p){t&1&&(n(0,"tr")(1,"th"),o(2,"Code"),a(),n(3,"th"),o(4,"Name"),a(),n(5,"th"),o(6,"Outlet"),a(),n(7,"th"),o(8,"Same Balance"),a(),n(9,"th"),o(10,"Balance"),a(),n(11,"th"),o(12,"Correct Balance"),a()())}function Ce(t,p){if(t&1&&(n(0,"tr")(1,"td"),o(2),a(),n(3,"td"),o(4),a(),n(5,"td"),o(6),a(),n(7,"td"),A(8,"p-toggleswitch",6),a(),n(9,"td"),o(10),f(11,"number"),a(),n(12,"td"),o(13),f(14,"number"),a()()),t&2){let e=p.$implicit;r(2),l(e.Code),r(2),l(e.Name),r(2),l(e.OutletName),r(2),g("trueValue",e.IsSameBalance),r(2),l(h(11,6,e.Balance)),r(3),l(h(14,8,e.CorrectBalance))}}function xe(t,p){if(t&1){let e=v();n(0,"p-table",5),w("onPage",function(c){b(e);let M=m(2);return S(M.onPageChange(c))}),u(1,he,13,0,"ng-template",null,1,s)(3,Ce,15,10,"ng-template",null,2,s),a()}if(t&2){let e=m(2);g("value",e.unbalanceJournal().data)("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("paginator",!0)("rows",+e.pageData().RowCount)("totalRecords",e.unbalanceJournal().count)("rowsPerPageOptions",P(7,fe))}}function be(t,p){if(t&1&&u(0,xe,5,8,"p-table",4),t&2){let e=m();g("ngIf",e.unbalanceJournal())}}var re=(()=>{class t{constructor(){this.toolsService=d(O),this.unbalanceJournal=_(null),this.fb=d(G),this.pageData=_({PageNumber:1,RowCount:20}),H(()=>{let e=this.pageData();e.PageNumber&&e.RowCount&&this.fetchUnbalanceJournal()}),this.formFilter=this.fb.group({PageNumber:[1],RowCount:[20]})}loadUnbalanceJournal(e){console.log("loadUnbalanceJournal",e);let i=(e.first??0)/(e.rows??20)+1,c=e.rows??20;this.pageData.set(x(C({},this.pageData()),{PageNumber:i,RowCount:c}))}fetchUnbalanceJournal(){this.toolsService.getUnbalanceJournal(this.pageData()).pipe(Z("response"),T(e=>this.unbalanceJournal.set(e))).subscribe()}onPageChange(e){console.log("Page changed to: ",e),this.pageData.set(x(C({},this.pageData()),{PageNumber:e.first/e.rows+1,RowCount:e.rows}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-unbalance-journal"]],decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["pageTitle","Unbalance Journal"],["paginatorStyleClass","d-flex justify-content-end","lazy","",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","rowsPerPageOptions","onPage",4,"ngIf"],["paginatorStyleClass","d-flex justify-content-end","lazy","",3,"onPage","value","scrollable","scrollHeight","paginator","rows","totalRecords","rowsPerPageOptions"],["readonly","",3,"trueValue"]],template:function(i,c){i&1&&(n(0,"app-main-panel",3),u(1,be,1,1,"ng-template",null,0,s),a())},dependencies:[D,B,I,ae,ne,K,R,y,U,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var lt=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:ie},{path:"unbalance-journal",component:re}];export{lt as TOOLS_ROUTES};
|
package/chunk-TMY4NWZ6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as H}from"./chunk-UGKSIDKE.js";import{a as L}from"./chunk-LYEN4UBW.js";import{h as M,j as V,k as N,l as U}from"./chunk-H4HFCRFZ.js";import"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import"./chunk-JR4EQTPJ.js";import{g as P}from"./chunk-33KLXB2L.js";import"./chunk-UTL7D6E7.js";import"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import"./chunk-ROKYJX6Q.js";import"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import"./chunk-6BFODHTZ.js";import{n as k,r as I,s as z,t as D}from"./chunk-RUGQ4OJG.js";import{Bb as x,Fc as J,Gc as E,Ha as b,Hc as A,Ic as h,Kb as f,Tc as v,Ub as o,Vb as i,Vc as T,Wb as C,Z as y,_b as S,dc as w,ec as d,gb as s,ia as j,mc as r,nc as p,qa as _,ra as g,ub as R}from"./chunk-VYKJK5YU.js";import{a as m,b as c}from"./chunk-EQDQRRRY.js";function O(a,u){if(a&1){let e=S();o(0,"button",6),w("click",function(){_(e);let t=d(2);return g(t.onCreateJournal())}),r(1," Generate Journal "),i()}}function G(a,u){if(a&1&&x(0,O,2,0,"button",5),a&2){let e=d();f("ngIf",e.selectedItems()&&e.selectedItems().length>0)}}function K(a,u){a&1&&(o(0,"tr")(1,"th",9),C(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Outlet"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th"),r(8,"Date"),i(),o(9,"th"),r(10,"Adjustment Qty"),i(),o(11,"th"),r(12,"Type"),i(),o(13,"th"),r(14,"State"),i(),o(15,"th"),r(16,"Note"),i()())}function q(a,u){if(a&1&&(o(0,"tr")(1,"td"),C(2,"p-tableCheckbox",10),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),J(9,"date"),i(),o(10,"td"),r(11),J(12,"number"),i(),o(13,"td"),r(14),i(),o(15,"td"),r(16),i(),o(17,"td"),r(18),i()()),a&2){let e=u.$implicit;s(2),f("value",e),s(2),p(e.outlet),s(2),p(e.number),s(2),p(A(9,8,e.date,"d MMM y")),s(3),p(E(12,11,e.quantitySUM)),s(3),p(e.type),s(2),p(e.state),s(2),p(e.note)}}function F(a,u){if(a&1){let e=S();o(0,"p-table",8),w("onLazyLoad",function(t){_(e);let n=d(2);return g(n.onLazyLoad(t))})("onRowSelect",function(t){_(e);let n=d(2);return g(n.onRowSelect(t))})("onRowUnselect",function(t){_(e);let n=d(2);return g(n.onRowUnselect(t))}),x(1,K,17,0,"ng-template",null,2,h)(3,q,19,13,"ng-template",null,3,h),i()}if(a&2){let e=d(2);f("value",e.adjustmentJournal().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.adjustmentJournal().totalCount)("lazy",!0)}}function Q(a,u){if(a&1&&x(0,F,5,7,"p-table",7),a&2){let e=d();f("ngIf",e.adjustmentJournal())}}var re=(()=>{class a{constructor(){this.generateJournalService=j(H),this.adjustmentJournal=b(null),this.pageData=b({PageNumber:1,PageSize:10}),this.selectedItems=v(()=>this.adjustmentJournal()?.data.filter(e=>e.checked)||[]),T(()=>{this.pageData()&&this.fetchAdjustmentJournal()})}fetchAdjustmentJournal(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getAdjustmentJournal(e).pipe(y(l=>{this.adjustmentJournal.update(t=>c(m({},t),{data:l.data.map(n=>c(m({},n),{checked:!1})),totalCount:+l.totalCount}))}),L("AR Collection")).subscribe()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let l=e.data;this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map(n=>n.id===l.id?c(m({},n),{checked:!0}):n)}))}onRowUnselect(e){let l=e.data;Array.isArray(l)?this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map((n,B)=>n.id===l[B].id?c(m({},n),{checked:!n.checked}):n)})):this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map(n=>n.id===l.id?c(m({},n),{checked:!n.checked}):n)}))}onCreateJournal(){let l=this.selectedItems().map(t=>t.id);this.generateJournalService.createAdjustmentJournal(l).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275cmp=R({type:a,selectors:[["app-adjustment-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Adjustment"],["class","btn btn-primary rounded",3,"click",4,"ngIf"],[1,"btn","btn-primary","rounded",3,"click"],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(l,t){l&1&&(o(0,"app-main-panel",4),x(1,G,1,1,"ng-template",null,0,h)(3,Q,1,1,"ng-template",null,1,h),i())},dependencies:[P,U,M,V,N,D,k,z,I],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return a})();export{re as AdjustmentJournalComponent};
|
package/chunk-TOJAZ32N.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as bt,d as Y,f as B,g as F,h as tt}from"./chunk-S35HUXPS.js";import{d as gt,e as Tt,k as _t}from"./chunk-6BFODHTZ.js";import{d as W,n as X}from"./chunk-RUGQ4OJG.js";import{Aa as q,Bb as A,Ha as O,I as D,Ib as S,Jb as E,Kb as c,Lb as R,Ob as p,Ub as h,Vb as m,Wb as H,Xb as J,Yb as K,Z,_b as Q,ab as pt,ac as vt,bb as G,ca as C,da as ut,dc as M,ec as l,fa as ht,g,gb as a,ha as y,hb as _,ia as d,ja as dt,lb as mt,mc as f,n as ct,oc as b,q as lt,qa as L,r as x,ra as z,s as $,ub as U,va as N,vb as ft}from"./chunk-VYKJK5YU.js";import{a as r,b as v}from"./chunk-EQDQRRRY.js";var Ct=["toast-component",""];function At(s,n){if(s&1){let t=Q();h(0,"button",5),M("click",function(){L(t);let i=l();return z(i.remove())}),h(1,"span",6),f(2,"\xD7"),m()()}}function Et(s,n){if(s&1&&(J(0),f(1),K()),s&2){let t=l(2);a(),b("[",t.duplicatesCount+1,"]")}}function Rt(s,n){if(s&1&&(h(0,"div"),f(1),A(2,Et,2,1,"ng-container",4),m()),s&2){let t=l();p(t.options.titleClass),E("aria-label",t.title),a(),b(" ",t.title," "),a(),c("ngIf",t.duplicatesCount)}}function Ht(s,n){if(s&1&&H(0,"div",7),s&2){let t=l();p(t.options.messageClass),c("innerHTML",t.message,G)}}function Mt(s,n){if(s&1&&(h(0,"div",8),f(1),m()),s&2){let t=l();p(t.options.messageClass),E("aria-label",t.message),a(),b(" ",t.message," ")}}function jt(s,n){if(s&1&&(h(0,"div"),H(1,"div",9),m()),s&2){let t=l();a(),R("width",t.width()+"%")}}function Nt(s,n){if(s&1){let t=Q();h(0,"button",5),M("click",function(){L(t);let i=l();return z(i.remove())}),h(1,"span",6),f(2,"\xD7"),m()()}}function St(s,n){if(s&1&&(J(0),f(1),K()),s&2){let t=l(2);a(),b("[",t.duplicatesCount+1,"]")}}function Bt(s,n){if(s&1&&(h(0,"div"),f(1),A(2,St,2,1,"ng-container",4),m()),s&2){let t=l();p(t.options.titleClass),E("aria-label",t.title),a(),b(" ",t.title," "),a(),c("ngIf",t.duplicatesCount)}}function Ft(s,n){if(s&1&&H(0,"div",7),s&2){let t=l();p(t.options.messageClass),c("innerHTML",t.message,G)}}function Pt(s,n){if(s&1&&(h(0,"div",8),f(1),m()),s&2){let t=l();p(t.options.messageClass),E("aria-label",t.message),a(),b(" ",t.message," ")}}function Vt(s,n){if(s&1&&(h(0,"div"),H(1,"div",9),m()),s&2){let t=l();a(),R("width",t.width()+"%")}}var et=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},it=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},st=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new g;_activate=new g;_manualClose=new g;_resetTimeout=new g;_countDuplicate=new g;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},I=class{toastId;config;message;title;toastType;toastRef;_onTap=new g;_onAction=new g;constructor(n,t,e,i,o,u){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=u,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},yt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},It=new ht("ToastConfig"),nt=class extends it{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,e){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(n,t){let e=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=e.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},kt=(()=>{class s{_document=d(W);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=C({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ot=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},$t=(()=>{class s{_overlayContainer=d(kt);_componentFactoryResolver=d(mt);_appRef=d(S);_document=d(W);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),e?e.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new nt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new ot(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=C({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),P=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,u){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=u,this.toastrConfig=r(r({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=r(r({},t.default.iconClasses),t.config.iconClasses))}show(t,e,i={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(i))}success(t,e,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}error(t,e,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}info(t,e,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}warning(t,e,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",e="",i,o){let{includeTitleDuplicates:u}=this.toastrConfig;for(let T of this.toasts){let j=u&&T.title===t;if((!u||j)&&T.message===e)return T.toastRef.onDuplicate(i,o),T}return null}applyConfig(t={}){return r(r({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,i,o)):this._buildNotification(t,e,i,o)}_buildNotification(t,e,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let u=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&u!==null)return u;this.previousToastMessage=e;let T=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(T=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let j=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let at=e;e&&o.enableHtml&&(at=this.sanitizer.sanitize(pt.HTML,e));let w=new st(j),V=new I(this.index,o,at,i,t,w),wt=[{provide:I,useValue:V}],xt=N.create({providers:wt,parent:this._injector}),Dt=new et(o.toastComponent,xt),rt=j.attach(Dt,o.newestOnTop);w.componentInstance=rt.instance;let k={toastId:this.index,title:i||"",message:e||"",toastRef:w,onShown:w.afterActivate(),onHidden:w.afterClosed(),onTap:V.onTap(),onAction:V.onAction(),portal:rt};return T||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{k.toastRef.activate()})),this.toasts.push(k),k}static \u0275fac=function(e){return new(e||s)(y(It),y($t),y(N),y(_t),y(q))};static \u0275prov=C({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Zt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.ngZone=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=O({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>v(r({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>v(r({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>v(r({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||s)(_(P),_(I),_(q))};static \u0275cmp=U({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(vt("@flyInOut",i._state),p(i.toastClasses),R("display",i.displayStyle))},attrs:Ct,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&A(0,At,3,0,"button",0)(1,Rt,3,5,"div",1)(2,Ht,1,3,"div",2)(3,Mt,2,4,"div",3)(4,jt,2,2,"div",4),e&2&&(c("ngIf",i.options.closeButton),a(),c("ngIf",i.title),a(),c("ngIf",i.message&&i.options.enableHtml),a(),c("ngIf",i.message&&!i.options.enableHtml),a(),c("ngIf",i.options.progressBar))},dependencies:[X],encapsulation:2,data:{animation:[bt("flyInOut",[F("inactive",B({opacity:0})),F("active",B({opacity:1})),F("removed",B({opacity:0})),tt("inactive => active",Y("{{ easeTime }}ms {{ easing }}")),tt("active => removed",Y("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),Lt=v(r({},yt),{toastComponent:Zt}),zt=(s={})=>dt([{provide:It,useValue:{default:Lt,config:s}}]),re=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[zt(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=ft({type:s});static \u0275inj=ut({})}return s})();var qt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=O("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.appRef=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||s)(_(P),_(I),_(S))};static \u0275cmp=U({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(p(i.toastClasses),R("display",i.displayStyle))},attrs:Ct,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&A(0,Nt,3,0,"button",0)(1,Bt,3,5,"div",1)(2,Ft,1,3,"div",2)(3,Pt,2,4,"div",3)(4,Vt,2,2,"div",4),e&2&&(c("ngIf",i.options.closeButton),a(),c("ngIf",i.title),a(),c("ngIf",i.message&&i.options.enableHtml),a(),c("ngIf",i.message&&!i.options.enableHtml),a(),c("ngIf",i.options.progressBar))},dependencies:[X],encapsulation:2,changeDetection:0})}return s})(),ce=v(r({},yt),{toastComponent:qt});var ve=(()=>{class s{constructor(){this.httpClient=d(Tt),this.toastr=d(P),this.requestTimeout=1e4}get(t="",e,i={}){return this.httpClient.get(`${t}${e}`,i).pipe(x(this.requestTimeout),D(this.handleError.bind(this)))}post(t="",e,i,o={}){return this.httpClient.post(`${t}${e}`,i,r({observe:"response"},o)).pipe(x(this.requestTimeout),Z(this.handleResponse.bind(this)),$(u=>u.body),D(this.handleError.bind(this)))}put(t="",e,i,o={}){return this.httpClient.put(`${t}${e}`,i,r({},o)).pipe(x(this.requestTimeout),D(this.handleError.bind(this)))}delete(t="",e,i={}){return this.httpClient.delete(`${t}${e}`,v(r({},i),{observe:"response"})).pipe(x(this.requestTimeout),Z(this.handleResponse.bind(this)),$(o=>o.body),D(this.handleError.bind(this)))}handleResponse(t){if(t.status===200&&t.body){let e=t.body.message;e&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};return t instanceof lt&&(e.header="Timeout Error",e.message="The request took too long to complete. Please try again later."),t instanceof gt&&(Object.keys(t.error||{}).length?(e.message=t.error.Message||t.error.message,e.header=`API Error: ${t.error.title??"Error"}`):(e.header=`API Error: ${t.statusText}`,e.message=t.message)),console.error(e),this.toastr.error(e.message,e.header),ct(()=>e)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=C({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{P as a,zt as b,re as c,ve as d};
|
package/chunk-VY4Z33EE.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as ge}from"./chunk-ERX7ND7E.js";import{a as Je,b as Qe,c as We}from"./chunk-AYVR3RIS.js";import{a as je}from"./chunk-TUL6Y2HH.js";import{a as oe,b as ae}from"./chunk-RUP2SWYB.js";import"./chunk-WG7APCJU.js";import{a as _e,b as xe}from"./chunk-NS7JH3QF.js";import"./chunk-ZZPBK2XT.js";import{a as Ue}from"./chunk-LYEN4UBW.js";import{a as pe,b as ce}from"./chunk-4Y3NYY52.js";import{a as B,b as L}from"./chunk-OCLABZZW.js";import{b as te,c as ie,h as fe,l as ne}from"./chunk-H4HFCRFZ.js";import{g as se,h as ue}from"./chunk-DUOJKP2G.js";import"./chunk-R2KG54OT.js";import{e as Ke,f as qe}from"./chunk-JR4EQTPJ.js";import{a as He,b as ee}from"./chunk-5GQEUX4M.js";import{f as ze,g as Z}from"./chunk-33KLXB2L.js";import{f as $e,g as de}from"./chunk-UTL7D6E7.js";import{a as I,b as U,c as J,d as Q,e as W,f as X,g as Ye}from"./chunk-Y6MJGNH2.js";import"./chunk-OWI3BWEZ.js";import{e as K,f as q,g as me,h as D,j as Y,l as $,o as z,r as Ve,u as H}from"./chunk-ROKYJX6Q.js";import{d as ke}from"./chunk-TOJAZ32N.js";import"./chunk-S35HUXPS.js";import{a as Pe,m as Ae}from"./chunk-6BFODHTZ.js";import{n as Ge,r as Ne,s as k,t as j}from"./chunk-RUGQ4OJG.js";import{Bb as f,D as P,Fc as _,Gc as g,Ha as re,Hc as Oe,Ic as p,Kb as s,L as we,Nb as V,Pb as ve,Sb as Be,Tb as Le,Tc as R,Ub as n,V as Fe,Vb as i,Wb as S,X as w,Z as he,_b as G,c as T,ca as Me,dc as N,ec as x,gb as r,ia as h,mc as o,nc as d,oc as C,qa as F,ra as M,s as Te,ub as y,uc as A,vc as b}from"./chunk-VYKJK5YU.js";import{a as u,b as v,c as Re,e as De}from"./chunk-EQDQRRRY.js";var O=(()=>{class e{constructor(){this.httpService=h(ke),this.authService=h(je)}fetchGeneralLedgerLoader(t={}){return this.httpService.post(void 0,"api/GeneralLedgerLoader/GetFilter",t)}fetchGeneralLedgerReport(t){return this.httpService.post(void 0,"api/GeneralLedger/Get",t)}getCustomerSuggestions(t){let a={Prefix:t,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:a})}getBalanceSheetLoader(){return this.httpService.get(void 0,"/api/BalanceSheetLoader/GetBalanceSheet")}getBalanceSheet(t){let a=u({},t),c=new Pe;return Object.keys(a).forEach(E=>{c=c.set(E,String(a[E]))}),this.httpService.get(void 0,"/api/BalanceSheet",{params:c})}getIncomeStatementLoader(){return this.httpService.get(void 0,"api/IncomeStatementLoader/Filter")}getIncomeStatement(t){return this.httpService.post(void 0,"api/IncomeStatement/List",u({},t))}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ct={metadata:{filter:{categoryID:"",from:new Date().toISOString(),to:new Date().toISOString(),iDs:[],outletIDs:[]},options:{accounts:[],outlets:[]},roles:{isInEmptyOutletRole:!1}},items:{data:[],pageTitle:""},filter:{listAccountID:[],categoryID:null,OutletID:[],ContactID:null,from:new Date().toISOString(),to:new Date().toISOString()}},Ce=U(X(ct),Ye("General Ledger Store"),J(e=>({hasData:R(()=>Array.isArray(e.items().data)&&e.items().data.length>0)})),W(e=>{let l=h(O),t=h(ge),a={updateFilter:m=>{I(e,c=>v(u({},c),{filter:m}))},loadList:B(T(P(m=>Array.isArray(m.listAccountID)&&m.listAccountID.length>0),w(m=>l.fetchGeneralLedgerReport(m).pipe(L({next:c=>{I(e,E=>v(u({},E),{items:c}))},error:c=>{console.error(c)}}))))),loadLoader:B(T(w(m=>l.fetchGeneralLedgerLoader(m).pipe(L({next:c=>{I(e,E=>v(u({},E),{metadata:c,filter:v(u({},E.filter),{categoryID:c.filter.categoryID,from:t.now.format(),to:t.now.format()})})),a.loadList(e.filter)},error:c=>{console.error(c)}}))),Ue("res")))};return a}),Q({onInit:e=>{e.loadLoader({})}}));var st=(e,l)=>l.id,ut=()=>({height:"calc(100vh - 108px)"}),ft=()=>[];function _t(e,l){e&1&&(n(0,"div",6),S(1,"p-button",7)(2,"p-button",8),i())}function xt(e,l){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td")(4,"a"),o(5),i()(),n(6,"td"),o(7),_(8,"date"),i(),S(9,"td")(10,"td"),n(11,"td",15),o(12),_(13,"number"),i(),n(14,"td",15),o(15),_(16,"number"),i(),n(17,"td",15),o(18),_(19,"number"),i()()),e&2){let t=l.$implicit;r(2),d(t.outletName),r(3),d(t.number),r(2),d(Oe(8,6,t.date,"dd MMM yyyy")),r(5),d(g(13,9,t.debitAmount)),r(3),d(g(16,11,t.creditAmount)),r(3),d(g(19,13,t.balance))}}function gt(e,l){if(e&1&&(n(0,"table",11)(1,"thead")(2,"tr")(3,"th",12),o(4,"Outlet"),i(),n(5,"th",12),o(6,"No."),i(),n(7,"th",12),o(8,"Date"),i(),n(9,"th",12),o(10,"Name"),i(),n(11,"th",12),o(12,"Description"),i(),n(13,"th",13),o(14,"Debit"),i(),n(15,"th",13),o(16,"Credit"),i(),n(17,"th",13),o(18,"Balance"),i()()(),n(19,"tbody")(20,"tr")(21,"td",14),o(22,"Starting Balance"),i(),n(23,"td",15),o(24),_(25,"number"),i()(),Be(26,xt,20,15,"tr",null,st),n(28,"tr"),S(29,"td",16),n(30,"td",15),o(31,"Total"),i(),n(32,"td",15),o(33),_(34,"number"),i(),n(35,"td",15),o(36),_(37,"number"),i()()()()),e&2){let t=l.$implicit;r(24),d(g(25,3,t.startBalance)),r(2),Le(t.data),r(7),d(g(34,5,t.debitTotal)),r(3),d(g(37,7,t.creditTotal))}}function St(e,l){if(e&1&&(n(0,"p-virtual-scroller",9),f(1,gt,38,9,"ng-template",null,3,p),i()),e&2){let t=x(3);s("items",t.store.items().data)("scrollHeight","calc(100vh - 150px)")}}function ht(e,l){e&1&&S(0,"img",10)}function vt(e,l){if(e&1&&(n(0,"p-card"),f(1,St,3,2,"p-virtual-scroller",9)(2,ht,1,0,"img",10),i()),e&2){let t=x(2);V(b(3,ut)),r(),ve(t.store.items()&&t.store.items().data.length?1:2)}}function Ct(e,l){if(e&1&&(n(0,"div",26)(1,"div"),o(2),i()()),e&2){let t=l.$implicit;r(2),d(t.value)}}function Et(e,l){if(e&1){let t=G();n(0,"form",17)(1,"div",18)(2,"label",19),o(3,"Accounts"),i(),S(4,"p-multiselect",20),i(),n(5,"div",18)(6,"label",19),o(7,"From"),i(),S(8,"p-datepicker",21),i(),n(9,"div",18)(10,"label",19),o(11,"To"),i(),S(12,"p-datepicker",22),i(),n(13,"div",18)(14,"label",19),o(15,"Outlets"),i(),n(16,"p-multiselect",23),f(17,Ct,3,1,"ng-template",null,3,p),i()(),n(19,"div",18)(20,"label",19),o(21,"Category"),i(),S(22,"p-select",24),i(),n(23,"div",18)(24,"label",19),o(25,"Customer"),i(),n(26,"p-autocomplete",25),N("completeMethod",function(m){F(t);let c=x(2);return M(c.searchCustomer(m))}),i()()()}if(e&2){let t=x(2);s("formGroup",t.generalLedgerFilterForm),r(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.metadata().options.accounts),r(4),s("iconDisplay","input")("showIcon",!0),r(4),s("iconDisplay","input")("showIcon",!0),r(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.metadata().options.outlets),r(6),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",b(15,ft)),r(4),s("suggestions",t.customerSuggestions())}}function yt(e,l){if(e&1){let t=G();n(0,"app-main-panel",5),N("filterEmitted",function(m){F(t);let c=x();return M(c.onFilterEvent(m))})("filterOKEmitted",function(){F(t);let m=x();return M(m.onFilterOKEvent())}),f(1,_t,3,0,"ng-template",null,0,p)(3,vt,3,4,"ng-template",null,1,p)(5,Et,27,16,"ng-template",null,2,p),i()}if(e&2){let t=x();s("pageTitle",t.store.items().pageTitle.length?t.store.items().pageTitle:"General Ledger")("isFilterable",!0)("isInitDialogFilterVisible",t.initDialogVisible())}}var it=(()=>{class e{constructor(){this.dialogFilterVisible=re(!0),this.reportService=h(O),this.store=h(Ce),this.customerSuggestions=re([]),this.route=h(Ae),this.dayjsService=h(ge),this.initDialogVisible=re(!0)}ngOnInit(){this.generateFilterForm(),this.route.queryParamMap.pipe(P(t=>t.has("id")),Te(t=>t.get("id")),he(t=>{this.initDialogVisible.update(a=>!a),this.generalLedgerFilterForm.patchValue({listAccountID:[t]}),this.store.updateFilter(v(u({},this.store.filter()),{listAccountID:[t]}))})).subscribe(),this.generalLedgerFilterForm.patchValue({from:new Date})}generateFilterForm(){this.generalLedgerFilterForm=new me({listAccountID:new D([]),categoryID:new D(""),OutletID:new D([]),ContactID:new D(""),from:new D(new Date),to:new D(new Date)})}onFilterEvent(t){console.log(t),this.dialogFilterVisible.update(a=>!a)}onFilterOKEvent(){let E=this.generalLedgerFilterForm.value,{from:t,to:a}=E,m=Re(E,["from","to"]),c={categoryID:m.categoryID.length?m.categoryID:null,ContactID:m.ContactID.length?m.ContactID:null,OutletID:m.OutletID.length?m.OutletID:null,listAccountID:m.listAccountID,from:this.dayjsService.from(t)?this.dayjsService.from(t).format():null,to:this.dayjsService.from(a)?this.dayjsService.from(a).format():null};this.dialogFilterVisible.update(Se=>!Se),this.store.updateFilter(c)}searchCustomer(t){this.reportService.getCustomerSuggestions(t.query).pipe(he(a=>this.customerSuggestions.set(a))).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-report-general-ledger"]],features:[A([Ce])],decls:1,vars:1,consts:[["actionButton",""],["content",""],["filters",""],["item",""],[3,"pageTitle","isFilterable","isInitDialogFilterVisible"],[3,"filterEmitted","filterOKEmitted","pageTitle","isFilterable","isInitDialogFilterVisible"],[1,"d-flex","gap-2"],["severity","secondary","variant","outlined","label","Return to Accounts"],["severity","secondary","variant","outlined","icon","fa-solid fa-download","label","Export"],[3,"items","scrollHeight"],["src","assets/images/empty-data.svg","alt","No data available",1,"w-100",2,"height","calc(100vh - 150px)"],[1,"table","table-bordered"],["scope","col"],["scope","col",1,"text-end"],["colspan","7",1,"text-end"],[1,"text-end"],["colspan","4"],[1,"d-flex","flex-column","row-gap-2",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","listAccountID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Accounts",3,"virtualScroll","virtualScrollItemSize","options"],["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"],["formControlName","OutletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlets",3,"virtualScroll","virtualScrollItemSize","options"],["formControlName","categoryID","appendTo","body","optionLabel","name","optionValue","id","placeholder","Select Category",3,"virtualScroll","virtualScrollItemSize","options"],["formControlName","ContactID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],[1,"flex","items-center","gap-2"]],template:function(a,m){a&1&&f(0,yt,7,3,"app-main-panel",4),a&2&&ve(m.store?0:-1)},dependencies:[Z,j,k,Ne,ee,He,ne,Ke,ze,de,$e,ue,se,ie,te,We,Qe,H,Y,K,q,$,z,ae,oe,ce,qe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var bt={data:{},filter:{EntityID:["62C3B7A9-D41C-4615-8F43-572D8FE4778B"],CashierID:null,Text:null,from:"2021-09-01T00:00:00",to:"2021-10-20T00:00:00"},loader:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}}},Ee=U(X(bt),J(e=>({totalCOGS:R(()=>e.data().data.cogs.reduce((l,t)=>l+t.Amount,0)),totalRevenue:R(()=>e.data().data.revenue.reduce((l,t)=>l+t.amount,0)),totalExpense:R(()=>e.data().data.expense.reduce((l,t)=>l+t.Amount,0))})),W(e=>{let l=h(O);return{updateFilter(a){I(e,m=>v(u({},m),{filter:u(u({},m.filter),a)}))},getLoader:B(T(w(()=>l.getIncomeStatementLoader().pipe(L({next:a=>{I(e,m=>v(u({},m),{loader:a}))},error:a=>{console.error(a)}}))))),getIncomeStatement:B(T(we(300),w(a=>l.getIncomeStatement(a).pipe(L({next:m=>{I(e,c=>v(u({},c),{data:m}))},error:m=>{console.error(m)}})))))}}),Q({onInit:e=>{e.getLoader(),e.getIncomeStatement(e.filter)}}));var Dt=()=>({height:"calc(100vh - 100px)"}),ye=()=>({"min-width":"50rem"});function Tt(e,l){e&1&&(n(0,"tr")(1,"th"),o(2,"Code"),i(),n(3,"th"),o(4,"Name"),i(),n(5,"th",9),o(6,"Total"),i()())}function wt(e,l){if(e&1&&(n(0,"tr")(1,"td",10),o(2),i(),n(3,"td",11),o(4),i(),n(5,"td",9),o(6),_(7,"number"),i()()),e&2){let t=l.$implicit;r(2),d(t.code),r(2),d(t.name),r(2),d(g(7,3,t.amount))}}function Ft(e,l){if(e&1&&(n(0,"tr")(1,"td",12),o(2,"Total Asset"),i(),n(3,"td",13),o(4),_(5,"number"),i()()),e&2){let t=x(2);r(4),C(" ",g(5,1,t.store.totalRevenue())," ")}}function Mt(e,l){e&1&&(n(0,"tr")(1,"td",14),o(2),i()()),e&2&&(r(2),C(" ","No data available"," "))}function Bt(e,l){e&1&&(n(0,"tr")(1,"th",10),o(2,"Code"),i(),n(3,"th",11),o(4,"Name"),i(),n(5,"th",9),o(6,"Total"),i()())}function Lt(e,l){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td"),o(4),i(),n(5,"td",9),o(6),_(7,"number"),i()()),e&2){let t=l.$implicit;r(2),d(t.Code),r(2),d(t.Name),r(2),d(g(7,3,t.Amount))}}function Ot(e,l){if(e&1&&(n(0,"tr")(1,"td",15),o(2,"Total Liability"),i(),n(3,"td",13),o(4),_(5,"number"),i()()),e&2){let t=x(2);r(4),C(" ",g(5,1,t.store.totalExpense())," ")}}function Gt(e,l){e&1&&(n(0,"tr")(1,"td",14),o(2),i()()),e&2&&(r(2),C(" ","No data available"," "))}function Nt(e,l){e&1&&(n(0,"tr")(1,"th"),o(2,"Code"),i(),n(3,"th"),o(4,"Name"),i(),n(5,"th",16),o(6,"Total"),i()())}function Pt(e,l){if(e&1&&(n(0,"tr")(1,"td",10),o(2),i(),n(3,"td",11),o(4),i(),n(5,"td",9),o(6),_(7,"number"),i()()),e&2){let t=l.$implicit;r(2),d(t.Code),r(2),d(t.Name),r(2),C(" ",g(7,3,t.Amount)," ")}}function Vt(e,l){if(e&1&&(n(0,"tr")(1,"td",15),o(2,"Total Equity"),i(),S(3,"td",13),i(),n(4,"tr")(5,"td",15),o(6," Total Liability + Equity "),i(),n(7,"td",13),o(8),_(9,"number"),i()()),e&2){let t=x(2);r(8),C(" ",g(9,1,t.store.totalCOGS())," ")}}function At(e,l){e&1&&(n(0,"tr")(1,"td",14),o(2),i()()),e&2&&(r(2),C(" ","No data available"," "))}function kt(e,l){if(e&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",7)(3,"h4"),o(4,"Revenue"),i(),n(5,"p-table",8),f(6,Tt,7,0,"ng-template",null,2,p)(8,wt,8,5,"ng-template",null,3,p),o(10," <"),f(11,Ft,6,3,"ng-template",null,4,p)(13,Mt,3,1,"ng-template",null,5,p),i(),S(15,"hr"),n(16,"h4"),o(17,"Expense"),i(),n(18,"p-table",8),f(19,Bt,7,0,"ng-template",null,2,p)(21,Lt,8,5,"ng-template",null,3,p),o(23," <"),f(24,Ot,6,3,"ng-template",null,4,p)(26,Gt,3,1,"ng-template",null,5,p),i(),S(28,"hr"),n(29,"h4"),o(30,"COGS"),i(),n(31,"p-table",8),f(32,Nt,7,0,"ng-template",null,2,p)(34,Pt,8,5,"ng-template",null,3,p),o(36," <"),f(37,Vt,10,3,"ng-template",null,4,p)(39,At,3,1,"ng-template",null,5,p),i()()()()),e&2){let t=x();V(b(8,Dt)),r(5),s("value",t.store.data().data.revenue)("tableStyle",b(9,ye)),r(13),s("value",t.store.data().data.expense)("tableStyle",b(10,ye)),r(13),s("value",t.store.data().data.cogs)("tableStyle",b(11,ye))}}function jt(e,l){if(e&1&&(n(0,"form",17)(1,"div",18)(2,"label",19),o(3,"Outlet"),i(),S(4,"p-multiselect",20),i(),n(5,"div",18)(6,"label",19),o(7,"Cashier"),i(),S(8,"p-select",21),i(),n(9,"div",18)(10,"label",19),o(11,"From"),i(),S(12,"p-datepicker",22),i(),n(13,"div",18)(14,"label",19),o(15,"To"),i(),S(16,"p-datepicker",23),i()()),e&2){let t=x();s("formGroup",t.formFilter),r(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.loader().options.outlets),r(4),s("options",t.store.loader().options.outlets)}}var nt=(()=>{class e{constructor(){this.store=h(Ee),this.fb=h(Ve)}ngOnInit(){this.generateForm()}onSearch(t){this.store.updateFilter(v(u({},this.store.filter()),{Text:t}))}generateForm(){this.formFilter=this.fb.group({EntityID:this.fb.control([]),CashierID:this.fb.control(""),Text:this.fb.control(""),from:this.fb.control(new Date),to:this.fb.control(new Date)})}onFilterOK(){let t=this.formFilter.getRawValue(),a=Object.entries(t).reduce((m,[c,E])=>(E instanceof Date?m[c]=E.toISOString():m[c]=E,m),{});this.store.updateFilter(u(u({},this.store.filter()),a)),console.log(t)}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-report-income-statement"]],features:[A([Ee])],decls:5,vars:3,consts:[["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"searchEmitted","filterOKEmitted","isFilterable","pageTitle","isSearchableInput"],[1,"d-flex","flex-column",2,"gap","2rem"],[3,"value","tableStyle"],[1,"text-end"],[2,"width","10%"],[2,"min-width","10%"],["colspan","2 ",1,"fw-semibold"],[1,"text-end","fw-semibold"],["colspan","3",1,""],["colspan","2",1,"fw-semibold"],[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"],["formControlName","CashierID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select a cashier",3,"options"],["formControlName","from","styleClass","w-100","appendTo","body"],["formControlName","to","styleClass","w-100","appendTo","body"]],template:function(a,m){if(a&1){let c=G();n(0,"app-main-panel",6),N("searchEmitted",function(Se){return F(c),M(m.onSearch(Se))})("filterOKEmitted",function(){return F(c),M(m.onFilterOK())}),f(1,kt,41,12,"ng-template",null,0,p)(3,jt,17,5,"ng-template",null,1,p),i()}a&2&&s("isFilterable",!0)("pageTitle",m.store.data().pageTitle)("isSearchableInput",!0)},dependencies:[Z,j,k,ue,se,ie,te,H,Y,K,q,$,z,ae,oe,ee,ne,fe,xe,_e,pe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var be=De(Je());var Kt={metadata:{options:{outlets:[]},filter:{to:"",outletID:[]},roles:{isInRoleEmptyOutlet:!1}},data:{asset:[],liability:[],equity:[],pageTitle:""},filter:{date:(0,be.default)().format("YYYY-MM-DD"),listOutletParam:[]}},Ie=U(X(Kt),J(e=>({totalAsset:R(()=>e.data().asset.reduce((l,t)=>l+ +t.amount,0)),totalLiability:R(()=>e.data().liability.reduce((l,t)=>l+ +t.amount,0)),totalEquity:R(()=>e.data().equity.reduce((l,t)=>l+ +t.amount,0))})),W(e=>{let l=h(O),t={updateFilter:a=>{I(e,m=>v(u({},m),{filter:a}))},fetchBalanceSheet:B(T(P(()=>{let a=e.filter();return Object.entries(a).every(([m,c])=>c!=null&&c!=="")}),w(a=>l.getBalanceSheet(a).pipe(L({next:m=>{I(e,c=>v(u({},c),{data:m}))},error:m=>{console.error(m)}}))),Fe(1))),fetchLoader:B(T(w(()=>l.getBalanceSheetLoader().pipe(L({next:a=>{I(e,m=>v(u({},m),{metadata:a,filter:{date:(0,be.default)(a.filter.to).format("YYYY-MM-DD")}})),t.fetchBalanceSheet(e.filter)},error:a=>{console.error(a)}})))))};return t}),Q(e=>({onInit:()=>{e.fetchLoader()}})));var at=De(Je());var qt=()=>({height:"calc(100vh - 100px)"}),ot=()=>({"min-width":"50rem"});function Yt(e,l){e&1&&(n(0,"tr")(1,"th"),o(2,"Code"),i(),n(3,"th"),o(4,"Asset"),i(),n(5,"th",12),o(6,"Total"),i()())}function $t(e,l){if(e&1&&(n(0,"tr")(1,"td",13),o(2),i(),n(3,"td",14),o(4),i(),n(5,"td",12),o(6),_(7,"number"),i()()),e&2){let t=l.$implicit;r(2),d(t.code),r(2),d(t.categoryName),r(2),d(g(7,3,t.amount))}}function zt(e,l){if(e&1&&(n(0,"tr")(1,"td",15),o(2,"Total Asset"),i(),n(3,"td",16),o(4),_(5,"number"),i()()),e&2){let t=x(3);r(4),C(" ",g(5,1,t.store.totalAsset())," ")}}function Ht(e,l){e&1&&(n(0,"tr")(1,"td",17),o(2),i()()),e&2&&(r(2),C(" ","No data available"," "))}function Ut(e,l){e&1&&(n(0,"tr")(1,"th",13),o(2,"Code"),i(),n(3,"th",14),o(4,"Liability"),i(),n(5,"th",12),o(6,"Total"),i()())}function Jt(e,l){if(e&1&&(n(0,"tr")(1,"td"),o(2),i(),n(3,"td"),o(4),i(),n(5,"td",12),o(6),_(7,"number"),i()()),e&2){let t=l.$implicit;r(2),d(t.code),r(2),d(t.categoryName),r(2),d(g(7,3,t.amount))}}function Qt(e,l){if(e&1&&(n(0,"tr")(1,"td",18),o(2,"Total Liability"),i(),n(3,"td",16),o(4),_(5,"number"),i()()),e&2){let t=x(3);r(4),C(" ",g(5,1,t.store.totalLiability())," ")}}function Wt(e,l){e&1&&(n(0,"tr")(1,"td",17),o(2),i()()),e&2&&(r(2),C(" ","No data available"," "))}function Xt(e,l){e&1&&(n(0,"tr")(1,"th"),o(2,"Code"),i(),n(3,"th"),o(4,"Equity"),i(),n(5,"th",19),o(6,"Total"),i()())}function Zt(e,l){if(e&1&&(n(0,"tr")(1,"td",13),o(2),i(),n(3,"td",14),o(4),i(),n(5,"td",12),o(6),_(7,"number"),i()()),e&2){let t=l.$implicit;r(2),d(t.code),r(2),d(t.name),r(2),C(" ",g(7,3,t.amount)," ")}}function ei(e,l){if(e&1&&(n(0,"tr")(1,"td",18),o(2,"Total Equity"),i(),n(3,"td",16),o(4),_(5,"number"),i()(),n(6,"tr")(7,"td",18),o(8," Total Liability + Equity "),i(),n(9,"td",16),o(10),_(11,"number"),i()()),e&2){let t=x(3);r(4),C(" ",g(5,2,t.store.totalEquity())," "),r(6),C(" ",g(11,4,t.store.totalLiability()+t.store.totalEquity())," ")}}function ti(e,l){e&1&&(n(0,"tr")(1,"td",17),o(2),i()()),e&2&&(r(2),C(" ","No data available"," "))}function ii(e,l){if(e&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",9)(3,"p-table",10),f(4,Yt,7,0,"ng-template",null,2,p)(6,$t,8,5,"ng-template",null,3,p),o(8," <"),f(9,zt,6,3,"ng-template",null,4,p)(11,Ht,3,1,"ng-template",null,5,p),i(),S(13,"hr"),n(14,"p-table",11),f(15,Ut,7,0,"ng-template",null,2,p)(17,Jt,8,5,"ng-template",null,3,p),o(19," <"),f(20,Qt,6,3,"ng-template",null,4,p)(22,Wt,3,1,"ng-template",null,5,p),i(),S(24,"hr"),n(25,"p-table",11),f(26,Xt,7,0,"ng-template",null,2,p)(28,Zt,8,5,"ng-template",null,3,p),o(30," <"),f(31,ei,12,6,"ng-template",null,4,p)(33,ti,3,1,"ng-template",null,5,p),i()()()()),e&2){let t=x(2);V(b(7,qt)),r(3),s("value",t.store.data().asset),r(11),s("value",t.store.data().liability)("tableStyle",b(8,ot)),r(11),s("value",t.store.data().equity)("tableStyle",b(9,ot))}}function ni(e,l){if(e&1&&(n(0,"div",25)(1,"div"),o(2),i()()),e&2){let t=l.$implicit;r(2),d(t.value)}}function oi(e,l){if(e&1&&(n(0,"form",20)(1,"div",21)(2,"label",22),o(3,"Outlet"),i(),n(4,"p-multiselect",23),f(5,ni,3,1,"ng-template",null,6,p),i()(),n(7,"div",21)(8,"label",22),o(9,"From"),i(),S(10,"p-datepicker",24),i()()),e&2){let t=x(2);s("formGroup",t.filterForm),r(4),s("virtualScroll",!0)("virtualScrollItemSize",50)("options",t.store.metadata().options.outlets),r(6),s("iconDisplay","input")("showIcon",!0)}}function ai(e,l){if(e&1){let t=G();n(0,"app-main-panel",8),N("filterOKEmitted",function(){F(t);let m=x();return M(m.onFilterOKEvent())}),f(1,ii,35,10,"ng-template",null,0,p)(3,oi,11,6,"ng-template",null,1,p),i()}if(e&2){let t=x();s("pageTitle",t.store.data().pageTitle)("isFilterable",!0)}}var lt=(()=>{class e{constructor(){this.store=h(Ie)}ngOnInit(){this.generateFilterForm()}generateFilterForm(){this.filterForm=new me({date:new D(new Date),outletID:new D([])})}onFilterOKEvent(){let{date:t,outletID:a}=this.filterForm.value;this.store.updateFilter({date:(0,at.default)(t).format("YYYY-MM-DD"),listOutletParam:a})}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-report-balance-sheet"]],features:[A([Ie])],decls:1,vars:1,consts:[["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],["item",""],[3,"pageTitle","isFilterable","filterOKEmitted",4,"ngIf"],[3,"filterOKEmitted","pageTitle","isFilterable"],[1,"d-flex","flex-column","gap-3"],["showGridlines","",3,"value"],[3,"value","tableStyle"],[1,"text-end"],[2,"width","10%"],[2,"min-width","10%"],["colspan","2 ",1,"fw-semibold"],[1,"text-end","fw-semibold"],["colspan","3",1,""],["colspan","2",1,"fw-semibold"],[1,"text-end",2,"min-width","10%"],[1,"d-flex","flex-column","row-gap-2",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletID","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"virtualScroll","virtualScrollItemSize","options"],["formControlName","date","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],[1,"flex","items-center","gap-2"]],template:function(a,m){a&1&&f(0,ai,5,2,"app-main-panel",7),a&2&&s("ngIf",m.store.data())},dependencies:[Z,j,Ge,k,ne,fe,ee,de,H,Y,K,q,$,z,ae,oe,ie,te,ce,pe,xe,_e],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var rt=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-report-comparative-balance"]],decls:3,vars:0,template:function(a,m){a&1&&(n(0,"p"),o(1,"report-comparative-balance works!"),i(),o(2,`
|
|
2
|
-
,
|
|
3
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var mt=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-report-cash-flow"]],decls:3,vars:0,template:function(a,m){a&1&&(n(0,"p"),o(1,"report-cash-flow works!"),i(),o(2,`
|
|
4
|
-
,
|
|
5
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var pt=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-report-trial-balance"]],decls:3,vars:0,template:function(a,m){a&1&&(n(0,"p"),o(1,"report-trial-balance works!"),i(),o(2,`
|
|
6
|
-
,
|
|
7
|
-
`))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var to=[{path:"",redirectTo:"general-ledger",pathMatch:"full"},{path:"",children:[{path:"general-ledger",component:it},{path:"income-statement",component:nt},{path:"balance-sheet",component:lt},{path:"comparative-balance",component:rt},{path:"trial-balance",component:pt},{path:"cash-flow",component:mt}]}];export{to as REPORTS_ROUTES};
|