dealposbooks 5.44.7 → 5.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +26 -26
- package/chunk-27TIOMYM.js +1 -0
- package/{chunk-JUCJGYST.js → chunk-2AAVNIG7.js} +1 -1
- package/{chunk-UKBDY33R.js → chunk-2D2YD753.js} +1 -1
- package/{chunk-ZDTMCWOO.js → chunk-2MKKFLNJ.js} +1 -1
- package/{chunk-5JV52UYK.js → chunk-2XUSZCQL.js} +1 -1
- package/{chunk-S3DECKRN.js → chunk-35MXFTDN.js} +1 -1
- package/{chunk-2LQVI4EI.js → chunk-36OX4S7M.js} +1 -1
- package/{chunk-NHZLS6JU.js → chunk-3A4BFUGD.js} +1 -1
- package/{chunk-RJ43VBI6.js → chunk-3FDVZDYS.js} +1 -1
- package/{chunk-SPKOXGSS.js → chunk-3GGXPPQT.js} +1 -1
- package/chunk-3OMEVXSG.js +1 -0
- package/{chunk-2SFLMJFC.js → chunk-4ETCCLMI.js} +1 -1
- package/chunk-4MZNOMUN.js +1 -0
- package/{chunk-KSQ6W6J5.js → chunk-4PUT2IIE.js} +1 -1
- package/{chunk-AF357XP4.js → chunk-5CZNOXPC.js} +1 -1
- package/{chunk-WZCHPXQJ.js → chunk-5EJXAYSX.js} +1 -1
- package/{chunk-F6XVZQY3.js → chunk-66D4GMNG.js} +1 -1
- package/{chunk-I7ILLTFH.js → chunk-6A2KUPOG.js} +1 -1
- package/{chunk-PGQHZTDQ.js → chunk-6D4IGQVY.js} +1 -1
- package/{chunk-ATJ55H5D.js → chunk-6GN3MGBY.js} +1 -1
- package/{chunk-GTADCLKY.js → chunk-6HX55BLY.js} +1 -1
- package/{chunk-MZAFOBGT.js → chunk-6NX36ZC2.js} +1 -1
- package/{chunk-MAID3JDN.js → chunk-6PNHT5U7.js} +1 -1
- package/{chunk-CNXEJBY5.js → chunk-7DYACF4D.js} +1 -1
- package/{chunk-AQR2H4W4.js → chunk-7FFVGWUP.js} +1 -1
- package/{chunk-4ZQ7YKOY.js → chunk-7XL26PM3.js} +1 -1
- package/{chunk-EFDD6Q3K.js → chunk-AOOG6YOT.js} +1 -1
- package/{chunk-ARXP327B.js → chunk-ARH3WEEF.js} +1 -1
- package/chunk-AUYM5P42.js +202 -0
- package/{chunk-IYO6P6XI.js → chunk-B54PFCWI.js} +1 -1
- package/{chunk-7QTSLBUS.js → chunk-BJWQQABR.js} +2 -2
- package/{chunk-BUYRVZ5Z.js → chunk-BLR3HBYP.js} +1 -1
- package/{chunk-UDIFKJ7M.js → chunk-BXEGWIR3.js} +1 -1
- package/{chunk-AL647DUL.js → chunk-CNXYBR45.js} +1 -1
- package/{chunk-CEUHQS4P.js → chunk-CSDQYXOM.js} +1 -1
- package/{chunk-SVHOGUGR.js → chunk-CVL3S2HY.js} +1 -1
- package/chunk-DLIPUA4K.js +1 -0
- package/{chunk-VB3TPQNG.js → chunk-DX2A6LIU.js} +1 -1
- package/{chunk-M5PA3FZY.js → chunk-EB6NEJHF.js} +1 -1
- package/chunk-EERQ53V7.js +1 -0
- package/{chunk-Q5OCTN6V.js → chunk-EG4A3G2F.js} +1 -1
- package/{chunk-VPQDUC77.js → chunk-EL5BUFMO.js} +1 -1
- package/{chunk-76LPTGLX.js → chunk-EQ4PLHI4.js} +1 -1
- package/{chunk-JRTS2EIB.js → chunk-FPI32FQH.js} +1 -1
- package/{chunk-Q5727C4W.js → chunk-G2DQX336.js} +1 -1
- package/{chunk-FDNNDYL5.js → chunk-GIQOPGQF.js} +1 -1
- package/{chunk-BDX235IA.js → chunk-GX5CQNX3.js} +1 -1
- package/{chunk-3O2P3XCM.js → chunk-H3BFDSSJ.js} +3 -3
- package/{chunk-7FFMPB6T.js → chunk-H6HNANYB.js} +1 -1
- package/{chunk-CWHL7PNC.js → chunk-H7Q35Y7G.js} +1 -1
- package/{chunk-6XT4TD5A.js → chunk-HAQ36ZI6.js} +1 -1
- package/{chunk-MPHY6FVN.js → chunk-HG5MKVNR.js} +1 -1
- package/{chunk-JPEOXITL.js → chunk-HPITHIZA.js} +1 -1
- package/{chunk-KYLRXHLA.js → chunk-IFQIZ5KJ.js} +1 -1
- package/{chunk-7COI2POD.js → chunk-IGWIRCAS.js} +1 -1
- package/{chunk-ODRV6XWO.js → chunk-IHZ55QSI.js} +1 -1
- package/{chunk-5BZGRV6Z.js → chunk-ITBP232X.js} +2 -2
- package/{chunk-UW3TYSD4.js → chunk-IYBQ7NLP.js} +1 -1
- package/{chunk-K4P3JOA6.js → chunk-JRVYSBUZ.js} +1 -1
- package/{chunk-FKIXXJLF.js → chunk-K5U6AQ75.js} +1 -1
- package/{chunk-ZEWON3MW.js → chunk-KGQGMXW6.js} +1 -1
- package/{chunk-MS6WBVQX.js → chunk-KIBBRAL5.js} +1 -1
- package/{chunk-WXT6EZ2V.js → chunk-KJ2WX3FC.js} +1 -1
- package/{chunk-ALVKIUN6.js → chunk-KW4A377H.js} +1 -1
- package/{chunk-6O5EWYT7.js → chunk-LFZCMZAP.js} +1 -1
- package/{chunk-QG5BZLQ5.js → chunk-LSK6C72D.js} +1 -1
- package/{chunk-CPEWFFH4.js → chunk-M6LSMNSQ.js} +1 -1
- package/{chunk-IJTQE2H4.js → chunk-MFK5RQPJ.js} +1 -1
- package/{chunk-PPKCZMH4.js → chunk-N4JIPI53.js} +1 -1
- package/{chunk-7HDQDLMU.js → chunk-N75VYDTF.js} +1 -1
- package/{chunk-E3ZGQRZ3.js → chunk-NCDT6JPP.js} +1 -1
- package/{chunk-6K5LNQ4J.js → chunk-NMCKMUY4.js} +3 -3
- package/{chunk-NMSYINDE.js → chunk-NZN6QJR3.js} +1 -1
- package/{chunk-CZQGZKBU.js → chunk-O2QIO42B.js} +1 -1
- package/chunk-OBZRC7DX.js +1 -0
- package/{chunk-72LNXEXV.js → chunk-OIBDX2CA.js} +1 -1
- package/{chunk-XZA36IOK.js → chunk-OTMBGB3T.js} +1 -1
- package/{chunk-PFRE63ZQ.js → chunk-OTO7ELZ2.js} +1 -1
- package/{chunk-XLPFLHKU.js → chunk-OVAQBQEJ.js} +1 -1
- package/{chunk-6VGBCKSP.js → chunk-PJDNYCLD.js} +1 -1
- package/{chunk-534V32GA.js → chunk-PPJQN2WS.js} +1 -1
- package/{chunk-AJZ7YLT4.js → chunk-Q24GCSGD.js} +1 -1
- package/{chunk-3KYU6FI2.js → chunk-Q5CVMJZC.js} +1 -1
- package/chunk-QF4D5YPK.js +1 -0
- package/{chunk-OJKSFSGG.js → chunk-QVIFRW2H.js} +2 -2
- package/{chunk-5H2RGDEM.js → chunk-R6TARUG2.js} +1 -1
- package/{chunk-VRKBMD72.js → chunk-R7N6BWL5.js} +1 -1
- package/{chunk-MJ6ZJF3H.js → chunk-RZFXAB7W.js} +1 -1
- package/{chunk-6ZAB5KF4.js → chunk-S5O44AS7.js} +1 -1
- package/{chunk-WEC2BWPR.js → chunk-T6B4BOOB.js} +1 -1
- package/chunk-T7VJORKB.js +1 -0
- package/{chunk-MWFWXJG3.js → chunk-U5XXKH2H.js} +1 -1
- package/{chunk-HVWMMYO5.js → chunk-U7BSQJHQ.js} +1 -1
- package/{chunk-6V36DOK2.js → chunk-UP67MADL.js} +1 -1
- package/{chunk-L3PZS6EL.js → chunk-VGNJD35F.js} +1 -1
- package/{chunk-E3QNEH3B.js → chunk-VJ3IBUVO.js} +1 -1
- package/{chunk-HETAGI2U.js → chunk-VXTZNZMH.js} +1 -1
- package/{chunk-SB5MSLCX.js → chunk-VZ5CMS5O.js} +1 -1
- package/{chunk-723XGKN4.js → chunk-W5ER7276.js} +1 -1
- package/{chunk-OB46Z7ZH.js → chunk-XD7VHCRC.js} +1 -1
- package/{chunk-ATLG3ODI.js → chunk-Y6YUTTA4.js} +1 -1
- package/{chunk-AWAXNQFD.js → chunk-YOMVOFLB.js} +1 -1
- package/{chunk-ACTRMWEI.js → chunk-YV2QJ63P.js} +1 -1
- package/{chunk-ADR2PJUZ.js → chunk-ZRCCGUC4.js} +1 -1
- package/{chunk-4ITLNOY5.js → chunk-ZZCT6WNV.js} +1 -1
- package/index.html +2 -2
- package/{main-BGNUYMBN.js → main-SLMY35VH.js} +1 -1
- package/package.json +1 -1
- package/chunk-D7UYPH6O.js +0 -1
- package/chunk-GJGJXJ7W.js +0 -1
- package/chunk-KXE3J4PK.js +0 -1
- package/chunk-PXDLE24D.js +0 -202
- package/chunk-ZYGFIZ2J.js +0 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import{a as te,b as yt}from"./chunk-GIQOPGQF.js";import{f as Ct}from"./chunk-XD7VHCRC.js";import"./chunk-NCDT6JPP.js";import{a as xt}from"./chunk-G4XX7EU2.js";import{a as bt}from"./chunk-XKI7WLHE.js";import{a as wt}from"./chunk-N4JIPI53.js";import"./chunk-7DYACF4D.js";import"./chunk-NZN6QJR3.js";import{a as rt}from"./chunk-5CZNOXPC.js";import"./chunk-IGWIRCAS.js";import{a as Y,b as ee}from"./chunk-3A4BFUGD.js";import{d as _t,i as ft,j as ht,k as gt}from"./chunk-EL5BUFMO.js";import"./chunk-EQ4PLHI4.js";import"./chunk-H7Q35Y7G.js";import"./chunk-R7N6BWL5.js";import"./chunk-2AAVNIG7.js";import{a as dt,b as ut}from"./chunk-LFZCMZAP.js";import"./chunk-6A2KUPOG.js";import"./chunk-36OX4S7M.js";import"./chunk-Q5CVMJZC.js";import"./chunk-3GGXPPQT.js";import"./chunk-MFK5RQPJ.js";import"./chunk-6GN3MGBY.js";import"./chunk-Q24GCSGD.js";import{h as mt}from"./chunk-H3BFDSSJ.js";import{a as We}from"./chunk-VGNJD35F.js";import{a as it,b as nt}from"./chunk-2XUSZCQL.js";import{a as E,b as ot,c as at,d as st,e as lt,f as pt,g as ct}from"./chunk-YV2QJ63P.js";import"./chunk-ARH3WEEF.js";import{a as Je,f as A,k as Ke,m as Xe,o as Ye,s as et,w as X,x as tt}from"./chunk-H6HNANYB.js";import"./chunk-2D2YD753.js";import{A as ze,C as je,K as qe,La as $e,Ma as K,Ua as Ze,c as W,e as Oe,f as Ae,l as Be,ma as Ge,o as He,u as Ne,x as Qe,z as _e}from"./chunk-OIBDX2CA.js";import{b as Pe,d as Le,e as Re}from"./chunk-AOOG6YOT.js";import"./chunk-M6LSMNSQ.js";import"./chunk-2MKKFLNJ.js";import{h as $,k as Z,m as Ve,s as J}from"./chunk-VZ5CMS5O.js";import{c as Me,d as pe,f as ce,h as me,i as de,k as ue}from"./chunk-F2X3VGZZ.js";import{$b as k,$c as Fe,Aa as N,Bb as z,Cc as G,Db as u,Ec as S,Fc as De,Ha as L,Jc as Ee,Kb as F,Lb as p,Ob as xe,Pb as oe,Qb as Ce,Rb as R,Rc as x,Tb as M,Ub as O,Vb as l,Wb as s,Xb as y,Y as H,Yb as ye,Zb as ve,_ as ne,_b as U,_c as D,bd as P,c as B,ca as ge,cd as Ue,da as we,ec as b,fc as c,gc as Te,hb as a,hc as ke,ia as C,kc as V,lc as j,mc as v,nc as T,qa as _,qc as Ie,ra as f,rc as d,sc as I,tc as q,ua as re,vc as Se,wc as ae,xb as Q,xc as se,yb as be,yc as le}from"./chunk-NMCKMUY4.js";import{a as h,b as g}from"./chunk-YQFG5XE2.js";var kt={data:[],count:0,filter:{pagination:1,pageSize:10,groupID:null,text:""},meta:{filter:{pagination:1,pageSize:10,groupID:null,text:""},options:{groups:[]}},metaForm:{form:{id:"",groupID:"",accessTypeID:1,listJournalTagID:[]},options:{users:[],groups:[],accessTypes:[],journalTags:[]}}},fe=ot(ct("UserStore"),pt(kt),at(t=>({first:P(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:P(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:P(()=>t.data().some(o=>o.checked)),checkedData:P(()=>t.data().filter(o=>o.checked).map(o=>o.userID)),selectedID:P(()=>t.data().find(o=>o.checked)?.userID||null)})),lt(t=>{let o=C(te);return{setFilter(n){E(t,i=>g(h({},i),{filter:n}))},onRowSelect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!0}):m);return g(h({},i),{data:r})})},onRowUnselect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!1}):m);return g(h({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");E(t,r=>{let m=r.data.map(w=>w.userName!==i?g(h({},w),{checked:n}):g(h({},w),{checked:!1}));return g(h({},r),{data:m})})},getUserLoader:Y(B(H(()=>o.getUserLoaderList().pipe(ee({next:n=>{E(t,i=>g(h({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:Y(B(H(n=>o.getUserFormMeta(n).pipe(ee({next:i=>{E(t,r=>g(h({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:Y(B(H(n=>o.getUsers(n).pipe(ee({next:i=>{E(t,r=>g(h({},r),{data:i.data.map(m=>g(h({},m),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),st({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Dt=["header"],Et=["footer"],Ft=["content"],Ut=["closeicon"],Vt=["headless"],Pt=["maskRef"],Lt=["container"],Rt=["closeButton"],Mt=["*"],Ot=(t,o,e,n,i,r)=>({"p-drawer":!0,"p-drawer-active":t,"p-drawer-left":o,"p-drawer-right":e,"p-drawer-top":n,"p-drawer-bottom":i,"p-drawer-full":r}),At=(t,o)=>({transform:t,transition:o}),Bt=t=>({value:"visible",params:t});function Ht(t,o){t&1&&U(0)}function Nt(t,o){if(t&1&&u(0,Ht,1,0,"ng-container",4),t&2){let e=c(2);p("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function Qt(t,o){t&1&&U(0)}function zt(t,o){if(t&1&&(l(0,"div"),d(1),s()),t&2){let e=c(3);oe(e.cx("title")),a(),I(e.header)}}function jt(t,o){t&1&&y(0,"TimesIcon"),t&2&&F("data-pc-section","closeicon")}function qt(t,o){}function Gt(t,o){t&1&&u(0,qt,0,0,"ng-template")}function $t(t,o){if(t&1&&u(0,jt,1,1,"TimesIcon",8)(1,Gt,1,0,null,4),t&2){let e=c(4);p("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),a(),p("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Zt(t,o){if(t&1){let e=k();l(0,"p-button",9),b("onClick",function(i){_(e);let r=c(3);return f(r.close(i))})("keydown.enter",function(i){_(e);let r=c(3);return f(r.close(i))}),u(1,$t,2,2,"ng-template",null,1,x),s()}if(t&2){let e=c(3);p("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),F("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Jt(t,o){t&1&&U(0)}function Wt(t,o){t&1&&U(0)}function Kt(t,o){if(t&1&&(ye(0),l(1,"div",5),u(2,Wt,1,0,"ng-container",4),s(),ve()),t&2){let e=c(3);a(),p("ngClass",e.cx("footer")),F("data-pc-section","footer"),a(),p("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Xt(t,o){if(t&1&&(l(0,"div",5),u(1,Qt,1,0,"ng-container",4)(2,zt,2,3,"div",6)(3,Zt,3,5,"p-button",7),s(),l(4,"div",5),ke(5),u(6,Jt,1,0,"ng-container",4),s(),u(7,Kt,3,3,"ng-container",8)),t&2){let e=c(2);p("ngClass",e.cx("header")),F("data-pc-section","header"),a(),p("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),a(),p("ngIf",e.header),a(),p("ngIf",e.showCloseIcon&&e.closable),a(),p("ngClass",e.cx("content")),F("data-pc-section","content"),a(2),p("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),a(),p("ngIf",e.footerTemplate||e._footerTemplate)}}function Yt(t,o){if(t&1){let e=k();l(0,"div",3,0),b("@panelState.start",function(i){_(e);let r=c();return f(r.onAnimationStart(i))})("@panelState.done",function(i){_(e);let r=c();return f(r.onAnimationEnd(i))})("keydown",function(i){_(e);let r=c();return f(r.onKeyDown(i))}),u(2,Nt,1,1,"ng-container")(3,Xt,8,9),s()}if(t&2){let e=c();xe(e.style),oe(e.styleClass),p("ngClass",Ee(9,Ot,e.visible,e.position==="left"&&!e.fullScreen,e.position==="right"&&!e.fullScreen,e.position==="top"&&!e.fullScreen,e.position==="bottom"&&!e.fullScreen,e.fullScreen||e.position==="full"))("@panelState",S(19,Bt,De(16,At,e.transformOptions,e.transitionOptions))),F("data-pc-name","sidebar")("data-pc-section","root"),a(2),Ce(e.headlessTemplate||e._headlessTemplate?2:3)}}var ei=({dt:t})=>`
|
|
2
|
+
.p-drawer {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
pointer-events: auto;
|
|
6
|
+
transform: translate3d(0px, 0px, 0px);
|
|
7
|
+
position: fixed;
|
|
8
|
+
transition: transform 0.3s;
|
|
9
|
+
background: ${t("drawer.background")};
|
|
10
|
+
color: ${t("drawer.color")};
|
|
11
|
+
border: 1px solid ${t("drawer.border.color")};
|
|
12
|
+
box-shadow: ${t("drawer.shadow")};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.p-drawer-content {
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
padding: ${t("drawer.content.padding")};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.p-drawer-header {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
padding: ${t("drawer.header.padding")};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.p-drawer-footer {
|
|
30
|
+
padding: ${t("drawer.header.padding")};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.p-drawer-title {
|
|
34
|
+
font-weight: ${t("drawer.title.font.weight")};
|
|
35
|
+
font-size: ${t("drawer.title.font.size")};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.p-drawer-full .p-drawer {
|
|
39
|
+
transition: none;
|
|
40
|
+
transform: none;
|
|
41
|
+
width: 100vw !important;
|
|
42
|
+
height: 100vh !important;
|
|
43
|
+
max-height: 100%;
|
|
44
|
+
top: 0px !important;
|
|
45
|
+
left: 0px !important;
|
|
46
|
+
border-width: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.p-drawer-left .p-drawer {
|
|
50
|
+
align-self: start;
|
|
51
|
+
width: 20rem;
|
|
52
|
+
height: 100%;
|
|
53
|
+
border-right-width: 1px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.p-drawer-right .p-drawer {
|
|
57
|
+
align-self: end;
|
|
58
|
+
width: 20rem;
|
|
59
|
+
height: 100%;
|
|
60
|
+
border-left-width: 1px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.p-drawer-top .p-drawer {
|
|
64
|
+
height: 10rem;
|
|
65
|
+
width: 100%;
|
|
66
|
+
border-bottom-width: 1px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.p-drawer-bottom .p-drawer {
|
|
70
|
+
height: 10rem;
|
|
71
|
+
width: 100%;
|
|
72
|
+
border-top-width: 1px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.p-drawer-left .p-drawer-content,
|
|
76
|
+
.p-drawer-right .p-drawer-content,
|
|
77
|
+
.p-drawer-top .p-drawer-content,
|
|
78
|
+
.p-drawer-bottom .p-drawer-content {
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.p-drawer-open {
|
|
84
|
+
display: flex;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.p-drawer-top {
|
|
88
|
+
justify-content: flex-start;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.p-drawer-bottom {
|
|
92
|
+
justify-content: flex-end;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.p-drawer {
|
|
96
|
+
position: fixed;
|
|
97
|
+
transition: transform 0.3s;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.p-drawer-content {
|
|
103
|
+
position: relative;
|
|
104
|
+
overflow-y: auto;
|
|
105
|
+
flex-grow: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.p-drawer-header {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.p-drawer-footer {
|
|
114
|
+
margin-top: auto;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-drawer-icon {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
margin-left: auto;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.p-drawer-left {
|
|
125
|
+
top: 0;
|
|
126
|
+
left: 0;
|
|
127
|
+
width: 20rem;
|
|
128
|
+
height: 100%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.p-drawer-right {
|
|
132
|
+
top: 0;
|
|
133
|
+
right: 0;
|
|
134
|
+
width: 20rem;
|
|
135
|
+
height: 100%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.p-drawer-top {
|
|
139
|
+
top: 0;
|
|
140
|
+
left: 0;
|
|
141
|
+
width: 100%;
|
|
142
|
+
height: 10rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.p-drawer-bottom {
|
|
146
|
+
bottom: 0;
|
|
147
|
+
left: 0;
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 10rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.p-drawer-full {
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 100%;
|
|
155
|
+
top: 0;
|
|
156
|
+
left: 0;
|
|
157
|
+
-webkit-transition: none;
|
|
158
|
+
transition: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.p-drawer-mask {
|
|
162
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
163
|
+
transition-duration: 0.2s;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.p-overlay-mask {
|
|
167
|
+
position: fixed;
|
|
168
|
+
top: 0;
|
|
169
|
+
left: 0;
|
|
170
|
+
width: 100%;
|
|
171
|
+
height: 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.p-overlay-mask:dir(rtl) {
|
|
175
|
+
flex-direction: row-reverse;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.p-overlay-mask-enter {
|
|
179
|
+
animation: p-overlay-mask-enter-animation 150ms forwards;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.p-overlay-mask-leave {
|
|
183
|
+
animation: p-overlay-mask-leave-animation 150ms forwards;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@keyframes p-overlay-mask-enter-animation {
|
|
187
|
+
from {
|
|
188
|
+
background-color: transparent;
|
|
189
|
+
}
|
|
190
|
+
to {
|
|
191
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
@keyframes p-overlay-mask-leave-animation {
|
|
195
|
+
from {
|
|
196
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
197
|
+
}
|
|
198
|
+
to {
|
|
199
|
+
background-color: transparent;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
`,ti={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",flexDirection:"column",alignItems:t.position==="top"?"flex-start":t.position==="bottom"?"flex-end":"center"})},ii={mask:({instance:t})=>({"p-drawer-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen,[`p-drawer-${t.position}`]:!!t.position}),root:({instance:t})=>({"p-drawer p-component":!0,"p-drawer-full":t.fullScreen}),header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},vt=(()=>{class t extends Ze{name="drawer";theme=ei;classes=ii;inlineStyles=ti;static \u0275fac=(()=>{let e;return function(i){return(e||(e=re(t)))(i||t)}})();static \u0275prov=ge({token:t,factory:t.\u0275fac})}return t})();var ni=de([ce({transform:"{{transform}}",opacity:0}),pe("{{transition}}")]),ri=de([pe("{{transition}}",ce({transform:"{{transform}}",opacity:0}))]),he=(()=>{class t extends Je{appendTo="body";blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;closeButtonProps={severity:"secondary",text:!0,rounded:!0};dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){if(this._position=e,e==="full"){this.transformOptions="none";return}switch(e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}header;maskStyle;closable=!0;onShow=new N;onHide=new N;visibleChange=new N;maskRef;containerViewChild;closeButtonViewChild;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;_componentStyle=C(vt);ngAfterViewInit(){super.ngAfterViewInit(),this.initialized=!0}headerTemplate;footerTemplate;contentTemplate;closeIconTemplate;headlessTemplate;_headerTemplate;_footerTemplate;_contentTemplate;_closeIconTemplate;_headlessTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.container.setAttribute(this.attrSelector,""),this.autoZIndex&&A.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll(".p-drawer-active"),n=e.length,i=n==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[n-1].style.zIndex)-1);this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",i),Ge(this.mask,"style",this.maskStyle),_e(this.mask,"p-overlay-mask p-drawer-mask p-overlay-mask-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.dismissible&&this.close(r)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&ze())}disableModality(){this.mask&&(_e(this.mask,"p-overlay-mask-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&je(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener();break}}onAnimationEnd(e){switch(e.toState){case"void":this.hide(!1),A.clear(this.container),this.unbindGlobalListeners();break}}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):qe(this.appendTo,this.container))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.which==27&&parseInt(this.container.style.zIndex)===A.get(this.container)&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&A.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=re(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-drawer"]],contentQueries:function(n,i,r){if(n&1&&(V(r,Dt,4),V(r,Et,4),V(r,Ft,4),V(r,Ut,4),V(r,Vt,4),V(r,$e,4)),n&2){let m;v(m=T())&&(i.headerTemplate=m.first),v(m=T())&&(i.footerTemplate=m.first),v(m=T())&&(i.contentTemplate=m.first),v(m=T())&&(i.closeIconTemplate=m.first),v(m=T())&&(i.headlessTemplate=m.first),v(m=T())&&(i.templates=m)}},viewQuery:function(n,i){if(n&1&&(j(Pt,5),j(Lt,5),j(Rt,5)),n&2){let r;v(r=T())&&(i.maskRef=r.first),v(r=T())&&(i.containerViewChild=r.first),v(r=T())&&(i.closeButtonViewChild=r.first)}},inputs:{appendTo:"appendTo",blockScroll:[2,"blockScroll","blockScroll",D],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",D],baseZIndex:[2,"baseZIndex","baseZIndex",Fe],modal:[2,"modal","modal",D],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",D],showCloseIcon:[2,"showCloseIcon","showCloseIcon",D],closeOnEscape:[2,"closeOnEscape","closeOnEscape",D],transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen",header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",D]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[G([vt]),z],ngContentSelectors:Mt,decls:1,vars:1,consts:[["container",""],["icon",""],["role","complementary",3,"ngClass","style","class","keydown",4,"ngIf"],["role","complementary",3,"keydown","ngClass"],[4,"ngTemplateOutlet"],[3,"ngClass"],[3,"class",4,"ngIf"],[3,"ngClass","buttonProps","ariaLabel","onClick","keydown.enter",4,"ngIf"],[4,"ngIf"],[3,"onClick","keydown.enter","ngClass","buttonProps","ariaLabel"]],template:function(n,i){n&1&&(Te(),u(0,Yt,4,21,"div",2)),n&2&&p("ngIf",i.visible)},dependencies:[J,$,Z,Ve,X,We,K],encapsulation:2,data:{animation:[Me("panelState",[me("void => visible",[ue(ni)]),me("visible => void",[ue(ri)])])]},changeDetection:0})}return t})(),Tt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=be({type:t});static \u0275inj=we({imports:[he,K,K]})}return t})();var ai=["class","page"],ie=t=>({"ng-invalid ng-dirty":t}),si=t=>({groupID:t});function li(t,o){if(t&1){let e=k();l(0,"p-button",23),b("onClick",function(){_(e);let i=c(2);return f(i.onDeleteUser())}),s()}}function pi(t,o){if(t&1){let e=k();l(0,"p-button",24),b("onClick",function(){_(e);let i=c(2);return f(i.onHandleDrawer())}),s()}}function ci(t,o){if(t&1&&(l(0,"div",20),u(1,li,1,0,"p-button",21)(2,pi,1,0,"p-button",22),s()),t&2){let e=c();a(),p("ngIf",e.store.hasCheckedRows()),a(),p("ngIf",e.roleService.user().create)}}function mi(t,o){t&1&&(l(0,"th",28),y(1,"p-tableHeaderCheckbox"),s())}function di(t,o){if(t&1&&(l(0,"tr"),u(1,mi,2,0,"th",27),l(2,"th"),d(3,"LoginID"),s(),l(4,"th"),d(5,"Group"),s(),l(6,"th"),d(7,"Access Type"),s(),l(8,"th"),d(9,"Tags"),s()()),t&2){let e=c(2);a(),p("ngIf",e.roleService.user().delete)}}function ui(t,o){t&1&&U(0)}function _i(t,o){if(t&1&&y(0,"p-tableCheckbox",34),t&2){let e=c(3).$implicit;p("value",e)}}function fi(t,o){if(t&1&&u(0,_i,1,1,"p-tableCheckbox",33),t&2){let e=c(4);p("ngIf",e.roleService.user().delete)}}function hi(t,o){if(t&1&&(l(0,"td"),u(1,ui,1,0,"ng-container",32)(2,fi,1,1,"ng-template",null,7,x),s()),t&2){let e=Ie(3),n=c().$implicit,i=c(2);a(),p("ngIf",i.roleService.user().delete&&n.userName===i.currentUser())("ngIfElse",e)}}function gi(t,o){if(t&1&&(l(0,"td"),d(1),s()),t&2){let e=c().$implicit;a(),q(" ",e.tagsCount," Tags Assigned ")}}function wi(t,o){if(t&1){let e=k();l(0,"tr"),u(1,hi,4,2,"td",29),l(2,"td")(3,"button",30),b("click",function(){let i=_(e).$implicit,r=c(2);return f(r.onEditUser(i))}),d(4),s()(),l(5,"td")(6,"a",31),d(7),s()(),l(8,"td"),d(9),s(),u(10,gi,2,1,"td",29),s()}if(t&2){let e=o.$implicit,n=c(2);a(),p("ngIf",n.roleService.user().delete),a(2),p("disabled",!n.roleService.user().edit),a(),q(" ",e.userName||e.userID," "),a(2),p("queryParams",S(7,si,e.groupID)),a(),I(e.groupName),a(2),q(" ",e.accessTypeName," "),a(),p("ngIf",e.tagsCount>0)}}function bi(t,o){if(t&1&&d(0),t&2){let e=c(2);Se(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function xi(t,o){t&1&&(l(0,"tr")(1,"td",35)(2,"span"),d(3,"No users found. Try adjusting your filters or add a new user."),s()()())}function Ci(t,o){if(t&1){let e=k();l(0,"p-panel")(1,"div",25),y(2,"app-user-tabs"),l(3,"p-table",26),b("onPage",function(i){_(e);let r=c();return f(r.onPageChange(i))})("onRowSelect",function(i){_(e);let r=c();return f(r.onRowSelect(i))})("onRowUnselect",function(i){_(e);let r=c();return f(r.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let r=c();return f(r.onHeaderCheckboxToggle(i))}),u(4,di,10,1,"ng-template",null,3,x)(6,wi,11,9,"ng-template",null,4,x)(8,bi,1,3,"ng-template",null,5,x)(10,xi,4,0,"ng-template",null,6,x),s()()()}if(t&2){let e=c();a(3),p("value",e.store.data())("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function yi(t,o){if(t&1&&(l(0,"div",36)(1,"div",18)(2,"div",37)(3,"label",38),d(4,"Group"),s(),y(5,"p-select",39),s()()()),t&2){let e=c();p("formGroup",e.forms.filterForm),a(5),p("showClear",!0)("options",e.store.meta().options.groups)}}function vi(t,o){if(t&1&&(l(0,"span",40),d(1),s()),t&2){let e=c();a(),I(e.store.hasCheckedRows()?"Edit User":"Invite User")}}function Ti(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),I(e)}}function ki(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),I(e)}}function Ii(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),I(e)}}function Si(t,o){if(t&1&&(l(0,"small",14),d(1),s()),t&2){let e=o.$implicit;a(),I(e)}}var Ln=(()=>{class t extends bt{ngOnInit(){this.generateForm()}constructor(){Ue(()=>{this.store.metaForm()&&this.generateForm()}),super(),this.store=C(fe),this.fb=C(Ne),this.userService=C(te),this.isLoading=L(!1),this.form=null,this.isDrawerOpen=L(!1),this.router=C(Le),this.route=C(Pe),this.isDialogFilterVisible=L(!1),this.roleService=C(rt),this.currentUser=L(null),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}ngAfterViewInit(){this.currentUser.set(localStorage.getItem("AUTH_USERNAME")||null)}onPageChange(e){this.store.setFilter(g(h({},this.store.filter()),{pagination:e.first/e.rows+1}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}generateForm(){this.forms={filterForm:this.fb.group({pagination:this.fb.control(1),pageSize:this.fb.control(10),groupID:this.fb.control(null)}),userForm:this.fb.group({id:this.fb.control({value:this.store.metaForm().form.id,disabled:this.store.metaForm().form.id!==xt},[W.required]),groupID:this.fb.control(this.store.metaForm().form.groupID,[W.required]),accessTypeID:this.fb.control(this.store.metaForm().form.accessTypeID,[W.required]),listJournalTagID:this.fb.control(this.store.metaForm().form.listJournalTagID??[])})}}onHandleDrawer(){this.isDrawerOpen.update(e=>!e),this.store.getUserFormMeta(this.route.snapshot.params.id||null)}onInviteUser(){let{userForm:e}=this.forms;if(e.invalid){e.markAllAsTouched();return}let n=e.getRawValue(),i;if(this.store.hasCheckedRows()){let[r]=this.store.checkedData();i={id:r,groupID:n.groupID,accessTypeID:n.accessTypeID,listJournalTagID:n.listJournalTagID}}else i=n;this.userService.inviteUser(i).pipe(ne(()=>{this.onHandleDrawer(),this.store.setFilter(h({},this.store.filter())),e.reset()})).subscribe()}onSearch(e){this.store.setFilter(g(h({},this.store.filter()),{text:e,pagination:1}))}onOKFilter(){if(this.forms.filterForm.invalid){this.forms.filterForm.markAllAsTouched();return}let{groupID:e}=this.forms.filterForm.value;this.store.setFilter(g(h({},this.store.filter()),{groupID:e})),this.isDialogFilterVisible.update(n=>!n)}onEditUser(e){this.store.onRowSelect(e),this.store.getUserFormMeta(this.store.selectedID()),this.isDrawerOpen.update(n=>!n)}onHideDrawer(){this.store.onHeaderCheckboxToggle(!1)}onDeleteUser(){let e=this.store.checkedData();this.userService.deleteUser(e).pipe(ne(()=>{this.store.setFilter(h({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Q({type:t,selectors:[["app-user",8,"page"]],features:[G([fe]),z],attrs:ai,decls:41,vars:23,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["showCheckbox",""],["pageTitle","User List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible","scrollable"],["position","right",3,"visibleChange","onHide","visible"],[1,"row","py-3","row-gap-3",3,"formGroup"],[1,"col-12"],["for","",1,"m-0"],["fluid","","filter","","filterBy","name","formControlName","id","optionLabel","loginID","optionValue","id","placeholder","Select a User",3,"disabled","options","ngClass"],[1,"text-danger"],["filter","","filterBy","name","formControlName","groupID","optionLabel","name","optionValue","id","placeholder","Select a Group","fluid","",3,"options","ngClass"],["filter","","filterBy","name","formControlName","accessTypeID","optionLabel","value","optionValue","key","placeholder","Select Access Type","fluid","",3,"options","ngClass"],["fluid","","filter","","filterBy","name","formControlName","listJournalTagID","optionLabel","name","optionValue","id","placeholder","Select a Tag",3,"options","ngClass"],[1,"col"],["label","Submit",3,"onClick"],[1,"d-flex","gap-2","flex-wrap"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["label","Invite",3,"onClick",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["label","Invite",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","userID",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],["style","width: 4rem",4,"ngIf"],[2,"width","4rem"],[4,"ngIf"],[1,"btn","btn-link","fw-light","text-primary","p-0",2,"text-decoration","none",3,"click","disabled"],["routerLink","/pages/users/groups/forms",1,"link","link-primary",3,"queryParams"],[4,"ngIf","ngIfElse"],[3,"value",4,"ngIf"],[3,"value"],["colspan","3"],[1,"row",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["appendTo","body","formControlName","groupID","optionValue","id","optionLabel","name","placeholder","Select a Group",3,"showClear","options"],[1,"fs-5"]],template:function(n,i){if(n&1){let r=k();l(0,"app-main-panel",8),b("search",function(w){return _(r),f(i.onSearch(w))}),le("isDialogFilterVisibleChange",function(w){return _(r),se(i.isDialogFilterVisible,w)||(i.isDialogFilterVisible=w),f(w)}),b("filterConfirmed",function(){return _(r),f(i.onOKFilter())}),u(1,ci,3,2,"ng-template",null,0,x)(3,Ci,12,5,"ng-template",null,1,x)(5,yi,6,3,"ng-template",null,2,x),s(),l(7,"p-drawer",9),le("visibleChange",function(w){return _(r),se(i.isDrawerOpen,w)||(i.isDrawerOpen=w),f(w)}),b("onHide",function(){return _(r),f(i.onHideDrawer())}),u(8,vi,2,1,"ng-template",null,3,x),l(10,"div",10)(11,"div",11)(12,"div")(13,"label",12),d(14,"Users"),s(),y(15,"p-select",13),M(16,Ti,2,1,"small",14,R),s()(),l(18,"div",11)(19,"div")(20,"label",12),d(21,"Groups"),s(),y(22,"p-select",15),M(23,ki,2,1,"small",14,R),s()(),l(25,"div",11)(26,"div")(27,"label",12),d(28,"Access Type"),s(),y(29,"p-select",16),M(30,Ii,2,1,"small",14,R),s()(),l(32,"div",11)(33,"div")(34,"label",12),d(35,"Tags"),s(),y(36,"p-multiSelect",17),M(37,Si,2,1,"small",14,R),s()(),l(39,"div",18)(40,"p-button",19),b("onClick",function(){return _(r),f(i.onInviteUser())}),s()()()()}n&2&&(p("isSearchableInput",!0)("isFilterable",!0),ae("isDialogFilterVisible",i.isDialogFilterVisible),p("scrollable",!0),a(7),ae("visible",i.isDrawerOpen),a(3),p("formGroup",i.forms.userForm),a(5),p("disabled",i.store.hasCheckedRows())("options",i.store.metaForm().options.users)("ngClass",S(15,ie,i.isInvalid("id","userForm"))),a(),O(i.getErrors("id","userForm")),a(6),p("options",i.store.metaForm().options.groups)("ngClass",S(17,ie,i.isInvalid("groupID","userForm"))),a(),O(i.getErrors("id","userForm")),a(6),p("options",i.store.metaForm().options.accessTypes)("ngClass",S(19,ie,i.isInvalid("accessTypeID","userForm"))),a(),O(i.getErrors("accessTypeID","userForm")),a(6),p("options",i.store.metaForm().options.journalTags)("ngClass",S(21,ie,i.isInvalid("listJournalTagID","userForm"))),a(),O(i.getErrors("listJournalTagID","userForm")))},dependencies:[mt,J,$,Z,gt,_t,ft,ht,tt,X,Tt,he,Qe,Oe,Ae,Be,He,Ye,Ke,Xe,et,ut,dt,Ct,nt,it,yt,Re,wt],styles:['[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:"1rem 1.125rem"!important} .p-panel .p-panel-header{display:none!important}'],changeDetection:0})}}return t})();export{Ln as UserPageComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ke}from"./chunk-CNXEJBY5.js";import{a as qe}from"./chunk-I7ILLTFH.js";import{a as Ue}from"./chunk-SPKOXGSS.js";import{b as Le,c as Pe}from"./chunk-3KYU6FI2.js";import{a as $e}from"./chunk-AJZ7YLT4.js";import{a as se}from"./chunk-ATJ55H5D.js";import{a as ze}from"./chunk-L3PZS6EL.js";import{a as X,i as ye,j as Re,l as Ae,n as Qe,p as Be,r as ce,s as He}from"./chunk-7FFMPB6T.js";import{Ba as me,Da as Me,La as le,Ma as U,Na as Oe,Oa as Fe,P as he,Q as Ee,R as Q,T as J,U as ke,Ua as ae,Z as Ve,a as Ne,e as we,j as Ie,qa as fe,ra as De,w as _e,y as L}from"./chunk-72LNXEXV.js";import{h as q,j as K,k as j,l as W,m as G,s as Y}from"./chunk-SB5MSLCX.js";import{$b as V,$c as z,Aa as b,Bb as H,Cc as re,Db as d,Ec as D,Fc as $,Kb as N,Lb as a,Mb as te,Ob as ie,Pb as O,Qb as ue,Rc as k,Vb as f,Wb as m,Xb as w,Yb as S,Zb as C,_b as I,_c as y,ba as Z,ca as ee,da as de,ec as x,fc as s,hb as c,ia as B,kc as T,lc as E,mc as _,nb as xe,nc as h,pa as be,qa as u,qc as ge,ra as g,rc as A,sc as ne,tc as oe,ua as R,wc as ve,xb as P,xc as Se,yb as pe,yc as Ce}from"./chunk-6K5LNQ4J.js";import{a as F}from"./chunk-YQFG5XE2.js";var Ge=t=>({height:t}),Ye=t=>({"p-tree-node-droppoint-active":t}),ot=(t,l)=>({$implicit:t,loading:l}),rt=(t,l)=>({$implicit:t,partialSelected:l,class:"p-tree-node-checkbox"}),Je=t=>({$implicit:t});function lt(t,l){if(t&1){let e=V();f(0,"li",11),x("drop",function(i){u(e);let o=s(2);return g(o.onDropPoint(i,-1))})("dragover",function(i){u(e);let o=s(2);return g(o.onDropPointDragOver(i))})("dragenter",function(i){u(e);let o=s(2);return g(o.onDropPointDragEnter(i,-1))})("dragleave",function(i){u(e);let o=s(2);return g(o.onDropPointDragLeave(i))}),m()}if(t&2){let e=s(2);a("ngClass",D(2,Ye,e.draghoverPrev)),N("aria-hidden",!0)}}function at(t,l){t&1&&w(0,"ChevronRightIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function st(t,l){t&1&&w(0,"ChevronDownIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function ct(t,l){if(t&1&&(S(0),d(1,at,1,1,"ChevronRightIcon",12)(2,st,1,1,"ChevronDownIcon",12),C()),t&2){let e=s(3);c(),a("ngIf",!e.node.expanded),c(),a("ngIf",e.node.expanded)}}function dt(t,l){t&1&&(S(0),w(1,"SpinnerIcon",13),C()),t&2&&(c(),a("styleClass","pi-spin p-tree-node-toggle-icon"))}function pt(t,l){if(t&1&&(S(0),d(1,ct,3,2,"ng-container",5)(2,dt,2,1,"ng-container",5),C()),t&2){let e=s(2);c(),a("ngIf",!e.node.loading),c(),a("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function ut(t,l){}function gt(t,l){t&1&&d(0,ut,0,0,"ng-template")}function _t(t,l){if(t&1&&(f(0,"span",14),d(1,gt,1,0,null,15),m()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",$(2,ot,e.node.expanded,e.node.loading))}}function ht(t,l){}function ft(t,l){t&1&&d(0,ht,0,0,"ng-template")}function mt(t,l){if(t&1&&d(0,ft,1,0,null,15),t&2){let e=s(4);a("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",$(2,rt,e.isSelected(),e.node.partialSelected))}}function yt(t,l){t&1&&(S(0),d(1,mt,1,5,"ng-template",null,0,k),C())}function Tt(t,l){if(t&1){let e=V();f(0,"p-checkbox",16),x("click",function(i){return u(e),g(i.preventDefault())}),d(1,yt,3,0,"ng-container",5),m()}if(t&2){let e=s(2);a("ngModel",e.isSelected())("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1),N("data-p-partialchecked",e.node.partialSelected),c(),a("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function bt(t,l){if(t&1&&w(0,"span"),t&2){let e=s(2);O(e.getIcon())}}function xt(t,l){if(t&1&&(f(0,"span"),A(1),m()),t&2){let e=s(2);c(),ne(e.node.label)}}function vt(t,l){t&1&&I(0)}function St(t,l){if(t&1&&(f(0,"span"),d(1,vt,1,0,"ng-container",15),m()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",D(2,Je,e.node))}}function Ct(t,l){if(t&1&&w(0,"p-treeNode",19),t&2){let e=l.$implicit,n=l.first,i=l.last,o=l.index,r=s(3);a("node",e)("parentNode",r.node)("firstChild",n)("lastChild",i)("index",o)("itemSize",r.itemSize)("level",r.level+1)("loadingMode",r.loadingMode)}}function Nt(t,l){if(t&1&&(f(0,"ul",17),d(1,Ct,1,8,"p-treeNode",18),m()),t&2){let e=s(2);te("display",e.node.expanded?"flex":"none"),c(),a("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function wt(t,l){if(t&1){let e=V();f(0,"li",11),x("drop",function(i){u(e);let o=s(2);return g(o.onDropPoint(i,1))})("dragover",function(i){u(e);let o=s(2);return g(o.onDropPointDragOver(i))})("dragenter",function(i){u(e);let o=s(2);return g(o.onDropPointDragEnter(i,1))})("dragleave",function(i){u(e);let o=s(2);return g(o.onDropPointDragLeave(i))}),m()}if(t&2){let e=s(2);a("ngClass",D(2,Ye,e.draghoverNext)),N("aria-hidden",!0)}}function It(t,l){if(t&1){let e=V();d(0,lt,1,4,"li",1),f(1,"li",2),x("keydown",function(i){u(e);let o=s();return g(o.onKeyDown(i))}),f(2,"div",3),x("click",function(i){u(e);let o=s();return g(o.onNodeClick(i))})("contextmenu",function(i){u(e);let o=s();return g(o.onNodeRightClick(i))})("dblclick",function(i){u(e);let o=s();return g(o.onNodeDblClick(i))})("touchend",function(){u(e);let i=s();return g(i.onNodeTouchEnd())})("drop",function(i){u(e);let o=s();return g(o.onDropNode(i))})("dragover",function(i){u(e);let o=s();return g(o.onDropNodeDragOver(i))})("dragenter",function(i){u(e);let o=s();return g(o.onDropNodeDragEnter(i))})("dragleave",function(i){u(e);let o=s();return g(o.onDropNodeDragLeave(i))})("dragstart",function(i){u(e);let o=s();return g(o.onDragStart(i))})("dragend",function(i){u(e);let o=s();return g(o.onDragStop(i))}),f(3,"button",4),x("click",function(i){u(e);let o=s();return g(o.toggle(i))}),d(4,pt,3,2,"ng-container",5)(5,_t,2,5,"span",6),m(),d(6,Tt,2,8,"p-checkbox",7)(7,bt,1,2,"span",8),f(8,"span",9),d(9,xt,2,1,"span",5)(10,St,2,4,"span",5),m()(),d(11,Nt,2,4,"ul",10),m(),d(12,wt,1,4,"li",1)}if(t&2){let e=s();a("ngIf",e.tree.droppableNodes),c(),ie(e.node.style),O(e.node.styleClass),a("ngClass",e.nodeClass)("ngStyle",D(29,Ge,e.itemSize+"px")),N("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),c(),te("padding-left",e.level*e.indentation+"rem"),a("ngClass",e.nodeContentClass)("draggable",e.tree.draggableNodes),c(),N("data-pc-section","toggler"),c(),a("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.selectionMode=="checkbox"),c(),a("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(2),a("ngIf",!e.tree.getTemplateForNode(e.node)),c(),a("ngIf",e.tree.getTemplateForNode(e.node)),c(),a("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded),c(),a("ngIf",e.tree.droppableNodes&&e.lastChild)}}var je=["filter"],Et=["node"],kt=["header"],Vt=["footer"],Dt=["loader"],Mt=["empty"],Ot=["togglericon"],Ft=["checkboxicon"],$t=["loadingicon"],Lt=["filtericon"],zt=["scroller"],Ut=["wrapper"],Rt=t=>({options:t});function At(t,l){if(t&1&&w(0,"i"),t&2){let e=s(2);O("p-tree-loading-icon pi-spin "+e.loadingIcon)}}function Qt(t,l){t&1&&w(0,"SpinnerIcon",16),t&2&&a("spin",!0)("styleClass","p-tree-loading-icon")}function Bt(t,l){}function Pt(t,l){t&1&&d(0,Bt,0,0,"ng-template")}function Ht(t,l){if(t&1&&(f(0,"span",17),d(1,Pt,1,0,null,9),m()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function qt(t,l){if(t&1&&(S(0),d(1,Qt,1,2,"SpinnerIcon",14)(2,Ht,2,1,"span",15),C()),t&2){let e=s(2);c(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Kt(t,l){if(t&1&&(f(0,"div",12),d(1,At,1,2,"i",13)(2,qt,3,2,"ng-container",10),m()),t&2){let e=s();c(),a("ngIf",e.loadingIcon),c(),a("ngIf",!e.loadingIcon)}}function jt(t,l){t&1&&I(0)}function Wt(t,l){t&1&&I(0)}function Gt(t,l){if(t&1&&d(0,Wt,1,0,"ng-container",18),t&2){let e=s();a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",D(2,Je,e.filterOptions))}}function Yt(t,l){t&1&&w(0,"SearchIcon",21)}function Jt(t,l){}function Xt(t,l){t&1&&d(0,Jt,0,0,"ng-template")}function Zt(t,l){if(t&1&&(f(0,"span"),d(1,Xt,1,0,null,9),m()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function ei(t,l){if(t&1){let e=V();f(0,"p-iconField")(1,"input",19,0),x("keydown.enter",function(i){return u(e),g(i.preventDefault())})("input",function(i){u(e);let o=s(2);return g(o._filter(i.target.value))}),m(),f(3,"p-inputIcon"),d(4,Yt,1,0,"SearchIcon",20)(5,Zt,2,1,"span",10),m()()}if(t&2){let e=s(2);c(),a("pAutoFocus",e.filterInputAutoFocus),N("placeholder",e.filterPlaceholder),c(3),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function ti(t,l){if(t&1&&d(0,ei,6,4,"p-iconField",10),t&2){let e=s();a("ngIf",e.filter)}}function ii(t,l){if(t&1&&w(0,"p-treeNode",27,3),t&2){let e=l.$implicit,n=l.first,i=l.last,o=l.index,r=s(2).options,p=s(3);a("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",n)("lastChild",i)("index",p.getIndex(r,o))("itemSize",r.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)}}function ni(t,l){if(t&1&&(f(0,"ul",25),d(1,ii,2,10,"p-treeNode",26),m()),t&2){let e=s(),n=e.$implicit,i=e.options,o=s(3);ie(i.contentStyle),a("ngClass",i.contentStyleClass),N("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(),a("ngForOf",n)("ngForTrackBy",o.trackBy)}}function oi(t,l){if(t&1&&d(0,ni,2,7,"ul",24),t&2){let e=l.$implicit;a("ngIf",e)}}function ri(t,l){t&1&&I(0)}function li(t,l){if(t&1&&d(0,ri,1,0,"ng-container",18),t&2){let e=l.options,n=s(4);a("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",D(2,Rt,e))}}function ai(t,l){t&1&&(S(0),d(1,li,1,4,"ng-template",null,4,k),C())}function si(t,l){if(t&1){let e=V();f(0,"p-scroller",23,1),x("onScroll",function(i){u(e);let o=s(2);return g(o.onScroll.emit(i))})("onScrollIndexChange",function(i){u(e);let o=s(2);return g(o.onScrollIndexChange.emit(i))})("onLazyLoad",function(i){u(e);let o=s(2);return g(o.onLazyLoad.emit(i))}),d(2,oi,1,1,"ng-template",null,2,k)(4,ai,3,0,"ng-container",10),m()}if(t&2){let e=s(2);ie(D(9,Ge,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),a("items",e.serializedValue)("tabindex",-1)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualNodeHeight)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function ci(t,l){if(t&1&&w(0,"p-treeNode",32),t&2){let e=l.$implicit,n=l.first,i=l.last,o=l.index,r=s(4);a("node",e)("firstChild",n)("lastChild",i)("index",o)("level",0)("loadingMode",r.loadingMode)}}function di(t,l){if(t&1&&(f(0,"ul",30),d(1,ci,1,6,"p-treeNode",31),m()),t&2){let e=s(3);N("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(),a("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function pi(t,l){if(t&1&&(S(0),f(1,"div",28,5),d(3,di,2,4,"ul",29),m(),C()),t&2){let e=s(2);c(),te("max-height",e.scrollHeight),c(2),a("ngIf",e.getRootNode())}}function ui(t,l){if(t&1&&(S(0),d(1,si,5,11,"p-scroller",22)(2,pi,4,3,"ng-container",10),C()),t&2){let e=s();c(),a("ngIf",e.virtualScroll),c(),a("ngIf",!e.virtualScroll)}}function gi(t,l){if(t&1&&(S(0),A(1),C()),t&2){let e=s(2);c(),oe(" ",e.emptyMessageLabel," ")}}function _i(t,l){}function hi(t,l){t&1&&d(0,_i,0,0,"ng-template",null,6,k)}function fi(t,l){if(t&1&&(f(0,"div",33),d(1,gi,2,1,"ng-container",34)(2,hi,2,0,null,9),m()),t&2){let e=s();c(),a("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),a("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function mi(t,l){t&1&&I(0)}var yi=({dt:t})=>`
|
|
1
|
+
import{a as Ke}from"./chunk-7DYACF4D.js";import{a as qe}from"./chunk-6A2KUPOG.js";import{b as Le,c as Pe}from"./chunk-Q5CVMJZC.js";import{a as Ue}from"./chunk-3GGXPPQT.js";import{a as se}from"./chunk-6GN3MGBY.js";import{a as $e}from"./chunk-Q24GCSGD.js";import{a as ze}from"./chunk-VGNJD35F.js";import{a as X,i as ye,j as Re,l as Ae,n as Qe,p as Be,r as ce,s as He}from"./chunk-H6HNANYB.js";import{Ba as me,Da as Me,La as le,Ma as U,Na as Oe,Oa as Fe,P as he,Q as Ee,R as Q,T as J,U as ke,Ua as ae,Z as Ve,a as Ne,e as we,j as Ie,qa as fe,ra as De,w as _e,y as L}from"./chunk-OIBDX2CA.js";import{h as q,j as K,k as j,l as W,m as G,s as Y}from"./chunk-VZ5CMS5O.js";import{$b as V,$c as z,Aa as b,Bb as H,Cc as re,Db as d,Ec as D,Fc as $,Kb as N,Lb as a,Mb as te,Ob as ie,Pb as O,Qb as ue,Rc as k,Vb as f,Wb as m,Xb as w,Yb as S,Zb as C,_b as I,_c as y,ba as Z,ca as ee,da as de,ec as x,fc as s,hb as c,ia as B,kc as T,lc as E,mc as _,nb as xe,nc as h,pa as be,qa as u,qc as ge,ra as g,rc as A,sc as ne,tc as oe,ua as R,wc as ve,xb as P,xc as Se,yb as pe,yc as Ce}from"./chunk-NMCKMUY4.js";import{a as F}from"./chunk-YQFG5XE2.js";var Ge=t=>({height:t}),Ye=t=>({"p-tree-node-droppoint-active":t}),ot=(t,l)=>({$implicit:t,loading:l}),rt=(t,l)=>({$implicit:t,partialSelected:l,class:"p-tree-node-checkbox"}),Je=t=>({$implicit:t});function lt(t,l){if(t&1){let e=V();f(0,"li",11),x("drop",function(i){u(e);let o=s(2);return g(o.onDropPoint(i,-1))})("dragover",function(i){u(e);let o=s(2);return g(o.onDropPointDragOver(i))})("dragenter",function(i){u(e);let o=s(2);return g(o.onDropPointDragEnter(i,-1))})("dragleave",function(i){u(e);let o=s(2);return g(o.onDropPointDragLeave(i))}),m()}if(t&2){let e=s(2);a("ngClass",D(2,Ye,e.draghoverPrev)),N("aria-hidden",!0)}}function at(t,l){t&1&&w(0,"ChevronRightIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function st(t,l){t&1&&w(0,"ChevronDownIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function ct(t,l){if(t&1&&(S(0),d(1,at,1,1,"ChevronRightIcon",12)(2,st,1,1,"ChevronDownIcon",12),C()),t&2){let e=s(3);c(),a("ngIf",!e.node.expanded),c(),a("ngIf",e.node.expanded)}}function dt(t,l){t&1&&(S(0),w(1,"SpinnerIcon",13),C()),t&2&&(c(),a("styleClass","pi-spin p-tree-node-toggle-icon"))}function pt(t,l){if(t&1&&(S(0),d(1,ct,3,2,"ng-container",5)(2,dt,2,1,"ng-container",5),C()),t&2){let e=s(2);c(),a("ngIf",!e.node.loading),c(),a("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function ut(t,l){}function gt(t,l){t&1&&d(0,ut,0,0,"ng-template")}function _t(t,l){if(t&1&&(f(0,"span",14),d(1,gt,1,0,null,15),m()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",$(2,ot,e.node.expanded,e.node.loading))}}function ht(t,l){}function ft(t,l){t&1&&d(0,ht,0,0,"ng-template")}function mt(t,l){if(t&1&&d(0,ft,1,0,null,15),t&2){let e=s(4);a("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",$(2,rt,e.isSelected(),e.node.partialSelected))}}function yt(t,l){t&1&&(S(0),d(1,mt,1,5,"ng-template",null,0,k),C())}function Tt(t,l){if(t&1){let e=V();f(0,"p-checkbox",16),x("click",function(i){return u(e),g(i.preventDefault())}),d(1,yt,3,0,"ng-container",5),m()}if(t&2){let e=s(2);a("ngModel",e.isSelected())("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1),N("data-p-partialchecked",e.node.partialSelected),c(),a("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function bt(t,l){if(t&1&&w(0,"span"),t&2){let e=s(2);O(e.getIcon())}}function xt(t,l){if(t&1&&(f(0,"span"),A(1),m()),t&2){let e=s(2);c(),ne(e.node.label)}}function vt(t,l){t&1&&I(0)}function St(t,l){if(t&1&&(f(0,"span"),d(1,vt,1,0,"ng-container",15),m()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",D(2,Je,e.node))}}function Ct(t,l){if(t&1&&w(0,"p-treeNode",19),t&2){let e=l.$implicit,n=l.first,i=l.last,o=l.index,r=s(3);a("node",e)("parentNode",r.node)("firstChild",n)("lastChild",i)("index",o)("itemSize",r.itemSize)("level",r.level+1)("loadingMode",r.loadingMode)}}function Nt(t,l){if(t&1&&(f(0,"ul",17),d(1,Ct,1,8,"p-treeNode",18),m()),t&2){let e=s(2);te("display",e.node.expanded?"flex":"none"),c(),a("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function wt(t,l){if(t&1){let e=V();f(0,"li",11),x("drop",function(i){u(e);let o=s(2);return g(o.onDropPoint(i,1))})("dragover",function(i){u(e);let o=s(2);return g(o.onDropPointDragOver(i))})("dragenter",function(i){u(e);let o=s(2);return g(o.onDropPointDragEnter(i,1))})("dragleave",function(i){u(e);let o=s(2);return g(o.onDropPointDragLeave(i))}),m()}if(t&2){let e=s(2);a("ngClass",D(2,Ye,e.draghoverNext)),N("aria-hidden",!0)}}function It(t,l){if(t&1){let e=V();d(0,lt,1,4,"li",1),f(1,"li",2),x("keydown",function(i){u(e);let o=s();return g(o.onKeyDown(i))}),f(2,"div",3),x("click",function(i){u(e);let o=s();return g(o.onNodeClick(i))})("contextmenu",function(i){u(e);let o=s();return g(o.onNodeRightClick(i))})("dblclick",function(i){u(e);let o=s();return g(o.onNodeDblClick(i))})("touchend",function(){u(e);let i=s();return g(i.onNodeTouchEnd())})("drop",function(i){u(e);let o=s();return g(o.onDropNode(i))})("dragover",function(i){u(e);let o=s();return g(o.onDropNodeDragOver(i))})("dragenter",function(i){u(e);let o=s();return g(o.onDropNodeDragEnter(i))})("dragleave",function(i){u(e);let o=s();return g(o.onDropNodeDragLeave(i))})("dragstart",function(i){u(e);let o=s();return g(o.onDragStart(i))})("dragend",function(i){u(e);let o=s();return g(o.onDragStop(i))}),f(3,"button",4),x("click",function(i){u(e);let o=s();return g(o.toggle(i))}),d(4,pt,3,2,"ng-container",5)(5,_t,2,5,"span",6),m(),d(6,Tt,2,8,"p-checkbox",7)(7,bt,1,2,"span",8),f(8,"span",9),d(9,xt,2,1,"span",5)(10,St,2,4,"span",5),m()(),d(11,Nt,2,4,"ul",10),m(),d(12,wt,1,4,"li",1)}if(t&2){let e=s();a("ngIf",e.tree.droppableNodes),c(),ie(e.node.style),O(e.node.styleClass),a("ngClass",e.nodeClass)("ngStyle",D(29,Ge,e.itemSize+"px")),N("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),c(),te("padding-left",e.level*e.indentation+"rem"),a("ngClass",e.nodeContentClass)("draggable",e.tree.draggableNodes),c(),N("data-pc-section","toggler"),c(),a("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.selectionMode=="checkbox"),c(),a("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(2),a("ngIf",!e.tree.getTemplateForNode(e.node)),c(),a("ngIf",e.tree.getTemplateForNode(e.node)),c(),a("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded),c(),a("ngIf",e.tree.droppableNodes&&e.lastChild)}}var je=["filter"],Et=["node"],kt=["header"],Vt=["footer"],Dt=["loader"],Mt=["empty"],Ot=["togglericon"],Ft=["checkboxicon"],$t=["loadingicon"],Lt=["filtericon"],zt=["scroller"],Ut=["wrapper"],Rt=t=>({options:t});function At(t,l){if(t&1&&w(0,"i"),t&2){let e=s(2);O("p-tree-loading-icon pi-spin "+e.loadingIcon)}}function Qt(t,l){t&1&&w(0,"SpinnerIcon",16),t&2&&a("spin",!0)("styleClass","p-tree-loading-icon")}function Bt(t,l){}function Pt(t,l){t&1&&d(0,Bt,0,0,"ng-template")}function Ht(t,l){if(t&1&&(f(0,"span",17),d(1,Pt,1,0,null,9),m()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function qt(t,l){if(t&1&&(S(0),d(1,Qt,1,2,"SpinnerIcon",14)(2,Ht,2,1,"span",15),C()),t&2){let e=s(2);c(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Kt(t,l){if(t&1&&(f(0,"div",12),d(1,At,1,2,"i",13)(2,qt,3,2,"ng-container",10),m()),t&2){let e=s();c(),a("ngIf",e.loadingIcon),c(),a("ngIf",!e.loadingIcon)}}function jt(t,l){t&1&&I(0)}function Wt(t,l){t&1&&I(0)}function Gt(t,l){if(t&1&&d(0,Wt,1,0,"ng-container",18),t&2){let e=s();a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",D(2,Je,e.filterOptions))}}function Yt(t,l){t&1&&w(0,"SearchIcon",21)}function Jt(t,l){}function Xt(t,l){t&1&&d(0,Jt,0,0,"ng-template")}function Zt(t,l){if(t&1&&(f(0,"span"),d(1,Xt,1,0,null,9),m()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function ei(t,l){if(t&1){let e=V();f(0,"p-iconField")(1,"input",19,0),x("keydown.enter",function(i){return u(e),g(i.preventDefault())})("input",function(i){u(e);let o=s(2);return g(o._filter(i.target.value))}),m(),f(3,"p-inputIcon"),d(4,Yt,1,0,"SearchIcon",20)(5,Zt,2,1,"span",10),m()()}if(t&2){let e=s(2);c(),a("pAutoFocus",e.filterInputAutoFocus),N("placeholder",e.filterPlaceholder),c(3),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function ti(t,l){if(t&1&&d(0,ei,6,4,"p-iconField",10),t&2){let e=s();a("ngIf",e.filter)}}function ii(t,l){if(t&1&&w(0,"p-treeNode",27,3),t&2){let e=l.$implicit,n=l.first,i=l.last,o=l.index,r=s(2).options,p=s(3);a("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",n)("lastChild",i)("index",p.getIndex(r,o))("itemSize",r.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)}}function ni(t,l){if(t&1&&(f(0,"ul",25),d(1,ii,2,10,"p-treeNode",26),m()),t&2){let e=s(),n=e.$implicit,i=e.options,o=s(3);ie(i.contentStyle),a("ngClass",i.contentStyleClass),N("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(),a("ngForOf",n)("ngForTrackBy",o.trackBy)}}function oi(t,l){if(t&1&&d(0,ni,2,7,"ul",24),t&2){let e=l.$implicit;a("ngIf",e)}}function ri(t,l){t&1&&I(0)}function li(t,l){if(t&1&&d(0,ri,1,0,"ng-container",18),t&2){let e=l.options,n=s(4);a("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",D(2,Rt,e))}}function ai(t,l){t&1&&(S(0),d(1,li,1,4,"ng-template",null,4,k),C())}function si(t,l){if(t&1){let e=V();f(0,"p-scroller",23,1),x("onScroll",function(i){u(e);let o=s(2);return g(o.onScroll.emit(i))})("onScrollIndexChange",function(i){u(e);let o=s(2);return g(o.onScrollIndexChange.emit(i))})("onLazyLoad",function(i){u(e);let o=s(2);return g(o.onLazyLoad.emit(i))}),d(2,oi,1,1,"ng-template",null,2,k)(4,ai,3,0,"ng-container",10),m()}if(t&2){let e=s(2);ie(D(9,Ge,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),a("items",e.serializedValue)("tabindex",-1)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualNodeHeight)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function ci(t,l){if(t&1&&w(0,"p-treeNode",32),t&2){let e=l.$implicit,n=l.first,i=l.last,o=l.index,r=s(4);a("node",e)("firstChild",n)("lastChild",i)("index",o)("level",0)("loadingMode",r.loadingMode)}}function di(t,l){if(t&1&&(f(0,"ul",30),d(1,ci,1,6,"p-treeNode",31),m()),t&2){let e=s(3);N("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(),a("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function pi(t,l){if(t&1&&(S(0),f(1,"div",28,5),d(3,di,2,4,"ul",29),m(),C()),t&2){let e=s(2);c(),te("max-height",e.scrollHeight),c(2),a("ngIf",e.getRootNode())}}function ui(t,l){if(t&1&&(S(0),d(1,si,5,11,"p-scroller",22)(2,pi,4,3,"ng-container",10),C()),t&2){let e=s();c(),a("ngIf",e.virtualScroll),c(),a("ngIf",!e.virtualScroll)}}function gi(t,l){if(t&1&&(S(0),A(1),C()),t&2){let e=s(2);c(),oe(" ",e.emptyMessageLabel," ")}}function _i(t,l){}function hi(t,l){t&1&&d(0,_i,0,0,"ng-template",null,6,k)}function fi(t,l){if(t&1&&(f(0,"div",33),d(1,gi,2,1,"ng-container",34)(2,hi,2,0,null,9),m()),t&2){let e=s();c(),a("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),a("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function mi(t,l){t&1&&I(0)}var yi=({dt:t})=>`
|
|
2
2
|
.p-tree {
|
|
3
3
|
background: ${t("tree.background")};
|
|
4
4
|
color: ${t("tree.color")};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{a as Ke,b as Qe,c as Xe,d as Ye,e as Ze,f as et}from"./chunk-OB46Z7ZH.js";import{a as $e,b as ze,c as Ue,d as qe}from"./chunk-6V36DOK2.js";import{a as We,b as He}from"./chunk-E3ZGQRZ3.js";import{a as Le}from"./chunk-K4P3JOA6.js";import{b as Me}from"./chunk-AQR2H4W4.js";import{a as Je,b as je}from"./chunk-MPHY6FVN.js";import"./chunk-NMSYINDE.js";import{a as Be,b as Ve,d as Oe,k as ke}from"./chunk-VPQDUC77.js";import{a as Te,b as we}from"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as Re}from"./chunk-KXE3J4PK.js";import{a as Q,b as X}from"./chunk-E3QNEH3B.js";import"./chunk-JUCJGYST.js";import{a as Ge,b as Pe}from"./chunk-6O5EWYT7.js";import"./chunk-I7ILLTFH.js";import{a as Ne,b as De}from"./chunk-2LQVI4EI.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{b as Y}from"./chunk-WXT6EZ2V.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import{h as A}from"./chunk-3O2P3XCM.js";import"./chunk-L3PZS6EL.js";import{a as J,b as j}from"./chunk-5JV52UYK.js";import"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{n as K,o as F,w as k,x as R}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{Ha as O,La as Ee,b as N,c as le,e as y,f as D,j as Ae,l as G,m as W,n as Ie,o as P,u as B,w as H,x as V}from"./chunk-72LNXEXV.js";import{b as Ce,e as xe,l as Se}from"./chunk-EFDD6Q3K.js";import{a as Fe}from"./chunk-CPEWFFH4.js";import{a as ye}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{h as ve,k as he,q as _e,s as S}from"./chunk-SB5MSLCX.js";import{$b as _,Cc as q,Db as g,Dc as I,Ec as oe,Ha as L,L as se,Lb as p,Nc as re,Ob as $,Oc as ae,Rb as T,Rc as f,Tb as w,Ub as M,Vb as i,Wb as n,Xb as c,Z as ue,_ as E,ca as de,ec as C,fc as d,g as pe,hb as l,ia as u,nb as ie,qa as b,ra as v,rc as r,s as ce,sc as U,tc as z,wc as fe,xb as x,xc as ge,yc as be}from"./chunk-6K5LNQ4J.js";import"./chunk-YQFG5XE2.js";var h=(()=>{class t{#e=u(Fe);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ut=()=>({height:"calc(100vh - 100px)"});function dt(t,m){if(t&1){let e=_();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),C("click",function(){b(e);let a=d();return v(a.updateAccountingIntegration())}),n()()}}function ft(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),U(e)}}function gt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",41),i(2,"label",42),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function bt(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",43),i(3,"label",42),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),U(e.value)}}function vt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),w(4,ft,2,2,"p-tab",8,T),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),w(39,gt,4,4,"div",25,T),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),w(92,bt,5,4,"div",40,T),n()()()()()()()()()()()()),t&2){let e,o,a,s=d();$(I(8,ut)),l(2),p("value",0)("formGroup",s.form),l(2),M(s.tabs()),l(3),p("value",0),l(26),p("options",(e=s.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=s.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=s.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal)}}var nt=(()=>{class t{constructor(){this.accountingSetupService=u(h),this.fb=u(B).nonNullable,this.tabs=L(["Numbering","Journal","Report"]),this.accountingIntegration=L(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(E(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,dt,4,0,"ng-template",null,0,f)(3,vt,94,9,"ng-template",null,1,f),n())},dependencies:[S,et,Ze,Ye,Xe,Ke,Qe,A,Y,Ve,Be,V,y,D,G,P,W,F,Pe,Ge,je,Je,Se,xe,R,k,De,Ne,X,Q],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var Ct=()=>({height:"cacl(100vh - 200px)"}),xt=()=>({height:"calc(100vh - 250px)"}),it=()=>({});function St(t,m){if(t&1){let e=_();i(0,"div")(1,"p-button",5),C("onClick",function(){b(e);let a=d();return v(a.submitForm())}),n()()}}function yt(t,m){t&1&&(i(0,"div",17)(1,"h3",18),r(2,"Date"),n(),c(3,"p-datePicker",19),n())}function Ft(t,m){t&1&&(i(0,"tr")(1,"th",25),r(2,"Account Name"),n(),i(3,"th",26),r(4,"Debit"),n(),i(5,"th",26),r(6,"Credit"),n()())}function At(t,m){if(t&1&&(i(0,"tr",9)(1,"td",25),r(2),n(),i(3,"td"),c(4,"input",27),n(),i(5,"td"),c(6,"input",28),n()()),t&2){let e,o=m.$implicit,a=m.rowIndex,s=d(4);p("formGroupName",a),l(2),z(" ",(e=s.asFormGroup(o).get("accountName"))==null?null:e.value," "),l(2),p("autoNumeric",I(4,it)),l(2),p("autoNumeric",I(5,it))}}function It(t,m){if(t&1&&(i(0,"div",9)(1,"h4",20),r(2),n(),i(3,"div",21)(4,"p-table",22),g(5,Ft,7,0,"ng-template",23)(6,At,7,6,"ng-template",24),n()()()),t&2){let e=m.$implicit,o=m.$index,a=d(3);p("formGroupName",o),l(2),z(" ",e.get("name").value," "),l(2),p("value",a.getItemsArray(a.asFormGroup(e)).controls)}}function Et(t,m){if(t&1&&(i(0,"p-panel",7),g(1,yt,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",8),w(6,It,7,3,"div",9,T),n()(),i(8,"div",10)(9,"table",11)(10,"tr")(11,"td",12)(12,"p",13),r(13," Total: "),n()(),i(14,"td",14)(15,"p",15),r(16),re(17,"number"),n()(),i(18,"td",16)(19,"p",15),r(20),re(21,"number"),n()()()()()()),t&2){let e=d(2);$(I(11,Ct)),p("formGroup",e.formGroups),l(4),$(I(12,xt)),l(2),M(e.formsArray.controls),l(10),z(" ",ae(17,7,e.subtotalDebit)," "),l(4),z(" ",ae(21,9,e.subtotalCredit)," ")}}function Tt(t,m){if(t&1&&g(0,Et,22,13,"p-panel",6),t&2){let e=d();p("ngIf",e.formGroups)}}var rt=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=u(B),this.accSetupService=u(h),this.dayjsService=u(Me),this.date=new Date,this.routes=u(Ce)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(se(300),ue(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(ce(e=>e.data),Re("response"),E(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),s=a.controls.reduce((ee,te)=>{let ne=te.get("debitAmount").value||0;return ee+ne},0),ct=a.controls.reduce((ee,te)=>{let ne=te.get("creditAmount").value||0;return ee+ne},0);this.subtotalDebit+=s,this.subtotalCredit+=ct})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,s])=>(a==="date"?o[a]=s instanceof Date?this.dayjsService.format(s):s:a==="forms"?o.form=s:o[a]=s,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-acc-opening-balance-form"]],features:[q([O])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup","style",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[2,"position","fixed","bottom","0","left","241px",`/* offset from the left edge (assuming 250px sidebar) */
|
|
1
|
+
import{a as Ke,b as Qe,c as Xe,d as Ye,e as Ze,f as et}from"./chunk-XD7VHCRC.js";import{a as $e,b as ze,c as Ue,d as qe}from"./chunk-UP67MADL.js";import{a as We,b as He}from"./chunk-NCDT6JPP.js";import{a as Le}from"./chunk-JRVYSBUZ.js";import{b as Me}from"./chunk-7FFVGWUP.js";import{a as Je,b as je}from"./chunk-HG5MKVNR.js";import"./chunk-NZN6QJR3.js";import{a as Be,b as Ve,d as Oe,k as ke}from"./chunk-EL5BUFMO.js";import{a as Te,b as we}from"./chunk-EQ4PLHI4.js";import"./chunk-H7Q35Y7G.js";import"./chunk-R7N6BWL5.js";import{a as Re}from"./chunk-QF4D5YPK.js";import{a as Q,b as X}from"./chunk-VJ3IBUVO.js";import"./chunk-2AAVNIG7.js";import{a as Ge,b as Pe}from"./chunk-LFZCMZAP.js";import"./chunk-6A2KUPOG.js";import{a as Ne,b as De}from"./chunk-36OX4S7M.js";import"./chunk-Q5CVMJZC.js";import"./chunk-3GGXPPQT.js";import"./chunk-MFK5RQPJ.js";import{b as Y}from"./chunk-KJ2WX3FC.js";import"./chunk-6GN3MGBY.js";import"./chunk-Q24GCSGD.js";import{h as A}from"./chunk-H3BFDSSJ.js";import"./chunk-VGNJD35F.js";import{a as J,b as j}from"./chunk-2XUSZCQL.js";import"./chunk-YV2QJ63P.js";import"./chunk-ARH3WEEF.js";import{n as K,o as F,w as k,x as R}from"./chunk-H6HNANYB.js";import"./chunk-2D2YD753.js";import{Ha as O,La as Ee,b as N,c as le,e as y,f as D,j as Ae,l as G,m as W,n as Ie,o as P,u as B,w as H,x as V}from"./chunk-OIBDX2CA.js";import{b as Ce,e as xe,l as Se}from"./chunk-AOOG6YOT.js";import{a as Fe}from"./chunk-M6LSMNSQ.js";import{a as ye}from"./chunk-2MKKFLNJ.js";import{h as be,k as ve,q as _e,s as S}from"./chunk-VZ5CMS5O.js";import"./chunk-F2X3VGZZ.js";import{$b as _,Cc as q,Db as g,Dc as I,Ec as oe,Ha as L,L as se,Lb as p,Nc as re,Ob as $,Oc as ae,Rb as T,Rc as f,Tb as w,Ub as M,Vb as i,Wb as n,Xb as c,Z as ue,_ as E,ca as de,ec as C,fc as d,g as pe,hb as l,ia as u,nb as ie,qa as h,ra as b,rc as r,s as ce,sc as U,tc as z,wc as fe,xb as x,xc as ge,yc as he}from"./chunk-NMCKMUY4.js";import"./chunk-YQFG5XE2.js";var v=(()=>{class t{#e=u(Fe);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ut=()=>({height:"calc(100vh - 100px)"});function dt(t,m){if(t&1){let e=_();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),C("click",function(){h(e);let a=d();return b(a.updateAccountingIntegration())}),n()()}}function ft(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),U(e)}}function gt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",41),i(2,"label",42),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function ht(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",43),i(3,"label",42),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),U(e.value)}}function bt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),w(4,ft,2,2,"p-tab",8,T),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),w(39,gt,4,4,"div",25,T),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),w(92,ht,5,4,"div",40,T),n()()()()()()()()()()()()),t&2){let e,o,a,s=d();$(I(8,ut)),l(2),p("value",0)("formGroup",s.form),l(2),M(s.tabs()),l(3),p("value",0),l(26),p("options",(e=s.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=s.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=s.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal)}}var nt=(()=>{class t{constructor(){this.accountingSetupService=u(v),this.fb=u(B).nonNullable,this.tabs=L(["Numbering","Journal","Report"]),this.accountingIntegration=L(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(E(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,dt,4,0,"ng-template",null,0,f)(3,bt,94,9,"ng-template",null,1,f),n())},dependencies:[S,et,Ze,Ye,Xe,Ke,Qe,A,Y,Ve,Be,V,y,D,G,P,W,F,Pe,Ge,je,Je,Se,xe,R,k,De,Ne,X,Q],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var Ct=()=>({height:"cacl(100vh - 200px)"}),xt=()=>({height:"calc(100vh - 250px)"}),it=()=>({});function St(t,m){if(t&1){let e=_();i(0,"div")(1,"p-button",5),C("onClick",function(){h(e);let a=d();return b(a.submitForm())}),n()()}}function yt(t,m){t&1&&(i(0,"div",17)(1,"h3",18),r(2,"Date"),n(),c(3,"p-datePicker",19),n())}function Ft(t,m){t&1&&(i(0,"tr")(1,"th",25),r(2,"Account Name"),n(),i(3,"th",26),r(4,"Debit"),n(),i(5,"th",26),r(6,"Credit"),n()())}function At(t,m){if(t&1&&(i(0,"tr",9)(1,"td",25),r(2),n(),i(3,"td"),c(4,"input",27),n(),i(5,"td"),c(6,"input",28),n()()),t&2){let e,o=m.$implicit,a=m.rowIndex,s=d(4);p("formGroupName",a),l(2),z(" ",(e=s.asFormGroup(o).get("accountName"))==null?null:e.value," "),l(2),p("autoNumeric",I(4,it)),l(2),p("autoNumeric",I(5,it))}}function It(t,m){if(t&1&&(i(0,"div",9)(1,"h4",20),r(2),n(),i(3,"div",21)(4,"p-table",22),g(5,Ft,7,0,"ng-template",23)(6,At,7,6,"ng-template",24),n()()()),t&2){let e=m.$implicit,o=m.$index,a=d(3);p("formGroupName",o),l(2),z(" ",e.get("name").value," "),l(2),p("value",a.getItemsArray(a.asFormGroup(e)).controls)}}function Et(t,m){if(t&1&&(i(0,"p-panel",7),g(1,yt,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",8),w(6,It,7,3,"div",9,T),n()(),i(8,"div",10)(9,"table",11)(10,"tr")(11,"td",12)(12,"p",13),r(13," Total: "),n()(),i(14,"td",14)(15,"p",15),r(16),re(17,"number"),n()(),i(18,"td",16)(19,"p",15),r(20),re(21,"number"),n()()()()()()),t&2){let e=d(2);$(I(11,Ct)),p("formGroup",e.formGroups),l(4),$(I(12,xt)),l(2),M(e.formsArray.controls),l(10),z(" ",ae(17,7,e.subtotalDebit)," "),l(4),z(" ",ae(21,9,e.subtotalCredit)," ")}}function Tt(t,m){if(t&1&&g(0,Et,22,13,"p-panel",6),t&2){let e=d();p("ngIf",e.formGroups)}}var rt=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=u(B),this.accSetupService=u(v),this.dayjsService=u(Me),this.date=new Date,this.routes=u(Ce)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(se(300),ue(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(ce(e=>e.data),Re("response"),E(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),s=a.controls.reduce((ee,te)=>{let ne=te.get("debitAmount").value||0;return ee+ne},0),ct=a.controls.reduce((ee,te)=>{let ne=te.get("creditAmount").value||0;return ee+ne},0);this.subtotalDebit+=s,this.subtotalCredit+=ct})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,s])=>(a==="date"?o[a]=s instanceof Date?this.dayjsService.format(s):s:a==="forms"?o.form=s:o[a]=s,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-acc-opening-balance-form"]],features:[q([O])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup","style",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[2,"position","fixed","bottom","0","left","241px",`/* offset from the left edge (assuming 250px sidebar) */
|
|
2
2
|
width`,`calc(
|
|
3
3
|
100% - 243px
|
|
4
4
|
)`,`/* adjust width to fit the remaining space */
|
|
5
5
|
z-index`,"91","background-color","white",`/* added background */
|
|
6
6
|
/* box-shadow`,"0 -2px 5px rgba(0, 0, 0, 0.1)",`*/ /* added subtle shadow */
|
|
7
7
|
padding`,"8px 0",`/* added padding for height */
|
|
8
|
-
border-top`,"1px solid #e0e0e0"],[1,"w-100","px-4"],[1,"ps-5"],[1,"fw-semibold","fs-4","m-0","text-end",2,"margin-right","10px !important"],[1,"",2,"width","200px"],[1,"fw-semibold","fs-4","m-0","text-start"],[1,"pe-5",2,"width","200px"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],["formControlName","debitAmount",1,"fs-3","form-control",3,"autoNumeric"],["formControlName","creditAmount",1,"fs-3","form-control",3,"autoNumeric"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,St,2,0,"ng-template",null,0,f)(3,Tt,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",4)),o&2&&p("scrollable",!0)},dependencies:[A,Y,Ee,S,
|
|
8
|
+
border-top`,"1px solid #e0e0e0"],[1,"w-100","px-4"],[1,"ps-5"],[1,"fw-semibold","fs-4","m-0","text-end",2,"margin-right","10px !important"],[1,"",2,"width","200px"],[1,"fw-semibold","fs-4","m-0","text-start"],[1,"pe-5",2,"width","200px"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],["dataKey","id",3,"value"],["pTemplate","header"],["pTemplate","body"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],["formControlName","debitAmount",1,"fs-3","form-control",3,"autoNumeric"],["formControlName","creditAmount",1,"fs-3","form-control",3,"autoNumeric"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,St,2,0,"ng-template",null,0,f)(3,Tt,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",4)),o&2&&p("scrollable",!0)},dependencies:[A,Y,Ee,S,ve,_e,we,Te,ke,Oe,X,Q,H,N,y,D,F,Ue,R,k,j,J,Le,V,G,P,W,Ie,He,We],styles:["[_nghost-%COMP%]{display:block} .container-wrapper .p-datatable .p-datatable-thead>tr>th{top:0!important}"],changeDetection:0})}}return t})();var at=t=>({"ng-invalid ng-dirty":t});function Mt(t,m){if(t&1){let e=_();i(0,"p-button",4),C("onClick",function(){h(e);let a=d();return b(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),C("onClick",function(){h(e);let a=d();return b(a.saveCredentials())}),r(3,"Update"),n()}}function Nt(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function Dt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,Nt,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=d();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",oe(3,at,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",oe(5,at,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var lt=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=u(v)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(E(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[le.required]],clientSecret:["",[le.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(ie(B),ie(O))}}static{this.\u0275cmp=x({type:t,selectors:[["app-api-credential"]],features:[q([O])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Mt,4,0,"ng-template",null,0,f)(3,Dt,15,7,"ng-template",null,1,f),n())},dependencies:[S,be,V,N,y,D,G,P,F,K,j,J,A,R,k,qe],encapsulation:2})}}return t})();function Gt(t,m){if(t&1){let e=_();i(0,"button",4),C("click",function(){h(e);let a=d();return b(a.onFormatJournal())}),r(1," Format "),n()}}function Pt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function Bt(t,m){if(t&1){let e=_();i(0,"div",5)(1,"p-panel"),g(2,Pt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),he("ngModelChange",function(a){h(e);let s=d();return ge(s.subdomain,a)||(s.subdomain=a),b(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=d();l(7),fe("ngModel",e.subdomain)}}var mt=(()=>{class t{constructor(){this.setupService=u(v),this.subdomain=L(""),this.toastrService=u(ye)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Gt,2,0,"ng-template",null,0,f)(3,Bt,12,1,"ng-template",null,1,f),n())},dependencies:[S,H,N,y,Ae,F,K,A,j,J,ze,$e],encapsulation:2})}}return t})();var pt=()=>u(v).fetchOpeningBalanceFormConfiguration();var bi=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"journal-tag",loadComponent:()=>import("./chunk-DLIPUA4K.js").then(t=>t.JournalTagComponent)},{path:"journal-tag/info",loadComponent:()=>import("./chunk-27TIOMYM.js").then(t=>t.JournalTagInfoComponent)},{path:"journal-tag/form",loadComponent:()=>import("./chunk-EERQ53V7.js").then(t=>t.JournalTagFormComponent)},{path:"accounting-integration",component:nt},{path:"opening-balance-form",component:rt,resolve:{data:pt}},{path:"api-crendetial",component:lt},{path:"format-journal",component:mt},{path:"closing-entries",loadComponent:()=>import("./chunk-5EJXAYSX.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-4PUT2IIE.js").then(t=>t.ClosingFormComponent)}]}];export{bi as ACCOUNTING_SETUP_ROUTES};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ze}from"./chunk-CNXEJBY5.js";import{a as Ee}from"./chunk-NMSYINDE.js";import{a as Fe}from"./chunk-I7ILLTFH.js";import{c as $e}from"./chunk-3KYU6FI2.js";import{a as Se}from"./chunk-ATJ55H5D.js";import{a as ke}from"./chunk-L3PZS6EL.js";import{a as Te,i as Ve,n as Me,p as Ae,r as Le}from"./chunk-7FFMPB6T.js";import{Da as be,Ia as Ce,La as we,Ma as W,Na as ve,Q as R,R as k,Ua as Ie,Va as Oe,a as ye,na as xe,qa as $,ra as M,sa as j,va as Z}from"./chunk-72LNXEXV.js";import{h as de,j as me,k as _e,l as he,m as ge,s as fe}from"./chunk-SB5MSLCX.js";import{$b as v,$c as E,Aa as w,Ba as te,Bb as ne,Cc as se,Db as c,Dc as ce,Ec as V,Fc as K,Ha as L,Kb as y,Lb as r,Mb as le,Ob as H,Pb as F,Rc as A,Vb as m,Wb as h,Xb as z,Yb as I,Zb as O,_b as T,_c as _,ba as J,bd as N,ca as X,cd as ue,da as Y,ec as b,fc as a,hb as s,ia as q,kc as C,lc as S,mc as g,nb as B,nc as f,qa as u,qc as G,ra as d,rc as D,sc as U,tc as P,ua as ee,wc as ae,xb as oe,xc as pe,yb as ie,yc as re}from"./chunk-6K5LNQ4J.js";var qe=["item"],Be=["empty"],He=["header"],Ge=["footer"],Ue=["selecteditem"],Pe=["group"],Ne=["loader"],je=["removeicon"],Ze=["loadingicon"],We=["clearicon"],Je=["dropdownicon"],Xe=["container"],Ye=["focusInput"],et=["multiIn"],tt=["multiContainer"],ot=["ddBtn"],it=["items"],nt=["scroller"],lt=["overlay"],at=t=>({"p-autocomplete-chip-item":!0,"p-focus":t}),Ke=t=>({$implicit:t}),pt=(t,l)=>({class:"p-autocomplete-chip-icon",removeCallback:t,index:l}),Q=t=>({height:t}),Re=(t,l)=>({$implicit:t,options:l}),rt=t=>({options:t}),st=()=>({}),ct=(t,l)=>({$implicit:t,index:l});function ut(t,l){if(t&1){let e=v();m(0,"input",19,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()}if(t&2){let e,o=a();F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass","p-autocomplete-input")("ngStyle",o.inputStyle)("type",o.type)("variant",o.variant)("autocomplete",o.autocomplete)("required",o.required)("name",o.name)("pSize",o.size)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled)("fluid",o.hasFluid),y("value",o.inputValue())("id",o.inputId)("placeholder",o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function dt(t,l){if(t&1){let e=v();m(0,"TimesIcon",22),b("click",function(){u(e);let i=a(2);return d(i.clear())}),h()}t&2&&(r("styleClass","p-autocomplete-clear-icon"),y("aria-hidden",!0))}function mt(t,l){}function _t(t,l){t&1&&c(0,mt,0,0,"ng-template")}function ht(t,l){if(t&1){let e=v();m(0,"span",23),b("click",function(){u(e);let i=a(2);return d(i.clear())}),c(1,_t,1,0,null,24),h()}if(t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function gt(t,l){if(t&1&&(I(0),c(1,dt,1,2,"TimesIcon",20)(2,ht,2,2,"span",21),O()),t&2){let e=a();s(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),s(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function ft(t,l){t&1&&T(0)}function yt(t,l){if(t&1){let e=v();m(0,"span",33),b("click",function(i){u(e);let n=a(3).index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),z(1,"TimesCircleIcon",34),h()}t&2&&(s(),r("styleClass","p-autocomplete-chip-icon"),y("aria-hidden",!0))}function xt(t,l){t&1&&(I(0),c(1,yt,2,2,"ng-template",null,6,A),O())}function bt(t,l){if(t&1){let e=v();m(0,"p-chip",32),b("onRemove",function(i){u(e);let n=a().index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),c(1,xt,3,0,"ng-container",15),h()}if(t&2){let e=a().$implicit,o=a(2);r("label",o.getOptionLabel(e))("removable",!0),s(),r("ngIf",!o.removeIconTemplate&&!o._removeIconTemplate)}}function Ct(t,l){}function wt(t,l){t&1&&c(0,Ct,0,0,"ng-template")}function vt(t,l){if(t&1&&(m(0,"span"),c(1,wt,1,0,null,30),h()),t&2){let e=a().index,o=a(2);s(),r("ngTemplateOutlet",o.removeIconTemplate||o._removeIconTemplate)("ngTemplateOutletContext",K(2,pt,o.removeOption.bind(o),e))}}function It(t,l){if(t&1&&(m(0,"li",29,5),c(2,ft,1,0,"ng-container",30)(3,bt,2,3,"p-chip",31)(4,vt,2,5,"span",15),h()),t&2){let e=l.$implicit,o=l.index,i=a(2);r("ngClass",V(10,at,i.focusedMultipleOptionIndex()===o)),y("id",i.id+"_multiple_option_"+o)("aria-label",i.getOptionLabel(e))("aria-setsize",i.modelValue().length)("aria-posinset",o+1)("aria-selected",!0),s(2),r("ngTemplateOutlet",i.selectedItemTemplate||i._selectedItemTemplate)("ngTemplateOutletContext",V(12,Ke,e)),s(),r("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate),s(),r("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}function Ot(t,l){if(t&1){let e=v();m(0,"ul",25,4),b("focus",function(i){u(e);let n=a();return d(n.onMultipleContainerFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onMultipleContainerBlur(i))})("keydown",function(i){u(e);let n=a();return d(n.onMultipleContainerKeyDown(i))}),c(2,It,5,14,"li",26),m(3,"li",27)(4,"input",28,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()()()}if(t&2){let e,o=a();r("ngClass",o.inputMultipleClass)("tabindex",-1),y("aria-orientation","horizontal")("aria-activedescendant",o.focused?o.focusedMultipleOptionId:void 0),s(2),r("ngForOf",o.modelValue()),s(2),F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass",o.inputClass)("ngStyle",o.inputStyle)("autocomplete",o.autocomplete)("required",o.required)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled),y("type",o.type)("id",o.inputId)("name",o.name)("placeholder",o.filled?null:o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function Tt(t,l){t&1&&z(0,"SpinnerIcon",37),t&2&&(r("styleClass","p-autocomplete-loader")("spin",!0),y("aria-hidden",!0))}function St(t,l){}function Vt(t,l){t&1&&c(0,St,0,0,"ng-template")}function kt(t,l){if(t&1&&(m(0,"span",38),c(1,Vt,1,0,null,24),h()),t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Et(t,l){if(t&1&&(I(0),c(1,Tt,1,3,"SpinnerIcon",35)(2,kt,2,2,"span",36),O()),t&2){let e=a();s(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Mt(t,l){if(t&1&&z(0,"span",41),t&2){let e=a(2);r("ngClass",e.dropdownIcon),y("aria-hidden",!0)}}function At(t,l){t&1&&z(0,"ChevronDownIcon")}function $t(t,l){}function Lt(t,l){t&1&&c(0,$t,0,0,"ng-template")}function Ft(t,l){if(t&1&&(I(0),c(1,At,1,0,"ChevronDownIcon",15)(2,Lt,1,0,null,24),O()),t&2){let e=a(2);s(),r("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),s(),r("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zt(t,l){if(t&1){let e=v();m(0,"button",39,7),b("click",function(i){u(e);let n=a();return d(n.handleDropdownClick(i))}),c(2,Mt,1,2,"span",40)(3,Ft,3,2,"ng-container",15),h()}if(t&2){let e=a();r("disabled",e.disabled),y("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),s(2),r("ngIf",e.dropdownIcon),s(),r("ngIf",!e.dropdownIcon)}}function Dt(t,l){t&1&&T(0)}function Kt(t,l){t&1&&T(0)}function Rt(t,l){if(t&1&&c(0,Kt,1,0,"ng-container",30),t&2){let e=l.$implicit,o=l.options;a(2);let i=G(6);r("ngTemplateOutlet",i)("ngTemplateOutletContext",K(2,Re,e,o))}}function Qt(t,l){t&1&&T(0)}function qt(t,l){if(t&1&&c(0,Qt,1,0,"ng-container",30),t&2){let e=l.options,o=a(4);r("ngTemplateOutlet",o.loaderTemplate||o._loaderTemplate)("ngTemplateOutletContext",V(2,rt,e))}}function Bt(t,l){t&1&&(I(0),c(1,qt,1,4,"ng-template",null,10,A),O())}function Ht(t,l){if(t&1){let e=v();m(0,"p-scroller",46,9),b("onLazyLoad",function(i){u(e);let n=a(2);return d(n.onLazyLoad.emit(i))}),c(2,Rt,1,5,"ng-template",null,2,A)(4,Bt,3,0,"ng-container",15),h()}if(t&2){let e=a(2);H(V(8,Q,e.scrollHeight)),r("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),s(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Gt(t,l){t&1&&T(0)}function Ut(t,l){if(t&1&&(I(0),c(1,Gt,1,0,"ng-container",30),O()),t&2){a();let e=G(6),o=a();s(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",K(3,Re,o.visibleOptions(),ce(2,st)))}}function Pt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionGroupLabel(e.optionGroup))}}function Nt(t,l){t&1&&T(0)}function jt(t,l){if(t&1&&(I(0),m(1,"li",50),c(2,Pt,2,1,"span",15)(3,Nt,1,0,"ng-container",30),h(),O()),t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(5,Q,n.itemSize+"px")),y("id",p.id+"_"+p.getOptionIndex(i,n)),s(),r("ngIf",!p.groupTemplate),s(),r("ngTemplateOutlet",p.groupTemplate)("ngTemplateOutletContext",V(7,Ke,o.optionGroup))}}function Zt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionLabel(e))}}function Wt(t,l){t&1&&T(0)}function Jt(t,l){if(t&1){let e=v();I(0),m(1,"li",51),b("click",function(i){u(e);let n=a().$implicit,p=a(3);return d(p.onOptionSelect(i,n))})("mouseenter",function(i){u(e);let n=a().index,p=a().options,x=a(2);return d(x.onOptionMouseEnter(i,x.getOptionIndex(n,p)))}),c(2,Zt,2,1,"span",15)(3,Wt,1,0,"ng-container",30),h(),O()}if(t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(12,Q,n.itemSize+"px"))("ngClass",p.optionClass(o,i,n)),y("id",p.id+"_"+p.getOptionIndex(i,n))("aria-label",p.getOptionLabel(o))("aria-selected",p.isSelected(o))("aria-disabled",p.isOptionDisabled(o))("data-p-focused",p.focusedOptionIndex()===p.getOptionIndex(i,n))("aria-setsize",p.ariaSetSize)("aria-posinset",p.getAriaPosInset(p.getOptionIndex(i,n))),s(),r("ngIf",!p.itemTemplate&&!p._itemTemplate),s(),r("ngTemplateOutlet",p.itemTemplate||p._itemTemplate)("ngTemplateOutletContext",K(14,ct,o,n.getOptions?n.getOptions(i):i))}}function Xt(t,l){if(t&1&&c(0,jt,4,9,"ng-container",15)(1,Jt,4,17,"ng-container",15),t&2){let e=l.$implicit,o=a(3);r("ngIf",o.isOptionGroup(e)),s(),r("ngIf",!o.isOptionGroup(e))}}function Yt(t,l){if(t&1&&(I(0),D(1),O()),t&2){let e=a(4);s(),P(" ",e.searchResultMessageText," ")}}function eo(t,l){t&1&&T(0,null,12)}function to(t,l){if(t&1&&(m(0,"li",52),c(1,Yt,2,1,"ng-container",53)(2,eo,2,0,"ng-container",24),h()),t&2){let e=a().options,o=a(2);r("ngStyle",V(4,Q,e.itemSize+"px")),s(),r("ngIf",!o.emptyTemplate&&!o._emptyTemplate)("ngIfElse",o.empty),s(),r("ngTemplateOutlet",o.emptyTemplate||o._emptyTemplate)}}function oo(t,l){if(t&1&&(m(0,"ul",47,11),c(2,Xt,2,2,"ng-template",48)(3,to,3,6,"li",49),h()),t&2){let e=l.$implicit,o=l.options,i=a(2);H(o.contentStyle),r("ngClass",o.contentStyleClass),y("id",i.id+"_list")("aria-label",i.listLabel),s(2),r("ngForOf",e),s(),r("ngIf",!e||e&&e.length===0&&i.showEmptyMessage)}}function io(t,l){t&1&&T(0)}function no(t,l){if(t&1&&(m(0,"div",42),c(1,Dt,1,0,"ng-container",24),m(2,"div",43),c(3,Ht,5,10,"p-scroller",44)(4,Ut,2,6,"ng-container",15),h(),c(5,oo,4,7,"ng-template",null,8,A)(7,io,1,0,"ng-container",24),h(),m(8,"span",45),D(9),h()),t&2){let e=a();F(e.panelStyleClass),r("ngClass",e.panelClass)("ngStyle",e.panelStyle),s(),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),le("max-height",e.virtualScroll?"auto":e.scrollHeight),s(),r("ngIf",e.virtualScroll),s(),r("ngIf",!e.virtualScroll),s(3),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),s(2),P(" ",e.selectedMessageText," ")}}var lo=({dt:t})=>`
|
|
1
|
+
import{a as ze}from"./chunk-7DYACF4D.js";import{a as Ee}from"./chunk-NZN6QJR3.js";import{a as Fe}from"./chunk-6A2KUPOG.js";import{c as $e}from"./chunk-Q5CVMJZC.js";import{a as Se}from"./chunk-6GN3MGBY.js";import{a as ke}from"./chunk-VGNJD35F.js";import{a as Te,i as Ve,n as Me,p as Ae,r as Le}from"./chunk-H6HNANYB.js";import{Da as be,Ia as Ce,La as we,Ma as W,Na as ve,Q as R,R as k,Ua as Ie,Va as Oe,a as ye,na as xe,qa as $,ra as M,sa as j,va as Z}from"./chunk-OIBDX2CA.js";import{h as de,j as me,k as _e,l as he,m as ge,s as fe}from"./chunk-VZ5CMS5O.js";import{$b as v,$c as E,Aa as w,Ba as te,Bb as ne,Cc as se,Db as c,Dc as ce,Ec as V,Fc as K,Ha as L,Kb as y,Lb as r,Mb as le,Ob as H,Pb as F,Rc as A,Vb as m,Wb as h,Xb as z,Yb as I,Zb as O,_b as T,_c as _,ba as J,bd as N,ca as X,cd as ue,da as Y,ec as b,fc as a,hb as s,ia as q,kc as C,lc as S,mc as g,nb as B,nc as f,qa as u,qc as G,ra as d,rc as D,sc as U,tc as P,ua as ee,wc as ae,xb as oe,xc as pe,yb as ie,yc as re}from"./chunk-NMCKMUY4.js";var qe=["item"],Be=["empty"],He=["header"],Ge=["footer"],Ue=["selecteditem"],Pe=["group"],Ne=["loader"],je=["removeicon"],Ze=["loadingicon"],We=["clearicon"],Je=["dropdownicon"],Xe=["container"],Ye=["focusInput"],et=["multiIn"],tt=["multiContainer"],ot=["ddBtn"],it=["items"],nt=["scroller"],lt=["overlay"],at=t=>({"p-autocomplete-chip-item":!0,"p-focus":t}),Ke=t=>({$implicit:t}),pt=(t,l)=>({class:"p-autocomplete-chip-icon",removeCallback:t,index:l}),Q=t=>({height:t}),Re=(t,l)=>({$implicit:t,options:l}),rt=t=>({options:t}),st=()=>({}),ct=(t,l)=>({$implicit:t,index:l});function ut(t,l){if(t&1){let e=v();m(0,"input",19,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()}if(t&2){let e,o=a();F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass","p-autocomplete-input")("ngStyle",o.inputStyle)("type",o.type)("variant",o.variant)("autocomplete",o.autocomplete)("required",o.required)("name",o.name)("pSize",o.size)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled)("fluid",o.hasFluid),y("value",o.inputValue())("id",o.inputId)("placeholder",o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function dt(t,l){if(t&1){let e=v();m(0,"TimesIcon",22),b("click",function(){u(e);let i=a(2);return d(i.clear())}),h()}t&2&&(r("styleClass","p-autocomplete-clear-icon"),y("aria-hidden",!0))}function mt(t,l){}function _t(t,l){t&1&&c(0,mt,0,0,"ng-template")}function ht(t,l){if(t&1){let e=v();m(0,"span",23),b("click",function(){u(e);let i=a(2);return d(i.clear())}),c(1,_t,1,0,null,24),h()}if(t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function gt(t,l){if(t&1&&(I(0),c(1,dt,1,2,"TimesIcon",20)(2,ht,2,2,"span",21),O()),t&2){let e=a();s(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),s(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function ft(t,l){t&1&&T(0)}function yt(t,l){if(t&1){let e=v();m(0,"span",33),b("click",function(i){u(e);let n=a(3).index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),z(1,"TimesCircleIcon",34),h()}t&2&&(s(),r("styleClass","p-autocomplete-chip-icon"),y("aria-hidden",!0))}function xt(t,l){t&1&&(I(0),c(1,yt,2,2,"ng-template",null,6,A),O())}function bt(t,l){if(t&1){let e=v();m(0,"p-chip",32),b("onRemove",function(i){u(e);let n=a().index,p=a(2);return d(p.readonly?"":p.removeOption(i,n))}),c(1,xt,3,0,"ng-container",15),h()}if(t&2){let e=a().$implicit,o=a(2);r("label",o.getOptionLabel(e))("removable",!0),s(),r("ngIf",!o.removeIconTemplate&&!o._removeIconTemplate)}}function Ct(t,l){}function wt(t,l){t&1&&c(0,Ct,0,0,"ng-template")}function vt(t,l){if(t&1&&(m(0,"span"),c(1,wt,1,0,null,30),h()),t&2){let e=a().index,o=a(2);s(),r("ngTemplateOutlet",o.removeIconTemplate||o._removeIconTemplate)("ngTemplateOutletContext",K(2,pt,o.removeOption.bind(o),e))}}function It(t,l){if(t&1&&(m(0,"li",29,5),c(2,ft,1,0,"ng-container",30)(3,bt,2,3,"p-chip",31)(4,vt,2,5,"span",15),h()),t&2){let e=l.$implicit,o=l.index,i=a(2);r("ngClass",V(10,at,i.focusedMultipleOptionIndex()===o)),y("id",i.id+"_multiple_option_"+o)("aria-label",i.getOptionLabel(e))("aria-setsize",i.modelValue().length)("aria-posinset",o+1)("aria-selected",!0),s(2),r("ngTemplateOutlet",i.selectedItemTemplate||i._selectedItemTemplate)("ngTemplateOutletContext",V(12,Ke,e)),s(),r("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate),s(),r("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}function Ot(t,l){if(t&1){let e=v();m(0,"ul",25,4),b("focus",function(i){u(e);let n=a();return d(n.onMultipleContainerFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onMultipleContainerBlur(i))})("keydown",function(i){u(e);let n=a();return d(n.onMultipleContainerKeyDown(i))}),c(2,It,5,14,"li",26),m(3,"li",27)(4,"input",28,3),b("input",function(i){u(e);let n=a();return d(n.onInput(i))})("keydown",function(i){u(e);let n=a();return d(n.onKeyDown(i))})("change",function(i){u(e);let n=a();return d(n.onInputChange(i))})("focus",function(i){u(e);let n=a();return d(n.onInputFocus(i))})("blur",function(i){u(e);let n=a();return d(n.onInputBlur(i))})("paste",function(i){u(e);let n=a();return d(n.onInputPaste(i))})("keyup",function(i){u(e);let n=a();return d(n.onInputKeyUp(i))}),h()()()}if(t&2){let e,o=a();r("ngClass",o.inputMultipleClass)("tabindex",-1),y("aria-orientation","horizontal")("aria-activedescendant",o.focused?o.focusedMultipleOptionId:void 0),s(2),r("ngForOf",o.modelValue()),s(2),F(o.inputStyleClass),r("pAutoFocus",o.autofocus)("ngClass",o.inputClass)("ngStyle",o.inputStyle)("autocomplete",o.autocomplete)("required",o.required)("tabindex",o.disabled?-1:o.tabindex)("readonly",o.readonly)("disabled",o.disabled),y("type",o.type)("id",o.inputId)("name",o.name)("placeholder",o.filled?null:o.placeholder)("maxlength",o.maxlength)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-required",o.required)("aria-expanded",(e=o.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",o.overlayVisible?o.id+"_list":null)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)}}function Tt(t,l){t&1&&z(0,"SpinnerIcon",37),t&2&&(r("styleClass","p-autocomplete-loader")("spin",!0),y("aria-hidden",!0))}function St(t,l){}function Vt(t,l){t&1&&c(0,St,0,0,"ng-template")}function kt(t,l){if(t&1&&(m(0,"span",38),c(1,Vt,1,0,null,24),h()),t&2){let e=a(2);y("aria-hidden",!0),s(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Et(t,l){if(t&1&&(I(0),c(1,Tt,1,3,"SpinnerIcon",35)(2,kt,2,2,"span",36),O()),t&2){let e=a();s(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),s(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Mt(t,l){if(t&1&&z(0,"span",41),t&2){let e=a(2);r("ngClass",e.dropdownIcon),y("aria-hidden",!0)}}function At(t,l){t&1&&z(0,"ChevronDownIcon")}function $t(t,l){}function Lt(t,l){t&1&&c(0,$t,0,0,"ng-template")}function Ft(t,l){if(t&1&&(I(0),c(1,At,1,0,"ChevronDownIcon",15)(2,Lt,1,0,null,24),O()),t&2){let e=a(2);s(),r("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),s(),r("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zt(t,l){if(t&1){let e=v();m(0,"button",39,7),b("click",function(i){u(e);let n=a();return d(n.handleDropdownClick(i))}),c(2,Mt,1,2,"span",40)(3,Ft,3,2,"ng-container",15),h()}if(t&2){let e=a();r("disabled",e.disabled),y("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),s(2),r("ngIf",e.dropdownIcon),s(),r("ngIf",!e.dropdownIcon)}}function Dt(t,l){t&1&&T(0)}function Kt(t,l){t&1&&T(0)}function Rt(t,l){if(t&1&&c(0,Kt,1,0,"ng-container",30),t&2){let e=l.$implicit,o=l.options;a(2);let i=G(6);r("ngTemplateOutlet",i)("ngTemplateOutletContext",K(2,Re,e,o))}}function Qt(t,l){t&1&&T(0)}function qt(t,l){if(t&1&&c(0,Qt,1,0,"ng-container",30),t&2){let e=l.options,o=a(4);r("ngTemplateOutlet",o.loaderTemplate||o._loaderTemplate)("ngTemplateOutletContext",V(2,rt,e))}}function Bt(t,l){t&1&&(I(0),c(1,qt,1,4,"ng-template",null,10,A),O())}function Ht(t,l){if(t&1){let e=v();m(0,"p-scroller",46,9),b("onLazyLoad",function(i){u(e);let n=a(2);return d(n.onLazyLoad.emit(i))}),c(2,Rt,1,5,"ng-template",null,2,A)(4,Bt,3,0,"ng-container",15),h()}if(t&2){let e=a(2);H(V(8,Q,e.scrollHeight)),r("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),s(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Gt(t,l){t&1&&T(0)}function Ut(t,l){if(t&1&&(I(0),c(1,Gt,1,0,"ng-container",30),O()),t&2){a();let e=G(6),o=a();s(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",K(3,Re,o.visibleOptions(),ce(2,st)))}}function Pt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionGroupLabel(e.optionGroup))}}function Nt(t,l){t&1&&T(0)}function jt(t,l){if(t&1&&(I(0),m(1,"li",50),c(2,Pt,2,1,"span",15)(3,Nt,1,0,"ng-container",30),h(),O()),t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(5,Q,n.itemSize+"px")),y("id",p.id+"_"+p.getOptionIndex(i,n)),s(),r("ngIf",!p.groupTemplate),s(),r("ngTemplateOutlet",p.groupTemplate)("ngTemplateOutletContext",V(7,Ke,o.optionGroup))}}function Zt(t,l){if(t&1&&(m(0,"span"),D(1),h()),t&2){let e=a(2).$implicit,o=a(3);s(),U(o.getOptionLabel(e))}}function Wt(t,l){t&1&&T(0)}function Jt(t,l){if(t&1){let e=v();I(0),m(1,"li",51),b("click",function(i){u(e);let n=a().$implicit,p=a(3);return d(p.onOptionSelect(i,n))})("mouseenter",function(i){u(e);let n=a().index,p=a().options,x=a(2);return d(x.onOptionMouseEnter(i,x.getOptionIndex(n,p)))}),c(2,Zt,2,1,"span",15)(3,Wt,1,0,"ng-container",30),h(),O()}if(t&2){let e=a(),o=e.$implicit,i=e.index,n=a().options,p=a(2);s(),r("ngStyle",V(12,Q,n.itemSize+"px"))("ngClass",p.optionClass(o,i,n)),y("id",p.id+"_"+p.getOptionIndex(i,n))("aria-label",p.getOptionLabel(o))("aria-selected",p.isSelected(o))("aria-disabled",p.isOptionDisabled(o))("data-p-focused",p.focusedOptionIndex()===p.getOptionIndex(i,n))("aria-setsize",p.ariaSetSize)("aria-posinset",p.getAriaPosInset(p.getOptionIndex(i,n))),s(),r("ngIf",!p.itemTemplate&&!p._itemTemplate),s(),r("ngTemplateOutlet",p.itemTemplate||p._itemTemplate)("ngTemplateOutletContext",K(14,ct,o,n.getOptions?n.getOptions(i):i))}}function Xt(t,l){if(t&1&&c(0,jt,4,9,"ng-container",15)(1,Jt,4,17,"ng-container",15),t&2){let e=l.$implicit,o=a(3);r("ngIf",o.isOptionGroup(e)),s(),r("ngIf",!o.isOptionGroup(e))}}function Yt(t,l){if(t&1&&(I(0),D(1),O()),t&2){let e=a(4);s(),P(" ",e.searchResultMessageText," ")}}function eo(t,l){t&1&&T(0,null,12)}function to(t,l){if(t&1&&(m(0,"li",52),c(1,Yt,2,1,"ng-container",53)(2,eo,2,0,"ng-container",24),h()),t&2){let e=a().options,o=a(2);r("ngStyle",V(4,Q,e.itemSize+"px")),s(),r("ngIf",!o.emptyTemplate&&!o._emptyTemplate)("ngIfElse",o.empty),s(),r("ngTemplateOutlet",o.emptyTemplate||o._emptyTemplate)}}function oo(t,l){if(t&1&&(m(0,"ul",47,11),c(2,Xt,2,2,"ng-template",48)(3,to,3,6,"li",49),h()),t&2){let e=l.$implicit,o=l.options,i=a(2);H(o.contentStyle),r("ngClass",o.contentStyleClass),y("id",i.id+"_list")("aria-label",i.listLabel),s(2),r("ngForOf",e),s(),r("ngIf",!e||e&&e.length===0&&i.showEmptyMessage)}}function io(t,l){t&1&&T(0)}function no(t,l){if(t&1&&(m(0,"div",42),c(1,Dt,1,0,"ng-container",24),m(2,"div",43),c(3,Ht,5,10,"p-scroller",44)(4,Ut,2,6,"ng-container",15),h(),c(5,oo,4,7,"ng-template",null,8,A)(7,io,1,0,"ng-container",24),h(),m(8,"span",45),D(9),h()),t&2){let e=a();F(e.panelStyleClass),r("ngClass",e.panelClass)("ngStyle",e.panelStyle),s(),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),le("max-height",e.virtualScroll?"auto":e.scrollHeight),s(),r("ngIf",e.virtualScroll),s(),r("ngIf",!e.virtualScroll),s(3),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),s(2),P(" ",e.selectedMessageText," ")}}var lo=({dt:t})=>`
|
|
2
2
|
.p-autocomplete {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
}
|