dealposbooks 5.52.6 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +50 -36
- package/{chunk-7E74W6WW.js → chunk-23GVTAWH.js} +2 -2
- package/chunk-2ISYUFG4.js +1 -0
- package/{chunk-OJMGF5CJ.js → chunk-2L65SN3U.js} +1 -1
- package/{chunk-JCGIG4OG.js → chunk-2LI4CEOF.js} +1 -1
- package/{chunk-RWGWM2JZ.js → chunk-3BPX4XM7.js} +1 -1
- package/chunk-3KN63HEO.js +1 -0
- package/{chunk-Q65FW2EM.js → chunk-3MU7BZQU.js} +1 -1
- package/{chunk-TDUOPNLX.js → chunk-3RZZT36W.js} +1 -1
- package/{chunk-TWDYXQSM.js → chunk-3YEWFLAB.js} +1 -1
- package/{chunk-2BKQ45PR.js → chunk-4D6KKSM5.js} +1 -1
- package/{chunk-DOWFGTEO.js → chunk-4P2FBAEV.js} +1 -1
- package/{chunk-ZPEEG2MX.js → chunk-4PQV7T7O.js} +1 -1
- package/chunk-54DASCAO.js +142 -0
- package/chunk-57ZAKRGI.js +7 -0
- package/{chunk-BRCJO4QV.js → chunk-5EU2OZ5X.js} +1 -1
- package/{chunk-KY4EBOEB.js → chunk-5FVLV36I.js} +2 -2
- package/chunk-5GRB6DBD.js +1 -0
- package/{chunk-XPNCASSR.js → chunk-5L65JV3Z.js} +1 -1
- package/{chunk-K2XFBG4B.js → chunk-5NZPHAOL.js} +1 -1
- package/{chunk-534L4NXK.js → chunk-5TAKHYWV.js} +1 -1
- package/chunk-6NXDL5QO.js +1 -0
- package/chunk-7BF6SRB6.js +1 -0
- package/{chunk-KMHIOZSQ.js → chunk-7C7GSAC3.js} +1 -1
- package/{chunk-5IZ2YCM4.js → chunk-7NZRUZLK.js} +1 -1
- package/{chunk-YUVA7MXG.js → chunk-7R4NAOW3.js} +1 -1
- package/{chunk-HBIXZIF4.js → chunk-7UYG2IJ5.js} +1 -1
- package/chunk-7YZVZ5BS.js +1 -0
- package/{chunk-3S2QVCOV.js → chunk-ACRPKVZ4.js} +1 -1
- package/chunk-ADDLKMW6.js +1 -0
- package/{chunk-4MO47INH.js → chunk-AP2QQRNJ.js} +1 -1
- package/{chunk-4KOFBQEK.js → chunk-BA72IEO2.js} +1 -1
- package/{chunk-EUBEE6D7.js → chunk-BEEH5PAA.js} +1 -1
- package/{chunk-4YBQZD6J.js → chunk-BRAR46TO.js} +1 -1
- package/chunk-C6FMCO33.js +1 -0
- package/{chunk-5RGY4F7I.js → chunk-CTGNW5L6.js} +4 -4
- package/chunk-CYXK442Y.js +1 -0
- package/{chunk-6TJ2OAAU.js → chunk-DOSAQI5P.js} +1 -1
- package/chunk-DPPBBVUJ.js +1 -0
- package/chunk-DV6F4QO2.js +274 -0
- package/{chunk-T4MKGUPR.js → chunk-E4FUCIJZ.js} +1 -1
- package/{chunk-76POPZ3A.js → chunk-ERHRLVEN.js} +1 -1
- package/chunk-EX4CZ2IJ.js +1 -0
- package/{chunk-Z3OSIXXU.js → chunk-F5KRTO45.js} +1 -1
- package/chunk-FN42URZ3.js +40 -0
- package/chunk-FUUUWWNE.js +1 -0
- package/{chunk-MRIW4627.js → chunk-FVGNCLOK.js} +1 -1
- package/{chunk-Z6MHGIMX.js → chunk-G7M65KLU.js} +1 -1
- package/chunk-GQGDL2PY.js +1 -0
- package/{chunk-R5Q5RJJY.js → chunk-HFBOGVOC.js} +1 -1
- package/{chunk-2U3KEP66.js → chunk-HOVGLXVU.js} +1 -1
- package/{chunk-J5HQ7T2U.js → chunk-HSYCN6JF.js} +1 -1
- package/{chunk-HTDATC3L.js → chunk-IEOE2XJ7.js} +1 -1
- package/{chunk-5KNGGA7C.js → chunk-ISLNIBSF.js} +1 -1
- package/chunk-IYF3XQOZ.js +1 -0
- package/{chunk-KJMR7HPA.js → chunk-J22MZQOG.js} +1 -1
- package/{chunk-OP3K37O3.js → chunk-JM6FKNTC.js} +1 -1
- package/{chunk-C4H5ZZHM.js → chunk-JVSOCU4S.js} +1 -1
- package/chunk-K5J6NUJE.js +1 -0
- package/chunk-K7BIGLIP.js +1 -0
- package/{chunk-WAKVBF4U.js → chunk-KG3OLRKU.js} +1 -1
- package/chunk-KIJKVEX5.js +1 -0
- package/{chunk-THSOUH4P.js → chunk-LPQEYBQJ.js} +1 -1
- package/{chunk-BS66RAKW.js → chunk-MDCWCEZ7.js} +1 -1
- package/{chunk-ZJHW6UKQ.js → chunk-MKCZKYSF.js} +1 -1
- package/chunk-MLJIFWTK.js +1 -0
- package/{chunk-OZY5YA4U.js → chunk-MTPMCC6U.js} +1 -1
- package/{chunk-KR6DPLHN.js → chunk-N5VERGYS.js} +1 -1
- package/chunk-NF2REGV3.js +1 -0
- package/{chunk-5BXTTSOP.js → chunk-NJPIJBIH.js} +1 -1
- package/{chunk-W6LNCRKG.js → chunk-NNU2L44G.js} +1 -1
- package/chunk-NZSJRTRD.js +1 -0
- package/{chunk-V2UNIKTM.js → chunk-OCKYXLYZ.js} +1 -1
- package/{chunk-JGVJQYWH.js → chunk-OQDKL2MG.js} +1 -1
- package/chunk-OS646RNF.js +1 -0
- package/{chunk-B7TARMUS.js → chunk-OVMM5CPY.js} +1 -1
- package/{chunk-2IJRY2H5.js → chunk-PF2A5MHZ.js} +1 -1
- package/chunk-QTJQPJZS.js +1 -0
- package/{chunk-SKZA3A5A.js → chunk-QV3XFWO2.js} +1 -1
- package/chunk-QVBTMKUV.js +277 -0
- package/{chunk-TGWHSWWX.js → chunk-QZUOIZEL.js} +1 -1
- package/{chunk-GCUU37JB.js → chunk-R46SVYN4.js} +1 -1
- package/{chunk-MQZKQQJ2.js → chunk-RAFKRDM2.js} +1 -1
- package/chunk-RECDKMMV.js +1 -0
- package/{chunk-45NYDNRM.js → chunk-RO474VQ2.js} +1 -1
- package/{chunk-KIYQBDPO.js → chunk-RUYPEXNQ.js} +1 -1
- package/{chunk-KONPP7HM.js → chunk-S2HC6Q76.js} +1 -1
- package/{chunk-6WHGKHCN.js → chunk-SFVYLTAA.js} +1 -1
- package/{chunk-OEFBXMXZ.js → chunk-SGZKLLJ3.js} +1 -1
- package/{chunk-3NCKB3ET.js → chunk-SPDFU2FM.js} +1 -1
- package/{chunk-ZZHR3572.js → chunk-T2VQD2QW.js} +1 -1
- package/{chunk-ZIDIPNEH.js → chunk-T6YHDD6J.js} +2 -2
- package/chunk-TFWPK5J7.js +1 -0
- package/{chunk-3374MMIU.js → chunk-THW7B5DI.js} +1 -1
- package/chunk-TPC2WBCZ.js +1 -0
- package/chunk-TTIQSVQF.js +1 -0
- package/{chunk-LIOWCE3C.js → chunk-U2ZZPRP6.js} +1 -1
- package/{chunk-57D7DG3Q.js → chunk-U7VHSRLR.js} +1 -1
- package/{chunk-KMQJC7EK.js → chunk-UEJR6B7A.js} +1 -1
- package/chunk-UG22TPCX.js +1 -0
- package/{chunk-LYSMF7CK.js → chunk-UUVSQAFK.js} +1 -1
- package/chunk-UYZEPPQA.js +1 -0
- package/chunk-VTWVZP43.js +1 -0
- package/chunk-VU37VDEH.js +1 -0
- package/{chunk-CXJDV4ZO.js → chunk-VWBZGFWI.js} +1 -1
- package/{chunk-UURD2F4Q.js → chunk-WDFE7CAE.js} +1 -1
- package/{chunk-F4BFKDR4.js → chunk-WNU7SPEQ.js} +1 -1
- package/chunk-WRDVJWTP.js +1 -0
- package/chunk-WRIMBWE3.js +1 -0
- package/chunk-WVLVOJU5.js +1 -0
- package/{chunk-ZO46YHUY.js → chunk-X2F5ZNTW.js} +1 -1
- package/{chunk-3S3IQNSQ.js → chunk-XMARGQLT.js} +1 -1
- package/{chunk-HLX24FYU.js → chunk-XOVBJ4EV.js} +1 -1
- package/{chunk-P55NMMMB.js → chunk-XRSMVQPC.js} +1 -1
- package/{chunk-DIT4MZDT.js → chunk-XTTKUB6Z.js} +1 -1
- package/chunk-XZGQHWLM.js +1 -0
- package/{chunk-DBTEBZLE.js → chunk-Y54QBXKN.js} +1 -1
- package/chunk-YBZNHUZR.js +112 -0
- package/{chunk-DHW6IGKB.js → chunk-YG2CG5KO.js} +6 -6
- package/{chunk-4TVWOK6B.js → chunk-YKC7ERDO.js} +1 -1
- package/{chunk-KPI4WLJD.js → chunk-YYMD4TUO.js} +1 -1
- package/{chunk-MY6ZWYSL.js → chunk-ZULPRZ24.js} +1 -1
- package/chunk-ZUVAI5XZ.js +1 -0
- package/index.html +2 -2
- package/{main-7RB7FA7W.js → main-SLOJLSEN.js} +4 -4
- package/package.json +1 -1
- package/{styles-55XC6NRQ.css → styles-QJI7RLZY.css} +1 -1
- package/chunk-3NKFD47E.js +0 -1
- package/chunk-3NQK565X.js +0 -1
- package/chunk-3NVMSAHU.js +0 -1
- package/chunk-4IUQ4YHH.js +0 -1
- package/chunk-4UKHYZF2.js +0 -1
- package/chunk-5WP7GW6P.js +0 -1
- package/chunk-6FKXFARK.js +0 -1
- package/chunk-7TJ6TXHJ.js +0 -1
- package/chunk-ATDQTCSX.js +0 -1
- package/chunk-BR3ARMX5.js +0 -1
- package/chunk-BXY2NVJG.js +0 -1
- package/chunk-C46G7Q7U.js +0 -1
- package/chunk-DMNOUNVA.js +0 -1
- package/chunk-DYTMAI7L.js +0 -1
- package/chunk-E66FZAUK.js +0 -1
- package/chunk-EN3A5A5C.js +0 -1
- package/chunk-ETP6ZSNL.js +0 -142
- package/chunk-FJTBJQGQ.js +0 -1
- package/chunk-HSJFWPLG.js +0 -1
- package/chunk-HU4J3ABZ.js +0 -1
- package/chunk-I2TZZXJL.js +0 -1
- package/chunk-K2FH5Z6F.js +0 -1
- package/chunk-M4LLZHKE.js +0 -1
- package/chunk-N557TZES.js +0 -1
- package/chunk-NBK5FR62.js +0 -7
- package/chunk-PRMMCAGR.js +0 -1
- package/chunk-QLLOE7QW.js +0 -1
- package/chunk-R2IYAZSE.js +0 -274
- package/chunk-RR2QREJI.js +0 -388
- package/chunk-TSXIHD3X.js +0 -1
- package/chunk-VZSCGFD2.js +0 -1
- package/chunk-WQ4FPUGZ.js +0 -1
- package/chunk-YHLRDTIS.js +0 -1
- package/chunk-YLD6FBJE.js +0 -1
- package/chunk-YNAV5JSB.js +0 -1
package/3rdpartylicenses.txt
CHANGED
|
@@ -1,30 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
--------------------------------------------------------------------------------
|
|
3
|
-
Package: @angular/animations
|
|
4
|
-
License: "MIT"
|
|
5
|
-
|
|
6
|
-
The MIT License
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in
|
|
18
|
-
all copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
-
THE SOFTWARE.
|
|
27
|
-
|
|
28
2
|
--------------------------------------------------------------------------------
|
|
29
3
|
Package: highcharts
|
|
30
4
|
License: "https://www.highcharts.com/license"
|
|
@@ -168,6 +142,46 @@ Package: @dealpos-npm/ng-dealpos-library
|
|
|
168
142
|
License: "ISC"
|
|
169
143
|
|
|
170
144
|
|
|
145
|
+
--------------------------------------------------------------------------------
|
|
146
|
+
Package: @angular/animations
|
|
147
|
+
License: "MIT"
|
|
148
|
+
|
|
149
|
+
The MIT License
|
|
150
|
+
|
|
151
|
+
Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
|
|
152
|
+
|
|
153
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
154
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
155
|
+
in the Software without restriction, including without limitation the rights
|
|
156
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
157
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
158
|
+
furnished to do so, subject to the following conditions:
|
|
159
|
+
|
|
160
|
+
The above copyright notice and this permission notice shall be included in
|
|
161
|
+
all copies or substantial portions of the Software.
|
|
162
|
+
|
|
163
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
164
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
165
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
166
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
167
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
168
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
169
|
+
THE SOFTWARE.
|
|
170
|
+
|
|
171
|
+
--------------------------------------------------------------------------------
|
|
172
|
+
Package: js-beautify
|
|
173
|
+
License: "MIT"
|
|
174
|
+
|
|
175
|
+
The MIT License (MIT)
|
|
176
|
+
|
|
177
|
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
|
178
|
+
|
|
179
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
180
|
+
|
|
181
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
182
|
+
|
|
183
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
184
|
+
|
|
171
185
|
--------------------------------------------------------------------------------
|
|
172
186
|
Package: fast-diff
|
|
173
187
|
License: "Apache-2.0"
|
|
@@ -1219,16 +1233,6 @@ Exhibit B - “Incompatible With Secondary Licenses” Notice
|
|
|
1219
1233
|
the Mozilla Public License, v. 2.0.
|
|
1220
1234
|
|
|
1221
1235
|
|
|
1222
|
-
--------------------------------------------------------------------------------
|
|
1223
|
-
Package: @maskito/core
|
|
1224
|
-
License: "Apache-2.0"
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
--------------------------------------------------------------------------------
|
|
1228
|
-
Package: @maskito/kit
|
|
1229
|
-
License: "Apache-2.0"
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
1236
|
--------------------------------------------------------------------------------
|
|
1233
1237
|
Package: uuid
|
|
1234
1238
|
License: "MIT"
|
|
@@ -1243,6 +1247,16 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
1243
1247
|
|
|
1244
1248
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1245
1249
|
|
|
1250
|
+
--------------------------------------------------------------------------------
|
|
1251
|
+
Package: @maskito/core
|
|
1252
|
+
License: "Apache-2.0"
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
--------------------------------------------------------------------------------
|
|
1256
|
+
Package: @maskito/kit
|
|
1257
|
+
License: "Apache-2.0"
|
|
1258
|
+
|
|
1259
|
+
|
|
1246
1260
|
--------------------------------------------------------------------------------
|
|
1247
1261
|
Package: bootstrap
|
|
1248
1262
|
License: "MIT"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{a as Oe,b as je
|
|
1
|
+
import{a as Oe,b as je}from"./chunk-YBZNHUZR.js";import{a as Je,b as ze}from"./chunk-QVBTMKUV.js";import{a as Ue,b as He}from"./chunk-NNU2L44G.js";import{a as Ge}from"./chunk-HOVGLXVU.js";import{a as S}from"./chunk-SFVYLTAA.js";import{a as Ne}from"./chunk-XZGQHWLM.js";import"./chunk-OS646RNF.js";import"./chunk-5TAKHYWV.js";import{m as z}from"./chunk-SPDFU2FM.js";import"./chunk-IEOE2XJ7.js";import{b as Pe,g as Ve,h as Be,i as X}from"./chunk-5NZPHAOL.js";import"./chunk-Y54QBXKN.js";import{a as ke,b as Ie}from"./chunk-X2F5ZNTW.js";import"./chunk-ZULPRZ24.js";import"./chunk-BA72IEO2.js";import{a as Re}from"./chunk-TTIQSVQF.js";import{a as De,b as Ee}from"./chunk-OVMM5CPY.js";import"./chunk-UEJR6B7A.js";import"./chunk-YYMD4TUO.js";import"./chunk-R46SVYN4.js";import"./chunk-2LI4CEOF.js";import"./chunk-RAFKRDM2.js";import"./chunk-RUYPEXNQ.js";import{b as Me}from"./chunk-KG3OLRKU.js";import"./chunk-4D6KKSM5.js";import"./chunk-BEEH5PAA.js";import{h as v}from"./chunk-5FVLV36I.js";import"./chunk-MTPMCC6U.js";import{a as k,b as I}from"./chunk-RO474VQ2.js";import"./chunk-JVSOCU4S.js";import"./chunk-E4FUCIJZ.js";import"./chunk-3BPX4XM7.js";import{H as M,I as Q,y as K,z as E}from"./chunk-U2ZZPRP6.js";import"./chunk-7C7GSAC3.js";import{Ta as D,b as T,c as pe,e as A,f as U,j as we,n as Te,o as Ae,p as H,q as W,v as $,x as L,y as q}from"./chunk-OQDKL2MG.js";import{b as Se}from"./chunk-7NZRUZLK.js";import{a as Fe}from"./chunk-WDFE7CAE.js";import{a as ye}from"./chunk-DOSAQI5P.js";import"./chunk-MKCZKYSF.js";import"./chunk-WNU7SPEQ.js";import{i as be,r as ve,t as J}from"./chunk-ISLNIBSF.js";import"./chunk-CJPLD6EO.js";import{Ab as _,Ac as N,Bc as G,Cc as O,I as fe,Ic as j,Jc as ae,Kc as le,Mb as y,Nb as F,Ob as Ce,Pb as ge,Qb as oe,Rb as ie,Sb as h,Sc as ce,Tb as i,Tc as me,U as he,Ub as r,V,Vb as C,Wc as d,_ as _e,_c as se,ac as g,da as p,db as s,e as de,fc as x,gc as l,ka as u,la as f,nb as ne,s as ue,tc as re,ub as b,vc as a,wa as B,wc as xe,xc as w}from"./chunk-T6YHDD6J.js";import{a as R,b as P}from"./chunk-PRARYYF3.js";var it=()=>({height:"cacl(100vh - 200px)"}),rt=()=>({height:"calc(100vh - 250px)"});function at(t,c){if(t&1){let e=g();i(0,"p-button",6),x("onClick",function(){u(e);let o=l(2);return f(o.submitForm())}),r()}}function lt(t,c){if(t&1&&(i(0,"div"),y(1,at,1,0,"p-button",5),r()),t&2){let e=l();s(),F(e.roleService.permissions().accountingSetup.create?1:-1)}}function ct(t,c){t&1&&(i(0,"div",18)(1,"h3",19),a(2,"Date"),r(),C(3,"p-datepicker",20),r())}function mt(t,c){if(t&1&&(i(0,"tr",10)(1,"td",27),a(2),r(),i(3,"td"),C(4,"input",28),r(),i(5,"td"),C(6,"input",29),r()()),t&2){let e,n=c.$implicit,o=c.$index,m=l(4);h("formGroupName",o),s(2),w(" ",(e=m.asFormGroup(n).get("accountName"))==null?null:e.value," ")}}function st(t,c){if(t&1&&(i(0,"div",10)(1,"h4",21),a(2),r(),i(3,"div",22)(4,"table",23)(5,"thead",24)(6,"tr")(7,"th",25),a(8,"Account Name"),r(),i(9,"th",26),a(10,"Debit"),r(),i(11,"th",26),a(12,"Credit"),r()()(),i(13,"tbody"),oe(14,mt,7,2,"tr",10,ge),r()()()()),t&2){let e=c.$implicit,n=c.$index,o=l(3);h("formGroupName",n),s(2),w(" ",e.get("name").value," "),s(12),ie(o.getItemsArray(o.asFormGroup(e)).controls)}}function pt(t,c){if(t&1&&(i(0,"p-panel",8),_(1,ct,4,0,"ng-template",null,2,d),C(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",9),oe(6,st,16,2,"div",10,Ce),r()(),i(8,"div",11)(9,"table",12)(10,"tr")(11,"td",13)(12,"p",14),a(13," Total: "),r()(),i(14,"td",15)(15,"p",16),a(16),ce(17,"number"),r()(),i(18,"td",17)(19,"p",16),a(20),ce(21,"number"),r()()()()()()),t&2){let e=l(2);re(ae(11,it)),h("formGroup",e.formGroups),s(4),re(ae(12,rt)),s(2),ie(e.formsArray.controls),s(10),w(" ",me(17,7,e.subtotalDebit)," "),s(4),w(" ",me(21,9,e.subtotalCredit)," ")}}function dt(t,c){if(t&1&&y(0,pt,22,13,"p-panel",7),t&2){let e=l();F(e.formGroups?0:-1)}}var Le=(()=>{class t{constructor(){this.destroy$=new de,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=p($),this.accSetupService=p(S),this.dayjsService=p(Ne),this.date=new Date,this.routes=p(Se),this.roleService=p(z)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(fe(300),he(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 n=e.map(o=>this.createItemGroup(o));return this.fb.array(n)}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(ue(e=>e.data),Re("response"),V(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(o=>o.items&&o.items.length>0).forEach(o=>{this.formsArray.push(this.createFormGroup(o))})})).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(n=>{let o=this.getItemsArray(n),m=o.controls.reduce((Z,ee)=>{let te=ee.get("debitAmount").value||0;return Z+te},0),tt=o.controls.reduce((Z,ee)=>{let te=ee.get("creditAmount").value||0;return Z+te},0);this.subtotalDebit+=m,this.subtotalCredit+=tt})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((n,[o,m])=>(o==="date"?n[o]=m instanceof Date?this.dayjsService.format(m):m:o==="forms"?n.form=m:n[o]=m,n),{});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(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-acc-opening-balance-form"]],features:[j([D])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit"],["label","Submit",3,"onClick"],[3,"formGroup","style"],[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"],["dateFormat","dd M yy","fluid","","formControlName","date"],[1,"fs-4"],["formArrayName","items"],[1,"table"],[1,"table-secondary"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],[1,"fs-3","text-dark"],["appMaskNumber","","formControlName","debitAmount",1,"fs-3","form-control","text-dark"],["appMaskNumber","","formControlName","creditAmount",1,"fs-3","form-control","text-dark"]],template:function(n,o){n&1&&(i(0,"app-main-panel",3),_(1,lt,2,1,"ng-template",null,0,d)(3,dt,1,1,"ng-template",null,1,d),r(),C(5,"p-toast",4)),n&2&&h("scrollable",!0)},dependencies:[v,Me,J,Ie,ke,X,Ee,De,L,T,A,U,E,Je,Q,M,I,k,Ge,q,W,H,Te,Ae,He,Ue,ve],styles:["[_nghost-%COMP%]{display:block} .table thead tr th{border:none}"],changeDetection:0})}}return t})();var qe=t=>({"ng-invalid ng-dirty":t});function ft(t,c){if(t&1){let e=g();i(0,"p-button",4),x("onClick",function(){u(e);let o=l();return f(o.verifyCredentials())}),a(1,"Verify"),r(),i(2,"p-button",4),x("onClick",function(){u(e);let o=l();return f(o.saveCredentials())}),a(3,"Update"),r()}}function ht(t,c){t&1&&(i(0,"div",12)(1,"h3",13),a(2,"Account"),r(),i(3,"small",14),a(4,"Configure Client ID and Client Secret"),r()())}function _t(t,c){if(t&1&&(i(0,"div",5)(1,"p-panel"),_(2,ht,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),a(8,"Client ID"),r(),C(9,"input",10),r()(),i(10,"div",7)(11,"div",8)(12,"label",9),a(13,"Client Secret"),r(),C(14,"input",11),r()()()()()),t&2){let e=l();s(4),h("formGroup",e.credentialForm),s(5),h("ngClass",le(3,qe,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),s(5),h("ngClass",le(5,qe,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var Ke=(()=>{class t{constructor(e,n){this.fb=e,this.messageService=n,this.setupService=p(S)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(V(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[pe.required]],clientSecret:["",[pe.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:n=>{console.log("Verify result:",n),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:n=>{console.error("Verify failed:",n),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(n){return new(n||t)(ne($),ne(D))}}static{this.\u0275cmp=b({type:t,selectors:[["app-api-credential"]],features:[j([D])],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(n,o){n&1&&(i(0,"app-main-panel",3),_(1,ft,4,0,"ng-template",null,0,d)(3,_t,15,7,"ng-template",null,1,d),r())},dependencies:[J,be,q,T,A,U,W,H,E,K,I,k,v,Q,M,ze],encapsulation:2})}}return t})();function Ct(t,c){if(t&1){let e=g();i(0,"button",5),x("click",function(){u(e);let o=l(2);return f(o.onFormatJournal())}),a(1," Format "),r()}}function gt(t,c){if(t&1&&y(0,Ct,2,0,"button",4),t&2){let e=l();F(e.roleService.permissions().accountingSetup.delete?0:-1)}}function xt(t,c){t&1&&(i(0,"div",13)(1,"div",14)(2,"h4",15),a(3,"Journal Configuration"),r(),i(4,"small",16),a(5," Enter your account information to format journal entries "),r()()())}function bt(t,c){if(t&1){let e=g();i(0,"div",6)(1,"p-panel"),_(2,xt,6,0,"ng-template",null,2,d),i(4,"div",7)(5,"div",8)(6,"p-floatlabel",9)(7,"input",10),O("ngModelChange",function(o){u(e);let m=l();return G(m.subdomain,o)||(m.subdomain=o),f(o)}),r(),i(8,"label",11),a(9,"Subdomain"),r()(),i(10,"small",12),a(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),r()()()()()}if(t&2){let e=l();s(7),N("ngModel",e.subdomain)}}var Qe=(()=>{class t{constructor(){this.setupService=p(S),this.subdomain=B(""),this.toastrService=p(ye),this.roleService=p(z)}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(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded"],[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(n,o){n&1&&(i(0,"app-main-panel",3),_(1,gt,1,1,"ng-template",null,0,d)(3,bt,12,1,"ng-template",null,1,d),r())},dependencies:[L,T,A,we,E,K,v,I,k,je,Oe],encapsulation:2})}}return t})();var Xe=()=>p(S).fetchOpeningBalanceFormConfiguration();var Ye=(()=>{class t{constructor(){this._httpService=p(Fe)}flushCache(e){e.forEach(n=>{this.flushCacheByEndPoint(n.endPoint)})}flushCacheByEndPoint(e){this._httpService.delete("","/api/FlushCache"+e).subscribe(()=>{console.log(`Cache flushed for endpoint: ${e}`)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ze=[{endPoint:"/AccessToken",label:"Access Token",description:"Remove token pos in Books",checked:!1},{endPoint:"/Outlet",label:"Outlets",description:"Remove cached for update outlets",checked:!1},{endPoint:"/Payment",label:"Payment Method",description:"Remove cached for payment method",checked:!1},{endPoint:"/Tax",label:"Tax Type",description:"Remove cached for tax type",checked:!1},{endPoint:"/WriteOff",label:"Write Off",description:"Remove cached for write off",checked:!1}];function vt(t,c){if(t&1){let e=g();i(0,"div",5)(1,"p-button",6),x("onClick",function(){u(e);let o=l(2);return f(o.onFlushCached())}),r()()}}function St(t,c){if(t&1&&y(0,vt,2,0,"div",5),t&2){let e=l();F(e.isAnyCacheSelected?0:-1)}}function yt(t,c){t&1&&(i(0,"tr")(1,"th",8),C(2,"p-tableHeaderCheckbox"),r(),i(3,"th"),a(4,"Cache"),r(),i(5,"th"),a(6,"Description"),r()())}function Ft(t,c){if(t&1&&(i(0,"tr")(1,"td"),C(2,"p-tableCheckbox",9),r(),i(3,"td"),a(4),r(),i(5,"td"),a(6),r()()),t&2){let e=c.$implicit;s(2),h("value",e),s(2),w(" ",e.label," "),s(2),xe(e.description)}}function wt(t,c){if(t&1){let e=g();i(0,"p-table",7),x("onRowSelect",function(o){u(e);let m=l();return f(m.onRowSelect(o))})("onRowUnselect",function(o){u(e);let m=l();return f(m.onRowUnselect(o))})("onHeaderCheckboxToggle",function(o){u(e);let m=l();return f(m.onHeaderCheckboxToggle(o))}),O("selectionChange",function(o){u(e);let m=l();return G(m.selectedRows,o)||(m.selectedRows=o),f(o)}),_(1,yt,7,0,"ng-template",null,2,d)(3,Ft,7,3,"ng-template",null,3,d),r()}if(t&2){let e=l();h("value",e.cachedData)("totalRecords",e.cachedData.length)("lazy",!0)("rows",e.params().pageSize)("scrollable",!0),N("selection",e.selectedRows)}}var et=(()=>{class t{constructor(){this.flushCachedService=p(Ye),this.cachedData=Ze,this.selectedRows=[],this.params=B({pageNumber:1,pageSize:100}),this.first=se(()=>(this.params().pageNumber-1)*this.params().pageSize+1),this.end=se(()=>Math.min(this.params().pageNumber*this.params().pageSize,this.cachedData.length||100))}onRowSelect(e){if(Array.isArray(e.data))return;let n=e.data;n?.endPoint&&this.updateCheckedRows([n.endPoint],!0)}updateCheckedRows(e,n){this.cachedData=this.cachedData.map(o=>e.includes(o.endPoint)?P(R({},o),{checked:n}):o),this.selectedRows=this.cachedData.filter(o=>o.checked)}onRowUnselect(e){if(Array.isArray(e.data))return;let n=e.data;n?.endPoint&&this.updateCheckedRows([n.endPoint],!1)}onHeaderCheckboxToggle(e){this.cachedData=this.cachedData.map(n=>P(R({},n),{checked:e.checked})),this.selectedRows=e.checked?[...this.cachedData]:[]}onFlushCached(){let e=this.cachedData.filter(n=>n.checked);this.flushCachedService.flushCache(e),this.cachedData=this.cachedData.map(n=>P(R({},n),{checked:!1})),this.selectedRows=[]}get isAnyCacheSelected(){return this.cachedData.some(e=>e.checked)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-flush-cached"]],decls:5,vars:2,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Flush Cache",3,"overflowScroll","showCancelButton"],[1,"d-flex","gap-2"],["label","Flush Cache",3,"onClick"],["dataKey","endPoint","selectionMode","multiple","styleClass","d-flex flex-column justify-content-between h-100",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","selectionChange","value","totalRecords","lazy","rows","scrollable","selection"],[2,"width","1rem"],[3,"value"]],template:function(n,o){n&1&&(i(0,"app-main-panel",4),_(1,St,1,1,"ng-template",null,0,d)(3,wt,5,6,"ng-template",null,1,d),r()),n&2&&h("overflowScroll",!0)("showCancelButton",!1)},dependencies:[v,X,Pe,Ve,Be,M],encapsulation:2})}}return t})();var Kn=[{path:"",redirectTo:"timezone",pathMatch:"full"},{path:"",children:[{path:"timezone",loadComponent:()=>import("./chunk-R5Q5RJJY.js").then(t=>t.TimezoneComponent)},{path:"journal-tag",loadComponent:()=>import("./chunk-THSOUH4P.js").then(t=>t.JournalTagComponent)},{path:"journal-tag/info",loadComponent:()=>import("./chunk-MRIW4627.js").then(t=>t.JournalTagInfoComponent)},{path:"journal-tag/form",loadComponent:()=>import("./chunk-ZPEEG2MX.js").then(t=>t.JournalTagFormComponent)},{path:"journal-number",loadComponent:()=>import("./chunk-VZSCGFD2.js").then(t=>t.JournalNumberComponent)},{path:"advanced",loadComponent:()=>import("./chunk-TWDYXQSM.js").then(t=>t.AdvancedComponent)},{path:"opening-balance-form",component:Le,resolve:{data:Xe}},{path:"api-crendetial",component:Ke},{path:"flush-cached",component:et},{path:"format-journal",component:Qe},{path:"closing-entries",loadComponent:()=>import("./chunk-P55NMMMB.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-3NVMSAHU.js").then(t=>t.ClosingFormComponent)}]}];export{Kn as ACCOUNTING_SETUP_ROUTES};
|
|
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"],["dateFormat","dd M yy","fluid","","formControlName","date"],[1,"fs-4"],["formArrayName","items"],[1,"table"],[1,"table-secondary"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],[1,"fs-3","text-dark"],["appMaskNumber","","formControlName","debitAmount",1,"fs-3","form-control","text-dark"],["appMaskNumber","","formControlName","creditAmount",1,"fs-3","form-control","text-dark"]],template:function(n,o){n&1&&(i(0,"app-main-panel",3),_(1,lt,2,1,"ng-template",null,0,d)(3,dt,1,1,"ng-template",null,1,d),r(),C(5,"p-toast",4)),n&2&&h("scrollable",!0)},dependencies:[v,Me,J,Ie,ke,X,Ee,De,L,T,A,U,E,Je,Q,M,I,k,Ge,q,W,H,Te,Ae,He,Ue,ve],styles:["[_nghost-%COMP%]{display:block} .table thead tr th{border:none}"],changeDetection:0})}}return t})();var qe=t=>({"ng-invalid ng-dirty":t});function ft(t,c){if(t&1){let e=g();i(0,"p-button",4),x("onClick",function(){u(e);let o=l();return f(o.verifyCredentials())}),a(1,"Verify"),r(),i(2,"p-button",4),x("onClick",function(){u(e);let o=l();return f(o.saveCredentials())}),a(3,"Update"),r()}}function ht(t,c){t&1&&(i(0,"div",12)(1,"h3",13),a(2,"Account"),r(),i(3,"small",14),a(4,"Configure Client ID and Client Secret"),r()())}function _t(t,c){if(t&1&&(i(0,"div",5)(1,"p-panel"),_(2,ht,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),a(8,"Client ID"),r(),C(9,"input",10),r()(),i(10,"div",7)(11,"div",8)(12,"label",9),a(13,"Client Secret"),r(),C(14,"input",11),r()()()()()),t&2){let e=l();s(4),h("formGroup",e.credentialForm),s(5),h("ngClass",le(3,qe,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),s(5),h("ngClass",le(5,qe,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var Ke=(()=>{class t{constructor(e,n){this.fb=e,this.messageService=n,this.setupService=p(S)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(V(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[pe.required]],clientSecret:["",[pe.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:n=>{console.log("Verify result:",n),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:n=>{console.error("Verify failed:",n),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(n){return new(n||t)(ne($),ne(D))}}static{this.\u0275cmp=b({type:t,selectors:[["app-api-credential"]],features:[j([D])],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(n,o){n&1&&(i(0,"app-main-panel",3),_(1,ft,4,0,"ng-template",null,0,d)(3,_t,15,7,"ng-template",null,1,d),r())},dependencies:[J,be,q,T,A,U,W,H,E,K,I,k,v,Q,M,ze],encapsulation:2})}}return t})();function Ct(t,c){if(t&1){let e=g();i(0,"button",5),x("click",function(){u(e);let o=l(2);return f(o.onFormatJournal())}),a(1," Format "),r()}}function gt(t,c){if(t&1&&y(0,Ct,2,0,"button",4),t&2){let e=l();F(e.roleService.permissions().accountingSetup.delete?0:-1)}}function xt(t,c){t&1&&(i(0,"div",13)(1,"div",14)(2,"h4",15),a(3,"Journal Configuration"),r(),i(4,"small",16),a(5," Enter your account information to format journal entries "),r()()())}function bt(t,c){if(t&1){let e=g();i(0,"div",6)(1,"p-panel"),_(2,xt,6,0,"ng-template",null,2,d),i(4,"div",7)(5,"div",8)(6,"p-floatlabel",9)(7,"input",10),O("ngModelChange",function(o){u(e);let m=l();return G(m.subdomain,o)||(m.subdomain=o),f(o)}),r(),i(8,"label",11),a(9,"Subdomain"),r()(),i(10,"small",12),a(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),r()()()()()}if(t&2){let e=l();s(7),N("ngModel",e.subdomain)}}var Qe=(()=>{class t{constructor(){this.setupService=p(S),this.subdomain=B(""),this.toastrService=p(ye),this.roleService=p(z)}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(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded"],[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(n,o){n&1&&(i(0,"app-main-panel",3),_(1,gt,1,1,"ng-template",null,0,d)(3,bt,12,1,"ng-template",null,1,d),r())},dependencies:[L,T,A,we,E,K,v,I,k,je,Oe],encapsulation:2})}}return t})();var Xe=()=>p(S).fetchOpeningBalanceFormConfiguration();var Ye=(()=>{class t{constructor(){this._httpService=p(Fe)}flushCache(e){e.forEach(n=>{this.flushCacheByEndPoint(n.endPoint)})}flushCacheByEndPoint(e){this._httpService.delete("","/api/FlushCache"+e).subscribe(()=>{console.log(`Cache flushed for endpoint: ${e}`)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ze=[{endPoint:"/AccessToken",label:"Access Token",description:"Remove token pos in Books",checked:!1},{endPoint:"/Outlet",label:"Outlets",description:"Remove cached for update outlets",checked:!1},{endPoint:"/Payment",label:"Payment Method",description:"Remove cached for payment method",checked:!1},{endPoint:"/Tax",label:"Tax Type",description:"Remove cached for tax type",checked:!1},{endPoint:"/WriteOff",label:"Write Off",description:"Remove cached for write off",checked:!1}];function vt(t,c){if(t&1){let e=g();i(0,"div",5)(1,"p-button",6),x("onClick",function(){u(e);let o=l(2);return f(o.onFlushCached())}),r()()}}function St(t,c){if(t&1&&y(0,vt,2,0,"div",5),t&2){let e=l();F(e.isAnyCacheSelected?0:-1)}}function yt(t,c){t&1&&(i(0,"tr")(1,"th",8),C(2,"p-tableHeaderCheckbox"),r(),i(3,"th"),a(4,"Cache"),r(),i(5,"th"),a(6,"Description"),r()())}function Ft(t,c){if(t&1&&(i(0,"tr")(1,"td"),C(2,"p-tableCheckbox",9),r(),i(3,"td"),a(4),r(),i(5,"td"),a(6),r()()),t&2){let e=c.$implicit;s(2),h("value",e),s(2),w(" ",e.label," "),s(2),xe(e.description)}}function wt(t,c){if(t&1){let e=g();i(0,"p-table",7),x("onRowSelect",function(o){u(e);let m=l();return f(m.onRowSelect(o))})("onRowUnselect",function(o){u(e);let m=l();return f(m.onRowUnselect(o))})("onHeaderCheckboxToggle",function(o){u(e);let m=l();return f(m.onHeaderCheckboxToggle(o))}),O("selectionChange",function(o){u(e);let m=l();return G(m.selectedRows,o)||(m.selectedRows=o),f(o)}),_(1,yt,7,0,"ng-template",null,2,d)(3,Ft,7,3,"ng-template",null,3,d),r()}if(t&2){let e=l();h("value",e.cachedData)("totalRecords",e.cachedData.length)("lazy",!0)("rows",e.params().pageSize)("scrollable",!0),N("selection",e.selectedRows)}}var et=(()=>{class t{constructor(){this.flushCachedService=p(Ye),this.cachedData=Ze,this.selectedRows=[],this.params=B({pageNumber:1,pageSize:100}),this.first=se(()=>(this.params().pageNumber-1)*this.params().pageSize+1),this.end=se(()=>Math.min(this.params().pageNumber*this.params().pageSize,this.cachedData.length||100))}onRowSelect(e){if(Array.isArray(e.data))return;let n=e.data;n?.endPoint&&this.updateCheckedRows([n.endPoint],!0)}updateCheckedRows(e,n){this.cachedData=this.cachedData.map(o=>e.includes(o.endPoint)?P(R({},o),{checked:n}):o),this.selectedRows=this.cachedData.filter(o=>o.checked)}onRowUnselect(e){if(Array.isArray(e.data))return;let n=e.data;n?.endPoint&&this.updateCheckedRows([n.endPoint],!1)}onHeaderCheckboxToggle(e){this.cachedData=this.cachedData.map(n=>P(R({},n),{checked:e.checked})),this.selectedRows=e.checked?[...this.cachedData]:[]}onFlushCached(){let e=this.cachedData.filter(n=>n.checked);this.flushCachedService.flushCache(e),this.cachedData=this.cachedData.map(n=>P(R({},n),{checked:!1})),this.selectedRows=[]}get isAnyCacheSelected(){return this.cachedData.some(e=>e.checked)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-flush-cached"]],decls:5,vars:2,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Flush Cache",3,"overflowScroll","showCancelButton"],[1,"d-flex","gap-2"],["label","Flush Cache",3,"onClick"],["dataKey","endPoint","selectionMode","multiple","styleClass","d-flex flex-column justify-content-between h-100",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","selectionChange","value","totalRecords","lazy","rows","scrollable","selection"],[2,"width","1rem"],[3,"value"]],template:function(n,o){n&1&&(i(0,"app-main-panel",4),_(1,St,1,1,"ng-template",null,0,d)(3,wt,5,6,"ng-template",null,1,d),r()),n&2&&h("overflowScroll",!0)("showCancelButton",!1)},dependencies:[v,X,Pe,Ve,Be,M],encapsulation:2})}}return t})();var Kn=[{path:"",redirectTo:"timezone",pathMatch:"full"},{path:"",children:[{path:"timezone",loadComponent:()=>import("./chunk-HFBOGVOC.js").then(t=>t.TimezoneComponent)},{path:"journal-tag",loadComponent:()=>import("./chunk-LPQEYBQJ.js").then(t=>t.JournalTagComponent)},{path:"journal-tag/info",loadComponent:()=>import("./chunk-FVGNCLOK.js").then(t=>t.JournalTagInfoComponent)},{path:"journal-tag/form",loadComponent:()=>import("./chunk-4PQV7T7O.js").then(t=>t.JournalTagFormComponent)},{path:"journal-number",loadComponent:()=>import("./chunk-5GRB6DBD.js").then(t=>t.JournalNumberComponent)},{path:"advanced",loadComponent:()=>import("./chunk-3YEWFLAB.js").then(t=>t.AdvancedComponent)},{path:"opening-balance-form",component:Le,resolve:{data:Xe}},{path:"api-crendetial",component:Ke},{path:"flush-cached",component:et},{path:"format-journal",component:Qe},{path:"closing-entries",loadComponent:()=>import("./chunk-XRSMVQPC.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-VU37VDEH.js").then(t=>t.ClosingFormComponent)}]}];export{Kn as ACCOUNTING_SETUP_ROUTES};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as T,b as K}from"./chunk-3MU7BZQU.js";import"./chunk-XZGQHWLM.js";import"./chunk-OS646RNF.js";import{m as R}from"./chunk-SPDFU2FM.js";import"./chunk-IEOE2XJ7.js";import{a as O,b as D}from"./chunk-OVMM5CPY.js";import"./chunk-KG3OLRKU.js";import{h as J}from"./chunk-5FVLV36I.js";import"./chunk-MTPMCC6U.js";import{a as H,b as L}from"./chunk-RO474VQ2.js";import"./chunk-E4FUCIJZ.js";import"./chunk-3BPX4XM7.js";import{H as N,I as G,J as q,K as z}from"./chunk-U2ZZPRP6.js";import"./chunk-7C7GSAC3.js";import"./chunk-OQDKL2MG.js";import"./chunk-WDFE7CAE.js";import{a as j}from"./chunk-DOSAQI5P.js";import"./chunk-MKCZKYSF.js";import"./chunk-WNU7SPEQ.js";import{o as I,t as V}from"./chunk-ISLNIBSF.js";import"./chunk-CJPLD6EO.js";import{Ab as F,Ic as E,Jc as v,Mb as C,Nb as y,R as M,Sb as c,Sc as m,T as k,Tb as n,Tc as l,Ub as o,V as A,Vb as u,Wc as S,ac as h,da as s,db as r,f as b,fc as x,gc as a,ka as g,la as _,ma as B,na as w,s as f,tc as P,ub as $}from"./chunk-T6YHDD6J.js";import"./chunk-PRARYYF3.js";var Q=()=>({height:"calc(100vh - 100px)"});function U(t,d){if(t&1){let e=h();n(0,"p-button",6),x("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function W(t,d){if(t&1){let e=h();n(0,"p-button",7),m(1,"async"),m(2,"async"),x("onClick",function(){g(e);let p=a(2);return _(p.migratePaymentAccount())}),o()}if(t&2){let e=a(2);c("disabled",l(1,2,e.countInBooks$)!==0)("pTooltip",l(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function X(t,d){if(t&1&&(n(0,"div",3),C(1,U,1,0,"p-button",4),C(2,W,3,6,"p-button",5),o()),t&2){let e=a();r(),y(e.roleService.permissions().migrate.delete?1:-1),r(),y(e.roleService.permissions().migrate.create?2:-1)}}function Y(t,d){if(t&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),m(4,"async"),B(),n(5,"svg",10),u(6,"path",11),o(),w(),u(7,"app-migration-cards",12),m(8,"async"),o()()()),t&2){let e=a();P(v(12,Q)),r(),P(v(13,Q)),r(2),c("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),c("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ye=(()=>{class t{constructor(){this.migrateService=s(T),this.toastr=s(j),this.refresh$=new b(void 0),this.pageTitle="Payment Account",this.roleService=s(R)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getPaymentMethodAccountCount()),A(i=>console.log("API response:",i)),M(1));this.countInPOS$=e.pipe(f(i=>Number(i.pos))),this.countInBooks$=e.pipe(f(i=>Number(i.books)))}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatPaymentAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=$({type:t,selectors:[["app-payment-account"]],features:[E([T])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),F(1,X,3,2,"ng-template",null,0,S)(3,Y,9,14,"ng-template",null,1,S),o()),i&2&&c("pageTitle",p.pageTitle)},dependencies:[J,V,D,O,L,H,z,q,K,G,N,I],encapsulation:2})}}return t})();export{ye as PaymentAccountComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as be,b as D,c as M,d as s,e as l,j as Se,l as ye,p as ne}from"./chunk-
|
|
1
|
+
import{a as be,b as D,c as M,d as s,e as l,j as Se,l as ye,p as ne}from"./chunk-U2ZZPRP6.js";import{G as ge,Xa as te,Ya as _,ab as N,la as he}from"./chunk-OQDKL2MG.js";import{n as ee,t as y}from"./chunk-ISLNIBSF.js";import{$ as pe,$b as X,Ab as U,Da as a,Ic as S,Jb as F,Mb as k,Mc as Z,Nb as P,Sb as f,Tb as w,Ub as Q,Vb as L,Z as C,_ as T,_c as p,ac as ue,ba as v,bd as j,da as o,db as c,dd as q,ed as W,fc as fe,fd as $,gc as H,hc as x,ic as I,jc as Y,ka as ae,la as de,lc as V,mc as O,nc as R,pc as z,ub as g,uc as d,vb as le,vc as me,wa as ce,wc as ve,yb as h,za as K,zb as b}from"./chunk-T6YHDD6J.js";import{a as B}from"./chunk-PRARYYF3.js";var De=`
|
|
2
2
|
.p-steplist {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as de}from"./chunk-
|
|
1
|
+
import{a as de}from"./chunk-RUYPEXNQ.js";import{a as re}from"./chunk-JVSOCU4S.js";import{a as le}from"./chunk-E4FUCIJZ.js";import{b as ce,d as k,e as ae}from"./chunk-U2ZZPRP6.js";import{E as ne,F as te,Xa as oe,Ya as C,a as Z,ab as ie,d as ee}from"./chunk-OQDKL2MG.js";import{i as U,l as J,n as W,t as Y}from"./chunk-ISLNIBSF.js";import{$ as z,Ab as b,Da as w,Ic as H,Jb as l,Mc as G,Sb as c,Tb as V,Ub as B,Vb as _,Z as S,Zb as M,_ as N,_b as T,_c as K,ac as L,ba as F,bd as E,da as x,db as d,fc as Q,gc as h,jc as j,ka as f,kc as R,la as m,lc as v,ld as u,ma as I,mc as y,md as X,sa as g,tc as q,ub as A,uc as s,vb as P,wa as D,yb as O,zb as $}from"./chunk-T6YHDD6J.js";var se=`
|
|
2
2
|
.p-checkbox {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as A}from"./chunk-
|
|
1
|
+
import{x as A}from"./chunk-ISLNIBSF.js";import{Aa as h,Cb as p,Ja as R,_ as y,_c as v,ba as N,da as g,qa as I,ta as C,wa as m,xb as T,za as K}from"./chunk-T6YHDD6J.js";import{a,b as l}from"./chunk-PRARYYF3.js";var ae=(()=>{class n{transform(e,o=50,r=!1,s="..."){if(!e||typeof e!="string")return"";if(e.length<=o)return e;let i=e.substring(0,o);if(r){let c=i.lastIndexOf(" ");c>0&&(i=i.substring(0,c))}return i+s}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275pipe=T({name:"truncate",type:n,pure:!0})}}return n})();var _=Symbol("DEEP_SIGNAL");function L(n){return new Proxy(n,{has(t,e){return!!this.get(t,e,void 0)},get(t,e){let o=h(t);return!Y(o)||!(e in o)?(p(t[e])&&t[e][_]&&delete t[e],t[e]):(p(t[e])||(Object.defineProperty(t,e,{value:v(()=>t()[e]),configurable:!0}),t[e][_]=!0),L(t[e]))}})}var G=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function Y(n){if(n===null||typeof n!="object"||Z(n))return!1;let t=Object.getPrototypeOf(n);if(t===Object.prototype)return!0;for(;t&&t!==Object.prototype;){if(G.includes(t.constructor))return!1;t=Object.getPrototypeOf(t)}return t===Object.prototype}function Z(n){return typeof n?.[Symbol.iterator]=="function"}var Q=new WeakMap,f=Symbol("STATE_SOURCE");function E(n,...t){let e=h(()=>w(n)),o=t.reduce((i,c)=>a(a({},i),typeof c=="function"?c(i):c),e),r=n[f],s=Reflect.ownKeys(n[f]);for(let i of Reflect.ownKeys(o))if(s.includes(i)){let c=i;e[c]!==o[c]&&r[c].set(o[c])}te(n)}function w(n){let t=n[f];return Reflect.ownKeys(n[f]).reduce((e,o)=>{let r=t[o]();return l(a({},e),{[o]:r})},{})}function ee(n){return Q.get(n[f])||[]}function te(n){let t=ee(n);for(let e of t){let o=h(()=>w(n));e(o)}}function U(...n){let t=[...n],e=typeof t[0]=="function"?{}:t.shift(),o=t;return(()=>{class s{constructor(){let c=o.reduce((S,H)=>H(S),ne()),{stateSignals:u,props:d,methods:D,hooks:J}=c,k=a(a(a({},u),d),D);this[f]=c[f];for(let S of Reflect.ownKeys(k))this[S]=k[S];let{onInit:$,onDestroy:O}=J;$&&$(),O&&g(I).onDestroy(O)}static \u0275fac=function(u){return new(u||s)};static \u0275prov=y({token:s,factory:s.\u0275fac,providedIn:e.providedIn||null})}return s})()}function ne(){return{[f]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function P(...n){let t=typeof n[0]=="function"?n:n.slice(1);return e=>t.reduce((o,r)=>r(o),e)}function V(n){return t=>{let e=n(a(a(a({[f]:t[f]},t.stateSignals),t.props),t.methods));return l(a({},t),{props:a(a({},t.props),e)})}}function oe(n){return V(t=>{let e=n(t);return Reflect.ownKeys(e).reduce((r,s)=>{let i=e[s];return l(a({},r),{[s]:p(i)?i:v(i)})},{})})}function z(n){return t=>{let e=a(a(a({[f]:t[f]},t.stateSignals),t.props),t.methods),o=typeof n=="function"?n(e):n,r=(s,i)=>i?()=>{s&&s(),i(e)}:s;return l(a({},t),{hooks:{onInit:r(t.hooks.onInit,o.onInit),onDestroy:r(t.hooks.onDestroy,o.onDestroy)}})}}function b(n){return t=>{let e=n(a(a(a({[f]:t[f]},t.stateSignals),t.props),t.methods));return l(a({},t),{methods:a(a({},t.methods),e)})}}function M(n){return t=>{let e=typeof n=="function"?n():n,o=Reflect.ownKeys(e),r=t[f],s={};for(let i of o)r[i]=m(e[i]),s[i]=L(r[i]);return l(a({},t),{stateSignals:a(a({},t.stateSignals),s)})}}var Ie=Symbol("DEVTOOLS_FEATURE");var re=new N("ReduxDevtoolsConfig"),ie=(()=>{class n{#e=m({});get stores(){return this.#e()}#n;#o=K(()=>{if(this.#n===void 0)throw new Error("no callback function defined");let e=this.#e(),o=Object.entries(e).reduce((r,[s,i])=>l(a({},r),{[s]:w(i)}),{});this.#n(o)});track(e,o){this.#e.update(r=>l(a({},r),{[e]:o}))}onChange(e){this.#n=e}removeStore(e){this.#e.update(o=>Object.entries(o).reduce((r,[s,i])=>(s!==e&&(r[s]=i),r),{}))}notifyRenamedStore(e){this.#e()[e]&&this.#e.update(o=>a({},o))}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),j=new Set,W={send:()=>{}},B=(()=>{class n{#e={};#n=A(g(R));#o=[];#r=a({name:"NgRx SignalStore"},g(re,{optional:!0}));#t={};#i=1;#s=g(C).runOutsideAngular(()=>this.#n&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect(this.#r):W);constructor(){this.#n}ngOnDestroy(){j.clear()}syncToDevTools(e){let o=Object.entries(e).reduce((i,[c,u])=>{let{options:d,name:D}=this.#e[c];return i[D]=d.map(u),i},{});this.#t=a(a({},this.#t),o);let r=Array.from(j),s=r.length?r.join(", "):"Store Update";j.clear(),this.#s.send({type:s},this.#t)}getNextId(){return String(this.#i++)}addStore(e,o,r,s){let i=o,c=Object.values(this.#e).map(d=>d.name);if(c.includes(i)&&!s.indexNames)throw new Error(`An instance of the store ${i} already exists. Enable automatic indexing via withDevTools('${i}', { indexNames: true }), or rename it upon instantiation.`);for(let d=1;c.includes(i);d++)i=`${o}-${d}`;this.#e[e]={name:i,options:s};let u=s.tracker;this.#o.includes(u)||this.#o.push(u),u.onChange(d=>this.syncToDevTools(d)),u.track(e,r)}removeStore(e){let o=this.#e[e].name;this.#e=Object.entries(this.#e).reduce((r,[s,i])=>(s!==e&&(r[s]=i),r),{}),this.#t=Object.entries(this.#t).reduce((r,[s,i])=>(s!==o&&(r[s]=i),r),{});for(let r of this.#o)r.removeStore(e)}renameStore(e,o){let r=this.#e[e];if(!r)return;let s=r.name;if(s===o)return;if(Object.entries(this.#e).filter(([c])=>c!==e).map(([,c])=>c.name).includes(o))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${s} to ${o}. ${o} is already assigned to another SignalStore instance.`);this.#e=Object.entries(this.#e).reduce((c,[u,d])=>(u===e?c[u]=l(a({},d),{name:o}):c[u]=d,c),{}),this.#t=Object.entries(this.#t).reduce((c,[u,d])=>(u!==s&&(c[u]=d),c),{}),this.#o.forEach(c=>c.notifyRenamedStore(e))}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275prov=y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),se="___renameDevtoolsName",x="___uniqueDevtoolsId";function q(n,...t){return P(b(()=>{let e=g(B),o=e.getNextId();return{[se]:r=>{e.renameStore(o,r)},[x]:()=>o}}),z(e=>{let o=g(B),r=String(e[x]());return{onInit(){let s=String(e[x]()),i={indexNames:!t.some(c=>c.indexNames===!1),map:t.find(c=>c.map)?.map??(c=>c),tracker:g(t.find(c=>c.tracker)?.tracker||ie)};o.addStore(s,n,e,i)},onDestroy(){o.removeStore(r)}}}))}var Ke=Symbol("SYNC_STATUS");var Ee=P(M({}));var ce={themeOptions:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",boxed:"boxed",colorTheme:"Blue_Theme",cardType:"shadow"}},$e=U({providedIn:"root"},M(ce),q("LayoutThemeStore"),b(n=>({updateSidebarType(){E(n,t=>{switch(t.themeOptions.sidebartype){case"full":return l(a({},t),{themeOptions:l(a({},t.themeOptions),{sidebartype:"mini-sidebar"})});case"mini-sidebar":return l(a({},t),{themeOptions:l(a({},t.themeOptions),{sidebartype:"full"})});default:return t}})}})));export{ae as a,E as b,U as c,oe as d,z as e,b as f,M as g,q as h,$e as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y,b as K}from"./chunk-3MU7BZQU.js";import"./chunk-XZGQHWLM.js";import"./chunk-OS646RNF.js";import{m as j}from"./chunk-SPDFU2FM.js";import"./chunk-IEOE2XJ7.js";import{a as R,b as D}from"./chunk-OVMM5CPY.js";import"./chunk-KG3OLRKU.js";import{h as J}from"./chunk-5FVLV36I.js";import"./chunk-MTPMCC6U.js";import{a as H,b as L}from"./chunk-RO474VQ2.js";import"./chunk-E4FUCIJZ.js";import"./chunk-3BPX4XM7.js";import{H as N,I as G,J as q,K as z}from"./chunk-U2ZZPRP6.js";import"./chunk-7C7GSAC3.js";import"./chunk-OQDKL2MG.js";import"./chunk-WDFE7CAE.js";import{a as V}from"./chunk-DOSAQI5P.js";import"./chunk-MKCZKYSF.js";import"./chunk-WNU7SPEQ.js";import{o as E,t as I}from"./chunk-ISLNIBSF.js";import"./chunk-CJPLD6EO.js";import{Ab as $,Ic as F,Jc as T,Mb as C,Nb as h,R as M,Sb as c,Sc as p,T as k,Tb as o,Tc as s,Ub as n,V as O,Vb as u,Wc as b,ac as x,da as m,db as r,f as A,fc as v,gc as a,ka as g,la as _,ma as B,na as P,s as f,tc as S,ub as w}from"./chunk-T6YHDD6J.js";import"./chunk-PRARYYF3.js";var Q=()=>({height:"calc(100vh - 100px)"});function U(e,d){if(e&1){let t=x();o(0,"p-button",6),v("onClick",function(){g(t);let l=a(2);return _(l.onFormat())}),n()}}function W(e,d){if(e&1){let t=x();o(0,"p-button",7),p(1,"async"),p(2,"async"),v("onClick",function(){g(t);let l=a(2);return _(l.onMigrateOutletAccount())}),n()}if(e&2){let t=a(2);c("disabled",s(1,2,t.countInBooks$)!==0)("pTooltip",s(2,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function X(e,d){if(e&1&&(o(0,"div",3),C(1,U,1,0,"p-button",4),C(2,W,3,6,"p-button",5),n()),e&2){let t=a();r(),h(t.roleService.permissions().migrate.delete?1:-1),r(),h(t.roleService.permissions().migrate.create?2:-1)}}function Y(e,d){if(e&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),p(4,"async"),B(),o(5,"svg",10),u(6,"path",11),n(),P(),u(7,"app-migration-cards",12),p(8,"async"),n()()()),e&2){let t=a();S(T(12,Q)),r(),S(T(13,Q)),r(2),c("migrationCount",s(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),r(4),c("migrationCount",s(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var ht=(()=>{class e{constructor(){this.migrateService=m(y),this.toastr=m(V),this.refresh$=new A(void 0),this.pageTitle="Outlet Account",this.roleService=m(j)}ngOnInit(){let t=this.refresh$.pipe(k(()=>this.migrateService.getOutletAccountCount()),O(i=>console.log("API response:",i)),M(1));this.countInPOS$=t.pipe(f(i=>Number(i.pos))),this.countInBooks$=t.pipe(f(i=>Number(i.books)))}onMigrateOutletAccount(){this.migrateService.migrateOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatOutletAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=w({type:e,selectors:[["app-outlet-account"]],features:[F([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,l){i&1&&(o(0,"app-main-panel",2),$(1,X,3,2,"ng-template",null,0,b)(3,Y,9,14,"ng-template",null,1,b),n()),i&2&&c("pageTitle",l.pageTitle)},dependencies:[J,I,G,N,D,R,L,H,z,q,K,E],encapsulation:2})}}return e})();export{ht as OutletAccountComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as E}from"./chunk-XZGQHWLM.js";import{b as y}from"./chunk-OVMM5CPY.js";import{a as T,b as j}from"./chunk-KG3OLRKU.js";import{b as P}from"./chunk-RO474VQ2.js";import{I as w}from"./chunk-U2ZZPRP6.js";import{a as b}from"./chunk-WDFE7CAE.js";import{C as _,r as O,t as A}from"./chunk-ISLNIBSF.js";import{Ab as C,Sc as M,Tb as i,Ub as r,Uc as S,Vb as x,Wc as a,_ as s,bd as p,da as g,db as c,gc as u,ub as h,vc as m,wc as v,xc as l}from"./chunk-T6YHDD6J.js";var H=(()=>{class t{constructor(){this.httpService=g(b),this.dayjs=g(E)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}getManualJournalCount(){return this.httpService.get(void 0,"api/migrate/accounting/journalheader-count",{})}getCOACount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountcount",{})}getCOAConfigurationCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountConfigcount",{})}getCOACategoryCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountCategorycount",{})}getOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/outletaccount-count",{})}getPaymentMethodAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/paymentmethodaccountcount",{})}getWriteOffOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/writeoffoutletaccountCount",{})}getTaxAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/taxcount",{})}getExpenseAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/expenseaccountcount",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(e){let n={From:e.From?this.dayjs.from(e.From).format():null,To:e.To?this.dayjs.from(e.To).format():null,PageNumber:e.PageNumber||1,PageSize:e.PageSize||50},o=new _;return Object.keys(n).forEach(f=>{o=o.append(f,n[f])}),this.httpService.get(void 0,"api/migrate/accounting/journalheader",{params:o})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatExpenseAccount(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-expenseaccount",{})}formatWriteOff(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-writeoff",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatOutletAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-outlet-account",{})}formatPaymentAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-paymentmethod",{})}formatTaxAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-tax",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}formatManualCOACategory(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-coag",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac})}}return t})();function D(t,d){t&1&&(i(0,"div",5)(1,"div",6),x(2,"i",7),r()())}function F(t,d){if(t&1&&(i(0,"div",8),m(1),M(2,"number"),r()),t&2){let e=u();c(),l(" ",S(2,1,e.migrationCount(),"1.0-0")," ")}}function I(t,d){if(t&1&&(i(0,"div",9),m(1),r()),t&2){let e=u();c(),l(" ",e.migrationTitle()," ")}}function N(t,d){if(t&1&&(i(0,"div",10)(1,"div",11),m(2),r()()),t&2){let e=u();c(2),v(e.migrationPlace())}}var q=(()=>{class t{constructor(){this.migrationTitle=p(),this.migrationCount=p(),this.migrationPlace=p()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"bigscale","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(n,o){n&1&&(i(0,"p-card",4),C(1,D,3,0,"ng-template",null,0,a)(3,F,3,4,"ng-template",null,1,a)(5,I,2,1,"ng-template",null,2,a)(7,N,3,1,"ng-template",null,3,a),r())},dependencies:[A,j,T,w,y,P,O],styles:["[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}[_nghost-%COMP%] .p-card{box-shadow:0 .25rem 1.25rem #0000001a!important;width:21.875rem!important;height:25rem!important}@media(max-width:85rem){[_nghost-%COMP%] .p-card{width:18.875rem!important;height:21rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:2rem!important;margin-top:1rem!important}}@media(min-width:85.001rem)and (max-width:97.999rem){[_nghost-%COMP%] .p-card{width:21rem!important;height:25rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}}@media(min-width:98rem){[_nghost-%COMP%] .p-card{width:25rem!important;height:28rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:5rem!important;margin-top:2rem!important}}"]})}}return t})();export{H as a,q as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Yb as n,ub as o}from"./chunk-
|
|
1
|
+
import{Yb as n,ub as o}from"./chunk-T6YHDD6J.js";import"./chunk-PRARYYF3.js";var c=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=o({type:t,selectors:[["app-timeout"]],decls:1,vars:0,consts:[["src","assets/images/background/timeout.svg","alt","timeout"]],template:function(e,s){e&1&&n(0,"img",0)},styles:["[_nghost-%COMP%]{display:block}img[_ngcontent-%COMP%]{height:100vh;width:100%}"],changeDetection:0})}}return t})();export{c as TimeoutComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-SFVYLTAA.js";import{a as J}from"./chunk-G7M65KLU.js";import"./chunk-Y54QBXKN.js";import{a as v}from"./chunk-TTIQSVQF.js";import{h as P}from"./chunk-5FVLV36I.js";import"./chunk-MTPMCC6U.js";import{a as V}from"./chunk-RO474VQ2.js";import"./chunk-JVSOCU4S.js";import"./chunk-E4FUCIJZ.js";import"./chunk-3BPX4XM7.js";import{H as O}from"./chunk-U2ZZPRP6.js";import"./chunk-7C7GSAC3.js";import{e as N,f as A,k as D,p as M,q as T,v as j,y as B}from"./chunk-OQDKL2MG.js";import"./chunk-WDFE7CAE.js";import"./chunk-DOSAQI5P.js";import"./chunk-MKCZKYSF.js";import"./chunk-WNU7SPEQ.js";import"./chunk-ISLNIBSF.js";import"./chunk-CJPLD6EO.js";import{Ab as f,Mb as y,Nb as E,Sb as w,Tb as n,Ub as t,V as _,Vb as i,Wc as p,ac as F,da as u,db as S,fc as G,gc as c,ka as x,la as C,ub as b,vc as r,wa as h}from"./chunk-T6YHDD6J.js";import{a as m,b as d}from"./chunk-PRARYYF3.js";function L(o,s){if(o&1){let e=F();n(0,"p-button",4),G("onClick",function(){x(e);let l=c();return C(l.onSubmit())}),t()}}function q(o,s){o&1&&(n(0,"div",6)(1,"div",7)(2,"h3",8),r(3,"Journal Generate"),t(),n(4,"p",9),r(5,"Configure generate transaction"),t()()())}function z(o,s){if(o&1&&(n(0,"form",5)(1,"div",10)(2,"div",11)(3,"div",10)(4,"div",7)(5,"div",10)(6,"div",12)(7,"span",13),r(8,"Outlet Delivery Journal"),t()(),n(9,"div",7),i(10,"p-toggleswitch",14),t(),i(11,"div",7),t()(),n(12,"div",7)(13,"div",10)(14,"div",12)(15,"span",13),r(16,"Payment Discount Journal On Payment"),t()(),n(17,"div",7),i(18,"p-toggle-switch",15),t()()()(),n(19,"div",10)(20,"div",7)(21,"div",10)(22,"div",12)(23,"span",13),r(24,"Note required on journal"),t()(),n(25,"div",7),i(26,"p-toggleswitch",16),t()()(),n(27,"div",7)(28,"div",10)(29,"div",12)(30,"span",13),r(31,"Trial balance footer visible"),t()(),n(32,"div",7),i(33,"p-toggle-switch",17),t()()()(),n(34,"div",10)(35,"div",7),i(36,"div",10),t()()()()()),o&2){let e=c(2);w("formGroup",e.form)}}function H(o,s){if(o&1&&(n(0,"p-panel"),f(1,q,6,0,"ng-template",null,2,p),y(3,z,37,1,"form",5),t()),o&2){let e=c();S(3),E(e.loader()?3:-1)}}var ie=(()=>{class o{constructor(){this.loader=h(null),this.accountingSetupService=u(k),this.fb=u(j)}ngOnInit(){this.accountingSetupService.fetchLoaderConfiguration().pipe(v("Loader Configuration"),_(e=>{this.loader.set(e),this.generateForm(e.form)})).subscribe()}generateForm(e){this.form=this.fb.group({generatePrepaidJournal:this.fb.control(e.report.generatePrepaidJournal),noteMandatory:this.fb.control(e.journalGenerate.noteMandatory),paymentDiscount:this.fb.control(e.journalGenerate.paymentDiscount),transferOrder:this.fb.control(e.journalGenerate.transferOrder),trialBalanceFooterVisible:this.fb.control(e.journalGenerate.trialBalanceFooterVisible)})}onSubmit(){let{generatePrepaidJournal:e,paymentDiscount:a,trialBalanceFooterVisible:l,transferOrder:R,noteMandatory:I}=this.form.value,g=d(m({},this.loader().form),{report:d(m({},this.loader().form.report),{generatePrepaidJournal:e}),journalGenerate:d(m({},this.loader().form.journalGenerate),{transferOrder:R,noteMandatory:I,paymentDiscount:a,trialBalanceFooterVisible:l})});console.log(g),this.accountingSetupService.updateAccountingIntegrationConfiguration(g).pipe(v("response")).subscribe()}static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275cmp=b({type:o,selectors:[["app-advanced"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Advanced"],["icon","fa-solid fa-floppy-disk","label","Save",3,"onClick"],[1,"container-fluid","p-0",3,"formGroup"],[1,"row","px-2"],[1,"col"],[1,"fs-4","m-0"],[1,"fs-3","text-secondary"],[1,"row"],[1,"col-10","col-xl-6","d-flex","flex-column","gap-4"],[1,"col-12"],[1,"fs-3","text-black","fw-normal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"]],template:function(a,l){a&1&&(n(0,"app-main-panel",3),f(1,L,1,0,"ng-template",null,0,p)(3,H,4,1,"ng-template",null,1,p),t())},dependencies:[P,V,B,D,N,A,T,M,J,O],encapsulation:2})}}return o})();export{ie as AdvancedComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as C}from"./chunk-
|
|
1
|
+
import{r as C}from"./chunk-U2ZZPRP6.js";import{Da as i,Yb as s,ma as r,ub as c,zb as a}from"./chunk-T6YHDD6J.js";var p=["data-p-icon","chevron-right"],f=(()=>{class e extends C{static \u0275fac=(()=>{let t;return function(o){return(t||(t=i(e)))(o||e)}})();static \u0275cmp=c({type:e,selectors:[["","data-p-icon","chevron-right"]],features:[a],attrs:p,decls:1,vars:0,consts:[["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){n&1&&(r(),s(0,"path",0))},encapsulation:2})}return e})();export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as p}from"./chunk-
|
|
1
|
+
import{m as p}from"./chunk-SPDFU2FM.js";import"./chunk-IEOE2XJ7.js";import{h as d}from"./chunk-5FVLV36I.js";import"./chunk-MTPMCC6U.js";import"./chunk-3BPX4XM7.js";import"./chunk-U2ZZPRP6.js";import"./chunk-7C7GSAC3.js";import"./chunk-OQDKL2MG.js";import"./chunk-WNU7SPEQ.js";import"./chunk-ISLNIBSF.js";import{Ab as l,Tb as t,Ub as n,Vb as m,Wc as c,da as r,ub as a,vc as i}from"./chunk-T6YHDD6J.js";import"./chunk-PRARYYF3.js";function f(e,u){e&1&&(t(0,"div",2),m(1,"img",3),t(2,"h1",4),i(3,"You are not authorized"),n(),t(4,"p",5),i(5," This page require "),t(6,"span",6),i(7,"Journal"),n(),i(8," role. Please contact your Administrator to gain access! "),n()())}var y=(()=>{class e{constructor(){this.roleService=r(p)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=a({type:e,selectors:[["app-forbidden"]],decls:3,vars:0,consts:[["content",""],["pageTitle","Unauthorized"],[1,"h-100","d-flex","flex-column","justify-content-center","align-items-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg","alt","Forbidden"],[1,"fs-6","fw-semibold"],[1,"fs-3"],[1,"fw-semibold"]],template:function(o,g){o&1&&(t(0,"app-main-panel",1),l(1,f,9,0,"ng-template",null,0,c),n())},dependencies:[d],encapsulation:2})}}return e})();export{y as ForbiddenComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as L}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-XMARGQLT.js";import{a as K}from"./chunk-MDCWCEZ7.js";import{a as Y,b as H}from"./chunk-Y54QBXKN.js";import{a as U}from"./chunk-TTIQSVQF.js";import{h as Q}from"./chunk-5FVLV36I.js";import"./chunk-MTPMCC6U.js";import{a as W}from"./chunk-RO474VQ2.js";import"./chunk-JVSOCU4S.js";import"./chunk-E4FUCIJZ.js";import"./chunk-3BPX4XM7.js";import{H as O,y as A}from"./chunk-U2ZZPRP6.js";import"./chunk-7C7GSAC3.js";import{b as R,c as k,e as z,f as G,p as P,q as V,v as B,y as q}from"./chunk-OQDKL2MG.js";import{b as w,d as J}from"./chunk-7NZRUZLK.js";import"./chunk-WDFE7CAE.js";import"./chunk-DOSAQI5P.js";import"./chunk-MKCZKYSF.js";import"./chunk-WNU7SPEQ.js";import{i as M}from"./chunk-ISLNIBSF.js";import"./chunk-CJPLD6EO.js";import{Ab as F,C as h,F as T,J as b,Kc as N,Mb as x,Nb as _,Sb as a,T as g,Tb as n,Ub as o,V as v,Vb as m,Wc as y,ac as E,da as c,db as r,fc as j,gc as u,j as C,ka as S,la as I,ub as D,vc as l}from"./chunk-T6YHDD6J.js";import{a as d,b as f}from"./chunk-PRARYYF3.js";var X=t=>({"ng-invalid ng-dirty":t});function Z(t,s){if(t&1){let e=E();n(0,"div")(1,"p-button",3),j("onClick",function(){S(e);let p=u();return I(p.onSubmit())}),o()()}}function $(t,s){t&1&&(n(0,"div",22),l(1," Name is required "),o())}function ee(t,s){if(t&1&&(n(0,"div"),x(1,$,2,0,"div",22),o()),t&2){let e=u(2);r(),_(e.form.controls.name.errors.required?1:-1)}}function te(t,s){if(t&1&&(n(0,"p-panel",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"div",7)(7,"div",10)(8,"label",11),l(9,"Type Id"),o(),n(10,"div",12)(11,"div",13),m(12,"p-radiobutton",14),n(13,"label",15),l(14,"Generic"),o()(),n(15,"div",13),m(16,"p-radiobutton",16),n(17,"label",17),l(18,"Outlet"),o()()()(),m(19,"div",18),o(),n(20,"div",19)(21,"label",11),l(22,"Name"),o(),m(23,"input",20),x(24,ee,2,1,"div"),o()(),n(25,"div",9)(26,"div",19)(27,"label",11),l(28,"Description"),o(),m(29,"textarea",21),o()()()()()()()),t&2){let e=u();r(),a("formGroup",e.form),r(11),a("value",0),r(4),a("value",1),r(7),a("ngClass",N(6,X,e.form.controls.name.invalid&&(e.form.controls.name.dirty||e.form.controls.name.touched))),r(),_(e.form.controls.name.invalid&&(e.form.controls.name.dirty||e.form.controls.name.touched)?24:-1),r(5),a("autoResize",!0)}}var ye=(()=>{class t{constructor(){this.fb=c(B),this.journalTagService=c(L),this.route=c(w),this.router=c(J)}initForm(){console.log("Initializing form"),this.form=this.fb.group({name:this.fb.control("",[k.required]),description:this.fb.control(""),typeID:this.fb.control(!1)})}ngOnInit(){this.initForm(),this.route.queryParamMap.pipe(h(e=>e.has("id")),g(e=>this.journalTagService.journalTagGet(e.get("id"))),U("Query params"),v(e=>{console.log("Got journal tag:",e),this.form.patchValue({name:e.name,description:e.description})})).subscribe()}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=this.form.getRawValue();this.route.queryParamMap.pipe(b(1),g(i=>{let p=i.get("id");return p?this.journalTagService.journalTagUpdate(f(d({},e),{typeID:Number(e.typeID)}),p):this.journalTagService.journalTagCreate(f(d({},e),{typeID:Number(e.typeID)}))}),v(()=>{console.log("Journal tag saved successfully"),this.router.navigate(["/pages/accounting-setup/journal-tag"])}),T(i=>(console.error("Failed to save journal tag:",i),C))).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-journal-tag-form"]],decls:5,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Journal Tag Form",3,"hasMainWrapperPadding"],["label","Submit",3,"onClick"],["styleClass","rounded-2"],[1,"d-flex","flex-column","gap-2",3,"formGroup"],[1,"row"],[1,"col-6"],[1,"row","row-gap-2"],[1,"col-10"],[1,"d-flex","flex-column","h-100"],["for",""],[1,"d-flex","h-100","align-items-center","gap-3"],[1,"d-flex","justify-content-center","gap-2"],["formControlName","typeID","inputId","typeID0","name","typeID",3,"value"],["for","typeID0",1,"m-0"],["formControlName","typeID","inputId","typeID1","name","typeID",3,"value"],["for","typeID1",1,"m-0"],[1,"my-2"],[1,"d-flex","flex-column"],["formControlName","name","pInputText","","size","small","type","text",2,"font-size","14px",3,"ngClass"],["cols","30","formControlName","description","pSize","large","pTextarea","","rows","2",2,"font-size","14px",3,"autoResize"],[1,"invalid-feedback","text-danger","d-block"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),F(1,Z,2,0,"ng-template",null,0,y)(3,te,30,8,"ng-template",null,1,y),o()),i&2&&a("hasMainWrapperPadding",!0)},dependencies:[Q,A,W,q,R,z,G,V,P,K,O,M,H,Y],encapsulation:2})}}return t})();export{ye as JournalTagFormComponent};
|