dealposbooks 1.9.3 → 1.9.4
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 +29 -29
- package/assets/scss/components/_navbar.scss +2 -2
- package/assets/scss/layouts/_sidebar.scss +1 -2
- package/assets/scss/style.scss +6 -0
- package/{chunk-4CUA33JH.js → chunk-25XKSUYX.js} +1 -1
- package/chunk-2TUOAI22.js +1 -0
- package/chunk-3IHOEH5O.js +1 -0
- package/chunk-3VC2KAML.js +1 -0
- package/{chunk-5QVQY32E.js → chunk-4FK4QI2U.js} +1 -1
- package/{chunk-A47VRZZB.js → chunk-4J3EFT67.js} +1 -1
- package/{chunk-ZPTNYW2S.js → chunk-56MVOUHH.js} +1 -1
- package/{chunk-LFDCJISD.js → chunk-5OU7ECCN.js} +1 -1
- package/{chunk-7KQDKLO4.js → chunk-5OXHRN43.js} +2 -2
- package/{chunk-3XLREP6U.js → chunk-5QMHSLSU.js} +1 -1
- package/{chunk-FUCSF42O.js → chunk-6J5S4UPN.js} +1 -1
- package/chunk-7GT5MR57.js +1 -0
- package/{chunk-J6H3BBKP.js → chunk-7LCGNNCW.js} +1 -1
- package/chunk-7NXTCJMX.js +1 -0
- package/{chunk-OCIKQOWD.js → chunk-7PDAUPWN.js} +2 -2
- package/{chunk-5AITWOQZ.js → chunk-7TKATLB4.js} +1 -1
- package/{chunk-3ENMEUVK.js → chunk-7XAJOA36.js} +1 -1
- package/chunk-A3NY5EYN.js +1 -0
- package/chunk-AH5PA2TO.js +1 -0
- package/{chunk-H4V6YZX2.js → chunk-AM66YD6C.js} +1 -1
- package/{chunk-DNSQSWOS.js → chunk-B4COOFJS.js} +1 -1
- package/{chunk-OAD4GTH6.js → chunk-BGDKOH3U.js} +1 -1
- package/chunk-BJGK47CG.js +1 -0
- package/chunk-BWS6U7BM.js +193 -0
- package/chunk-D5AXB5DE.js +7 -0
- package/chunk-D5RQBZNF.js +1 -0
- package/{chunk-CSQ4MHL2.js → chunk-DELPZQZH.js} +3 -3
- package/{chunk-PRRU3DEZ.js → chunk-DJUGUNXR.js} +1 -1
- package/chunk-DSFIM36S.js +1 -0
- package/chunk-EHCALTHK.js +1 -0
- package/{chunk-7U2I35GP.js → chunk-F7TF7ASR.js} +1 -1
- package/{chunk-X4EHZEMZ.js → chunk-FCGAJLPQ.js} +1 -1
- package/{chunk-WAJWW3TC.js → chunk-FUGCJNGU.js} +11 -11
- package/{chunk-QIXIZZPY.js → chunk-GMLRRSMP.js} +1 -1
- package/chunk-HDO45X7Q.js +1 -0
- package/{chunk-RANHETC3.js → chunk-HPKZYS2A.js} +1 -1
- package/chunk-IACJNRVA.js +25 -0
- package/chunk-IQZ2MKLS.js +1 -0
- package/{chunk-Q5BXN24W.js → chunk-ITIRJVUS.js} +1 -1
- package/chunk-IXPPR5MV.js +1 -0
- package/chunk-J3B5HVW4.js +1 -0
- package/chunk-JQ4DHNFQ.js +67 -0
- package/{chunk-PJKHUCJX.js → chunk-JRYP3YPK.js} +1 -1
- package/chunk-KQAMA66M.js +2 -0
- package/{chunk-ZB6TB7JI.js → chunk-L6VKOTIV.js} +2 -2
- package/chunk-LATJGOV3.js +185 -0
- package/chunk-LLV6TGMT.js +1 -0
- package/chunk-MNCUT4L4.js +1 -0
- package/chunk-NBRL2K4H.js +1 -0
- package/chunk-NDOZ5YES.js +1 -0
- package/{chunk-WM3NKRKN.js → chunk-NL5IYBHF.js} +1 -1
- package/{chunk-ZUALJ33O.js → chunk-R6HGHSPM.js} +1 -1
- package/chunk-SCEMI63T.js +1 -0
- package/chunk-SDTMCYSJ.js +1 -0
- package/{chunk-SGXU6X3O.js → chunk-T2A6NORZ.js} +1 -1
- package/chunk-TDX2HSWE.js +1 -0
- package/chunk-UHVZAFKN.js +1 -0
- package/{chunk-GY53MWXH.js → chunk-UMYCPFK5.js} +19 -19
- package/{chunk-YWYF6P7O.js → chunk-UOAJWMSO.js} +1 -1
- package/{chunk-TNWHAKS6.js → chunk-UZCNPNT7.js} +1 -1
- package/{chunk-JG5HGOEX.js → chunk-VF7TG32T.js} +1 -1
- package/chunk-VI3AV775.js +1 -0
- package/chunk-VK5TK23W.js +7 -0
- package/{chunk-O2GA6PH7.js → chunk-VKO43FOT.js} +1 -1
- package/chunk-VNHXLUHA.js +1 -0
- package/{chunk-DIX7J6JH.js → chunk-W6UD5NO5.js} +1 -1
- package/chunk-WUGCCSIP.js +1 -0
- package/chunk-X234EQET.js +129 -0
- package/{chunk-6NCHCAKY.js → chunk-X3FQFXUZ.js} +1 -1
- package/{chunk-33XUIS57.js → chunk-XEATX3IC.js} +1 -1
- package/chunk-XJ5BSLZV.js +1 -0
- package/{chunk-V3B32QFK.js → chunk-XMZ7ADZB.js} +1 -1
- package/chunk-YAKYBQQ6.js +1 -0
- package/{chunk-TDDTBHQE.js → chunk-YQRWSN5V.js} +1 -1
- package/{chunk-ACQX2T2H.js → chunk-ZKXT6RSI.js} +1 -1
- package/index.html +2 -2
- package/main-VQYYYR67.js +1 -0
- package/package.json +1 -1
- package/{styles-7FHABE27.css → styles-IDKYTRGA.css} +1 -1
- package/chunk-2US5D2LY.js +0 -1
- package/chunk-353U23ZQ.js +0 -1
- package/chunk-3B65XZ6E.js +0 -1
- package/chunk-3CEJ67I5.js +0 -1
- package/chunk-3E2EKFPH.js +0 -1
- package/chunk-3H5KBX4R.js +0 -1
- package/chunk-4NSHHAXV.js +0 -1
- package/chunk-6DPW74DP.js +0 -1
- package/chunk-7G6KXHQB.js +0 -1
- package/chunk-7U2775BI.js +0 -1
- package/chunk-AG7353CN.js +0 -1
- package/chunk-AI6YS6T2.js +0 -1
- package/chunk-ANMXAMBL.js +0 -1
- package/chunk-ARSLNNKY.js +0 -7
- package/chunk-AT7II4DO.js +0 -7
- package/chunk-BCXNVGDH.js +0 -193
- package/chunk-BJNN42CI.js +0 -1
- package/chunk-DG6ETDOW.js +0 -1
- package/chunk-DMVAXVYQ.js +0 -1
- package/chunk-F3PEWQT7.js +0 -1
- package/chunk-FTVGAWDW.js +0 -1
- package/chunk-FXUC6M2U.js +0 -1
- package/chunk-GCGWIESO.js +0 -1
- package/chunk-IHJLTHHQ.js +0 -1
- package/chunk-LNRTAR2V.js +0 -1
- package/chunk-LWKS2JEV.js +0 -1
- package/chunk-N2XLL6HJ.js +0 -33
- package/chunk-NM37SDQJ.js +0 -1
- package/chunk-NN6GSTBJ.js +0 -1
- package/chunk-PZBZVQUY.js +0 -67
- package/chunk-Q2IWISMY.js +0 -1
- package/chunk-RQEEJGOE.js +0 -1
- package/chunk-TPGKCMVN.js +0 -1
- package/chunk-TYETQJ2X.js +0 -2
- package/chunk-U5LD55IP.js +0 -1
- package/chunk-U6SRN7P3.js +0 -1
- package/chunk-VBCJCAMN.js +0 -1
- package/chunk-W76GKZZU.js +0 -1
- package/chunk-X5SV4H5B.js +0 -1
- package/chunk-YYUWLV5N.js +0 -1
- package/main-L6WVDQUB.js +0 -1
package/3rdpartylicenses.txt
CHANGED
|
@@ -834,9 +834,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
834
834
|
SOFTWARE.
|
|
835
835
|
|
|
836
836
|
--------------------------------------------------------------------------------
|
|
837
|
-
Package:
|
|
837
|
+
Package: autonumeric
|
|
838
838
|
License: "MIT"
|
|
839
839
|
|
|
840
|
+
Copyright 2009 Robert J. Knothe <bob@decorplanit.com> and contributors
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
Permission is hereby granted, free of charge, to any person
|
|
844
|
+
obtaining a copy of this software and associated documentation
|
|
845
|
+
files (the "Software"), to deal in the Software without
|
|
846
|
+
restriction, including without limitation the rights to use,
|
|
847
|
+
copy, modify, merge, publish, distribute, sub license, and/or sell
|
|
848
|
+
copies of the Software, and to permit persons to whom the
|
|
849
|
+
Software is furnished to do so, subject to the following
|
|
850
|
+
conditions:
|
|
851
|
+
|
|
852
|
+
The above copyright notice and this permission notice shall be
|
|
853
|
+
included in all copies or substantial portions of the Software.
|
|
854
|
+
|
|
855
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
856
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
857
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
858
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
859
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
860
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
861
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
862
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
840
863
|
|
|
841
864
|
--------------------------------------------------------------------------------
|
|
842
865
|
Package: uuid
|
|
@@ -878,34 +901,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
878
901
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
879
902
|
SOFTWARE.
|
|
880
903
|
|
|
881
|
-
--------------------------------------------------------------------------------
|
|
882
|
-
Package: autonumeric
|
|
883
|
-
License: "MIT"
|
|
884
|
-
|
|
885
|
-
Copyright 2009 Robert J. Knothe <bob@decorplanit.com> and contributors
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
Permission is hereby granted, free of charge, to any person
|
|
889
|
-
obtaining a copy of this software and associated documentation
|
|
890
|
-
files (the "Software"), to deal in the Software without
|
|
891
|
-
restriction, including without limitation the rights to use,
|
|
892
|
-
copy, modify, merge, publish, distribute, sub license, and/or sell
|
|
893
|
-
copies of the Software, and to permit persons to whom the
|
|
894
|
-
Software is furnished to do so, subject to the following
|
|
895
|
-
conditions:
|
|
896
|
-
|
|
897
|
-
The above copyright notice and this permission notice shall be
|
|
898
|
-
included in all copies or substantial portions of the Software.
|
|
899
|
-
|
|
900
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
901
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
902
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
903
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
904
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
905
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
906
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
907
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
908
|
-
|
|
909
904
|
--------------------------------------------------------------------------------
|
|
910
905
|
Package: @angular/platform-browser
|
|
911
906
|
License: "MIT"
|
|
@@ -1142,6 +1137,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
1142
1137
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1143
1138
|
SOFTWARE.
|
|
1144
1139
|
|
|
1140
|
+
--------------------------------------------------------------------------------
|
|
1141
|
+
Package: @ng-select/ng-select
|
|
1142
|
+
License: "MIT"
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
1145
|
--------------------------------------------------------------------------------
|
|
1146
1146
|
Package: @ngrx/signals
|
|
1147
1147
|
License: "MIT"
|
package/assets/scss/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{i as U,z as H}from"./chunk-FUGCJNGU.js";import{Ma as q,Na as w,Va as P,a as G}from"./chunk-BWS6U7BM.js";import{c as N,g as j,h as R,m as z}from"./chunk-KQAMA66M.js";import{Ab as M,Cb as m,Jb as g,Kb as s,Nb as F,Ob as E,Pb as I,Ub as h,Uc as p,Vb as f,Vc as x,Zb as L,_b as O,aa as v,ba as $,ca as C,dc as y,ec as A,gb as a,ha as _,ic as k,jc as B,kc as d,lc as u,pa as r,qa as c,ta as b,wb as S,xb as V,xc as D,za as T,zc as Q}from"./chunk-D5AXB5DE.js";var Y=["handle"],Z=["input"],ee=e=>({checked:e});function te(e,K){e&1&&L(0)}function ie(e,K){if(e&1&&m(0,te,1,0,"ng-container",4),e&2){let i=A();s("ngTemplateOutlet",i.handleTemplate||i._handleTemplate)("ngTemplateOutletContext",Q(2,ee,i.checked()))}}var oe=({dt:e})=>`
|
|
2
2
|
.p-toggleswitch {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: ${e("toggleswitch.width")};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as i,M as r}from"./chunk-KQAMA66M.js";import{Wb as n,wb as o}from"./chunk-D5AXB5DE.js";import"./chunk-YQFG5XE2.js";var c=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=o({type:e,selectors:[["app-blank-layout"]],decls:1,vars:0,template:function(t,a){t&1&&n(0,"router-outlet")},dependencies:[r,i],encapsulation:2})}}return e})();export{c as BlankComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Pe,b as Fe}from"./chunk-5QMHSLSU.js";import{a as Be}from"./chunk-G4XX7EU2.js";import{a as k}from"./chunk-VNHXLUHA.js";import{b as me}from"./chunk-YQRWSN5V.js";import{a as W}from"./chunk-GMLRRSMP.js";import{a as ue,b as pe}from"./chunk-R6HGHSPM.js";import"./chunk-4FK4QI2U.js";import{a as B,b as N}from"./chunk-56MVOUHH.js";import{b as Ve,c as Je,h as oe,m as re,n as ae,o as le}from"./chunk-UMYCPFK5.js";import{f as Me,g as De}from"./chunk-X3FQFXUZ.js";import"./chunk-7TKATLB4.js";import"./chunk-ZKXT6RSI.js";import{a as fe}from"./chunk-7GT5MR57.js";import{c as X,d as Y}from"./chunk-VF7TG32T.js";import{g as ne}from"./chunk-L6VKOTIV.js";import"./chunk-5OXHRN43.js";import{a as v,b as Z,c as $,d as ee,e as te,f as ie}from"./chunk-AM66YD6C.js";import{E as q,F as Q,v as ke,w as Re}from"./chunk-FUGCJNGU.js";import{b as Ce,e as be,f as ve,k as we,m as ye,p as Ee,w as Ie,z as Te}from"./chunk-BWS6U7BM.js";import"./chunk-VI3AV775.js";import"./chunk-F2X3VGZZ.js";import{f as O,k as A,l as L,m as K}from"./chunk-KQAMA66M.js";import{Cb as T,Ga as se,Ic as y,Jc as V,Kb as u,Kc as R,Lc as C,Nb as U,Ub as a,Vb as o,Wb as g,X as M,Xc as w,Z as D,_b as E,c as J,cb as P,dc as I,ec as d,gb as s,ha as S,pa as _,pc as l,qa as h,qc as b,rc as F,s as ce,tc as j,uc as xe,vc as de,wb as H,wc as Se,xc as z,yc as G}from"./chunk-D5AXB5DE.js";import{a as p,b as m}from"./chunk-YQFG5XE2.js";var Le={data:{data:[],totalCount:0},meta:{options:{outlets:[],paymentStates:[],deliveryStates:[]},filter:{number:null,outletName:null,paymentState:0,deliveryState:0,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4}},filter:{number:null,outletName:null,paymentState:0,deliveryState:0,from:null,to:null,customerID:null,pageNumber:1,rowCount:20,pageSize:20,export:!1,exportPageNumber:1,exportRowCount:1e4}},_e=Z(ie(Le),$(t=>({first:w(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:w(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:w(()=>t.data().data.some(c=>c.checked)),checkedInvoice:w(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),te(t=>{let c=S(k),e=S(me);return{updateFilter(i){v(t,n=>m(p({},n),{filter:p(p({},n.filter),i)}))},onRowSelect(i){v(t,n=>{let f=n.data.data.map(x=>x.id===i.id?m(p({},x),{checked:!0}):x);return m(p({},n),{data:m(p({},n.data),{data:f})})})},onRowUnselect(i){v(t,n=>{let f=n.data.data.map(x=>x.id===i.id?m(p({},x),{checked:!1}):x);return m(p({},n),{data:m(p({},n.data),{data:f})})})},onHeaderCheckboxToggle(i){v(t,n=>{let f=n.data.data.map(x=>m(p({},x),{checked:i}));return m(p({},n),{data:m(p({},n.data),{data:f})})})},getCustomerInvoice:B(J(M(i=>c.getJournalInvoice(i).pipe(ce(n=>m(p({},n),{data:n.data.map(f=>m(p({},f),{due:e.from(f.due)?e.from(f.due).format():null,checked:!1}))})),N({next:n=>{v(t,f=>m(p({},f),{data:n}))},error:n=>{console.error("Error fetching customer invoice:",n)}}))))),getCustomerInvoiceLoader:B(J(M(()=>c.getJournalInvoiceLoader().pipe(N({next:i=>{v(t,n=>m(p({},n),{meta:i}))},error:i=>{console.error("Error fetching customer invoice loader:",i)}})))))}}),ee(t=>({onInit:()=>{t.getCustomerInvoiceLoader()}})));var We=()=>({height:"calc(100vh - 70px)"});function qe(t,c){if(t&1){let e=E();a(0,"p-button",9),I("onClick",function(){_(e);let i=d(2);return h(i.onGenerateJournal())}),o()}}function Qe(t,c){if(t&1&&T(0,qe,1,0,"p-button",8),t&2){let e=d();u("ngIf",e.store.hasCheckedRows())}}function Xe(t,c){t&1&&(a(0,"tr")(1,"th",11),g(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),l(4,"Outlet"),o(),a(5,"th"),l(6,"Number"),o(),a(7,"th"),l(8,"Customer"),o(),a(9,"th"),l(10,"Date"),o(),a(11,"th"),l(12,"Due"),o(),a(13,"th"),l(14,"Amount"),o(),a(15,"th"),l(16,"Payment"),o(),a(17,"th"),l(18,"Delivery"),o(),g(19,"th"),o())}function Ye(t,c){if(t&1&&(a(0,"tr")(1,"td"),g(2,"p-tableCheckbox",12),o(),a(3,"td"),l(4),o(),a(5,"td")(6,"a",13),l(7),o()(),a(8,"td")(9,"a",13),l(10),o()(),a(11,"td"),l(12),y(13,"date"),o(),a(14,"td"),l(15),y(16,"date"),o(),a(17,"td"),l(18),y(19,"number"),o(),a(20,"td"),g(21,"p-chip",14),o(),a(22,"td"),g(23,"p-chip",14),o(),a(24,"td"),g(25,"p-button",15),o()()),t&2){let e=c.$implicit,r=d(2);s(2),u("value",e),s(2),b(e.outlet),s(2),u("href",r.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+e.id,P),s(),F(" ",e.number," "),s(2),u("href",r.authService.getTenantExternalURL()+"/menu/Contacts/Contact/Customers/Info?ID="+e.contactID,P),s(),F(" ",e.customer," "),s(2),b(R(13,14,e.date,"d MMM y hh:mm")),s(3),b(e.due?R(16,17,e.due,"d MMM y hh:mm"):"-"),s(3),b(V(19,20,e.amount)),s(3),u("label",e.payment),s(2),u("label",e.delivery),s(2),u("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function Ze(t,c){if(t&1&&l(0),t&2){let e=d(2);j(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function $e(t,c){t&1&&(a(0,"tr")(1,"td",16)(2,"span"),l(3,"No records found."),o()()())}function et(t,c){if(t&1){let e=E();a(0,"p-panel")(1,"p-table",10),I("onPage",function(i){_(e);let n=d();return h(n.onPageChange(i))})("onRowSelect",function(i){_(e);let n=d();return h(n.onRowSelect(i))})("onRowUnselect",function(i){_(e);let n=d();return h(n.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let n=d();return h(n.onHeaderCheckboxToggle(i))}),T(2,Xe,20,0,"ng-template",null,3,C)(4,Ye,26,22,"ng-template",null,4,C)(6,Ze,1,3,"ng-template",null,5,C)(8,$e,4,0,"ng-template",null,6,C),o()()}if(t&2){let e=d();U(G(9,We)),s(),u("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("value",e.store.data().data)}}function tt(t,c){if(t&1){let e=E();a(0,"form",17)(1,"div",18)(2,"label",19),l(3,"Outlet"),o(),g(4,"p-select",20),o(),a(5,"div",18)(6,"label",19),l(7,"Payment"),o(),g(8,"p-select",21),o(),a(9,"div",18)(10,"label",19),l(11,"Delivery"),o(),g(12,"p-select",22),o(),a(13,"div",18)(14,"label",19),l(15,"From"),o(),g(16,"p-datepicker",23),o(),a(17,"div",18)(18,"label",19),l(19,"To"),o(),g(20,"p-datepicker",24),o(),a(21,"div",18)(22,"label",19),l(23,"Customer"),o(),a(24,"p-autocomplete",25),I("completeMethod",function(i){_(e);let n=d();return h(n.onSearchContact(i))}),o()(),a(25,"div",18)(26,"label",19),l(27,"Page Size"),o(),g(28,"input",26),o()()}if(t&2){let e=d();u("formGroup",e.filterForm),s(4),u("options",e.store.meta().options.outlets),s(4),u("options",e.store.meta().options.paymentStates),s(4),u("options",e.store.meta().options.deliveryStates),s(4),u("iconDisplay","input")("showIcon",!0),s(4),u("iconDisplay","input")("showIcon",!0),s(4),u("suggestions",e.customerSuggestions())}}var Ge=(()=>{class t{constructor(){this.store=S(_e),this.dayjsService=S(me),this.generateJournalService=S(k),this.authService=S(W),this.isDialogFilterVisible=se(!1),this.isInitDialogFilterVisible=se(!0),this.customerSuggestions=se([]),this.fb=S(Ie)}ngOnInit(){console.log(this.dayjsService.from('0001-01-01T00:00:00"')&&!0),this.generateFilterForm()}generateFilterForm(){this.filterForm=this.fb.group({number:this.fb.control(null),outletName:this.fb.control(null),paymentState:this.fb.control(0),deliveryState:this.fb.control(0),from:this.fb.control(null),to:this.fb.control(null),customerID:this.fb.control(null),pageNumber:this.fb.control(1),rowCount:this.fb.control(20),pageSize:this.fb.control(20),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportRowCount:this.fb.control(1e4)})}onSearchContact(e){let{query:r}=e;this.generateJournalService.getCustomerSuggestions(r).pipe(fe("Customer Suggestions"),D(i=>{this.customerSuggestions.set(i)})).subscribe()}onSearch(e){this.store.updateFilter(m(p({},this.store.filter()),{number:e}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(r=>{this.store.onRowUnselect(r)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onPageChange(e){let r=e.first/e.rows;this.store.updateFilter(m(p({},this.store.filter()),{pageNumber:r+1}))}onGenerateJournal(){this.generateJournalService.generateJournalInvoice(this.store.checkedInvoice()).pipe(D(()=>{this.store.getCustomerInvoice(this.store.filter)})).subscribe()}onFilterOKEvent(){let e=Object.entries(this.filterForm.getRawValue()).reduce((r,[i,n])=>{switch(i){case"customerID":n||(r[i]=Be);break;case"from":typeof n=="object"?r[i]=this.dayjsService.from(n).format():r[i]=n!=null?String(n):null;break;case"to":typeof n=="object"?r[i]=this.dayjsService.from(n).format():r[i]=n!=null?String(n):null;break;default:r[i]=n;break}return r},{});console.log("Filter Body:",e),this.generateJournalService.getJournalInvoice(e).pipe(fe("Get Journal Invoice")).subscribe(),this.isDialogFilterVisible.set(!1)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-customer-invoice"]],features:[z([_e])],decls:7,vars:4,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Customer Invoice",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollable","scrollHeight","lazy","paginator","rows","totalRecords","value"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"label"],[3,"icon","severity","text"],["colspan","10"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Outlet",3,"options"],["formControlName","paymentState","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select a Payment",3,"options"],["formControlName","deliveryState","appendTo","body","optionLabel","value","optionValue","key","placeholder","Select a Delivery",3,"options"],["formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","customerID","appendTo","body","styleClass","w-100","optionLabel","Value","optionValue","Key","inputStyleClass","w-100",3,"completeMethod","suggestions"],["type","text","pInputText","","formControlName","pageSize"]],template:function(r,i){if(r&1){let n=E();a(0,"app-main-panel",7),Se("isDialogFilterVisibleChange",function(x){return _(n),de(i.isDialogFilterVisible,x)||(i.isDialogFilterVisible=x),h(x)})("isInitDialogFilterVisibleChange",function(x){return _(n),de(i.isInitDialogFilterVisible,x)||(i.isInitDialogFilterVisible=x),h(x)}),I("filterConfirmed",function(){return _(n),h(i.onFilterOKEvent())})("search",function(x){return _(n),h(i.onSearch(x))}),T(1,Qe,1,1,"ng-template",null,0,C)(3,et,10,10,"ng-template",null,1,C)(5,tt,29,9,"ng-template",null,2,C),o()}r&2&&(u("isSearchableInput",!0)("isFilterable",!0),xe("isDialogFilterVisible",i.isDialogFilterVisible)("isInitDialogFilterVisible",i.isInitDialogFilterVisible))},dependencies:[ne,le,oe,re,ae,K,O,L,A,pe,ue,Y,X,Q,q,De,Me,Je,Ve,Re,ke,Fe,Pe,Te,we,Ce,be,ve,ye,Ee],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var it={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},he=Z(ie(it),$(t=>({first:w(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:w(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:w(()=>t.data().data.some(c=>c.checked)),checkedSupplierBill:w(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),te(t=>{let c=S(k),e=S(me);return{updateFilter(r){v(t,i=>m(p({},i),{filter:p(p({},i.filter),r)}))},onRowSelect(r){v(t,i=>{let n=i.data.data.map(f=>f.id===r.id?m(p({},f),{checked:!0}):f);return m(p({},i),{data:m(p({},i.data),{data:n})})})},onRowUnselect(r){v(t,i=>{let n=i.data.data.map(f=>f.id===r.id?m(p({},f),{checked:!1}):f);return m(p({},i),{data:m(p({},i.data),{data:n})})})},onHeaderCheckboxToggle(r){v(t,i=>{let n=i.data.data.map(f=>m(p({},f),{checked:r}));return m(p({},i),{data:m(p({},i.data),{data:n})})})},getJournalSupplierBill:B(J(M(r=>c.getJournalSupplierBill(r).pipe(ce(i=>m(p({},i),{data:i.data.map(n=>m(p({},n),{due:e.from(n.due)?e.from(n.due).format():null,checked:!1}))})),N({next:i=>{v(t,n=>m(p({},n),{data:i}))},error:i=>{console.error("Error fetching journal supplier bill:",i)}})))))}}),ee(t=>({onInit:()=>{t.getJournalSupplierBill(t.filter)}})));var nt=()=>({height:"calc(100vh - 70px)"});function ot(t,c){if(t&1){let e=E();a(0,"p-button",8),I("onClick",function(){_(e);let i=d(2);return h(i.onGenerateJournal())}),o()}}function rt(t,c){if(t&1&&T(0,ot,1,0,"p-button",7),t&2){let e=d();u("ngIf",e.store.hasCheckedRows())}}function at(t,c){t&1&&(a(0,"tr")(1,"th",10),g(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),l(4,"Outlet"),o(),a(5,"th"),l(6,"Number"),o(),a(7,"th"),l(8,"Supplier"),o(),a(9,"th"),l(10,"Date"),o(),a(11,"th"),l(12,"Due"),o(),a(13,"th"),l(14,"Amount"),o(),a(15,"th"),l(16,"Payment"),o(),a(17,"th"),l(18,"Delivery"),o(),g(19,"th"),o())}function lt(t,c){if(t&1&&(a(0,"tr")(1,"td"),g(2,"p-tableCheckbox",11),o(),a(3,"td"),l(4),o(),a(5,"td")(6,"a",12),l(7),o()(),a(8,"td"),l(9),o(),a(10,"td"),l(11),y(12,"date"),o(),a(13,"td"),l(14),y(15,"date"),o(),a(16,"td"),l(17),y(18,"number"),o(),a(19,"td"),g(20,"p-chip",13),o(),a(21,"td"),g(22,"p-chip",13),o(),a(23,"td"),g(24,"p-button",14),o()()),t&2){let e=c.$implicit,r=d(2);s(2),u("value",e),s(2),b(e.outlet),s(2),u("href",r.authService.getTenantExternalURL()+"/menu/Orders/Orders/Supplier_Bill/Info?ID="+e.id,P),s(),F(" ",e.number," "),s(2),b(e.customer),s(2),b(R(12,13,e.date,"d MMM y hh:mm")),s(3),b(e.due?R(15,16,e.due,"d MMM y hh:mm"):"-"),s(3),b(V(18,19,e.amount)),s(3),u("label",e.payment),s(2),u("label",e.delivery),s(2),u("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function pt(t,c){if(t&1&&l(0),t&2){let e=d(2);j(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function mt(t,c){t&1&&(a(0,"tr")(1,"td",15)(2,"span"),l(3,"No records found."),o()()())}function ct(t,c){if(t&1){let e=E();a(0,"p-panel")(1,"p-table",9),I("onPage",function(i){_(e);let n=d();return h(n.onPageChange(i))})("onRowSelect",function(i){_(e);let n=d();return h(n.onRowSelect(i))})("onRowUnselect",function(i){_(e);let n=d();return h(n.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let n=d();return h(n.onHeaderCheckboxToggle(i))}),T(2,at,20,0,"ng-template",null,2,C)(4,lt,25,21,"ng-template",null,3,C)(6,pt,1,3,"ng-template",null,4,C)(8,mt,4,0,"ng-template",null,5,C),o()()}if(t&2){let e=d();U(G(9,nt)),s(),u("scrollHeight","calc(100vh - 142px)")("value",e.store.data().data)("scrollable",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}var Oe=(()=>{class t{constructor(){this.generateJournalService=S(k),this.store=S(he),this.authService=S(W)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(r=>{this.store.onRowUnselect(r)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onGenerateJournal(){this.generateJournalService.generateJournalSupplierBill(this.store.checkedSupplierBill()).pipe(D(()=>{this.store.getJournalSupplierBill(this.store.filter)})).subscribe()}onSearch(e){this.store.updateFilter(m(p({},this.store.filter()),{Number:e}))}onPageChange(e){this.store.updateFilter(m(p({},this.store.filter()),{PageNumber:e.first/e.rows+1}))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-journal-supplier-bill"]],features:[z([he])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Supplier Bill",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollHeight","value","scrollable","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"label"],[3,"icon","severity","text"],["colspan","9"]],template:function(r,i){if(r&1){let n=E();a(0,"app-main-panel",6),I("search",function(x){return _(n),h(i.onSearch(x))}),T(1,rt,1,1,"ng-template",null,0,C)(3,ct,10,10,"ng-template",null,1,C),o()}r&2&&u("isSearchableInput",!0)},dependencies:[ne,le,oe,re,ae,K,O,L,A,pe,ue,Y,X,Q,q],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var st={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},ge=Z(ie(st),$(t=>({first:w(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:w(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:w(()=>t.data().data.some(c=>c.checked)),checkedShift:w(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),te(t=>{let c=S(k);return{updateFilter(e){v(t,r=>m(p({},r),{filter:p(p({},r.filter),e)}))},onRowSelect(e){v(t,r=>{let i=r.data.data.map(n=>n.id===e.id?m(p({},n),{checked:!0}):n);return m(p({},r),{data:m(p({},r.data),{data:i})})})},onRowUnselect(e){v(t,r=>{let i=r.data.data.map(n=>n.id===e.id?m(p({},n),{checked:!1}):n);return m(p({},r),{data:m(p({},r.data),{data:i})})})},onHeaderCheckboxToggle(e){v(t,r=>{let i=r.data.data.map(n=>m(p({},n),{checked:e}));return m(p({},r),{data:m(p({},r.data),{data:i})})})},getJournalShift:B(J(M(e=>c.getJournalShift(e).pipe(N(r=>v(t,i=>m(p({},i),{data:r})),r=>console.error("Error fetching journal shift:",r))))))}}),ee(t=>({onInit:()=>{t.getJournalShift(t.filter)}})));var ut=()=>({height:"calc(100vh - 70px)"});function dt(t,c){if(t&1){let e=E();a(0,"p-button",8),I("onClick",function(){_(e);let i=d(2);return h(i.onGenerateJournal())}),o()}}function ft(t,c){if(t&1&&T(0,dt,1,0,"p-button",7),t&2){let e=d();u("ngIf",e.store.hasCheckedRows())}}function _t(t,c){t&1&&(a(0,"tr")(1,"th",10),g(2,"p-tableHeaderCheckbox"),o(),a(3,"th"),l(4,"Number"),o(),a(5,"th"),l(6,"Open"),o(),a(7,"th"),l(8,"Close"),o(),a(9,"th"),l(10,"Cashier"),o(),a(11,"th"),l(12,"Sales + Tax"),o(),a(13,"th"),l(14,"Invoices"),o(),a(15,"th"),l(16,"Outlet"),o(),a(17,"th"),l(18,"Register"),o(),a(19,"th"),l(20,"Visitors"),o(),g(21,"th"),o())}function ht(t,c){if(t&1&&(a(0,"tr")(1,"td"),g(2,"p-tableCheckbox",11),o(),a(3,"td")(4,"a",12),l(5),o()(),a(6,"td"),l(7),y(8,"date"),o(),a(9,"td"),l(10),y(11,"date"),o(),a(12,"td"),l(13),o(),a(14,"td"),l(15),y(16,"number"),o(),a(17,"td"),l(18),y(19,"number"),o(),a(20,"td"),l(21),o(),a(22,"td"),l(23),o(),a(24,"td"),l(25),y(26,"number"),o(),a(27,"td"),g(28,"p-button",13),o()()),t&2){let e=c.$implicit,r=d(2);s(2),u("value",e),s(2),u("href",r.authService.getTenantExternalURL()+"/menu/Shift/Main/Previous_Shift/Register_Shift_Detail?ID="+e.id,P),s(),F(" ",e.number," "),s(2),b(R(8,14,e.open,"dd MMM y hh:mm")),s(3),b(R(11,17,e.close,"dd MMM y hh:mm")),s(3),b(e.cashier),s(2),b(V(16,20,e.salesNTax)),s(3),b(V(19,22,e.totalInvoice)),s(3),b(e.outlet),s(2),b(e.register),s(2),b(V(26,24,e.visitors)),s(3),u("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function gt(t,c){if(t&1&&l(0),t&2){let e=d(2);j(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function xt(t,c){t&1&&(a(0,"tr")(1,"td",14)(2,"span"),l(3,"No records found."),o()()())}function St(t,c){if(t&1){let e=E();a(0,"p-panel")(1,"p-table",9),I("onPage",function(i){_(e);let n=d();return h(n.onPageChange(i))})("onRowSelect",function(i){_(e);let n=d();return h(n.onRowSelect(i))})("onRowUnselect",function(i){_(e);let n=d();return h(n.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let n=d();return h(n.onHeaderCheckboxToggle(i))}),T(2,_t,22,0,"ng-template",null,2,C)(4,ht,29,26,"ng-template",null,3,C)(6,gt,1,3,"ng-template",null,4,C)(8,xt,4,0,"ng-template",null,5,C),o()()}if(t&2){let e=d();U(G(9,ut)),s(),u("scrollHeight","calc(100vh - 142px)")("scrollable",!0)("paginator",!0)("lazy",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("value",e.store.data().data)}}var Ae=(()=>{class t{constructor(){this.generateJournalService=S(k),this.store=S(ge),this.authService=S(W)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(r=>{this.store.onRowUnselect(r)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onGenerateJournal(){this.generateJournalService.generateJournalSupplierBill(this.store.checkedShift()).pipe(D(()=>{this.store.getJournalShift(this.store.filter)})).subscribe()}onSearch(e){this.store.updateFilter(m(p({},this.store.filter()),{Number:e}))}onPageChange(e){let r=e.first/e.rows;this.store.updateFilter(m(p({},this.store.filter()),{PageNumber:r+1}))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=H({type:t,selectors:[["app-journal-shift"]],features:[z([ge])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Shift Journal",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollHeight","scrollable","paginator","lazy","rows","totalRecords","value"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"icon","severity","text"],["colspan","10"]],template:function(r,i){if(r&1){let n=E();a(0,"app-main-panel",6),I("search",function(x){return _(n),h(i.onSearch(x))}),T(1,ft,1,1,"ng-template",null,0,C)(3,St,10,10,"ng-template",null,1,C),o()}r&2&&u("isSearchableInput",!0)},dependencies:[ne,le,oe,re,ae,K,O,L,A,pe,Y,X,Q,q],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var $i=[{path:"invoice",component:Ge},{path:"supplier-bill",component:Oe},{path:"shift",component:Ae},{path:"join-invoice",loadComponent:()=>import("./chunk-D5RQBZNF.js").then(t=>t.ARJournalComponent)},{path:"join-bill",loadComponent:()=>import("./chunk-MNCUT4L4.js").then(t=>t.ApJournalComponent)},{path:"adjustment",loadComponent:()=>import("./chunk-LLV6TGMT.js").then(t=>t.AdjustmentJournalComponent)}];export{$i as generateJournalRoutes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Je}from"./chunk-G4XX7EU2.js";import{a as qe,b as Qe,c as Xe,d as Ze,e as et,f as tt}from"./chunk-VKO43FOT.js";import{a as Z,b as re}from"./chunk-JQ4DHNFQ.js";import{a as ze,b as Ye}from"./chunk-56MVOUHH.js";import{h as ee,i as Ke,m as ve,n as ye,o as te}from"./chunk-UMYCPFK5.js";import{f as Y,g as K}from"./chunk-X3FQFXUZ.js";import"./chunk-7TKATLB4.js";import"./chunk-ZKXT6RSI.js";import{a as Ie}from"./chunk-7GT5MR57.js";import{c as H,d as W}from"./chunk-VF7TG32T.js";import{a as Se,b as z}from"./chunk-F7TF7ASR.js";import{g as R}from"./chunk-L6VKOTIV.js";import"./chunk-5OXHRN43.js";import{a as ce,b as Ve,c as $e,d as We,e as Ue,f as je,g as He}from"./chunk-AM66YD6C.js";import{E as B,F as V,w as Be}from"./chunk-FUGCJNGU.js";import{e as j,f as de,j as ae,k as fe,m as _e,n as ge,o as Ne,p as xe,w as he,y as X,z as Ce}from"./chunk-BWS6U7BM.js";import{d as ue}from"./chunk-VI3AV775.js";import"./chunk-F2X3VGZZ.js";import{C as ie,E as Ge,F as N,M as A,f as k,j as Le,m as D}from"./chunk-KQAMA66M.js";import{Cb as f,Ga as O,Ic as ke,Jc as Ae,Kb as s,Lc as u,Nb as T,Pb as De,Qb as v,Sb as y,Tb as b,Ub as i,Vb as o,Wb as $,X as Q,Xc as me,Z as E,_b as M,ba as se,bb as we,c as Me,dc as w,ec as c,gb as p,ha as h,pa as C,pc as l,qa as S,qc as d,rc as P,s as q,wb as F,xc as Re,yc as I,zc as oe}from"./chunk-D5AXB5DE.js";import{a as g,b as x}from"./chunk-YQFG5XE2.js";var L=(()=>{class t{constructor(){this.httpService=h(ue)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration")}fetchPOSOutletFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",n)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration")}fetchPOSPaymentFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",n)}updatePOSPaymentConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitPaymentConfiguration",e)}fetchPOSTaxConfiguration(){return this.httpService.get(void 0,"/api/setup/TaxConfigurationForm")}updatePOSTaxConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitTaxConfiguration",e)}fetchPOSWriteOffConfiguration(){return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationList")}fetchPOSWriteOffFormConfiguration(e){let n={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",n)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var G=function(t){return t.POSGLOBAL_SELL="Sell",t.POSGLOBAL_BUY="Buy",t.POSGLOBAL_ADJUSTMENT="Adjustment",t.POSGLOBAL_PREPAID="Prepaid",t.POSGLOBAL_RETURN="Return",t.POSGLOBAL_DEBT="Debt",t.POSGLOBAL_PAYMENTFEE="Payment Fee",t.POSGLOBAL_MANUFACTURING="Manufacturing",t.POSGLOBAL_ADVANCE="Advance",t}(G||{});var nt={[G.POSGLOBAL_SELL]:[{typeID:2,side:"debit",label:"Account Receivable"},{typeID:1,side:"credit",label:"Sales"},{typeID:4,side:"debit",label:"COGS"},{typeID:3,side:"credit",label:"Sold Inventory"},{typeID:10,side:"debit",label:"Sales Discount"}],[G.POSGLOBAL_BUY]:[{typeID:27,side:"debit",label:"Pending Paid Inventory"},{typeID:5,side:"credit",label:"Account Payable"},{typeID:28,side:"debit",label:"Inventory Bought"},{typeID:27,side:"credit",label:"Pending Paid Inventory"},{typeID:11,side:"credit",label:"Purchase Discount"}],[G.POSGLOBAL_ADJUSTMENT]:[{typeID:26,side:"debit",label:"Adjustment Asset"},{typeID:21,side:"credit",label:"Adjustment Expense"}],[G.POSGLOBAL_PREPAID]:[{typeID:29,side:"debit",label:"Accounting for Prepaid"},{typeID:30,side:"debit",label:"Sales For Prepaid"}],[G.POSGLOBAL_RETURN]:[{typeID:8,side:"debit",label:"Sales Return"},{typeID:27,side:"debit",label:"Inventory"},{typeID:4,side:"credit",label:"COGS"},{typeID:9,side:"credit",label:"Purchase Return"}],[G.POSGLOBAL_DEBT]:[{typeID:17,side:"debit",label:"Consignment Payable"}],[G.POSGLOBAL_PAYMENTFEE]:[{typeID:19,side:"debit",label:"Payment Fee"},{typeID:20,side:"credit",label:"Surcharge"}],[G.POSGLOBAL_MANUFACTURING]:[{typeID:24,side:"debit",label:"Finished Goods"},{typeID:23,side:"credit",label:"Raw Material"},{typeID:25,side:"credit",label:"Production Expenses"}],[G.POSGLOBAL_ADVANCE]:[{typeID:15,side:"debit",label:"Crossing Account"},{typeID:16,side:"debit",label:"Retained Earnings"},{typeID:18,side:"debit",label:"Current Earnings"}]};function ft(t,r){if(t&1){let e=M();i(0,"div",5)(1,"p-button",6),w("onClick",function(){C(e);let a=c();return S(a.onSubmit())}),o()()}}function _t(t,r){if(t&1&&(i(0,"p-tab",10),l(1),o()),t&2){let e=r.$implicit;s("value",e.value),p(),d(e.label)}}function gt(t,r){if(t&1&&(i(0,"div",19)(1,"div")(2,"span"),l(3),o()(),i(4,"div")(5,"span"),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function xt(t,r){if(t&1&&(i(0,"div",19)(1,"div")(2,"span"),l(3),o()(),i(4,"div")(5,"span"),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function ht(t,r){if(t&1&&(i(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),l(4),o(),i(5,"span",17),l(6),o()(),i(7,"p-select",18),f(8,gt,7,2,"ng-template",null,2,u)(10,xt,7,2,"ng-template",null,3,u),o()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function Ct(t,r){if(t&1&&(i(0,"div",19)(1,"div")(2,"span"),l(3),o()(),i(4,"div")(5,"span"),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function St(t,r){if(t&1&&(i(0,"div",19)(1,"div")(2,"span"),l(3),o()(),i(4,"div")(5,"span"),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function vt(t,r){if(t&1&&(i(0,"div",14)(1,"div",15)(2,"div",5)(3,"label",16),l(4),o(),i(5,"span",20),l(6),o()(),i(7,"p-select",18),f(8,Ct,7,2,"ng-template",null,2,u)(10,St,7,2,"ng-template",null,3,u),o()()()),t&2){let e=r.$implicit,n=c(4);s("formGroupName",e.index),p(4),d(e.entry.value.label),p(2),d(e.entry.value.side),p(),s("options",n.posIntegration().options.accounts)}}function yt(t,r){if(t&1&&(i(0,"p-tabpanel",10)(1,"div",11)(2,"div",12)(3,"div",13),y(4,ht,12,4,"div",14,v),o()(),i(6,"div",12)(7,"div",13),y(8,vt,12,4,"div",14,v),o()()()()),t&2){let e=r.$implicit,n=c(3);s("value",e.value),p(),s("formGroupName",e.value),p(3),b(n.getDebitEntries(e.value)),p(4),b(n.getCreditEntries(e.value))}}function bt(t,r){if(t&1){let e=M();i(0,"form",8),w("ngSubmit",function(){C(e);let a=c(2);return S(a.onSubmit())}),i(1,"p-tabs",9)(2,"p-tablist"),y(3,_t,2,2,"p-tab",10,v),o(),i(5,"p-tabpanels"),y(6,yt,10,2,"p-tabpanel",10,v),o()()()}if(t&2){let e=c(2);s("formGroup",e.accountForm),p(),s("value",e.tab())("lazy",!0),p(2),b(e.tabs()),p(3),b(e.tabs())}}function Pt(t,r){if(t&1&&f(0,bt,8,3,"form",7),t&2){let e=c();s("ngIf",e.posIntegration()&&e.accountForm)}}var ot=(()=>{class t{constructor(){this.posConfigService=h(L),this.fb=h(he),this.tab=O(G.POSGLOBAL_SELL),this.tabs=O(Object.values(G).map(e=>({label:e,value:e}))),this.posIntegration=O(null),this.form=O([]),this.descriptionsMap=new Map,this.objectKeys=Object.keys,this.posGlobalTabEnum=G}ngOnInit(){this.posConfigService.getGlobalConfiguration().pipe(E(e=>{this.posIntegration.set(e),this.form.set(e.form),this.descriptionsMap=new Map(e.descriptions.map(n=>[+n.id,n.name])),this.initializeForm()})).subscribe()}initializeForm(){let e={};this.tabs().forEach(n=>{let a=this.getEntriesForTab(n.value);console.log(`Entries for ${n.value}:`,a),e[n.value]=this.fb.array(a.map(m=>this.createEntryFormGroup(m)))}),this.accountForm=this.fb.group(e)}createEntryFormGroup(e){let n=this.fb.group({typeID:[e.typeID],label:[e.label],side:[e.side],accountID:[this.getAccountIDByTypeID(e.typeID)]});return n.get("accountID").valueChanges.subscribe(a=>{this.syncAccountIDs(e.typeID,a,n)}),n}getAccountIDByTypeID(e){return this.form().find(a=>a.typeID===e)?.accountID||""}getEntriesForTab(e){return nt[e]||[]}getTabEntries(e){return this.accountForm.get(e)}onSubmit(){let e=this.accountForm.getRawValue(),n=[],a=new Set;for(let m of Object.values(e))for(let{typeID:_,accountID:U}of m){let Te=`${_}_${U}`;a.has(Te)||(a.add(Te),n.push({typeID:_,accountID:U||Je}))}console.log("Form submitted with value:",n),this.posConfigService.saveGlobalConfiguration({form:n}).subscribe({next:()=>console.log("Save successful"),error:m=>console.error("Save failed",m)})}getDebitEntries(e){return this.getTabEntries(e).controls.map((n,a)=>({entry:n,index:a})).filter(n=>n.entry.value.side==="debit")}getCreditEntries(e){return this.getTabEntries(e).controls.map((n,a)=>({entry:n,index:a})).filter(n=>n.entry.value.side==="credit")}syncAccountIDs(e,n,a){Object.values(this.accountForm.controls).forEach(m=>{m.controls.forEach(_=>{_!==a&&_.get("typeID")?.value===e&&_.get("accountID")?.value!==n&&_.get("accountID")?.setValue(n,{emitEvent:!1})})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","POS Integration"],[1,"d-flex","gap-2"],["label","Submit",3,"onClick"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"border-top",3,"value","lazy"],[3,"value"],[1,"row",3,"formGroupName"],[1,"col"],[1,"row","gap-3"],[1,"col-12",3,"formGroupName"],[1,"form-group","d-flex","flex-column"],["for","",1,"fs-3"],[1,"text-success","fs-3"],["filter","","filterBy","code,name","formControlName","accountID","optionLabel","name","optionValue","id",3,"options"],[1,"d-flex","align-items-center","gap-2"],[1,"text-danger","fs-3"]],template:function(n,a){n&1&&(i(0,"app-main-panel",4),f(1,ft,2,0,"ng-template",null,0,u)(3,Pt,1,1,"ng-template",null,1,u),o())},dependencies:[R,tt,et,Ze,Xe,qe,Qe,Be,K,Y,X,fe,j,de,D,k,A,V,B,Ce,_e,xe,ge],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=t=>[t];function It(t,r){if(t&1&&(i(0,"th",8),l(1),o()),t&2){let e=r.$implicit;p(),d(e.name.slice(0,10))}}function Et(t,r){if(t&1&&(i(0,"tr")(1,"th",6),l(2,"Method"),o(),i(3,"th",7),l(4,"Outlet"),o()(),i(5,"tr"),y(6,It,2,1,"th",8,v),o()),t&2){let e=c(3);p(3),s("colSpan",e.paymentConfiguration().outlets.length),p(3),b(e.paymentConfiguration().outlets)}}function Ft(t,r){if(t&1&&(i(0,"td"),l(1),o()),t&2){let e=r.$implicit;p(),d(e.accountName)}}function Tt(t,r){if(t&1&&(i(0,"tr")(1,"td",9)(2,"a",10),l(3),o()(),y(4,Ft,2,1,"td",null,v),o()),t&2){let e=r.$implicit;p(2),s("routerLink",oe(2,Ot,e.id)),p(),d(e.name),p(),b(e.accounts)}}function Mt(t,r){if(t&1&&(i(0,"p-table",5),f(1,Et,8,1,"ng-template",null,1,u)(3,Tt,6,4,"ng-template",null,2,u),o()),t&2){let e=c(2);s("scrollable",!0)("scrollHeight","calc(100vh - 70px)")("value",e.paymentConfiguration().payment)}}function wt(t,r){t&1&&(i(0,"app-main-panel",4),f(1,Mt,5,3,"ng-template",null,0,u),o())}var it=(()=>{class t{constructor(){this.POSSetupService=h(L),this.paymentConfiguration=O(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration().pipe(E(e=>{this.paymentConfiguration.set(e)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",4,"ngIf"],["pageTitle","Payment Method Accounting"],[3,"scrollable","scrollHeight","value"],["rowspan","3",2,"min-width","300px"],[3,"colSpan"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(n,a){n&1&&f(0,wt,3,0,"app-main-panel",3),n&2&&s("ngIf",a.paymentConfiguration())},dependencies:[R,te,ee,Ke,D,k,A,N],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Dt=()=>({height:"calc(100vh - 70px)"}),Rt=t=>[t];function kt(t,r){if(t&1&&(i(0,"th"),l(1),o()),t&2){let e=r.$implicit;p(),d(e.value)}}function At(t,r){if(t&1&&(i(0,"tr")(1,"th"),l(2,"Name"),o(),y(3,kt,2,1,"th",null,v),o()),t&2){let e=c(3);p(3),b(e.outletList().listCOAType)}}function Lt(t,r){if(t&1&&(i(0,"td"),l(1),o()),t&2){let e=r.$implicit;p(),d(e)}}function Gt(t,r){if(t&1&&(i(0,"tr")(1,"td")(2,"a",6),l(3),o()(),y(4,Lt,2,1,"td",null,v),o()),t&2){let e=r.$implicit;p(2),s("routerLink",oe(2,Rt,e.OutletID)),p(),P(" ",e.OutletName,""),p(),b(e.Accounts)}}function Nt(t,r){if(t&1&&(i(0,"p-panel")(1,"p-table",5),f(2,At,5,0,"ng-template",null,1,u)(4,Gt,6,4,"ng-template",null,2,u),o()()),t&2){let e=c(2);T(I(5,Dt)),p(),s("scrollable",!0)("scrollHeight","calc(100vh - 100px)")("value",e.outletList().listOutletAccount)}}function Bt(t,r){if(t&1&&f(0,Nt,6,6,"p-panel",4),t&2){let e=c();s("ngIf",e.outletList())}}var at=(()=>{class t{constructor(){this.POSSetupService=h(L),this.outletList=O(null)}ngOnInit(){this.POSSetupService.fetchPOSOutletConfiguration().pipe(E(e=>{this.outletList.set(e)})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-outlet"]],decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["pageTitle","Outlet Account"],[3,"style",4,"ngIf"],[3,"scrollable","scrollHeight","value"],[1,"link","link-primary",3,"routerLink"]],template:function(n,a){n&1&&(i(0,"app-main-panel",3),f(1,Bt,1,1,"ng-template",null,0,u),o())},dependencies:[R,D,k,z,te,ee,A,N,W,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Vt=()=>({height:"calc(100vh - 100px)"}),$t=()=>({height:"calc(100vh - 150px)"});function Wt(t,r){if(t&1){let e=M();i(0,"a",5),l(1,"Cancel"),o(),i(2,"p-button",6),w("onClick",function(){C(e);let a=c();return S(a.updatePOsOutletConfiguration())}),o()}}function Ut(t,r){if(t&1&&(i(0,"div",16)(1,"div",17)(2,"span"),l(3),o()(),i(4,"div",17)(5,"span",17),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function jt(t,r){if(t&1&&(i(0,"div",16)(1,"div",17)(2,"span"),l(3),o()(),i(4,"div",18)(5,"span",17),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function Ht(t,r){if(t&1&&(i(0,"div",12)(1,"span",14),l(2),o(),i(3,"p-select",15),f(4,Ut,7,2,"ng-template",null,2,u)(6,jt,7,2,"ng-template",null,3,u),o()()),t&2){let e,n=r.$implicit,a=r.$index,m=c(3);s("formGroupName",a),p(2),d((e=n.get("TypeName"))==null?null:e.value),p(),s("options",m.options.accounts)}}function zt(t,r){t&1&&$(0,"hr")}function Yt(t,r){if(t&1&&(i(0,"div",9)(1,"h3",10),l(2),ke(3,"titlecase"),o(),i(4,"div",11),y(5,Ht,8,3,"div",12,v),o()(),f(7,zt,1,0,"hr",13)),t&2){let e,n=r.$implicit,a=r.$index,m=r.$index,_=r.$count,U=c(2);s("formGroupName",a),p(2),P(" ",Ae(3,3,(e=n.get("groupName"))==null?null:e.value)," "),p(3),b(U.getAccountsFormArray(m).controls),p(2),s("ngIf",m!==_-1)}}function Kt(t,r){if(t&1&&(i(0,"p-panel")(1,"p-scroll-panel")(2,"form",7)(3,"div",8),y(4,Yt,8,5,null,null,v),o()()()()),t&2){let e=c();T(I(5,Vt)),p(),T(I(6,$t)),p(),s("formGroup",e.accountsForm),p(2),b(e.accountGroupsArray.controls)}}var rt=(()=>{class t{constructor(){this.route=h(ie),this.POSSetupService=h(L),this.outletForm=O(null),this.allAccounts=[],this.options=null,this.outletName="",this.accountGroups=[{name:"sell",typeIds:[1,2],accounts:[]},{name:"delivery",typeIds:[3,4],accounts:[]},{name:"buy",typeIds:[27,11,28],accounts:[]},{name:"purchase return",typeIds:[9],accounts:[]},{name:"sales return",typeIds:[8],accounts:[]},{name:"adjustment",typeIds:[21,26],accounts:[]}],this.fb=h(he)}ngOnInit(){this.accountsForm=this.fb.group({accountGroups:this.fb.array([])}),this.route.paramMap.pipe(q(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),E(e=>{this.allAccounts=e.form,this.options=e.options,this.outletName=e.form[0].OutletName,this.accountGroups.forEach(a=>{a.accounts=this.allAccounts.filter(m=>a.typeIds.includes(m.TypeID))});let n=this.accountsForm.get("accountGroups");this.accountGroups.forEach(a=>{n.push(this.createAccountGroupControl(a))})})).subscribe()}get accountGroupsArray(){return this.accountsForm.get("accountGroups")}getAccountsFormArray(e){return this.accountGroupsArray.at(e).get("accounts")}createAccountGroupControl(e){return this.fb.group({groupName:[e.name],accounts:this.fb.array(e.accounts.map(n=>this.createAccountControl(n)))})}createAccountControl(e){return this.fb.group({AccountID:[e.AccountID],TypeID:[e.TypeID],TypeName:[e.TypeName],OutletID:[e.OutletID],OutletName:[e.OutletName]})}updatePOsOutletConfiguration(){let{accountGroups:e}=this.accountsForm.value,n={form:e.flatMap(a=>a.accounts.map(m=>({AccountID:m.AccountID,TypeID:m.TypeID,TypeName:m.TypeName,OutletID:m.OutletID,OutletName:m.OutletName})))};this.POSSetupService.updatePOSOutletConfiguration(n).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-outlet-form"]],decls:5,vars:2,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],["routerLink","/pos-setup/outlets",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"",3,"formGroup"],["formArrayName","accountGroups",1,"d-flex","flex-column","gap-2"],[1,"row",3,"formGroupName"],[1,"fs-4","fw-semibold"],["formArrayName","accounts",1,"row","row-gap-3"],[1,"col-6",3,"formGroupName"],[4,"ngIf"],[1,"fs-3"],["formControlName","AccountID","filter","","filterBy","code,name","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-100",3,"options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,a){n&1&&(i(0,"app-main-panel",4),f(1,Wt,3,0,"ng-template",null,0,u)(3,Kt,6,7,"ng-template",null,1,u),o()),n&2&&s("pageTitle","Edit "+a.outletName)("hasMainWrapperPadding",!0)},dependencies:[R,D,k,Le,z,Ce,fe,j,de,_e,xe,ge,Ne,K,Y,W,H,Z,V,B,A,N],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var qt=()=>({height:"calc(100vh - 100px)"}),Qt=()=>({width:"100%",height:"calc(100vh - 150px)"}),Xt=()=>({width:"100%"});function Zt(t,r){if(t&1){let e=M();i(0,"a",6),l(1,"Cancel"),o(),i(2,"p-button",7),w("onClick",function(){C(e);let a=c(3);return S(a.updatePOSOutletConfiguration())}),o()}}function en(t,r){if(t&1&&(i(0,"div",16)(1,"div",17)(2,"span"),l(3),o()(),i(4,"div",17)(5,"span",17),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function tn(t,r){if(t&1&&(i(0,"div",16)(1,"div",17)(2,"span"),l(3),o()(),i(4,"div",18)(5,"span",17),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function nn(t,r){if(t&1){let e=M();i(0,"div",9)(1,"div",10)(2,"div",11)(3,"label",12),l(4),o()(),$(5,"div",13),i(6,"div",14)(7,"p-select",15),w("ngModelChange",function(a){let m=C(e).$index,_=c(4);return S(_.updateAccountById(a,m))}),f(8,en,7,2,"ng-template",null,2,u)(10,tn,7,2,"ng-template",null,3,u),o()()()()}if(t&2){let e=r.$implicit,n=r.$index,a=c(4);p(4),d(e.outletName.slice(0,15)),p(3),T(I(7,Xt)),s("ngModel",a.paymentForm().form.accounts[n].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",a.paymentForm().options.chartOfAccount)}}function on(t,r){if(t&1&&(i(0,"p-card")(1,"p-scrollpanel")(2,"div",8),y(3,nn,12,8,"div",9,v),o()()()),t&2){let e=c(3);T(I(4,qt)),p(),T(I(5,Qt)),p(2),b(e.paymentForm().form.accounts)}}function an(t,r){if(t&1&&(i(0,"app-main-panel",4),f(1,Zt,3,0,"ng-template",null,0,u)(3,on,5,6,"ng-template",null,1,u),o()),t&2){let e=c(2);s("pageTitle",e.paymentForm().form.paymentMethod.name+" Form Accounting")("hasMainWrapperPadding",!0)}}function rn(t,r){if(t&1&&f(0,an,5,2,"app-main-panel",5),t&2){let e=c();s("ngIf",e.paymentForm())}}var lt=(()=>{class t{constructor(){this.route=h(ie),this.POSSetupService=h(L),this.paymentForm=O(null),this.router=h(Ge)}ngOnInit(){this.route.paramMap.pipe(q(e=>+e.get("id")),Q(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),E(e=>{this.paymentForm.set(e)}),Ie("response")).subscribe()}updateAccountById(e,n){let a=this.paymentForm().form.accounts,m=x(g({},this.paymentForm()),{form:x(g({},this.paymentForm().form),{accounts:a.map((_,U)=>U===n?x(g({},_),{accountID:e}):_)})});this.paymentForm.set(m)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(Ie("response"),E(()=>{this.router.navigate(["/pos-setup/payments"])})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding"],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],["routerLink","/pos-setup/payments",1,"p-button","p-button-outlined","p-button-secondary"],["label","Submit",3,"onClick"],[1,"row","row-gap-3"],[1,"col-6","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-2"],["for",""],[1,"col-3"],[1,"col-7"],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"],[1,"d-flex","gap-2"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,a){n&1&&f(0,rn,1,1,"app-main-panel",4),n&2&&De(a.paymentForm()?0:-1)},dependencies:[z,Se,R,D,k,re,Z,K,Y,X,j,ae,A,N,V,B,W],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var pn=()=>({height:"calc(100vh - 70px)"}),ln=()=>({width:"100%",height:"calc(100vh - 100px)"});function mn(t,r){if(t&1){let e=M();i(0,"div",5)(1,"a",6),l(2,"Cancel"),o(),i(3,"p-button",7),w("onClick",function(){C(e);let a=c();return S(a.updatePOSTaxConfiguration())}),o()()}}function cn(t,r){if(t&1&&(i(0,"div",5)(1,"div",15)(2,"span"),l(3),o()(),i(4,"div",15)(5,"span",15),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function sn(t,r){if(t&1&&(i(0,"div",5)(1,"div",15)(2,"span"),l(3),o()(),i(4,"div",16)(5,"span",15),l(6),o()()()),t&2){let e=r.$implicit;p(3),P("(",e.code,")"),p(3),d(e.name)}}function un(t,r){if(t&1){let e=M();i(0,"div",11)(1,"div",12)(2,"label",13),l(3),o(),i(4,"p-select",14),w("ngModelChange",function(a){let m=C(e).$index,_=c(2);return S(_.updateAccountID(a,m))}),f(5,cn,7,2,"ng-template",null,2,u)(7,sn,7,2,"ng-template",null,3,u),o()()()}if(t&2){let e=r.$implicit,n=r.$index,a=c(2);p(3),d(e.name),p(),s("options",a.taxForm().options.chartOfAccount)("ngModel",a.taxForm().form[n].accountID)}}function dn(t,r){if(t&1&&(i(0,"p-panel")(1,"p-scroll-panel")(2,"div",8)(3,"div",9)(4,"div",10),y(5,un,9,3,"div",11,v),o()()()()()),t&2){let e=c();T(I(4,pn)),p(),T(I(5,ln)),p(4),b(e.taxForm().form)}}var mt=(()=>{class t{constructor(){this.POSSetupService=h(L),this.taxForm=O(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(E(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,n){let a=this.taxForm().form,m=x(g({},this.taxForm()),{form:a.map((_,U)=>U===n?x(g({},_),{accountID:e}):_)});this.taxForm.set(m)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(E(n=>console.log(n))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],["pageTitle","Tax Setup"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col-4"],[1,"row","row-gap-3"],[1,"col-12"],[1,"d-flex","flex-column"],["for",""],["filter","","filterBy","name,code","optionLabel","name","optionValue","id","placeholder","Select an Account",3,"ngModelChange","options","ngModel"],[1,""],[1,"d-inline-block","text-truncate",2,"max-width","250px"]],template:function(n,a){n&1&&(i(0,"app-main-panel",4),f(1,mn,4,0,"ng-template",null,0,u)(3,dn,7,6,"ng-template",null,1,u),o())},dependencies:[R,z,D,K,Y,re,Z,X,j,ae,A,N,V,B,W,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var fn=()=>({height:"calc(100vh - 70px)"}),_n=()=>({"min-width":"50rem"}),gn=t=>[t];function xn(t,r){t&1&&$(0,"p-button",6)}function hn(t,r){if(t&1&&f(0,xn,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.hasCheckedItems())}}function Cn(t,r){t&1&&(i(0,"tr")(1,"th",8),$(2,"p-tableHeaderCheckbox"),o(),i(3,"th"),l(4,"Name"),o(),i(5,"th"),l(6,"Description"),o()())}function Sn(t,r){if(t&1&&(i(0,"tr")(1,"td"),$(2,"p-tableCheckbox",9),o(),i(3,"td")(4,"a",10),l(5),o()(),i(6,"td"),l(7),o()()),t&2){let e,n=r.$implicit;p(2),s("value",n),p(2),s("routerLink",oe(4,gn,n.id)),p(),d(n.name),p(2),d((e=n.description)!==null&&e!==void 0?e:"N/A")}}function vn(t,r){if(t&1){let e=M();i(0,"p-panel")(1,"p-table",7),w("onRowSelect",function(a){C(e);let m=c();return S(m.onRowSelect(a))})("onRowUnselect",function(a){C(e);let m=c();return S(m.onRowSelect(a))})("onHeaderCheckboxToggle",function(a){C(e);let m=c();return S(m.onSelectAll(a))}),f(2,Cn,7,0,"ng-template",null,2,u)(4,Sn,8,6,"ng-template",null,3,u),o()()}if(t&2){let e=c();T(I(4,fn)),p(),s("value",e.writeoffList().data)("tableStyle",I(5,_n))}}var ct=(()=>{class t{constructor(){this.POSSetupService=h(L),this.writeoffList=O(null),this.hasCheckedItems=me(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(n=>n&&n.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe(q(e=>x(g({},e),{data:e.data.map(n=>x(g({},n),{checked:!1}))})),E(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let n=this.writeoffList();if(!n||!n.data)return;let a=n.data.findIndex(m=>m.id===e.data.id);if(a!==-1){let m=[...n.data];m[a]=x(g({},m[a]),{checked:!m[a].checked}),this.writeoffList.set(x(g({},n),{data:m}))}}onSelectAll(e){let n=this.writeoffList();if(!n?.data)return;let a=n.data.map(m=>x(g({},m),{checked:e.checked}));this.writeoffList.set(x(g({},n),{data:a}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-writeoff"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Write Off"],["severity","danger","label","Delete","icon","fa-solid fa-trash",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","4rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(n,a){n&1&&(i(0,"app-main-panel",4),f(1,hn,1,1,"ng-template",null,0,u)(3,vn,6,6,"ng-template",null,1,u),o())},dependencies:[R,D,k,te,ee,ve,ye,A,N,V,B,W,H],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var yn=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function bn(t,r){if(t&1){let e=M();i(0,"div",6)(1,"a",7),l(2,"Cancel"),o(),i(3,"p-button",8),w("onClick",function(){C(e);let a=c(2);return S(a.updateWriteOffConfiguration())}),o()()}}function Pn(t,r){if(t&1&&(i(0,"div",6)(1,"span",16),l(2),o(),i(3,"span",16),l(4),o()()),t&2){let e=r.$implicit;p(2),P("(",e.code,")"),p(2),d(e.name)}}function On(t,r){if(t&1&&(i(0,"div",6)(1,"span",16),l(2),o(),i(3,"span",16),l(4),o()()),t&2){let e=r.$implicit;p(2),P("(",e.code,")"),p(2),d(e.name)}}function In(t,r){if(t&1){let e=M();i(0,"div",12)(1,"div",13)(2,"label",14),l(3),o(),i(4,"p-select",15),w("ngModelChange",function(a){let m=C(e).$index,_=c(3);return S(_.updateAccountById(a,m))}),f(5,Pn,5,2,"ng-template",null,2,u)(7,On,5,2,"ng-template",null,3,u),o()()()}if(t&2){let e=r.$implicit,n=c(3);p(3),d(e.name),p(),s("ngModel",e.accountID)("options",n.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function En(t,r){if(t&1&&(i(0,"p-card")(1,"p-scroll-panel")(2,"div",9)(3,"div",10)(4,"div",11),y(5,In,9,5,"div",12,v),o()()()()()),t&2){let e=c(2);p(),T(I(2,yn)),p(4),b(e.writeOffForm().form)}}function Fn(t,r){if(t&1&&(i(0,"app-main-panel",5),f(1,bn,4,0,"ng-template",null,0,u)(3,En,7,3,"ng-template",null,1,u),o()),t&2){let e=c();s("pageTitle","Write Off Form "+e.writeOffForm().info.name)("hasMainWrapperPadding",!0)}}var st=(()=>{class t{constructor(){this.POSSetupService=h(L),this.route=h(ie),this.writeOffForm=O(null)}ngOnInit(){this.route.paramMap.pipe(q(e=>e.get("id")),Q(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),E(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,n){let a=this.writeOffForm().form,m=x(g({},this.writeOffForm()),{form:a.map((_,U)=>U===n?x(g({},_),{accountID:e}):_)});this.writeOffForm.set(m)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["selectedItem",""],["item",""],[3,"pageTitle","hasMainWrapperPadding",4,"ngIf"],[3,"pageTitle","hasMainWrapperPadding"],[1,"d-flex","gap-2"],["routerLink","/pos-setup/writeoff",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"onClick"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for","",1,"d-inline-block","text-truncate",2,"max-width","300px"],["filter","","filterBy","name,code","optionLabel","name","filter","","filterBy","name,code","optionValue","id","placeholder","Select an account",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"],[1,""]],template:function(n,a){n&1&&f(0,Fn,5,2,"app-main-panel",4),n&2&&s("ngIf",a.writeOffForm())},dependencies:[R,D,k,z,Se,re,Z,K,Y,X,j,ae,A,N,V,B],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ut=(()=>{class t{constructor(){this.httpService=h(ue)}getExpenseOptions(){return this.httpService.get(void 0,"/api/SetupExpenseOption/GetExpenseOptions")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Tn={data:{expenseOptions:[]}},Fe=Ve(je(Tn),He("POSExpenseOptionStore"),$e(t=>({hasCheckedRows:me(()=>t.data().expenseOptions.some(r=>r.checked)),checkedInvoice:me(()=>t.data().expenseOptions.filter(r=>r.checked).map(r=>r.id))})),Ue(t=>{let r=h(ut);return{onRowSelect(n){ce(t,a=>{let m=a.data.expenseOptions.map(_=>_.id===n.id?x(g({},_),{checked:!0}):_);return x(g({},a),{data:x(g({},a.data),{expenseOptions:m})})})},onRowUnselect(n){ce(t,a=>{let m=a.data.expenseOptions.map(_=>_.id===n.id?x(g({},_),{checked:!1}):_);return x(g({},a),{data:x(g({},a.data),{expenseOptions:m})})})},onHeaderCheckboxToggle(n){ce(t,a=>{let m=a.data.expenseOptions.map(_=>x(g({},_),{checked:n}));return x(g({},a),{data:x(g({},a.data),{expenseOptions:m})})})},getExpenseOptions:ze(Me(Q(()=>r.getExpenseOptions().pipe(Ye({next:n=>{ce(t,a=>x(g({},a),{data:x(g({},a.data),{expenseOptions:n.expenseOptions.map(m=>x(g({},m),{checked:!1}))})}))},error:n=>{console.error("Error fetching expense options:",n)}})))))}}),We({onInit:t=>{t.getExpenseOptions()}}));var Mn=()=>({height:"calc(100vh - 70px)"});function wn(t,r){t&1&&$(0,"p-button",6)}function Dn(t,r){if(t&1&&f(0,wn,1,0,"p-button",5),t&2){let e=c();s("ngIf",e.store.hasCheckedRows())}}function Rn(t,r){t&1&&(i(0,"tr")(1,"th",8),$(2,"p-tableHeaderCheckbox"),o(),i(3,"th"),l(4,"Name"),o(),i(5,"th"),l(6,"Account"),o(),i(7,"th"),l(8,"Description"),o()())}function kn(t,r){if(t&1&&(i(0,"tr")(1,"td"),$(2,"p-tableCheckbox",9),o(),i(3,"td"),l(4),o(),i(5,"td"),l(6),o(),i(7,"td"),$(8,"p",10),o()()),t&2){let e=r.$implicit;p(2),s("value",e),p(2),d(e.name),p(2),d(e.accountName),p(2),s("innerHTML",e.description,we)}}function An(t,r){if(t&1){let e=M();i(0,"p-panel")(1,"p-table",7),w("onRowSelect",function(a){C(e);let m=c();return S(m.onRowSelect(a))})("onRowUnselect",function(a){C(e);let m=c();return S(m.onRowUnselect(a))})("onHeaderCheckboxToggle",function(a){C(e);let m=c();return S(m.onHeaderCheckboxToggle(a))}),f(2,Rn,9,0,"ng-template",null,2,u)(4,kn,9,4,"ng-template",null,3,u),o()()}if(t&2){let e=c();T(I(3,Mn)),p(),s("value",e.store.data().expenseOptions)}}var dt=(()=>{class t{constructor(){this.store=h(Fe)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){Array.isArray(e.data)?e.data.forEach(n=>{this.store.onRowUnselect(n)}):this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["app-pos-expense-option"]],features:[Re([Fe])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Contact Form"],["label","Delete","severity","danger","icon","fa-solid fa-trash",4,"ngIf"],["label","Delete","severity","danger","icon","fa-solid fa-trash"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value"],[2,"width","4rem"],[3,"value"],[3,"innerHTML"]],template:function(n,a){n&1&&(i(0,"app-main-panel",4),f(1,Dn,1,1,"ng-template",null,0,u)(3,An,6,4,"ng-template",null,1,u),o())},dependencies:[R,te,ee,ve,ye,W,H,V,B,D,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ma=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:ot},{path:"outlets",component:at},{path:"outlets/:id",component:rt},{path:"payments",component:it},{path:"payments/:id",component:lt},{path:"taxs",component:mt},{path:"writeoff",component:ct},{path:"writeoff/:id",component:st},{path:"expense-option",component:dt}]}];export{Ma as POS_SETUP_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{p as u}from"./chunk-FUGCJNGU.js";import{Ea as f}from"./chunk-BWS6U7BM.js";import{Ab as c,Jb as C,Kb as m,Ob as h,Ub as r,Vb as l,Wb as o,gb as a,ra as d,ta as s,wb as p}from"./chunk-D5AXB5DE.js";var L=(()=>{class i extends u{pathId;ngOnInit(){this.pathId="url(#"+f()+")"}static \u0275fac=(()=>{let t;return function(e){return(t||(t=s(i)))(e||i)}})();static \u0275cmp=p({type:i,selectors:[["TimesCircleIcon"]],features:[c],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,e){n&1&&(d(),r(0,"svg",0)(1,"g"),o(2,"path",1),l(),r(3,"defs")(4,"clipPath",2),o(5,"rect",3),l()()()),n&2&&(h(e.getClassNames()),C("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role),a(),C("clip-path",e.pathId),a(3),m("id",e.pathId))},encapsulation:2})}return i})();export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a}from"./chunk-
|
|
1
|
+
import{d as a}from"./chunk-VI3AV775.js";import{V as o,ba as i,ha as n}from"./chunk-D5AXB5DE.js";import{a as c}from"./chunk-YQFG5XE2.js";var C=(()=>{class r{constructor(){this.httpService=n(a)}getChartOfAccountLoader(){return this.httpService.get("","api/ChartOfAccountLoader")}getPaginatedChartAccounts(t){let e=c({},t);return this.httpService.post("","api/ChartOfAccount/GetPaginatedList",e)}getChartAccountForm(){return this.httpService.get("","api/ChartOfAccount/Form")}getChartAccountById(t){return this.httpService.get("",`api/ChartOfAccount/Info/${t}`)}getChartAccountFormById(t){return this.httpService.get("",`api/ChartOfAccount/Form/${t}`)}submitChartAccount(t,e={}){return this.httpService.post("","api/ChartOfAccount/Submit",t,e)}deleteChartAccount(t){if(t.length>1){let e={body:t};return this.httpService.delete("","api/ChartOfAccount/Batch",e)}else return this.httpService.delete("",`api/ChartOfAccount/${t[0]}`)}fetchCategoryOptions(){return this.httpService.get("","api/ChartOfAccount/CategoryOptions")}getCachedCategoriesOptions(){return this.categoryOptionsCache$||(this.categoryOptionsCache$=this.fetchCategoryOptions().pipe(o(1))),this.categoryOptionsCache$}exportChartOfAccounts(t){return this.httpService.post(void 0,"api/ChartOfAccountExport/export",t,{responseType:"blob"})}importPreviewChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importpreview",t)}importConfirmChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importconfirm",t)}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fa as p,I as x,Q as y,
|
|
1
|
+
import{Fa as p,I as x,Q as y,Wc as w,Yc as M,Z as g,b,g as m,ha as f,k as j,na as I,o as h,va as d,wa as l}from"./chunk-D5AXB5DE.js";function z(t,c){c?.injector||I(z);let o=c?.injector??f(d),e=new m,n=t(e).subscribe();o.get(l).onDestroy(()=>n.unsubscribe());let r=(i,v)=>{if(A(i))return e.next(i),{destroy:b};let D=F(),a=v?.injector??D??o;if(p(i)){let s=M(()=>{let S=i();w(()=>e.next(S))},{injector:a});return n.add({unsubscribe:()=>s.destroy()}),s}let u=i.subscribe(s=>e.next(s));return n.add(u),a!==o&&a.get(l).onDestroy(()=>u.unsubscribe()),{destroy:()=>u.unsubscribe()}};return r.destroy=n.unsubscribe.bind(n),r}function A(t){return!p(t)&&!h(t)}function F(){try{return f(d)}catch{return}}function q(t,c,o){let e=typeof t=="function"?{next:t,error:c,complete:o}:t;return n=>n.pipe(g({next:e.next,complete:e.complete}),x(r=>(e.error(r),j)),e.finalize?y(e.finalize):r=>r)}export{z as a,q as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as N,m as E,n as L,p as j}from"./chunk-353U23ZQ.js";import{A as y,Ac as H,Bb as M,C as x,Da as c,E as D,Jc as $,K as h,Kc as U,Lb as s,Mb as r,Nb as k,O as I,Q as S,Vb as b,Wb as f,X as _,Xb as a,Z as w,_b as T,ba as v,fc as u,ga as F,gb as i,ha as B,i as m,mb as P,qb as R,ta as p,vb as l,xb as q,zb as g}from"./chunk-ARSLNNKY.js";var V=t=>({"background-color":t});function Y(t,d){t&1&&T(0)}function G(t,d){if(t&1&&a(0,"sk-cube-grid",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function z(t,d){if(t&1&&a(0,"sk-chasing-dots",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function X(t,d){if(t&1&&a(0,"sk-double-bounce",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function A(t,d){if(t&1&&a(0,"sk-rotating-plane",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function K(t,d){if(t&1&&a(0,"sk-spinner-pulse",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function Z(t,d){if(t&1&&a(0,"sk-three-bounce",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function J(t,d){if(t&1&&a(0,"sk-wandering-cubes",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function Q(t,d){if(t&1&&a(0,"sk-wave",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function ee(t,d){if(t&1&&(b(0,"div",1),M(1,Y,1,0,"ng-container",2)(2,G,1,1,"sk-cube-grid",3)(3,z,1,1,"sk-chasing-dots",3)(4,X,1,1,"sk-double-bounce",3)(5,A,1,1,"sk-rotating-plane",3)(6,K,1,1,"sk-spinner-pulse",3)(7,Z,1,1,"sk-three-bounce",3)(8,J,1,1,"sk-wandering-cubes",3)(9,Q,1,1,"sk-wave",3),f()),t&2){let e=u();r("opacity",e.opacity()),k("backdrop",e.backdrop()),s("ngStyle",H(14,V,e.backdrop()?e.backdropBackgroundColor():"transparent")),i(),s("ngComponentOutlet",e.entryComponent()),i(),s("ngIf",e.spinner()===e.spinkit.skCubeGrid),i(),s("ngIf",e.spinner()===e.spinkit.skChasingDots),i(),s("ngIf",e.spinner()===e.spinkit.skDoubleBounce),i(),s("ngIf",e.spinner()===e.spinkit.skRotatingPlane),i(),s("ngIf",e.spinner()===e.spinkit.skSpinnerPulse),i(),s("ngIf",e.spinner()===e.spinkit.skThreeBounce),i(),s("ngIf",e.spinner()===e.spinkit.skWanderingCubes),i(),s("ngIf",e.spinner()===e.spinkit.skWave)}}var C=(()=>{class t{backgroundColor=c();static \u0275fac=function(o){return new(o||t)};static \u0275dir=q({type:t,inputs:{backgroundColor:[1,"backgroundColor"]}})}return t})(),te=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-chasing-dots"]],features:[g],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),ne=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-cube-grid"]],features:[g],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]})}return t})(),oe=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-double-bounce"]],features:[g],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),ie=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-rotating-plane"]],features:[g],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(o,n){o&1&&a(0,"div",0),o&2&&r("background-color",n.backgroundColor())},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]})}return t})(),re=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-spinner-pulse"]],features:[g],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(o,n){o&1&&a(0,"div",0),o&2&&r("background-color",n.backgroundColor())},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]})}return t})(),se=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-three-bounce"]],features:[g],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]})}return t})(),ae=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-wandering-cubes"]],features:[g],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]})}return t})(),ce=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-wave"]],features:[g],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]})}return t})(),W={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var O=(()=>{class t{_pendingRequests=0;_pendingRequestsStatus$=new m(1);_filteredUrlPatterns=[];_filteredMethods=[];_filteredHeaders=[];_forceByPass=!1;get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequestsStatusSubject$(){return this._pendingRequestsStatus$}get pendingRequests(){return this._pendingRequests}set pendingRequests(e){this._pendingRequests=e}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(e){this._filteredMethods=e}set filteredHeaders(e){this._filteredHeaders=e}set forceByPass(e){this._forceByPass=e}shouldBypassUrl(e){return this._filteredUrlPatterns.some(o=>o.test(e))}shouldBypassMethod(e){return this._filteredMethods.some(o=>o.toUpperCase()===e.method.toUpperCase())}shouldBypassHeader(e){return this._filteredHeaders.some(o=>e.headers.has(o))}shouldBypass(e){return this._forceByPass||this.shouldBypassUrl(e.urlWithParams)||this.shouldBypassMethod(e)||this.shouldBypassHeader(e)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),de=(()=>{class t{pendingRequestsInterceptorConfigurer;_visibility$=new m(1);constructor(e){this.pendingRequestsInterceptorConfigurer=e}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptorConfigurer.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptorConfigurer.forceByPass=!1}static \u0275fac=function(o){return new(o||t)(F(O))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),me=(()=>{class t{pendingRequestsInterceptorConfigurer;spinnerVisibility;spinkit=W;isVisible$;visibleUntil=Date.now();backdrop=c(!0);backgroundColor=c();debounceDelay=c(0);entryComponent=c(null);extraDuration=c(0);filteredHeaders=c([]);filteredMethods=c([]);filteredUrlPatterns=c([]);minDuration=c(0);opacity=c(".7");backdropBackgroundColor=c("#f1f1f1");spinner=R(W.skWave);constructor(e,o){this.pendingRequestsInterceptorConfigurer=e,this.spinnerVisibility=o}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[e,o]=D(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$,n=>n);this.isVisible$=x(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$.pipe(_(()=>e.pipe(h(()=>y(this.debounceDelay()))))),e.pipe(_(()=>o.pipe(h(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(I(),w(n=>this.updateExpirationDelay(n)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent()&&this.spinner.update(()=>null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns().length&&this.filteredUrlPatterns().forEach(e=>this.pendingRequestsInterceptorConfigurer.filteredUrlPatterns.push(new RegExp(e)))}initFilteredMethods(){this.pendingRequestsInterceptorConfigurer.filteredMethods=this.filteredMethods()}initFilteredHeaders(){this.pendingRequestsInterceptorConfigurer.filteredHeaders=this.filteredHeaders()}updateExpirationDelay(e){e&&(this.visibleUntil=Date.now()+this.minDuration())}getVisibilityTimer$(){return y(Math.max(this.extraDuration(),this.visibleUntil-Date.now()))}static \u0275fac=function(o){return new(o||t)(P(O),P(de))};static \u0275cmp=l({type:t,selectors:[["ng-http-loader"]],inputs:{backdrop:[1,"backdrop"],backgroundColor:[1,"backgroundColor"],debounceDelay:[1,"debounceDelay"],entryComponent:[1,"entryComponent"],extraDuration:[1,"extraDuration"],filteredHeaders:[1,"filteredHeaders"],filteredMethods:[1,"filteredMethods"],filteredUrlPatterns:[1,"filteredUrlPatterns"],minDuration:[1,"minDuration"],opacity:[1,"opacity"],backdropBackgroundColor:[1,"backdropBackgroundColor"],spinner:[1,"spinner"]},outputs:{spinner:"spinnerChange"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(o,n){o&1&&(M(0,ee,10,16,"div",0),$(1,"async")),o&2&&s("ngIf",U(1,1,n.isVisible$))},dependencies:[ne,te,oe,ie,re,se,ae,ce,L,N,E,j],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]})}return t})();function ye(t,d){let e=B(O),o=e.shouldBypass(t);return o||(e.pendingRequests++,e.pendingRequests===1&&e.pendingRequestsStatusSubject$.next(!0)),d(t).pipe(S(()=>{o||(e.pendingRequests--,e.pendingRequests===0&&e.pendingRequestsStatusSubject$.next(!1))}))}export{de as a,me as b,ye as c};
|
|
1
|
+
import{d as N,f as E,g as L,i as j}from"./chunk-KQAMA66M.js";import{A as y,Ab as g,C as x,Cb as M,Da as c,E as D,Ic as $,Jc as U,K as h,Kb as s,Lb as r,Mb as k,O as I,Q as S,Ub as b,Vb as f,Wb as a,X as _,Z as w,Zb as T,ba as v,ec as u,ga as F,gb as i,ha as B,i as m,mb as P,rb as R,ta as p,wb as l,yb as q,zc as H}from"./chunk-D5AXB5DE.js";var V=t=>({"background-color":t});function Y(t,d){t&1&&T(0)}function G(t,d){if(t&1&&a(0,"sk-cube-grid",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function z(t,d){if(t&1&&a(0,"sk-chasing-dots",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function X(t,d){if(t&1&&a(0,"sk-double-bounce",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function A(t,d){if(t&1&&a(0,"sk-rotating-plane",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function K(t,d){if(t&1&&a(0,"sk-spinner-pulse",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function Z(t,d){if(t&1&&a(0,"sk-three-bounce",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function J(t,d){if(t&1&&a(0,"sk-wandering-cubes",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function Q(t,d){if(t&1&&a(0,"sk-wave",4),t&2){let e=u(2);s("backgroundColor",e.backgroundColor())}}function ee(t,d){if(t&1&&(b(0,"div",1),M(1,Y,1,0,"ng-container",2)(2,G,1,1,"sk-cube-grid",3)(3,z,1,1,"sk-chasing-dots",3)(4,X,1,1,"sk-double-bounce",3)(5,A,1,1,"sk-rotating-plane",3)(6,K,1,1,"sk-spinner-pulse",3)(7,Z,1,1,"sk-three-bounce",3)(8,J,1,1,"sk-wandering-cubes",3)(9,Q,1,1,"sk-wave",3),f()),t&2){let e=u();r("opacity",e.opacity()),k("backdrop",e.backdrop()),s("ngStyle",H(14,V,e.backdrop()?e.backdropBackgroundColor():"transparent")),i(),s("ngComponentOutlet",e.entryComponent()),i(),s("ngIf",e.spinner()===e.spinkit.skCubeGrid),i(),s("ngIf",e.spinner()===e.spinkit.skChasingDots),i(),s("ngIf",e.spinner()===e.spinkit.skDoubleBounce),i(),s("ngIf",e.spinner()===e.spinkit.skRotatingPlane),i(),s("ngIf",e.spinner()===e.spinkit.skSpinnerPulse),i(),s("ngIf",e.spinner()===e.spinkit.skThreeBounce),i(),s("ngIf",e.spinner()===e.spinkit.skWanderingCubes),i(),s("ngIf",e.spinner()===e.spinkit.skWave)}}var C=(()=>{class t{backgroundColor=c();static \u0275fac=function(o){return new(o||t)};static \u0275dir=q({type:t,inputs:{backgroundColor:[1,"backgroundColor"]}})}return t})(),te=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-chasing-dots"]],features:[g],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),ne=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-cube-grid"]],features:[g],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]})}return t})(),oe=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-double-bounce"]],features:[g],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),ie=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-rotating-plane"]],features:[g],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(o,n){o&1&&a(0,"div",0),o&2&&r("background-color",n.backgroundColor())},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]})}return t})(),re=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-spinner-pulse"]],features:[g],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(o,n){o&1&&a(0,"div",0),o&2&&r("background-color",n.backgroundColor())},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]})}return t})(),se=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-three-bounce"]],features:[g],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]})}return t})(),ae=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-wandering-cubes"]],features:[g],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]})}return t})(),ce=(()=>{class t extends C{static \u0275fac=(()=>{let e;return function(n){return(e||(e=p(t)))(n||t)}})();static \u0275cmp=l({type:t,selectors:[["sk-wave"]],features:[g],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(o,n){o&1&&(b(0,"div",0),a(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),f()),o&2&&(k("colored",!n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()),i(),r("background-color",n.backgroundColor()))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]})}return t})(),W={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var O=(()=>{class t{_pendingRequests=0;_pendingRequestsStatus$=new m(1);_filteredUrlPatterns=[];_filteredMethods=[];_filteredHeaders=[];_forceByPass=!1;get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequestsStatusSubject$(){return this._pendingRequestsStatus$}get pendingRequests(){return this._pendingRequests}set pendingRequests(e){this._pendingRequests=e}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(e){this._filteredMethods=e}set filteredHeaders(e){this._filteredHeaders=e}set forceByPass(e){this._forceByPass=e}shouldBypassUrl(e){return this._filteredUrlPatterns.some(o=>o.test(e))}shouldBypassMethod(e){return this._filteredMethods.some(o=>o.toUpperCase()===e.method.toUpperCase())}shouldBypassHeader(e){return this._filteredHeaders.some(o=>e.headers.has(o))}shouldBypass(e){return this._forceByPass||this.shouldBypassUrl(e.urlWithParams)||this.shouldBypassMethod(e)||this.shouldBypassHeader(e)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),de=(()=>{class t{pendingRequestsInterceptorConfigurer;_visibility$=new m(1);constructor(e){this.pendingRequestsInterceptorConfigurer=e}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptorConfigurer.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptorConfigurer.forceByPass=!1}static \u0275fac=function(o){return new(o||t)(F(O))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),me=(()=>{class t{pendingRequestsInterceptorConfigurer;spinnerVisibility;spinkit=W;isVisible$;visibleUntil=Date.now();backdrop=c(!0);backgroundColor=c();debounceDelay=c(0);entryComponent=c(null);extraDuration=c(0);filteredHeaders=c([]);filteredMethods=c([]);filteredUrlPatterns=c([]);minDuration=c(0);opacity=c(".7");backdropBackgroundColor=c("#f1f1f1");spinner=R(W.skWave);constructor(e,o){this.pendingRequestsInterceptorConfigurer=e,this.spinnerVisibility=o}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[e,o]=D(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$,n=>n);this.isVisible$=x(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$.pipe(_(()=>e.pipe(h(()=>y(this.debounceDelay()))))),e.pipe(_(()=>o.pipe(h(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(I(),w(n=>this.updateExpirationDelay(n)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent()&&this.spinner.update(()=>null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns().length&&this.filteredUrlPatterns().forEach(e=>this.pendingRequestsInterceptorConfigurer.filteredUrlPatterns.push(new RegExp(e)))}initFilteredMethods(){this.pendingRequestsInterceptorConfigurer.filteredMethods=this.filteredMethods()}initFilteredHeaders(){this.pendingRequestsInterceptorConfigurer.filteredHeaders=this.filteredHeaders()}updateExpirationDelay(e){e&&(this.visibleUntil=Date.now()+this.minDuration())}getVisibilityTimer$(){return y(Math.max(this.extraDuration(),this.visibleUntil-Date.now()))}static \u0275fac=function(o){return new(o||t)(P(O),P(de))};static \u0275cmp=l({type:t,selectors:[["ng-http-loader"]],inputs:{backdrop:[1,"backdrop"],backgroundColor:[1,"backgroundColor"],debounceDelay:[1,"debounceDelay"],entryComponent:[1,"entryComponent"],extraDuration:[1,"extraDuration"],filteredHeaders:[1,"filteredHeaders"],filteredMethods:[1,"filteredMethods"],filteredUrlPatterns:[1,"filteredUrlPatterns"],minDuration:[1,"minDuration"],opacity:[1,"opacity"],backdropBackgroundColor:[1,"backdropBackgroundColor"],spinner:[1,"spinner"]},outputs:{spinner:"spinnerChange"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(o,n){o&1&&(M(0,ee,10,16,"div",0),$(1,"async")),o&2&&s("ngIf",U(1,1,n.isVisible$))},dependencies:[ne,te,oe,ie,re,se,ae,ce,L,N,E,j],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]})}return t})();function ye(t,d){let e=B(O),o=e.shouldBypass(t);return o||(e.pendingRequests++,e.pendingRequests===1&&e.pendingRequestsStatusSubject$.next(!0)),d(t).pipe(S(()=>{o||(e.pendingRequests--,e.pendingRequests===0&&e.pendingRequestsStatusSubject$.next(!1))}))}export{de as a,me as b,ye as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{i as W,k as j,n as u,p as q}from"./chunk-FUGCJNGU.js";import{B as h,Ea as N,G as P,H as A,I as R,L as n,N as m,Q as F,S as v,Va as _,ba as s,ma as Z}from"./chunk-BWS6U7BM.js";import{n as B}from"./chunk-KQAMA66M.js";import{Aa as E,Ab as d,Jb as C,Ob as $,Ub as M,Uc as p,Vb as V,Vc as r,Wb as k,ba as b,ca as T,ha as y,ib as x,mb as g,oa as O,ob as D,ra as w,ta as c,wb as I,xb as S,xc as z,yb as H}from"./chunk-D5AXB5DE.js";import{a}from"./chunk-YQFG5XE2.js";var J=({dt:e})=>`
|
|
2
2
|
.p-tooltip {
|
|
3
3
|
position: absolute;
|
|
4
4
|
display: none;
|
|
@@ -67,4 +67,4 @@ import{j,m as u,n as q}from"./chunk-WAJWW3TC.js";import{a as W}from"./chunk-TPGK
|
|
|
67
67
|
border-top-color: ${e("tooltip.background")};
|
|
68
68
|
border-bottom-color: ${e("tooltip.background")};
|
|
69
69
|
}
|
|
70
|
-
`,K={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},G=(()=>{class e extends _{name="tooltip";theme=J;classes=K;static \u0275fac=(()=>{let t;return function(o){return(t||(t=c(e)))(o||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();var ct=(()=>{class e extends W{zone;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:N("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=y(G);interactionInProgress=!1;constructor(t,i){super(),this.zone=t,this.viewContainer=i}ngAfterViewInit(){super.ngAfterViewInit(),B(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.addEventListener("focus",this.focusListener),i.addEventListener("blur",this.blurListener)}})}ngOnChanges(t){super.ngOnChanges(t),t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=a(a({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(h(t.relatedTarget,"p-tooltip")||h(t.relatedTarget,"p-tooltip-text")||h(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let t=document.createElement("div");t.className="p-tooltip-arrow",this.container.appendChild(t),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?m(this.container,this.el.nativeElement):m(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",i=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),F(this.container,250),this.getOption("tooltipZIndex")==="auto"?u.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&u.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t instanceof x){let i=this.viewContainer.createEmbeddedView(t);i.detectChanges(),i.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]};for(let[o,l]of i[t].entries())if(o===0)l.call(this);else if(this.isOutOfBounds())l.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),i=t.left+A(),o=t.top+R();return{left:i,top:o}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?v(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,i=n(t),o=(s(t)-s(this.container))/2;this.alignTooltip(i,o)}alignLeft(){this.preAlign("left");let t=n(this.container),i=(s(this.el.nativeElement)-s(this.container))/2;this.alignTooltip(-t,i)}alignTop(){this.preAlign("top");let t=(n(this.el.nativeElement)-n(this.container))/2,i=s(this.container);this.alignTooltip(t,-i)}alignBottom(){this.preAlign("bottom");let t=(n(this.el.nativeElement)-n(this.container))/2,i=s(this.el.nativeElement);this.alignTooltip(t,i)}alignTooltip(t,i){let o=this.getHostOffset(),l=o.left+t,f=o.top+i;this.container.style.left=l+this.getOption("positionLeft")+"px",this.container.style.top=f+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=a(a({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return h(t,"p-inputwrapper")?v(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+t;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let t=this.container.getBoundingClientRect(),i=t.top,o=t.left,l=n(this.container),f=s(this.container),L=P();return o+l>L.width||o<0||i<0||i+f>L.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new j(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),t==="focus"||t==="both"){let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.removeEventListener("focus",this.focusListener),i.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Z(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),super.ngOnDestroy(),this.container&&u.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(i){return new(i||e)(g(E),g(D))};static \u0275dir=H({type:e,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",p],showDelay:[2,"showDelay","showDelay",r],hideDelay:[2,"hideDelay","hideDelay",r],life:[2,"life","life",r],positionTop:[2,"positionTop","positionTop",r],positionLeft:[2,"positionLeft","positionLeft",r],autoHide:[2,"autoHide","autoHide",p],fitContent:[2,"fitContent","fitContent",p],hideOnEscape:[2,"hideOnEscape","hideOnEscape",p],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[z([G]),d,O]})}return e})(),dt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=S({type:e});static \u0275inj=T({})}return e})();export{X as a,ct as b,dt as c};
|
|
70
|
+
`,K={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},G=(()=>{class e extends _{name="tooltip";theme=J;classes=K;static \u0275fac=(()=>{let t;return function(o){return(t||(t=c(e)))(o||e)}})();static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})();var at=(()=>{class e extends W{zone;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:N("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=y(G);interactionInProgress=!1;constructor(t,i){super(),this.zone=t,this.viewContainer=i}ngAfterViewInit(){super.ngAfterViewInit(),B(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.addEventListener("focus",this.focusListener),i.addEventListener("blur",this.blurListener)}})}ngOnChanges(t){super.ngOnChanges(t),t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=a(a({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(h(t.relatedTarget,"p-tooltip")||h(t.relatedTarget,"p-tooltip-text")||h(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let t=document.createElement("div");t.className="p-tooltip-arrow",this.container.appendChild(t),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?m(this.container,this.el.nativeElement):m(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",i=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),F(this.container,250),this.getOption("tooltipZIndex")==="auto"?u.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&u.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t instanceof x){let i=this.viewContainer.createEmbeddedView(t);i.detectChanges(),i.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]};for(let[o,l]of i[t].entries())if(o===0)l.call(this);else if(this.isOutOfBounds())l.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),i=t.left+A(),o=t.top+R();return{left:i,top:o}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?v(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,i=n(t),o=(s(t)-s(this.container))/2;this.alignTooltip(i,o)}alignLeft(){this.preAlign("left");let t=n(this.container),i=(s(this.el.nativeElement)-s(this.container))/2;this.alignTooltip(-t,i)}alignTop(){this.preAlign("top");let t=(n(this.el.nativeElement)-n(this.container))/2,i=s(this.container);this.alignTooltip(t,-i)}alignBottom(){this.preAlign("bottom");let t=(n(this.el.nativeElement)-n(this.container))/2,i=s(this.el.nativeElement);this.alignTooltip(t,i)}alignTooltip(t,i){let o=this.getHostOffset(),l=o.left+t,f=o.top+i;this.container.style.left=l+this.getOption("positionLeft")+"px",this.container.style.top=f+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=a(a({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return h(t,"p-inputwrapper")?v(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+t;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let t=this.container.getBoundingClientRect(),i=t.top,o=t.left,l=n(this.container),f=s(this.container),L=P();return o+l>L.width||o<0||i<0||i+f>L.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new j(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),t==="focus"||t==="both"){let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.removeEventListener("focus",this.focusListener),i.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Z(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),super.ngOnDestroy(),this.container&&u.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(i){return new(i||e)(g(E),g(D))};static \u0275dir=H({type:e,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",p],showDelay:[2,"showDelay","showDelay",r],hideDelay:[2,"hideDelay","hideDelay",r],life:[2,"life","life",r],positionTop:[2,"positionTop","positionTop",r],positionLeft:[2,"positionLeft","positionLeft",r],autoHide:[2,"autoHide","autoHide",p],fitContent:[2,"fitContent","fitContent",p],hideOnEscape:[2,"hideOnEscape","hideOnEscape",p],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[z([G]),d,O]})}return e})(),pt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=S({type:e});static \u0275inj=T({})}return e})();var ut=(()=>{class e extends q{static \u0275fac=(()=>{let t;return function(o){return(t||(t=c(e)))(o||e)}})();static \u0275cmp=I({type:e,selectors:[["TimesIcon"]],features:[d],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(w(),M(0,"svg",0),k(1,"path",1),V()),i&2&&($(o.getClassNames()),C("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return e})();export{ut as a,at as b,pt as c};
|