dealposbooks 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/3rdpartylicenses.txt +30 -30
  2. package/assets/scss/layouts/_customizer.scss +11 -6
  3. package/assets/scss/layouts/_sidebar.scss +15 -12
  4. package/assets/scss/style.scss +4 -0
  5. package/assets/scss/variables/_variables.scss +5 -12
  6. package/{chunk-LCATVZKP.js → chunk-223MMYH7.js} +1 -1
  7. package/chunk-33KLXB2L.js +180 -0
  8. package/{chunk-C66O26ZI.js → chunk-4Y3NYY52.js} +1 -1
  9. package/{chunk-MNPBLC23.js → chunk-5GQEUX4M.js} +1 -1
  10. package/{chunk-GCTIPWTU.js → chunk-5RRUIJ5U.js} +1 -1
  11. package/{chunk-25PFXJAK.js → chunk-6BFODHTZ.js} +1 -1
  12. package/chunk-AXJA6OO7.js +246 -0
  13. package/{chunk-G52TDPSD.js → chunk-AYVR3RIS.js} +1 -1
  14. package/{chunk-WTRMIJHX.js → chunk-B6N6C3RA.js} +1 -1
  15. package/{chunk-ZNN2E36Y.js → chunk-CINZRZMB.js} +1 -1
  16. package/{chunk-3GWDCNXX.js → chunk-DBRLQ7BX.js} +1 -1
  17. package/{chunk-JFAO2CIB.js → chunk-DJ5UHXOJ.js} +1 -1
  18. package/{chunk-EP22HTZC.js → chunk-DUOJKP2G.js} +1 -1
  19. package/{chunk-UC2RR4WT.js → chunk-E4ZVZRLO.js} +3 -3
  20. package/chunk-EBOJJWD5.js +1 -0
  21. package/{chunk-PG4QL7N2.js → chunk-EMVZ65TI.js} +1 -1
  22. package/{chunk-T7R7C3RX.js → chunk-ENPYMVZG.js} +1 -1
  23. package/chunk-EOLHIQHQ.js +1 -0
  24. package/chunk-EQDQRRRY.js +1 -0
  25. package/chunk-ERX7ND7E.js +1 -0
  26. package/chunk-FKTEL4CU.js +524 -0
  27. package/chunk-FOUHOMEE.js +301 -0
  28. package/{chunk-HG23WDL5.js → chunk-H4HFCRFZ.js} +2 -2
  29. package/chunk-HBVENULS.js +1 -0
  30. package/chunk-J53TOHZH.js +1 -0
  31. package/chunk-JC7YOUAM.js +1 -0
  32. package/{chunk-TJSPXPO6.js → chunk-JR4EQTPJ.js} +1 -1
  33. package/{chunk-I4HDCL3W.js → chunk-JSAAKZBO.js} +1 -1
  34. package/{chunk-RJYIKNTI.js → chunk-KZ2KGWUY.js} +1 -1
  35. package/chunk-LON3T466.js +1 -0
  36. package/chunk-LYEN4UBW.js +1 -0
  37. package/chunk-MG3SLH6O.js +1 -0
  38. package/chunk-NQ3CKBYP.js +1 -0
  39. package/{chunk-ATVC2UCR.js → chunk-NS7JH3QF.js} +1 -1
  40. package/{chunk-O7OAT4UO.js → chunk-O65HPMSJ.js} +1 -1
  41. package/{chunk-NQ24E7JY.js → chunk-OCLABZZW.js} +1 -1
  42. package/chunk-OH2CJBFF.js +1 -0
  43. package/{chunk-GMTXOQ6X.js → chunk-OSV7AMB2.js} +1 -1
  44. package/{chunk-PNAWRNGD.js → chunk-OWI3BWEZ.js} +1 -1
  45. package/chunk-OYYYX3IP.js +1 -0
  46. package/{chunk-I7MT7OUB.js → chunk-PNQSQQIT.js} +1 -1
  47. package/{chunk-JXNLXEJT.js → chunk-Q5PJ63MA.js} +1 -1
  48. package/{chunk-4ANSU2AT.js → chunk-R2KG54OT.js} +1 -1
  49. package/{chunk-NTDTN5DF.js → chunk-REHXXPZY.js} +1 -1
  50. package/{chunk-JT2WCR5Q.js → chunk-RIALPB2D.js} +1 -1
  51. package/{chunk-AWY6AD76.js → chunk-RJYO2KKV.js} +1 -1
  52. package/{chunk-FVXLQNAC.js → chunk-ROKYJX6Q.js} +1 -1
  53. package/{chunk-GRTIJ77T.js → chunk-RUGQ4OJG.js} +1 -1
  54. package/{chunk-SQKLMC5H.js → chunk-RUP2SWYB.js} +1 -1
  55. package/chunk-RUVT4SCE.js +1 -0
  56. package/{chunk-52HZNWBM.js → chunk-SS3CMCAX.js} +1 -1
  57. package/{chunk-AOB6BRGQ.js → chunk-TMY4NWZ6.js} +1 -1
  58. package/chunk-TOJAZ32N.js +1 -0
  59. package/{chunk-2RWUYFYR.js → chunk-TUL6Y2HH.js} +1 -1
  60. package/{chunk-AH4LZWJY.js → chunk-UGKSIDKE.js} +1 -1
  61. package/{chunk-Z4SGDPGH.js → chunk-UTL7D6E7.js} +1 -1
  62. package/{chunk-2ODJIB2A.js → chunk-V7Y6Z4AQ.js} +2 -2
  63. package/chunk-VY4Z33EE.js +7 -0
  64. package/{chunk-RSHFIZV3.js → chunk-VYKJK5YU.js} +4 -4
  65. package/{chunk-UVBFYB2X.js → chunk-WG7APCJU.js} +1 -1
  66. package/{chunk-E6QGADC5.js → chunk-X2NM4CIV.js} +1 -1
  67. package/chunk-XWVLTTMV.js +1 -0
  68. package/{chunk-FJ7O4K2Y.js → chunk-Y6MJGNH2.js} +1 -1
  69. package/{chunk-QJ2XA575.js → chunk-YKYI4A3V.js} +1 -1
  70. package/chunk-ZL4DDXH7.js +348 -0
  71. package/{chunk-E6EWXQXJ.js → chunk-ZU7I7MCL.js} +1 -1
  72. package/{chunk-KFHCGO62.js → chunk-ZZPBK2XT.js} +1 -1
  73. package/index.html +6 -3
  74. package/{main-F2OQVLJM.js → main-MCP7AVEU.js} +1 -1
  75. package/package.json +1 -1
  76. package/styles-IAH7RNKW.css +1 -0
  77. package/chunk-63UNI6LK.js +0 -256
  78. package/chunk-7LG2CFYI.js +0 -1
  79. package/chunk-AKBPKNCH.js +0 -1
  80. package/chunk-B4JAAGJX.js +0 -1
  81. package/chunk-BGKS3L73.js +0 -246
  82. package/chunk-C6Q5SG76.js +0 -1
  83. package/chunk-DOKYUX3G.js +0 -1
  84. package/chunk-EN5MVYJQ.js +0 -180
  85. package/chunk-ISXV3FIH.js +0 -1
  86. package/chunk-JQNCWTZN.js +0 -1
  87. package/chunk-K36WQVFR.js +0 -1
  88. package/chunk-LJMMN36O.js +0 -1
  89. package/chunk-OHVHLILJ.js +0 -1
  90. package/chunk-OJWZH7AB.js +0 -301
  91. package/chunk-RR5AUWZO.js +0 -1
  92. package/chunk-T3ZCO6EC.js +0 -1
  93. package/chunk-TNXHYK2R.js +0 -7
  94. package/chunk-TTG6XQNP.js +0 -1
  95. package/chunk-UOFRXQI7.js +0 -1
  96. package/chunk-WCQQSWYQ.js +0 -616
  97. package/styles-GUJHQHWA.css +0 -1
