dealpos 26.16.0 → 26.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/browser/{chunk-S6D4BUSK.js → chunk-2G55SXYE.js} +1 -1
  2. package/browser/{chunk-VKV4REXS.js → chunk-3IVVIJCD.js} +1 -1
  3. package/browser/{chunk-TB5ZASFB.js → chunk-3JWZ5DCP.js} +1 -1
  4. package/browser/{chunk-K6J5OWUS.js → chunk-4DCCSX5X.js} +1 -1
  5. package/browser/{chunk-EABZMVCX.js → chunk-4DD3WNHI.js} +1 -1
  6. package/browser/{chunk-3FS3XAY3.js → chunk-4JTVVQ7W.js} +1 -1
  7. package/browser/chunk-4TIUWQFJ.js +1 -0
  8. package/browser/chunk-4ZK3IR2D.js +1 -0
  9. package/browser/{chunk-5GJROVG3.js → chunk-5GZZLIPG.js} +2 -2
  10. package/browser/{chunk-PA4DOXOF.js → chunk-5TTEYXK4.js} +1 -1
  11. package/browser/chunk-6JN6533M.js +1 -0
  12. package/browser/{chunk-JU565NQ3.js → chunk-6VQSXZFA.js} +1 -1
  13. package/browser/{chunk-BIHQZECH.js → chunk-73SF2ZFB.js} +1 -1
  14. package/browser/{chunk-6F4RO4CR.js → chunk-7EHCEG4Q.js} +1 -1
  15. package/browser/{chunk-A7QYPXZV.js → chunk-7QMS4EYT.js} +1 -1
  16. package/browser/{chunk-BX2267N6.js → chunk-A4YZQAMR.js} +1 -1
  17. package/browser/{chunk-DWVG7D6J.js → chunk-A5FQDC3G.js} +1 -1
  18. package/browser/{chunk-OLSR2ILH.js → chunk-A7UZVVOG.js} +1 -1
  19. package/browser/chunk-AOXPJUGG.js +1 -0
  20. package/browser/{chunk-CRFHE2W7.js → chunk-BF7YNPJY.js} +2 -2
  21. package/browser/{chunk-VXZILVTT.js → chunk-BIXJATEJ.js} +1 -1
  22. package/browser/{chunk-G2M2OPFL.js → chunk-BLYNIVNG.js} +1 -1
  23. package/browser/{chunk-XIC2QDAM.js → chunk-BONQYLII.js} +1 -1
  24. package/browser/{chunk-QNW6KWOZ.js → chunk-C5R7HYP7.js} +1 -1
  25. package/browser/{chunk-2K4M2OS5.js → chunk-CEKNIJ32.js} +1 -1
  26. package/browser/{chunk-J7JH7ZAG.js → chunk-CFFRGANU.js} +1 -1
  27. package/browser/{chunk-OP3TWKNX.js → chunk-CJKLMMTM.js} +1 -1
  28. package/browser/{chunk-A2ZKUK6J.js → chunk-EE5NZHGE.js} +4 -4
  29. package/browser/{chunk-HKCWOTDM.js → chunk-EFK3TBWO.js} +1 -1
  30. package/browser/{chunk-GLIGSFCO.js → chunk-EG6JNBK2.js} +1 -1
  31. package/browser/{chunk-OXCE3RR5.js → chunk-EX7UWTNP.js} +2 -2
  32. package/browser/{chunk-J7YV42MK.js → chunk-EZCVGBAR.js} +1 -1
  33. package/browser/{chunk-DGCQ2KSV.js → chunk-F4L5BXVH.js} +2 -2
  34. package/browser/{chunk-IIQTXCHD.js → chunk-FCOOCXGL.js} +1 -1
  35. package/browser/{chunk-YYPMVA23.js → chunk-FXRJXVWH.js} +1 -1
  36. package/browser/{chunk-67DECW7I.js → chunk-G7TZ7MPH.js} +1 -1
  37. package/browser/chunk-GM52HZXS.js +3 -0
  38. package/browser/chunk-GMZLKLDI.js +1 -0
  39. package/browser/{chunk-AVDJ3JHW.js → chunk-GO5NVTB3.js} +1 -1
  40. package/browser/{chunk-HAAKVJUC.js → chunk-GQV5W3GF.js} +1 -1
  41. package/browser/{chunk-HNTXTQHN.js → chunk-HMWG7KQV.js} +1 -1
  42. package/browser/{chunk-YGEJGEAU.js → chunk-INHXSO5N.js} +2 -2
  43. package/browser/{chunk-DFABLTML.js → chunk-J23DCU4P.js} +1 -1
  44. package/browser/{chunk-NEIX3SA3.js → chunk-J6U233NF.js} +1 -1
  45. package/browser/{chunk-5NRVDSEE.js → chunk-J6XBDCNV.js} +1 -1
  46. package/browser/{chunk-R3RN3GYB.js → chunk-JULETYYZ.js} +1 -1
  47. package/browser/{chunk-TQLC2ZVQ.js → chunk-JWOMTKKN.js} +1 -1
  48. package/browser/{chunk-AXIMYD5N.js → chunk-JWUHX2ET.js} +1 -1
  49. package/browser/{chunk-THFRF4QF.js → chunk-K26ZQQJE.js} +1 -1
  50. package/browser/{chunk-AHANWKQZ.js → chunk-KKBTLY3V.js} +1 -1
  51. package/browser/{chunk-65265NGN.js → chunk-KX67XBOO.js} +1 -1
  52. package/browser/{chunk-YCHMCVDX.js → chunk-LJQLHNQX.js} +1 -1
  53. package/browser/{chunk-QD3LEXTZ.js → chunk-LNIPP7G5.js} +1 -1
  54. package/browser/{chunk-EXGDCSN4.js → chunk-LO2STX72.js} +1 -1
  55. package/browser/{chunk-DFNQK57Q.js → chunk-LRM4CXVP.js} +1 -1
  56. package/browser/chunk-LZQGQXPC.js +1 -0
  57. package/browser/{chunk-OLD2ZAS2.js → chunk-M6PMDWRR.js} +1 -1
  58. package/browser/{chunk-TLLUZYBE.js → chunk-MYCG7QBW.js} +1 -1
  59. package/browser/{chunk-VGAOW5II.js → chunk-N2U4JN63.js} +1 -1
  60. package/browser/{chunk-POJDGC6U.js → chunk-NGRABHNJ.js} +1 -1
  61. package/browser/{chunk-3UTTMNVB.js → chunk-NIMYS7D6.js} +1 -1
  62. package/browser/chunk-NLFBNSNG.js +2 -0
  63. package/browser/{chunk-LAUL5DFN.js → chunk-OHT4K7PJ.js} +1 -1
  64. package/browser/{chunk-D7HPICTM.js → chunk-P34UHXET.js} +1 -1
  65. package/browser/{chunk-QRUQCC3U.js → chunk-PBROZQDU.js} +2 -2
  66. package/browser/{chunk-E6P4U4CD.js → chunk-Q5ULM24Y.js} +4 -4
  67. package/browser/{chunk-7ZU644XP.js → chunk-QFE73YCL.js} +1 -1
  68. package/browser/{chunk-TR2N4UWT.js → chunk-QKWUCGPM.js} +1 -1
  69. package/browser/{chunk-WXLZVN6Y.js → chunk-RQDOP7TE.js} +1 -1
  70. package/browser/{chunk-R7LIQ7FL.js → chunk-RZSUC7LK.js} +1 -1
  71. package/browser/{chunk-FKLCXIBK.js → chunk-SFKUAKOZ.js} +1 -1
  72. package/browser/{chunk-EKP46O27.js → chunk-SKE7KFMP.js} +1 -1
  73. package/browser/{chunk-C26DK7GA.js → chunk-SN6JYVJK.js} +1 -1
  74. package/browser/{chunk-VZXHSYEQ.js → chunk-SVJH676J.js} +3 -3
  75. package/browser/{chunk-4EZVKSEK.js → chunk-U5IOZ6AH.js} +1 -1
  76. package/browser/{chunk-BXGKZEM5.js → chunk-U5P34LSK.js} +1 -1
  77. package/browser/chunk-U7UMKOBQ.js +1 -0
  78. package/browser/{chunk-LVZ7QUKT.js → chunk-UG7IIQ3F.js} +1 -1
  79. package/browser/{chunk-2LVXGTC3.js → chunk-UORHM35V.js} +1 -1
  80. package/browser/{chunk-X5MGPZY7.js → chunk-UTAUNWNJ.js} +1 -1
  81. package/browser/{chunk-WTPWWJHQ.js → chunk-VAEMQKMB.js} +1 -1
  82. package/browser/{chunk-CIS2FQ6T.js → chunk-VMQ6TDTL.js} +1 -1
  83. package/browser/{chunk-F6ZYYJA3.js → chunk-VNS2RE77.js} +1 -1
  84. package/browser/{chunk-O37RQMWM.js → chunk-WIHZOM3C.js} +1 -1
  85. package/browser/chunk-WQXI4QPG.js +1 -0
  86. package/browser/{chunk-WJCR3KYZ.js → chunk-XS7VRFB2.js} +1 -1
  87. package/browser/chunk-Y3IS2EF5.js +1 -0
  88. package/browser/{chunk-XTLOFV6O.js → chunk-YAH623GO.js} +1 -1
  89. package/browser/{chunk-E2IFXTED.js → chunk-YFB4XBRI.js} +1 -1
  90. package/browser/{chunk-XOAZ3YHJ.js → chunk-YOFZWYR5.js} +1 -1
  91. package/browser/{chunk-QBR7IZZO.js → chunk-YXDFR7LR.js} +1 -1
  92. package/browser/index.html +2 -2
  93. package/browser/main-ORTGLHFM.js +15 -0
  94. package/package.json +1 -1
  95. package/browser/chunk-3MIWZGD5.js +0 -2
  96. package/browser/chunk-7C7OAFFZ.js +0 -1
  97. package/browser/chunk-AY2XG66G.js +0 -1
  98. package/browser/chunk-CRCATFLX.js +0 -1
  99. package/browser/chunk-EBSH7CEC.js +0 -1
  100. package/browser/chunk-NLCE4SOQ.js +0 -1
  101. package/browser/chunk-P5IQNW5P.js +0 -1
  102. package/browser/chunk-RIYCQ5IW.js +0 -1
  103. package/browser/chunk-YOW7Y5BM.js +0 -3
  104. package/browser/chunk-ZFGEFLKG.js +0 -1
  105. package/browser/main-S5J4Y5YZ.js +0 -15