package/chunk-OJWZH7AB.js DELETED
@@ -1,301 +0,0 @@
1
- import{a as Lt,b as At}from"./chunk-ATVC2UCR.js";import{a as Ut}from"./chunk-PG4QL7N2.js";import{a as ut}from"./chunk-2RWUYFYR.js";import{a as xt,b as It,c as wt,d as Tt,g as Vt,h as Et}from"./chunk-EP22HTZC.js";import"./chunk-TJSPXPO6.js";import{b as Dt}from"./chunk-MNPBLC23.js";import{d as Mt,e as Ve,f as be,g as ye,h as Ot,i as Ee}from"./chunk-Z4SGDPGH.js";import{c as lt,i as j,k as Ct,n as ve,u as St,v as Ft,w as kt}from"./chunk-PNAWRNGD.js";import{Da as vt,E as mt,Ea as bt,Fa as yt,Ga as ge,H as dt,Ha as I,I as ft,M as V,N as ee,O as ce,P as ht,Pa as H,b as Ze,c as se,e as Je,f as Ye,fa as _t,g as Xe,h as le,j as et,ja as gt,l as tt,o as it,t as nt,u as ot,ya as _e}from"./chunk-FVXLQNAC.js";import{d as ct}from"./chunk-T3ZCO6EC.js";import{c as pt,d as Me,f as Oe,h as De}from"./chunk-S35HUXPS.js";import{a as Ge,k as We,o as at,p as rt,q as st,w as pe}from"./chunk-25PFXJAK.js";import{k as oe,m as he,n as J,o as ae,p as re,t as O,v as D}from"./chunk-GRTIJ77T.js";import{Aa as Ne,Ab as me,Bb as c,Ea as Re,Fc as Fe,Gc as ke,Ha as z,Ic as U,Jb as f,Kb as r,La as He,Mb as ze,Nb as de,Ob as T,Pb as Se,Rc as Z,Sc as ne,Tc as qe,Ub as u,Vb as m,Wb as g,Xb as Q,Yb as K,Z as we,Zb as k,_b as w,ba as Be,bb as Te,ca as L,cb as ue,da as A,dc as y,ec as p,fc as Y,gb as l,gc as q,hb as B,hc as x,ia as F,ic as X,jc as v,kc as b,lc as ie,mc as S,nc as G,oc as Qe,pa as $e,qa as h,ra as _,ta as E,ub as M,uc as R,vb as $,vc as Ke,wc as C,xb as je,xc as W,yb as N,yc as fe,za as P}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";var Jt=["*"],Yt=({dt:t})=>`
2
- .p-inputgroup,
3
- .p-inputgroup .p-floatlabel,
4
- .p-inputgroup .p-iftalabel {
5
- display: flex;
6
- align-items: stretch;
7
- width: 100%;
8
- }
9
-
10
- .p-inputgroup .p-inputtext,
11
- .p-inputgroup .p-inputwrapper {
12
- flex: 1 1 auto;
13
- width: 1%;
14
- }
15
-
16
- .p-inputgroupaddon {
17
- display: flex;
18
- align-items: center;
19
- justify-content: center;
20
- padding: ${t("inputgroup.addon.padding")};
21
- background: ${t("inputgroup.addon.background")};
22
- color: ${t("inputgroup.addon.color")};
23
- border-block-start: 1px solid ${t("inputgroup.addon.border.color")};
24
- border-block-end: 1px solid ${t("inputgroup.addon.border.color")};
25
- min-width: ${t("inputgroup.addon.min.width")};
26
- }
27
-
28
- .p-inputgroupaddon:first-child,
29
- .p-inputgroupaddon + .p-inputgroupaddon {
30
- border-inline-start: 1px solid ${t("inputgroup.addon.border.color")};
31
- }
32
-
33
- .p-inputgroupaddon:last-child {
34
- border-inline-end: 1px solid ${t("inputgroup.addon.border.color")};
35
- }
36
-
37
- .p-inputgroupaddon:has(.p-button) {
38
- padding: 0;
39
- overflow: hidden;
40
- }
41
-
42
- .p-inputgroupaddon .p-button {
43
- border-radius: 0;
44
- }
45
-
46
- .p-inputgroup > .p-component,
47
- .p-inputgroup > .p-inputwrapper > .p-component,
48
- .p-inputgroup:first-child > p-button > .p-button,
49
- .p-inputgroup > .p-floatlabel > .p-component,
50
- .p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,
51
- .p-inputgroup > .p-iftalabel > .p-component,
52
- .p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {
53
- border-radius: 0;
54
- margin: 0;
55
- }
56
-
57
- .p-inputgroupaddon:first-child,
58
- .p-inputgroup > .p-component:first-child,
59
- .p-inputgroup > .p-inputwrapper:first-child > .p-component,
60
- .p-inputgroup > .p-floatlabel:first-child > .p-component,
61
- .p-inputgroup > .p-floatlabel:first-child > .p-inputwrapper > .p-component,
62
- .p-inputgroup > .p-iftalabel:first-child > .p-component,
63
- .p-inputgroup > .p-iftalabel:first-child > .p-inputwrapper > .p-component {
64
- border-start-start-radius: ${t("inputgroup.addon.border.radius")};
65
- border-end-start-radius: ${t("inputgroup.addon.border.radius")};
66
- }
67
-
68
- .p-inputgroupaddon:last-child,
69
- .p-inputgroup > .p-component:last-child,
70
- .p-inputgroup > .p-inputwrapper:last-child > .p-component,
71
- .p-inputgroup > .p-floatlabel:last-child > .p-component,
72
- .p-inputgroup > .p-floatlabel:last-child > .p-inputwrapper > .p-component,
73
- .p-inputgroup > .p-iftalabel:last-child > .p-component,
74
- .p-inputgroup > .p-iftalabel:last-child > .p-inputwrapper > .p-component {
75
- border-start-end-radius: ${t("inputgroup.addon.border.radius")};
76
- border-end-end-radius: ${t("inputgroup.addon.border.radius")};
77
- }
78
-
79
- .p-inputgroup .p-component:focus,
80
- .p-inputgroup .p-component.p-focus,
81
- .p-inputgroup .p-inputwrapper-focus,
82
- .p-inputgroup .p-component:focus ~ label,
83
- .p-inputgroup .p-component.p-focus ~ label,
84
- .p-inputgroup .p-inputwrapper-focus ~ label {
85
- z-index: 1;
86
- }
87
-
88
- .p-inputgroup > .p-button:not(.p-button-icon-only) {
89
- width: auto;
90
- }
91
-
92
- /*For PrimeNG*/
93
-
94
- .p-inputgroup p-button:first-child, .p-inputgroup p-button:last-child {
95
- display: inline-flex;
96
- }
97
-
98
- .p-inputgroup:has(> p-button:first-child) .p-button{
99
- border-start-start-radius: ${t("inputgroup.addon.border.radius")};
100
- border-end-start-radius: ${t("inputgroup.addon.border.radius")};
101
- }
102
-
103
- .p-inputgroup:has(> p-button:last-child) .p-button {
104
- border-start-end-radius: ${t("inputgroup.addon.border.radius")};
105
- border-end-end-radius: ${t("inputgroup.addon.border.radius")};
106
- }
107
- `,Xt={root:({props:t})=>["p-inputgroup",{"p-inputgroup-fluid":t.fluid}]},Pt=(()=>{class t extends H{name="inputgroup";theme=Yt;classes=Xt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(t)))(i||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var Ue=(()=>{class t extends j{style;styleClass;_componentStyle=F(Pt);static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(t)))(i||t)}})();static \u0275cmp=M({type:t,selectors:[["p-inputgroup"],["p-inputGroup"],["p-input-group"]],hostAttrs:[1,"p-inputgroup"],hostVars:5,hostBindings:function(n,i){n&2&&(f("data-pc-name","inputgroup"),de(i.style),T(i.styleClass))},inputs:{style:"style",styleClass:"styleClass"},features:[R([Pt]),N],ngContentSelectors:Jt,decls:1,vars:0,template:function(n,i){n&1&&(Y(),q(0))},dependencies:[O,I],encapsulation:2})}return t})(),Bt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=$({type:t});static \u0275inj=A({imports:[Ue,I,I]})}return t})();var ti=["*"],ii={root:"p-inputgroupaddon"},$t=(()=>{class t extends H{name="inputgroupaddon";classes=ii;static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(t)))(i||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),Le=(()=>{class t extends j{style;styleClass;_componentStyle=F($t);get hostStyle(){return this.style}static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(t)))(i||t)}})();static \u0275cmp=M({type:t,selectors:[["p-inputgroup-addon"],["p-inputGroupAddon"]],hostVars:7,hostBindings:function(n,i){n&2&&(f("data-pc-name","inputgroupaddon"),de(i.hostStyle),T(i.styleClass),ze("p-inputgroupaddon",!0))},inputs:{style:"style",styleClass:"styleClass"},features:[R([$t]),N],ngContentSelectors:ti,decls:1,vars:0,template:function(n,i){n&1&&(Y(),q(0))},dependencies:[O],encapsulation:2})}return t})(),Nt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=$({type:t});static \u0275inj=A({imports:[Le,I,I]})}return t})();var oi=["pMenuItemContent",""],jt=t=>({"p-disabled":t}),xe=t=>({$implicit:t}),ai=()=>({exact:!1});function ri(t,a){t&1&&k(0)}function si(t,a){if(t&1&&(u(0,"a",6),c(1,ri,1,0,"ng-container",7),m()),t&2){let e=p(2),n=ie(4);r("target",e.item.target)("ngClass",C(9,jt,e.item.disabled)),f("title",e.item.title)("href",e.item.url||null,ue)("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action"),l(),r("ngTemplateOutlet",n)("ngTemplateOutletContext",C(11,xe,e.item))}}function li(t,a){t&1&&k(0)}function pi(t,a){if(t&1&&(u(0,"a",8),c(1,li,1,0,"ng-container",7),m()),t&2){let e=p(2),n=ie(4);r("routerLink",e.item.routerLink)("queryParams",e.item.queryParams)("routerLinkActiveOptions",e.item.routerLinkActiveOptions||Ke(17,ai))("target",e.item.target)("ngClass",C(18,jt,e.item.disabled))("fragment",e.item.fragment)("queryParamsHandling",e.item.queryParamsHandling)("preserveFragment",e.item.preserveFragment)("skipLocationChange",e.item.skipLocationChange)("replaceUrl",e.item.replaceUrl)("state",e.item.state),f("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action")("title",e.item.title),l(),r("ngTemplateOutlet",n)("ngTemplateOutletContext",C(20,xe,e.item))}}function ci(t,a){if(t&1&&(Q(0),c(1,si,2,13,"a",4)(2,pi,2,22,"a",5),K()),t&2){let e=p();l(),r("ngIf",!(e.item!=null&&e.item.routerLink)),l(),r("ngIf",e.item==null?null:e.item.routerLink)}}function ui(t,a){}function mi(t,a){t&1&&c(0,ui,0,0,"ng-template")}function di(t,a){if(t&1&&(Q(0),c(1,mi,1,0,null,7),K()),t&2){let e=p();l(),r("ngTemplateOutlet",e.itemTemplate)("ngTemplateOutletContext",C(2,xe,e.item))}}function fi(t,a){if(t&1&&g(0,"span",12),t&2){let e=p(2);T(e.item.iconClass),r("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function hi(t,a){if(t&1&&(u(0,"span",13),S(1),m()),t&2){let e=p(2);l(),G(e.item.label)}}function _i(t,a){if(t&1&&(g(0,"span",14),Fe(1,"safeHtml")),t&2){let e=p(2);r("innerHTML",ke(1,1,e.item.label),Te)}}function gi(t,a){if(t&1&&g(0,"p-badge",15),t&2){let e=p(2);r("styleClass",e.item.badgeStyleClass)("value",e.item.badge)}}function vi(t,a){if(t&1&&c(0,fi,1,4,"span",9)(1,hi,2,1,"span",10)(2,_i,2,3,"ng-template",null,1,U)(4,gi,1,2,"p-badge",11),t&2){let e=ie(3),n=p();r("ngIf",n.item.icon),l(),r("ngIf",n.item.escape!==!1)("ngIfElse",e),l(3),r("ngIf",n.item.badge)}}var bi=["start"],yi=["end"],Ci=["header"],xi=["item"],Ii=["submenuheader"],wi=["list"],Ti=["container"],Si=t=>({"p-menu p-component":!0,"p-menu-overlay":t}),Fi=(t,a)=>({showTransitionParams:t,hideTransitionParams:a}),ki=t=>({value:"visible",params:t}),Mi=(t,a)=>({"p-hidden":t,flex:a}),zt=(t,a)=>({"p-focus":t,"p-disabled":a});function Oi(t,a){t&1&&k(0)}function Di(t,a){if(t&1&&(u(0,"div",9),c(1,Oi,1,0,"ng-container",10),m()),t&2){let e,n=p(2);f("data-pc-section","start"),l(),r("ngTemplateOutlet",(e=n.startTemplate)!==null&&e!==void 0?e:n._startTemplate)}}function Vi(t,a){t&1&&g(0,"li",14)}function Ei(t,a){if(t&1&&(u(0,"span"),S(1),m()),t&2){let e=p(3).$implicit;l(),G(e.label)}}function Ui(t,a){if(t&1&&(g(0,"span",18),Fe(1,"safeHtml")),t&2){let e=p(3).$implicit;r("innerHTML",ke(1,1,e.label),Te)}}function Li(t,a){if(t&1&&(Q(0),c(1,Ei,2,1,"span",17)(2,Ui,2,3,"ng-template",null,2,U),K()),t&2){let e=ie(3),n=p(2).$implicit;l(),r("ngIf",n.escape!==!1)("ngIfElse",e)}}function Ai(t,a){t&1&&k(0)}function Pi(t,a){if(t&1&&(u(0,"li",15),c(1,Li,4,2,"ng-container",7)(2,Ai,1,0,"ng-container",16),m()),t&2){let e,n=p(),i=n.$implicit,o=n.index,s=p(3);r("ngClass",W(7,Mi,i.visible===!1,i.visible))("tooltipOptions",i.tooltipOptions),f("data-automationid",i.automationId)("id",s.menuitemId(i,s.id,o)),l(),r("ngIf",!s.submenuHeaderTemplate&&!s._submenuHeaderTemplate),l(),r("ngTemplateOutlet",(e=s.submenuHeaderTemplate)!==null&&e!==void 0?e:s._submenuHeaderTemplate)("ngTemplateOutletContext",C(10,xe,i))}}function Bi(t,a){t&1&&g(0,"li",14)}function $i(t,a){if(t&1){let e=w();u(0,"li",20),y("onMenuItemClick",function(i){h(e);let o=p(),s=o.$implicit,d=o.index,te=p().index,Ie=p(3);return _(Ie.itemClick(i,Ie.menuitemId(s,Ie.id,te,d)))}),m()}if(t&2){let e,n=p(),i=n.$implicit,o=n.index,s=p().index,d=p(3);T(i.styleClass),r("pMenuItemContent",i)("itemTemplate",(e=d.itemTemplate)!==null&&e!==void 0?e:d._itemTemplate)("ngClass",W(13,zt,d.focusedOptionId()&&d.menuitemId(i,d.id,s,o)===d.focusedOptionId(),d.disabled(i.disabled)))("ngStyle",i.style)("tooltipOptions",i.tooltipOptions),f("data-pc-section","menuitem")("aria-label",d.label(i.label))("data-p-focused",d.isItemFocused(d.menuitemId(i,d.id,s,o)))("data-p-disabled",d.disabled(i.disabled))("aria-disabled",d.disabled(i.disabled))("id",d.menuitemId(i,d.id,s,o))}}function Ni(t,a){if(t&1&&c(0,Bi,1,0,"li",12)(1,$i,1,16,"li",19),t&2){let e=a.$implicit,n=p().$implicit;r("ngIf",e.separator&&(e.visible!==!1||n.visible!==!1)),l(),r("ngIf",!e.separator&&e.visible!==!1&&(e.visible!==void 0||n.visible!==!1))}}function Ri(t,a){if(t&1&&c(0,Vi,1,0,"li",12)(1,Pi,3,12,"li",13)(2,Ni,2,2,"ng-template",11),t&2){let e=a.$implicit;r("ngIf",e.separator&&e.visible!==!1),l(),r("ngIf",!e.separator),l(),r("ngForOf",e.items)}}function Hi(t,a){if(t&1&&c(0,Ri,3,3,"ng-template",11),t&2){let e=p(2);r("ngForOf",e.model)}}function ji(t,a){t&1&&g(0,"li",14)}function zi(t,a){if(t&1){let e=w();u(0,"li",20),y("onMenuItemClick",function(i){h(e);let o=p(),s=o.$implicit,d=o.index,te=p(3);return _(te.itemClick(i,te.menuitemId(s,te.id,d)))}),m()}if(t&2){let e,n=p(),i=n.$implicit,o=n.index,s=p(3);T(i.styleClass),r("pMenuItemContent",i)("itemTemplate",(e=s.itemTemplate)!==null&&e!==void 0?e:s._itemTemplate)("ngClass",W(13,zt,s.focusedOptionId()&&s.menuitemId(i,s.id,o)===s.focusedOptionId(),s.disabled(i.disabled)))("ngStyle",i.style)("tooltipOptions",i.tooltipOptions),f("data-pc-section","menuitem")("aria-label",s.label(i.label))("data-p-focused",s.isItemFocused(s.menuitemId(i,s.id,o)))("data-p-disabled",s.disabled(i.disabled))("aria-disabled",s.disabled(i.disabled))("id",s.menuitemId(i,s.id,o))}}function Qi(t,a){if(t&1&&c(0,ji,1,0,"li",12)(1,zi,1,16,"li",19),t&2){let e=a.$implicit;r("ngIf",e.separator&&e.visible!==!1),l(),r("ngIf",!e.separator&&e.visible!==!1)}}function Ki(t,a){if(t&1&&c(0,Qi,2,2,"ng-template",11),t&2){let e=p(2);r("ngForOf",e.model)}}function qi(t,a){t&1&&k(0)}function Gi(t,a){if(t&1&&(u(0,"div",21),c(1,qi,1,0,"ng-container",10),m()),t&2){let e,n=p(2);f("data-pc-section","end"),l(),r("ngTemplateOutlet",(e=n.endTemplate)!==null&&e!==void 0?e:n._endTemplate)}}function Wi(t,a){if(t&1){let e=w();u(0,"div",4,0),y("click",function(i){h(e);let o=p();return _(o.onOverlayClick(i))})("@overlayAnimation.start",function(i){h(e);let o=p();return _(o.onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){h(e);let o=p();return _(o.onOverlayAnimationEnd(i))}),c(2,Di,2,2,"div",5),u(3,"ul",6,1),y("focus",function(i){h(e);let o=p();return _(o.onListFocus(i))})("blur",function(i){h(e);let o=p();return _(o.onListBlur(i))})("keydown",function(i){h(e);let o=p();return _(o.onListKeyDown(i))}),c(5,Hi,1,1,null,7)(6,Ki,1,1,null,7),m(),c(7,Gi,2,2,"div",8),m()}if(t&2){let e,n,i=p();T(i.styleClass),r("ngClass",C(18,Si,i.popup))("ngStyle",i.style)("@overlayAnimation",C(23,ki,W(20,Fi,i.showTransitionOptions,i.hideTransitionOptions)))("@.disabled",i.popup!==!0),f("data-pc-name","menu")("id",i.id),l(2),r("ngIf",(e=i.startTemplate)!==null&&e!==void 0?e:i._startTemplate),l(),f("id",i.id+"_list")("tabindex",i.getTabIndexValue())("data-pc-section","menu")("aria-activedescendant",i.activedescendant())("aria-label",i.ariaLabel)("aria-labelledBy",i.ariaLabelledBy),l(2),r("ngIf",i.hasSubMenu()),l(),r("ngIf",!i.hasSubMenu()),l(),r("ngIf",(n=i.endTemplate)!==null&&n!==void 0?n:i._endTemplate)}}var Zi=({dt:t})=>`
108
- .p-menu {
109
- background: ${t("menu.background")};
110
- color: ${t("menu.color")};
111
- border: 1px solid ${t("menu.border.color")};
112
- border-radius: ${t("menu.border.radius")};
113
- min-width: 12.5rem;
114
- }
115
-
116
- .p-menu-list {
117
- margin: 0;
118
- padding: ${t("menu.list.padding")};
119
- outline: 0 none;
120
- list-style: none;
121
- display: flex;
122
- flex-direction: column;
123
- gap: ${t("menu.list.gap")};
124
- }
125
-
126
- .p-menu-item-content {
127
- transition: background ${t("menu.transition.duration")}, color ${t("menu.transition.duration")};
128
- border-radius: ${t("menu.item.border.radius")};
129
- color: ${t("menu.item.color")};
130
- }
131
-
132
- .p-menu-item-link {
133
- cursor: pointer;
134
- display: flex;
135
- align-items: center;
136
- text-decoration: none;
137
- overflow: hidden;
138
- position: relative;
139
- color: inherit;
140
- padding: ${t("menu.item.padding")};
141
- gap: ${t("menu.item.gap")};
142
- user-select: none;
143
- outline: 0 none;
144
- }
145
-
146
- .p-menu-item-label {
147
- line-height: 1;
148
- }
149
-
150
- .p-menu-item-icon {
151
- color: ${t("menu.item.icon.color")};
152
- }
153
-
154
- .p-menu-item.p-focus .p-menu-item-content {
155
- color: ${t("menu.item.focus.color")};
156
- background: ${t("menu.item.focus.background")};
157
- }
158
-
159
- .p-menu-item.p-focus .p-menu-item-icon {
160
- color: ${t("menu.item.icon.focus.color")};
161
- }
162
-
163
- .p-menu-item:not(.p-disabled) .p-menu-item-content:hover {
164
- color: ${t("menu.item.focus.color")};
165
- background: ${t("menu.item.focus.background")};
166
- }
167
-
168
- .p-menu-item:not(.p-disabled) .p-menu-item-content:hover .p-menu-item-icon {
169
- color: ${t("menu.item.icon.focus.color")};
170
- }
171
-
172
- .p-menu-overlay {
173
- box-shadow: ${t("menu.shadow")};
174
- }
175
-
176
- .p-menu-submenu-label {
177
- background: ${t("menu.submenu.label.background")};
178
- padding: ${t("menu.submenu.label.padding")};
179
- color: ${t("menu.submenu.label.color")};
180
- font-weight: ${t("menu.submenu.label.font.weight")};
181
- }
182
-
183
- .p-menu-separator {
184
- border-top: 1px solid ${t("menu.separator.border.color")};
185
- }
186
-
187
- /* For PrimeNG */
188
- .p-menu-overlay {
189
- position: absolute;
190
- }
191
- `,Ji={root:({props:t})=>["p-menu p-component",{"p-menu-overlay":t.popup}],start:"p-menu-start",list:"p-menu-list",submenuLabel:"p-menu-submenu-label",separator:"p-menu-separator",end:"p-menu-end",item:({instance:t})=>["p-menu-item",{"p-focus":t.id===t.focusedOptionId,"p-disabled":t.disabled()}],itemContent:"p-menu-item-content",itemLink:"p-menu-item-link",itemIcon:"p-menu-item-icon",itemLabel:"p-menu-item-label"},Rt=(()=>{class t extends H{name="menu";theme=Zi;classes=Ji;static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(t)))(i||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var Qt=(()=>{class t{platformId;sanitizer;constructor(e,n){this.platformId=e,this.sanitizer=n}transform(e){return!e||!D(this.platformId)?e:this.sanitizer.bypassSecurityTrustHtml(e)}static \u0275fac=function(n){return new(n||t)(B(He,16),B(We,16))};static \u0275pipe=je({name:"safeHtml",type:t,pure:!0})}return t})(),Yi=(()=>{class t{item;itemTemplate;onMenuItemClick=new P;menu;constructor(e){this.menu=e}onItemClick(e,n){this.onMenuItemClick.emit({originalEvent:e,item:n})}static \u0275fac=function(n){return new(n||t)(B(Be(()=>Kt)))};static \u0275cmp=M({type:t,selectors:[["","pMenuItemContent",""]],inputs:{item:[0,"pMenuItemContent","item"],itemTemplate:"itemTemplate"},outputs:{onMenuItemClick:"onMenuItemClick"},attrs:oi,decls:5,vars:3,consts:[["itemContent",""],["htmlLabel",""],[1,"p-menu-item-content",3,"click"],[4,"ngIf"],["class","p-menu-item-link","pRipple","",3,"target","ngClass",4,"ngIf"],["routerLinkActive","p-menu-item-link-active","class","p-menu-item-link","pRipple","",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",1,"p-menu-item-link",3,"target","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["routerLinkActive","p-menu-item-link-active","pRipple","",1,"p-menu-item-link",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["class","p-menu-item-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menu-item-label",4,"ngIf","ngIfElse"],[3,"styleClass","value",4,"ngIf"],[1,"p-menu-item-icon",3,"ngClass","ngStyle"],[1,"p-menu-item-label"],[1,"p-menu-item-label",3,"innerHTML"],[3,"styleClass","value"]],template:function(n,i){if(n&1){let o=w();u(0,"div",2),y("click",function(d){return h(o),_(i.onItemClick(d,i.item))}),c(1,ci,3,2,"ng-container",3)(2,di,2,4,"ng-container",3)(3,vi,5,4,"ng-template",null,0,U),m()}n&2&&(f("data-pc-section","content"),l(),r("ngIf",!i.itemTemplate),l(),r("ngIf",i.itemTemplate))},dependencies:[O,oe,J,re,ae,pe,rt,st,kt,Ee,Ve,Mt,I,Qt],encapsulation:2})}return t})(),Kt=(()=>{class t extends j{overlayService;model;popup;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";ariaLabel;ariaLabelledBy;id;tabindex=0;onShow=new P;onHide=new P;onBlur=new P;onFocus=new P;listViewChild;containerViewChild;container;scrollHandler;documentClickListener;documentResizeListener;preventDocumentDefault;target;visible;focusedOptionId=qe(()=>this.focusedOptionIndex()!==-1?this.focusedOptionIndex():null);focusedOptionIndex=z(-1);selectedOptionIndex=z(-1);focused=!1;overlayVisible=!1;relativeAlign;_componentStyle=F(Rt);constructor(e){super(),this.overlayService=e,this.id=this.id||_e("pn_id_")}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.overlayVisible=!0,this.cd.markForCheck()}ngOnInit(){super.ngOnInit(),this.popup||this.bindDocumentClickListener()}startTemplate;_startTemplate;endTemplate;_endTemplate;headerTemplate;_headerTemplate;itemTemplate;_itemTemplate;submenuHeaderTemplate;_submenuHeaderTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"start":this._startTemplate=e.template;break;case"end":this._endTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"submenuheader":this._submenuHeaderTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}getTabIndexValue(){return this.tabindex!==void 0?this.tabindex.toString():null}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),ce(this.listViewChild.nativeElement));break;case"void":this.onOverlayHide(),this.onHide.emit({});break}}onOverlayAnimationEnd(e){switch(e.toState){case"void":this.autoZIndex&&ve.clear(e.element);break}}alignOverlay(){this.relativeAlign?dt(this.container,this.target):mt(this.container,this.target)}appendOverlay(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):ft(this.appendTo,this.container))}restoreOverlayAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}moveOnTop(){this.autoZIndex&&ve.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.visible&&!_t()&&this.hide()}menuitemId(e,n,i,o){return e?.id??`${n}_${i}${o!==void 0?"_"+o:""}`}isItemFocused(e){return this.focusedOptionId()===e}label(e){return typeof e=="function"?e():e}disabled(e){return typeof e=="function"?e():typeof e>"u"?!1:e}activedescendant(){return this.focused?this.focusedOptionId():void 0}onListFocus(e){this.focused||(this.focused=!0,this.onFocus.emit(e))}onListBlur(e){this.focused&&(this.focused=!1,this.changeFocusedOptionIndex(-1),this.selectedOptionIndex.set(-1),this.focusedOptionIndex.set(-1),this.onBlur.emit(e))}onListKeyDown(e){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"Enter":this.onEnterKey(e);break;case"NumpadEnter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"Escape":case"Tab":this.popup&&(ce(this.target),this.hide()),this.overlayVisible&&this.hide();break;default:break}}onArrowDownKey(e){let n=this.findNextOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(n),e.preventDefault()}onArrowUpKey(e){if(e.altKey&&this.popup)ce(this.target),this.hide(),e.preventDefault();else{let n=this.findPrevOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(n),e.preventDefault()}}onHomeKey(e){this.changeFocusedOptionIndex(0),e.preventDefault()}onEndKey(e){this.changeFocusedOptionIndex(V(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1),e.preventDefault()}onEnterKey(e){let n=ee(this.containerViewChild.nativeElement,`li[id="${`${this.focusedOptionIndex()}`}"]`),i=n&&ee(n,'a[data-pc-section="action"]');this.popup&&ce(this.target),i?i.click():n&&n.click(),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextOptionIndex(e){let i=[...V(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return i>-1?i+1:0}findPrevOptionIndex(e){let i=[...V(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return i>-1?i-1:0}changeFocusedOptionIndex(e){let n=V(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]');if(n.length>0){let i=e>=n.length?n.length-1:e<0?0:e;i>-1&&this.focusedOptionIndex.set(n[i].getAttribute("id"))}}itemClick(e,n){let{originalEvent:i,item:o}=e;if(this.focused||(this.focused=!0,this.onFocus.emit()),o.disabled){i.preventDefault();return}!o.url&&!o.routerLink&&i.preventDefault(),o.command&&o.command({originalEvent:i,item:o}),this.popup&&this.hide(),!this.popup&&this.focusedOptionIndex()!==n&&this.focusedOptionIndex.set(n)}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){if(!this.documentClickListener&&D(this.platformId)){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{let i=this.containerViewChild?.nativeElement&&!this.containerViewChild?.nativeElement.contains(n.target),o=!(this.target&&(this.target===n.target||this.target.contains(n.target)));!this.popup&&i&&o&&this.onListBlur(n),this.preventDocumentDefault&&this.overlayVisible&&i&&o&&(this.hide(),this.preventDocumentDefault=!1)})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){if(!this.documentResizeListener&&D(this.platformId)){let e=this.document.defaultView;this.documentResizeListener=this.renderer.listen(e,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){!this.scrollHandler&&D(this.platformId)&&(this.scrollHandler=new Ct(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler?.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&(this.scrollHandler.unbindScrollListener(),this.scrollHandler=null)}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&ve.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide()),this.popup||this.unbindDocumentClickListener(),super.ngOnDestroy()}hasSubMenu(){return this.model?.some(e=>e.items)??!1}isItemHidden(e){return e.separator?e.visible===!1||e.items&&e.items.some(n=>n.visible!==!1):e.visible===!1}static \u0275fac=function(n){return new(n||t)(B(vt))};static \u0275cmp=M({type:t,selectors:[["p-menu"]],contentQueries:function(n,i,o){if(n&1&&(x(o,bi,4),x(o,yi,4),x(o,Ci,4),x(o,xi,4),x(o,Ii,4),x(o,ge,4)),n&2){let s;v(s=b())&&(i.startTemplate=s.first),v(s=b())&&(i.endTemplate=s.first),v(s=b())&&(i.headerTemplate=s.first),v(s=b())&&(i.itemTemplate=s.first),v(s=b())&&(i.submenuHeaderTemplate=s.first),v(s=b())&&(i.templates=s)}},viewQuery:function(n,i){if(n&1&&(X(wi,5),X(Ti,5)),n&2){let o;v(o=b())&&(i.listViewChild=o.first),v(o=b())&&(i.containerViewChild=o.first)}},inputs:{model:"model",popup:[2,"popup","popup",Z],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[2,"autoZIndex","autoZIndex",Z],baseZIndex:[2,"baseZIndex","baseZIndex",ne],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",id:"id",tabindex:[2,"tabindex","tabindex",ne]},outputs:{onShow:"onShow",onHide:"onHide",onBlur:"onBlur",onFocus:"onFocus"},features:[R([Rt]),me,N],decls:1,vars:1,consts:[["container",""],["list",""],["htmlSubmenuLabel",""],[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"click","ngClass","ngStyle"],["class","p-menu-start",4,"ngIf"],["role","menu",1,"p-menu-list","p-reset",3,"focus","blur","keydown"],[4,"ngIf"],["class","p-menu-end",4,"ngIf"],[1,"p-menu-start"],[4,"ngTemplateOutlet"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",4,"ngIf"],["class","p-menu-submenu-label","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator"],["pTooltip","","role","none",1,"p-menu-submenu-label",3,"ngClass","tooltipOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["class","p-menu-item","pTooltip","","role","menuitem",3,"pMenuItemContent","itemTemplate","ngClass","ngStyle","class","tooltipOptions","onMenuItemClick",4,"ngIf"],["pTooltip","","role","menuitem",1,"p-menu-item",3,"onMenuItemClick","pMenuItemContent","itemTemplate","ngClass","ngStyle","tooltipOptions"],[1,"p-menu-end"]],template:function(n,i){n&1&&c(0,Wi,8,25,"div",3),n&2&&r("ngIf",!i.popup||i.visible)},dependencies:[O,oe,he,J,re,ae,pe,Yi,Ee,Ot,Ve,I,Qt],encapsulation:2,data:{animation:[pt("overlayAnimation",[De(":enter",[Oe({opacity:0,transform:"scaleY(0.8)"}),Me("{{showTransitionParams}}")]),De(":leave",[Me("{{hideTransitionParams}}",Oe({opacity:0}))])])]},changeDetection:0})}return t})(),qt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=$({type:t});static \u0275inj=A({imports:[Kt,I,I]})}return t})();var en=["item"],tn=["header"],nn=["footer"],on=["previousicon"],an=["nexticon"],rn=["itemsContainer"],sn=["indicatorContent"],ln=[[["p-header"]],[["p-footer"]]],pn=["p-header","p-footer"],cn=(t,a)=>({"p-carousel p-component":!0,"p-carousel-vertical":t,"p-carousel-horizontal":a}),un=t=>({height:t}),mn=t=>({"p-carousel-prev-button":!0,"p-disabled":t}),Wt=(t,a,e)=>({"p-carousel-item p-carousel-item-clone":!0,"p-carousel-item-active":t,"p-carousel-item-start":a,"p-carousel-item-end":e}),Ae=t=>({$implicit:t}),dn=(t,a,e)=>({"p-carousel-item":!0,"p-carousel-item-active":t,"p-carousel-item-start":a,"p-carousel-item-end":e}),fn=t=>({"p-carousel-next-button":!0,"p-disabled":t}),hn=t=>({"p-carousel-indicator":!0,"p-carousel-indicator-active":t});function _n(t,a){t&1&&k(0)}function gn(t,a){if(t&1&&(u(0,"div",14),q(1),c(2,_n,1,0,"ng-container",15),m()),t&2){let e=p();l(2),r("ngTemplateOutlet",e.headerTemplate)}}function vn(t,a){t&1&&g(0,"ChevronLeftIcon",20),t&2&&r("styleClass","carousel-prev-icon")}function bn(t,a){t&1&&g(0,"ChevronUpIcon",20),t&2&&r("styleClass","carousel-prev-icon")}function yn(t,a){if(t&1&&(Q(0),c(1,vn,1,1,"ChevronLeftIcon",19)(2,bn,1,1,"ChevronUpIcon",19),K()),t&2){let e=p(3);l(),r("ngIf",!e.isVertical()),l(),r("ngIf",e.isVertical())}}function Cn(t,a){}function xn(t,a){t&1&&c(0,Cn,0,0,"ng-template")}function In(t,a){if(t&1&&(u(0,"span",21),c(1,xn,1,0,null,15),m()),t&2){let e=p(3);l(),r("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function wn(t,a){if(t&1&&c(0,yn,3,2,"ng-container",17)(1,In,2,1,"span",18),t&2){let e=p(2);r("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate&&!(e.prevButtonProps!=null&&e.prevButtonProps.icon)),l(),r("ngIf",(e.previousIconTemplate||e._previousIconTemplate)&&!(e.prevButtonProps!=null&&e.prevButtonProps.icon))}}function Tn(t,a){if(t&1){let e=w();u(0,"p-button",16),y("click",function(i){h(e);let o=p();return _(o.navBackward(i))}),c(1,wn,2,2,"ng-template",null,1,U),m()}if(t&2){let e=p();r("ngClass",C(5,mn,e.isBackwardNavDisabled()))("disabled",e.isBackwardNavDisabled())("text",!0)("buttonProps",e.prevButtonProps),f("aria-label",e.ariaPrevButtonLabel())}}function Sn(t,a){t&1&&k(0)}function Fn(t,a){if(t&1&&(u(0,"div",5),c(1,Sn,1,0,"ng-container",22),m()),t&2){let e=a.$implicit,n=a.index,i=p();r("ngClass",fe(6,Wt,i.totalShiftedItems*-1===i.value.length,n===0,i.clonedItemsForStarting.length-1===n)),f("aria-hidden",i.totalShiftedItems*-1!==i.value.length)("aria-label",i.ariaSlideNumber(n))("aria-roledescription",i.ariaSlideLabel()),l(),r("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",C(10,Ae,e))}}function kn(t,a){t&1&&k(0)}function Mn(t,a){if(t&1&&(u(0,"div",5),c(1,kn,1,0,"ng-container",22),m()),t&2){let e=a.$implicit,n=a.index,i=p();r("ngClass",fe(6,dn,i.firstIndex()<=n&&i.lastIndex()>=n,i.firstIndex()===n,i.lastIndex()===n)),f("aria-hidden",!(i.firstIndex()<=n&&i.lastIndex()>=n))("aria-label",i.ariaSlideNumber(n))("aria-roledescription",i.ariaSlideLabel()),l(),r("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",C(10,Ae,e))}}function On(t,a){t&1&&k(0)}function Dn(t,a){if(t&1&&(u(0,"div",5),c(1,On,1,0,"ng-container",22),m()),t&2){let e=a.$implicit,n=a.index,i=p();r("ngClass",fe(3,Wt,i.totalShiftedItems*-1===i.numVisible,n===0,i.clonedItemsForFinishing.length-1===n)),l(),r("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",C(7,Ae,e))}}function Vn(t,a){t&1&&g(0,"ChevronRightIcon",20),t&2&&r("styleClass","carousel-next-icon")}function En(t,a){t&1&&g(0,"ChevronDownIcon",20),t&2&&r("styleClass","carousel-next-icon")}function Un(t,a){if(t&1&&(Q(0),c(1,Vn,1,1,"ChevronRightIcon",19)(2,En,1,1,"ChevronDownIcon",19),K()),t&2){let e=p(3);l(),r("ngIf",!e.isVertical()),l(),r("ngIf",e.isVertical())}}function Ln(t,a){}function An(t,a){t&1&&c(0,Ln,0,0,"ng-template")}function Pn(t,a){if(t&1&&(u(0,"span",25),c(1,An,1,0,null,15),m()),t&2){let e=p(3);l(),r("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function Bn(t,a){if(t&1&&c(0,Un,3,2,"ng-container",17)(1,Pn,2,1,"span",24),t&2){let e=p(2);r("ngIf",!e.nextIconTemplate&&!e._nextIconTemplate&&!(e.nextButtonProps!=null&&e.nextButtonProps.icon)),l(),r("ngIf",e.nextIconTemplate||e._nextIconTemplate&&!(e.nextButtonProps!=null&&e.nextButtonProps.icon))}}function $n(t,a){if(t&1){let e=w();u(0,"p-button",23),y("click",function(i){h(e);let o=p();return _(o.navForward(i))}),c(1,Bn,2,2,"ng-template",null,1,U),m()}if(t&2){let e=p();r("ngClass",C(5,fn,e.isForwardNavDisabled()))("disabled",e.isForwardNavDisabled())("buttonProps",e.nextButtonProps)("text",!0),f("aria-label",e.ariaNextButtonLabel())}}function Nn(t,a){if(t&1){let e=w();u(0,"li",5)(1,"button",27),y("click",function(i){let o=h(e).index,s=p(2);return _(s.onDotClick(i,o))}),m()()}if(t&2){let e=a.index,n=p(2);r("ngClass",C(9,hn,n._page===e)),f("data-pc-section","indicator"),l(),T(n.indicatorStyleClass),r("ngClass","p-carousel-indicator-button")("ngStyle",n.indicatorStyle)("tabindex",n._page===e?0:-1),f("aria-label",n.ariaPageLabel(e+1))("aria-current",n._page===e?"page":void 0)}}function Rn(t,a){if(t&1){let e=w();u(0,"ul",26,2),y("keydown",function(i){h(e);let o=p();return _(o.onIndicatorKeydown(i))}),c(2,Nn,2,11,"li",10),m()}if(t&2){let e=p();T(e.indicatorsContentClass),r("ngClass","p-carousel-indicator-list")("ngStyle",e.indicatorsContentStyle),l(2),r("ngForOf",e.totalDotsArray())}}function Hn(t,a){t&1&&k(0)}function jn(t,a){if(t&1&&(u(0,"div",28),q(1,1),c(2,Hn,1,0,"ng-container",15),m()),t&2){let e=p();l(2),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var zn=({dt:t})=>`
192
- .p-carousel {
193
- display: flex;
194
- flex-direction: column;
195
- }
196
-
197
- .p-carousel-content-container {
198
- display: flex;
199
- flex-direction: column;
200
- overflow: auto;
201
- }
202
-
203
- .p-carousel-content {
204
- display: flex;
205
- flex-direction: row;
206
- gap: ${t("carousel.content.gap")};
207
- }
208
-
209
- .p-carousel-content:dir(rtl) {
210
- flex-direction: row-reverse;
211
- }
212
-
213
- .p-carousel-viewport {
214
- overflow: hidden;
215
- width: 100%;
216
- }
217
-
218
- .p-carousel-item-list {
219
- display: flex;
220
- flex-direction: row;
221
- }
222
-
223
- .p-carousel-item-list:dir(rtl) {
224
- flex-direction: row-reverse;
225
- }
226
-
227
- .p-carousel-prev-button,
228
- .p-carousel-next-button {
229
- align-self: center;
230
- flex-shrink: 0;
231
- }
232
-
233
- .p-carousel-indicator-list {
234
- display: flex;
235
- flex-direction: row;
236
- justify-content: center;
237
- flex-wrap: wrap;
238
- padding: ${t("carousel.indicator.list.padding")};
239
- gap: ${t("carousel.indicator.list.gap")};
240
- margin: 0;
241
- list-style: none;
242
- }
243
-
244
- .p-carousel-indicator-button {
245
- display: flex;
246
- align-items: center;
247
- justify-content: center;
248
- background: ${t("carousel.indicator.background")};
249
- width: ${t("carousel.indicator.width")};
250
- height: ${t("carousel.indicator.height")};
251
- border: 0 none;
252
- transition: background ${t("carousel.transition.duration")}, color ${t("carousel.transition.duration")}, outline-color ${t("carousel.transition.duration")}, box-shadow ${t("carousel.transition.duration")};
253
- outline-color: transparent;
254
- border-radius: ${t("carousel.indicator.border.radius")};
255
- padding: 0;
256
- margin: 0;
257
- user-select: none;
258
- cursor: pointer;
259
- }
260
-
261
- .p-carousel-indicator-button:focus-visible {
262
- box-shadow: ${t("carousel.indicator.focus.ring.shadow")};
263
- outline: ${t("carousel.indicator.focus.ring.width")} ${t("carousel.indicator.focus.ring.style")} ${t("carousel.indicator.focus.ring.color")};
264
- outline-offset: ${t("carousel.indicator.focus.ring.offset")};
265
- }
266
-
267
- .p-carousel-indicator-button:hover {
268
- background: ${t("carousel.indicator.hover.background")};
269
- }
270
-
271
- .p-carousel-indicator-active .p-carousel-indicator-button {
272
- background: ${t("carousel.indicator.active.background")};
273
- }
274
-
275
- .p-carousel-vertical .p-carousel-content {
276
- flex-direction: column;
277
- }
278
-
279
- .p-carousel-vertical .p-carousel-item-list {
280
- flex-direction: column;
281
- height: 100%;
282
- }
283
-
284
- .p-items-hidden .p-carousel-item {
285
- visibility: hidden;
286
- }
287
-
288
- .p-items-hidden .p-carousel-item.p-carousel-item-active {
289
- visibility: visible;
290
- }
291
- `,Qn={root:({instance:t})=>["p-carousel p-component",{"p-carousel-vertical":t.isVertical(),"p-carousel-horizontal":!t.isVertical()}],header:"p-carousel-header",contentContainer:"p-carousel-content-container",content:"p-carousel-content",pcPrevButton:({instance:t})=>["p-carousel-prev-button",{"p-disabled":t.backwardIsDisabled}],viewport:"p-carousel-viewport",itemList:"p-carousel-item-list",itemClone:({index:t,value:a,totalShiftedItems:e,d_numVisible:n})=>["p-carousel-item p-carousel-item-clone",{"p-carousel-item-active":e*-1===a.length+n,"p-carousel-item-start":t===0,"p-carousel-item-end":a.slice(-1*n).length-1===t}],item:({instance:t,index:a})=>["p-carousel-item",{"p-carousel-item-active":t.firstIndex()<=a&&t.lastIndex()>=a,"p-carousel-item-start":t.firstIndex()===a,"p-carousel-item-end":t.lastIndex()===a}],pcNextButton:({instance:t})=>["p-carousel-next-button",{"p-disabled":t.forwardIsDisabled}],indicatorList:"p-carousel-indicator-list",indicator:({instance:t,index:a})=>["p-carousel-indicator",{"p-carousel-indicator-active":t.d_page===a}],indicatorButton:"p-carousel-indicator-button",footer:"p-carousel-footer"},Gt=(()=>{class t extends H{name="carousel";theme=zn;classes=Qn;static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(t)))(i||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var Pe=(()=>{class t extends j{el;zone;get page(){return this._page}set page(e){this.isCreated&&e!==this._page&&(this.autoplayInterval&&this.stopAutoplay(),e>this._page&&e<=this.totalDots()-1?this.step(-1,e):e<this._page&&this.step(1,e)),this._page=e}get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e}get numScroll(){return this._numVisible}set numScroll(e){this._numScroll=e}responsiveOptions;orientation="horizontal";verticalViewPortHeight="300px";contentClass="";indicatorsContentClass="";indicatorsContentStyle;indicatorStyleClass="";indicatorStyle;get value(){return this._value}set value(e){this._value=e}circular=!1;showIndicators=!0;showNavigators=!0;autoplayInterval=0;style;styleClass;prevButtonProps={severity:"secondary",text:!0,rounded:!0};nextButtonProps={severity:"secondary",text:!0,rounded:!0};onPage=new P;itemsContainer;indicatorContent;headerFacet;footerFacet;_numVisible=1;_numScroll=1;_oldNumScroll=0;prevState={numScroll:0,numVisible:0,value:[]};defaultNumScroll=1;defaultNumVisible=1;_page=0;_value;carouselStyle;id;totalShiftedItems;isRemainingItemsAdded=!1;animationTimeout;translateTimeout;remainingItems=0;_items;startPos;documentResizeListener;clonedItemsForStarting;clonedItemsForFinishing;allowAutoplay;interval;isCreated;swipeThreshold=20;itemTemplate;headerTemplate;footerTemplate;previousIconTemplate;nextIconTemplate;_itemTemplate;_headerTemplate;_footerTemplate;_previousIconTemplate;_nextIconTemplate;window;_componentStyle=F(Gt);constructor(e,n){super(),this.el=e,this.zone=n,this.totalShiftedItems=this.page*this.numScroll*-1,this.window=this.document.defaultView}ngOnChanges(e){D(this.platformId)&&(e.value&&this.circular&&this._value&&this.setCloneItems(),this.isCreated&&(e.numVisible&&(this.responsiveOptions&&(this.defaultNumVisible=this.numVisible),this.isCircular()&&this.setCloneItems(),this.createStyle(),this.calculatePosition()),e.numScroll&&this.responsiveOptions&&(this.defaultNumScroll=this.numScroll))),this.cd.markForCheck()}templates;ngAfterContentInit(){this.id=_e("pn_id_"),D(this.platformId)&&(this.allowAutoplay=!!this.autoplayInterval,this.circular&&this.setCloneItems(),this.responsiveOptions&&(this.defaultNumScroll=this._numScroll,this.defaultNumVisible=this._numVisible),this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners()),this.templates?.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}}),this.cd.detectChanges()}ngAfterContentChecked(){if(D(this.platformId)){let e=this.isCircular(),n=this.totalShiftedItems;if(this.value&&this.itemsContainer&&(this.prevState.numScroll!==this._numScroll||this.prevState.numVisible!==this._numVisible||this.prevState.value.length!==this.value.length)){this.autoplayInterval&&this.stopAutoplay(!1),this.remainingItems=(this.value.length-this._numVisible)%this._numScroll;let i=this._page;this.totalDots()!==0&&i>=this.totalDots()&&(i=this.totalDots()-1,this._page=i,this.onPage.emit({page:this.page})),n=i*this._numScroll*-1,e&&(n-=this._numVisible),i===this.totalDots()-1&&this.remainingItems>0?(n+=-1*this.remainingItems+this._numScroll,this.isRemainingItemsAdded=!0):this.isRemainingItemsAdded=!1,n!==this.totalShiftedItems&&(this.totalShiftedItems=n),this._oldNumScroll=this._numScroll,this.prevState.numScroll=this._numScroll,this.prevState.numVisible=this._numVisible,this.prevState.value=[...this._value],this.totalDots()>0&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${n*(100/this._numVisible)}%, 0)`:`translate3d(${n*(100/this._numVisible)}%, 0, 0)`),this.isCreated=!0,this.autoplayInterval&&this.isAutoplay()&&this.startAutoplay()}e&&(this.page===0?n=-1*this._numVisible:n===0&&(n=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),n!==this.totalShiftedItems&&(this.totalShiftedItems=n))}}createStyle(){this.carouselStyle||(this.carouselStyle=this.renderer.createElement("style"),this.carouselStyle.type="text/css",gt(this.carouselStyle,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.carouselStyle));let e=`
292
- #${this.id} .p-carousel-item {
293
- flex: 1 0 ${100/this.numVisible}%
294
- }
295
- `;if(this.responsiveOptions){this.responsiveOptions.sort((n,i)=>{let o=n.breakpoint,s=i.breakpoint,d=null;return o==null&&s!=null?d=-1:o!=null&&s==null?d=1:o==null&&s==null?d=0:typeof o=="string"&&typeof s=="string"?d=o.localeCompare(s,void 0,{numeric:!0}):d=o<s?-1:o>s?1:0,-1*d});for(let n=0;n<this.responsiveOptions.length;n++){let i=this.responsiveOptions[n];e+=`
296
- @media screen and (max-width: ${i.breakpoint}) {
297
- #${this.id} .p-carousel-item {
298
- flex: 1 0 ${100/i.numVisible}%
299
- }
300
- }
301
- `}}this.carouselStyle.innerHTML=e}calculatePosition(){if(this.responsiveOptions){let e={numVisible:this.defaultNumVisible,numScroll:this.defaultNumScroll};if(typeof window<"u"){let n=window.innerWidth;for(let i=0;i<this.responsiveOptions.length;i++){let o=this.responsiveOptions[i];parseInt(o.breakpoint,10)>=n&&(e=o)}}if(this._numScroll!==e.numScroll){let n=this._page;n=Math.floor(n*this._numScroll/e.numScroll);let i=e.numScroll*this.page*-1;this.isCircular()&&(i-=e.numVisible),this.totalShiftedItems=i,this._numScroll=e.numScroll,this._page=n,this.onPage.emit({page:this.page})}this._numVisible!==e.numVisible&&(this._numVisible=e.numVisible,this.setCloneItems()),this.cd.markForCheck()}}setCloneItems(){this.clonedItemsForStarting=[],this.clonedItemsForFinishing=[],this.isCircular()&&(this.clonedItemsForStarting.push(...this.value.slice(-1*this._numVisible)),this.clonedItemsForFinishing.push(...this.value.slice(0,this._numVisible)))}firstIndex(){return this.isCircular()?-1*(this.totalShiftedItems+this.numVisible):this.totalShiftedItems*-1}lastIndex(){return this.firstIndex()+this.numVisible-1}totalDots(){return this.value?.length?Math.ceil((this.value.length-this._numVisible)/this._numScroll)+1:0}totalDotsArray(){let e=this.totalDots();return e<=0?[]:Array(e).fill(0)}isVertical(){return this.orientation==="vertical"}isCircular(){return this.circular&&this.value&&this.value.length>=this.numVisible}isAutoplay(){return this.autoplayInterval&&this.allowAutoplay}isForwardNavDisabled(){return this.isEmpty()||this._page>=this.totalDots()-1&&!this.isCircular()}isBackwardNavDisabled(){return this.isEmpty()||this._page<=0&&!this.isCircular()}isEmpty(){return!this.value||this.value.length===0}navForward(e,n){(this.isCircular()||this._page<this.totalDots()-1)&&this.step(-1,n),this.autoplayInterval&&this.stopAutoplay(),e&&e.cancelable&&e.preventDefault()}navBackward(e,n){(this.isCircular()||this._page!==0)&&this.step(1,n),this.autoplayInterval&&this.stopAutoplay(),e&&e.cancelable&&e.preventDefault()}onDotClick(e,n){let i=this._page;this.autoplayInterval&&this.stopAutoplay(),n>i?this.navForward(e,n):n<i&&this.navBackward(e,n)}onIndicatorKeydown(e){switch(e.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break}}onRightKey(){let e=[...V(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,n+1===e.length?e.length-1:n+1)}onLeftKey(){let e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)}onHomeKey(){let e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)}onEndKey(){let e=[...V(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]r')],n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,e.length-1)}onTabKey(){let e=[...V(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],n=e.findIndex(s=>ht(s,"data-p-highlight")===!0),i=ee(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]'),o=e.findIndex(s=>s===i.parentElement);e[o].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){let e=[...V(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],n=ee(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]');return e.findIndex(i=>i===n.parentElement)}changedFocusedIndicator(e,n){let i=[...V(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')];i[e].children[0].tabIndex="-1",i[n].children[0].tabIndex="0",i[n].children[0].focus()}step(e,n){let i=this.totalShiftedItems,o=this.isCircular();if(n!=null)i=this._numScroll*n*-1,o&&(i-=this._numVisible),this.isRemainingItemsAdded=!1;else{i+=this._numScroll*e,this.isRemainingItemsAdded&&(i+=this.remainingItems-this._numScroll*e,this.isRemainingItemsAdded=!1);let s=o?i+this._numVisible:i;n=Math.abs(Math.floor(s/this._numScroll))}o&&this.page===this.totalDots()-1&&e===-1?(i=-1*(this.value.length+this._numVisible),n=0):o&&this.page===0&&e===1?(i=0,n=this.totalDots()-1):n===this.totalDots()-1&&this.remainingItems>0&&(i+=this.remainingItems*-1-this._numScroll*e,this.isRemainingItemsAdded=!0),this.itemsContainer&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${i*(100/this._numVisible)}%, 0)`:`translate3d(${i*(100/this._numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=i,this._page=n,this.onPage.emit({page:this.page}),this.cd.markForCheck()}startAutoplay(){this.interval=setInterval(()=>{this.totalDots()>0&&(this.page===this.totalDots()-1?this.step(-1,0):this.step(-1,this.page+1))},this.autoplayInterval),this.allowAutoplay=!0,this.cd.markForCheck()}stopAutoplay(e=!0){this.interval&&(clearInterval(this.interval),this.interval=void 0,e&&(this.allowAutoplay=!1)),this.cd.markForCheck()}isPlaying(){return!!this.interval}onTransitionEnd(){this.itemsContainer&&(this.itemsContainer.nativeElement.style.transition="",(this.page===0||this.page===this.totalDots()-1)&&this.isCircular()&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${this.totalShiftedItems*(100/this._numVisible)}%, 0)`:`translate3d(${this.totalShiftedItems*(100/this._numVisible)}%, 0, 0)`))}onTouchStart(e){let n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchEnd(e){let n=e.changedTouches[0];this.isVertical()?this.changePageOnTouch(e,n.pageY-this.startPos.y):this.changePageOnTouch(e,n.pageX-this.startPos.x)}changePageOnTouch(e,n){Math.abs(n)>this.swipeThreshold&&(n<0?this.navForward(e):this.navBackward(e))}ariaPrevButtonLabel(){return this.config.translation.aria?this.config.translation.aria.prevPageLabel:void 0}ariaSlideLabel(){return this.config.translation.aria?this.config.translation.aria.slide:void 0}ariaNextButtonLabel(){return this.config.translation.aria?this.config.translation.aria.nextPageLabel:void 0}ariaSlideNumber(e){return this.config.translation.aria?this.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}bindDocumentListeners(){D(this.platformId)&&(this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{this.calculatePosition()})))}unbindDocumentListeners(){D(this.platformId)&&this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.autoplayInterval&&this.stopAutoplay()}static \u0275fac=function(n){return new(n||t)(B(Re),B(Ne))};static \u0275cmp=M({type:t,selectors:[["p-carousel"]],contentQueries:function(n,i,o){if(n&1&&(x(o,bt,5),x(o,yt,5),x(o,en,4),x(o,tn,4),x(o,nn,4),x(o,on,4),x(o,an,4),x(o,ge,4)),n&2){let s;v(s=b())&&(i.headerFacet=s.first),v(s=b())&&(i.footerFacet=s.first),v(s=b())&&(i.itemTemplate=s.first),v(s=b())&&(i.headerTemplate=s.first),v(s=b())&&(i.footerTemplate=s.first),v(s=b())&&(i.previousIconTemplate=s.first),v(s=b())&&(i.nextIconTemplate=s.first),v(s=b())&&(i.templates=s)}},viewQuery:function(n,i){if(n&1&&(X(rn,5),X(sn,5)),n&2){let o;v(o=b())&&(i.itemsContainer=o.first),v(o=b())&&(i.indicatorContent=o.first)}},inputs:{page:"page",numVisible:"numVisible",numScroll:"numScroll",responsiveOptions:"responsiveOptions",orientation:"orientation",verticalViewPortHeight:"verticalViewPortHeight",contentClass:"contentClass",indicatorsContentClass:"indicatorsContentClass",indicatorsContentStyle:"indicatorsContentStyle",indicatorStyleClass:"indicatorStyleClass",indicatorStyle:"indicatorStyle",value:"value",circular:[2,"circular","circular",Z],showIndicators:[2,"showIndicators","showIndicators",Z],showNavigators:[2,"showNavigators","showNavigators",Z],autoplayInterval:[2,"autoplayInterval","autoplayInterval",ne],style:"style",styleClass:"styleClass",prevButtonProps:"prevButtonProps",nextButtonProps:"nextButtonProps"},outputs:{onPage:"onPage"},features:[R([Gt]),me,N,$e],ngContentSelectors:pn,decls:14,vars:23,consts:[["itemsContainer",""],["icon",""],["indicatorContent",""],["role","region",3,"ngClass","ngStyle"],["class","p-carousel-header",4,"ngIf"],[3,"ngClass"],[1,"p-carousel-content"],[3,"ngClass","disabled","text","buttonProps","click",4,"ngIf"],[1,"p-carousel-viewport",3,"touchend","touchstart","touchmove","ngStyle"],[1,"p-carousel-item-list",3,"transitionend"],[3,"ngClass",4,"ngFor","ngForOf"],["type","button",3,"ngClass","disabled","buttonProps","text","click",4,"ngIf"],[3,"ngClass","class","ngStyle","keydown",4,"ngIf"],["class","p-carousel-footer",4,"ngIf"],[1,"p-carousel-header"],[4,"ngTemplateOutlet"],[3,"click","ngClass","disabled","text","buttonProps"],[4,"ngIf"],["class","p-carousel-prev-icon",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-carousel-prev-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"click","ngClass","disabled","buttonProps","text"],["class","next",4,"ngIf"],[1,"next"],[3,"keydown","ngClass","ngStyle"],["type","button",3,"click","ngClass","ngStyle","tabindex"],[1,"p-carousel-footer"]],template:function(n,i){if(n&1){let o=w();Y(ln),u(0,"div",3),c(1,gn,3,1,"div",4),u(2,"div",5)(3,"div",6),c(4,Tn,3,7,"p-button",7),u(5,"div",8),y("touchend",function(d){return h(o),_(i.onTouchEnd(d))})("touchstart",function(d){return h(o),_(i.onTouchStart(d))})("touchmove",function(d){return h(o),_(i.onTouchMove(d))}),u(6,"div",9,0),y("transitionend",function(){return h(o),_(i.onTransitionEnd())}),c(8,Fn,2,12,"div",10)(9,Mn,2,12,"div",10)(10,Dn,2,9,"div",10),m()(),c(11,$n,3,7,"p-button",11),m(),c(12,Rn,3,5,"ul",12),m(),c(13,jn,3,1,"div",13),m()}n&2&&(T(i.styleClass),r("ngClass",W(18,cn,i.isVertical(),!i.isVertical()))("ngStyle",i.style),f("id",i.id),l(),r("ngIf",i.headerFacet||i.headerTemplate),l(),T(i.contentClass),r("ngClass","p-carousel-content-container"),l(),f("aria-live",i.allowAutoplay?"polite":"off"),l(),r("ngIf",i.showNavigators),l(),r("ngStyle",C(21,un,i.isVertical()?i.verticalViewPortHeight:"auto")),l(3),r("ngForOf",i.clonedItemsForStarting),l(),r("ngForOf",i.value),l(),r("ngForOf",i.clonedItemsForFinishing),l(),r("ngIf",i.showNavigators),l(),r("ngIf",i.showIndicators),l(),r("ngIf",i.footerFacet||i.footerTemplate||i._footerTemplate))},dependencies:[O,oe,he,J,re,ae,wt,ye,be,It,xt,Tt,I],encapsulation:2,changeDetection:0})}return t})(),Zt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=$({type:t});static \u0275inj=A({imports:[Pe,I,I]})}return t})();function qn(t,a){if(t&1&&(u(0,"div",23),g(1,"img",24),u(2,"h4"),S(3),m(),u(4,"p"),S(5),m()()),t&2){let e=a.$implicit;l(),r("src",e.properties.imgSrc,ue)("alt",e.title),l(2),G(e.properties.title),l(2),G(e.properties.description)}}function Gn(t,a){if(t&1&&(u(0,"p-carousel",22),c(1,qn,6,4,"ng-template",null,0,U),m()),t&2){let e=p();r("value",e.carouselNews().items)("responsiveOptions",e.responsiveOptions)}}function Wn(t,a){t&1&&(u(0,"h4",9),S(1,"DealPOS Accounting"),m(),u(2,"p",25),S(3," Streamline Your Accounting with Ease "),m())}function Zn(t,a){if(t&1){let e=w();u(0,"div",13)(1,"h4",26),S(2,"Sign in to"),m(),u(3,"p",27),S(4),m(),u(5,"button",28),y("click",function(){h(e);let i=p();return _(i.onToggleState())}),g(6,"i",29),m()()}if(t&2){let e=p();l(4),Qe("(",e.fullPath,")")}}function Jn(t,a){if(t&1&&(u(0,"div",34),S(1),m()),t&2){let e=a.$implicit;l(),G(e)}}function Yn(t,a){if(t&1){let e=w();u(0,"p-inputgroup",30),g(1,"input",31),u(2,"p-select",32),c(3,Jn,2,1,"ng-template",null,0,U),m()(),u(5,"p-button",33),y("onClick",function(){h(e);let i=p();return _(i.onToggleState())}),m()}if(t&2){let e=p();l(2),r("options",e.availableDomains)}}function Xn(t,a){if(t&1){let e=w();g(0,"input",35),u(1,"p-inputgroup"),g(2,"input",36),u(3,"p-inputgroup-addon")(4,"p-button",37),y("onClick",function(){h(e);let i=p();return _(i.passwordVisibility.set(!i.passwordVisibility()))}),m()()(),g(5,"p-button",38)}if(t&2){let e=p();l(2),r("type",e.passwordVisibility()?"text":"password"),l(2),r("icon",e.passwordVisibility()?"fa-solid fa-eye-slash":"fa-solid fa-eye")}}var $a=(()=>{class t{ngOnInit(){this.responsiveOptions=[{breakpoint:"1024px",numVisible:1,numScroll:1},{breakpoint:"768px",numVisible:1,numScroll:1},{breakpoint:"560px",numVisible:1,numScroll:1}],this.items=[{label:"Web Search"},{label:"AI Assistant"},{label:"History"}],this.getNews()}getNews(){let e=new Ge().set("fetch","children:omni").set("sort","sortOrder:asc");this.httpService.get("https://changelog.dealpos.app/","umbraco/delivery/api/v2/content",{params:e}).pipe(we(n=>this.carouselNews.set(n))).subscribe()}onToggleState(){this.toggleState.update(e=>!e)}constructor(){this.authService=F(ut),this.router=F(at),this.httpService=F(ct),this.responsiveOptions=[],this.availableDomains=[".dealpos.co.id",".dealpos.com",".dealpos.net",".dealpos.app"],this.selectedDomain=".dealpos.app",this.passwordVisibility=z(!1),this.toggleState=z(!1),this.carouselNews=z(null),this.loginForm=new Xe({subdomain:new le("",[se.required]),domain:new le(".dealpos.app",[se.required]),username:new le("",[se.required]),password:new le("",[se.required])})}ngAfterViewInit(){this.loginForm.controls.subdomain.setValue(localStorage.getItem("AUTH_SUB_DOMAIN")),this.loginForm.controls.username.setValue(localStorage.getItem("AUTH_USERNAME"))}get fullPath(){return this.loginForm.get("subdomain").value.concat(this.loginForm.get("domain").value)}onSubmit(){let{subdomain:e,username:n,password:i,domain:o}=this.loginForm.value,s={SubDomain:e+o,Username:n,Password:i};this.authService.login(s).pipe(we(()=>{this.router.navigate(["/dashboard"])})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-login"]],decls:31,vars:4,consts:[["item",""],[1,"auth-wrapper","d-flex","flex-column"],[1,"row","flex-grow-1","gap-4"],[1,"col","align-self-center"],[1,"row","justify-content-center"],[1,"col","col-xl-8"],[1,"row","px-4","row-gap-4"],[1,"col","col-lg-6","position-relative"],[1,"d-flex","justify-content-center","align-items-center","py-4"],[1,"fs-7"],[3,"value","responsiveOptions",4,"ngIf"],[1,"p-4","col"],[1,"d-flex","flex-column","gap-4"],[1,"d-flex","align-items-baseline","gap-1"],[1,"d-flex","flex-column","gap-4","align-items-start","h-100",3,"ngSubmit","formGroup"],[1,"px-4","py-2"],[1,"row","justify-content-end"],[1,"col-12","col-lg-6","align-self-center"],[1,"d-flex","flex-column","gap-2","flex-lg-row","align-items-center"],[1,"m-0"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","logo-footer"],[1,"d-flex","flex-column","flex-lg-row","align-items-center","justify-content-end"],[3,"value","responsiveOptions"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],[2,"width","252px","height","152px",3,"src","alt"],[1,"fst-italic"],[1,"fs-6"],[1,"text-primary"],[1,"btn","p-0","btn-link",3,"click"],[1,"fa-light","fa-pen-to-square","text-primary"],[1,"d-flex","flex-column","flex-xl-row","row-gap-2"],["formControlName","subdomain","pSize","large","pInputText","","placeholder","Store Name",1,"w-100"],["size","large","formControlName","domain",1,"w-100",3,"options"],["label","Next","styleClass","d-block w-100","size","large",1,"w-100",3,"onClick"],[1,"fs-4"],["pSize","large","pInputText","","formControlName","username","placeholder","Username",1,"w-100"],["pSize","large","pInputText","","formControlName","password","placeholder","Password",1,"w-100",3,"type"],["size","large","variant","text","label","",3,"onClick","icon"],["label","Login","size","large","type","submit","styleClass","d-block w-100",1,"w-100"]],template:function(n,i){n&1&&(u(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"p-panel")(6,"div",6)(7,"div",7)(8,"div",8)(9,"h4",9),S(10,"Features"),m()(),c(11,Gn,3,2,"p-carousel",10),m(),u(12,"div",11)(13,"div",12)(14,"div"),c(15,Wn,4,0)(16,Zn,7,1,"div",13),m(),u(17,"form",14),y("ngSubmit",function(){return i.onSubmit()}),c(18,Yn,6,1)(19,Xn,6,2),m()()()()()()()()(),u(20,"div",15)(21,"div",16)(22,"div",17)(23,"div",18)(24,"p",19),S(25,"Powered by :"),m(),g(26,"img",20),m()(),u(27,"div",17)(28,"div",21)(29,"p",19),S(30,"Version 1.0.9"),m()()()()()()),n&2&&(l(11),r("ngIf",i.carouselNews()),l(4),Se(i.toggleState()?16:15),l(2),r("formGroup",i.loginForm),l(),Se(i.toggleState()?19:18))},dependencies:[O,J,pe,lt,Ut,ot,et,Ze,Je,Ye,tt,it,nt,Ft,St,Bt,Ue,Nt,Le,ye,be,qt,Et,Vt,Dt,At,Lt,Zt,Pe],styles:['@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}img.logo[_ngcontent-%COMP%]{width:100%;min-width:150px;max-width:100px}.input-group[_ngcontent-%COMP%]{height:50px!important}.form-floating[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border-color:#ddd!important}.form-floating[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus ~ label[_ngcontent-%COMP%]{top:-15px;font-size:1rem}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{display:block;transform:translateY(60px)!important;box-shadow:#0000000d 0 6px 24px,#00000014 0 0 0 1px} .ng-select{height:100%} .ng-select .ng-select-container{height:100%!important;width:100%!important;min-width:160px!important;border-bottom-left-radius:0;border-top-left-radius:0} p-panel .p-panel-header{padding:0!important} p-panel .p-panel-content{padding:0!important} p-panel .p-panel-content .row>.col:first-child:after{content:"";border:1px solid #dddddd;display:inline-block;height:100%;position:absolute;top:0;right:0}.input-group-text[_ngcontent-%COMP%]{padding:0;margin:0;background-color:transparent;border:none}']})}}return t})();export{$a as LoginComponent};
package/chunk-RR5AUWZO.js DELETED
@@ -1 +0,0 @@
1
- import{a as He}from"./chunk-G4XX7EU2.js";import{a as et,b as Ue,c as je}from"./chunk-G52TDPSD.js";import{a as De}from"./chunk-2RWUYFYR.js";import{a as Be,b as Ge}from"./chunk-E6QGADC5.js";import"./chunk-UVBFYB2X.js";import"./chunk-KFHCGO62.js";import{a as we,b as Te}from"./chunk-C66O26ZI.js";import{a as j}from"./chunk-AKBPKNCH.js";import{a as Pe,b as Ne}from"./chunk-NQ24E7JY.js";import{b as ke,c as Ve,f as Ae,h as Le,i as Oe,j as qe}from"./chunk-HG23WDL5.js";import{g as re,h as oe}from"./chunk-EP22HTZC.js";import"./chunk-4ANSU2AT.js";import"./chunk-TJSPXPO6.js";import{a as O,b as q}from"./chunk-MNPBLC23.js";import{f as Me,g as L}from"./chunk-EN5MVYJQ.js";import{g as ie}from"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import{u as te,v as ne}from"./chunk-PNAWRNGD.js";import{Ga as Fe,b as K,c as N,e as k,f as X,g as be,h as U,i as Ce,j as Y,l as J,o as Q,s as ye,t as Re,u as Z}from"./chunk-FVXLQNAC.js";import{d as Ie}from"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import{m as ee,p as V,q as Se,w as A}from"./chunk-25PFXJAK.js";import{k as ve,n as M,r as z,s as $,t as P}from"./chunk-GRTIJ77T.js";import{Bb as d,Fc as C,Gc as W,Ha as b,Hc as I,Ic as h,J as H,Kb as p,Nb as ge,Tc as he,Ub as r,Vb as n,Wb as c,X as me,Z as D,_b as y,c as se,ca as ue,dc as F,ec as m,gb as l,ia as f,mc as a,nc as R,qa as _,qc as xe,ra as E,rc as fe,s as w,sc as _e,tc as Ee,ub as T,vc as ae,wa as de,wc as S}from"./chunk-RSHFIZV3.js";import{a as g,b as x,e as Ze}from"./chunk-C6Q5SG76.js";var B=(()=>{class t{#e=f(Ie);#t=f(De);getRecurringExpenses(e){return this.#e.post(void 0,"api/RecurringExpense/GetList",e)}fetchRecurringExpenseForm(e){return this.#e.get(void 0,`api/RecurringExpense/form/${e??""}`)}fetchSupplierSuggestion(e){let i={count:100,prefix:e};return this.#e.post(`https://${this.#t.getFullDomain()}/`,"API/AC/GetSupplierSuggestion",i)}submitRecurringExpense(e,i={}){return this.#e.post(void 0,"api/RecurringExpense/submit",e,i)}removeRecurringExpense(e){return this.#e.delete(void 0,`api/RecurringExpense/${e}`,void 0)}removeRecurringExpenses(e){let i={body:e};return this.#e.delete(void 0,"api/RecurringExpense/Batch",i)}getRecurringExpenseByID(e){return this.#e.get(void 0,`api/RecurringExpense/Info/${e}`)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var nt=["class","page"],it=t=>["details/",t];function rt(t,u){if(t&1){let e=y();r(0,"button",9),F("click",function(){_(e);let o=m(2);return E(o.onDeleteSelected())}),a(1," Delete "),n()}}function ot(t,u){if(t&1&&(d(0,rt,2,0,"button",7),r(1,"a",8),a(2,"Add"),n()),t&2){let e=m();p("ngIf",e.isAnyRowSelected())}}function at(t,u){t&1&&(r(0,"tr")(1,"th"),c(2,"p-tableHeaderCheckbox"),n(),r(3,"th"),a(4,"Outlet"),n(),r(5,"th"),a(6,"Name"),n(),r(7,"th"),a(8,"Expense Account"),n(),r(9,"th"),a(10,"Start Date"),n(),r(11,"th"),a(12,"End Date"),n(),r(13,"th"),a(14,"Last Expense"),n(),r(15,"th"),a(16,"Amount"),n(),r(17,"th"),a(18,"Frequency"),n()())}function lt(t,u){if(t&1&&(r(0,"tr")(1,"td"),c(2,"p-tableCheckbox",13),n(),r(3,"td"),a(4),n(),r(5,"td")(6,"a",14),a(7),n()(),r(8,"td"),a(9),n(),r(10,"td"),a(11),C(12,"date"),n(),r(13,"td"),a(14),C(15,"date"),n(),r(16,"td"),a(17),C(18,"date"),n(),r(19,"td"),a(20),C(21,"number"),n(),r(22,"td"),a(23),n()()),t&2){let e=u.$implicit;l(2),p("value",e),l(2),R(e.outletName),l(2),p("routerLink",S(21,it,e.id)),l(),R(e.name),l(2),R(e.expenseName),l(2),R(I(12,10,e.startDate,"d MMM y")),l(3),R(I(15,13,e.endDate,"d MMM y")),l(3),R(I(18,16,e.lastExpenseDate,"d MMM y")),l(3),R(W(21,19,e.amount)),l(3),R(e.repeatTypeLabel)}}function pt(t,u){if(t&1&&(r(0,"div"),a(1),n()),t&2){let e=m(3);l(),xe(" Showing ",e.recurringExpenseFilter().PageNumber," to ",e.recurringExpenseFilter().RowCount," of ",e.recurringExpenseData().count," entries ")}}function ct(t,u){if(t&1){let e=y();r(0,"p-card",11)(1,"p-table",12),F("onPage",function(o){_(e);let s=m(2);return E(s.onPageChange(o))})("onHeaderCheckboxToggle",function(o){_(e);let s=m(2);return E(s.onSelectAll(o))})("onRowSelect",function(o){_(e);let s=m(2);return E(s.onRowSelect(o))})("onRowUnselect",function(o){_(e);let s=m(2);return E(s.onRowUnselect(o))}),d(2,at,19,0,"ng-template",null,3,h)(4,lt,24,23,"ng-template",null,4,h)(6,pt,2,3,"ng-template",null,5,h),n()()}if(t&2){let e=m(2);l(),p("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("lazy",!0)("totalRecords",e.recurringExpenseData().count)("rows",e.recurringExpenseFilter().RowCount)("paginator",!0)("value",e.recurringExpenseData().data)}}function st(t,u){if(t&1&&d(0,ct,8,7,"p-card",10),t&2){let e=m();p("ngIf",e.recurringExpenseData())}}function mt(t,u){if(t&1&&(r(0,"form",15)(1,"div",16)(2,"label",17),a(3,"Outlet"),n(),c(4,"p-select",18),n()()),t&2){let e=m();p("formGroup",e.recurringExpenseForm),l(4),p("options",e.repeatType())}}var Xe=(()=>{class t{constructor(){this.recurringExpenseService=f(B),this.recurringExpenseFilter=b(null),this.visible=b(!1),this.recurringExpenseData=b(null),this.repeatType=b([{label:"Monthly",value:1},{label:"Yearly",value:2}]),this.isAnyRowSelected=he(()=>this.recurringExpenseData()?this.recurringExpenseData().data.some(e=>e.checkbox):!1),this.loadRecurringExpenses=Pe(se(H(e=>this.recurringExpenseService.getRecurringExpenses(e).pipe(w(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:!1}))})),Ne({next:i=>this.recurringExpenseData.set(i),error:i=>console.error(i)})))))}ngOnInit(){this.recurringExpenseFilter.set({PageNumber:1,RowCount:10,Text:null,Frequency:1}),this.loadRecurringExpenses(this.recurringExpenseFilter),this.generateRecurringExpenseForm()}onPageChange(e){this.recurringExpenseFilter.update(i=>x(g({},i),{PageNumber:e.first/e.rows+1}))}onSelectAll(e){this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.checked}))}))}onRowSelect(e){this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map(o=>x(g({},o),{checkbox:e.data.id===o.id}))}))}onRowUnselect(e){this.recurringExpenseData.update(i=>x(g({},i),{data:i.data.map((o,s)=>x(g({},o),{checkbox:e.data[s].id===o.id?!1:o.checkbox}))}))}onDeleteSelected(){let e=this.recurringExpenseData().data.filter(o=>o.checkbox).map(o=>o.id);if(e.length===0)return;(e.length===1?this.recurringExpenseService.removeRecurringExpense(e[0]):this.recurringExpenseService.removeRecurringExpenses(e)).pipe(j("response")).pipe(D(()=>this.loadRecurringExpenses(this.recurringExpenseFilter))).subscribe()}onSearchEvent(e){console.log(e),this.recurringExpenseFilter.update(i=>x(g({},i),{Text:e.trim()}))}onFilterEvent(){this.visible.update(e=>!e)}onSubmitFilterDialog(){let e=this.recurringExpenseForm.value;Object.keys(e).forEach(i=>{this.recurringExpenseFilter.update(o=>x(g({},o),{[i]:e[i]}))}),this.visible.update(i=>!i)}onUpdateFilter(e,i){this.recurringExpenseFilter.update(o=>x(g({},o),{[e]:i}))}generateRecurringExpenseForm(){this.recurringExpenseForm=new be({PageNumber:new U(1),RowCount:new U(20),Text:new U(null),Frequency:new U(1)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-recurring-expense",8,"page"]],attrs:nt,decls:7,vars:2,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Recurring Expenses",3,"searchEmitted","filterEmitted","isSearchableInput","isFilterable"],["type","button","class","btn btn-danger rounded",3,"click",4,"ngIf"],["routerLink","create","routerLinkActive","router-link-active","type","button",1,"btn","btn-primary","rounded"],["type","button",1,"btn","btn-danger","rounded",3,"click"],["styleClass","h-100",4,"ngIf"],["styleClass","h-100"],["stripedRows","","dataKey","id",3,"onPage","onHeaderCheckboxToggle","onRowSelect","onRowUnselect","scrollable","scrollHeight","lazy","totalRecords","rows","paginator","value"],[3,"value"],[1,"link-primary",3,"routerLink"],[1,"d-flex","flex-column",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","Frequency","appendTo","body","optionLabel","label","optionValue","value","placeholder","Select Outlet",3,"options"]],template:function(i,o){if(i&1){let s=y();r(0,"app-main-panel",6),F("searchEmitted",function(Qe){return _(s),E(o.onSearchEvent(Qe))})("filterEmitted",function(){return _(s),E(o.onFilterEvent())}),d(1,ot,3,1,"ng-template",null,0,h)(3,st,1,1,"ng-template",null,1,h)(5,mt,5,2,"ng-template",null,2,h),n()}i&2&&p("isSearchableInput",!0)("isFilterable",!0)},dependencies:[L,V,q,O,qe,Ae,Le,Oe,P,M,$,z,A,Se,Me,oe,re,ie,Z,Y,k,X,J,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 G=Ze(et());var dt=["class","page"],gt=()=>["/recurring/recurring-expense/"],xt=()=>({width:"100%",height:"calc(100vh - 200px)"}),pe=t=>({"ng-dirty ng-invalid":t});function ft(t,u){if(t&1){let e=y();r(0,"a",4),a(1," Cancel "),n(),r(2,"button",5),F("click",function(){_(e);let o=m();return E(o.onSubmit())}),a(3," Save "),n()}t&2&&p("routerLink",ae(1,gt))}function _t(t,u){t&1&&(r(0,"div",29)(1,"div",30),a(2,"Form"),n()())}function Et(t,u){t&1&&(r(0,"small",32),a(1,"Name is required"),n())}function ht(t,u){if(t&1&&(r(0,"div"),d(1,Et,2,0,"small",31),n()),t&2){let e=m(3);l(),p("ngIf",e.recurringExpenseForm.controls.name.errors.required)}}function vt(t,u){t&1&&(r(0,"small",32),a(1,"Amount is required"),n())}function bt(t,u){t&1&&(r(0,"small",32),a(1,"Invalid amount format"),n())}function Ct(t,u){if(t&1&&(r(0,"div"),d(1,vt,2,0,"small",31)(2,bt,2,0,"small",31),n()),t&2){let e=m(3);l(),p("ngIf",e.recurringExpenseForm.controls.amount.errors.required),l(),p("ngIf",e.recurringExpenseForm.controls.amount.errors.pattern)}}function yt(t,u){if(t&1){let e=y();r(0,"div",7)(1,"div",8)(2,"p-card",9),d(3,_t,3,0,"ng-template",10),r(4,"p-scrollPanel")(5,"div",7)(6,"div",11)(7,"form",12)(8,"div",13)(9,"div",14,2)(11,"div",15)(12,"label",16),a(13,"Outlet"),n(),c(14,"p-select",17),n()(),r(15,"div",14)(16,"div",15)(17,"label",16),a(18,"Name"),n(),c(19,"input",18),d(20,ht,2,1,"div",19),n()(),r(21,"div",14)(22,"div",15)(23,"label",16),a(24,"From"),n(),c(25,"p-datepicker",20),n()(),r(26,"div",14)(27,"div",15)(28,"label",16),a(29,"To"),n(),c(30,"p-datepicker",21),n()(),r(31,"div",14)(32,"div",15)(33,"label",16),a(34,"Contact"),n(),r(35,"p-autocomplete",22),F("completeMethod",function(o){_(e);let s=m(2);return E(s.searchContact(o))}),n()()(),c(36,"div",11),n(),c(37,"hr"),r(38,"div",13)(39,"div",14)(40,"div",15)(41,"label",16),a(42,"Amount"),n(),c(43,"input",23),d(44,Ct,3,2,"div",19),n()(),r(45,"div",14)(46,"div",15)(47,"label",16),a(48,"Frequency"),n(),c(49,"p-select",24),n()(),r(50,"div",14)(51,"div",15)(52,"label",16),a(53,"Payment"),n(),c(54,"p-select",25),n()(),r(55,"div",14)(56,"div",15)(57,"label",16),a(58,"Expense"),n(),c(59,"p-select",26),n()(),r(60,"div",27)(61,"div",15)(62,"label",16),a(63,"Description"),n(),c(64,"textarea",28),n()()()()()()()()()()}if(t&2){let e=m(2);l(4),ge(ae(17,xt)),l(3),p("formGroup",e.recurringExpenseForm),l(7),p("options",e.recurringExpenseData().options.entities),l(5),p("ngClass",S(18,pe,e.isInvalid("name"))),l(),p("ngIf",e.isInvalid("name")),l(5),p("iconDisplay","input")("showIcon",!0),l(5),p("iconDisplay","input")("showIcon",!0),l(5),p("suggestions",e.supplierSuggestions()),l(8),p("ngClass",S(20,pe,e.isInvalid("amount"))),l(),p("ngIf",e.isInvalid("amount")),l(5),p("options",e.recurringExpenseData().options.frequency),l(5),p("ngClass",S(22,pe,e.recurringExpenseForm.controls.paymentAccountID.invalid&&(e.recurringExpenseForm.controls.paymentAccountID.dirty||e.recurringExpenseForm.controls.paymentAccountID.touched)))("options",e.recurringExpenseData().options.assets),l(5),p("options",e.recurringExpenseData().options.expenses)}}function Rt(t,u){if(t&1&&d(0,yt,65,24,"div",6),t&2){let e=m();p("ngIf",e.recurringExpenseData())}}var ce=(()=>{class t{constructor(){this.recurringExpenseService=f(B),this.fb=f(ye),this.destroyRef=f(de),this.route=f(ee),this.recurringExpenseData=b(null),this.supplierSuggestions=b([])}ngOnInit(){this.initializeForm(),this.fetchRecurringExpenseForm()}initializeForm(){this.recurringExpenseForm=this.fb.group({id:this.fb.control(""),name:this.fb.control("",[N.required]),repeatTypeID:this.fb.control(1,[N.required]),startDate:this.fb.control((0,G.default)().toISOString()),endDate:this.fb.control(null),lastExpenseDate:this.fb.control(""),amount:this.fb.control(0,[N.required]),paymentAccountID:this.fb.control(null,[N.required]),expenseAccountID:this.fb.control(null,[N.required]),contactID:this.fb.control(""),description:this.fb.control(""),repeatTypeLabel:this.fb.control(""),outletID:this.fb.control(""),creatorID:this.fb.control(""),created:this.fb.control(""),modifierID:this.fb.control(""),modified:this.fb.control("")},{updateOn:"change"})}fetchRecurringExpenseForm(){this.route.paramMap.pipe(w(e=>e.get("id")),me(e=>e?this.recurringExpenseService.fetchRecurringExpenseForm(e):this.recurringExpenseService.fetchRecurringExpenseForm()),D(e=>{this.recurringExpenseData.set(e),this.updateFormWithRecurringExpense(e.form)})).subscribe()}updateFormWithRecurringExpense(e){let i=Object.entries(e).reduce((o,[s,v])=>{switch(s){case"startDate":o[s]=(0,G.default)(v).isSame((0,G.default)("0001-01-01T00:00:00"))?(0,G.default)().toDate():(0,G.default)(v).toDate();break;case"repeatTypeID":o[s]=1;break;case"contactID":o[s]=v===He?"":v;break;default:o[s]=v}return o},{});this.recurringExpenseForm.patchValue(i)}searchContact(e){this.recurringExpenseService.fetchSupplierSuggestion(e.query).pipe(D(this.supplierSuggestions.set)).subscribe()}onSubmit(){let e=this.recurringExpenseForm.value;if(this.recurringExpenseForm.invalid){this.recurringExpenseForm.markAllAsTouched();return}let i=Object.entries(e).reduce((o,[s,v])=>(s==="amount"?o[s]=Number(v):o[s]=v,o),{});this.recurringExpenseService.submitRecurringExpense(i,{observe:"response"}).pipe().subscribe()}isInvalid(e){let i=this.recurringExpenseForm.get(e);return i.invalid&&(i.dirty||i.touched)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-recurring-expense-form",8,"page"]],attrs:dt,decls:5,vars:0,consts:[["actionButton",""],["content",""],["outlet",""],["pageTitle","Recurring Expense Form"],["type","button",1,"btn","btn-outline-secondary","rounded",3,"routerLink"],["type","button",1,"btn","btn-primary","rounded",3,"click"],["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-6"],["styleClass","h-100"],["pTemplate","header"],[1,"col"],[1,"d-flex","flex-column","row-gap-4",3,"formGroup"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["formControlName","outletID","optionLabel","name","optionValue","id","placeholder","Select Outlet",3,"options"],["formControlName","name","type","text","pInputText","",3,"ngClass"],[4,"ngIf"],["dateFormat","mm/dd/yy","appendTo","body","formControlName","startDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","endDate","styleClass","w-100","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","contactID","inputStyleClass","w-100","styleClass","w-100","optionLabel","Value","optionValue","Key",3,"completeMethod","suggestions"],["formControlName","amount","type","text","pInputText","",3,"ngClass"],["formControlName","repeatTypeID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"options"],["formControlName","paymentAccountID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"ngClass","options"],["formControlName","expenseAccountID","optionLabel","value","optionValue","key","placeholder","Select Outlet",3,"options"],[1,"col","col-lg-12"],["formControlName","description","rows","5","cols","30","pTextarea",""],[1,"row","px-4","py-2"],[1,"col-4","fs-6"],["class","text-danger",4,"ngIf"],[1,"text-danger"]],template:function(i,o){i&1&&(r(0,"app-main-panel",3),d(1,ft,4,2,"ng-template",null,0,h)(3,Rt,1,1,"ng-template",null,1,h),n())},dependencies:[L,q,O,Fe,ne,te,oe,re,Ve,ke,je,Ue,Ge,Be,Te,we,P,ve,M,Z,Y,K,k,X,J,Q,A,V],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var St=["class","page"],It=t=>["/recurring/recurring-expense/edit",t];function Dt(t,u){if(t&1&&(r(0,"button",2),c(1,"i",3),r(2,"span"),a(3,"Delete"),n()(),r(4,"a",4),c(5,"i",5),r(6,"span"),a(7,"Edit"),n()()),t&2){let e=m();l(4),p("routerLink",S(1,It,e.currentRecurringExpense().id))}}function Ft(t,u){if(t&1){let e=y();r(0,"p-card",9)(1,"div",6)(2,"div",10)(3,"div",11)(4,"div",10)(5,"div",12)(6,"div",13)(7,"div",14)(8,"label",15),a(9,"Name"),n(),r(10,"input",16),Ee("ngModelChange",function(o){_(e);let s=m(2);return _e(s.currentRecurringExpense().name,o)||(s.currentRecurringExpense().name=o),E(o)}),n()()(),c(11,"div",13),r(12,"div",13)(13,"div",14)(14,"label",15),a(15,"Start"),n(),c(16,"input",17),C(17,"date"),n()(),r(18,"div",13)(19,"div",14)(20,"label",15),a(21,"End"),n(),c(22,"input",17),C(23,"date"),n()(),r(24,"div",13)(25,"div",14)(26,"label",15),a(27,"Contact"),n(),c(28,"input",17),C(29,"date"),n()(),r(30,"div",18)(31,"div",14)(32,"label",15),a(33,"Description"),n(),c(34,"textarea",19),n()()(),c(35,"hr"),r(36,"div",11)(37,"div",13)(38,"div",14)(39,"label",15),a(40,"Amount"),n(),c(41,"input",17),C(42,"number"),n()(),r(43,"div",13)(44,"div",14)(45,"label",15),a(46,"Frequency"),n(),c(47,"input",17),n()(),r(48,"div",13)(49,"div",14)(50,"label",15),a(51,"Payment"),n(),c(52,"input",17),n()(),r(53,"div",13)(54,"div",14)(55,"label",15),a(56,"Expense"),n(),c(57,"input",17),n()()()()()()()()}if(t&2){let e=m(2);l(10),fe("ngModel",e.currentRecurringExpense().name),l(6),p("value",I(17,9,e.currentRecurringExpense().startDate,"d MMM y")),l(6),p("value",I(23,12,e.currentRecurringExpense().endDate,"d MMM y")),l(6),p("value",I(29,15,e.currentRecurringExpense().endDate,"d MMM y")),l(6),p("value",e.currentRecurringExpense().description),l(7),p("value",W(42,18,e.currentRecurringExpense().amount)),l(6),p("value",e.currentRecurringExpense().repeatTypeLabel),l(5),p("value",e.currentRecurringExpense().paymentName),l(5),p("value",e.currentRecurringExpense().expenseName)}}function wt(t,u){if(t&1&&(r(0,"div",6)(1,"div",7),d(2,Ft,58,20,"p-card",8),n()()),t&2){let e=m();l(2),p("ngIf",e.currentRecurringExpense())}}var Ye=(()=>{class t{constructor(){this.recurringExpenseService=f(B),this.route=f(ee),this.currentRecurringExpense=b(null)}ngOnInit(){this.route.paramMap.pipe(w(e=>e.get("id")),j("params"),H(e=>this.recurringExpenseService.getRecurringExpenseByID(e)),D(e=>this.currentRecurringExpense.set(e)),j("recurringExpense")).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-recurring-expense-info",8,"page"]],attrs:St,decls:5,vars:0,consts:[["actionButton",""],["content",""],[1,"btn","btn-outline-secondary","rounded","d-flex","gap-2","align-items-center"],[1,"fa-solid","fa-trash"],[1,"btn","btn-outline-secondary","rounded","d-flex","gap-2","align-items-center",3,"routerLink"],[1,"fa-solid","fa-pen-to-square"],[1,"row","justify-content-center"],[1,"col-6"],["styleClass","h-100","header","Details",4,"ngIf"],["styleClass","h-100","header","Details"],[1,"col"],[1,"row"],[1,"row","row-gap-4"],[1,"col","col-lg-6"],[1,"d-flex","flex-column"],["for",""],["disabled","","type","text","pInputText","",3,"ngModelChange","ngModel"],["disabled","","type","text","pInputText","",3,"value"],[1,"col","col-lg-12"],["disabled","","rows","5","cols","30","pTextarea","",3,"value"]],template:function(i,o){i&1&&(r(0,"app-main-panel"),d(1,Dt,8,3,"ng-template",null,0,h)(3,wt,3,1,"ng-template",null,1,h),n())},dependencies:[L,q,O,P,M,$,z,ne,te,Re,K,k,Ce,ie,A,V],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Je=[{path:"",redirectTo:"",pathMatch:"full"},{path:"",children:[{path:"",component:Xe},{path:"create",component:ce},{path:"details/:id",component:Ye},{path:"edit/:id",component:ce}]}];var Hn=[{path:"",redirectTo:"recurring-expense",pathMatch:"full"},{path:"recurring-expense",children:Je}];export{Hn as RECURRING_ROUTES};
package/chunk-T3ZCO6EC.js DELETED
@@ -1 +0,0 @@
1
- import{c as Ct,d as W,f as B,g as F,h as X}from"./chunk-S35HUXPS.js";import{d as gt,e as Tt,k as _t}from"./chunk-25PFXJAK.js";import{d as K,n as Q}from"./chunk-GRTIJ77T.js";import{Aa as L,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 G,Yb as U,Z as lt,_b as J,ab as pt,ac as vt,bb as z,ca as b,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 at,oc as C,q as rt,qa as $,r as x,ra as Z,s as ct,ub as q,va as N,vb as ft}from"./chunk-RSHFIZV3.js";import{a as r,b as v}from"./chunk-C6Q5SG76.js";var bt=["toast-component",""];function At(s,n){if(s&1){let t=J();h(0,"button",5),M("click",function(){$(t);let i=l();return Z(i.remove())}),h(1,"span",6),f(2,"\xD7"),m()()}}function Et(s,n){if(s&1&&(G(0),f(1),U()),s&2){let t=l(2);a(),C("[",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(),C(" ",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,z)}}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(),C(" ",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=J();h(0,"button",5),M("click",function(){$(t);let i=l();return Z(i.remove())}),h(1,"span",6),f(2,"\xD7"),m()()}}function St(s,n){if(s&1&&(G(0),f(1),U()),s&2){let t=l(2);a(),C("[",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(),C(" ",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,z)}}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(),C(" ",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 Y=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}},tt=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}},et=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"),it=class extends tt{_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(K);_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=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),st=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(K);_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 it(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new st(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({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 nt=e;e&&o.enableHtml&&(nt=this.sanitizer.sanitize(pt.HTML,e));let w=new et(j),V=new I(this.index,o,nt,i,t,w),wt=[{provide:I,useValue:V}],xt=N.create({providers:wt,parent:this._injector}),Dt=new Y(o.toastComponent,xt),ot=j.attach(Dt,o.newestOnTop);w.componentInstance=ot.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:ot};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(L))};static \u0275prov=b({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),_(L))};static \u0275cmp=q({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:bt,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:[Q],encapsulation:2,data:{animation:[Ct("flyInOut",[F("inactive",B({opacity:0})),F("active",B({opacity:1})),F("removed",B({opacity:0})),X("inactive => active",W("{{ easeTime }}ms {{ easing }}")),X("active => removed",W("{{ 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=q({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:bt,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:[Q],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,v(r({},o),{observe:"response"})).pipe(x(this.requestTimeout),lt(this.handleResponse.bind(this)),ct(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}`,r({},i)).pipe(x(this.requestTimeout),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 rt&&(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),at(()=>e)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{P as a,zt as b,re as c,ve as d};