@@ -1 +1 @@
1
- import{a as ie,b as ne}from"./chunk-P5IQNW5P.js";import"./chunk-UBU6WUJL.js";import"./chunk-SEQNPQ3W.js";import"./chunk-Z6DGFGP3.js";import{a as te}from"./chunk-RAU2TO5L.js";import"./chunk-KA2ONH4O.js";import"./chunk-LU2TRITM.js";import"./chunk-TPHMHUJE.js";import"./chunk-NB2TBERF.js";import{d as ee}from"./chunk-3XXHI4EL.js";import"./chunk-OFAMZL4W.js";import"./chunk-PRC6BIGW.js";import"./chunk-XRHB5YFU.js";import"./chunk-JGRL2V64.js";import"./chunk-77OYJ25Y.js";import"./chunk-IGAEFS7B.js";import"./chunk-4M7RPVWV.js";import"./chunk-5FZQUUGO.js";import{a as $}from"./chunk-VH3BBWAO.js";import"./chunk-OX2RZSIO.js";import"./chunk-S5D6TMC7.js";import{a as K}from"./chunk-J7YV42MK.js";import"./chunk-XIC2QDAM.js";import"./chunk-GQLZJQI6.js";import{a as J,f as Y,g as Z}from"./chunk-E2IFXTED.js";import"./chunk-WQ627RLB.js";import"./chunk-Y2ST6F4K.js";import"./chunk-YQH2QORC.js";import"./chunk-GOPYUSW4.js";import"./chunk-ZAPREM3S.js";import"./chunk-QWL5S2RG.js";import"./chunk-NS5MW6GH.js";import"./chunk-X36HAWOW.js";import"./chunk-2B2L2JOP.js";import"./chunk-N76EALXO.js";import"./chunk-UL6HUKIC.js";import"./chunk-3MIWZGD5.js";import"./chunk-DFNQK57Q.js";import"./chunk-M42U7VID.js";import{a as X}from"./chunk-4EZVKSEK.js";import"./chunk-HRIVC724.js";import"./chunk-DTQAQRLJ.js";import"./chunk-LZNSQRCR.js";import"./chunk-BCH2MDJT.js";import"./chunk-INL666X3.js";import"./chunk-UUAZGIAN.js";import"./chunk-SPPZGYU7.js";import"./chunk-DYDRVXX3.js";import"./chunk-FICGNDPR.js";import"./chunk-2BQQJ3YS.js";import"./chunk-YNQPX5G6.js";import{P as F}from"./chunk-5VLBYHUJ.js";import"./chunk-5UKWQA6U.js";import"./chunk-QYSFCWV7.js";import{d as Q}from"./chunk-Q7OVBNEW.js";import"./chunk-V5VDOLOZ.js";import"./chunk-6RFU4RXC.js";import"./chunk-YCV6GUTW.js";import"./chunk-VXGIPE22.js";import"./chunk-PG5RORVW.js";import"./chunk-OQDKFI6M.js";import"./chunk-TKBQO5Z6.js";import{a as z}from"./chunk-M5BHFFPW.js";import"./chunk-XUQHA7FY.js";import"./chunk-AJ6OO7CP.js";import"./chunk-UPAKGSOK.js";import"./chunk-FMECWSCG.js";import{E as U,h as j,o as G}from"./chunk-QMS2MBIA.js";import"./chunk-XTLOFV6O.js";import"./chunk-FKLCXIBK.js";import"./chunk-WLVEHCCR.js";import"./chunk-P7GOTTNS.js";import"./chunk-3DEA4WWC.js";import"./chunk-TQLC2ZVQ.js";import{n as H,q}from"./chunk-3GXUD7K4.js";import{Bb as v,Db as S,Eb as L,Fa as B,Gb as W,Hb as O,Ib as l,Jb as r,Kb as a,Kc as b,Lb as y,Lc as x,Qc as V,Ub as D,Xb as T,Z as k,Za as m,Zb as p,eb as h,ga as I,ib as A,mc as u,nb as E,ob as M,ra as P,rc as g,sc as _,sd as N,tc as f,va as s,wa as c,zd as R}from"./chunk-NGFIIVK5.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function ae(o,d){if(o&1){let t=D();r(0,"button",6),T("click",function(){s(t);let e=p();return c(e.onPrint())}),y(1,"i",7),r(2,"span"),u(3,"Print"),a()()}}function oe(o,d){if(o&1){let t=D();r(0,"div",8)(1,"h6"),u(2,"Outlet"),a(),r(3,"outlet-selector",9),f("ngModelChange",function(e){s(t);let i=p();return _(i.pageData.Filter.EntityID,e)||(i.pageData.Filter.EntityID=e),c(e)}),a(),r(4,"h6"),u(5,"Sales Order Tag"),a(),r(6,"ng-select",10),f("ngModelChange",function(e){s(t);let i=p();return _(i.pageData.Filter.SalesOrderTagID,e)||(i.pageData.Filter.SalesOrderTagID=e),c(e)}),a(),r(7,"h6"),u(8,"From"),a(),r(9,"div",11)(10,"div",12)(11,"datepicker",13),f("dateChange",function(e){s(t);let i=p();return _(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),c(e)}),a()(),r(12,"div",12)(13,"app-timepicker",14),f("timeChange",function(e){s(t);let i=p();return _(i.pageData.Filter.StartTime,e)||(i.pageData.Filter.StartTime=e),c(e)}),a()()(),r(14,"h6"),u(15,"To"),a(),r(16,"div",11)(17,"div",12)(18,"datepicker",15),f("dateChange",function(e){s(t);let i=p();return _(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),c(e)}),a()(),r(19,"div",12)(20,"app-timepicker",14),f("timeChange",function(e){s(t);let i=p();return _(i.pageData.Filter.EndTime,e)||(i.pageData.Filter.EndTime=e),c(e)}),a()()()()}if(o&2){let t=p();m(3),l("accessType",2),g("ngModel",t.pageData.Filter.EntityID),m(3),l("items",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.SalesOrderTags),g("ngModel",t.pageData.Filter.SalesOrderTagID),m(5),l("isFloatingLabel",!1),g("date",t.pageData.Filter.From),l("hidelClearBtn",!0),m(2),g("time",t.pageData.Filter.StartTime),l("fullWidth",!0),m(5),l("isFloatingLabel",!1)("hidelClearBtn",!0),g("date",t.pageData.Filter.To),m(2),g("time",t.pageData.Filter.EndTime),l("fullWidth",!0)}}function le(o,d){o&1&&(r(0,"div",19),u(1,"\xA0"),a())}function pe(o,d){if(o&1&&(y(0,"pos-receipt-a4",16),r(1,"div",17),y(2,"div",18),a(),v(3,le,2,0,"div",19)),o&2){let t=d.$implicit,n=d.$index,e=p(),i=p();l("data",t)("printTemplate",i.printTemplates==null?null:i.printTemplates.get(t.PrintTemplateID))("config",e.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",e.StylesSheet),m(3),S(n!==(e.Data==null?null:e.Data.length)-1?3:-1)}}function me(o,d){o&1&&W(0,pe,4,7,null,null,L),o&2&&O(d.Data)}var re=class o extends K{constructor(t,n,e){super(t,n,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=n;this.initPrintListener()}dialogFilter=P(J);receipts$;printTemplates;invoiceIds=B([]);preInitList(){this.pageData.Filter.From=new Date,this.pageData.Filter.To=new Date,this.pageData.Filter.StartTime="00:00",this.pageData.Filter.EndTime="23:59"}onFilter(){this.receipts$=this.httpService.post(F.GetBulkPrintA4,this.pageData.Filter).pipe(I(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",z.Info):this.generatePrintTemplate(t.PrintTemplates),this.invoiceIds.set(t.Data.map(n=>n?.Invoice?.ID))}),k(1))}generatePrintTemplate(t=[]){this.printTemplates=new Map(t.map(n=>[n.ID,n]))}onNewPrint(){this.dialogFilter.openDialog()}onPrint(){window.setTimeout(function(){window.print()},500)}initPrintListener(){window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{this.invoiceIds()?.length>0&&this.httpService.post(F.UpdateLastPrintByListID,{ListID:this.invoiceIds()}).subscribe()};ngOnDestroy(){window.removeEventListener("afterprint",this.handleAfterPrint)}static \u0275fac=function(n){return new(n||o)(h(X),h(q),h(H))};static \u0275cmp=A({type:o,selectors:[["bulk-invoice-A4"]],features:[E],decls:13,vars:10,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","pageData","hideSearchBox","text","hideSearchDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],["customContainerClass","pos-bulk-invoice",3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(n,e){if(n&1){let i=D();r(0,"mainpanel-cmp",1),f("textChange",function(w){return s(i),_(e.pageData.Filter.Number,w)||(e.pageData.Filter.Number=w),c(w)}),T("onSubmit",function(){return e.onFilter()}),r(1,"actions"),v(2,ae,4,0,"button",2),b(3,"async"),r(4,"button",3),T("click",function(){return e.onNewPrint()}),u(5,"New"),a()(),r(6,"div",4),M(7,oe,21,14,"ng-template",null,0,V),a(),r(9,"content")(10,"div",5),v(11,me,2,0),b(12,"async"),a()()()}if(n&2){let i,C;l("pageData",e.menuData)("hideSearchBox",!0),g("text",e.pageData.Filter.Number),l("hideSearchDropdown",!0),m(2),S(((i=x(3,6,e.receipts$))==null||i.Data==null?null:i.Data.length)>0?2:-1),m(9),S((C=x(12,8,e.printTemplates&&e.receipts$))?11:-1,C)}},dependencies:[R,ne,ie,Z,Y,$,Q,ee,U,j,G,te,N],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"]})};export{re as BulkInvoiceA4Component};
1
+ import{a as ie,b as ne}from"./chunk-U7UMKOBQ.js";import"./chunk-UBU6WUJL.js";import"./chunk-SEQNPQ3W.js";import"./chunk-Z6DGFGP3.js";import{a as te}from"./chunk-RAU2TO5L.js";import"./chunk-KA2ONH4O.js";import"./chunk-LU2TRITM.js";import"./chunk-TPHMHUJE.js";import"./chunk-NB2TBERF.js";import{d as ee}from"./chunk-3XXHI4EL.js";import"./chunk-OFAMZL4W.js";import"./chunk-PRC6BIGW.js";import"./chunk-XRHB5YFU.js";import"./chunk-JGRL2V64.js";import"./chunk-77OYJ25Y.js";import"./chunk-IGAEFS7B.js";import"./chunk-4M7RPVWV.js";import"./chunk-5FZQUUGO.js";import{a as $}from"./chunk-VH3BBWAO.js";import"./chunk-OX2RZSIO.js";import"./chunk-S5D6TMC7.js";import{a as K}from"./chunk-EZCVGBAR.js";import"./chunk-BONQYLII.js";import"./chunk-GQLZJQI6.js";import{a as J,f as Y,g as Z}from"./chunk-YFB4XBRI.js";import"./chunk-WQ627RLB.js";import"./chunk-Y2ST6F4K.js";import"./chunk-YQH2QORC.js";import"./chunk-GOPYUSW4.js";import"./chunk-ZAPREM3S.js";import"./chunk-QWL5S2RG.js";import"./chunk-NS5MW6GH.js";import"./chunk-X36HAWOW.js";import"./chunk-2B2L2JOP.js";import"./chunk-N76EALXO.js";import"./chunk-UL6HUKIC.js";import"./chunk-NLFBNSNG.js";import"./chunk-LRM4CXVP.js";import"./chunk-M42U7VID.js";import{a as X}from"./chunk-U5IOZ6AH.js";import"./chunk-HRIVC724.js";import"./chunk-DTQAQRLJ.js";import"./chunk-LZNSQRCR.js";import"./chunk-BCH2MDJT.js";import"./chunk-INL666X3.js";import"./chunk-UUAZGIAN.js";import"./chunk-SPPZGYU7.js";import"./chunk-DYDRVXX3.js";import"./chunk-FICGNDPR.js";import"./chunk-2BQQJ3YS.js";import"./chunk-YNQPX5G6.js";import{P as F}from"./chunk-5VLBYHUJ.js";import"./chunk-5UKWQA6U.js";import"./chunk-QYSFCWV7.js";import{d as Q}from"./chunk-Q7OVBNEW.js";import"./chunk-V5VDOLOZ.js";import"./chunk-6RFU4RXC.js";import"./chunk-YCV6GUTW.js";import"./chunk-VXGIPE22.js";import"./chunk-PG5RORVW.js";import"./chunk-OQDKFI6M.js";import"./chunk-TKBQO5Z6.js";import{a as z}from"./chunk-M5BHFFPW.js";import"./chunk-XUQHA7FY.js";import"./chunk-AJ6OO7CP.js";import"./chunk-UPAKGSOK.js";import"./chunk-FMECWSCG.js";import{E as U,h as j,o as G}from"./chunk-QMS2MBIA.js";import"./chunk-YAH623GO.js";import"./chunk-SFKUAKOZ.js";import"./chunk-WLVEHCCR.js";import"./chunk-P7GOTTNS.js";import"./chunk-3DEA4WWC.js";import"./chunk-JWOMTKKN.js";import{n as H,q}from"./chunk-3GXUD7K4.js";import{Bb as v,Db as S,Eb as L,Fa as B,Gb as W,Hb as O,Ib as l,Jb as r,Kb as a,Kc as b,Lb as y,Lc as x,Qc as V,Ub as D,Xb as T,Z as k,Za as m,Zb as p,eb as h,ga as I,ib as A,mc as u,nb as E,ob as M,ra as P,rc as g,sc as _,sd as N,tc as f,va as s,wa as c,zd as R}from"./chunk-NGFIIVK5.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function ae(o,d){if(o&1){let t=D();r(0,"button",6),T("click",function(){s(t);let e=p();return c(e.onPrint())}),y(1,"i",7),r(2,"span"),u(3,"Print"),a()()}}function oe(o,d){if(o&1){let t=D();r(0,"div",8)(1,"h6"),u(2,"Outlet"),a(),r(3,"outlet-selector",9),f("ngModelChange",function(e){s(t);let i=p();return _(i.pageData.Filter.EntityID,e)||(i.pageData.Filter.EntityID=e),c(e)}),a(),r(4,"h6"),u(5,"Sales Order Tag"),a(),r(6,"ng-select",10),f("ngModelChange",function(e){s(t);let i=p();return _(i.pageData.Filter.SalesOrderTagID,e)||(i.pageData.Filter.SalesOrderTagID=e),c(e)}),a(),r(7,"h6"),u(8,"From"),a(),r(9,"div",11)(10,"div",12)(11,"datepicker",13),f("dateChange",function(e){s(t);let i=p();return _(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),c(e)}),a()(),r(12,"div",12)(13,"app-timepicker",14),f("timeChange",function(e){s(t);let i=p();return _(i.pageData.Filter.StartTime,e)||(i.pageData.Filter.StartTime=e),c(e)}),a()()(),r(14,"h6"),u(15,"To"),a(),r(16,"div",11)(17,"div",12)(18,"datepicker",15),f("dateChange",function(e){s(t);let i=p();return _(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),c(e)}),a()(),r(19,"div",12)(20,"app-timepicker",14),f("timeChange",function(e){s(t);let i=p();return _(i.pageData.Filter.EndTime,e)||(i.pageData.Filter.EndTime=e),c(e)}),a()()()()}if(o&2){let t=p();m(3),l("accessType",2),g("ngModel",t.pageData.Filter.EntityID),m(3),l("items",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.SalesOrderTags),g("ngModel",t.pageData.Filter.SalesOrderTagID),m(5),l("isFloatingLabel",!1),g("date",t.pageData.Filter.From),l("hidelClearBtn",!0),m(2),g("time",t.pageData.Filter.StartTime),l("fullWidth",!0),m(5),l("isFloatingLabel",!1)("hidelClearBtn",!0),g("date",t.pageData.Filter.To),m(2),g("time",t.pageData.Filter.EndTime),l("fullWidth",!0)}}function le(o,d){o&1&&(r(0,"div",19),u(1,"\xA0"),a())}function pe(o,d){if(o&1&&(y(0,"pos-receipt-a4",16),r(1,"div",17),y(2,"div",18),a(),v(3,le,2,0,"div",19)),o&2){let t=d.$implicit,n=d.$index,e=p(),i=p();l("data",t)("printTemplate",i.printTemplates==null?null:i.printTemplates.get(t.PrintTemplateID))("config",e.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",e.StylesSheet),m(3),S(n!==(e.Data==null?null:e.Data.length)-1?3:-1)}}function me(o,d){o&1&&W(0,pe,4,7,null,null,L),o&2&&O(d.Data)}var re=class o extends K{constructor(t,n,e){super(t,n,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=n;this.initPrintListener()}dialogFilter=P(J);receipts$;printTemplates;invoiceIds=B([]);preInitList(){this.pageData.Filter.From=new Date,this.pageData.Filter.To=new Date,this.pageData.Filter.StartTime="00:00",this.pageData.Filter.EndTime="23:59"}onFilter(){this.receipts$=this.httpService.post(F.GetBulkPrintA4,this.pageData.Filter).pipe(I(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",z.Info):this.generatePrintTemplate(t.PrintTemplates),this.invoiceIds.set(t.Data.map(n=>n?.Invoice?.ID))}),k(1))}generatePrintTemplate(t=[]){this.printTemplates=new Map(t.map(n=>[n.ID,n]))}onNewPrint(){this.dialogFilter.openDialog()}onPrint(){window.setTimeout(function(){window.print()},500)}initPrintListener(){window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{this.invoiceIds()?.length>0&&this.httpService.post(F.UpdateLastPrintByListID,{ListID:this.invoiceIds()}).subscribe()};ngOnDestroy(){window.removeEventListener("afterprint",this.handleAfterPrint)}static \u0275fac=function(n){return new(n||o)(h(X),h(q),h(H))};static \u0275cmp=A({type:o,selectors:[["bulk-invoice-A4"]],features:[E],decls:13,vars:10,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","pageData","hideSearchBox","text","hideSearchDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],["customContainerClass","pos-bulk-invoice",3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(n,e){if(n&1){let i=D();r(0,"mainpanel-cmp",1),f("textChange",function(w){return s(i),_(e.pageData.Filter.Number,w)||(e.pageData.Filter.Number=w),c(w)}),T("onSubmit",function(){return e.onFilter()}),r(1,"actions"),v(2,ae,4,0,"button",2),b(3,"async"),r(4,"button",3),T("click",function(){return e.onNewPrint()}),u(5,"New"),a()(),r(6,"div",4),M(7,oe,21,14,"ng-template",null,0,V),a(),r(9,"content")(10,"div",5),v(11,me,2,0),b(12,"async"),a()()()}if(n&2){let i,C;l("pageData",e.menuData)("hideSearchBox",!0),g("text",e.pageData.Filter.Number),l("hideSearchDropdown",!0),m(2),S(((i=x(3,6,e.receipts$))==null||i.Data==null?null:i.Data.length)>0?2:-1),m(9),S((C=x(12,8,e.printTemplates&&e.receipts$))?11:-1,C)}},dependencies:[R,ne,ie,Z,Y,$,Q,ee,U,j,G,te,N],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"]})};export{re as BulkInvoiceA4Component};
@@ -1 +1 @@
1
- import{a as E,b as Oe}from"./chunk-ENBHDEF7.js";import"./chunk-AVOTGRPZ.js";import{c as Ee}from"./chunk-NSNUUKNK.js";import{a as we}from"./chunk-VH3BBWAO.js";import"./chunk-OX2RZSIO.js";import"./chunk-S5D6TMC7.js";import"./chunk-GQLZJQI6.js";import{f as Se,g as ve}from"./chunk-E2IFXTED.js";import"./chunk-Y2ST6F4K.js";import"./chunk-YQH2QORC.js";import"./chunk-GOPYUSW4.js";import"./chunk-ZAPREM3S.js";import"./chunk-QWL5S2RG.js";import"./chunk-X36HAWOW.js";import"./chunk-2B2L2JOP.js";import"./chunk-N76EALXO.js";import"./chunk-UL6HUKIC.js";import"./chunk-DFNQK57Q.js";import{a as Te}from"./chunk-M42U7VID.js";import{a as xe}from"./chunk-4EZVKSEK.js";import"./chunk-HRIVC724.js";import"./chunk-DTQAQRLJ.js";import"./chunk-LZNSQRCR.js";import"./chunk-BCH2MDJT.js";import"./chunk-INL666X3.js";import"./chunk-UUAZGIAN.js";import"./chunk-SPPZGYU7.js";import"./chunk-DYDRVXX3.js";import"./chunk-FICGNDPR.js";import{a as De,b as be}from"./chunk-2BQQJ3YS.js";import"./chunk-YNQPX5G6.js";import{O as ye}from"./chunk-5VLBYHUJ.js";import"./chunk-5UKWQA6U.js";import"./chunk-QYSFCWV7.js";import"./chunk-V5VDOLOZ.js";import"./chunk-6RFU4RXC.js";import"./chunk-YCV6GUTW.js";import"./chunk-VXGIPE22.js";import"./chunk-PG5RORVW.js";import"./chunk-OQDKFI6M.js";import"./chunk-TKBQO5Z6.js";import"./chunk-M5BHFFPW.js";import"./chunk-XUQHA7FY.js";import"./chunk-AJ6OO7CP.js";import"./chunk-UPAKGSOK.js";import"./chunk-FMECWSCG.js";import{E as ge,h as Ce,o as fe}from"./chunk-QMS2MBIA.js";import"./chunk-XTLOFV6O.js";import"./chunk-FKLCXIBK.js";import"./chunk-WLVEHCCR.js";import{b as G}from"./chunk-P7GOTTNS.js";import{a as _e}from"./chunk-3DEA4WWC.js";import"./chunk-TQLC2ZVQ.js";import"./chunk-3GXUD7K4.js";import{Bb as m,Bc as H,Ca as te,Cc as b,Db as u,Dc as F,Ec as X,Fa as g,Fb as oe,Fc as de,Gb as re,Ha as ae,Hb as le,Ib as c,Ja as ie,Jb as o,Kb as r,Kc as h,Lb as T,Mc as _,Qc as w,Rb as A,Tc as ce,Ub as v,Ud as ue,Wd as he,Xb as P,Yc as pe,Za as l,Zb as d,eb as O,hc as D,ib as M,mc as s,md as U,nb as ne,nc as V,ob as S,oc as C,pb as W,pc as se,rc as z,rd as R,sc as J,tc as Q,ub as I,ud as me,va as x,vb as N,wa as y,wd as j,zd as k}from"./chunk-NGFIIVK5.js";import"./chunk-WFMAM73Y.js";import{a as L,b as Y}from"./chunk-SNAKHGZS.js";var B=class{Cost;Profit;Sales;SalesWithTax;Tax;Count;TopOutlet};var ee=t=>({"border-bottom":t}),$=()=>["/menu/Reports/Sales_Report/Standard/Summary"],Ae=(t,i,e)=>({From:t,To:i,ListIDs:e}),Re=t=>({today:t}),Pe=(t,i)=>({From:t,To:i});function ke(t,i){if(t&1){let e=v();o(0,"div",6)(1,"a",15),s(2),r(),o(3,"ul",16)(4,"li")(5,"a",17),P("click",function(){x(e);let n=d();return n.isTodayFilter=!n.isTodayFilter,y(n.onChangeFilterPeriod())}),s(6),r()()()()}if(t&2){let e=d();l(2),C(" ",e.isTodayFilter?"Today":"Last 7 Days"," "),l(),c("ngClass",F(3,Re,!e.isTodayFilter)),l(3),C(" ",e.isTodayFilter?"Last 7 Days":"Today"," ")}}function Be(t,i){t&1&&(o(0,"span",7),s(1,"Today"),r())}function Le(t,i){if(t&1&&(o(0,"div",18)(1,"a",9),h(2,"date"),h(3,"date"),o(4,"div",10),s(5,"Tax"),r(),o(6,"div",19)(7,"small",20),s(8),r(),o(9,"h2",11),s(10),h(11,"number"),r()()()(),o(12,"div",8)(13,"a",9),h(14,"date"),h(15,"date"),o(16,"div",10),s(17,"Sales + Tax"),r(),o(18,"div",19)(19,"small",20),s(20),r(),o(21,"h2",11),s(22),h(23,"number"),r()()()()),t&2){let e=d();l(),c("routerLink",b(27,$))("queryParams",X(28,Pe,_(2,9,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(3,12,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(11,15,e.salesData==null?null:e.salesData.Tax,"1.0-0")," "),l(2),c("ngClass",F(31,ee,e.role.product.Cost)),l(),c("routerLink",b(33,$))("queryParams",X(34,Pe,_(14,18,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(15,21,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(23,24,e.salesData==null?null:e.salesData.SalesWithTax,"1.0-0")," ")}}function Ye(t,i){if(t&1&&(o(0,"div",8)(1,"div")(2,"div",21),s(3,"Cost"),r(),o(4,"div",19)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),h(9,"number"),r()()()()),t&2){let e=d();c("ngClass",F(6,ee,e.role.report.Profit)),l(6),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Cost,"1.0-0")," ")}}function He(t,i){if(t&1&&(o(0,"div",12)(1,"div")(2,"div",22),s(3),r(),o(4,"div",19)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),h(9,"number"),r()()()()),t&2){let e=d();l(3),C(" ",e.includeTax?"Gross Profit":"Profit"," "),l(3),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Profit,"1.0-0")," ")}}var Z=class t{constructor(i,e){this.dashboardService=i;this.role=e;this.chartConfig=this.dashboardService.getLineChartConfig()}chartData;salesData;dashboardConfig;filterSalesWidget=new te;chartConfig;todaySalesData;weeklySalesData;isTodayFilter=!0;showPeriodFilter;includeTax;today=new Date;dateTo;filterByOutletIds=pe([]);ngOnChanges(i){if(i.chartData&&i.chartData.currentValue){this.initSalesData();let e=i?.chartData?.currentValue?.Series;e=this.setChartLineColor(e),e=this.setSalesTaxLegend(e),this.chartConfig=Y(L({},this.chartConfig),{series:e}),this.chartConfig=this.dashboardService.setSeriesPointStart(this.chartData.From,this.chartConfig),this.initPeriodFilter(e),this.getDateTo()}}initPeriodFilter(i){this.showPeriodFilter=i[0]?.data?.length>=7}initSalesData(){this.salesData=new B,this.includeTax=this.isIncludeTax(),this.salesData.Sales=this.dashboardService.getTotalData("Sales",this.chartData.Series,1),this.salesData.SalesWithTax=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,1),this.salesData.Cost=this.dashboardService.getTotalData("Cost",this.chartData.Series,1),this.salesData.Tax=this.salesData.SalesWithTax-this.salesData.Sales,this.salesData.Profit=(this.includeTax?this.salesData.SalesWithTax:this.salesData.Sales)-this.salesData.Cost,this.salesData.Count=this.dashboardService.getTotalData("Count",this.chartData.Series,1),this.todaySalesData=Ee(B,this.salesData)}setChartLineColor(i=[]){return i?.map(e=>(e.name=="Sales"&&(e.color="rgb(44, 175, 254)",e.fillColor=this.dashboardService.getLinierGradient("rgb(44, 175, 254)")),e.name=="Cost"&&(e.color="#fb404b",e.fillColor=this.dashboardService.getLinierGradient("#fb404b")),e.name=="Sales + Tax"&&(e.color="#2ECC71",e.fillColor=this.dashboardService.getLinierGradient("#2ECC71")),e))}onChangeFilterPeriod(){this.isTodayFilter?this.salesData=this.todaySalesData:(this.generateWeeklySalesData(),this.salesData=this.weeklySalesData),this.filterSalesWidget.emit({period:this.isTodayFilter?"TODAY":"WEEKLY"})}getDateTo(){let i=new Date,e=new Date(this.chartData.From);i.setDate(e.getDate()+7),this.dateTo=i}generateWeeklySalesData(){if(_e.IsEmpty(this.weeklySalesData)){let i=this.dashboardService.getTotalData("Sales",this.chartData.Series,7),e=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,7),a=this.dashboardService.getTotalData("Cost",this.chartData.Series,7),n=this.dashboardService.getTotalData("Count",this.chartData.Series,7),p=e-i,f=(this.includeTax?e:i)-a;this.weeklySalesData=this.weeklySalesData?this.weeklySalesData:new B,this.weeklySalesData.Sales=i,this.weeklySalesData.SalesWithTax=e,this.weeklySalesData.Cost=a,this.weeklySalesData.Profit=f,this.weeklySalesData.Tax=p,this.weeklySalesData.Count=n}}isIncludeTax(){let i=this.chartData.Series;return this.dashboardService.filterSeriesByName("Sales + Tax",i).visible}setSalesTaxLegend(i){return i=i.map(e=>(e.name=="Sales + Tax"&&(e.showInLegend=this.salesData.Tax>0),e)),i}static \u0275fac=function(e){return new(e||t)(O(E),O(G))};static \u0275cmp=M({type:t,selectors:[["app-sales-widget"]],inputs:{chartData:"chartData",dashboardConfig:"dashboardConfig",filterByOutletIds:[1,"filterByOutletIds"]},outputs:{filterSalesWidget:"onFilter"},features:[H([E]),ie],decls:25,vars:30,consts:[[1,"d-flex","flex-row","flex-wrap","mt-8","justify-content-between"],[1,"chart-widget"],["containerId","salesChart",3,"config"],[1,"sales-card-widget"],[1,"border","rounded","rounded-bottom-0","px-8","py-4","w-100","h-auto"],[1,"border-bottom","d-flex","align-items-center","justify-content-end",2,"height","42px"],[1,"btn-group"],[1,"link-dark","fs-2","headings-font-family"],[1,"text-end","card-row","d-flex","align-items-center","justify-content-end",3,"ngClass"],["target","_blank",1,"link-dark",3,"routerLink","queryParams"],[1,"fs-5"],[1,"fw-normal"],[1,"text-end","d-flex","align-items-center","justify-content-end","card-row"],[1,"card-footer","border","rounded-bottom","border-top-0","text-end","p-3"],["routerLink","/menu/Setup/Configuration/Application"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"dropdown-toggle","link-dark","fs-2","headings-font-family"],[1,"dropdown-menu","p-0",2,"position","absolute","right","20px !important",3,"ngClass"],["role","button",1,"dropdown-item","fs-4",3,"click"],[1,"text-end","border-bottom","card-row","d-flex","align-items-center","justify-content-end"],[1,"d-flex","align-items-center","justify-content-end"],[1,"me-2"],[1,"fs-5","text-danger"],[1,"fs-5","text-success"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div",1),T(2,"app-chart-container",2),r(),o(3,"div",3)(4,"div",4)(5,"div",5),m(6,ke,7,5,"div",6)(7,Be,2,0,"span",7),r(),o(8,"div",8)(9,"a",9),h(10,"date"),h(11,"date"),o(12,"div",10),s(13,"Order"),r(),o(14,"h2",11),s(15),h(16,"number"),r()()(),m(17,Le,24,37),m(18,Ye,10,8,"div",8),m(19,He,10,6,"div",12),r(),o(20,"div",13)(21,"a",14)(22,"small"),s(23),h(24,"date"),r()()()()()),e&2&&(l(2),c("config",a.chartConfig),l(4),u(!(a.role==null||a.role.dashboard==null)&&a.role.dashboard.View&&a.showPeriodFilter?6:7),l(2),c("ngClass",F(23,ee,(a.salesData==null?null:a.salesData.Tax)||a.role.product.Cost)),l(),c("routerLink",b(25,$))("queryParams",de(26,Ae,_(10,11,a.isTodayFilter?a.today:a.chartData==null?null:a.chartData.From,"yyyy-MM-dd"),_(11,14,a.isTodayFilter?a.today:a.dateTo,"yyyy-MM-dd"),a.filterByOutletIds())),l(6),V(_(16,17,a.salesData==null?null:a.salesData.Count,"1.0-0")),l(2),u((a.salesData==null?null:a.salesData.Tax)>0?17:-1),l(),u(a.role.product.Cost?18:-1),l(),u(a.role.report.Profit&&a.role.product.Cost?19:-1),l(4),se("",_(24,20,a.dashboardConfig==null?null:a.dashboardConfig.SpanConfigTime,"dd MMM HH:mm")," ",a.dashboardConfig==null?null:a.dashboardConfig.SmallTimeZone))},dependencies:[k,U,Oe,he,ue,ye,j,me],styles:[".chart-widget[_ngcontent-%COMP%]{width:80%}.link-dark[_ngcontent-%COMP%]{color:#333!important}.dropdown-menu.show.today[_ngcontent-%COMP%]{inset:0 auto auto -34px!important}.sales-card-widget[_ngcontent-%COMP%]{width:19%}.sales-card-widget[_ngcontent-%COMP%] .card-row[_ngcontent-%COMP%]{height:64px}@media only screen and (max-width:767px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}@media only screen and (min-width:768px)and (max-width:991px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}"]})};var Ue=t=>({active:t});function je(t,i){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"div",2)(3,"small",3),s(4),r(),o(5,"h2",4),s(6),r()()),t&2){let e=d();l(),V(e.title),l(3),V(e.currencySymbol),l(2),V(e.value)}}function Ge(t,i){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"h2",4),s(3,"-"),r()),t&2){let e=d();l(),V(e.title)}}var K=class t{title;isActive;currencySymbol;value;showValue;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-card-widget"]],inputs:{title:"title",isActive:"isActive",currencySymbol:"currencySymbol",value:"value",showValue:"showValue"},decls:3,vars:4,consts:[[1,"card-widget","pe-0",3,"ngClass"],[1,"fs-4","headings-font-family"],[1,"d-flex","justify-content-start","align-items-center"],[1,"fw-normal","me-2"],[1,"fw-normal"]],template:function(e,a){e&1&&(o(0,"div",0),m(1,je,7,3)(2,Ge,4,1),r()),e&2&&(c("ngClass",F(2,Ue,a.isActive)),l(),u(a.showValue?1:2))},dependencies:[k,U],styles:[".card-widget[_ngcontent-%COMP%]{padding:20px;border-radius:6px;min-height:95px;border:.5px solid #e4e4e4;width:100%}.active[_ngcontent-%COMP%]{background-color:#f0f0f0}@media only screen and (max-width:767px){.card-widget[_ngcontent-%COMP%]{width:200px}}@media only screen and (min-width:768px)and (max-width:991px){.card-widget[_ngcontent-%COMP%]{width:200px}}"]})};var Ze=()=>[R,import("./chunk-3UGKZ53O.js").then(t=>t.PaymentWidgetComponent)],Ke=()=>[R,import("./chunk-LPHCB7QC.js").then(t=>t.PurchaseWidgetComponent)],qe=()=>[R,import("./chunk-LYKSZ3H6.js").then(t=>t.DebtWidgetComponent)],ze=()=>[R,import("./chunk-AS24FSZZ.js").then(t=>t.ProductWidgetComponent)],Je=()=>[R,import("./chunk-AQVBCYN3.js").then(t=>t.InventoryWidgetComponent)],Qe=()=>({role:"Payment View Role"}),Xe=()=>({role:"Buy Report Role"}),$e=()=>({role:"Debt View Role"}),et=()=>({role:"Report View Role"}),tt=()=>({role:"Inventory View Role"});function at(t,i){if(t&1){let e=v();o(0,"div",13)(1,"h6"),s(2,"Outlet"),r(),o(3,"outlet-selector",14),Q("ngModelChange",function(n){x(e);let p=d();return J(p.dashboardFilter().Outlets,n)||(p.dashboardFilter().Outlets=n),y(n)}),r()()}if(t&2){let e=d();l(3),c("multiple",!0)("accessType",e.outletAccess()),z("ngModel",e.dashboardFilter().Outlets)}}function it(t,i){if(t&1){let e=v();o(0,"div",19),P("click",function(){let n=x(e).$implicit,p=d(2);return y(p.onClickCardWidget(n))}),T(1,"app-card-widget",20),h(2,"number"),r()}if(t&2){let e=i.$implicit,a=d(),n=d();l(),c("title",e.title)("matTooltip",e.tooltip)("currencySymbol",a==null||a.ConfigData==null?null:a.ConfigData.CurrencySymbol)("value",e.value==null?"-":_(2,6,e.value,"1.0-0"))("showValue",e.showValue)("isActive",e.id==n.activeTab())}}function nt(t,i){if(t&1){let e=v();o(0,"app-sales-widget",21),P("onFilter",function(n){x(e);let p=d(2);return y(p.onFilterSalesWidget(n))}),r()}if(t&2){let e=d(),a=d();c("dashboardConfig",e==null?null:e.ConfigData)("chartData",e==null?null:e.HighChartData)("filterByOutletIds",a.dashboardFilter().Outlets)}}function ot(t,i){t&1&&A(0)}function rt(t,i){if(t&1){let e=v();o(0,"app-payment-widget",23),P("onFilter",function(n){x(e);let p=d(4);return y(p.onFilterPaymentWidget(n))}),r()}if(t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("chartData",(e=n.paymentData())==null?null:e.Data)}}function lt(t,i){if(t&1&&S(0,ot,1,0,"ng-container",22)(1,rt,1,2,"ng-template",null,2,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.payment.View?e:n)("ngTemplateOutletContext",b(2,Qe))}}function st(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function dt(t,i){t&1&&(W(0,lt,3,3)(1,st,2,0),I(2,0,Ze,null,1),N(0,-1))}function ct(t,i){t&1&&A(0)}function pt(t,i){if(t&1&&T(0,"app-purchase-widget",18),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("chartData",(e=n.purchaseData())==null?null:e.HighChartData)("filterByOutletIds",n.dashboardFilter().Outlets)}}function mt(t,i){if(t&1&&S(0,ct,1,0,"ng-container",22)(1,pt,1,3,"ng-template",null,3,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.buy.Report?e:n)("ngTemplateOutletContext",b(2,Xe))}}function ut(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function ht(t,i){t&1&&(W(0,mt,3,3)(1,ut,2,0),I(2,0,Ke,null,1),N(0,-1))}function _t(t,i){t&1&&A(0)}function Ct(t,i){if(t&1&&T(0,"app-debt-widget",25),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("debtData",(e=n.debtData())==null?null:e.PageData)}}function ft(t,i){if(t&1&&S(0,_t,1,0,"ng-container",22)(1,Ct,1,2,"ng-template",null,4,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.debt.View?e:n)("ngTemplateOutletContext",b(2,$e))}}function gt(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Dt(t,i){t&1&&(W(0,ft,3,3)(1,gt,2,0),I(2,0,qe,null,1),N(0,-1))}function bt(t,i){t&1&&A(0)}function Tt(t,i){if(t&1&&T(0,"app-product-widget",26),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("productData",(e=n.productData())==null?null:e.PageData)}}function xt(t,i){if(t&1&&S(0,bt,1,0,"ng-container",22)(1,Tt,1,2,"ng-template",null,5,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.report.View?e:n)("ngTemplateOutletContext",b(2,et))}}function yt(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function St(t,i){t&1&&(W(0,xt,3,3)(1,yt,2,0),I(2,0,ze,null,1),N(0,-1))}function vt(t,i){t&1&&A(0)}function wt(t,i){if(t&1&&T(0,"app-inventory-widget",27),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("inventoryData",(e=n.inventoryData())==null?null:e.PageData)}}function Et(t,i){if(t&1&&S(0,vt,1,0,"ng-container",22)(1,wt,1,2,"ng-template",null,6,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.inventory.View?e:n)("ngTemplateOutletContext",b(2,tt))}}function Ot(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Pt(t,i){t&1&&(W(0,Et,3,3)(1,Ot,2,0),I(2,0,Je,null,1),N(0,-1))}function Vt(t,i){if(t&1&&(o(0,"div",12)(1,"div",15)(2,"div",16),re(3,it,3,9,"div",17,oe),r(),m(5,nt,1,3,"app-sales-widget",18),m(6,dt,4,0),m(7,ht,4,0),m(8,Dt,4,0),m(9,St,4,0),m(10,Pt,4,0),r()()),t&2){let e=d();l(3),le(e.cardWidgetComputed()),l(2),u(e.activeTab()=="SALES"?5:-1),l(),u(e.activeTab()=="PAYMENT"?6:-1),l(),u(e.activeTab()=="PURCHASE"?7:-1),l(),u(e.activeTab()=="DEBT"?8:-1),l(),u(e.activeTab()=="PRODUCT"?9:-1),l(),u(e.activeTab()=="INVENTORY"?10:-1)}}function Ft(t,i){if(t&1&&(o(0,"div",24)(1,"div",28)(2,"div"),T(3,"img",29),r(),o(4,"h1",30),s(5,"You are not authorized"),r(),o(6,"p"),s(7," This page requires role "),o(8,"span",31),s(9),r(),s(10," to be accessed. Please contact your Administrator to gain access! "),r()()()),t&2){let e=i.role;l(9),C("[",e,"]")}}var We=class t extends Te{constructor(e,a,n){super(e);this.dashboardService=a;this.role=n;this.menuData$.subscribe(),this.fetchAllData(),ae(()=>{this.updateCardWidget()})}cardWidget=g([]);outletAccess=g(2);dashboardFilter=g({Outlets:[]});salesData=g(null);paymentData=g(null);purchaseData=g(null);debtData=g(null);productData=g(null);inventoryData=g(null);activeTab=g("SALES");cardWidgetComputed=ce(()=>this.cardWidget().map(e=>{let a=!1;if(e.id==="SALES"?a=this.role.dashboard.View:e.id==="PAYMENT"?a=this.role.payment.View:e.id==="PURCHASE"?a=this.role.buy.Create&&this.role.buy.Report:e.id==="DEBT"?a=this.role.debt.View:e.id==="PRODUCT"?a=this.role.report.View:e.id==="INVENTORY"?a=this.role.inventory.View:a=!0,!a)return null;let n=e.tooltip;return e.id==="SALES"?n=this.activeTab()==="SALES"?e.tooltip:"Total Sales Today":e.id==="PAYMENT"?n=this.activeTab()==="PAYMENT"?e.tooltip:"Total Payment Today":e.id==="PURCHASE"?n=this.activeTab()==="PURCHASE"?e.tooltip:"Total Purchase Today":e.id==="DEBT"?n=this.activeTab()==="DEBT"?e.tooltip:"Total Debt Today":e.id==="PRODUCT"?n=this.activeTab()==="PRODUCT"?e.tooltip:"Total Product Today":e.id==="INVENTORY"&&(n=this.activeTab()==="INVENTORY"?e.tooltip:"Total Inventory Today"),Y(L({},e),{tooltip:n})}).filter(e=>e!==null));fetchAllData(){this.dashboardService.getDashboardSales(this.dashboardFilter()).subscribe(e=>this.salesData.set(e))}updateCardWidget(){let e=this.activeTab();if(e==="SALES"&&this.salesData()){let a=this.dashboardService.getTotalData("Sales",this.salesData().HighChartData.Series,1);this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}else if(e==="PAYMENT"&&this.paymentData()){let a=this.dashboardService.getTotalData("All",this.paymentData().Data.Series,1);this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}else if(e==="PURCHASE"&&this.purchaseData()){let a=this.dashboardService.getTotalData("Purchase",this.purchaseData().HighChartData.Series,1);this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}else if(e==="DEBT"&&this.debtData()){let a=this.debtData().PageData.Receivable;this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}}onFilterByOutlet(){this.dashboardService.clearCache(),this.fetchAllData(),this.updateCardWidget()}onClickCardWidget(e){switch(this.activeTab.set(e.id),e.id){case"SALES":this.dashboardService.getDashboardSales(this.dashboardFilter()).subscribe(a=>this.salesData.set(a));break;case"PURCHASE":this.dashboardService.getDashboardPurchase(this.dashboardFilter()).subscribe(a=>this.purchaseData.set(a));break;case"DEBT":this.dashboardService.getDashboardDebt(this.dashboardFilter()).subscribe(a=>this.debtData.set(a));break;case"PRODUCT":this.dashboardService.getDashboardProduct(this.dashboardFilter()).subscribe(a=>this.productData.set(a));break;case"INVENTORY":this.dashboardService.getDashboardInventory(this.dashboardFilter()).subscribe(a=>this.inventoryData.set(a));break;case"PAYMENT":this.dashboardService.getDashboardPayment(this.dashboardFilter()).subscribe(a=>this.paymentData.set(a));break;default:new Error("Invalid widget type")}this.updateCardWidget()}onFilterSalesWidget(e){if(!this.salesData())return;let a=e.period==="WEEKLY"?7:1,n=this.dashboardService.getTotalData("Sales",this.salesData().HighChartData.Series,a);this.dashboardService.setWidgetData(n,"SALES").subscribe(p=>{this.cardWidget.set(p.map(f=>(f.id==="SALES"&&(f.tooltip=e.period==="TODAY"?"Total Sales Today":"Total Sales last 7 days"),f)))})}onFilterPaymentWidget(e){if(!this.paymentData())return;let a=e.period==="WEEKLY"?7:1,n=this.dashboardService.getTotalData("All",this.paymentData().Data.Series,a);this.dashboardService.setWidgetData(n,"PAYMENT").subscribe(p=>{this.cardWidget.set(p.map(f=>(f.id==="PAYMENT"&&(f.tooltip=e.period==="TODAY"?"Total Payment Today":"Total Payment last 7 days"),f)))})}static \u0275fac=function(a){return new(a||t)(O(xe),O(E),O(G))};static \u0275cmp=M({type:t,selectors:[["POS-dashboard-v2"]],features:[H([E]),ne],decls:12,vars:5,consts:[["pageFilterTemplate",""],["NOT_AUTHORIZED",""],["PAYMENT",""],["BUY",""],["DEBT",""],["PRODUCT",""],["INVENTORY",""],[3,"onSubmit","filterChange","hideSearchBox","pageData","isFilterOnDropdown","filter"],[1,"content"],[1,"container-fluid","bg-light-gray","p-8"],[1,"row"],[1,"col-12"],[1,"card","mb-0"],[1,"dialog-filter"],["appendTo","body","placeholder","Select Outlets",3,"ngModelChange","multiple","accessType","ngModel"],[1,"card-body"],[1,"d-flex","flex-row","flex-nowrap","justify-content-between","align-items-center","overflow-auto",2,"column-gap","18px"],[1,"cursor-pointer","card-widget-tab"],[3,"dashboardConfig","chartData","filterByOutletIds"],[1,"cursor-pointer","card-widget-tab",3,"click"],["matTooltipPosition","above",3,"title","matTooltip","currencySymbol","value","showValue","isActive"],[3,"onFilter","dashboardConfig","chartData","filterByOutletIds"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"onFilter","dashboardConfig","chartData"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[3,"dashboardConfig","debtData"],[3,"dashboardConfig","productData"],[3,"dashboardConfig","inventoryData"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","160px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(a,n){if(a&1){let p=v();o(0,"mainpanel-cmp",7),P("onSubmit",function(){return n.onFilterByOutlet()}),Q("filterChange",function(q){return x(p),J(n.dashboardFilter,q)||(n.dashboardFilter=q),y(q)}),o(1,"filters"),S(2,at,4,3,"ng-template",null,0,w),r(),o(4,"content")(5,"div",8)(6,"div",9)(7,"div",10)(8,"div",11),m(9,Vt,11,6,"div",12),r()()()()()(),S(10,Ft,11,1,"ng-template",null,1,w)}if(a&2){let p;c("hideSearchBox",!0)("pageData",n.menuData)("isFilterOnDropdown",!1),z("filter",n.dashboardFilter),l(9),u((p=n.salesData())?9:-1,p)}},dependencies:[k,ve,Se,ge,Ce,fe,Z,K,we,be,De,j],styles:[".card-widget-tab[_ngcontent-%COMP%]{flex:1 1 0px}@media only screen and (max-width:767px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}@media only screen and (min-width:768px)and (max-width:991px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}"]})};export{We as DashboardV2Component};
1
+ import{a as E,b as Oe}from"./chunk-ENBHDEF7.js";import"./chunk-AVOTGRPZ.js";import{c as Ee}from"./chunk-NSNUUKNK.js";import{a as we}from"./chunk-VH3BBWAO.js";import"./chunk-OX2RZSIO.js";import"./chunk-S5D6TMC7.js";import"./chunk-GQLZJQI6.js";import{f as Se,g as ve}from"./chunk-YFB4XBRI.js";import"./chunk-Y2ST6F4K.js";import"./chunk-YQH2QORC.js";import"./chunk-GOPYUSW4.js";import"./chunk-ZAPREM3S.js";import"./chunk-QWL5S2RG.js";import"./chunk-X36HAWOW.js";import"./chunk-2B2L2JOP.js";import"./chunk-N76EALXO.js";import"./chunk-UL6HUKIC.js";import"./chunk-LRM4CXVP.js";import{a as Te}from"./chunk-M42U7VID.js";import{a as xe}from"./chunk-U5IOZ6AH.js";import"./chunk-HRIVC724.js";import"./chunk-DTQAQRLJ.js";import"./chunk-LZNSQRCR.js";import"./chunk-BCH2MDJT.js";import"./chunk-INL666X3.js";import"./chunk-UUAZGIAN.js";import"./chunk-SPPZGYU7.js";import"./chunk-DYDRVXX3.js";import"./chunk-FICGNDPR.js";import{a as De,b as be}from"./chunk-2BQQJ3YS.js";import"./chunk-YNQPX5G6.js";import{O as ye}from"./chunk-5VLBYHUJ.js";import"./chunk-5UKWQA6U.js";import"./chunk-QYSFCWV7.js";import"./chunk-V5VDOLOZ.js";import"./chunk-6RFU4RXC.js";import"./chunk-YCV6GUTW.js";import"./chunk-VXGIPE22.js";import"./chunk-PG5RORVW.js";import"./chunk-OQDKFI6M.js";import"./chunk-TKBQO5Z6.js";import"./chunk-M5BHFFPW.js";import"./chunk-XUQHA7FY.js";import"./chunk-AJ6OO7CP.js";import"./chunk-UPAKGSOK.js";import"./chunk-FMECWSCG.js";import{E as ge,h as Ce,o as fe}from"./chunk-QMS2MBIA.js";import"./chunk-YAH623GO.js";import"./chunk-SFKUAKOZ.js";import"./chunk-WLVEHCCR.js";import{b as G}from"./chunk-P7GOTTNS.js";import{a as _e}from"./chunk-3DEA4WWC.js";import"./chunk-JWOMTKKN.js";import"./chunk-3GXUD7K4.js";import{Bb as m,Bc as H,Ca as te,Cc as b,Db as u,Dc as F,Ec as X,Fa as g,Fb as oe,Fc as de,Gb as re,Ha as ae,Hb as le,Ib as c,Ja as ie,Jb as o,Kb as r,Kc as h,Lb as T,Mc as _,Qc as w,Rb as A,Tc as ce,Ub as v,Ud as ue,Wd as he,Xb as P,Yc as pe,Za as l,Zb as d,eb as O,hc as D,ib as M,mc as s,md as U,nb as ne,nc as V,ob as S,oc as C,pb as W,pc as se,rc as z,rd as R,sc as J,tc as Q,ub as I,ud as me,va as x,vb as N,wa as y,wd as j,zd as k}from"./chunk-NGFIIVK5.js";import"./chunk-WFMAM73Y.js";import{a as L,b as Y}from"./chunk-SNAKHGZS.js";var B=class{Cost;Profit;Sales;SalesWithTax;Tax;Count;TopOutlet};var ee=t=>({"border-bottom":t}),$=()=>["/menu/Reports/Sales_Report/Standard/Summary"],Ae=(t,i,e)=>({From:t,To:i,ListIDs:e}),Re=t=>({today:t}),Pe=(t,i)=>({From:t,To:i});function ke(t,i){if(t&1){let e=v();o(0,"div",6)(1,"a",15),s(2),r(),o(3,"ul",16)(4,"li")(5,"a",17),P("click",function(){x(e);let n=d();return n.isTodayFilter=!n.isTodayFilter,y(n.onChangeFilterPeriod())}),s(6),r()()()()}if(t&2){let e=d();l(2),C(" ",e.isTodayFilter?"Today":"Last 7 Days"," "),l(),c("ngClass",F(3,Re,!e.isTodayFilter)),l(3),C(" ",e.isTodayFilter?"Last 7 Days":"Today"," ")}}function Be(t,i){t&1&&(o(0,"span",7),s(1,"Today"),r())}function Le(t,i){if(t&1&&(o(0,"div",18)(1,"a",9),h(2,"date"),h(3,"date"),o(4,"div",10),s(5,"Tax"),r(),o(6,"div",19)(7,"small",20),s(8),r(),o(9,"h2",11),s(10),h(11,"number"),r()()()(),o(12,"div",8)(13,"a",9),h(14,"date"),h(15,"date"),o(16,"div",10),s(17,"Sales + Tax"),r(),o(18,"div",19)(19,"small",20),s(20),r(),o(21,"h2",11),s(22),h(23,"number"),r()()()()),t&2){let e=d();l(),c("routerLink",b(27,$))("queryParams",X(28,Pe,_(2,9,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(3,12,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(11,15,e.salesData==null?null:e.salesData.Tax,"1.0-0")," "),l(2),c("ngClass",F(31,ee,e.role.product.Cost)),l(),c("routerLink",b(33,$))("queryParams",X(34,Pe,_(14,18,e.isTodayFilter?e.today:e.chartData==null?null:e.chartData.From,"yyyy-MM-dd"),_(15,21,e.isTodayFilter?e.today:e.dateTo,"yyyy-MM-dd"))),l(7),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(23,24,e.salesData==null?null:e.salesData.SalesWithTax,"1.0-0")," ")}}function Ye(t,i){if(t&1&&(o(0,"div",8)(1,"div")(2,"div",21),s(3,"Cost"),r(),o(4,"div",19)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),h(9,"number"),r()()()()),t&2){let e=d();c("ngClass",F(6,ee,e.role.report.Profit)),l(6),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Cost,"1.0-0")," ")}}function He(t,i){if(t&1&&(o(0,"div",12)(1,"div")(2,"div",22),s(3),r(),o(4,"div",19)(5,"small",20),s(6),r(),o(7,"h2",11),s(8),h(9,"number"),r()()()()),t&2){let e=d();l(3),C(" ",e.includeTax?"Gross Profit":"Profit"," "),l(3),C(" ",e.dashboardConfig==null?null:e.dashboardConfig.CurrencySymbol," "),l(2),C(" ",_(9,3,e.salesData==null?null:e.salesData.Profit,"1.0-0")," ")}}var Z=class t{constructor(i,e){this.dashboardService=i;this.role=e;this.chartConfig=this.dashboardService.getLineChartConfig()}chartData;salesData;dashboardConfig;filterSalesWidget=new te;chartConfig;todaySalesData;weeklySalesData;isTodayFilter=!0;showPeriodFilter;includeTax;today=new Date;dateTo;filterByOutletIds=pe([]);ngOnChanges(i){if(i.chartData&&i.chartData.currentValue){this.initSalesData();let e=i?.chartData?.currentValue?.Series;e=this.setChartLineColor(e),e=this.setSalesTaxLegend(e),this.chartConfig=Y(L({},this.chartConfig),{series:e}),this.chartConfig=this.dashboardService.setSeriesPointStart(this.chartData.From,this.chartConfig),this.initPeriodFilter(e),this.getDateTo()}}initPeriodFilter(i){this.showPeriodFilter=i[0]?.data?.length>=7}initSalesData(){this.salesData=new B,this.includeTax=this.isIncludeTax(),this.salesData.Sales=this.dashboardService.getTotalData("Sales",this.chartData.Series,1),this.salesData.SalesWithTax=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,1),this.salesData.Cost=this.dashboardService.getTotalData("Cost",this.chartData.Series,1),this.salesData.Tax=this.salesData.SalesWithTax-this.salesData.Sales,this.salesData.Profit=(this.includeTax?this.salesData.SalesWithTax:this.salesData.Sales)-this.salesData.Cost,this.salesData.Count=this.dashboardService.getTotalData("Count",this.chartData.Series,1),this.todaySalesData=Ee(B,this.salesData)}setChartLineColor(i=[]){return i?.map(e=>(e.name=="Sales"&&(e.color="rgb(44, 175, 254)",e.fillColor=this.dashboardService.getLinierGradient("rgb(44, 175, 254)")),e.name=="Cost"&&(e.color="#fb404b",e.fillColor=this.dashboardService.getLinierGradient("#fb404b")),e.name=="Sales + Tax"&&(e.color="#2ECC71",e.fillColor=this.dashboardService.getLinierGradient("#2ECC71")),e))}onChangeFilterPeriod(){this.isTodayFilter?this.salesData=this.todaySalesData:(this.generateWeeklySalesData(),this.salesData=this.weeklySalesData),this.filterSalesWidget.emit({period:this.isTodayFilter?"TODAY":"WEEKLY"})}getDateTo(){let i=new Date,e=new Date(this.chartData.From);i.setDate(e.getDate()+7),this.dateTo=i}generateWeeklySalesData(){if(_e.IsEmpty(this.weeklySalesData)){let i=this.dashboardService.getTotalData("Sales",this.chartData.Series,7),e=this.dashboardService.getTotalData("Sales + Tax",this.chartData.Series,7),a=this.dashboardService.getTotalData("Cost",this.chartData.Series,7),n=this.dashboardService.getTotalData("Count",this.chartData.Series,7),p=e-i,f=(this.includeTax?e:i)-a;this.weeklySalesData=this.weeklySalesData?this.weeklySalesData:new B,this.weeklySalesData.Sales=i,this.weeklySalesData.SalesWithTax=e,this.weeklySalesData.Cost=a,this.weeklySalesData.Profit=f,this.weeklySalesData.Tax=p,this.weeklySalesData.Count=n}}isIncludeTax(){let i=this.chartData.Series;return this.dashboardService.filterSeriesByName("Sales + Tax",i).visible}setSalesTaxLegend(i){return i=i.map(e=>(e.name=="Sales + Tax"&&(e.showInLegend=this.salesData.Tax>0),e)),i}static \u0275fac=function(e){return new(e||t)(O(E),O(G))};static \u0275cmp=M({type:t,selectors:[["app-sales-widget"]],inputs:{chartData:"chartData",dashboardConfig:"dashboardConfig",filterByOutletIds:[1,"filterByOutletIds"]},outputs:{filterSalesWidget:"onFilter"},features:[H([E]),ie],decls:25,vars:30,consts:[[1,"d-flex","flex-row","flex-wrap","mt-8","justify-content-between"],[1,"chart-widget"],["containerId","salesChart",3,"config"],[1,"sales-card-widget"],[1,"border","rounded","rounded-bottom-0","px-8","py-4","w-100","h-auto"],[1,"border-bottom","d-flex","align-items-center","justify-content-end",2,"height","42px"],[1,"btn-group"],[1,"link-dark","fs-2","headings-font-family"],[1,"text-end","card-row","d-flex","align-items-center","justify-content-end",3,"ngClass"],["target","_blank",1,"link-dark",3,"routerLink","queryParams"],[1,"fs-5"],[1,"fw-normal"],[1,"text-end","d-flex","align-items-center","justify-content-end","card-row"],[1,"card-footer","border","rounded-bottom","border-top-0","text-end","p-3"],["routerLink","/menu/Setup/Configuration/Application"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"dropdown-toggle","link-dark","fs-2","headings-font-family"],[1,"dropdown-menu","p-0",2,"position","absolute","right","20px !important",3,"ngClass"],["role","button",1,"dropdown-item","fs-4",3,"click"],[1,"text-end","border-bottom","card-row","d-flex","align-items-center","justify-content-end"],[1,"d-flex","align-items-center","justify-content-end"],[1,"me-2"],[1,"fs-5","text-danger"],[1,"fs-5","text-success"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div",1),T(2,"app-chart-container",2),r(),o(3,"div",3)(4,"div",4)(5,"div",5),m(6,ke,7,5,"div",6)(7,Be,2,0,"span",7),r(),o(8,"div",8)(9,"a",9),h(10,"date"),h(11,"date"),o(12,"div",10),s(13,"Order"),r(),o(14,"h2",11),s(15),h(16,"number"),r()()(),m(17,Le,24,37),m(18,Ye,10,8,"div",8),m(19,He,10,6,"div",12),r(),o(20,"div",13)(21,"a",14)(22,"small"),s(23),h(24,"date"),r()()()()()),e&2&&(l(2),c("config",a.chartConfig),l(4),u(!(a.role==null||a.role.dashboard==null)&&a.role.dashboard.View&&a.showPeriodFilter?6:7),l(2),c("ngClass",F(23,ee,(a.salesData==null?null:a.salesData.Tax)||a.role.product.Cost)),l(),c("routerLink",b(25,$))("queryParams",de(26,Ae,_(10,11,a.isTodayFilter?a.today:a.chartData==null?null:a.chartData.From,"yyyy-MM-dd"),_(11,14,a.isTodayFilter?a.today:a.dateTo,"yyyy-MM-dd"),a.filterByOutletIds())),l(6),V(_(16,17,a.salesData==null?null:a.salesData.Count,"1.0-0")),l(2),u((a.salesData==null?null:a.salesData.Tax)>0?17:-1),l(),u(a.role.product.Cost?18:-1),l(),u(a.role.report.Profit&&a.role.product.Cost?19:-1),l(4),se("",_(24,20,a.dashboardConfig==null?null:a.dashboardConfig.SpanConfigTime,"dd MMM HH:mm")," ",a.dashboardConfig==null?null:a.dashboardConfig.SmallTimeZone))},dependencies:[k,U,Oe,he,ue,ye,j,me],styles:[".chart-widget[_ngcontent-%COMP%]{width:80%}.link-dark[_ngcontent-%COMP%]{color:#333!important}.dropdown-menu.show.today[_ngcontent-%COMP%]{inset:0 auto auto -34px!important}.sales-card-widget[_ngcontent-%COMP%]{width:19%}.sales-card-widget[_ngcontent-%COMP%] .card-row[_ngcontent-%COMP%]{height:64px}@media only screen and (max-width:767px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}@media only screen and (min-width:768px)and (max-width:991px){.chart-widget[_ngcontent-%COMP%]{width:100%}.sales-card-widget[_ngcontent-%COMP%]{width:100%;margin-top:12px}}"]})};var Ue=t=>({active:t});function je(t,i){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"div",2)(3,"small",3),s(4),r(),o(5,"h2",4),s(6),r()()),t&2){let e=d();l(),V(e.title),l(3),V(e.currencySymbol),l(2),V(e.value)}}function Ge(t,i){if(t&1&&(o(0,"div",1),s(1),r(),o(2,"h2",4),s(3,"-"),r()),t&2){let e=d();l(),V(e.title)}}var K=class t{title;isActive;currencySymbol;value;showValue;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-card-widget"]],inputs:{title:"title",isActive:"isActive",currencySymbol:"currencySymbol",value:"value",showValue:"showValue"},decls:3,vars:4,consts:[[1,"card-widget","pe-0",3,"ngClass"],[1,"fs-4","headings-font-family"],[1,"d-flex","justify-content-start","align-items-center"],[1,"fw-normal","me-2"],[1,"fw-normal"]],template:function(e,a){e&1&&(o(0,"div",0),m(1,je,7,3)(2,Ge,4,1),r()),e&2&&(c("ngClass",F(2,Ue,a.isActive)),l(),u(a.showValue?1:2))},dependencies:[k,U],styles:[".card-widget[_ngcontent-%COMP%]{padding:20px;border-radius:6px;min-height:95px;border:.5px solid #e4e4e4;width:100%}.active[_ngcontent-%COMP%]{background-color:#f0f0f0}@media only screen and (max-width:767px){.card-widget[_ngcontent-%COMP%]{width:200px}}@media only screen and (min-width:768px)and (max-width:991px){.card-widget[_ngcontent-%COMP%]{width:200px}}"]})};var Ze=()=>[R,import("./chunk-3UGKZ53O.js").then(t=>t.PaymentWidgetComponent)],Ke=()=>[R,import("./chunk-LPHCB7QC.js").then(t=>t.PurchaseWidgetComponent)],qe=()=>[R,import("./chunk-LYKSZ3H6.js").then(t=>t.DebtWidgetComponent)],ze=()=>[R,import("./chunk-AS24FSZZ.js").then(t=>t.ProductWidgetComponent)],Je=()=>[R,import("./chunk-AQVBCYN3.js").then(t=>t.InventoryWidgetComponent)],Qe=()=>({role:"Payment View Role"}),Xe=()=>({role:"Buy Report Role"}),$e=()=>({role:"Debt View Role"}),et=()=>({role:"Report View Role"}),tt=()=>({role:"Inventory View Role"});function at(t,i){if(t&1){let e=v();o(0,"div",13)(1,"h6"),s(2,"Outlet"),r(),o(3,"outlet-selector",14),Q("ngModelChange",function(n){x(e);let p=d();return J(p.dashboardFilter().Outlets,n)||(p.dashboardFilter().Outlets=n),y(n)}),r()()}if(t&2){let e=d();l(3),c("multiple",!0)("accessType",e.outletAccess()),z("ngModel",e.dashboardFilter().Outlets)}}function it(t,i){if(t&1){let e=v();o(0,"div",19),P("click",function(){let n=x(e).$implicit,p=d(2);return y(p.onClickCardWidget(n))}),T(1,"app-card-widget",20),h(2,"number"),r()}if(t&2){let e=i.$implicit,a=d(),n=d();l(),c("title",e.title)("matTooltip",e.tooltip)("currencySymbol",a==null||a.ConfigData==null?null:a.ConfigData.CurrencySymbol)("value",e.value==null?"-":_(2,6,e.value,"1.0-0"))("showValue",e.showValue)("isActive",e.id==n.activeTab())}}function nt(t,i){if(t&1){let e=v();o(0,"app-sales-widget",21),P("onFilter",function(n){x(e);let p=d(2);return y(p.onFilterSalesWidget(n))}),r()}if(t&2){let e=d(),a=d();c("dashboardConfig",e==null?null:e.ConfigData)("chartData",e==null?null:e.HighChartData)("filterByOutletIds",a.dashboardFilter().Outlets)}}function ot(t,i){t&1&&A(0)}function rt(t,i){if(t&1){let e=v();o(0,"app-payment-widget",23),P("onFilter",function(n){x(e);let p=d(4);return y(p.onFilterPaymentWidget(n))}),r()}if(t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("chartData",(e=n.paymentData())==null?null:e.Data)}}function lt(t,i){if(t&1&&S(0,ot,1,0,"ng-container",22)(1,rt,1,2,"ng-template",null,2,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.payment.View?e:n)("ngTemplateOutletContext",b(2,Qe))}}function st(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function dt(t,i){t&1&&(W(0,lt,3,3)(1,st,2,0),I(2,0,Ze,null,1),N(0,-1))}function ct(t,i){t&1&&A(0)}function pt(t,i){if(t&1&&T(0,"app-purchase-widget",18),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("chartData",(e=n.purchaseData())==null?null:e.HighChartData)("filterByOutletIds",n.dashboardFilter().Outlets)}}function mt(t,i){if(t&1&&S(0,ct,1,0,"ng-container",22)(1,pt,1,3,"ng-template",null,3,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.buy.Report?e:n)("ngTemplateOutletContext",b(2,Xe))}}function ut(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function ht(t,i){t&1&&(W(0,mt,3,3)(1,ut,2,0),I(2,0,Ke,null,1),N(0,-1))}function _t(t,i){t&1&&A(0)}function Ct(t,i){if(t&1&&T(0,"app-debt-widget",25),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("debtData",(e=n.debtData())==null?null:e.PageData)}}function ft(t,i){if(t&1&&S(0,_t,1,0,"ng-container",22)(1,Ct,1,2,"ng-template",null,4,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.debt.View?e:n)("ngTemplateOutletContext",b(2,$e))}}function gt(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Dt(t,i){t&1&&(W(0,ft,3,3)(1,gt,2,0),I(2,0,qe,null,1),N(0,-1))}function bt(t,i){t&1&&A(0)}function Tt(t,i){if(t&1&&T(0,"app-product-widget",26),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("productData",(e=n.productData())==null?null:e.PageData)}}function xt(t,i){if(t&1&&S(0,bt,1,0,"ng-container",22)(1,Tt,1,2,"ng-template",null,5,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.report.View?e:n)("ngTemplateOutletContext",b(2,et))}}function yt(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function St(t,i){t&1&&(W(0,xt,3,3)(1,yt,2,0),I(2,0,ze,null,1),N(0,-1))}function vt(t,i){t&1&&A(0)}function wt(t,i){if(t&1&&T(0,"app-inventory-widget",27),t&2){let e,a=d(3),n=d();c("dashboardConfig",a==null?null:a.ConfigData)("inventoryData",(e=n.inventoryData())==null?null:e.PageData)}}function Et(t,i){if(t&1&&S(0,vt,1,0,"ng-container",22)(1,wt,1,2,"ng-template",null,6,w),t&2){let e=D(2),a=d(3),n=D(11);c("ngTemplateOutlet",a.role.inventory.View?e:n)("ngTemplateOutletContext",b(2,tt))}}function Ot(t,i){t&1&&(o(0,"div",24),s(1," LOADING... "),r())}function Pt(t,i){t&1&&(W(0,Et,3,3)(1,Ot,2,0),I(2,0,Je,null,1),N(0,-1))}function Vt(t,i){if(t&1&&(o(0,"div",12)(1,"div",15)(2,"div",16),re(3,it,3,9,"div",17,oe),r(),m(5,nt,1,3,"app-sales-widget",18),m(6,dt,4,0),m(7,ht,4,0),m(8,Dt,4,0),m(9,St,4,0),m(10,Pt,4,0),r()()),t&2){let e=d();l(3),le(e.cardWidgetComputed()),l(2),u(e.activeTab()=="SALES"?5:-1),l(),u(e.activeTab()=="PAYMENT"?6:-1),l(),u(e.activeTab()=="PURCHASE"?7:-1),l(),u(e.activeTab()=="DEBT"?8:-1),l(),u(e.activeTab()=="PRODUCT"?9:-1),l(),u(e.activeTab()=="INVENTORY"?10:-1)}}function Ft(t,i){if(t&1&&(o(0,"div",24)(1,"div",28)(2,"div"),T(3,"img",29),r(),o(4,"h1",30),s(5,"You are not authorized"),r(),o(6,"p"),s(7," This page requires role "),o(8,"span",31),s(9),r(),s(10," to be accessed. Please contact your Administrator to gain access! "),r()()()),t&2){let e=i.role;l(9),C("[",e,"]")}}var We=class t extends Te{constructor(e,a,n){super(e);this.dashboardService=a;this.role=n;this.menuData$.subscribe(),this.fetchAllData(),ae(()=>{this.updateCardWidget()})}cardWidget=g([]);outletAccess=g(2);dashboardFilter=g({Outlets:[]});salesData=g(null);paymentData=g(null);purchaseData=g(null);debtData=g(null);productData=g(null);inventoryData=g(null);activeTab=g("SALES");cardWidgetComputed=ce(()=>this.cardWidget().map(e=>{let a=!1;if(e.id==="SALES"?a=this.role.dashboard.View:e.id==="PAYMENT"?a=this.role.payment.View:e.id==="PURCHASE"?a=this.role.buy.Create&&this.role.buy.Report:e.id==="DEBT"?a=this.role.debt.View:e.id==="PRODUCT"?a=this.role.report.View:e.id==="INVENTORY"?a=this.role.inventory.View:a=!0,!a)return null;let n=e.tooltip;return e.id==="SALES"?n=this.activeTab()==="SALES"?e.tooltip:"Total Sales Today":e.id==="PAYMENT"?n=this.activeTab()==="PAYMENT"?e.tooltip:"Total Payment Today":e.id==="PURCHASE"?n=this.activeTab()==="PURCHASE"?e.tooltip:"Total Purchase Today":e.id==="DEBT"?n=this.activeTab()==="DEBT"?e.tooltip:"Total Debt Today":e.id==="PRODUCT"?n=this.activeTab()==="PRODUCT"?e.tooltip:"Total Product Today":e.id==="INVENTORY"&&(n=this.activeTab()==="INVENTORY"?e.tooltip:"Total Inventory Today"),Y(L({},e),{tooltip:n})}).filter(e=>e!==null));fetchAllData(){this.dashboardService.getDashboardSales(this.dashboardFilter()).subscribe(e=>this.salesData.set(e))}updateCardWidget(){let e=this.activeTab();if(e==="SALES"&&this.salesData()){let a=this.dashboardService.getTotalData("Sales",this.salesData().HighChartData.Series,1);this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}else if(e==="PAYMENT"&&this.paymentData()){let a=this.dashboardService.getTotalData("All",this.paymentData().Data.Series,1);this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}else if(e==="PURCHASE"&&this.purchaseData()){let a=this.dashboardService.getTotalData("Purchase",this.purchaseData().HighChartData.Series,1);this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}else if(e==="DEBT"&&this.debtData()){let a=this.debtData().PageData.Receivable;this.dashboardService.setWidgetData(a,e).subscribe(n=>this.cardWidget.set(n))}}onFilterByOutlet(){this.dashboardService.clearCache(),this.fetchAllData(),this.updateCardWidget()}onClickCardWidget(e){switch(this.activeTab.set(e.id),e.id){case"SALES":this.dashboardService.getDashboardSales(this.dashboardFilter()).subscribe(a=>this.salesData.set(a));break;case"PURCHASE":this.dashboardService.getDashboardPurchase(this.dashboardFilter()).subscribe(a=>this.purchaseData.set(a));break;case"DEBT":this.dashboardService.getDashboardDebt(this.dashboardFilter()).subscribe(a=>this.debtData.set(a));break;case"PRODUCT":this.dashboardService.getDashboardProduct(this.dashboardFilter()).subscribe(a=>this.productData.set(a));break;case"INVENTORY":this.dashboardService.getDashboardInventory(this.dashboardFilter()).subscribe(a=>this.inventoryData.set(a));break;case"PAYMENT":this.dashboardService.getDashboardPayment(this.dashboardFilter()).subscribe(a=>this.paymentData.set(a));break;default:new Error("Invalid widget type")}this.updateCardWidget()}onFilterSalesWidget(e){if(!this.salesData())return;let a=e.period==="WEEKLY"?7:1,n=this.dashboardService.getTotalData("Sales",this.salesData().HighChartData.Series,a);this.dashboardService.setWidgetData(n,"SALES").subscribe(p=>{this.cardWidget.set(p.map(f=>(f.id==="SALES"&&(f.tooltip=e.period==="TODAY"?"Total Sales Today":"Total Sales last 7 days"),f)))})}onFilterPaymentWidget(e){if(!this.paymentData())return;let a=e.period==="WEEKLY"?7:1,n=this.dashboardService.getTotalData("All",this.paymentData().Data.Series,a);this.dashboardService.setWidgetData(n,"PAYMENT").subscribe(p=>{this.cardWidget.set(p.map(f=>(f.id==="PAYMENT"&&(f.tooltip=e.period==="TODAY"?"Total Payment Today":"Total Payment last 7 days"),f)))})}static \u0275fac=function(a){return new(a||t)(O(xe),O(E),O(G))};static \u0275cmp=M({type:t,selectors:[["POS-dashboard-v2"]],features:[H([E]),ne],decls:12,vars:5,consts:[["pageFilterTemplate",""],["NOT_AUTHORIZED",""],["PAYMENT",""],["BUY",""],["DEBT",""],["PRODUCT",""],["INVENTORY",""],[3,"onSubmit","filterChange","hideSearchBox","pageData","isFilterOnDropdown","filter"],[1,"content"],[1,"container-fluid","bg-light-gray","p-8"],[1,"row"],[1,"col-12"],[1,"card","mb-0"],[1,"dialog-filter"],["appendTo","body","placeholder","Select Outlets",3,"ngModelChange","multiple","accessType","ngModel"],[1,"card-body"],[1,"d-flex","flex-row","flex-nowrap","justify-content-between","align-items-center","overflow-auto",2,"column-gap","18px"],[1,"cursor-pointer","card-widget-tab"],[3,"dashboardConfig","chartData","filterByOutletIds"],[1,"cursor-pointer","card-widget-tab",3,"click"],["matTooltipPosition","above",3,"title","matTooltip","currencySymbol","value","showValue","isActive"],[3,"onFilter","dashboardConfig","chartData","filterByOutletIds"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"onFilter","dashboardConfig","chartData"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[3,"dashboardConfig","debtData"],[3,"dashboardConfig","productData"],[3,"dashboardConfig","inventoryData"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","160px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(a,n){if(a&1){let p=v();o(0,"mainpanel-cmp",7),P("onSubmit",function(){return n.onFilterByOutlet()}),Q("filterChange",function(q){return x(p),J(n.dashboardFilter,q)||(n.dashboardFilter=q),y(q)}),o(1,"filters"),S(2,at,4,3,"ng-template",null,0,w),r(),o(4,"content")(5,"div",8)(6,"div",9)(7,"div",10)(8,"div",11),m(9,Vt,11,6,"div",12),r()()()()()(),S(10,Ft,11,1,"ng-template",null,1,w)}if(a&2){let p;c("hideSearchBox",!0)("pageData",n.menuData)("isFilterOnDropdown",!1),z("filter",n.dashboardFilter),l(9),u((p=n.salesData())?9:-1,p)}},dependencies:[k,ve,Se,ge,Ce,fe,Z,K,we,be,De,j],styles:[".card-widget-tab[_ngcontent-%COMP%]{flex:1 1 0px}@media only screen and (max-width:767px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}@media only screen and (min-width:768px)and (max-width:991px){.card-widget-tab[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.5rem;width:auto}}"]})};export{We as DashboardV2Component};
@@ -1 +1 @@
1
- import{b as Z}from"./chunk-LPFB4TBW.js";import"./chunk-YECO23BV.js";import{d as st}from"./chunk-3XXHI4EL.js";import"./chunk-OFAMZL4W.js";import"./chunk-PRC6BIGW.js";import"./chunk-XRHB5YFU.js";import"./chunk-JGRL2V64.js";import"./chunk-77OYJ25Y.js";import"./chunk-IGAEFS7B.js";import"./chunk-4M7RPVWV.js";import"./chunk-5FZQUUGO.js";import{a as ct,b as dt}from"./chunk-MVXEAR7T.js";import{b as nt}from"./chunk-4OXYU3IN.js";import{a as $}from"./chunk-J7YV42MK.js";import"./chunk-XIC2QDAM.js";import{a as ot}from"./chunk-JYCI6IOX.js";import{f as pt,g as mt}from"./chunk-E2IFXTED.js";import"./chunk-Z3E6ZNA3.js";import"./chunk-KCKWSNMS.js";import"./chunk-IEXCLXA2.js";import"./chunk-7TPO6NBM.js";import"./chunk-3MIWZGD5.js";import"./chunk-DFNQK57Q.js";import"./chunk-M42U7VID.js";import{a as at}from"./chunk-4EZVKSEK.js";import"./chunk-HRIVC724.js";import"./chunk-DTQAQRLJ.js";import"./chunk-LZNSQRCR.js";import"./chunk-BCH2MDJT.js";import"./chunk-INL666X3.js";import"./chunk-UUAZGIAN.js";import"./chunk-SPPZGYU7.js";import"./chunk-DYDRVXX3.js";import"./chunk-FICGNDPR.js";import"./chunk-2BQQJ3YS.js";import"./chunk-YNQPX5G6.js";import{G as rt,O as lt}from"./chunk-5VLBYHUJ.js";import{d as et,e as it}from"./chunk-Q7OVBNEW.js";import"./chunk-V5VDOLOZ.js";import{c as tt}from"./chunk-6RFU4RXC.js";import"./chunk-YCV6GUTW.js";import"./chunk-VXGIPE22.js";import"./chunk-M5BHFFPW.js";import"./chunk-XUQHA7FY.js";import"./chunk-AJ6OO7CP.js";import"./chunk-UPAKGSOK.js";import"./chunk-FMECWSCG.js";import{E as z,h as U,o as Y}from"./chunk-QMS2MBIA.js";import"./chunk-XTLOFV6O.js";import"./chunk-FKLCXIBK.js";import"./chunk-WLVEHCCR.js";import{b as X}from"./chunk-P7GOTTNS.js";import"./chunk-3DEA4WWC.js";import"./chunk-TQLC2ZVQ.js";import{n as K,q as Q}from"./chunk-3GXUD7K4.js";import{Bb as f,Cc as B,Db as D,Dc as j,Eb as A,Gb as W,Hb as k,Ib as s,Jb as n,Kb as i,Kc as v,Lb as b,Mc as T,Nd as H,Pb as h,Qb as I,Qc as N,Ub as y,Ud as J,Wd as q,Xb as w,Za as l,Zb as m,dd as G,eb as u,ib as P,mc as p,nb as V,nc as x,ob as L,oc as O,ra as F,rc as g,sc as _,tc as C,va as c,wa as d,zd as R}from"./chunk-NGFIIVK5.js";import"./chunk-WFMAM73Y.js";import{a as E,b as M}from"./chunk-SNAKHGZS.js";var Ct=()=>["/menu/Contacts/Contact/Customers/Info"],St=o=>({ID:o});function ut(o,S){if(o&1){let t=y();n(0,"button",9),w("click",function(){c(t);let e=m(2);return d(e.openExportModal())}),b(1,"i",10),p(2," Export "),i()}}function xt(o,S){if(o&1){let t=y();n(0,"div")(1,"div",11)(2,"h6"),p(3,"Status"),i(),n(4,"ng-select",12),C("ngModelChange",function(e){c(t);let a=m(2);return _(a.contactState,e)||(a.contactState=e),d(e)}),i(),n(5,"h6"),p(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),C("ngModelChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.CreatorEntityID,e)||(a.pageData.Filter.CreatorEntityID=e),d(e)}),i(),n(8,"h6"),p(9,"Group"),i(),n(10,"ng-select",14),C("ngModelChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.GroupID,e)||(a.pageData.Filter.GroupID=e),d(e)}),i(),n(11,"h6"),p(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),d(e)}),i()(),n(15,"div",16)(16,"datepicker",17),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),d(e)}),i()(),n(17,"h6"),p(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.SignFrom,e)||(a.pageData.Filter.SignFrom=e),d(e)}),i()(),n(21,"div",16)(22,"datepicker",17),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.SignTo,e)||(a.pageData.Filter.SignTo=e),d(e)}),i()()()()}if(o&2){let t=m(2);l(4),g("ngModel",t.contactState),s("items",t.pageData.Options.ContactStates)("clearable",!1),l(3),g("ngModel",t.pageData.Filter.CreatorEntityID),s("items",t.pageData.Options.Entities),l(3),g("ngModel",t.pageData.Filter.GroupID),s("items",t.pageData.Options.Groups),l(4),s("isFloatingLabel",!1),g("date",t.pageData.Filter.From),l(2),s("isFloatingLabel",!1),g("date",t.pageData.Filter.To),l(4),s("isFloatingLabel",!1),g("date",t.pageData.Filter.SignFrom),l(2),s("isFloatingLabel",!1),g("date",t.pageData.Filter.SignTo)}}function ft(o,S){if(o&1&&(n(0,"tr")(1,"th")(2,"a",27),p(3),i()(),n(4,"td"),p(5),i(),n(6,"td"),p(7),i(),n(8,"td"),p(9),i(),n(10,"td"),p(11),v(12,"IsMinDate"),i(),n(13,"td"),p(14),v(15,"IsMinDate"),i()()),o&2){let t=S.$implicit;l(2),s("routerLink",B(14,Ct))("queryParams",j(15,St,t.ID)),l(),x(t.Name),l(2),x(t.Code),l(2),x(t.Mobile),l(2),x(t.Email),l(2),x(T(12,8,t.JoinDate,"dd MMM yyyy")),l(3),O(" ",T(15,11,t.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function Dt(o,S){if(o&1){let t=y();n(0,"div",26)(1,"POS-complex-pagination",28),w("jumpToPage",function(){c(t);let e=m(3);return d(e.getListData())})("previousPage",function(){c(t);let e=m(3);return d(e.getListData())})("nextPage",function(){c(t);let e=m(3);return d(e.getListData())}),i()()}if(o&2){let t=m(3);l(),s("total",t.data.Data.length)("pageData",t.pageData)}}function yt(o,S){if(o&1&&(h(0,8),n(1,"div",18)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr",22)(6,"th"),p(7,"Name"),i(),n(8,"th",23),p(9,"Code"),i(),n(10,"th",23),p(11,"Mobile"),i(),n(12,"th",24),p(13,"Email"),i(),n(14,"th",25),p(15,"Join Date"),i(),n(16,"th",23),p(17,"Last Sign In"),i()()(),n(18,"tbody"),W(19,ft,16,17,"tr",null,A),i()()(),f(21,Dt,2,2,"div",26),i(),I()),o&2){let t=m(2);l(19),k(t.data.Data),l(2),D(t.pageData.Filter?21:-1)}}function ht(o,S){if(o&1){let t=y();n(0,"mainpanel-cmp",2),C("textChange",function(e){c(t);let a=m();return _(a.pageData.Filter.Text,e)||(a.pageData.Filter.Text=e),d(e)}),w("onSubmit",function(){c(t);let e=m();return d(e.searchFromPageOne())}),C("filterChange",function(e){c(t);let a=m();return _(a.pageData.Filter,e)||(a.pageData.Filter=e),d(e)}),h(1,3),n(2,"a",4),b(3,"i",5),p(4,"Get Your Brand Loyalty App "),i(),f(5,ut,3,0,"button",6),I(),h(6,7),L(7,xt,23,15,"ng-template",null,0,N),I(),f(9,yt,22,1,"ng-container",8),i()}if(o&2){let t=m();s("pageData",t.menuData),g("text",t.pageData.Filter.Text),s("isFilterOnDropdown",!1),g("filter",t.pageData.Filter),l(5),D(t.role.global.Export?5:-1),l(4),D(t.data&&t.data.Data?9:-1)}}var gt=class o extends ${constructor(t,r,e,a,_t,It){super(t,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",_t);this.httpService=r;this.csvConverter=e;this.matDialog=a;this.role=It}cdr=F(G);title=F(H);contactState;ngOnInit(){let t=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(t.BrandName+" POS | App Sign In")}postInit(t){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=M(E({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(nt,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(u(at),u(Q),u(ot),u(tt),u(K),u(X))};static \u0275cmp=P({type:o,selectors:[["pos-app-sign-in"]],features:[V],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],[1,"btn","btn-outline-secondary"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],[1,"mt-2"],[1,"fw-normal",3,"routerLink","queryParams"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,e){r&1&&f(0,ht,10,6,"mainpanel-cmp",1),r&2&&D(e.pageData.Filter?0:-1)},dependencies:[R,mt,pt,st,z,U,Y,q,J,Z,it,et,dt,ct,lt,rt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{gt as AppSignInComponent};
1
+ import{b as Z}from"./chunk-LPFB4TBW.js";import"./chunk-YECO23BV.js";import{d as st}from"./chunk-3XXHI4EL.js";import"./chunk-OFAMZL4W.js";import"./chunk-PRC6BIGW.js";import"./chunk-XRHB5YFU.js";import"./chunk-JGRL2V64.js";import"./chunk-77OYJ25Y.js";import"./chunk-IGAEFS7B.js";import"./chunk-4M7RPVWV.js";import"./chunk-5FZQUUGO.js";import{a as ct,b as dt}from"./chunk-MVXEAR7T.js";import{b as nt}from"./chunk-4OXYU3IN.js";import{a as $}from"./chunk-EZCVGBAR.js";import"./chunk-BONQYLII.js";import{a as ot}from"./chunk-JYCI6IOX.js";import{f as pt,g as mt}from"./chunk-YFB4XBRI.js";import"./chunk-Z3E6ZNA3.js";import"./chunk-KCKWSNMS.js";import"./chunk-IEXCLXA2.js";import"./chunk-7TPO6NBM.js";import"./chunk-NLFBNSNG.js";import"./chunk-LRM4CXVP.js";import"./chunk-M42U7VID.js";import{a as at}from"./chunk-U5IOZ6AH.js";import"./chunk-HRIVC724.js";import"./chunk-DTQAQRLJ.js";import"./chunk-LZNSQRCR.js";import"./chunk-BCH2MDJT.js";import"./chunk-INL666X3.js";import"./chunk-UUAZGIAN.js";import"./chunk-SPPZGYU7.js";import"./chunk-DYDRVXX3.js";import"./chunk-FICGNDPR.js";import"./chunk-2BQQJ3YS.js";import"./chunk-YNQPX5G6.js";import{G as rt,O as lt}from"./chunk-5VLBYHUJ.js";import{d as et,e as it}from"./chunk-Q7OVBNEW.js";import"./chunk-V5VDOLOZ.js";import{c as tt}from"./chunk-6RFU4RXC.js";import"./chunk-YCV6GUTW.js";import"./chunk-VXGIPE22.js";import"./chunk-M5BHFFPW.js";import"./chunk-XUQHA7FY.js";import"./chunk-AJ6OO7CP.js";import"./chunk-UPAKGSOK.js";import"./chunk-FMECWSCG.js";import{E as z,h as U,o as Y}from"./chunk-QMS2MBIA.js";import"./chunk-YAH623GO.js";import"./chunk-SFKUAKOZ.js";import"./chunk-WLVEHCCR.js";import{b as X}from"./chunk-P7GOTTNS.js";import"./chunk-3DEA4WWC.js";import"./chunk-JWOMTKKN.js";import{n as K,q as Q}from"./chunk-3GXUD7K4.js";import{Bb as f,Cc as B,Db as D,Dc as j,Eb as A,Gb as W,Hb as k,Ib as s,Jb as n,Kb as i,Kc as v,Lb as b,Mc as T,Nd as H,Pb as h,Qb as I,Qc as N,Ub as y,Ud as J,Wd as q,Xb as w,Za as l,Zb as m,dd as G,eb as u,ib as P,mc as p,nb as V,nc as x,ob as L,oc as O,ra as F,rc as g,sc as _,tc as C,va as c,wa as d,zd as R}from"./chunk-NGFIIVK5.js";import"./chunk-WFMAM73Y.js";import{a as E,b as M}from"./chunk-SNAKHGZS.js";var Ct=()=>["/menu/Contacts/Contact/Customers/Info"],St=o=>({ID:o});function ut(o,S){if(o&1){let t=y();n(0,"button",9),w("click",function(){c(t);let e=m(2);return d(e.openExportModal())}),b(1,"i",10),p(2," Export "),i()}}function xt(o,S){if(o&1){let t=y();n(0,"div")(1,"div",11)(2,"h6"),p(3,"Status"),i(),n(4,"ng-select",12),C("ngModelChange",function(e){c(t);let a=m(2);return _(a.contactState,e)||(a.contactState=e),d(e)}),i(),n(5,"h6"),p(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),C("ngModelChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.CreatorEntityID,e)||(a.pageData.Filter.CreatorEntityID=e),d(e)}),i(),n(8,"h6"),p(9,"Group"),i(),n(10,"ng-select",14),C("ngModelChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.GroupID,e)||(a.pageData.Filter.GroupID=e),d(e)}),i(),n(11,"h6"),p(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.From,e)||(a.pageData.Filter.From=e),d(e)}),i()(),n(15,"div",16)(16,"datepicker",17),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.To,e)||(a.pageData.Filter.To=e),d(e)}),i()(),n(17,"h6"),p(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.SignFrom,e)||(a.pageData.Filter.SignFrom=e),d(e)}),i()(),n(21,"div",16)(22,"datepicker",17),C("dateChange",function(e){c(t);let a=m(2);return _(a.pageData.Filter.SignTo,e)||(a.pageData.Filter.SignTo=e),d(e)}),i()()()()}if(o&2){let t=m(2);l(4),g("ngModel",t.contactState),s("items",t.pageData.Options.ContactStates)("clearable",!1),l(3),g("ngModel",t.pageData.Filter.CreatorEntityID),s("items",t.pageData.Options.Entities),l(3),g("ngModel",t.pageData.Filter.GroupID),s("items",t.pageData.Options.Groups),l(4),s("isFloatingLabel",!1),g("date",t.pageData.Filter.From),l(2),s("isFloatingLabel",!1),g("date",t.pageData.Filter.To),l(4),s("isFloatingLabel",!1),g("date",t.pageData.Filter.SignFrom),l(2),s("isFloatingLabel",!1),g("date",t.pageData.Filter.SignTo)}}function ft(o,S){if(o&1&&(n(0,"tr")(1,"th")(2,"a",27),p(3),i()(),n(4,"td"),p(5),i(),n(6,"td"),p(7),i(),n(8,"td"),p(9),i(),n(10,"td"),p(11),v(12,"IsMinDate"),i(),n(13,"td"),p(14),v(15,"IsMinDate"),i()()),o&2){let t=S.$implicit;l(2),s("routerLink",B(14,Ct))("queryParams",j(15,St,t.ID)),l(),x(t.Name),l(2),x(t.Code),l(2),x(t.Mobile),l(2),x(t.Email),l(2),x(T(12,8,t.JoinDate,"dd MMM yyyy")),l(3),O(" ",T(15,11,t.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function Dt(o,S){if(o&1){let t=y();n(0,"div",26)(1,"POS-complex-pagination",28),w("jumpToPage",function(){c(t);let e=m(3);return d(e.getListData())})("previousPage",function(){c(t);let e=m(3);return d(e.getListData())})("nextPage",function(){c(t);let e=m(3);return d(e.getListData())}),i()()}if(o&2){let t=m(3);l(),s("total",t.data.Data.length)("pageData",t.pageData)}}function yt(o,S){if(o&1&&(h(0,8),n(1,"div",18)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr",22)(6,"th"),p(7,"Name"),i(),n(8,"th",23),p(9,"Code"),i(),n(10,"th",23),p(11,"Mobile"),i(),n(12,"th",24),p(13,"Email"),i(),n(14,"th",25),p(15,"Join Date"),i(),n(16,"th",23),p(17,"Last Sign In"),i()()(),n(18,"tbody"),W(19,ft,16,17,"tr",null,A),i()()(),f(21,Dt,2,2,"div",26),i(),I()),o&2){let t=m(2);l(19),k(t.data.Data),l(2),D(t.pageData.Filter?21:-1)}}function ht(o,S){if(o&1){let t=y();n(0,"mainpanel-cmp",2),C("textChange",function(e){c(t);let a=m();return _(a.pageData.Filter.Text,e)||(a.pageData.Filter.Text=e),d(e)}),w("onSubmit",function(){c(t);let e=m();return d(e.searchFromPageOne())}),C("filterChange",function(e){c(t);let a=m();return _(a.pageData.Filter,e)||(a.pageData.Filter=e),d(e)}),h(1,3),n(2,"a",4),b(3,"i",5),p(4,"Get Your Brand Loyalty App "),i(),f(5,ut,3,0,"button",6),I(),h(6,7),L(7,xt,23,15,"ng-template",null,0,N),I(),f(9,yt,22,1,"ng-container",8),i()}if(o&2){let t=m();s("pageData",t.menuData),g("text",t.pageData.Filter.Text),s("isFilterOnDropdown",!1),g("filter",t.pageData.Filter),l(5),D(t.role.global.Export?5:-1),l(4),D(t.data&&t.data.Data?9:-1)}}var gt=class o extends ${constructor(t,r,e,a,_t,It){super(t,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",_t);this.httpService=r;this.csvConverter=e;this.matDialog=a;this.role=It}cdr=F(G);title=F(H);contactState;ngOnInit(){let t=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(t.BrandName+" POS | App Sign In")}postInit(t){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=M(E({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(nt,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(u(at),u(Q),u(ot),u(tt),u(K),u(X))};static \u0275cmp=P({type:o,selectors:[["pos-app-sign-in"]],features:[V],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],[1,"btn","btn-outline-secondary"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],[1,"mt-2"],[1,"fw-normal",3,"routerLink","queryParams"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,e){r&1&&f(0,ht,10,6,"mainpanel-cmp",1),r&2&&D(e.pageData.Filter?0:-1)},dependencies:[R,mt,pt,st,z,U,Y,q,J,Z,it,et,dt,ct,lt,rt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{gt as AppSignInComponent};